:root{--bg:#f4f6f8;--card:#fff;--ink:#142035;--muted:#7b8796;--line:#e9edf2;--navy:#111e30;--green:#a7eb91;--forest:#2d8158;--red:#db5e61;--shadow:0 10px 30px rgba(15,31,50,.045);color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Arial,sans-serif;color:var(--ink);font-size:15px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #70b7a0;outline-offset:2px}.boot{height:100vh;display:grid;place-items:center;font-weight:800;font-size:24px}.app-shell{min-height:100dvh;max-width:510px;margin:auto;padding:0 18px calc(115px + env(safe-area-inset-bottom));position:relative}.topbar{height:87px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px}.brandmark{height:39px;width:39px;border-radius:13px;background:var(--navy);display:grid;place-items:center;color:var(--green)}.brandmark svg{width:23px;height:23px}.brandtext{font-weight:800;font-size:19px;letter-spacing:-.6px}.subbrand{color:var(--muted);font-size:11px;margin-top:2px}.top-icon{border:1px solid var(--line);background:#fff;border-radius:13px;width:41px;height:41px;display:grid;place-items:center;color:var(--ink)}svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.top-icon svg{width:20px;height:20px}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-1.1px;line-height:1.2;margin-bottom:5px}h2{font-size:17px;letter-spacing:-.45px}h3{font-size:15px}p.subtext{color:var(--muted);font-size:13px;line-height:1.55}.section-title{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:22px 0 12px}.section-title h2{font-size:17px}.linkbtn{border:0;background:transparent;color:#377b61;font-size:12px;font-weight:700;padding:7px 0}.monthbar{display:flex;align-items:center;justify-content:space-between;margin:15px 0 16px}.monthlabel{font-size:14px;font-weight:750;text-transform:capitalize}.monthleft{display:flex;align-items:center;gap:9px}.monthbtn{background:#fff;border:1px solid var(--line);width:35px;height:35px;display:grid;place-items:center;border-radius:11px}.monthbtn svg{width:15px;height:15px}.nowbtn{background:#e8f2e8;border:0;color:#377b61;padding:9px 12px;font-size:11px;font-weight:700;border-radius:10px}.hero{background:var(--navy);border-radius:24px;color:white;padding:23px 22px;position:relative;overflow:hidden;box-shadow:0 15px 40px rgba(17,30,48,.14)}.hero:before{content:"";height:240px;width:240px;border-radius:50%;position:absolute;right:-130px;top:-140px;background:radial-gradient(circle,#33485b,#142237);opacity:.85}.hero:after{content:"";height:130px;width:130px;border-radius:50%;position:absolute;right:-45px;bottom:-95px;background:#283b4d;opacity:.7}.hero>*{position:relative;z-index:1}.eyebrow{color:#b7c2ca;font-size:12px;font-weight:500}.hero-total{font-size:37px;letter-spacing:-1.7px;font-weight:800;margin:7px 0 18px;font-variant-numeric:tabular-nums;white-space:nowrap}.hero-bottom{border-top:1px solid #324253;display:grid;grid-template-columns:1fr 1fr;padding-top:17px;gap:15px}.hero-stat-label{color:#c4ccd2;font-size:11px;display:flex;align-items:center;gap:6px}.hero-stat-value{font-size:17px;font-weight:750;margin-top:5px;font-variant-numeric:tabular-nums}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green)}.dot.red{background:#ff9998}.card{background:var(--card);border:1px solid #edf0f3;border-radius:21px;padding:17px;box-shadow:var(--shadow)}.split{display:grid;grid-template-columns:1fr 1fr;gap:11px}.statcard{padding:15px;border-radius:19px}.statname{display:flex;gap:7px;align-items:center;color:var(--muted);font-size:11px;font-weight:650}.statname svg{width:16px;height:16px}.statnum{font-size:21px;font-weight:800;letter-spacing:-.7px;margin-top:9px;white-space:nowrap}.statnote{font-size:11px;color:var(--muted);margin-top:7px}.positive{color:#268454}.negative{color:#e05d5d}.bar-item{margin:15px 0}.bar-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:7px}.bar-label b{font-size:12px;font-weight:750;white-space:nowrap}.bar-track{background:#eef2f4;height:8px;border-radius:999px;overflow:hidden;margin-top:9px}.bar-fill{height:100%;border-radius:999px;min-width:3px}.empty{display:flex;align-items:center;flex-direction:column;justify-content:center;text-align:center;padding:30px 13px;color:var(--muted)}.empty-icon{height:49px;width:49px;border-radius:16px;background:#f1f5f3;display:grid;place-items:center;color:#498169;margin-bottom:12px}.empty strong{color:var(--ink);font-size:15px;margin-bottom:5px}.empty p{font-size:12px;line-height:1.5;max-width:275px}.tx-item{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid var(--line)}.tx-item:last-child{border-bottom:0;padding-bottom:0}.tx-item:first-child{padding-top:2px}.txicon{height:41px;width:41px;flex:0 0 41px;display:grid;place-items:center;border-radius:14px;color:#315d50;background:#eaf4ed}.txicon.expense{background:#f7f1ed;color:#b17b5d}.txicon svg{height:19px;width:19px}.tx-copy{min-width:0;flex:1}.tx-copy b{display:block;font-size:13px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-copy span{display:block;color:var(--muted);font-size:11px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-amount{font-weight:750;white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums}.tap-item{cursor:pointer;-webkit-tap-highlight-color:transparent}.tap-item:active{opacity:.65}.nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,510px);padding:9px 12px calc(9px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid #e9edf0;display:flex;justify-content:space-between;align-items:center;z-index:30;backdrop-filter:blur(20px)}.nav-btn{display:flex;flex-direction:column;align-items:center;gap:4px;background:none;border:0;color:#929baa;font-size:9px;font-weight:700;padding:6px 3px;min-width:51px}.nav-btn.active{color:#267956}.nav-btn svg{width:21px;height:21px}.nav-add{height:51px;width:51px;border-radius:18px;border:0;background:#b6efa4;color:#142b27;display:grid;place-items:center;box-shadow:0 8px 20px rgba(42,135,75,.17);margin-top:-22px}.nav-add svg{height:27px;width:27px}.chiprow{display:flex;gap:7px;overflow:auto;scrollbar-width:none;padding-bottom:8px}.chiprow::-webkit-scrollbar{display:none}.chip{border:1px solid #e7ebed;background:#fff;color:#6d7988;border-radius:11px;padding:9px 15px;font-size:12px;white-space:nowrap;font-weight:650}.chip.active{background:var(--navy);border-color:var(--navy);color:white}.groupdate{color:var(--muted);font-size:11px;font-weight:750;margin:18px 0 10px;text-transform:capitalize}.searchbox{border:1px solid var(--line);background:#fff;display:flex;align-items:center;gap:9px;border-radius:13px;padding:0 13px;margin-bottom:12px}.searchbox svg{width:17px;height:17px;color:#8592a1}.searchbox input{border:0;height:44px;outline:0;width:100%;min-width:0;background:transparent;font-size:13px}.taxi-hero{border-radius:24px;background:#e3eedc;padding:22px;position:relative;overflow:hidden}.taxi-hero .eyebrow{color:#5c7866}.taxi-hero .big{font-size:34px;letter-spacing:-1.2px;font-weight:850;margin:6px 0 10px}.taxi-hero .note{font-size:12px;color:#4d705b;line-height:1.5;max-width:300px}.taxi-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}.highlight-number{font-size:24px;font-weight:800;letter-spacing:-.5px;margin:11px 0 6px}.progress-donut{height:100px;width:100px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#a8e5a2 0%,#e5edf0 0%);flex:0 0 100px}.progress-donut .inside{height:72px;width:72px;background:white;border-radius:50%;display:grid;place-items:center;text-align:center}.progress-donut b{font-size:17px}.progress-donut small{font-size:9px;color:var(--muted)}.overview-row{display:flex;align-items:center;gap:17px}.overview-row .text{flex:1}.overview-row h3{margin-bottom:8px}.labelbox{background:#edf4ed;color:#3a7552;font-size:10px;font-weight:800;border-radius:8px;padding:5px 7px;white-space:nowrap}.credit-card{background:white;border:1px solid var(--line);border-radius:19px;padding:16px;margin-bottom:11px}.credit-top{display:flex;align-items:start;justify-content:space-between;gap:10px}.credit-name{font-size:15px;font-weight:800}.credit-info{font-size:11px;color:var(--muted);margin-top:4px}.credit-balance{font-size:23px;font-weight:850;margin:13px 0 14px;letter-spacing:-.5px}.credit-footer{border-top:1px solid var(--line);padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:10px}.credit-amt{font-size:13px;font-weight:800;margin-top:3px}.tiny{font-size:10px;color:var(--muted)}.credit-actions{display:flex;gap:7px}.smallbtn{border:1px solid #dfe6e9;background:white;border-radius:11px;padding:10px;font-weight:750;font-size:11px}.smallbtn.primary{background:#e5f5e1;color:#2e7752;border-color:#e5f5e1}.notice{background:#eff6f0;border-radius:13px;padding:13px;color:#51745d;font-size:11px;line-height:1.6;margin:15px 0}.notice.warn{background:#fff5e8;color:#93663b}.menu-card{background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden}.menu-item{display:flex;width:100%;align-items:center;gap:13px;padding:16px;border:0;border-bottom:1px solid var(--line);background:#fff;text-align:left;color:var(--ink)}.menu-item:last-child{border:0}.menu-item svg{width:20px;height:20px;color:#50886b}.menu-item .mid{flex:1}.menu-item b{display:block;font-size:13px}.menu-item span{display:block;font-size:11px;color:var(--muted);margin-top:4px}.menu-item .chevron{height:15px;width:15px;color:#9da9b3}.pill{font-size:10px;border-radius:20px;padding:5px 8px;background:#e6f5e4;color:#448152;font-weight:750}.modal-backdrop{position:fixed;inset:0;background:rgba(10,24,41,.49);z-index:80;display:flex;align-items:flex-end;justify-content:center}.sheet{background:#fff;border-radius:26px 26px 0 0;width:min(100%,510px);max-height:96dvh;overflow-y:auto;padding:13px 22px calc(27px + env(safe-area-inset-bottom));box-shadow:0 -6px 35px rgba(0,0,0,.12)}.dragbar{height:5px;width:38px;border-radius:10px;background:#dce2e6;margin:0 auto 19px}.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.sheet-head h2{font-size:19px}.close{height:33px;width:33px;border:0;background:#f3f5f6;border-radius:10px;display:grid;place-items:center}.type-toggle{display:flex;background:#f2f4f5;padding:5px;border-radius:14px;gap:4px;margin-bottom:15px}.type-toggle button{flex:1;padding:11px;border:0;border-radius:10px;background:transparent;color:#86909d;font-weight:750;font-size:13px}.type-toggle button.selected{background:white;box-shadow:0 2px 8px #1420350d;color:var(--ink)}.field{display:block;margin:14px 0}.field-label{display:block;font-weight:700;font-size:12px;margin-bottom:7px;color:#4a596a}.field input,.field select,.field textarea{width:100%;background:#f7f8f9;border:1px solid #e6ebee;border-radius:12px;outline:0;color:var(--ink);padding:13px 12px;font-size:15px;appearance:none;min-height:48px}.field textarea{resize:vertical;min-height:76px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#7bb998}.field .help{font-size:10px;color:var(--muted);line-height:1.45;margin-top:6px}.amount-field input{font-size:28px;font-weight:800;letter-spacing:-1px}.twofields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.widebtn{border:0;background:#b5eba5;color:#13332d;padding:15px 20px;border-radius:13px;width:100%;font-weight:800;font-size:14px;margin-top:12px}.dangerbtn{border:0;background:none;color:#d35457;width:100%;padding:16px;margin-top:5px;font-weight:700;font-size:12px}.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(91px + env(safe-area-inset-bottom));z-index:110;background:var(--navy);padding:11px 17px;border-radius:12px;color:white;box-shadow:0 10px 28px #0003;font-size:12px;max-width:90%;text-align:center}.hint{font-size:11px;color:var(--muted);line-height:1.5}.blurb{margin-top:6px;color:var(--muted);font-size:11px}.space{height:10px}.footer-note{font-size:11px;color:#96a2ab;text-align:center;margin:23px 0}.badgestatus{display:inline-flex;align-items:center;font-size:10px;padding:5px 8px;border-radius:100px;font-weight:750;background:#fff0ee;color:#ad5c58}.badgestatus.paid{background:#e6f5e4;color:#448152}.errorbox{background:#fcecec;color:#a84346;padding:11px;border-radius:10px;font-size:12px;display:none;margin:10px 0}.errorbox:not(:empty){display:block}.callout{font-size:11px;color:#6a7581;padding:12px 13px;background:#f3f6f7;border-radius:11px;line-height:1.55}.statlist{display:grid;gap:9px}.statline{display:flex;justify-content:space-between;align-items:center;font-size:13px;gap:15px}.statline span{color:#75818e}.statline b{font-variant-numeric:tabular-nums;text-align:right}.smaller{font-size:12px}.muted{color:var(--muted)}@media(min-width:680px){body{background:#e9eef2}.app-shell{background:var(--bg);box-shadow:0 12px 55px rgba(29,47,69,.12)}.sheet{border-radius:26px;margin-bottom:22px;max-height:90dvh}.modal-backdrop{align-items:flex-end}.nav{border-radius:0}}@media(max-width:355px){.hero-total{font-size:31px}.statnum{font-size:18px}.nav-btn{min-width:45px}.app-shell{padding-left:13px;padding-right:13px}.hero{padding:19px}.statcard{padding:12px}}

/* v2: premium light-first interface; no third-party assets or external fonts */
:root{--bg:#f5f7fb;--ink:#15233a;--muted:#7a889a;--line:#e8edf4;--forest:#237558;--green:#8ce4c1;--navy:#142339;--shadow:0 9px 25px rgba(20,35,57,.035)}
.app-shell{padding-left:19px;padding-right:19px}
.topbar{height:76px}.brandmark{background:#17283f;border-radius:15px;color:#88ddb6;box-shadow:0 6px 15px rgba(28,43,69,.13)}.brandtext{font-size:18px}.subbrand{font-size:10px;letter-spacing:.08px}.top-icon{border-radius:15px}
h1{font-size:28px;letter-spacing:-.85px}h2{font-size:17px;font-weight:790}.subtext{color:var(--muted)}.eyebrow-main{font-weight:850;font-size:10px;letter-spacing:1.65px;color:#3b9c7c;margin:0 0 7px}.welcome-line{display:flex;gap:12px;align-items:center;justify-content:space-between}.welcome-line .subtext{margin-top:3px}.status-chip{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;border-radius:99px;background:#e3f5ed;color:#317957;padding:8px 10px;font-size:10px;font-weight:770}.status-chip svg{width:12px;height:12px}
.monthbar{margin:20px 0 18px}.monthbtn{border-color:#e6ebf0;border-radius:12px;width:38px;height:38px;box-shadow:0 2px 5px #10213705}.monthlabel{font-size:14px;min-width:113px;text-align:center}.nowbtn{background:#e4f5ec;color:#317657}
.hero{background:linear-gradient(138deg,#172c46 0%,#17283f 54%,#102037 100%);border-radius:26px;padding:23px 21px 20px;box-shadow:0 17px 28px #11274226;isolation:isolate}
.hero:before{height:230px;width:230px;right:-115px;top:-135px;background:radial-gradient(circle at 30% 40%,#345f71 0%,#203a53 52%,transparent 70%);opacity:.8}.hero:after{height:180px;width:180px;right:-130px;bottom:-115px;background:#3a5771;opacity:.27}
.hero-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#d5dfe9}.hero-top>span:first-child{display:flex;align-items:center;gap:7px}.hero-top svg{height:15px;width:15px;color:#90e7c1}.hero-period{color:#91a5bb;text-transform:capitalize;font-size:10px;white-space:nowrap}.hero-total{margin:17px 0 3px;font-size:clamp(30px,8.6vw,42px);font-weight:830;letter-spacing:-1.5px;line-height:1.15;overflow-wrap:anywhere;white-space:normal}.hero-total.net-neg{color:#ffd5cc}.hero-explain{font-size:10px;color:#a5b6c7;line-height:1.5;max-width:280px;margin:6px 0 21px}.hero-bottom{border-top:1px solid #385069;padding-top:16px;gap:10px}.hero-stat{background:#ffffff0b;border:1px solid #ffffff08;border-radius:15px;padding:11px 10px}.hero-stat-label{color:#a8eac9;font-size:11px;gap:5px}.hero-stat.expense .hero-stat-label{color:#ffcbb6}.hero-stat-label svg{width:14px;height:14px}.hero-stat-value{margin-top:8px;font-size:clamp(13px,4vw,18px);font-weight:780;letter-spacing:-.3px;overflow-wrap:anywhere}
.quick-head{margin-top:25px;margin-bottom:13px;display:flex;align-items:baseline;justify-content:space-between}.quick-head h2{font-size:17px}.quick-head>span{color:var(--muted);font-size:11px}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.quick-action{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;border:1px solid #e8eef3;border-radius:19px;background:#fff;min-height:92px;padding:10px 3px;color:var(--ink);box-shadow:0 6px 14px #21304406;-webkit-tap-highlight-color:transparent}.quick-action:active{transform:scale(.97)}.quick-action b{font-weight:730;font-size:10px}.quick-icon{height:40px;width:40px;border-radius:14px;display:grid;place-items:center}.quick-icon svg{width:20px;height:20px}.fuel-bg{background:#e7f4ec;color:#23805d}.groceries-bg{background:#fff1e4;color:#ad7743}.taxi-bg{background:#e8efff;color:#527bb7}.loans-bg{background:#f0ebfc;color:#8a70b6}
.section-title{margin-top:27px;margin-bottom:12px}.section-note{font-size:11px;color:var(--muted);white-space:nowrap}.card{border-color:#e9edf3;border-radius:23px;box-shadow:0 6px 18px #13264105}.chart-card{padding:18px 17px 15px}.trend-legend{display:flex;gap:16px;justify-content:flex-end;font-size:10px;color:#7e8d9c}.trend-legend>span{display:flex;gap:5px;align-items:center}.legend-dot{display:inline-block;height:9px;width:9px;flex:0 0 9px;border-radius:50%}.trends{height:159px;display:flex;justify-content:space-between;align-items:flex-end;gap:5px;border-bottom:1px dashed #dfe6ed;margin-top:10px}.trend-month{appearance:none;flex:1;border:0;background:transparent;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:8px;height:100%;min-width:0;padding:0 0 0;cursor:pointer;color:#8a96a4}.trend-bars{height:124px;display:flex;align-items:flex-end;gap:3px}.trend-bar{display:block;width:11px;min-height:2px;border-radius:5px 5px 2px 2px;transition:height .25s ease;background:#57c69b}.trend-bar.expense{background:#f0af88}.trend-label{font-size:10px;font-weight:750;padding-bottom:6px}.trend-month.selected .trend-label{color:#2b7c61}.trend-month.selected .trend-bars{filter:drop-shadow(0 2px 3px #364e681f)}.chart-hint{font-size:10px;color:var(--muted);margin-top:13px;line-height:1.45}
.donut-layout{display:flex;gap:18px;align-items:center;min-height:163px}.donut{height:145px;width:145px;flex:0 0 145px;border-radius:50%;display:grid;place-items:center;box-shadow:0 8px 25px #101f3810}.donut-center{height:105px;width:105px;background:white;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:2px}.donut-center small{font-size:10px;color:#7e8d9b}.donut-center b{font-size:18px;letter-spacing:-.45px;color:#14253d;font-variant-numeric:tabular-nums;max-width:98%;overflow-wrap:anywhere}.donut-legend{flex:1;min-width:0;display:grid;gap:10px}.donut-line{display:flex;align-items:center;gap:6px;font-size:10px}.donut-name{flex:1;color:#778698;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.donut-line b{font-size:10px;color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.home-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.shortcut{display:flex;align-items:center;text-align:left;background:#fff;border:1px solid #e9edf3;border-radius:20px;min-width:0;padding:13px 10px;gap:9px;color:var(--ink)}.shortcut-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:12px;background:#e4f5e9;color:#317e61}.shortcut-icon.purple{background:#eeecfd;color:#8972b9}.shortcut-icon svg{width:17px;height:17px}.shortcut>span:nth-child(2){flex:1;min-width:0}.shortcut b{font-size:11px;display:block;white-space:nowrap}.shortcut small{display:block;color:var(--muted);font-size:9px;margin-top:4px;white-space:nowrap}.shortcut>svg{height:14px;width:14px;color:#9eabb8}
.nav{box-shadow:0 -12px 34px #2130440a;background:#ffffffed;border-top:1px solid #e8edf2}.nav-add{background:#a2ebc9;border-radius:19px;box-shadow:0 9px 22px #32876638}.nav-btn.active{color:#21805c}.chip.active{background:#172c46}.taxi-hero{background:linear-gradient(125deg,#e5f5ee,#d5eadf)}.credit-card{box-shadow:0 5px 14px #11213906;border-color:#e7edf3}.smallbtn.primary{background:#dcf4e9;color:#257557}.type-toggle button.selected{box-shadow:0 2px 9px #1e33431a}.widebtn{background:#a7ebcd}.notice{font-size:12px}.monthbtn:active,.nav-btn:active,.shortcut:active,.menu-item:active,.smallbtn:active{opacity:.7}
@media(max-width:390px){.donut-layout{gap:11px}.donut{height:118px;width:118px;flex-basis:118px}.donut-center{height:86px;width:86px}.donut-center b{font-size:15px}.donut-line{font-size:9px}.donut-line b{font-size:9px}.quick-action{min-height:82px}.quick-action b{font-size:9px}.trend-bar{width:9px}.shortcut{gap:6px;padding:12px 8px}.shortcut-icon{height:29px;width:29px;flex-basis:29px}.shortcut b{font-size:10px}.shortcut small{font-size:8px}}
@media(max-width:355px){.app-shell{padding-left:12px;padding-right:12px}.quick-grid{gap:5px}.hero{padding:20px 16px}.hero-total{font-size:30px}.donut{height:105px;width:105px;flex-basis:105px}.donut-center{height:78px;width:78px}.donut-line{gap:4px}}
/* Optional dark palette. The navy summary card stays navy in both modes. */
html[data-theme="dark"]{color-scheme:dark;--bg:#0b1423;--card:#172438;--ink:#eaf1f8;--muted:#9aaabc;--line:#2b3d52;--shadow:0 7px 20px #01071233;--forest:#88d9b2}
html[data-theme="dark"] .app-shell{background:var(--bg)}
html[data-theme="dark"] .brandmark{background:#1d344d}html[data-theme="dark"] .status-chip{background:#143b31;color:#85dcb0}
html[data-theme="dark"] .top-icon,html[data-theme="dark"] .monthbtn,html[data-theme="dark"] .card,html[data-theme="dark"] .quick-action,html[data-theme="dark"] .shortcut,html[data-theme="dark"] .credit-card,html[data-theme="dark"] .chip,html[data-theme="dark"] .searchbox,html[data-theme="dark"] .menu-card,html[data-theme="dark"] .menu-item{background:#172438;border-color:#2a3b50;color:var(--ink)}
html[data-theme="dark"] .nav{background:#152236ed;border-color:#2a3b50}html[data-theme="dark"] .nav-btn{color:#91a3b6}html[data-theme="dark"] .nav-btn.active{color:#8fe1ba}
html[data-theme="dark"] .monthlabel,html[data-theme="dark"] .statnum,html[data-theme="dark"] .credit-balance{color:var(--ink)}
html[data-theme="dark"] .hero{border:1px solid #456079}html[data-theme="dark"] .donut-center{background:#172438}html[data-theme="dark"] .donut-center b{color:var(--ink)}
html[data-theme="dark"] .trend-month.selected .trend-label{color:#8ae2b6}html[data-theme="dark"] .trend-legend,html[data-theme="dark"] .donut-name{color:#b0bed0}html[data-theme="dark"] .trends{border-color:#34455a}
html[data-theme="dark"] .tx-item,html[data-theme="dark"] .credit-footer{border-color:#2b3d52}html[data-theme="dark"] .bar-track{background:#2b3d52}
html[data-theme="dark"] .txicon{background:#264a3f;color:#a6e9c7}html[data-theme="dark"] .txicon.expense{background:#48362f;color:#f5be98}
html[data-theme="dark"] .menu-item svg{color:#a1e1ba}html[data-theme="dark"] .menu-item .chevron{color:#9cafbf}
html[data-theme="dark"] .nowbtn,html[data-theme="dark"] .smallbtn.primary{background:#29483c;color:#9ce4c0}
html[data-theme="dark"] .smallbtn{background:#233347;color:#eaf1f8;border-color:#32455b}
html[data-theme="dark"] .sheet{background:#162438;color:var(--ink)}html[data-theme="dark"] .dragbar{background:#49617c}html[data-theme="dark"] .close{background:#2a3b51;color:#eaf1f8}
html[data-theme="dark"] .type-toggle,html[data-theme="dark"] .field input,html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea{background:#24364c;color:#eaf1f8;border-color:#374d62}
html[data-theme="dark"] .type-toggle button.selected{background:#415971;color:#fff}html[data-theme="dark"] .field-label{color:#c5d5e3}html[data-theme="dark"] .callout{background:#24364c;color:#adc0d2}
html[data-theme="dark"] .searchbox input{color:#eaf1f8}html[data-theme="dark"] .notice{background:#18372e;color:#a7d5bd}html[data-theme="dark"] .notice.warn{background:#473526;color:#ecc89b}
html[data-theme="dark"] .empty-icon{background:#223c35;color:#90dab6}html[data-theme="dark"] .empty strong{color:var(--ink)}html[data-theme="dark"] .chip.active{background:#95e3be;color:#172339}html[data-theme="dark"] .statline span{color:#a5b4c4}
html[data-theme="dark"] .badgestatus{background:#4b3334;color:#f1adad}html[data-theme="dark"] .badgestatus.paid{background:#25503d;color:#a5e6be}

/* V2.1 taxi shift tracker */
.page-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.new-shift-btn{width:100%;margin-top:16px;border:0;border-radius:18px;background:#19354d;color:#eaf8f0;padding:15px 16px;display:flex;align-items:center;gap:11px;text-align:left;font-weight:800;box-shadow:0 8px 20px #13334a1a}
.new-shift-btn svg{color:#a5ebca;width:22px;height:22px}.new-shift-btn span{margin-left:auto;font-size:10px;font-weight:500;color:#a8c4cf;max-width:130px;text-align:right;line-height:1.35}
.shift-summary{padding:15px 17px}.shift-summary .hint{margin-top:12px}
.shift-list{display:grid;gap:10px;margin-top:12px}
.shift-card{width:100%;display:block;text-align:left;border:1px solid #e8eef1;background:var(--card);border-radius:21px;padding:16px 17px;box-shadow:var(--shadow);color:var(--ink)}
.shift-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.shift-date{display:flex;gap:6px;align-items:center;font-weight:760;font-size:13px}.shift-date svg{height:15px;width:15px;color:#6d928c}.shift-open{display:flex;align-items:center;gap:3px;font-size:10px;color:var(--muted)}.shift-open svg{height:14px;width:14px}
.shift-result{font-size:25px;font-weight:850;letter-spacing:-.7px;margin:12px 0 10px;color:#238059}.shift-sub{font-size:11px;color:var(--ink);font-weight:700}.shift-meta{border-top:1px solid var(--line);padding-top:10px;margin-top:11px;font-size:10px;color:var(--muted)}.shift-note{margin-top:9px;font-size:11px;color:var(--muted);line-height:1.5}
.shift-form-intro{border-radius:13px;background:#e8f5ee;color:#35664d;padding:13px 14px;margin-bottom:13px;font-size:12px;line-height:1.5}.shift-form-title{font-size:14px;margin:19px 0 6px}
.home-shift-banner{margin-top:13px;border:1px solid #e0eee7;background:#e8f5ed;border-radius:17px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px}.home-shift-banner strong{font-size:12px}.home-shift-banner p{color:#567769;font-size:10px;margin-top:4px;line-height:1.35}.home-shift-banner button{flex:0 0 auto;background:#203b4b;color:#d8f7e6;border:0;border-radius:11px;padding:11px;font-size:12px;font-weight:800}
html[data-theme="dark"] .shift-card{background:#172438;border-color:#2a3b50}html[data-theme="dark"] .new-shift-btn{background:#26465a}html[data-theme="dark"] .shift-form-intro,html[data-theme="dark"] .home-shift-banner{background:#203c37;border-color:#34554e;color:#a1e8bf}html[data-theme="dark"] .home-shift-banner p{color:#a5c0b1}html[data-theme="dark"] .shift-result{color:#94e3bf}
@media(max-width:355px){.new-shift-btn span{font-size:9px;max-width:105px}.shift-result{font-size:23px}}

html[data-theme="dark"] .shift-result.negative{color:#ff9e9e}

/* V2.2: monthly debt calendar and payment planning */
.debt-hero{border-radius:24px;padding:21px 20px;background:linear-gradient(140deg,#1a2d42,#263e55);color:#fff;box-shadow:0 13px 30px rgba(22,48,69,.11)}
.debt-hero-label{font-size:12px;color:#bfdae0;display:flex;align-items:center;gap:9px;font-weight:650}
.debt-hero-label svg{width:17px;height:17px}
.debt-hero-value{font-size:34px;font-weight:850;letter-spacing:-1.3px;margin:9px 0 6px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.debt-hero-sub{color:#c0d4e0;font-size:11px;line-height:1.5}
.meter-dark{margin-top:17px;width:100%;height:7px;border-radius:99px;background:#3d546b;overflow:hidden}
.meter-dark span{display:block;background:#a3dfb9;height:100%;border-radius:99px;transition:width .15s ease}
.calendar-card{background:var(--card);border:1px solid var(--line);border-radius:21px;padding:15px 12px 12px;box-shadow:var(--shadow)}
.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.weekdays{margin:1px 0 10px}.weekdays span{font-size:11px;font-weight:750;color:var(--muted)}
.calendar-day,.calendar-blank{position:relative;aspect-ratio:1/1;min-height:39px;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--ink);font-size:12px;font-weight:650;gap:2px;padding:2px}
.calendar-day.today{border-color:#80b7a2}.calendar-day.chosen{background:#20394f;color:#fff;border-color:#20394f}
.calendar-day.has-due:not(.chosen){background:#f7f1e8}.calendar-day.has-due.paid:not(.chosen){background:#e8f6ee}.calendar-day.has-due.late:not(.chosen){background:#ffeff0}
.day-dot{width:5px;height:5px;border-radius:50%;background:#d9a46b;display:block}.calendar-day.paid .day-dot{background:#62b99b}.calendar-day.late .day-dot{background:#d96c70}
.calendar-legend{display:flex;align-items:center;flex-wrap:wrap;gap:13px;font-size:10px;color:var(--muted);margin:14px 2px 9px}.calendar-legend>span{display:flex;align-items:center;gap:6px}.calendar-legend .legend-dot{width:7px;height:7px}
.calendar-selection{padding:12px 4px 1px;border-top:1px solid var(--line);min-height:42px;font-size:12px}.calendar-selection b{display:block;font-size:12px;margin-bottom:8px}.calendar-selection p{color:var(--muted);line-height:1.45}.calendar-due-line{display:flex;justify-content:space-between;gap:9px;padding:7px 0;border-top:1px dashed var(--line)}.calendar-due-line strong{white-space:nowrap}
.upcoming-card{padding:12px 16px}.upcoming-item{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid var(--line)}.upcoming-item:last-child{border:0}
.upcoming-date{width:44px;min-width:44px;border-radius:13px;background:#ecf4f3;text-align:center;padding:7px 5px;color:#37785e;display:flex;flex-direction:column;gap:0}.upcoming-date.overdue{background:#fff0ef;color:#bf5f5e}.upcoming-date b{font-size:18px;font-weight:850;line-height:1.1}.upcoming-date small{font-size:9px}
.upcoming-main{flex:1;min-width:0}.upcoming-main strong{display:block;font-size:12px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upcoming-main small{display:block;color:var(--muted);margin-top:4px;font-size:10px}.upcoming-item>b{font-size:12px;white-space:nowrap}
.due-warning{background:#fff0ec;color:#a35b4d;padding:10px;border-radius:11px;display:flex;gap:7px;align-items:center;font-size:11px;font-weight:650;line-height:1.45;margin-bottom:6px}.due-warning svg{width:17px;height:17px;flex:0 0 17px}
.credit-meter-label{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);margin-top:5px}.credit-meter-label span:last-child{text-align:right}.credit-meter{height:6px;width:100%;background:#eaf0f0;border-radius:99px;overflow:hidden;margin:8px 0 14px}.credit-meter span{display:block;height:100%;background:#61c19e;border-radius:99px}
.badgestatus.partial{background:#fff0d5;color:#9d761e}.planning-card .planning-total{border-top:1px solid var(--line);padding-top:11px;margin-top:6px}.planning-card .planning-total b{font-size:15px}
.home-debt-alert{display:flex;gap:11px;align-items:center;justify-content:space-between;margin:12px 0;border:1px solid #ecd5c5;background:#fff5ef;border-radius:17px;padding:12px 14px}.home-debt-alert strong{font-size:12px}.home-debt-alert p{font-size:10px;color:#946a5b;margin-top:4px;line-height:1.4}.home-debt-alert button{border:0;border-radius:10px;background:#fff;flex:0 0 auto;padding:8px 10px;color:#9b614f;font-size:11px;font-weight:800}
html[data-theme="dark"] .calendar-card{background:#172438;border-color:#2a3b50}
html[data-theme="dark"] .calendar-day.has-due:not(.chosen){background:#4b4032}html[data-theme="dark"] .calendar-day.has-due.paid:not(.chosen){background:#25483c}html[data-theme="dark"] .calendar-day.has-due.late:not(.chosen){background:#4e3139}html[data-theme="dark"] .calendar-day.chosen{background:#99dbc4;border-color:#99dbc4;color:#14293a}
html[data-theme="dark"] .upcoming-date{background:#274637;color:#a5e2b9}html[data-theme="dark"] .upcoming-date.overdue{background:#543438;color:#ffaaa0}
html[data-theme="dark"] .due-warning{background:#4d3230;color:#f2b4a5}html[data-theme="dark"] .credit-meter{background:#354759}html[data-theme="dark"] .badgestatus.partial{background:#59472b;color:#edd29a}
html[data-theme="dark"] .home-debt-alert{background:#47352d;border-color:#634336}html[data-theme="dark"] .home-debt-alert p{color:#d5a991}html[data-theme="dark"] .home-debt-alert button{background:#6a493e;color:#fff}
@media(max-width:360px){.upcoming-item>b{font-size:11px}.debt-hero-value{font-size:29px}.calendar-day{min-height:33px}.calendar-legend{gap:9px}}

/* V2.2.1: credit-accounting start date and finite payment schedule */
.credit-start-card{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#e9f2ee;border:1px solid #d8e8df;border-radius:17px;padding:13px 14px;margin:3px 0 13px}
.credit-start-card>div{min-width:0;display:flex;flex-direction:column;gap:5px}
.credit-start-card b{font-size:12px;color:#234836}
.credit-start-card span{font-size:11px;color:#4c7967}
.credit-start-card .smallbtn{flex:0 0 auto;background:#fff;border-color:#d7e6df;color:#315c4c}
html[data-theme="dark"] .credit-start-card{background:#1e3c35;border-color:#36544a}
html[data-theme="dark"] .credit-start-card b{color:#bdedd4}
html[data-theme="dark"] .credit-start-card span{color:#9ed2b8}
html[data-theme="dark"] .credit-start-card .smallbtn{background:#284d41;border-color:#386653;color:#c5eddc}

/* 2.3 monthly budgets and conservative forecast */
.forecast-snippet{background:linear-gradient(125deg,#dbece3,#eef7ef);border:1px solid #d1e6da;border-radius:19px;padding:16px;margin:13px 0}
.forecast-snippet-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;font-weight:780;color:#3c6d58}.forecast-snippet-top>span{display:flex;align-items:center;gap:7px}.forecast-snippet-top svg{width:17px;height:17px}.forecast-snippet-top button{background:transparent;border:0;color:#2e795e;font-weight:800;font-size:12px}
.forecast-snippet-value{font-size:25px;font-weight:850;letter-spacing:-.7px;margin:9px 0 5px;color:#163c32}.forecast-snippet-value.negative{color:#b94c53}.forecast-snippet p{font-size:11px;color:#507a65;line-height:1.45}
.forecast-hero{background:var(--navy);color:white;border-radius:23px;padding:21px;margin-top:4px}.forecast-label{color:#a6c8bc;font-size:12px;font-weight:700}.forecast-number{font-size:30px;font-weight:860;letter-spacing:-1px;margin:12px 0;overflow-wrap:anywhere}.forecast-number.negative{color:#ffb4a9}.forecast-hero p{color:#bcc9d6;font-size:11px;line-height:1.55}
.expected-card{display:flex;gap:10px;align-items:center;justify-content:space-between}.expected-card>div{min-width:0}.expected-card strong{font-size:22px;font-weight:850}.expected-card p{margin-top:7px;font-size:11px;line-height:1.5}.expected-card .smallbtn{flex:0 0 auto}
.budget-summary{margin-bottom:10px}.budget-summary .split>div{display:flex;flex-direction:column;gap:5px}.budget-summary small{font-size:11px;color:var(--muted)}.budget-summary strong{font-size:19px;letter-spacing:-.4px}.budget-summary .hint{margin-top:11px}
.budget-list{padding:4px 15px}.budget-item{padding:15px 0;border-bottom:1px solid var(--line)}.budget-item:last-child{border-bottom:0}.budget-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.budget-top>div{min-width:0}.budget-top b{font-size:13px;display:block}.budget-top span{color:var(--muted);font-size:11px;display:block;margin-top:4px}.budget-meter{height:9px;background:#e9efef;border-radius:9px;overflow:hidden;margin-top:12px}.budget-meter span{background:#69bb98;display:block;height:100%;border-radius:9px}.budget-meter span.over{background:#e59a72}.budget-bottom{display:flex;justify-content:space-between;font-size:11px;margin-top:9px;color:var(--muted)}.budget-bottom strong{font-size:12px}.budget-toolbar{display:flex;justify-content:center;margin-top:11px}.budget-toolbar .smallbtn{display:flex;gap:6px;align-items:center}.budget-toolbar svg{width:16px;height:16px}
html[data-theme="dark"] .forecast-snippet{background:#1b3a36;border-color:#31574c}html[data-theme="dark"] .forecast-snippet-top,html[data-theme="dark"] .forecast-snippet-top button{color:#9dd5b5}html[data-theme="dark"] .forecast-snippet-value{color:#e1f8ea}html[data-theme="dark"] .forecast-snippet p{color:#b0cbbc}html[data-theme="dark"] .budget-meter{background:#354759}
@media(max-width:370px){.forecast-number{font-size:26px}.budget-summary strong{font-size:16px}.expected-card strong{font-size:19px}}


/* V2.3.1: per-shift mileage and hourly earnings without any schema changes */
.efficiency-breakdown{margin-top:17px;padding-top:14px;border-top:1px solid var(--line)}
.efficiency-breakdown-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.efficiency-breakdown-head strong{font-size:13px;font-weight:800}
.efficiency-breakdown-head span{font-size:11px;color:var(--muted)}
.efficiency-item{padding:14px 0;border-bottom:1px solid var(--line)}
.efficiency-item:last-child{border-bottom:0;padding-bottom:0}
.efficiency-item-head{display:flex;justify-content:space-between;align-items:baseline;gap:9px}
.efficiency-item-head strong{font-size:13px;white-space:nowrap}
.efficiency-item-head span{font-size:10px;line-height:1.5;color:var(--muted);text-align:right}
.efficiency-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px}
.efficiency-kpi{min-width:0;background:var(--bg);border-radius:12px;padding:12px 10px}
.efficiency-kpi span{display:block;font-size:11px;color:var(--muted);line-height:1.35}
.efficiency-kpi b{display:block;margin-top:6px;font-size:14px;font-weight:850;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-theme="dark"] .efficiency-kpi{background:#223249}
@media(max-width:360px){.efficiency-item-head{align-items:flex-start;flex-direction:column;gap:3px}.efficiency-item-head span{text-align:left}}

/* 2.3.2: Keep archived parking expense distinct from water and tolls. */
.legacy-shift-expense{margin-top:12px;padding:13px;border:1px solid var(--line);border-radius:16px;background:var(--card)}.legacy-shift-expense .help{display:block;margin-top:8px;color:var(--muted);font-size:12px;line-height:1.5}

/* Version 2.3.3: monthly taxi income target in budgets */
.taxi-target-card{padding:18px 17px;margin-bottom:14px}
.taxi-target-top,.taxi-target-stat{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.taxi-target-top{font-size:12px;font-weight:750;color:var(--muted)}
.taxi-target-top strong{font-size:17px;color:var(--ink);white-space:nowrap}
.taxi-target-large{padding:17px 0 10px;display:flex;flex-direction:column;gap:4px}
.taxi-target-large span{font-size:11px;color:var(--muted);font-weight:650}
.taxi-target-large b{font-size:29px;font-weight:850;letter-spacing:-.8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.taxi-target-meter{height:11px;background:#e8efef;border-radius:99px;overflow:hidden;margin:8px 0 15px}
.taxi-target-meter span{display:block;height:100%;background:linear-gradient(90deg,#74c7a3,#36a47c);border-radius:99px}
.taxi-target-stat{font-size:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.taxi-target-stat span{color:var(--muted)}
.taxi-target-stat strong{font-weight:800;font-variant-numeric:tabular-nums;text-align:right}
.taxi-target-stat small{font-size:10px;color:var(--muted)}
.taxi-target-hint{font-size:11px;line-height:1.5;margin-top:10px}
.taxi-pace{font-size:12px;font-weight:750;margin-top:14px;padding:11px 12px;border-radius:11px;background:#e6f4ed;color:#288364}
.taxi-pace.behind{background:#fff2e4;color:#9e6a2a}
.taxi-target-setup{margin-top:11px}
html[data-theme="dark"] .taxi-target-meter{background:#344a5c}
html[data-theme="dark"] .taxi-pace{background:#244939;color:#9be0bb}
html[data-theme="dark"] .taxi-pace.behind{background:#4f3f31;color:#f6ca94}
@media(max-width:360px){.taxi-target-top strong{font-size:15px}.taxi-target-large b{font-size:25px}}


/* v2.4: cash obligations per due date (light and dark theme) */
.cash-calendar{display:flex;flex-direction:column;gap:11px;margin:0 0 13px}
.cash-overview{border-radius:21px;background:var(--navy);padding:19px 18px;color:#fff;display:flex;justify-content:space-between;align-items:flex-end;gap:10px}
.cash-overview>div:first-child{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}.cash-eyebrow{font-size:12px;font-weight:750;color:#a7c6ba}.cash-overview strong{font-size:27px;line-height:1.2;letter-spacing:-.5px;overflow-wrap:anywhere}
.cash-overview small{color:#b9c9d9;line-height:1.5;font-size:10px}.cash-pair{display:flex;flex-direction:column;gap:5px;text-align:right;flex:0 0 auto}.cash-pair span{font-size:10px;color:#b6c8d8}.cash-pair b{font-size:13px}
.cash-available{display:flex;align-items:center;justify-content:space-between;gap:9px;border:1px solid var(--line);background:var(--card);border-radius:18px;padding:16px}
.cash-available>div{display:flex;min-width:0;flex-direction:column;gap:6px}.cash-available span{font-size:11px;color:var(--muted)}.cash-available strong{font-size:19px;overflow-wrap:anywhere}.cash-available small{color:var(--muted);font-size:10px;line-height:1.5}.cash-available .smallbtn{white-space:nowrap;flex:0 0 auto}
.cash-milestones{display:flex;justify-content:space-between;gap:6px;align-items:baseline;padding:7px 2px 3px}.cash-milestones strong{font-size:15px}.cash-milestones span{font-size:10px;color:var(--muted);text-align:right}
.cash-date-row{background:var(--card);border:1px solid var(--line);border-radius:17px;padding:14px 15px}
.cash-date-top,.cash-date-major{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.cash-day{font-size:13px;font-weight:800}.cash-due{color:var(--muted);font-size:11px;text-align:right}
.cash-date-major{margin-top:14px;align-items:center}.cash-date-major span{font-size:11px;color:var(--muted);line-height:1.35}.cash-date-major strong{font-size:20px;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.cash-credit-names{font-size:10px;color:var(--muted);line-height:1.5;margin-top:10px}.cash-coverage{margin-top:12px;font-size:11px;font-weight:700;padding:9px 11px;border-radius:10px;line-height:1.4}
.cash-coverage.gap{background:#fff0df;color:#985424}.cash-coverage.enough{background:#e6f4ed;color:#287d5b}
.cash-info{font-size:11px;line-height:1.6;color:var(--muted);padding:11px 13px;background:var(--card);border:1px solid var(--line);border-radius:11px}
.cash-info.warn{color:#a57738;background:#fff5e7;border-color:#f1dcbb}.cash-disclaimer{font-size:11px;color:var(--muted);line-height:1.6;padding:9px 5px}.cash-no-dues{font-size:12px;color:var(--muted);padding:17px;background:var(--card);border:1px solid var(--line);border-radius:15px}
.cash-calendar-select-total{border-top:1px solid var(--line);padding-top:11px;margin-top:11px;display:flex;justify-content:space-between;gap:9px;align-items:center}.cash-calendar-select-total span{font-size:11px;color:var(--muted)}.cash-calendar-select-total b{font-size:16px;white-space:nowrap}
html[data-theme="dark"] .cash-coverage.gap{background:#503b2c;color:#f7c897}html[data-theme="dark"] .cash-coverage.enough{background:#224e40;color:#a1e0ba}html[data-theme="dark"] .cash-info.warn{background:#403729;color:#f2c88c;border-color:#644f32}
@media(max-width:380px){.cash-overview{flex-direction:column;align-items:stretch}.cash-pair{text-align:left}.cash-date-major strong{font-size:17px}.cash-milestones{flex-direction:column;align-items:flex-start}.cash-milestones span{text-align:left}}

/* v2.5: work shifts needed before each payment checkpoint */
.workplan{background:var(--card);border:1px solid var(--line);border-radius:23px;padding:17px 15px;margin-bottom:15px;box-shadow:var(--shadow)}
.workplan-heading{display:flex;align-items:flex-start;gap:10px;justify-content:space-between;margin-bottom:15px}
.workplan-heading>div{min-width:0}.workplan-heading strong{font-size:15px;font-weight:800}
.workplan-heading p{margin:5px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}
.workplan-count{border-radius:99px;background:#e8f4ec;color:#277c59;font-size:11px;font-weight:780;padding:7px 9px;white-space:nowrap}
.shift-weekdays,.shift-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}
.shift-weekdays{margin-bottom:7px}.shift-weekdays span{font-size:10px;color:var(--muted);font-weight:750}
.shift-day{height:39px;min-width:0;position:relative;border:1px solid var(--line);border-radius:11px;background:var(--card);color:var(--ink);font:inherit;font-size:12px;font-weight:750;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:0}
.shift-day.selected{background:#dff5e9;color:#246d50;border:1.5px solid #84caa6}.shift-day.elapsed{opacity:.42;cursor:default}.shift-day.weekend:not(.selected){background:var(--bg)}
.shift-day:focus-visible{outline:3px solid #8ccbb5;outline-offset:2px}.shift-day:disabled{pointer-events:none}
.shift-day-mark{position:absolute;bottom:1px;right:1px;width:11px;height:11px;display:grid;place-items:center}
.shift-day-mark .icon{width:9px;height:9px}
.workplan-actions{display:flex;gap:9px;margin:14px 0}.workplan-actions .smallbtn{font-size:11px;flex:1}
.workplan-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:16px}
.workplan-card{background:var(--bg);border:1px solid var(--line);border-radius:15px;padding:13px 10px;min-width:0;display:flex;flex-direction:column;gap:9px}
.workplan-card>span{font-size:11px;font-weight:750;color:var(--muted)}.workplan-card strong{font-size:18px;letter-spacing:-.5px;line-height:1.2;overflow-wrap:anywhere}
.workplan-card small{font-size:10px;line-height:1.45;color:var(--muted)}
.workplan-deadlines{margin-top:18px;border-top:1px solid var(--line);padding-top:15px}.workplan-deadlines h3{margin:0 0 8px;font-size:14px}
.shift-deadline{padding:11px 0;border-bottom:1px solid var(--line)}.shift-deadline:last-child{border-bottom:0}
.shift-deadline-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.shift-deadline-top strong{font-size:12px}.shift-deadline-top>span{font-size:11px;font-weight:700;text-align:right}
.shift-deadline-metrics{display:flex;flex-direction:column;gap:4px;margin-top:7px;color:var(--muted);font-size:11px;line-height:1.5}
.shift-deadline-metrics b{color:var(--ink)}
.workplan-warning{background:#fff0df;color:#935523;border-radius:12px;padding:12px;margin-top:11px;line-height:1.5}.workplan-warning strong{font-size:12px}.workplan-warning p{font-size:11px;margin:5px 0 0}
.workplan-disclaimer{font-size:10px;color:var(--muted);line-height:1.55;margin:16px 2px 0}
.workplan-shortcut{margin:13px 0 4px;padding:14px 15px;background:#e8f5ee;border:1px solid #d4e9dd;border-radius:17px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.workplan-shortcut strong{font-size:12px}.workplan-shortcut p{margin:5px 0 0;font-size:11px;line-height:1.4;color:#607b6b}
.workplan-shortcut button{border:0;border-radius:11px;background:#d5ede0;color:#206849;font-size:11px;font-weight:800;padding:10px 9px;white-space:nowrap}
html[data-theme="dark"] .workplan-count,html[data-theme="dark"] .shift-day.selected{background:#254c3c;color:#a6e7bf;border-color:#46775e}
html[data-theme="dark"] .workplan-warning{background:#49392b;color:#f4c796}
html[data-theme="dark"] .workplan-shortcut{background:#214037;border-color:#345746}
html[data-theme="dark"] .workplan-shortcut p{color:#a8c9b9}html[data-theme="dark"] .workplan-shortcut button{background:#315b47;color:#b9f2d2}
@media(max-width:360px){.workplan{padding:14px 10px}.shift-day{height:34px}.workplan-card strong{font-size:16px}.workplan-card{padding:11px 9px}.shift-days,.shift-weekdays{gap:3px}}

/* Итоги видимых операций за день */
.day-total{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 0 4px;color:var(--ink);font-size:13px;font-weight:750}.day-total b{font-variant-numeric:tabular-nums;white-space:nowrap}

.home-week-period,.home-week-note,.home-week-empty{font-size:11px;line-height:1.5;color:var(--muted)}
.home-week-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.home-week-row span{min-width:0}.home-week-row b,.home-week-row small{display:block}.home-week-row small{font-size:11px;color:var(--muted);margin-top:4px}.home-week-row strong,.home-week-total b{font-variant-numeric:tabular-nums;white-space:nowrap}.home-week-total{display:flex;justify-content:space-between;gap:12px;margin-top:11px;font-size:12px}.home-week-note{margin-top:10px}.home-week-warning{margin-top:12px;padding:10px;border-radius:10px;background:#fff5e8;color:#93663b;font-size:11px;line-height:1.5}html[data-theme="dark"] .home-week-warning{background:#49392b;color:#f4c796}
