:root{color-scheme:light;--paper:#fafaf6;--ink:#192b27;--muted:#586961;--forest:#164632;--lime:#d2f18f;--soft:#edf4df;--line:#dce0d7;--gray:#f0f2eb;--white:#fff;--warn:#993d29;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic","Segoe UI",sans-serif;font-synthesis:none;letter-spacing:-.025em}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);min-height:100vh;min-height:100dvh}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
button:disabled,input:disabled{opacity:.55;cursor:wait}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #427b55;outline-offset:3px}
button{border:0;background:transparent}
[hidden]{display:none!important}
.symbols,.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
h1,h2,h3,p{margin:0}h1{font-size:24px;line-height:1.3}h2{font-size:21px;line-height:1.35}h3{font-size:15px}
.locked{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px}
.login-wrap{width:min(100%,325px)}.login-wrap .status{text-align:center}
.field{display:flex;align-items:center;gap:7px;padding:7px 10px 7px 16px;border:1px solid var(--line);background:white;border-radius:16px;min-height:54px}
.field:focus-within{border-color:#90aa8c}.field input{flex:1;min-width:0;outline:none;border:0;background:transparent;font-size:16px;padding:5px 0;line-height:1.45}.field input::placeholder{color:#617268;opacity:1}.login-field{gap:10px}.lock-icon{color:var(--muted)}
.send,.small-mic,.small-icon{display:inline-grid;place-items:center;padding:0;width:38px;height:38px;flex:none;border-radius:12px}.send{background:var(--gray);color:#365344}.small-mic{background:var(--soft);border-radius:50%;color:var(--forest)}.small-icon{color:var(--muted)}.small-icon .icon{width:17px;height:17px}.send:hover,.small-icon:hover{background:#e4e8df}
.app{max-width:610px;margin:0 auto;min-height:100dvh;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}
.mast{height:76px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 20px;border-bottom:1px solid var(--line)}.brand{padding:0;display:flex;align-items:center;gap:7px;font:750 28px/1.12 "Avenir Next",system-ui,sans-serif;letter-spacing:-1.6px}.mark{width:30px;height:30px;border-radius:9px;background:var(--lime);display:grid;place-items:center;color:var(--forest)}.mark svg{width:27px;height:27px}.account{position:relative}.account-menu{position:absolute;top:calc(100% + 10px);left:0;width:max-content;z-index:5;padding:5px;border:1px solid var(--line);background:var(--white);border-radius:13px;box-shadow:0 6px 22px #172b2520}.account-menu button{display:block;width:100%;padding:12px 14px;text-align:left;border-radius:8px}.account-menu button:hover{background:var(--gray)}
nav{display:flex;align-items:center;gap:2px}nav button{min-height:40px;padding:6px 12px;font-size:14px;font-weight:650;position:relative;border-radius:21px}nav [aria-current]{background:var(--ink);color:white}
.page{padding:20px 18px 40px}.page>h1{margin:9px 0 22px}
.cash{position:relative;isolation:isolate;overflow:hidden;border-radius:22px;background:var(--forest);color:white;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:22px;min-height:148px}
.cash::before{content:"";position:absolute;z-index:-1;pointer-events:none;width:255px;height:180px;right:-32px;bottom:-104px;transform:rotate(-16deg);border:1px solid #335d45;border-radius:50%;box-shadow:0 0 0 7px var(--forest),0 0 0 8px #335d45,0 0 0 15px var(--forest),0 0 0 16px #335d45,0 0 0 23px var(--forest),0 0 0 24px #335d45,0 0 0 31px var(--forest),0 0 0 32px #335d45}
.cash h1{font-size:16px;color:#e3efd8}.balance{font-family:"Avenir Next",system-ui,sans-serif;font-size:clamp(38px,13vw,61px);font-weight:650;letter-spacing:-.065em;line-height:1.18;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.balance.long{font-size:clamp(27px,8vw,44px)}.unit{font-size:12px;letter-spacing:.045em;color:#d0e7cf;font-weight:600}.mic{flex:0 0 auto;display:grid;place-items:center;padding:0;width:60px;height:60px;border-radius:50%;background:var(--lime);color:var(--forest)}.mic .icon{width:30px;height:30px}.mic[aria-pressed=true],.small-mic[aria-pressed=true]{background:#fbe6dc;color:var(--warn)}
.entry-form{margin-top:14px}.section-head,.split{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-head{margin:22px 1px 8px}.section-head span,.sub,.updated,.date-label{font-size:13px;color:var(--muted)}.date-label{margin:13px 4px 2px;font-weight:650}
.txn{display:flex;align-items:center;gap:11px;width:100%;min-height:59px;padding:7px 2px;text-align:left;position:relative}.txn::after{content:"";position:absolute;bottom:0;left:45px;right:1px;height:1px;background:var(--line)}.txn:hover{background:var(--gray);border-radius:12px}.txn .glyph{background:var(--gray);color:#486451;width:33px;height:33px;border-radius:10px;display:grid;place-items:center;font-size:17px;flex:none}.txn.income .glyph{background:#e5f0d8;color:var(--forest)}.txn .desc{min-width:0;flex:1;overflow-wrap:anywhere}.txn b,.txn small{display:block}.txn small{font-size:12px;margin-top:3px;color:var(--muted)}.amount{font:650 18px/1.2 "Avenir Next",system-ui,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.035em}.income .amount,.gain{color:#205940}
.status{margin:9px 2px;font-size:14px;color:var(--muted);line-height:1.55;white-space:pre-line}.status:empty{display:none}.error{color:var(--warn)}.enroll-prompt{margin-top:12px;background:var(--soft);display:flex;justify-content:space-between;align-items:center;border-radius:12px;padding:1px 5px 1px 10px}.text-link,.quiet{padding:10px;color:var(--forest);font-weight:650}.quiet{margin-top:5px}.full{width:100%}.primary,.secondary,.danger{border-radius:13px;min-height:45px;padding:10px 16px;font-weight:650}.primary{background:var(--forest);color:white}.secondary{color:var(--ink);background:var(--gray)}.danger{background:#f8e7df;color:var(--warn)}#more{margin-top:18px}
.month-line{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:8px 0 16px}.month-line select{border:0;background:transparent;font-size:22px;color:var(--ink);font-weight:700;max-width:67%}.totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:18px;background:white;padding:17px 0}.totals>div{padding:0 16px}.totals>div+div{border-left:1px solid var(--line)}.totals strong,.answer-value{display:block;font:650 25px/1.5 "Avenir Next",system-ui,sans-serif;letter-spacing:-.045em;overflow-wrap:anywhere}.chart-block{margin:25px 0}.chart{display:block;width:100%;height:auto;overflow:visible}.chart text{font:11px system-ui,sans-serif;fill:var(--muted);letter-spacing:0}.chart .grid{stroke:var(--line);stroke-width:1}.chart .series{fill:none;stroke:#266447;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.chart .label{fill:#194b33;font-weight:650}.legend{font-size:13px;color:var(--muted)}.legend span::before{content:"";display:inline-block;width:9px;height:9px;margin:0 5px 0 10px;background:var(--forest);border-radius:2px}.legend span+span::before{background:#97aa8c}
.table-wrap{width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}th,td{border-bottom:1px solid var(--line);padding:13px 4px;white-space:normal;overflow-wrap:anywhere}th{font-size:12px;color:var(--muted);font-weight:600}th:last-child,td:last-child,.numeric{text-align:right;font-variant-numeric:tabular-nums}.selected-row{background:#eff4e8}#query-form{margin-bottom:16px}.answer-box{background:var(--soft);padding:20px;border-radius:18px;white-space:pre-line;overflow-wrap:anywhere;line-height:1.6;font-size:17px}.answer-art{width:100%;height:auto;max-height:550px;object-fit:contain;margin:14px auto}.answer-table{margin:12px 0}.empty{padding:22px 0;line-height:1.6;color:var(--muted);font-size:15px}
dialog{position:fixed;inset:0;width:min(405px,calc(100% - 22px));max-height:calc(95dvh - env(safe-area-inset-top));margin:auto;padding:21px 19px;border:0;border-radius:23px;background:var(--paper);color:var(--ink);box-shadow:0 16px 58px #111f2233;overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#1a332c66}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.dialog-head h2{font-size:22px}.dialog-head .small-icon{width:32px;height:32px}.review-quote{font-size:16px;color:var(--muted);line-height:1.55;margin:10px 0 13px;overflow-wrap:anywhere}.tag{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;font-size:12px;padding:4px 7px;border-radius:6px;background:var(--gray);color:var(--muted);font-weight:650}.tag.income{background:var(--soft);color:var(--forest)}.review-list{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:5px 0}.review-row{display:flex;gap:8px;align-items:center;padding:7px 0}.review-row span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.after{margin:15px 0}.after b{font-size:24px;color:var(--forest);letter-spacing:-.045em}#dialog-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px}#dialog-actions:empty{display:none}#dialog-actions button{flex:1;white-space:nowrap}.timer{font-size:13px;font-weight:650;color:var(--forest);margin:6px 0}.details{margin:4px 0}.details div{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--line)}.details dt{color:var(--muted);flex:none}.details dd{margin:0;white-space:pre-line;overflow-wrap:anywhere;text-align:right}.detail-value{font:650 38px/1.25 "Avenir Next",system-ui,sans-serif;letter-spacing:-.05em}.editor{border:0;border-bottom:1px solid var(--line);padding:0 0 14px;margin:0 0 14px}.editor legend{font-weight:650;margin-bottom:8px}.editor label{display:block;font-size:13px;color:var(--muted);margin:8px 0}.editor input,.editor select,.reauth{display:block;width:100%;margin-top:4px;color:var(--ink);font-size:16px;border:1px solid var(--line);border-radius:9px;background:white;padding:9px;line-height:1.35}.edit-pair{display:grid;grid-template-columns:1fr 1.4fr;gap:8px}.toast{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:92%;width:max-content;background:var(--ink);color:white;z-index:6;border-radius:12px;padding:10px 15px;font-size:14px}.detail-note{line-height:1.55;color:var(--muted)}
@media(max-width:350px){.mast{padding:0 12px}.page{padding-left:12px;padding-right:12px}nav button{padding:5px 10px}.cash{padding:17px}.amount{font-size:16px}.edit-pair{grid-template-columns:1fr}}
@media(min-width:650px){.app{border-left:1px solid var(--line);border-right:1px solid var(--line)}.page{padding:24px 25px 46px}.mast{padding:0 27px}.cash{min-height:160px}}
.txn.income,.review-row.income{background-color:var(--soft);border-radius:10px}
.txn.income{width:calc(100% + 12px);margin-inline:-6px;padding-inline:8px}
.txn.income::after{left:51px;right:7px}
.txn.income:hover{background-color:#e0edce}
.review-row.income{margin-inline:-6px;padding-inline:6px}
.voice-label:empty{display:none}
button.is-listening:has(.voice-label){width:auto;min-width:88px;max-width:135px;height:auto;min-height:42px;border-radius:15px;display:inline-flex;gap:5px;align-items:center;justify-content:center;padding:8px}
button.is-listening>.icon{width:16px;height:16px}.voice-label{font-size:12px;line-height:1.3;font-weight:650}
.status[data-voice-processing]{display:flex;align-items:center;gap:7px;color:var(--forest);font-weight:650}
.status[data-voice-processing]::before{content:"";width:12px;height:12px;border:2px solid var(--line);border-top-color:var(--forest);border-radius:50%;animation:voice-turn .8s linear infinite}
button:disabled:has(.voice-label) .icon{visibility:hidden}
button:disabled:has(.voice-label){position:relative}
button:disabled:has(.voice-label)::after{content:"";position:absolute;inset:0;margin:auto;width:15px;height:15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:voice-turn .8s linear infinite}
@keyframes voice-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.status[data-voice-processing]::before,button:disabled:has(.voice-label)::after{animation:none}}
.followup{margin:10px 0 16px;padding:12px 14px;border-radius:13px;background:var(--soft)}
.conversation-state{font-size:14px;color:var(--forest);margin:0 0 8px}
.conversation-lines{list-style:none;margin:0;padding:0;max-height:min(35vh,18rem);overflow-y:auto}
.conversation-lines li{display:grid;grid-template-columns:2.2em minmax(0,1fr);gap:5px;padding:4px 0;font-size:15px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.conversation-lines .speaker{font-size:13px;font-weight:650;color:var(--muted);line-height:1.75}
.followup .reply-mic{margin-top:8px;background:var(--forest);color:white}
#query-reply-form{margin-top:14px}
#query-reply-form:has(+ .status[data-voice-processing]){display:none}
#query-history{border-bottom:1px solid var(--line);margin:12px 0}
#query .conversation-lines{max-height:none;overflow:visible}
.query-exchange{padding:10px 0}
.query-exchange+.query-exchange{border-top:1px solid var(--line)}
.chart-legend{display:flex;flex-wrap:wrap;gap:6px 12px;color:var(--muted);font-size:13px}
.chart-legend span{display:inline-flex;align-items:center;gap:5px}
.chart-legend svg{width:10px;height:10px;flex:none}
.answer-note{font-size:14px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
