:root{--paper:#fffdfb;--ink:#17244f;--muted:#66708d;--line:#e6eaf2;--rose:#ed5f82;--sage:#55cda4;--sky:#55a8f7;--sun:#f5bd45;--lavender:#8c80f4}
html,body{max-width:100%;overflow-x:hidden;background:linear-gradient(180deg,#fffdfb 0,#fffaf8 55%,#fffdfb 100%);color:var(--ink)}
body{min-height:100dvh}.app-shell,main{max-width:100%;overflow-x:clip}.topbar{background:rgba(255,253,251,.94)!important;border-bottom-color:#edf0f5!important;backdrop-filter:blur(16px)}
.brand{color:#17244f!important}.brand-mark{background:#211b48!important;color:#fff!important}.top-actions button,.settings-gear,.icon-btn{border-color:#ffd1dc!important;background:#fff1f5!important;color:#e85579!important}
.view{box-sizing:border-box;max-width:100%!important;padding-top:clamp(22px,3vw,42px)!important;padding-bottom:calc(150px + env(safe-area-inset-bottom))!important;overflow:visible!important;clip:auto!important}
#view-sheets.view{padding-top:clamp(26px,3.5vw,52px)!important}#view-sheets,.sheet-shell,.sheet-page,#sheetBody{box-sizing:border-box;width:100%;max-width:100%;height:auto!important;max-height:none!important;overflow:visible!important;clip:auto!important}
.sheet-nav42,.sheet-heading,.heading58,.safe-heading96,.savings-heading75,.compact-intro56{position:relative!important;inset:auto!important;transform:none!important;min-height:max-content!important;margin-top:0!important;padding-top:10px!important;overflow:visible!important;clip:auto!important}
.sheet-heading h1,.sheet-heading h2,.heading58 h1,.heading58 h2{line-height:1.35!important;overflow:visible!important}
.sheet-tabs,.sheet-tabs-sticky55{position:relative!important;top:auto!important;box-sizing:border-box;max-width:100%!important;margin-bottom:clamp(28px,4vw,58px)!important;background:rgba(255,253,251,.96)!important;border-color:#e7eaf2!important;box-shadow:0 14px 36px rgba(45,64,112,.08)!important;overflow:visible!important}
.sheet-tabs button,.sheet-tabs-sticky55 button{border-color:#e6e9f1!important;background:#fff!important;color:#26335b!important}.sheet-tabs button.active,.sheet-tabs-sticky55 button.active{border-color:#f19aae!important;background:linear-gradient(135deg,#ffe6ed,#ffdce6)!important;color:#be4967!important;box-shadow:0 7px 18px rgba(237,95,130,.12)}
#sheetBody>*:first-child{margin-top:0!important}
/* Keep only the first year controller when older and newer sheet renderers overlap. */
#sheetBody .year-switch86~.year-switch86,#sheetBody .year-switch56~.year-switch86,#sheetBody .sheet-year-nav~.year-switch86{display:none!important}
/* Registration fields form one reading line; submit stays immediately after the last field. */
.asset-register86{grid-template-columns:160px minmax(180px,1fr) minmax(180px,1fr) auto!important;align-items:end!important}
.asset-register86 h3{grid-column:1/-1;margin:0 0 4px!important}.asset-register86 #registerAsset86{justify-self:end;min-width:150px;min-height:42px;background:linear-gradient(135deg,#59cda5,#4ebf9a)!important;border-color:#4ebf9a!important;color:#fff!important;font-weight:700;white-space:nowrap}
.summary96 article,.annual-cards96 article,.summary86 article,.summary56 article,.saving-summary75 article,.chart96,.detail96,.comment96,.trend96,.schedule96,.wide-table96,.panel56,.budget-card86,.category-list86 article,.special-month86,.asset-register86,.asset-list86 article,.saving-card75,.payments58 details,.payment-months56 details,.visual-edit86 section,.asset-kpis86 article,.kpi-grid86 article{border-color:#e5e9f2!important;background:rgba(255,255,255,.96)!important;box-shadow:0 10px 30px rgba(37,57,106,.055)!important}
.summary96 article:nth-child(4n+1),.summary86 article:nth-child(4n+1),.saving-summary75 article:nth-child(4n+1){background:linear-gradient(135deg,#fff,#fff2f5)!important}.summary96 article:nth-child(4n+2),.summary86 article:nth-child(4n+2),.saving-summary75 article:nth-child(4n+2){background:linear-gradient(135deg,#fff,#eef8ff)!important}.summary96 article:nth-child(4n+3),.summary86 article:nth-child(4n+3),.saving-summary75 article:nth-child(4n+3){background:linear-gradient(135deg,#fff,#effbf6)!important}.summary96 article:nth-child(4n+4),.summary86 article:nth-child(4n+4),.saving-summary75 article:nth-child(4n+4){background:linear-gradient(135deg,#fff,#fff8e8)!important}
.summary96 strong,.summary86 strong,.annual-cards96 strong,.saving-summary75 strong{color:#17244f!important}.summary96 small,.summary96 span,.summary86 span,.saving-summary75 span{color:#68728e!important}
.primary86,.recalc86,.monthly-input49 button{background:linear-gradient(135deg,#59cda5,#4ebf9a)!important;box-shadow:0 8px 18px rgba(79,194,155,.2)}.total96{background:#fff0f4!important}.group96 th,.annual-group86 th{background:#66749e!important}.comment96{border-color:#ffc4d2!important;background:linear-gradient(135deg,#fff,#fff3f7)!important}
.bars96 i,.asset-bars86 i{background:linear-gradient(#55a8f7,#8cc8ff)!important}.bars96 em{background:#ef6f90!important}.stack96 span{background:#ef7896!important}.stack96 i{background:#5daef7!important}.stack96 em{background:#f5c34f!important}.stack96 b{background:#63d0a8!important}
.saving-goal75 div i{background:linear-gradient(90deg,#54cda4,#75dab8)!important}.saving-sources75 button{border-color:#dbe7fa!important;background:#edf6ff!important;color:#506b9a!important}.saving-sources75 button:nth-child(2n){border-color:#ffd4de!important;background:#fff0f4!important;color:#b95b73!important}.saving-months75{background:#fbf8f6!important}.carry75>div{border-color:#9dddc3!important;background:linear-gradient(90deg,#eefbf5,#fff)!important}
.bottom-nav{background:rgba(255,255,255,.96)!important;border-top-color:#e7eaf2!important;box-shadow:0 -8px 28px rgba(35,51,94,.09)!important}.bottom-nav button.active{color:#ed5f82!important}.fab{background:linear-gradient(145deg,#2d2854,#19152f)!important;box-shadow:0 10px 28px rgba(30,25,65,.25)!important}img,svg,canvas{display:block;max-width:100%;height:auto}
@media(min-width:900px){#view-sheets{width:min(1680px,calc(100% - 48px))!important;margin-inline:auto!important}.view{padding-inline:max(24px,3vw)!important}.wide-table96>div{max-width:100%;overflow-x:auto!important;scrollbar-gutter:stable}}
@media(max-width:899px){.view,#view-sheets.view{width:100%!important;padding-top:22px!important;padding-inline:12px!important;padding-bottom:calc(142px + env(safe-area-inset-bottom))!important}.sheet-tabs,.sheet-tabs-sticky55{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin-bottom:30px!important}.summary96,.annual-cards96,.summary86,.saving-summary75{grid-template-columns:repeat(2,minmax(0,1fr))!important}.wide-table96>div,.annual-wrap86,.asset-table49,.annual-scroll57{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch}.wide-table96 table{min-width:980px!important}.asset-register86{grid-template-columns:1fr 1fr!important}.asset-register86 h3{grid-column:1/-1}.asset-register86 #registerAsset86{width:100%;justify-self:stretch}}
@media(max-width:560px){.sheet-nav42{padding-top:6px!important}.sheet-heading,.heading58,.safe-heading96,.savings-heading75{padding-top:8px!important}.summary96 article,.annual-cards96 article,.summary86 article,.saving-summary75 article{padding:12px!important}.summary96 strong,.annual-cards96 strong,.summary86 strong,.saving-summary75 strong{font-size:clamp(15px,4.3vw,18px)!important;overflow-wrap:anywhere}.saving-months75{grid-template-columns:repeat(2,minmax(0,1fr))!important}.asset-register86{grid-template-columns:1fr!important}.asset-register86 h3{grid-column:1}.bottom-nav{padding-bottom:env(safe-area-inset-bottom)!important}}
