*{box-sizing:border-box}
:root{color-scheme:light;--bg:#f5f5ef;--panel:#fffefa;--ink:#1b3029;--muted:#596a60;--line:#dce1d5;--soft:#eef1e8;--accent:#285f49;--accent-bg:#dfeadd;--warm:#a1492d;--hero:#163e32;--hero-ink:#f2f5de;--mint:#bbd89d;--shadow:0 2px 4px #17372608;--radius:20px}
:root[data-theme=dark]{color-scheme:dark;--bg:#151e1a;--panel:#202c25;--ink:#edf1df;--muted:#b1bdb0;--line:#3b4a3e;--soft:#2c392f;--accent:#bcdaa5;--accent-bg:#324a39;--warm:#ffb394;--hero:#244b3c;--hero-ink:#f2f5de;--mint:#c4e3aa;--shadow:none}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--bg:#151e1a;--panel:#202c25;--ink:#edf1df;--muted:#b1bdb0;--line:#3b4a3e;--soft:#2c392f;--accent:#bcdaa5;--accent-bg:#324a39;--warm:#ffb394;--hero:#244b3c;--hero-ink:#f2f5de;--mint:#c4e3aa;--shadow:none}}
html{min-height:100%;background:var(--bg)}
body{margin:0;color:var(--ink);font:15px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;letter-spacing:-.027em;-webkit-font-smoothing:antialiased;overflow-wrap:break-word}
h1,h2,h3,p,dl,dd{margin:0}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #8f9c45;outline-offset:3px}
button,select,input{font:inherit;color:inherit}
button{cursor:pointer}
button,a,input,select{-webkit-tap-highlight-color:transparent}
button{border:0}
strong,b,.hero-amount,.axis,.sum,.week-row{font-variant-numeric:tabular-nums}
.icon{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.frame{max-width:1144px;padding-inline:32px;margin-inline:auto}
.top{border-bottom:1px solid var(--line);background:var(--panel)}
.header-inner,.header-actions,.brand,.panel-top h2,.hero-stats,.info-line,.text-link,.page-link,.back-link,.btn,.query,.shortcut,.source-note,.hero-toggle,.week-nav,.card-picks,.period-select,.seg,.reserve-line{display:flex;align-items:center}
.header-inner{height:70px;justify-content:space-between}
.brand{gap:10px;font-size:20px;font-weight:780;letter-spacing:-.06em}
.brand img,.login>img{border-radius:10px}
.header-actions{gap:6px}
.header-actions form{margin:0}
.icon-btn,.arrow{display:inline-grid;place-items:center;color:var(--muted);background:transparent;width:42px;height:42px;border-radius:50%}
.icon-btn:hover,.arrow:hover{background:var(--soft);color:var(--ink)}
.theme .sun,:root[data-theme=dark] .theme .moon{display:none}
:root[data-theme=dark] .theme .sun{display:block}
main.frame{padding-top:36px;padding-bottom:calc(112px + env(safe-area-inset-bottom))}
.heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:22px}
h1{font-size:clamp(29px,4vw,42px);line-height:1.18;letter-spacing:-.07em}
.heading>span,.footnote,.muted,.empty span,.source-note{color:var(--muted)}
.heading>span{font-size:14px}
h2{font-size:18px;line-height:1.4;letter-spacing:-.045em}
h3{font-size:15px}
.period-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.period-select{gap:7px;margin-left:-8px}
.period-select strong,.period-select>span{font-size:19px;font-weight:730}
.period-select .arrow,.week-nav .arrow{width:42px;height:42px}
.seg,.card-picks,.hero-toggle{gap:3px}
.seg{background:var(--soft);border:1px solid var(--line);padding:3px;border-radius:13px}
.seg a,.card-picks a,.hero-toggle a{display:grid;place-items:center;min-height:37px;padding:0 16px;border-radius:10px;font-weight:650;font-size:14px;color:var(--muted);white-space:nowrap}
.seg a[aria-current=true]{background:var(--panel);color:var(--ink);box-shadow:var(--shadow)}
.card-picks{margin:0 0 18px}
.card-picks>.icon{margin-right:5px;color:var(--muted);width:17px}
.card-picks a{padding-inline:13px;min-height:36px}
.card-picks a[aria-current=true]{background:var(--accent-bg);color:var(--accent)}
.dashboard{display:grid;grid-template-columns:minmax(0,1.46fr) minmax(0,1fr);gap:16px;align-items:start}
.stack{display:grid;gap:16px;min-width:0}
.panel,.hero{border-radius:var(--radius);min-width:0}
.panel{padding:23px 25px;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow)}
.panel-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}
.panel-top h2{gap:8px}
.panel-top h2 .icon{color:var(--accent);width:19px}
.hero{background:var(--hero);color:var(--hero-ink);padding:25px 29px 19px;overflow:hidden}
.hero .panel-top{margin-bottom:12px}
.hero .panel-top h2,.hero .panel-top .icon{color:#daead5}
.hero-toggle{background:#ffffff0c;padding:3px;border-radius:11px;border:1px solid #ffffff25}
.hero-toggle a{padding:0 10px;min-height:31px;font-size:12px;color:#d6e4d5}
.hero-toggle a[aria-current=true]{background:#dceaca;color:#173e32}
.hero-amount{display:flex;align-items:baseline;gap:7px;line-height:1.12}
.hero-amount strong{font-size:clamp(40px,5.5vw,65px);letter-spacing:-.07em}
.hero-amount>span{font-size:21px;font-weight:600}
.hero-meta{font-size:13px;color:#c9d9c6;margin-top:7px}
.graph{margin-top:19px}.graph svg{display:block;width:100%;height:76px;overflow:visible}
.baseline{stroke:#a3bcab;stroke-width:1;stroke-dasharray:3 5}.bar-hit{fill:transparent}.bar-plus{fill:var(--mint)}.bar-minus{fill:#f3b399}.graph a:hover rect:last-child{fill:#fff9db}
.axis{display:flex;justify-content:space-between;color:#c9d9c6;font-size:11px;margin-top:4px}
.hero-stats{gap:8px 20px;margin-top:14px;padding-top:13px;border-top:1px solid #cfdfc63b;flex-wrap:wrap;font-size:12px;color:#d4e3ce}
.hero-stats b{color:#f0f5e6;margin-left:4px;font-weight:620}
.no-chart{padding:24px 0 12px;color:#c9d9c6}
.micro{font-size:12px;white-space:nowrap;color:var(--muted)}
.week-nav{color:var(--muted);font-size:13px;gap:2px}
.week-nav .arrow{width:40px;height:40px}.week-nav span{margin-right:auto}
.budget-main{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:11px 0 14px}
.budget-main>span{font-size:13px;color:var(--muted)}
.budget-main strong,.detail-amt{font-size:clamp(28px,4vw,38px);line-height:1.2;letter-spacing:-.065em}
.budget-main .unset{font-size:28px}
.over{color:var(--warm)}
progress,.unconfirmed-line{display:block;width:100%;height:8px;border:0;border-radius:8px;background:var(--soft);margin:8px 0 14px;overflow:hidden;accent-color:var(--accent)}
progress::-webkit-progress-bar{background:var(--soft)}progress::-webkit-progress-value{background:var(--accent);border-radius:8px}progress::-moz-progress-bar{background:var(--accent)}
.unconfirmed-line{background:repeating-linear-gradient(110deg,var(--line) 0,var(--line) 3px,var(--soft) 3px,var(--soft) 8px)}
.info-line,.reserve-line{justify-content:space-between;gap:10px;margin:0;font-size:14px}
.info-line>span,.info-line>dt{color:var(--muted)}.info-line>strong,.info-line>dd{text-align:right}
.info-line small{font-size:12px;margin-left:4px}.info-line .icon{width:15px;height:15px;color:var(--muted)}
.drill{min-height:43px;border-top:1px solid var(--line)}
.drill:hover,.week-row:hover,.shortcut:hover,.txn:hover{background:var(--soft)}
.footnote{font-size:12px;line-height:1.5;margin-top:9px}
.reserve-line span{font-weight:620}.reserve-line strong{white-space:nowrap}
.text-link,.page-link,.back-link{gap:5px;color:var(--accent);font-size:13px;font-weight:680;min-height:38px}
.text-link .icon,.page-link .icon,.back-link .icon{width:16px}
.text-link:hover,.page-link:hover,.back-link:hover{text-decoration:underline}
.txn{display:flex;align-items:center;gap:12px;min-height:66px;border-top:1px solid var(--line);padding:8px 0}
.tile{width:38px;height:38px;display:inline-grid;place-items:center;border-radius:12px;flex:none}
.tile.sand{color:#765420;background:#f6e9c9}.tile.peach{color:#8c492e;background:#f8e4d6}.tile.blue{color:#426276;background:#e1ebef}.tile.lilac{color:#6a5482;background:#ece3f2}.tile.sage{color:#40624a;background:#e6eede}
.txn-text{flex:1;min-width:0;display:grid;gap:2px}
.txn-text strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.txn-text small,.week-row small{display:block;font-size:12px;color:var(--muted)}
.txn-amount{display:grid;text-align:right;font-size:15px;font-weight:720;white-space:nowrap}
.rev-label{font-size:11px;color:var(--accent)}
.row-arrow{width:14px;color:var(--muted)}
.source-note{justify-content:center;gap:6px;font-size:12px;line-height:1.5;margin:25px 0;text-align:center}
.source-note>.icon{width:14px;height:14px}
.sync-note{flex-wrap:wrap;align-items:center;margin:12px 0 24px;column-gap:12px}
.sync-note small{font-size:inherit}.sync-note button{border:0;background:transparent;cursor:pointer;padding:0}
.bottom-nav{display:flex;position:fixed;z-index:4;bottom:calc(12px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);gap:4px;padding:5px;background:var(--panel);border:1px solid var(--line);border-radius:21px;box-shadow:0 5px 24px #112b2225}
.bottom-nav a{display:flex;gap:7px;min-width:90px;min-height:44px;justify-content:center;align-items:center;padding:5px 11px;border-radius:15px;color:var(--muted);font-size:13px;font-weight:640;white-space:nowrap}
.bottom-nav a[aria-current=page]{background:var(--accent-bg);color:var(--accent)}
.budgets{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}
.week-row,.shortcut{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:13px 0}
.week-row>span,.shortcut strong{flex:1;min-width:0}
.week-row b{font-size:14px}.week-row>.icon,.shortcut>.icon{width:15px;color:var(--muted)}
.week-row[aria-current=true] strong{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.rules p,.ai-panel p,.login p{color:var(--muted);line-height:1.7;margin-top:8px}
.rules .info-line{margin-top:12px}
.filters{margin:15px 0}
.query,.field input,.field select{background:var(--bg);border:1px solid var(--line);border-radius:10px}
.query{gap:10px;padding:0 12px;color:var(--muted)}
.query input{width:100%;min-width:0;height:46px;border:0;background:transparent;font-size:16px}
.filter-fields{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:13px 0}
.field{display:grid;gap:5px;min-width:0;color:var(--muted);font-size:13px}
.field input,.field select{padding:8px 10px;height:43px;width:100%;min-width:0;color:var(--ink);font-size:15px}
.filter-actions,.pages{display:flex;align-items:center;justify-content:space-between;gap:12px}
.filter-actions>a{color:var(--muted);font-size:14px;text-decoration:underline;text-underline-offset:3px}
.btn{background:var(--accent);color:var(--panel);justify-content:center;gap:8px;padding:10px 20px;min-height:43px;border-radius:11px;font-weight:700}.btn:hover{filter:brightness(.92)}
.sum{font-size:15px;text-align:right}
.pages{border-top:1px solid var(--line);padding-top:10px;color:var(--muted);font-size:13px}
.empty{display:grid;justify-items:center;text-align:center;gap:5px;padding:26px 12px}.empty>.icon{width:29px;height:29px;color:var(--muted);margin-bottom:5px}
.detail{max-width:680px;margin-inline:auto}
.detail>.panel+.panel{margin-top:16px}
.back{display:flex;max-width:680px;margin:0 auto 14px}.back-link .icon,.pages .page-link:first-child .icon{order:-1}
.detail-amt{margin:8px 0 21px;font-weight:740}
.merchant{margin-top:5px;font-size:24px;overflow-wrap:anywhere}
dl .info-line{border-top:1px solid var(--line);padding:11px 0;align-items:baseline}
dl .info-line dt{flex:none}dl .info-line dd{overflow-wrap:anywhere}
.linked{display:grid;justify-items:start;border-top:1px solid var(--line);margin-top:12px;padding-top:12px}
.ai-panel h2{margin-top:12px}
.login{max-width:410px;margin:5vh auto}.login h1{font-size:29px;margin-top:15px}
.login form{display:grid;gap:13px;margin-top:20px}.login small{color:var(--muted)}.error{color:var(--warm)!important}
.password-option{margin-top:22px;color:var(--muted)}.password-option summary{cursor:pointer}
.pair-number{color:var(--ink);font-size:32px;letter-spacing:.08em;font-variant-numeric:tabular-nums}
.skip{position:fixed;left:12px;top:-200px;background:var(--panel);z-index:10;padding:10px}.skip:focus{top:10px}
@media(max-width:740px){
.frame{padding-inline:18px}.header-inner{height:58px}.brand{font-size:18px}.brand img{width:31px;height:31px}
main.frame{padding-top:23px}.heading{margin-bottom:14px}.heading>span{font-size:12px}
.period-select{gap:1px}.period-select strong{font-size:16px}.period-select .arrow{width:32px;height:40px}
.seg a{padding:0 10px;min-height:36px;font-size:13px}.period-bar{gap:6px}
.card-picks{margin-bottom:12px}.card-picks a{padding-inline:12px}
.dashboard{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.dashboard>.stack{display:contents}
.dashboard:not(.budgets) .hero{order:0}.dashboard:not(.budgets) .budget-panel{order:1}.dashboard:not(.budgets) .recent{order:2}
.dashboard:not(.budgets) .panel:not(.budget-panel):not(.recent){order:3}
.panel{padding:17px 18px}.panel,.hero{border-radius:17px}
.panel-top{margin-bottom:8px}.hero{padding:18px 20px 15px}.hero-amount strong{font-size:45px}.hero-amount>span{font-size:18px}
.graph{margin-top:13px}.graph svg{height:54px}.hero-stats{margin-top:9px;padding-top:10px}
.budget-main{margin:5px 0 10px}.budget-main .unset{font-size:25px}
.bottom-nav{bottom:0;left:0;right:0;transform:none;border-width:1px 0 0;border-radius:0;box-shadow:none;padding:5px max(10px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));justify-content:space-around}
.bottom-nav a{min-width:0;flex:1;flex-direction:column;gap:2px;font-size:11px;min-height:49px;border-radius:11px}
.filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.field input,.field select{font-size:16px}.filter-fields .field:last-child{grid-column:1/-1}
.budgets .week-list{order:4}
.txn{gap:8px;min-height:60px}.row-arrow{display:none}.tile{width:34px;height:34px}.tile .icon{width:17px;height:17px}
.history-list .sum{font-size:13px}.week-row{gap:7px}.source-note{align-items:flex-start}
}
@media(max-width:380px){.frame{padding-inline:12px}.hero{padding-inline:17px}.panel{padding-inline:14px}.seg a{padding-inline:8px}.hero-amount strong{font-size:39px}.week-row b{font-size:12px}.txn-text strong,.txn-amount{font-size:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.chat-switch,.chat-switch form,.decision,.compose-actions,.test-connection,.quick-grid{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.chat-switch{justify-content:space-between;margin:0 0 16px}.chat-switch .field select{max-width:min(52vw,320px)}
.chat-switch form{align-items:end}.chat-layout{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}
.exchanges{display:grid;gap:18px;margin-bottom:22px}.exchange{display:grid;gap:9px;min-width:0}
.exchange p,.basis p,.change p{white-space:pre-wrap;overflow-wrap:anywhere}
.user-speech,.ai-speech{padding:11px 14px;border-radius:14px;max-width:100%}
.user-speech{background:var(--accent-bg);margin-left:14%;justify-self:end}
.ai-speech{background:var(--soft);margin-right:5%;justify-self:start}
.exchange small,.test-connection small,.compose-actions small,.change small{font-size:12px;color:var(--muted)}
.basis{margin-top:9px;border-top:1px solid var(--line);font-size:13px}.basis summary{cursor:pointer;color:var(--accent);padding-top:8px}.basis>div{margin:8px 0}
.composer{display:grid;gap:8px}.composer label{font-size:19px;font-weight:720}
.composer textarea{resize:vertical;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:12px;font:inherit;font-size:16px;min-height:100px;width:100%}
.compose-actions,.decision{justify-content:space-between}.secondary,.quick{border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:10px;padding:8px 12px;min-height:42px;font:inherit;font-size:14px;cursor:pointer}
.quick:hover,.secondary:hover{background:var(--accent-bg)}button:disabled{cursor:default;opacity:.53}
.quick-grid,.test-connection{margin:12px 0}.quick-grid{align-items:stretch;gap:7px}
.change{border-top:1px solid var(--line);padding:12px 0}.change h3{margin:3px 0}.decision{justify-content:end;margin-top:9px}
.edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.edit-link{margin-top:12px}.manage-form>.btn{margin-left:auto}
@media(max-width:740px){.chat-layout{grid-template-columns:minmax(0,1fr)}.chat-layout .panel{order:initial!important}.chat-layout>.stack{display:grid}.chat-switch{gap:6px}.chat-switch .field select{max-width:48vw}.edit-grid{grid-template-columns:1fr}.manage-form .btn{width:100%}.compose-actions .btn{margin-left:auto}.chat{padding:14px}}
