:root{color:#18201c;font-synthesis:none;text-rendering:optimizelegibility;letter-spacing:0;--green:#27845b;--green-dark:#1c6545;--orange:#e4774e;--gold:#d0a134;--blue:#4e78a8;--ink:#18201c;--muted:#6f7973;--line:#dde3de;--surface:#fff;--canvas:#f4f6f3;background:#f4f6f3;font-family:Inter,Microsoft YaHei,PingFang SC,system-ui,sans-serif}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;overflow:hidden}body{background:var(--canvas);min-width:320px;margin:0}button,input,select{font:inherit;letter-spacing:0}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #27845b38}.login-page{background-color:#f4f6f3;background-image:linear-gradient(90deg,#27845b0d 1px,#0000 1px),linear-gradient(#27845b0d 1px,#0000 1px),none;background-position:0 0,0 0,0 0;background-repeat:repeat,repeat,repeat;background-size:32px 32px;background-attachment:scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box;place-items:center;min-height:100dvh;padding:24px;display:grid;overflow-y:auto}.login-panel{border:1px solid var(--line);background:var(--surface);border-radius:8px;width:min(100%,410px);padding:36px;box-shadow:0 20px 60px #16221b1a}.brand-mark{color:#fff;background:var(--green);border-radius:8px;place-items:center;width:48px;height:48px;display:grid}.brand-mark.small{flex:0 0 32px;width:32px;height:32px}.eyebrow{color:#77817b;text-transform:uppercase;margin:20px 0 7px;font-size:11px;font-weight:700;line-height:1.3}.login-panel h1,.topbar h1,.section-heading h2,.ledger-header h2{letter-spacing:0;margin:0}.login-panel h1{font-size:29px;line-height:1.25}.login-subtitle{color:var(--muted);margin:10px 0 28px;font-size:14px}.login-form{gap:17px;display:grid}.login-form label{color:#46504a;gap:7px;font-size:13px;font-weight:600;display:grid}.login-form input{min-width:0;height:44px;color:var(--ink);background:#fbfcfb;border:1px solid #ccd4ce;border-radius:6px;padding:0 12px}.primary-button{color:#fff;background:var(--green);cursor:pointer;border:0;border-radius:6px;justify-content:center;align-items:center;gap:8px;height:44px;display:inline-flex}.primary-button:hover{background:var(--green-dark)}.primary-button:disabled{opacity:.65;cursor:wait}.form-error{color:#b44835;margin:-3px 0 0;font-size:13px}.app-shell{height:100dvh;overflow:hidden}.dashboard{grid-template-rows:auto auto auto minmax(0,1fr);gap:10px;width:100%;height:100dvh;padding:18px 22px;display:grid;overflow:hidden}.topbar{justify-content:space-between;align-items:center;gap:24px;min-height:48px;display:flex}.topbar .eyebrow{color:var(--muted);text-transform:none;margin:0 0 5px}.topbar h1{font-size:22px;line-height:1.2}.topbar-actions{align-items:center;gap:12px;display:flex}.data-status{color:var(--muted);align-items:center;gap:7px;font-size:12px;display:flex}.data-status>span{background:#39a76d;border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 4px #39a76d1f}.topbar-logout,.topbar-token{color:#69736d;cursor:pointer;background:#fff;border:1px solid #d7ddd8;border-radius:6px;place-items:center;width:36px;height:36px;display:grid}.topbar-token:hover{color:var(--green-dark);background:#edf7f1}.topbar-logout:hover{color:#9c4130;background:#fff4f1}.agent-strip{color:#fff;background:#202a24;border-radius:8px;min-height:56px;padding:6px 8px;position:relative;box-shadow:0 8px 22px #18201c1f}.agent-form{color:#9eaaa2;background:#151c18;border:1px solid #47544c;border-radius:6px;align-items:center;gap:10px;height:44px;padding:0 7px 0 14px;display:flex}.agent-form input{color:#f7faf8;background:0 0;border:0;outline:0;flex:1;min-width:0;font-size:13px}.agent-form input::placeholder{color:#828f87}.agent-form button{color:#173221;cursor:pointer;background:#b9f0cf;border:0;border-radius:5px;flex:0 0 35px;place-items:center;width:35px;height:35px;display:grid}.agent-form button:disabled{color:#6f7c74;cursor:not-allowed;background:#364139}.agent-form .agent-cancel{color:#d7e1da;background:#354139}.agent-form .agent-cancel:hover{color:#fff;background:#48564d}.agent-feedback{z-index:60;color:#1d6848;background:#e8f6ed;border:1px solid #b8dfc7;border-radius:6px;max-width:min(520px,100vw - 44px);margin:0;padding:10px 12px;font-size:12px;position:fixed;top:140px;right:22px;box-shadow:0 10px 28px #15291d24}.agent-feedback.error{color:#8e3828;background:#fff2ef;border-color:#edb8ad}.error-banner{z-index:60;color:#8e3828;background:#fff2ef;border:1px solid #edb8ad;border-radius:6px;justify-content:space-between;align-items:center;gap:15px;width:min(560px,100vw - 44px);margin:0;padding:11px 14px;font-size:13px;display:flex;position:fixed;top:76px;left:50%;transform:translate(-50%);box-shadow:0 10px 28px #33181324}.error-banner button{color:inherit;cursor:pointer;background:0 0;border:0;font-weight:700}.metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.metric-card{border:1px solid var(--line);background:var(--surface);border-radius:8px;align-items:flex-start;gap:11px;min-width:0;min-height:88px;padding:12px;display:flex}.metric-icon{border-radius:7px;flex:0 0 36px;place-items:center;width:36px;height:36px;display:grid}.metric-icon.green{color:var(--green);background:#e6f2eb}.metric-icon.orange{color:var(--orange);background:#fbece6}.metric-icon.gold{color:#a97900;background:#fbf2d8}.metric-icon.blue{color:var(--blue);background:#e8eef5}.metric-copy{min-width:0;display:grid}.metric-copy p{color:var(--muted);margin:0 0 5px;font-size:12px}.metric-copy>strong{color:#111814;text-overflow:ellipsis;white-space:nowrap;font-size:18px;line-height:1.25;overflow:hidden}.metric-copy>span{color:#8a938e;text-overflow:ellipsis;white-space:nowrap;margin-top:5px;font-size:11px;overflow:hidden}.dashboard-tabs{display:none}.dashboard-body{grid-template-columns:minmax(0,1.15fr) minmax(420px,.85fr);gap:10px;min-height:0;display:grid;overflow:hidden}.insights-grid{grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:10px;height:100%;min-height:0;display:grid}.panel{border:1px solid var(--line);background:var(--surface);border-radius:8px;min-width:0;height:100%;min-height:0;padding:16px;overflow:hidden}.trend-panel,.category-panel{grid-template-rows:auto minmax(0,1fr);display:grid}.section-heading,.ledger-header{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.section-heading .eyebrow,.ledger-header .eyebrow{margin:0 0 5px}.section-heading h2,.ledger-header h2{font-size:17px}.section-heading>strong{font-size:18px}.section-heading>span{color:var(--muted);font-size:12px}.chart-wrap{width:100%;height:100%;min-height:0;margin-top:8px}.chart-skeleton{height:100%;min-height:0;margin-top:8px}.chart-tooltip{background:#fff;border:1px solid #dce2dd;border-radius:6px;gap:4px;padding:9px 11px;font-size:11px;display:grid;box-shadow:0 8px 20px #131f1817}.chart-tooltip span{color:var(--muted)}.chart-tooltip strong{font-size:13px}.category-list{gap:14px;min-height:0;max-height:none;margin-top:12px;padding-right:3px;display:grid;overflow-y:auto}.category-row{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:8px minmax(0,1fr) auto 15px;align-items:center;gap:10px;padding:3px 2px;display:grid}.category-row:hover{background:#f6f8f6}.category-chevron{color:#a7b0aa}.category-dot{border-radius:50%;width:8px;height:8px}.category-main{gap:7px;min-width:0;display:grid}.category-main>div:first-child,.category-amount{justify-content:space-between;align-items:center;gap:10px;display:flex}.category-main strong,.category-amount strong{font-size:12px}.category-main span,.category-amount span{color:#8c958f;font-size:10px}.progress-track{background:#eef1ee;border-radius:4px;height:4px;overflow:hidden}.progress-track span{border-radius:inherit;height:100%;display:block}.category-amount{justify-items:end;gap:3px;min-width:74px;display:grid}.ledger-section{border:1px solid var(--line);background:var(--surface);border-radius:8px;grid-template-rows:auto minmax(0,1fr);min-width:0;height:100%;min-height:0;padding:16px;display:grid;overflow:hidden;container-type:inline-size}.right-rail{grid-template-rows:minmax(0,1fr) minmax(155px,.48fr);gap:10px;min-width:0;height:100%;min-height:0;display:grid;overflow:hidden}.subscription-section{border:1px solid var(--line);background:var(--surface);border-radius:8px;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;padding:13px 16px;display:grid;overflow:hidden}.subscription-header{justify-content:space-between;align-items:center;gap:12px;min-height:28px;display:flex}.subscription-header>div{color:#3b7457;align-items:center;gap:7px;display:flex}.subscription-header h2{color:var(--ink);font-size:15px}.subscription-header>span{color:var(--muted);font-size:10px}.subscription-list{border-top:1px solid #e4e8e5;min-height:0;margin-top:7px;overflow-y:auto}.subscription-row{border-bottom:1px solid #edf0ed;grid-template-columns:7px minmax(0,1fr) minmax(100px,auto) 52px;align-items:center;gap:10px;min-height:51px;padding:7px 3px;display:grid}.subscription-state{background:#44906b;border-radius:50%;width:7px;height:7px}.subscription-state.paused{background:#d0a134}.subscription-state.expired{background:#d07859}.subscription-state.cancelled{background:#a4aca7}.subscription-copy,.subscription-payment{gap:3px;min-width:0;display:grid}.subscription-copy strong,.subscription-copy span,.subscription-payment strong,.subscription-payment span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.subscription-copy strong,.subscription-payment strong{font-size:11px}.subscription-copy span,.subscription-payment span{color:#858f89;font-size:9px}.subscription-payment{justify-items:end}.subscription-status{color:#2e7353;text-align:center;white-space:nowrap;background:#eaf4ee;border-radius:4px;padding:3px 5px;font-size:9px}.subscription-status.paused{color:#856713;background:#f8f1da}.subscription-status.expired{color:#9a4f35;background:#faebe5}.subscription-status.cancelled{color:#69736d;background:#edf0ee}.subscription-loading{align-content:start;gap:7px;min-height:0;margin-top:7px;display:grid}.subscription-loading .skeleton{height:44px}.ledger-controls{justify-content:flex-end;align-items:center;gap:8px;min-width:0;display:flex}.search-field{color:#87918a;background:#fbfcfb;border:1px solid #d7ddd8;border-radius:6px;align-items:center;gap:7px;width:190px;height:36px;padding:0 10px;display:flex}.search-field input{width:100%;min-width:0;color:var(--ink);background:0 0;border:0;outline:0;font-size:12px}.ledger-controls select{color:#475049;background:#fbfcfb;border:1px solid #d7ddd8;border-radius:6px;height:36px;padding:0 28px 0 10px;font-size:12px}.segmented{background:#f4f6f4;border:1px solid #d7ddd8;border-radius:6px;height:36px;padding:3px;display:flex}.segmented button{color:#727c76;cursor:pointer;background:0 0;border:0;border-radius:4px;height:28px;padding:0 10px;font-size:11px}.segmented button.selected{color:#1c2821;background:#fff;box-shadow:0 1px 4px #17221b17}.day-groups{border-top:1px solid #e4e8e5;align-content:start;gap:0;min-height:0;margin-top:12px;display:grid;overflow:hidden auto}.amount-view{min-height:0;margin-top:12px;overflow:hidden auto}.day-group{border-bottom:1px solid #e4e8e5}.day-group-toggle{width:100%;min-height:58px;color:inherit;text-align:left;cursor:pointer;background:#fafbfa;border:0;justify-content:space-between;align-items:center;gap:16px;padding:10px 4px;display:flex}.day-group-toggle:hover{background:#f3f6f3}.day-group-toggle>div:first-child{gap:3px;display:grid}.day-group-toggle strong{font-size:13px}.day-group-toggle span{color:#89918c;font-size:10px}.day-totals{align-items:center;gap:14px;display:flex}.day-chevron{color:#929b95;transition:transform .16s}.day-group.expanded .day-chevron{transform:rotate(180deg)}.dialog-backdrop{z-index:50;background:#0e15116b;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.category-dialog{background:#fff;border:1px solid #d8ded9;border-radius:8px;width:min(620px,100%);max-height:min(720px,100vh - 48px);overflow:hidden;box-shadow:0 24px 70px #0f18123d}.category-dialog>header{border-bottom:1px solid #e4e8e5;justify-content:space-between;align-items:center;gap:20px;min-height:74px;padding:15px 18px;display:flex}.category-dialog>header h2{margin:0 0 5px;font-size:18px}.category-dialog>header span{color:var(--muted);font-size:11px}.category-dialog>header button{color:#657069;cursor:pointer;background:#f0f3f0;border:0;border-radius:5px;place-items:center;width:34px;height:34px;display:grid}.category-dialog-list{max-height:calc(min(720px,100vh - 48px) - 74px);padding:8px 18px 16px;overflow-y:auto}.token-dialog{background:#fff;border:1px solid #d8ded9;border-radius:8px;grid-template-rows:auto minmax(0,1fr);width:min(680px,100%);max-height:min(720px,100dvh - 48px);display:grid;overflow:hidden;box-shadow:0 24px 70px #0f18123d}.token-dialog>header{border-bottom:1px solid #e4e8e5;justify-content:space-between;align-items:center;gap:20px;min-height:74px;padding:15px 18px;display:flex}.token-dialog>header h2{margin:0 0 5px;font-size:18px}.token-dialog>header span{color:var(--muted);font-size:11px}.token-dialog>header button,.token-row>button,.token-secret button{color:#657069;cursor:pointer;background:#f0f3f0;border:0;border-radius:5px;flex:0 0 34px;place-items:center;width:34px;height:34px;display:grid}.token-dialog-body{min-height:0;padding:18px;overflow-y:auto}.token-create-form{grid-template-columns:minmax(0,1fr) 120px 96px;gap:8px;display:grid}.token-create-form input,.token-create-form select,.token-secret input{min-width:0;height:40px;color:var(--ink);background:#fbfcfb;border:1px solid #d4dbd5;border-radius:6px;padding:0 11px;font-size:12px}.token-create-form .primary-button{height:40px}.token-secret{background:#eef8f2;border:1px solid #b9dcc7;border-radius:6px;gap:10px;margin-top:14px;padding:12px;display:grid}.token-secret>div:first-child{justify-content:space-between;align-items:center;gap:12px;display:flex}.token-secret strong{font-size:12px}.token-secret span{color:#5b7666;font-size:10px}.token-secret>div:last-child{gap:7px;display:flex}.token-secret input{flex:1;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.token-error{color:#a54432;margin:12px 0 0;font-size:12px}.token-list{border-top:1px solid #e2e7e3;margin-top:16px;display:grid}.token-row{border-bottom:1px solid #e8ece9;grid-template-columns:minmax(0,1fr) auto 34px;align-items:center;gap:16px;min-height:68px;padding:10px 2px;display:grid}.token-row>div:first-child{gap:5px;min-width:0;display:grid}.token-row strong{font-size:12px}.token-row code{color:#6e7771;text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.token-meta{color:#7e8881;justify-items:end;gap:4px;font-size:10px;display:grid}.token-row>button:hover{color:#a44432;background:#fff0ed}.token-list-loading{gap:8px;padding-top:12px;display:grid}.token-list-loading .skeleton{height:56px}.token-empty{color:#8b958e;place-items:center;min-height:120px;font-size:12px;display:grid}.day-totals strong{color:#2c342f}.income{color:var(--green)!important}.transaction-table{width:100%;min-width:0}.table-head,.transaction-row{grid-template-columns:36px minmax(180px,1.7fr) minmax(90px,.65fr) minmax(80px,.55fr) minmax(105px,auto) 16px;align-items:center;gap:10px;display:grid}.table-head{color:#8a928d;border-bottom:1px solid #e4e8e5;grid-template-columns:36px minmax(180px,1.7fr) minmax(90px,.65fr) minmax(80px,.55fr) minmax(105px,auto) 16px;min-height:34px;margin-top:16px;padding:0 4px;font-size:10px}.table-head span:first-child{grid-column:2}.transaction-row{border-top:1px solid #eef0ee;min-height:62px;padding:8px 4px}.transaction-row:first-child{border-top:0}.transaction-icon{color:#51635a;background:#eef2ef;border-radius:7px;place-items:center;width:32px;height:32px;display:grid}.transaction-copy{gap:4px;min-width:0;display:grid}.transaction-copy strong,.transaction-copy span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.transaction-copy strong{font-size:12px}.transaction-copy span,.transaction-category,.transaction-date{color:#828b85;font-size:10px}.transaction-category{text-overflow:ellipsis;white-space:nowrap;background:#f1f3f1;border-radius:4px;width:fit-content;max-width:100%;padding:4px 7px;overflow:hidden}.transaction-value{color:#313a35;text-align:right;white-space:nowrap;font-size:12px}.row-chevron{color:#b3bbb6}@container (width<=620px){.ledger-header{flex-direction:column;align-items:stretch;gap:8px}.ledger-controls{justify-content:flex-start}.search-field{flex:1}.transaction-row{grid-template-columns:32px minmax(0,1fr) auto;gap:9px}.transaction-category,.transaction-date,.row-chevron,.table-head{display:none}}.empty-state{color:#909993;place-content:center;justify-items:center;gap:8px;min-height:100%;font-size:12px;display:grid}.empty-state.compact{min-height:100%}.skeleton{background:linear-gradient(90deg,#edf0ed 25%,#f5f7f5 45%,#edf0ed 65%) 0 0/300% 100%;border-radius:5px;animation:1.3s infinite shimmer;display:block}.skeleton.short{width:110px;height:25px}.category-skeleton,.ledger-loading{gap:14px;min-height:0;margin-top:24px;display:grid;overflow:hidden}.category-skeleton .skeleton{height:34px}.ledger-loading .skeleton{height:58px}.spin{animation:.8s linear infinite spin}@keyframes shimmer{0%{background-position:100% 0}to{background-position:0 0}}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=1100px){.dashboard-body{grid-template-rows:minmax(210px,.8fr) minmax(260px,1.2fr);grid-template-columns:1fr}.insights-grid{grid-template-columns:minmax(0,1.25fr) minmax(270px,.75fr)}.table-head,.transaction-row{grid-template-columns:32px minmax(150px,1.6fr) minmax(80px,.6fr) minmax(66px,.5fr) minmax(94px,auto) 14px;gap:8px}.right-rail{grid-template-rows:minmax(0,1fr) minmax(145px,.58fr)}}@media (width<=760px){.dashboard{padding:12px}.ledger-header{flex-direction:column;align-items:stretch;gap:10px}.ledger-controls{justify-content:flex-start}.search-field{flex:1}}@media (width<=640px){.dashboard{grid-template-rows:auto auto auto auto minmax(0,1fr);gap:8px;padding:10px}.topbar{min-height:42px}.topbar h1{font-size:19px}.topbar .eyebrow{margin-bottom:2px;font-size:9px}.data-status{display:none}.topbar-logout,.topbar-token{width:34px;height:34px}.agent-strip{min-height:50px;padding:4px 6px}.agent-form{height:42px;padding-left:10px}.agent-feedback,.error-banner{width:auto;max-width:calc(100vw - 20px);top:116px;left:auto;right:10px;transform:none}.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.metric-card{gap:8px;min-height:72px;padding:9px}.metric-icon{flex-basis:28px;width:28px;height:28px}.metric-copy p{margin-bottom:3px;font-size:10px}.metric-copy>strong{font-size:15px}.metric-copy>span{margin-top:3px;font-size:8px}.dashboard-tabs{background:#edf1ed;border:1px solid #d7ddd8;border-radius:6px;grid-template-columns:repeat(3,1fr);height:34px;padding:3px;display:grid}.dashboard-tabs button{color:#68736c;cursor:pointer;background:0 0;border:0;border-radius:4px;font-size:11px}.dashboard-tabs button.selected{color:#17211b;background:#fff;box-shadow:0 1px 4px #17221b1a}.dashboard-body,.insights-grid{height:100%;display:block}.panel,.ledger-section,.right-rail{height:100%}.panel,.ledger-section{padding:13px}.mobile-view-trend .category-panel,.mobile-view-trend .right-rail,.mobile-view-categories .trend-panel,.mobile-view-categories .right-rail,.mobile-view-ledger .insights-grid{display:none}.right-rail{grid-template-rows:minmax(0,1fr) minmax(145px,.72fr)}.subscription-section{padding:10px 12px}.subscription-row{grid-template-columns:7px minmax(0,1fr) minmax(92px,auto)}.subscription-status{display:none}.category-list{grid-template-columns:1fr}.ledger-header{gap:8px}.ledger-controls{grid-template-columns:1fr 1fr;gap:6px;display:grid}.search-field{grid-column:1/-1;width:100%}.ledger-controls select,.segmented{width:100%}.segmented button{flex:1}.transaction-row{grid-template-columns:32px minmax(0,1fr) auto;gap:9px}.transaction-category,.transaction-date,.row-chevron,.table-head{display:none}.transaction-value{font-size:11px}.amount-view{border-top:1px solid #e4e8e5}.dialog-backdrop{align-items:end;padding:10px}.category-dialog{max-height:calc(100dvh - 20px)}.category-dialog-list{max-height:calc(100dvh - 94px);padding-inline:13px}.token-dialog{max-height:calc(100dvh - 20px)}.token-dialog-body{padding:13px}.token-create-form{grid-template-columns:1fr 1fr}.token-create-form input{grid-column:1/-1}.token-row{grid-template-columns:minmax(0,1fr) 34px;gap:10px}.token-meta{grid-area:2/1/auto/-1;justify-items:start}}@media (width<=390px){.metric-icon{display:none}.login-panel{padding:28px 22px}}@media (prefers-reduced-motion:reduce){*,:before,:after{animation-duration:.01ms!important}}
