:root{--ink:#17241e;--muted:#7b8982;--line:#edf0ed;--green:#18794d;--green-light:#eaf4ed;--red:#bd5550;--bg:#f6f7f6;--radius:18px;font-family:"Avenir Next","PingFang SC","Microsoft YaHei",sans-serif;background:#e9eceb;color:var(--ink)}
body{background:#e9eceb}button,input,select,textarea{font:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #81b394;outline-offset:3px}svg{display:block}h1{font-size:31px;letter-spacing:-1.2px;font-weight:600}h2{font-size:15px;font-weight:600;letter-spacing:-.35px}h3{font-size:15px}.preview-note{display:flex;gap:7px;align-items:center;justify-content:center;height:34px;padding:0 12px;background:transparent;color:#6b7b72;font-size:11px}.demo-dot{width:5px;height:5px;background:#789984;border-radius:50%;flex-shrink:0}
.workspace{max-width:1576px;margin:0 auto 24px;background:white;padding:13px;border-radius:27px;box-shadow:0 22px 80px #173b2810}.shell{display:grid;grid-template-columns:207px minmax(0,1fr);gap:12px;min-height:calc(100vh - 85px)}.sidebar{height:auto;position:relative;top:auto;border:0;border-radius:17px;background:#f6f7f6;padding:24px 15px 16px;align-self:stretch}.brand{padding:0 8px;margin-bottom:40px;gap:9px;font-size:17px;letter-spacing:-.5px}.brand-mark{background:transparent;color:#0c633c;width:33px;height:33px}.brand-mark svg{width:33px;height:33px}.nav-caption{font-size:10px;display:block;color:#8b958f;margin:0 12px 15px}.sidebar nav{gap:9px}.sidebar nav button{position:relative;font-size:13px;padding:12px 10px;background:transparent;border-radius:6px;color:#7a8d80;gap:12px}.sidebar nav button svg{width:19px;height:19px}.sidebar nav button.active{background:#edf5ef;color:#173c26;font-weight:600}.sidebar nav button.active:before{content:"";position:absolute;left:-15px;top:11px;bottom:11px;width:4px;background:#19804e;border-radius:0 5px 5px 0}.nav-count{font-size:9px;padding:2px 5px;border-radius:4px;background:#114c30;color:white;min-width:19px;text-align:center}.side-bottom{padding:0;margin-top:42px;gap:14px}.side-bottom .nav-caption{margin-bottom:0}.side-bottom button{display:flex;align-items:center;gap:12px;padding:4px 10px;font-size:12px;color:#7a8d80}.side-bottom button svg{width:18px;height:18px}.sidebar-sync{margin-top:auto;padding:18px 15px 15px;min-height:164px;background:#073922;border-radius:13px;color:white;position:relative;overflow:hidden}.sidebar-sync>*:not(svg){position:relative;z-index:1}.yimu-symbol{height:26px;width:26px;border-radius:50%;background:#edf6ee;color:#17633a;display:grid;place-items:center;font-size:14px;font-weight:600;margin-bottom:11px}.sidebar-sync strong{display:block;font-size:12px;font-weight:500}.sidebar-sync small{display:block;font-size:10px;color:#bfd3c3;margin:5px 0 15px}.sidebar-sync button{width:100%;padding:7px 9px;font-size:10px;background:#177247;color:white;border-radius:30px}.sidebar-sync>svg{position:absolute;right:0;bottom:0;width:100%;height:150px;fill:none;stroke:#419e633e;stroke-width:1.5}
.main{padding:0 0 0 0;margin:0;max-width:none;display:flex;flex-direction:column;gap:12px;background:transparent}.topbar{height:70px;border:0;background:#f6f7f6;border-radius:16px;padding:0 23px;flex-shrink:0}.topbar-right{gap:18px}.currency-label{font-size:11px;color:#65786a}.notification{width:35px;height:35px;border-radius:50%;background:white;position:relative;display:grid;place-items:center}.notification svg{width:18px;height:18px}.notification i{position:absolute;width:5px;height:5px;background:#328f5f;border:1.5px solid #f6f7f6;border-radius:50%;right:7px;top:7px}.profile{display:flex;gap:9px;align-items:center;padding-left:1px}.profile-avatar{display:grid;place-items:center;width:37px;height:37px;background:#ead9c5;color:#655444;border:3px solid #f1e8dc;border-radius:50%;font-size:14px;font-weight:600}.profile strong{font-size:11px;display:block;font-weight:600}.profile small{font-size:10px;display:block;margin-top:3px}.mobile-settings{display:none}#quick-search{display:flex;align-items:center;width:258px;height:38px;background:white;border-radius:22px;padding:0 13px;gap:9px}#quick-search>svg{width:16px;height:16px;color:#253b2e;flex-shrink:0}#quick-search input{border:0;outline:0;width:100%;min-width:0;font-size:11px;background:transparent}#quick-search input::placeholder{color:#8c9790}.key-hint{background:#f2f3f2;font-size:9px;padding:3px 5px;border-radius:4px;white-space:nowrap;color:#8b938e}#ledger-content{background:#f6f7f6;border-radius:16px;padding:25px 22px 22px;flex:1;min-width:0}#ledger-content:focus{outline:none}.heading{margin:0 0 25px;align-items:center}.heading p{font-size:11px;margin-top:6px}.heading .actions{gap:9px}.month-label{font-size:11px;color:#7c8b81;padding-right:10px}.button{min-height:38px;border-radius:24px;border:1px solid #246944;background:white;color:#194f30;font-size:11px;font-weight:500;padding:9px 16px}.button.primary{background:linear-gradient(160deg,#0a3924,#22895a);border-color:#0c5130;color:white}.plus{font-size:15px;vertical-align:-1px;margin-right:4px}.text-button{color:#24734b;font-size:11px;font-weight:500;padding:6px 0;white-space:nowrap}.tiny-button{border:1px solid #2a6846;border-radius:20px;padding:5px 10px;font-size:10px;color:#246342}.card{border:0;box-shadow:none;background:white;border-radius:17px;padding:21px;margin:0 0 14px}.card-head{margin-bottom:17px;gap:10px}.card-head>small,.subtle-label{font-size:10px;color:#8c9990}.footer{padding:1px 7px 0;font-size:10px;display:flex;justify-content:space-between;margin-bottom:0;color:#8c9a91}
.overview-grid{display:grid;grid-template-columns:1.18fr 1fr 1fr 1fr;gap:13px;margin-bottom:14px}.overview-card{padding:18px 19px 19px;background:white;border-radius:17px;min-width:0;display:flex;flex-direction:column;align-items:stretch}.metric-label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;font-weight:500}.circle-link{width:27px;height:27px;border-radius:50%;border:1px solid #d1d9d2;display:grid;place-items:center;flex-shrink:0}.circle-link svg{width:16px;height:16px}.overview-card>strong{font-size:34px;line-height:1.3;font-weight:500;letter-spacing:-1.5px;margin:17px 0 10px;font-variant-numeric:tabular-nums;white-space:nowrap}.overview-card>small{font-size:10px;letter-spacing:-.2px;color:#819588}.overview-card.featured{background:linear-gradient(125deg,#08432c,#1b8857);color:white}.overview-card.featured .circle-link{background:white;color:#17472f;border-color:white}.overview-card.featured>small{color:#c2e0ce}
.home-grid{display:grid;grid-template-columns:1.48fr 1fr 1.02fr;gap:14px;align-items:start}.home-grid>div{min-width:0}.home-grid .card:last-child{margin-bottom:0}.spending-card{min-height:276px}.chart-subtitle{font-size:10px;color:#7f8e85;display:flex;align-items:center;justify-content:space-between}.chart-subtitle strong{font-size:15px;color:#285138;font-weight:500}.bar-chart{display:flex;gap:13px;align-items:stretch;margin-top:22px;height:176px}.bar-slot{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;justify-content:space-between;gap:7px}.bar-slot>small{font-size:9px;white-space:nowrap;color:#8b9b8f}.bar-space{width:100%;height:100%;display:flex;align-items:flex-end;justify-content:center}.spending-bar{width:100%;max-width:39px;border-radius:35px;background:#55b887;border:1px solid #45ac79}.spending-bar.dark{background:#114c30;border-color:#114c30}.spending-bar.striped{background:repeating-linear-gradient(-45deg,transparent 0 3px,#729c824f 3px 4.2px);border:1px solid #d6e3d9}.bar-slot>span{font-size:10px;color:#8b9c91}.recent-card .row{padding:12px 0;border-top:0;gap:12px}.recent-card .row:last-child{padding-bottom:0}.recent-card .row strong{font-size:12px;font-weight:500}.recent-card .row small{font-size:10px;margin-top:3px}.recent-card .row .amount{font-size:13px;font-weight:500}.transaction-icon{border-radius:50%;width:34px;height:34px;background:#f0f4f0;color:#648270}.recent-card .row:has(.green) .transaction-icon{background:#def2e5;color:#217d4c}.recent-card .row-start{gap:12px}.recent-card{min-height:260px}
.count-badge{font-size:10px;background:#f1f5f1;padding:4px 7px;border-radius:8px;color:#809487}.attention-card{min-height:306px}.attention-item{position:relative;border-bottom:1px solid #f2f4f2;padding:0 0 14px 30px;margin-bottom:15px}.attention-icon{position:absolute;left:0;top:0;font-size:15px;color:#729681;display:grid;place-items:center;width:23px;height:23px;background:#f0f5f1;border-radius:50%}.attention-item>strong{font-size:12px;font-weight:500;line-height:1.6;display:block}.attention-item>p{font-size:10px;color:#8d9a90;margin-top:3px;line-height:1.7}.attention-item .text-button{font-size:10px;padding-top:6px}.attention-more{font-size:10px;color:#708a79;display:flex;justify-content:space-between;align-items:center;width:100%}.attention-more svg{width:16px;height:16px;color:#376e4a}.budget-card{min-height:291px}.gauge{position:relative;width:100%;max-width:245px;margin:0 auto 2px}.gauge svg{width:100%;display:block}.gauge-track{stroke:#e6eeE8;stroke-width:25;fill:none;stroke-linecap:round}.gauge-progress{stroke:#1a8655;stroke-width:25;fill:none;stroke-linecap:round}.gauge-value{position:absolute;left:0;right:0;bottom:15px;display:grid;justify-items:center}.gauge-value strong{font-size:38px;line-height:1;letter-spacing:-1.5px;font-weight:500}.gauge-value strong span{font-size:26px;margin-left:1px}.gauge-value small{font-size:10px;margin-top:4px;color:#719482}.budget-amounts{display:flex;justify-content:space-between;gap:10px;font-size:9px;color:#8c9a90}.budget-amounts>span:last-child{text-align:right}.budget-amounts strong{display:block;font-size:12px;color:#355a40;margin-top:3px;font-weight:500}.budget-note{border-top:1px solid #f1f3f0;display:flex;gap:7px;align-items:center;margin-top:13px;padding-top:12px;font-size:10px;color:#7c9081}.budget-note i{width:6px;height:6px;border-radius:50%;background:#1d8657;flex-shrink:0}.budget-note b{font-weight:500;color:#206943}.pending-note{display:block;font-size:9px;margin-top:7px;color:#9ca397}
.allocation-card{min-height:288px}.allocation-strip{display:flex;gap:3px;height:16px;border-radius:12px;overflow:hidden;margin:23px 0 22px}.segment.binance{background:#154e33}.segment.aster{background:#40916b}.segment.bank{background:#9dcdab}.segment.hl{background:#d5e6d6}.allocation-row{display:grid;grid-template-columns:minmax(0,1fr) auto 32px;gap:10px;align-items:center;margin-top:17px}.allocation-row button{text-align:left;display:flex;align-items:center;gap:7px;font-size:11px;padding:0;min-width:0;white-space:nowrap}.allocation-row .segment{display:block;width:6px;height:6px;border-radius:50%;flex-shrink:0}.allocation-row>span{font-size:11px;white-space:nowrap;color:#4d6858;font-variant-numeric:tabular-nums}.allocation-row>small{font-size:9px;text-align:right;color:#91a094}.sync-card{background:#063820;border-radius:17px;padding:22px;min-height:239px;color:white;position:relative;overflow:hidden;margin-top:14px}.sync-card>div{position:relative;z-index:1}.sync-card .status-dot{font-size:10px;color:#c3dacb}.sync-card .status-dot:before{background:#b4e1bf}.sync-card h2{font-size:25px;font-weight:500;letter-spacing:-.6px;margin:20px 0 7px}.sync-card small{font-size:12px;color:#94b9a2}.sync-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:45px;font-size:10px;color:#a0c8b0}.sync-footer button{height:28px;width:28px;border:1px solid #6da7807a;border-radius:50%;display:grid;place-items:center}.sync-footer svg{height:16px;width:16px;color:#d5eadb}.sync-lines{position:absolute;right:-85px;top:0;height:100%;width:350px;fill:none;stroke:#459d6566;stroke-width:1.3}
.hero{background:linear-gradient(130deg,#104e33,#22855b);color:white;border:0;padding:26px 30px;border-radius:18px;margin-bottom:15px}.hero .hero-label{color:#ccdfd1;font-size:12px}.hero .total{font-size:42px;font-weight:500;letter-spacing:-1.5px;margin:12px 0}.hero small{color:#b0d0bb;font-size:10px}.hero-side{border-color:#77ad8966;padding-left:30px}.hero-side strong{font-size:20px;font-weight:500}.hero-side .text-button{color:#b8dfc5}.asset-grid{gap:14px}.asset-card{padding:25px;min-height:215px;margin-bottom:0}.asset-card .account-title h3{font-size:14px}.asset-card .balance{font-size:33px;font-weight:500;margin:23px 0 8px}.account-icon{width:35px;height:35px;border-radius:50%;font-size:13px}.asset-card .actions{margin-top:17px}.asset-grid+.card{margin-top:15px}.summary-grid{gap:14px;margin-bottom:15px}.summary{padding:20px;margin:0}.summary strong{font-size:30px;font-weight:500}.columns{gap:15px}.filter-line{margin-bottom:20px}.pill,.tag{border-radius:7px}.tabs{margin-bottom:18px}.tabs button.selected{background:#e8f2eb;border-color:transparent;color:#1b673f;box-shadow:none}.book-chips button.selected{background:#deeee2;color:#237045}.note{background:#f6f8f6;font-size:11px;color:#7a8b7f}.row{border-color:#f1f3f0;padding:15px 0}.row strong{font-size:13px}.row small{font-size:10px}.row .amount{font-size:14px;font-weight:500}.footnote,.footnote p{font-size:11px}.trade-head p{font-size:10px}.trade-result strong{font-size:26px;font-weight:500}.trade-meta{border-color:#f0f4f0}.todo-number{background:#eef4ed;color:#508568}.form-error{font-size:12px}dialog{border-radius:20px;border:0;box-shadow:0 25px 100px #19342122}dialog::backdrop{background:#112c1d45;backdrop-filter:blur(4px)}.dialog-head{border-color:#edf1ed}.dialog-body input:focus,.dialog-body select:focus,.dialog-body textarea:focus{outline:3px solid #3a9c6020;border-color:#5d9970}.dialog-footer{background:#f7f9f7}.dialog-footer .button{min-width:80px}#toast{background:#164e33;font-size:12px}
@media(min-width:1600px){.workspace{margin-top:10px}.shell{min-height:900px}.main{padding:0}.heading{margin-bottom:27px}#ledger-content{padding:28px}.overview-card>strong{font-size:40px}.home-grid{grid-template-columns:1.42fr 1fr 1fr}.spending-card{min-height:307px}.bar-chart{height:205px}.attention-card{min-height:318px}.allocation-card{min-height:297px}.sync-card{min-height:270px}.recent-card{min-height:291px}.budget-card{min-height:305px}}
@media(max-width:1200px) and (min-width:701px){.shell{grid-template-columns:170px minmax(0,1fr)}.sidebar{padding:22px 12px}.brand{font-size:15px;gap:6px}.overview-grid{grid-template-columns:1.1fr 1fr 1fr 1fr;gap:10px}.overview-card{padding:16px 14px}.overview-card>strong{font-size:27px}.home-grid{grid-template-columns:1.35fr 1fr}.home-right{display:grid;grid-column:1/-1;grid-template-columns:1.35fr 1fr;gap:14px}.sync-card{margin:0;min-height:250px}.allocation-card{margin:0}.heading .actions{gap:6px}.month-label{display:none}#ledger-content{padding:23px 18px}.bar-chart{gap:10px}.spending-card{min-height:282px}.attention-card{min-height:300px}}
@media(max-width:850px) and (min-width:701px){.overview-grid{grid-template-columns:1fr 1fr}.overview-card>strong{font-size:32px}.topbar{padding:0 17px}#quick-search{width:200px}.profile>span:last-child{display:none}.topbar-right{gap:10px}.heading{align-items:flex-start}.heading .actions{flex-direction:column;align-items:flex-end}.home-grid{grid-template-columns:1fr}.home-middle,.home-right{display:grid;grid-template-columns:1fr 1fr;gap:14px}.home-middle .card{margin:0}.home-left .recent-card{margin-bottom:14px}.home-middle{margin-bottom:14px}.allocation-row{gap:4px;grid-template-columns:1fr auto}.allocation-row>small{display:none}.sidebar nav button.active:before{left:-12px}.asset-grid{grid-template-columns:1fr}}
@media(max-width:700px){body{background:#f6f7f6}.preview-note{height:29px;font-size:9px;padding:0 8px;white-space:nowrap;letter-spacing:-.2px}.workspace{padding:0;border-radius:0;box-shadow:none;margin:0}.shell{display:block;min-height:calc(100dvh - 29px)}.main{padding:0 0 84px;gap:0}.sidebar{position:fixed;top:auto;bottom:0;height:auto;z-index:10;width:100%;background:#fff;padding:7px 9px calc(9px + env(safe-area-inset-bottom));border-radius:17px 17px 0 0;border-top:1px solid #edf1ed}.brand,.side-bottom,.sidebar-sync,.sidebar>.nav-caption{display:none}.sidebar nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:0}.sidebar nav button{display:flex;flex-direction:column;align-items:center;padding:7px 1px;font-size:10px;gap:5px;border-radius:12px}.sidebar nav button.active{background:#edf5ef;color:#185c39}.sidebar nav button.active:before{display:none}.sidebar nav button svg{height:20px;width:20px}.nav-count{position:absolute;left:calc(50% + 6px);top:0;border-radius:8px;font-size:8px;min-width:15px;padding:1px 3px}.topbar{border-radius:0;height:59px;margin:0 16px;padding:0;background:transparent;gap:13px}#quick-search{width:calc(100% - 95px);height:34px;padding:0 11px}#quick-search input{font-size:11px}.key-hint{font-size:8px;padding:3px}.topbar-right{gap:12px;flex-shrink:0}.profile{display:none}.currency-label{font-size:10px}.notification{width:30px;height:30px}.notification svg{width:16px;height:16px}.mobile-settings{display:block;padding:0;font-size:10px;color:#6b8475}.notification{display:none}#ledger-content{padding:17px 16px 20px;border-radius:0;background:transparent}.heading{margin:0 0 21px;align-items:center}.heading h1{font-size:27px;letter-spacing:-.8px}.heading p{font-size:10px;margin-top:7px;max-width:none}.heading .actions{gap:7px}.heading .actions .button:last-child,.month-label{display:none}.heading .button{font-size:10px;padding:9px 13px;min-height:35px}.plus{font-size:13px}.overview-grid{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.overview-card{padding:16px 14px;border-radius:16px}.metric-label{font-size:10px;gap:4px}.circle-link{height:23px;width:23px}.circle-link svg{height:14px;width:14px}.overview-card>strong{font-size:26px;margin:14px 0 10px;letter-spacing:-1px}.overview-card>small{font-size:8px;white-space:nowrap;letter-spacing:-.25px}.home-grid{display:flex;flex-direction:column;gap:12px}.home-grid>div{width:100%}.home-left{display:contents}.home-middle{display:contents}.home-right{display:contents}.spending-card{order:0;min-height:265px}.budget-card{order:1}.recent-card{order:2;min-height:260px}.allocation-card{order:3;min-height:245px}.attention-card{order:4;min-height:290px}.sync-card{order:5;margin-top:0;min-height:220px}.home-grid .card{margin:0!important;border-radius:17px;padding:20px}.card-head{margin-bottom:17px}h2{font-size:15px}.bar-chart{height:177px;gap:12px;margin-top:24px}.bar-slot>small{font-size:8px}.bar-slot>span{font-size:9px}.chart-subtitle{font-size:9px}.chart-subtitle strong{font-size:13px}.gauge{max-width:239px}.gauge-value strong{font-size:41px}.budget-amounts{font-size:10px}.budget-amounts strong{font-size:14px}.budget-note{font-size:11px}.pending-note{font-size:9px}.budget-card{min-height:310px}.allocation-row{grid-template-columns:minmax(0,1fr) auto 34px;gap:13px}.allocation-row button,.allocation-row>span{font-size:12px}.allocation-row>small{font-size:10px}.allocation-strip{margin:20px 0}.footer{padding:0 20px;font-size:8px}.hero{display:block;padding:24px;border-radius:17px}.hero .total{font-size:34px}.hero-side{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #77ad8966;margin-top:20px;padding:19px 0 0;border-left:0}.hero-side strong{font-size:19px}.asset-grid{grid-template-columns:1fr;gap:12px}.asset-card{padding:23px;margin:0}.asset-card .balance{font-size:31px}.asset-grid+.card{margin-top:12px}.summary-grid{grid-template-columns:1fr 1fr;gap:11px}.summary{padding:18px 15px;margin-bottom:0;border-radius:17px}.summary strong{font-size:25px}.summary-grid .summary:last-child{padding:18px}.filter-line{gap:8px;margin-bottom:17px}.filter-line input{font-size:13px}.row .amount{font-size:13px}.row strong{font-size:12px}.row small{font-size:10px}.button{font-size:11px}.card{padding:20px}.columns{gap:12px}.dialog-head{padding:21px}.dialog-body{padding:21px}.dialog-footer{padding:16px 21px}.dialog-body input,.dialog-body select,.dialog-body textarea{font-size:16px}.dialog-footer .button{font-size:12px}.trade-result strong{font-size:23px}#toast{bottom:96px}}
@media(max-width:360px){#ledger-content{padding-left:12px;padding-right:12px}.overview-card{padding:15px 12px}.overview-card>strong{font-size:23px}.overview-card>small{font-size:7.5px}.metric-label{font-size:9px}.heading p{font-size:9px}.heading .button{padding:8px 11px}.circle-link{height:21px;width:21px}.bar-chart{gap:10px}.bar-slot>small{font-size:7px}.allocation-row{gap:8px}.allocation-row button{font-size:11px}.allocation-row>span{font-size:11px}.allocation-row>small{font-size:9px}}
.workspace{width:calc(100% - 56px)}
@media(max-width:700px){.workspace{width:100%;background:#f6f7f6}}
@media(max-width:700px){.overview-card>small{font-size:9px;white-space:normal;min-height:26px;line-height:1.5}.overview-card>strong{margin-bottom:7px}.pending-note{font-size:10px}.bar-slot>small{font-size:9px}}
@media(max-width:700px){.home-grid{align-items:stretch}.home-grid .card{width:100%;min-width:0}.home-grid .sync-card{width:100%;min-width:0}}
@media(prefers-reduced-motion:no-preference){#ledger-content{animation:none}}

/* Production controls keep readable forms and visible validation. */
.workspace{margin:24px auto}.sidebar{min-height:calc(100vh - 78px)}.side-bottom{margin-bottom:30px}.sidebar-sync{margin-top:auto}.topbar{display:flex;align-items:center;justify-content:space-between}.home-grid .card{width:100%;min-width:0}.home-grid .card>p{font-size:12px}.overview-card>strong{white-space:normal;overflow-wrap:anywhere}.allocation-row button{white-space:normal;overflow-wrap:anywhere;min-width:0}.attention-item>p{overflow-wrap:anywhere}.bar-chart{gap:8px}.bar-slot small{font-size:10px}.weekly-note{display:block;font-size:11px;margin-top:16px}.metric-label span{min-width:0}.home-grid .recent-card{min-height:0}#quick-search button{font-size:10px;color:#246944;white-space:nowrap}.allocation-strip .segment{min-width:0}.auth-wrap{background:#f6f7f6}.auth-mark{background:#124d35}.auth-card .primary{background:#18794d;border-color:#18794d}.modal-footer{background:#f7f9f7}.field input:focus,.field textarea:focus,.field select:focus{border-color:#18794d;outline:3px solid #18794d24}.checks input{accent-color:#18794d}.summary-grid .summary:last-child{min-width:0}.row>div{min-width:0}.row small{overflow-wrap:anywhere}.topbar .notification:focus-visible{outline-offset:2px}.hero .total{overflow-wrap:anywhere}.chart-subtitle strong{white-space:nowrap}.allocation-row>span{font-size:12px}.sync-card h2{font-size:23px}.sync-card small{overflow-wrap:anywhere}.profile{pointer-events:none}.count-badge{white-space:nowrap}
@media(max-width:700px){.workspace{margin:0}.sidebar{min-height:0}.main{width:100%}#ledger-content{background:#f6f7f6}.heading .actions .button:last-child{display:inline-flex}.heading{flex-wrap:wrap}.heading .actions{flex-wrap:wrap}.summary-grid .summary:last-child{display:block}.modal-content{padding:21px}.modal-footer{padding:16px 21px}.field input,.field select,.field textarea{font-size:16px}.topbar #quick-search{width:calc(100% - 94px)}.row .actions{justify-content:flex-end}.home-grid .attention-card{min-height:0}.home-grid .budget-card{min-height:0}.bar-slot small{font-size:10px}.allocation-row{grid-template-columns:minmax(0,1fr) auto 36px;gap:7px}.allocation-row button{font-size:12px}}
@media(max-width:360px){.overview-card>strong{font-size:22px}.bar-chart{gap:6px}.bar-slot small{font-size:9px}.topbar .currency-label{display:none}.topbar #quick-search{width:calc(100% - 38px)}.allocation-row{grid-template-columns:minmax(0,1fr) auto}.allocation-row>small{display:none}.row{flex-wrap:wrap}.row>.actions{margin-left:auto}}

.allocation-tone-0{background:#154e33}.allocation-tone-1{background:#40916b}.allocation-tone-2{background:#9dcdab}.allocation-tone-3{background:#d5e6d6}.allocation-tone-4{background:#77aa88}.allocation-tone-5{background:#a2b7a7}.allocation-strip .segment{display:block;flex-basis:0}.bar-space{flex:1;height:128px;min-height:0}.side-bottom .btn{border:0;background:transparent;border-radius:0;padding:4px 10px;min-height:0}.sidebar-sync .btn{border:0;min-height:0}.sidebar-sync small{color:#bfd3c3}

/* Balance scope and background work share the existing compact card language. */
.coverage-notice{margin:0 0 20px;padding:18px 22px}.coverage-notice p{margin:8px 0}.sync-job-panel{margin-bottom:20px;padding:18px 22px}.sync-job+.sync-job{border-top:1px solid var(--line,#e2e8e4);margin-top:12px;padding-top:12px}.sync-stages{display:flex;flex-wrap:wrap;gap:10px 24px;margin:8px 0}.sync-stages small{display:block;color:#78847d;max-width:420px}.wealth-period{display:flex;flex-wrap:wrap;gap:16px;align-items:end}.wealth-period .field{flex:1;min-width:180px}.wealth-period .form-error{width:100%}
