
:root{color-scheme:dark;--bg:#0b0b0c;--card:#171719;--line:#303033;--fg:#f5f5f7;--muted:#a1a1aa;--green:#f0f0f2;--red:#d0d0d5;--blue:#b0b0b5}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--fg);font:15px/1.45 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
main{max-width:560px;margin:auto;padding:calc(18px + env(safe-area-inset-top)) 16px calc(105px + env(safe-area-inset-bottom))}
header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}
.brand{display:flex;align-items:center;gap:9px;font-weight:780;font-size:23px;letter-spacing:-.8px}
.brand svg{width:32px;height:32px;color:var(--green)}
.brand em{font-style:normal;color:var(--green)}
h1{font-size:27px;letter-spacing:-.9px;margin:0 0 12px}
h2{font-size:17px;margin:0 0 13px}
h3{font-size:15px;margin:0 0 8px}
p{margin:5px 0;color:var(--muted);font-size:13px}
.card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:17px;margin-bottom:12px}
.hero{background:radial-gradient(ellipse at 100% 0,#414145,transparent 70%),linear-gradient(125deg,#29292d,#19191b);border-color:#414145;padding:20px}
.label,small,label{color:var(--muted);font-size:12px}
.big{font-size:clamp(32px,9vw,45px);font-weight:770;letter-spacing:-1.6px;line-height:1.15;overflow-wrap:anywhere;margin:5px 0 12px}
.green{color:var(--green)}
.red{color:var(--red)}
.muted{color:var(--muted)}
.split{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.stat{min-width:0}
.stat strong{display:block;font-size:21px;letter-spacing:-.45px;overflow-wrap:anywhere}
.row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0}
.row>div:first-child{min-width:0}
.row strong{white-space:nowrap}
.bar{height:8px;border-radius:20px;background:#39393d;overflow:hidden;margin:12px 0 5px}
.bar i{display:block;background:var(--green);height:100%;border-radius:20px}
.divider{border-top:1px solid var(--line);margin:14px 0}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.full{grid-column:1/-1}
input,select,button{font:inherit}
input,select{width:100%;min-width:0;border:1px solid var(--line);background:#101012;color:var(--fg);border-radius:12px;padding:11px;margin:5px 0 0;min-height:44px;font-size:16px}
input:focus,select:focus{outline:2px solid #dedee2;outline-offset:1px}
button{border:0;border-radius:12px;padding:11px 13px;min-height:44px;background:#2b2b2e;color:var(--fg);font-weight:650;cursor:pointer}
button.primary{background:var(--green);color:#111113}
button.ghost{background:transparent;border:1px solid var(--line)}
button.small{font-size:12px;min-height:35px;padding:7px 10px}
button:active{opacity:.7}
.actions{display:flex;gap:8px;margin-top:12px}
.actions>*{flex:1}
.month{width:auto;font-size:13px;max-width:147px;margin:0;min-height:38px;padding:7px}
.nav{position:fixed;bottom:0;left:0;right:0;background:#101012f5;backdrop-filter:blur(20px);border-top:1px solid var(--line);padding:7px 10px calc(7px + env(safe-area-inset-bottom));z-index:5}
.navinner{max-width:560px;display:grid;grid-template-columns:repeat(3,1fr);margin:auto}
.nav button{background:transparent;color:var(--muted);display:flex;align-items:center;flex-direction:column;gap:4px;padding:7px 2px;font-size:11px;border-radius:14px}
.nav button.active{color:var(--green);background:#29292c}
.nav svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.entry{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}
.entry:last-child{border-bottom:0}
.entryicon{width:38px;height:38px;display:grid;place-items:center;background:#29292d;border-radius:12px;flex-shrink:0;color:var(--green);font-size:18px}
.entrytext{flex:1;min-width:0;overflow-wrap:anywhere}
.entrytext b{display:block}
.entryamount{font-weight:700;white-space:nowrap}
.entry button{background:transparent;color:var(--muted);min-height:34px;padding:3px 7px}
.empty{padding:16px 0;text-align:center;color:var(--muted)}
details summary{cursor:pointer;font-weight:650;list-style:none}
details summary::after{content:'＋';float:right;color:var(--muted)}
details[open] summary::after{content:'−'}
details[open] summary{margin-bottom:14px}
.pill{display:inline-block;font-size:11px;padding:4px 8px;border-radius:20px;background:#303034;color:var(--green)}
.hint{background:#202023;border-radius:12px;padding:10px 12px;font-size:12px;color:#c3c3c8;margin:12px 0 0}
.warning{color:#d2d2d7}
.check{display:flex;align-items:center;gap:7px;margin:8px 0 2px}
.check input{width:18px;height:18px;min-height:0;margin:0;accent-color:var(--green)}
.pay{padding:12px 0;border-bottom:1px solid var(--line)}
.pay:last-child{border-bottom:0}
.paytitle{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.paytitle b{font-size:16px}
.chartrow{display:grid;grid-template-columns:50px 1fr auto;gap:8px;align-items:center;margin:10px 0;font-size:12px}
.chartrow .bar{margin:0}
.chartrow b{font-size:12px}
.hidden{display:none!important}
.toast{position:fixed;bottom:calc(95px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:var(--green);color:#141416;padding:11px 16px;border-radius:12px;font-weight:650;z-index:10;max-width:90%;text-align:center;box-shadow:0 8px 30px #0005}
dialog{background:var(--card);border:1px solid var(--line);color:var(--fg);border-radius:24px;padding:20px;width:min(92%,460px);max-height:85dvh;overflow:auto}
dialog::backdrop{background:#0009}
a{color:var(--green)}
.tab[hidden]{display:none}
.inlinecheck{display:flex;align-items:center;gap:6px}
.inlinecheck input{width:18px;min-height:18px;margin:0}
.subtle{font-size:11px}
.balancehelp{margin-top:8px}
.brandline{color:var(--muted);font-size:10px;letter-spacing:1px;text-transform:uppercase}
.right{text-align:right}
.hero{position:relative;overflow:hidden;box-shadow:0 12px 35px #0003}
.big,.stat strong,.entryamount{font-variant-numeric:tabular-nums}
.big{font-weight:680;letter-spacing:-1.8px}
.card{border-radius:24px}
.bar i{transition:width .6s cubic-bezier(.2,.8,.2,1)}
button{transition:transform .18s ease,background .2s,opacity .2s}
button:active{transform:scale(.97)}
.tab:not([hidden]){animation:tabIn .22s ease-out}
.hero.flow-up{animation:flowUp .65s ease-out}
.hero.flow-down{animation:flowDown .65s ease-out}
.delta{font-size:15px;position:absolute;right:19px;top:66px;background:#ededf0;color:#141416;border-radius:20px;padding:5px 10px;pointer-events:none;animation:deltaIn 1.15s ease both;font-variant-numeric:tabular-nums}
.delta.down{background:#39393e;color:#f6f6f8}
.hero .big:first-of-type{padding-right:0}
.entry.fresh{animation:entryIn .4s ease-out}
.toast{animation:toastIn .25s ease-out}
.sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,560px);max-width:100%;border-radius:28px 28px 0 0;padding:16px 20px calc(22px + env(safe-area-inset-bottom));max-height:90dvh}
.sheet[open]{animation:sheetIn .32s cubic-bezier(.2,.8,.2,1)}
.sheet::backdrop{backdrop-filter:blur(4px)}
.handle{width:36px;height:4px;background:#77777c;border-radius:5px;margin:0 auto 15px}
.sheet h2{font-size:22px}
.quick{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 0}
.quick button{min-height:54px}
.statusline{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}
.statusline strong{font-size:16px}
.minor{font-size:13px;color:var(--muted)}
.negative{color:#e0e0e5}
.badge-neutral{display:inline-block;border:1px solid #67676b;padding:4px 9px;border-radius:20px;font-size:12px}
.pay input[type=date]{font-size:14px}
.hero .quick .ghost{background:#2b2b2e}
.nav button.active{background:none;color:#fff}
.nav button.active:after{content:'';height:3px;width:15px;background:#e6e6e9;border-radius:4px}
.nav button:not(.active):after{content:'';height:3px}
.amount-highlight{animation:numberGlow .6s ease-out}
@keyframes tabIn{
from{opacity:.5;transform:translateY(5px)}
to{opacity:1;transform:none}}@keyframes flowUp{
0%{box-shadow:0 0 0 0 #fff3}
100%{box-shadow:0 12px 35px #0003}}@keyframes flowDown{
0%{box-shadow:inset 0 0 0 2px #9999}
100%{box-shadow:0 12px 35px #0003}}@keyframes deltaIn{
0%{opacity:0;transform:translateY(8px) scale(.93)}
15%,65%{opacity:1;transform:none}
100%{opacity:0;transform:translateY(-13px)}}@keyframes entryIn{
from{opacity:0;transform:translateY(-8px)}
to{opacity:1;transform:none}}@keyframes sheetIn{
from{transform:translateY(100%)}
to{transform:none}}@keyframes toastIn{
from{opacity:0;transform:translate(-50%,8px)}
to{opacity:1;transform:translate(-50%,0)}}@keyframes numberGlow{
0%{opacity:.6}
100%{opacity:1}}
@media(prefers-reduced-motion:reduce){
*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
.delta{display:none}}
:root{--bg:#000;--card:#171717;--line:#303030;--fg:#f7f7f7;--muted:#b0b0b0;--green:#f2f2f2}
main{max-width:480px;padding-left:16px;padding-right:16px;padding-top:calc(16px + env(safe-area-inset-top));padding-bottom:calc(110px + env(safe-area-inset-bottom))}
header{margin-bottom:18px}
.brandline{display:none}
.brand svg{display:none}
.month{border:0;background:#171717;font-size:13px}
.card{padding:18px;border:0;border-radius:22px;margin-bottom:12px}
.hero{background:linear-gradient(145deg,#303030,#1a1a1a);box-shadow:none}
.balancehero .big{font-size:42px;margin:6px 0 18px}
.balancehero .quick{margin-top:18px}
.quick button{min-height:48px}
.balancehero .ghost{background:#414141!important;border:0}
.dailycard .big{font-size:34px;margin-bottom:8px}
.dailycard .bar{height:5px;margin:8px 0}
.dailycard .pill{font-size:11px;max-width:52%;white-space:normal;text-align:right}
.innerdetails{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.innerdetails summary{font-size:13px;color:var(--muted)}
small,.label,label{font-size:13px}
p{font-size:13px;line-height:1.5}
.nav{background:#101010ed;padding:6px 8px calc(7px + env(safe-area-inset-bottom));border-color:#292929}
.navinner{max-width:480px;grid-template-columns:repeat(4,1fr)}
.nav button{min-height:56px;font-size:11px}
.nav button.active:after{width:12px}
.iconbutton{min-height:44px;width:44px;padding:10px;background:transparent;color:var(--muted)}
.iconbutton svg{width:22px;height:22px}
.opsquick{margin:0 0 12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.private .delta{display:none}
.sheet{background:#171717}
.sheet .fields{margin:12px 0}
.sheet .innerdetails h3{margin:12px 0 0}
#more button.ghost{margin-top:6px}
#opFilter{margin-bottom:10px}
#opSearch{margin-top:0}
.row strong{white-space:normal;text-align:right}
#homeSavings .big{margin:5px 0}
.entry button{min-width:32px}
.pill{background:#303030}
.chartrow{grid-template-columns:50px 1fr auto}
.bar i{background:#ededed}
[hidden]{display:none!important}
main{max-width:430px;padding-top:calc(10px + env(safe-area-inset-top));padding-bottom:calc(88px + env(safe-area-inset-bottom))}
header{margin-bottom:12px}
.brand{font-size:25px}
h1{font-size:26px;margin:0 0 12px}
.card{padding:14px 16px;margin-bottom:10px;border-radius:20px}
.balancehero .big{margin:0 0 8px;font-size:40px}
.balancehero .quick{margin:10px 0 0}
.balance-detail{margin-top:10px;padding-top:8px}
.balance-detail .split{margin-top:10px}
.dailycard .big{font-size:30px;margin:0 0 4px}
.dailycard .innerdetails{margin-top:8px;padding-top:8px}
.dailycard p{margin:0}
.dailycard .row{margin-bottom:3px!important}
#homeSavings .big{font-size:25px!important}
#homeSavings .bar{margin:4px 0 0;height:5px}
#nextPay h2{font-size:15px}
#recentCard h2{margin:0}
#recentCard .entry{padding:9px 0}
.menu-list{padding:0 14px}
.menu-list button{display:flex;align-items:center;text-align:left;width:100%;background:transparent;border-radius:0;gap:12px;min-height:54px;border-bottom:1px solid #303030;font-size:15px;font-weight:500;padding:8px 0}
.menu-list button:last-child{border:0}
.menu-icon{display:grid;place-items:center;background:#292929;width:32px;height:32px;border-radius:9px;font-size:20px;flex-shrink:0}
.chev{margin-left:auto;color:#999;font-size:24px}
.version-label{text-align:center;margin:20px 0}
.reminder-wrap #reminderHome .card{padding:0;margin:12px 0 0}
.reminder-wrap h2{display:none}
.reminder-wrap #reminderHome:empty{display:none}
.nav button{min-height:52px}
.sheet{max-width:430px}
.pay summary{font-size:14px;padding:8px 0}
.pay .fields{margin:12px 0}
#subBack{margin-bottom:12px}
.opsquick{display:none}
.forecastcard .big{font-size:34px}
.entryamount{white-space:nowrap}
input[type=checkbox]{accent-color:#eaeaea}
.sheet .innerdetails{margin-bottom:10px}

/* 8.1: compact, accessible controls */
header .month{display:none}
header .brand{margin-right:auto}
header{gap:4px}
.header-action{background:transparent;color:#ddd;min-width:44px;min-height:44px;padding:8px;font-size:21px;position:relative}
.balancehero>.row:first-child .label{margin-right:0}
.balancehero>.row:first-child .info81{margin-right:auto}
.cat81 button span{font-variant-emoji:text}
.header-action svg,.info81 svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.header-action[data-badge='1']::after{content:'';position:absolute;right:9px;top:8px;width:7px;height:7px;background:#eee;border-radius:50%}
.info81{width:44px;height:44px;min-width:44px;display:inline-grid;place-items:center;background:transparent;color:#aaa;padding:9px;vertical-align:middle;border:0;border-radius:50%}
.info81 svg{width:18px;height:18px}
.info81:focus-visible,.header-action:focus-visible,.op81:focus-visible{outline:2px solid #fff;outline-offset:2px}
.balancehero .big{font-size:clamp(34px,10vw,43px);margin:0 0 12px}
.balancehero .row{margin:0!important}
.balancehero .daily-inline{border-top:1px solid #484848;padding-top:10px;margin-top:8px}
.daily-inline .big{font-size:30px;margin:0 0 3px}
.daily-inline p{margin:0;font-size:13px;color:#bdbdbd}
.home-actions81{margin:0 0 12px!important}
.home-actions81 button{height:60px;font-size:16px;border-radius:17px}
.home-actions81 .ghost{background:#242424;border:0}
.home-note81{padding:10px 12px;background:transparent;border:0;display:flex;align-items:center;text-align:left;width:100%;gap:10px;color:#d0d0d0;font-weight:400;font-size:14px}
.home-note81 span:first-child{font-size:20px}
.home-note81 span:last-child{margin-left:auto}
.home-note81:empty{display:none}
#homeSavings{cursor:pointer}
#homeSavings .big{font-size:27px!important}
#homeSavings button{min-height:44px}
#recentCard,.reminder-wrap,#nextPay{display:none!important}
.compact81-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.compact81-title h2{margin:0}
.compact81-title .info81{margin:-6px -9px -6px 0}
.help81 p{font-size:15px;line-height:1.6;color:#ddd;white-space:pre-line}
.help81 h2{font-size:22px}
.help81 .primary{width:100%;min-height:48px}
.help81 .row{margin-bottom:8px}
.sheet{overflow:auto;overscroll-behavior:contain}
.sheet .fields input,.sheet .fields select{font-size:16px}
.op81{cursor:pointer}
.op81 .entrytext small{color:#aaa}
.op81 .entryamount{margin-left:auto}
.op81 .entryicon{flex-shrink:0}
.op81:last-child{border-bottom:0}
.ops-filters81{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:10px 0}
.ops-filters81 button{font-size:12px;padding:9px 3px;min-height:44px;background:#242424;border:0}
.ops-filters81 button[aria-pressed='true']{background:#eee;color:#111}
.ops-head81{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ops-head81 h1{margin:0}
.ops-head81 .header-action{font-size:16px}
.ops-list81{padding:10px 15px}
.ops-list81 h2{display:none}
.ops-day81{font-size:12px;color:#aaa;margin:14px 0 2px}
.cat81{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:7px}
.cat81 button{background:#292929;border:0;border-radius:12px;min-height:55px;display:grid;place-items:center;align-content:center;gap:3px;padding:4px 2px;font-size:10px;line-height:1.1;text-align:center;overflow-wrap:anywhere}
.cat81 button span{font-size:19px;line-height:1}
.cat81 button[aria-pressed='true']{background:#eee;color:#111}
.cat81 button[hidden]{display:none}
.cat81 button:active{transform:scale(.96)}
#quickSheet{padding-top:10px}
#quickSheet .handle{margin-bottom:6px}
#quickSheet .row{margin:0}
#quickSheet .fields{margin:4px 0;gap:6px}
#quickSheet .fields .amount81{grid-column:1/-1;text-align:center}
#quickAmount{background:transparent;border:0;text-align:center;font-size:36px!important;font-weight:700;letter-spacing:-1px;padding:2px;min-height:44px}
#quickSheet .fields .date81{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px}
#quickDate{width:auto;min-width:145px;min-height:38px;padding:4px 8px}
#quickSheet .fields label{font-size:12px}
#quickSheet .fields .note81{margin:0}
#quickSheet .note81 input{margin-top:5px}
#quickSheet .actions{margin-top:8px}
#quickHint{font-size:12px;margin:5px 0;min-height:0}
#quickSheet .primary{min-height:44px}
#quickSheet .cat81+button{font-size:12px;min-height:36px}
#quickSheet select#quickCat{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
#quickSheet .native-cat81{display:none}
#savingContent .hero .split{display:none}
#savingContent .hero .divider{display:none}
#savingContent .hero .quick{margin:12px 0 0}
#savingContent .hero .big{margin:5px 0 10px}
#savingContent .forecastcard .big{font-size:31px}
.forecast81svg{width:100%;height:100px;display:block;margin:8px 0 0}
.links81{padding:0 13px}
.links81 button{display:flex;align-items:center;justify-content:space-between;background:none;width:100%;min-height:50px;text-align:left;border-radius:0;border-bottom:1px solid #333}
.links81 button:last-child{border:0}
.menu-list .info81{width:44px;min-width:44px;border:0;display:inline-grid;place-items:center;padding:8px}
.menu81row{display:flex;align-items:center;border-bottom:1px solid #303030}
.menu81row:last-child{border:0}
.menu81row button:first-child{flex:1;min-width:0;border:0}
.menu81row button:first-child:last-child{flex:1}
.menu-list .menu81row .info81{flex:0 0 44px;background:transparent;border:0}
@media(max-height:740px){
#quickSheet .cat81 button{min-height:45px}}

/* 8.2 — one task, one screen */
#recent,#expenseFormCard,#otherIncomeHistory,#savingHistory81,#savingPlan81,#financialState{display:none!important}
#home .balancehero{padding:18px 19px 20px;margin-bottom:12px}
#home .home-actions81{margin-bottom:18px!important}
#home .home-actions81 button{height:56px}
#homeSavings{padding:12px 16px}
#homeSavings .big{margin:2px 0!important}
#homeSavings .row{min-height:44px}
.balancehero .big{font-size:clamp(34px,10vw,44px)}
.daily-inline .big{font-size:30px}
.nav{backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
#expenseSummary .hero{padding:14px 16px}
.ops-head81{margin-bottom:8px}
.ops-head81 h1{margin-right:auto}
.category-chip82{display:inline-flex;align-items:center;gap:8px;min-height:40px;margin:0 0 5px;background:#303030;color:#eee;font-size:13px;border-radius:20px}
.ops-list81 .entry{min-height:60px}
.ops-list81 .entrytext b{font-size:15px}
.ops-list81 .entrytext small{font-size:12px}
.ops-list81 .entrytext small:empty{display:none}
.menu81row button:first-child{min-height:58px}
.menu81row button:first-child .chev{margin-right:2px}
.budget-status82{margin:10px 0;color:#ddd}
.quick-extra82{grid-column:1/-1;margin:4px 0}
.quick-extra82 summary{font-size:13px;color:#bbb;padding:9px 0}
.quick-extra82 .date81{margin:8px 0}
.quick-extra82 .note81{display:block}
.quick-extra82 .note81 input{width:100%}
#quickHint:empty{display:none}
#quickSheet .cat81 button{font-size:11px;min-height:54px}
#quickSheet .actions{position:sticky;bottom:0;background:#171717;padding:5px 0 0}
#salaryForm82{display:grid;gap:12px}
#salaryForm82 label{display:grid;gap:5px}
#savingContent .forecastcard>h2{display:inline-block}
#savingContent .forecastcard>.info81{vertical-align:middle}
#home .home-note81{display:none!important}


/* 8.3 Clarity */
#planMonth{display:none!important}
.insight83{display:flex;width:100%;align-items:center;text-align:left;gap:12px;padding:13px 15px;min-height:76px;background:#171717;color:#eee;border:0}
.insight83>span:nth-child(2){flex:1}
.insight83 small{display:block;color:#aaa;margin-top:3px;font-size:12px;line-height:1.4}
.insightIcon83{font-size:23px}
.period83{color:#bbb;background:none;padding:0 0 10px;text-align:left;font-size:13px;min-height:32px}
.income83{border-top:1px solid #444;margin-top:8px;padding-top:8px}
.full83{width:100%;margin-top:12px}
.rent83{margin-bottom:10px}
.forecastcard input[type=range]{width:100%;accent-color:#eee;margin:10px 0}
.forecastcard .ops-filters81{margin:8px 0}
.forecastcard .innerdetails label{display:grid;gap:6px;margin-top:10px}
.modalbody81>details>summary{display:none}
.modalbody81>details{padding:0!important;margin:0!important;background:none!important;border:0!important}
.check input[data-reminder]{appearance:none;-webkit-appearance:none;width:44px;height:26px;border-radius:20px;position:relative;background:#444;border:0;flex-shrink:0;cursor:pointer}
.check input[data-reminder]:checked{background:#eee}
.check input[data-reminder]:before{content:'';position:absolute;left:3px;top:3px;width:20px;height:20px;background:#bbb;border-radius:50%;transition:transform .2s}
.check input[data-reminder]:checked:before{background:#222;transform:translateX(18px)}
#more .tab h1{margin-bottom:12px}
#more #moreDynamic>details>summary,#more #settings>summary,#more #reminderDetails>summary{display:none}
#forecast83 h2{margin:0}


/* 8.4 Polish — safe areas are applied exactly once. */
:root{color-scheme:dark;--nav-height:64px;--nav-bg:#101010}
html{min-height:100%;background:#000;-webkit-text-size-adjust:100%;overscroll-behavior-y:none}
body{min-height:100vh;min-height:100dvh;background:#000;overscroll-behavior-y:none}
main{padding-bottom:calc(var(--nav-height) + 10px);min-height:100dvh}
.nav{inset:auto 0 0;bottom:0;padding:3px 8px env(safe-area-inset-bottom,0px);background:var(--nav-bg);border-top:1px solid #252525;backdrop-filter:none;-webkit-backdrop-filter:none}
.navinner{align-items:stretch;max-width:430px;gap:0}
.nav button{min-height:48px;padding:5px 2px 3px;gap:3px;line-height:1.15;-webkit-tap-highlight-color:transparent}
.nav svg{width:22px;height:22px}
.nav button.active:after,.nav button:not(.active):after{height:2px}
.fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.fields>*,label,fieldset,.sheet,.modalbody81,.pay{min-width:0;max-width:100%}
input:not([type=checkbox]):not([type=radio]),select,textarea{max-width:100%;min-width:0;-webkit-tap-highlight-color:transparent;color:var(--fg)}
input[type=date],input[type=time],input[type=month]{display:block;width:100%;min-width:0;max-width:100%;appearance:none;-webkit-appearance:none;text-align:left;line-height:1.3;font-size:16px;box-sizing:border-box;padding:10px 8px}
input::-webkit-date-and-time-value{text-align:left;min-height:1.3em;max-width:100%;margin:0}
input::-webkit-datetime-edit{padding:0;max-width:100%}
#quickSheet .fields .date81{display:grid;grid-template-columns:minmax(0,1fr);gap:3px}
input:focus,select:focus,textarea:focus{outline:none;border-color:#aaa;box-shadow:0 0 0 1px #aaa}
button:focus{outline:none}
button:focus-visible{outline:2px solid #c9c9c9;outline-offset:2px}
button,a,summary,label{-webkit-tap-highlight-color:transparent}
.sheet{max-height:calc(100dvh - env(safe-area-inset-top,0px) - 12px);padding-bottom:calc(14px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain}
#subBack{min-height:44px;padding:5px 4px;margin:0 0 8px;background:transparent;border:0;text-align:left;color:#ddd;font-size:14px}
#more.sub84>h1{font-size:23px;margin-bottom:8px}
#setup .setup-step84[hidden]{display:none!important}
#setup .setup-step84{padding:8px 0 12px}
#setup .setup-step84 h3{font-size:18px;margin:0 0 9px}
#setup .setup-step84 p{margin:8px 0}
.setup-progress84{display:flex;gap:5px;margin:12px 0 18px}
.setup-progress84 i{height:3px;background:#414141;flex:1;border-radius:4px}
.setup-progress84 i.on{background:#eee}
#setup .setup-step84 .fields{margin:0}
#setup .actions{margin-top:4px}
#setup .actions button{min-height:44px}
#setupSkip{display:block;width:100%;background:transparent;color:#aaa;margin:6px 0 0;font-size:13px;min-height:44px}
.rule84{padding:9px 0!important;margin:0 0 6px!important;background:none!important;border:0!important;border-bottom:1px solid #333!important}
.rule84 summary{display:flex;align-items:center;gap:7px;min-height:42px;font-size:14px;cursor:pointer;list-style:none}
.rule84 summary::-webkit-details-marker{display:none}
.rule84 summary span:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
.rule84 summary small{color:#aaa;white-space:nowrap}
.rule84 summary:after{content:'›';color:#aaa}
.rule84[open] summary:after{transform:rotate(90deg)}
.rule84 .pay{margin:0;padding:10px 0 4px;background:none;border:0}
.rule84 .pay>.row:first-child b{display:none}
.rule84 .pay>.row:first-child{justify-content:flex-end;margin:0}
.rule84 .pay>.row:first-child button{min-height:44px}
@media(max-width:350px){
.fields{grid-template-columns:1fr}
.fields .full{grid-column:1/-1}
.nav button{font-size:10px}
.nav svg{width:21px;height:21px}
.rule84 summary small{font-size:11px}}


/* 8.4.1: same CSS geometry for fixed navigation and content, no asynchronous measurements. */
:root{--wallet-safe-bottom:env(safe-area-inset-bottom,0px);--wallet-nav-row:52px;--nav-height:calc(var(--wallet-nav-row) + var(--wallet-safe-bottom) + 4px)}
.nav{height:var(--nav-height);padding:3px 8px var(--wallet-safe-bottom);box-sizing:border-box;bottom:0;left:0;right:0}
.navinner{height:var(--wallet-nav-row);grid-template-columns:repeat(4,minmax(0,1fr))}
.nav button{height:100%;min-height:0;min-width:0;justify-content:center;white-space:nowrap}
main{padding-bottom:calc(var(--nav-height) + 10px)}
.toast{bottom:calc(var(--nav-height) + 10px)}
/* Larger grab area, native scrolling preserved everywhere else. */
.sheet:not(#setup) .handle{width:100%;height:24px;margin:-8px auto 6px;background:none;border-radius:0;position:relative;touch-action:none;cursor:grab}
.sheet:not(#setup) .handle:before{content:'';position:absolute;top:8px;left:50%;transform:translateX(-50%);width:36px;height:4px;background:#77777c;border-radius:5px}
.sheet:not(#setup)>.handle+.row h2{touch-action:none;cursor:grab}
.sheet.swipe841{animation:none!important;will-change:transform;}
.sheet.swiped841[open]{animation:none!important;}
.sheet.swipe841::backdrop{transition:opacity .15s ease;opacity:var(--swipe-opacity,1)}
#setup>.handle{display:none}
.bill86row{display:flex;align-items:center;text-align:left;width:100%;gap:10px;padding:12px 0;border:0;border-bottom:1px solid var(--line,#303030);background:none;color:inherit;border-radius:0;min-height:54px}
.bill86row>span:first-child{flex:1;min-width:0}
.bill86row small,.monthTarget86 small{display:block;color:var(--muted,#aaa);font-size:12px;margin-top:3px;white-space:normal}
.bill86row strong{white-space:nowrap;font-size:15px}
.bill86row>span:last-child{color:#aaa}
.bill86totals{margin:8px 0 4px}
.monthTarget86{display:flex;align-items:center;text-align:left;gap:14px;width:100%;color:inherit}
.monthTarget86>span:first-child{flex:1}
.monthTarget86 b{display:block;margin:6px 0;font-size:17px}
.monthTarget86 .bar{margin:8px 0 0}
.goalDate86 h2{font-size:17px}
.goalDate86 .big{margin:6px 0 12px}
.goalDate86 .row>strong{white-space:nowrap}
#billManager86>.row>button{width:auto}
#billDetail86 form,#billForm86 form,#monthGoalForm86{display:grid;gap:10px}
#billDetail86 .actions{margin-top:12px}
#billDetail86 .innerdetails .row{gap:8px}
#billDetail86 .innerdetails .row>span{min-width:0;overflow-wrap:anywhere}
#billMonth86,#billStart86,#goalDate86,#billPaidDate86{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
#billManager86>p{margin-top:12px}
header #month{display:none!important}
.scenario86>#forecast83{padding:10px 0 0;background:none;box-shadow:none;border:0}
.scenario86>summary{font-weight:650}
#billDetail86 .modalbody81>details>summary{display:list-item;padding:9px 0;cursor:pointer}
#billDetail86 .modalbody81>details{margin:8px 0!important;padding:4px 0!important;border-top:1px solid #333!important}

/* Refinement: unified desktop/mobile column and consistent modal controls. */
header{position:sticky;top:0;z-index:5;background:#000;padding:8px 0;margin-top:-8px}
.sheet{width:min(100%,430px);max-width:430px}
.sheet>.handle+.row>button[aria-label="Закрыть"]{width:44px;height:44px;min-width:44px;min-height:44px;border:0;border-radius:12px;background:transparent;color:#aaa;font-size:22px;padding:0;display:grid;place-items:center}
.sheet>.handle+.row>button[aria-label="Закрыть"]:focus:not(:focus-visible){outline:none}
.sheet>.handle+.row>button[aria-label="Закрыть"]:focus-visible{outline:2px solid #999;outline-offset:1px}
.sheet h2{font-weight:650}
.bill86row b,.monthTarget86 b{font-weight:600}
.bill86row small{font-weight:400}
.billgroup87{font-size:12px;color:#aaa;padding:15px 0 3px}
.match87{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#262626;color:#ddd;padding:10px 12px;width:100%;text-align:left;font-size:12px;margin:4px 0 8px}
.goalprogress87{background:#242424;border-radius:14px;padding:12px;margin:8px 0}
.goalprogress87 .big{font-size:26px}
.rate87{display:block;color:#aaa;margin:0 0 12px}
.chartRead87{text-align:center;color:#ddd;font-size:13px;margin:3px 0 8px}
.reportbtn87{margin:0 0 10px 6px}
#goalForm87,#balanceForm87{display:grid;gap:10px}
#billDetail86 .modalbody81>.sensitive81>.big{font-size:32px;margin:6px 0}
#billDetail86 .modalbody81>button.primary{margin:10px 0}
#billDetail86 [hidden],#transferCard [hidden]{display:none!important}
#reminderSettings input[type=checkbox]{appearance:none;width:38px;height:23px;border-radius:20px;position:relative;background:#3a3a3a;min-width:38px;padding:0;vertical-align:middle;border:1px solid #666}
#reminderSettings input[type=checkbox]:checked{background:#eee}
#reminderSettings input[type=checkbox]:before{content:'';position:absolute;top:2px;left:2px;width:17px;height:17px;border-radius:50%;background:#aaa}
#reminderSettings input[type=checkbox]:checked:before{left:17px;background:#222}
.goalDate86>.big{margin:8px 0}
.goalDate86>.note87{font-size:12px;color:#aaa} 


/* 8.8: a single consistent layout for budget, reports and switches. */
.reportbtn87{margin:0}
.periodrow88{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px}
.periodrow88 #period83{margin:0}
.periodrow88 button{flex-shrink:0}
#budgetForm88{display:grid;gap:14px}
#budgetForm88 fieldset{margin:0;padding:0;border:0;min-width:0}
#budgetForm88 legend{font-weight:600;margin-bottom:8px}
#budgetForm88 label.budgetRadio88{display:flex;align-items:center;gap:10px;font-size:14px;color:#eee;margin:8px 0}
#budgetForm88 input[type=radio]{appearance:auto;width:18px;height:18px;min-height:0;padding:0;flex:0 0 18px;accent-color:#ddd;margin:0}
#budgetForm88 [hidden]{display:none!important}
.budgetNote88{font-size:12px;color:#aaa;margin:5px 0}
.budgetSection88{padding-top:12px;border-top:1px solid #333}
#reminderSettings label.switch88{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0;min-height:44px;color:#eee;font-size:14px;line-height:1.35}
#reminderSettings .switch88 span{flex:1;min-width:0}
#reminderSettings .switch88 input[type=checkbox]{appearance:none;-webkit-appearance:none;display:block;position:relative;width:46px;height:28px;min-width:46px;min-height:28px;max-width:46px;flex:0 0 46px;border:0;padding:0;margin:0;border-radius:20px;background:#494949;box-sizing:border-box;cursor:pointer}
#reminderSettings .switch88 input[type=checkbox]:before{content:'';position:absolute;top:3px;left:3px;right:auto;bottom:auto;width:22px;height:22px;border-radius:50%;background:#ddd;transform:none;transition:transform .18s ease}
#reminderSettings .switch88 input[type=checkbox]:checked{background:#eee}
#reminderSettings .switch88 input[type=checkbox]:checked:before{left:3px;transform:translateX(18px);background:#222}
.goalDate86>.goalLabel87{display:block;margin:8px 0}
.goalDate86>.big{font-size:32px}
.goalDate86 .goalQuote88{font-size:27px;margin:3px 0 10px}
.goalDate86 .goalProgress88{margin:10px 0}
.goalDate86 .note87{font-size:12px;line-height:1.5}
.goalDate86 .innerdetails{margin-top:12px}
.scenario86 summary{font-weight:600}
.goalDate86 .full88{width:100%;margin-top:10px}
.billForm88help{font-size:12px}
.insight83 small{line-height:1.45}
.sheet .modalbody81 .actions{gap:8px}
.sheet .modalbody81 .actions button{flex:1;min-width:0}
#homeContent .daily-inline p:empty{display:none!important}
.budgetSection88>b,.budgetSection88>label,#manualBudget88>label{display:block!important}
.budgetSection88>label{margin-top:8px}
.goalDate86>small{display:block!important;line-height:1.45;margin:8px 0!important}
.goalDate86>small:nth-of-type(3){margin-top:15px!important}


/* 8.9 release candidate */
html{scroll-padding-top:82px;scroll-padding-bottom:85px;scroll-behavior:auto}
header{top:env(safe-area-inset-top,0px);box-shadow:0 10px 14px -12px #000}
main section>h1,.ops-head81{scroll-margin-top:82px}
main{overflow:visible}
.sheet .modalbody81{min-width:0}
.sheet .modalbody81>button.full89{width:100%;margin-top:8px}
.sheet>.handle+.row>button[aria-label="Закрыть"]{flex:0 0 44px}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #999;outline-offset:2px}
input[type=number]{appearance:textfield;-moz-appearance:textfield}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#budgetForm88 label.budgetRadio88{background:#242424;border:1px solid #383838;border-radius:13px;padding:12px;min-height:44px}
#budgetForm88 label.budgetRadio88:has(input:checked){border-color:#aaa}
#budgetForm88 input[type=radio]{appearance:none;display:grid;place-content:center;background:#171717;border:1px solid #888;border-radius:50%;width:20px;height:20px;flex:0 0 20px}
#budgetForm88 input[type=radio]:checked:before{content:'';width:10px;height:10px;border-radius:50%;background:#eee}
#budgetForm88 input[type=radio]:checked{border-color:#eee}
.report89grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.report89grid>div{background:#242424;border-radius:14px;padding:12px;min-width:0}
.report89grid strong{display:block;font-size:clamp(17px,5vw,23px);overflow-wrap:anywhere;letter-spacing:-.4px}
.report89grid small{display:block;margin-bottom:4px}
.report89cat{margin:12px 0}
.report89cat .row{margin-bottom:5px}
.report89cat small{white-space:nowrap}
.report89cat .bar{margin:0}
.report89sub{margin-top:16px}
.danger89{border:1px solid #805453!important;color:#f1b9b9!important;background:#241818!important}
.dangerZone89{border-top:1px solid #333;margin-top:12px;padding-top:12px}
.dangerZone89 button{width:100%}
.dangerZone89 p{font-size:12px}
.paygroup89{font-size:12px;color:#aaa;margin:10px 0 3px}
.homeGoal89{margin-top:8px}
.homeGoal89 .bar{height:5px;margin:6px 0}
.forecast89{background:none!important;border:0!important;padding:0!important;margin:0!important}
.forecast89 #forecastAmount83{width:100%}
.forecast89 .innerdetails{margin-top:12px}
#savingSettings .fields{display:block}
#savingSettings .fields label{display:block}
#savingSettings .fields input{width:100%}
.correction89{display:grid;gap:12px}
.correction89 button{width:100%}
.periodrow88 .period83{min-height:44px}
.periodrow88 .reportbtn87{min-height:44px}
.sheet input,.sheet select{min-width:0}
.links81 button{min-height:50px}
.goalDate86 .big{overflow-wrap:anywhere}
#homeSavings .homeGoal89 .row{min-height:0}
#homeSavings .homeGoal89 small{display:block}
.note89{font-size:12px;color:#aaa}
.report89cat b{font-weight:600}
.report89cat .row>span{min-width:0}
.report89grid small{min-height:2.6em}
.modalbody81 .forecast89 details>*{max-width:100%}


/* 8.9.1: native entry and final visual polish */
#quickSheet .fields .amount81{text-align:left;display:grid;gap:6px;margin-bottom:4px}
#quickSheet #quickAmount{background:#101010;border:1px solid #383838;border-radius:14px;padding:12px 14px;min-height:60px;font-size:30px;font-weight:650;letter-spacing:-.7px;text-align:left;width:100%;caret-color:#eee;box-sizing:border-box}
#quickSheet #quickAmount:focus{border-color:#a4a4a4;outline:none}
#quickSheet #quickAmount::placeholder{color:#777}
#quickSheet .actions{position:static;background:transparent;padding:0}
html{scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#555 transparent}
.sheet{scrollbar-width:thin;scrollbar-color:#555 transparent;scroll-padding-top:12px;scroll-padding-bottom:16px}
html::-webkit-scrollbar,.sheet::-webkit-scrollbar{width:7px;height:7px}
html::-webkit-scrollbar-thumb,.sheet::-webkit-scrollbar-thumb{background:#555;border-radius:8px}
html::-webkit-scrollbar-track,.sheet::-webkit-scrollbar-track{background:transparent}
.sheet:has(#quickAmount:focus){max-height:calc(100dvh - env(safe-area-inset-top,0px) - 12px)}
body.private .bar i,body.private #forecast83 svg,body.private .chartRead87{visibility:hidden}
body.private #forecastAmount83:not(:focus){-webkit-text-security:disc}
@media (max-width:500px){
html{scrollbar-gutter:auto}}

/* WalletAI 8.9.2 — shared visual tokens and refinements. */
:root{--surface892:#181818;--control892:#252525;--outline892:#343434;--radius892:20px;--subradius892:13px;--space892:16px;--label892:#b6b6bb}
body{font-feature-settings:'tnum';-webkit-font-smoothing:antialiased}
main{max-width:462px;padding-inline:16px}
header{min-height:64px;margin-bottom:12px;background:#000;gap:12px}
header .brand{font-weight:720;letter-spacing:-.7px}
.card{background:var(--surface892);border-radius:var(--radius892);padding:var(--space892);margin-bottom:12px}
.hero{background:linear-gradient(145deg,#2c2c2e 0%,#1b1b1d 100%);border:1px solid #303032;padding:20px}
.balancehero .big,.hero .big{font-variant-numeric:tabular-nums;letter-spacing:-1.6px}
.card small,.sheet small,.label{color:var(--label892)}
button,input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{border-radius:var(--subradius892)}
button.primary,button.ghost{min-height:44px}
button:focus:not(:focus-visible),#forecastChart83:focus:not(:focus-visible){outline:none}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,#forecastChart83:focus-visible{outline:2px solid #999;outline-offset:2px}
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus,select:focus,textarea:focus{border-color:#96969a}
.home-actions81 button{min-height:52px;font-weight:650}
.home-goal-label892{display:flex!important;justify-content:space-between;gap:8px;align-items:center;font-variant-numeric:tabular-nums}
.insight83{min-height:72px;gap:12px;text-align:left}
.insight83 small{font-weight:450;color:#b9b9be;line-height:1.45}
.insightIcon83{display:grid;place-items:center;min-width:32px;min-height:32px;border-radius:10px;background:#292929}
.sheet{border:1px solid #343434;border-bottom:0;border-radius:24px 24px 0 0;padding-inline:20px;overscroll-behavior:contain}
.sheet h2{font-weight:680;letter-spacing:-.4px}
.sheet .handle{opacity:.8}
.sheet .modalbody81{overflow-wrap:anywhere}
#quickSheet #quickAmount:focus{outline:none;box-shadow:none;border-color:#aaa}
#quickSheet #quickAmount[aria-invalid=true]{border-color:#d98989}
.report89grid>div{border:1px solid #303030;background:var(--control892);border-radius:var(--subradius892)}
.report89grid small{line-height:1.35;min-height:2.7em}
.entry.op81{min-height:60px}
.entryicon{border-radius:12px}
.links81 button{padding-inline:4px}
.nav button{min-height:48px}
#budgetForm88 label.budgetRadio88{padding:12px;border-radius:var(--subradius892)}
@media (min-width:700px){
main{max-width:454px}
.sheet{width:min(100%,454px);max-width:454px}}
@media (max-width:359px){
main{padding-inline:12px}
.card{padding:14px}
.sheet{padding-inline:14px}}
@media (prefers-reduced-motion:reduce){
*,*::before,*::after{scroll-behavior:auto!important;animation-duration:0.01ms!important;transition-duration:0.01ms!important}}

/* 8.9.3: persistent storage conflict and accessible form polish */
#storageConflict893{padding:16px;border:1px solid #6b5151;background:#241d1d;border-radius:16px;margin:0 0 12px;color:#eee} #storageConflict893 p{font-size:13px;line-height:1.5;margin:6px 0 12px} #storageConflict893 .actions{display:flex;gap:8px} #storageConflict893 button{flex:1} .sheet input:focus-visible,.sheet select:focus-visible,#opSearch:focus-visible{outline:2px solid #aaa;outline-offset:0;box-shadow:none} #forecastChart83:focus-visible{outline:2px solid #aaa;outline-offset:2px;border-radius:8px} .sheet{scrollbar-gutter:auto} .sheet .bill86row{min-height:48px} @media(min-width:700px){.sheet[open]{margin-inline:auto}}

/* Intelligence: compact, secondary details, consistent monochrome controls. */
.assistantSection894{border-top:1px solid var(--line,#333);padding-top:14px;margin-top:14px;display:grid;gap:8px}.assistantSection894 h3{margin:0;font-size:15px}.assistantSection894 p,.planPreview894 p{margin:0;font-size:13px;line-height:1.45;color:var(--muted,#aaa)}.assistantBalance894{display:grid;gap:5px;padding:12px;background:rgba(255,255,255,.045);border-radius:12px}.assistantBalance894 strong{font-size:25px}.assistantSection894>button{width:100%;margin:0}.suggest894{display:grid;gap:8px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.1)}.suggest894 small{color:var(--muted,#aaa)}.suggest894 .actions{display:flex;flex-wrap:wrap;gap:6px}.suggest894 button{flex:1;min-width:120px}.assistantToggle894{display:flex!important;align-items:center;justify-content:space-between;gap:12px;min-height:44px;color:inherit!important}.assistantToggle894 input{width:20px!important;height:20px!important;flex:0 0 20px;accent-color:#eee}.planPreview894{margin:6px 0 10px}.plan894 .row{align-items:flex-start;gap:12px}.plan894 .row strong{white-space:nowrap}.plan894{font-size:14px}.planPreview894 summary{font-weight:600}.planPreview894[open]>*:not(summary){margin-top:8px}

/* Smart Automation: keep the original visual hierarchy. */
.smartShortcut895{width:100%;margin:4px 0 8px;min-height:44px;font-size:13px}
.importBlock895{border-top:1px solid var(--line,#303033);margin-top:14px;padding-top:14px}
.importBlock895 p{margin-bottom:0}
#smartText895 textarea{width:100%;resize:vertical;min-height:110px;padding:12px;border:1px solid #333;border-radius:12px;background:#111113;color:inherit;font:inherit;line-height:1.5}
#textError895:not(:empty),#csvError895:not(:empty){color:#f3b4b4}
.reviewRow895{padding:12px 0;border-bottom:1px solid #303033}
.reviewCheck895{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:10px;font-size:14px;color:inherit}
.reviewCheck895 input{width:18px;height:18px;accent-color:#eee;margin:0;padding:0}
.reviewCheck895 span{overflow-wrap:anywhere;min-width:0}.reviewCheck895 small,.reviewCategory895 small{display:block;color:#a6a6aa;font-size:11px;margin-top:3px}
.reviewCategory895{display:block;margin:10px 0 0 30px}.reviewCategory895 select{margin-top:4px}
.csvFile895{display:block;margin:14px 0}.csvFile895 input{width:100%;font-size:12px}
#review895 .primary:disabled{opacity:.45;cursor:not-allowed}

/* 8.9.7: one compact entry point, details only on demand. */
.advisor896{gap:7px}.advisorAction896{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:12px;padding:12px;min-height:54px}.advisorAction896>span:first-child{display:grid;gap:4px;min-width:0}.advisorAction896 small{font-weight:400;color:var(--muted,#aaa);line-height:1.35;white-space:normal}.advisorNote896{display:grid;gap:6px;padding:12px 0;border-bottom:1px solid var(--line,#333)}.advisorNote896 p{margin:0}.advisorHeadline896{font-weight:600}.advisorBill896{padding:9px 0;gap:12px;border-bottom:1px solid var(--line,#333)}.advisorBill896 span{min-width:0;overflow-wrap:anywhere}.advisorBill896 small{display:block;color:var(--muted,#aaa)}.advisorBill896 strong{white-space:nowrap}#purchaseResult896{display:grid;gap:10px;margin-top:12px}#purchaseResult896 .row{gap:10px;align-items:flex-start}#purchaseResult896 strong{white-space:nowrap}#advisorForecast896 .row strong{white-space:nowrap}
#advisorForecast896 .modalbody81>details>summary{display:list-item;padding:9px 0;cursor:pointer}#advisorForecast896 .modalbody81>details{margin:8px 0!important}

/* Simplicity: shared cards, single report and progressive disclosure. */
.goals897>h2{margin-bottom:10px}.goals897 .monthTarget86{display:flex;width:100%;margin:12px 0 0;padding:14px 0 8px;border:0;border-top:1px solid #343434;border-radius:0;background:transparent;text-align:left;gap:12px;align-items:center;justify-content:space-between}.goals897 .monthTarget86>span:first-child{min-width:0;flex:1}.goals897 .monthTarget86 small{display:block}.goalForecast897{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:44px;background:transparent;border:0;border-top:1px solid #343434;border-radius:0;padding:12px 0 0;margin-top:8px;text-align:left;font-size:14px}.useGoal897:disabled{opacity:.55;cursor:default}.assistantLead897{display:grid;gap:10px;padding:14px;background:#232323;border-radius:14px}.assistantLead897 strong{font-size:17px;line-height:1.4}.assistantTools897{display:grid;gap:8px;margin:12px 0}.assistantTools897 button{min-height:44px}.assistDetails897{margin:0!important;border-top:1px solid #343434;padding:10px 0!important}.assistDetails897>summary{min-height:32px;display:flex;align-items:center;justify-content:space-between}.assistDetails897[open]>*:not(summary){margin-top:8px}.accountRows897{display:grid;gap:8px}.accountRows897 button{display:flex;justify-content:space-between;align-items:center;text-align:left;min-height:48px;gap:8px}.reportPeriod897{margin:0 0 12px;grid-template-columns:repeat(2,minmax(0,1fr))!important}.assistantLead897 .primary{width:100%}.smartShortcut895{font-size:13px;border-color:transparent;text-decoration:underline;text-underline-offset:3px;min-height:38px;margin:0 0 4px}.goals897 .monthTarget86 .bar{margin:8px 0 4px}
#insight83 .modalbody81>details.assistDetails897{border-top:1px solid #343434!important;padding:10px 0!important}
#insight83 .modalbody81>details.assistDetails897>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;min-height:32px}

.goals897 .monthly897{border-top:0;border-bottom:1px solid #343434;margin:0 0 12px;padding:8px 0 14px}.goals897 .longGoalHead897 h2{font-size:15px;margin:0}.goals897 .goalForecast897{margin-top:12px}.goals897 .useGoal897[hidden]{display:none!important}

#storageFailure898{padding:16px;border:1px solid #6b5151;background:#241d1d;border-radius:16px;margin:0 0 12px;color:#eee}#storageFailure898 p{font-size:13px;line-height:1.5;margin:6px 0 12px}#setup .setupBill898{border:1px solid #393939;border-radius:14px;padding:12px;margin:12px 0}#setup .setupBill898 .row{margin-top:0}#setup #setupAddBill898{width:100%;margin:8px 0}#setup .setup-step84 label{display:block;margin-bottom:10px}#setup .setup-step84[hidden]{display:none}#setup .setup-step84 details{margin-top:12px}

/* 8.9.9: no background scrolling behind an open sheet; preserve desktop centering. */
html:has(dialog[open]){overflow:hidden}
.sheet[open]{overscroll-behavior:contain}
#setupError899{margin:8px 0 12px;padding:12px;border:1px solid #6b5151;border-radius:12px;background:#241d1d;color:#f1dada;font-size:13px;line-height:1.5}
#setupError899[hidden]{display:none}
#setupExisting899{color:var(--label892);font-size:13px}
#setup .setupBill898 input,#setup .setupBill898 select{width:100%;min-width:0}

/* Independent onboarding skips */
#setupSkipStep8991{width:100%;margin:8px 0 0;min-height:44px}
#setupSkip[hidden]{display:none!important}

/* RC2 support */
.feedbackRC2 form{display:grid;gap:10px}.feedbackRC2 form label{display:grid;gap:5px}.feedbackRC2 textarea{width:100%;min-height:96px;resize:vertical;border:1px solid #444;border-radius:12px;padding:12px;background:#101010;color:#f7f7f7;font:inherit;font-size:16px}.feedbackRC2 .fbConsent{display:flex;align-items:flex-start;gap:10px;font-size:13px}.feedbackRC2 .fbConsent input{width:20px;min-width:20px;height:20px;min-height:20px;margin-top:3px}.feedbackRC2 #fbChallenge{min-width:0;max-width:100%;overflow:auto}.feedbackRC2 button:disabled{opacity:.45;cursor:default}.feedbackRC2 #fbStatus:empty{display:none}.feedbackRC2 #fbStatus{overflow-wrap:anywhere}.feedbackRC2 #fbCount{text-align:right}.feedbackRC2 input[type=file]{font-size:13px;overflow:hidden}.feedbackRC2 #fbSend{width:100%}

/* RC3.3: compact success view and edge-to-edge navigation. */
.feedbackRC2 #fbSuccess{display:grid;gap:14px;padding:8px 0 0}
.feedbackRC2 #fbReceipt{margin:0;text-align:center;overflow-wrap:anywhere}
.feedbackRC2 #fbNew{width:100%;min-height:48px}
.feedbackRC2 #fbSuccess[hidden],.feedbackRC2 #fbForm[hidden]{display:none!important}
:root{--wallet-nav-row:48px;--nav-bg:#000;--nav-height:calc(var(--wallet-nav-row) + var(--wallet-safe-bottom) + 1px)}
.nav{position:fixed;inset:auto 0 0;bottom:0;height:var(--nav-height);padding:0 8px var(--wallet-safe-bottom);background:var(--nav-bg);border-top:1px solid #252525;box-shadow:0 40px 0 var(--nav-bg)}
.navinner{height:var(--wallet-nav-row)}
.nav button{height:100%;min-height:0;padding:3px 2px 2px}
main{padding-bottom:calc(var(--nav-height) + 8px)}
html{scroll-padding-bottom:calc(var(--nav-height) + 8px)}

/* RC3.4: Telegram support sheet only. */
.supportRC34 .supportIntroRC34{text-align:center;padding:12px 8px 8px}
.supportRC34 .supportIconRC34{display:grid;place-items:center;width:60px;height:60px;margin:0 auto 15px;border-radius:50%;background:#252527;color:#f5f5f5}
.supportRC34 .supportIconRC34 svg{width:30px;height:30px}
.supportRC34 .supportIntroRC34 h3{margin:0 0 8px;font-size:21px}
.supportRC34 .supportIntroRC34 p,.supportRC34 .supportHintRC34,.supportRC34 .supportPrivacyRC34{color:#aaa;text-align:center;font-size:13px;line-height:1.55}
.supportRC34 .supportLinkRC34{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;box-sizing:border-box;padding:12px 16px;border-radius:14px;background:#f4f4f4;color:#111;text-decoration:none;font-weight:650;font-size:16px}
.supportRC34 .supportLinkRC34 svg{width:20px;height:20px;flex-shrink:0}
.supportRC34 .supportLinkRC34:focus-visible{outline:2px solid #fff;outline-offset:3px}
.supportRC34 #supportOfflineRC34{text-align:center;font-size:13px}
.supportRC34 #supportOfflineRC34[hidden]{display:none!important}
.supportRC34 .supportPrivacyRC34{border-top:1px solid #303030;padding-top:12px;margin-bottom:0}
.supportRC34 .supportPrivacyRC34 a{color:#eee}

/* Install invitation: intentionally separate from navigation and financial views. */
.install-card341 .install-intro341{display:flex;align-items:center;gap:12px}
.install-card341 .install-intro341 img{flex:none;border-radius:12px}
.install-card341 h2{margin:0 0 3px;font-size:17px}
.install-card341 p{margin:0}
.install-card341 .actions>button{min-width:0}
#installGuide341 p{font-size:14px;line-height:1.55}
