:root{font-family:system-ui,-apple-system,"Noto Sans Thai",sans-serif;color:#1c3c43;background:#edf4f2;font-size:16px}*{box-sizing:border-box}body{margin:0}.shell{max-width:1200px;margin:auto;padding:0 22px 60px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 0;border-bottom:1px solid #cadcda}.brand{display:flex;align-items:center;gap:13px}.brand strong{display:block;font:600 25px Georgia,serif}.brand small{display:block;color:#69838a}.logo{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#28545a;color:#fff;font-size:27px}.pill{border:1px solid #a5c6be;border-radius:99px;padding:8px 13px;color:#316d61;background:#e0eee7;font-size:13px}.heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:38px 0 24px}.eyebrow{font-size:12px;letter-spacing:.18em;color:#5a8e88;font-weight:800}.heading h1{font:500 clamp(34px,5vw,54px) Georgia,serif;margin:4px 0}.heading p{color:#668087;margin:0}.month{display:flex;align-items:center;gap:10px;white-space:nowrap;color:#4d6c71}.month input,input{font:inherit;border:1px solid #bfd4d3;border-radius:11px;background:#fff;color:#24474c;padding:10px 12px}nav{display:flex;gap:5px;width:max-content;max-width:100%;overflow:auto;background:#dce9e6;border-radius:13px;padding:5px;margin-bottom:18px}button{font:inherit;cursor:pointer}nav button{border:0;background:transparent;color:#5b797e;border-radius:9px;padding:11px 22px;white-space:nowrap}nav button.active{background:#fff;color:#214c50;box-shadow:0 3px 8px #1e4b4b16}.view{display:none}.view.active{display:block}.totals,.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.totals article,.card{background:#f9fbfa;border:1px solid #cbdedb;border-radius:19px;box-shadow:0 14px 35px #28525a0b}.totals article{padding:24px}.totals span{display:block;color:#607e82}.totals strong{display:block;font-size:clamp(32px,4vw,46px);margin-top:8px;letter-spacing:-.04em}.totals article:first-child strong,.income{color:#32896b}.totals article:last-child strong,.expense{color:#b65f5f}.card{padding:22px;min-width:0;margin-bottom:16px}.card-head{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:16px}.card-head h2,.settings h2{font:500 25px Georgia,serif;margin:0 0 4px}.card-head p,.settings p{color:#668087;margin:0}.card-head button{border:0;background:none;color:#4d7981}.chart{display:grid;grid-template-columns:repeat(31,minmax(8px,1fr));align-items:end;gap:3px;height:180px;border-bottom:1px solid #c7d9d5;padding-top:10px}.bar{border:0;background:#9abbb3;border-radius:5px 5px 0 0;min-height:2px;padding:0}.bar:focus-visible,.bar:hover{background:#3c8679;outline:2px solid #245f54}.day-detail{color:#58777b;margin-top:15px}.category-row{display:flex;gap:12px;align-items:center;margin:12px 0}.category-row span{width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.track{flex:1;height:10px;background:#e4edeb;border-radius:20px}.track i{display:block;height:100%;background:#83aaa3;border-radius:20px}.category-row b{width:90px;text-align:right}.entry{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #dce8e5;padding:14px 0}.entry strong{display:block}.entry small{display:block;color:#72898b;margin-top:4px}.entry b{white-space:nowrap}.muted{color:#70888b}.settings{max-width:720px}.settings label{display:grid;gap:7px;margin:22px 0 12px}.primary{border:0;background:#517f88;color:white;border-radius:11px;padding:12px 17px}.example{margin-top:26px}.example pre{overflow:auto;background:#eaf2ef;padding:18px;border-radius:12px;line-height:1.5;font-size:13px}@media(max-width:700px){.shell{padding:0 14px 45px}header{padding:17px 0}.brand strong{font-size:20px}.pill{font-size:11px;padding:6px 9px}.heading{display:block;margin:27px 0 19px}.month{margin-top:16px}.totals,.grid{grid-template-columns:1fr}.totals{gap:9px}.totals article{padding:17px}.card{padding:16px}.chart{gap:2px}.bar{min-width:5px}nav{width:100%}nav button{flex:1;padding:10px 14px}}
