:root{--navy:#172b4d;--ink:#192c47;--muted:#64748b;--blue:#2563eb;--teal:#0f766e;--purple:#6d28d9;--line:#e4eaf2;--page:#f5f7fb;--red:#b4233b;--shadow:0 6px 22px #172b4d05;--radius:19px}
*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--page);color:var(--ink);font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:var(--blue)}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #83aaff;outline-offset:3px}button svg{flex-shrink:0}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.2;letter-spacing:-.7px;margin-bottom:9px}h2{font-size:18px;line-height:1.35;letter-spacing:-.2px;margin-bottom:5px}h3{font-size:15px;margin-bottom:8px}p{margin-bottom:12px}small,.muted{color:var(--muted)}small{font-size:12px}.eyebrow{font-size:11px;letter-spacing:1.1px;font-weight:700;color:var(--muted);text-transform:uppercase}.skip{position:fixed;top:-80px;left:12px;z-index:1000;background:white;padding:12px}.skip:focus{top:10px}svg{display:block}.icon{width:20px;height:20px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.app-shell{display:flex;min-height:100vh}.sidebar{width:226px;background:var(--navy);color:#b8c9e3;position:fixed;inset:0 auto 0 0;padding:32px 17px 24px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:0 9px;color:white;text-decoration:none;font-size:18px;font-weight:700;line-height:1.15}.brand-sub{display:block;font-size:12px;font-weight:400;color:#afc0dc;margin-top:4px}.nav-caption{font-size:10px;letter-spacing:1.5px;color:#8ba2c4;margin:44px 16px 12px}.nav-button{width:100%;display:flex;align-items:center;gap:13px;min-height:48px;padding:12px 16px;border:0;border-radius:11px;background:transparent;color:#bccbe2;text-decoration:none;font-weight:500;margin-bottom:7px;transition:background .15s}.nav-button:hover{background:#ffffff0b}.nav-button.active{background:#35517a;color:white}.nav-button.active .nav-mark{background:#73e0c4}.nav-mark{margin-left:auto;width:5px;height:5px;border-radius:100%}.sidebar-bottom{margin-top:auto;position:relative;padding:20px 13px 0;border-top:1px solid #ffffff16;font-size:12px}.sidebar-bottom p{padding-left:18px;color:#c8d4e5}.privacy-dot{position:absolute;left:14px;top:25px;width:7px;height:7px;border-radius:50%;background:#73e0c4}.sidebar-help{background:none;border:0;color:#afc7ea;padding:0;text-align:left;font-size:12px;text-decoration:underline;text-underline-offset:4px}main{width:calc(100% - 226px);margin-left:226px}.topbar{height:84px;padding:0 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fff9;gap:20px}.crumb{color:var(--muted);font-size:12px}.crumb span{margin:0 12px;color:#b4c1d1}.crumb strong{color:var(--ink);font-weight:500}.top-actions{display:flex;gap:18px;align-items:center}.save-status{font-size:11px;color:var(--muted)}.save-status.warn{color:var(--red)}.save-status::before{content:'';display:inline-block;width:6px;height:6px;background:#36a98b;border-radius:50%;margin-right:7px}.save-status.warn::before{background:var(--red)}.mobile-brand{display:none}.main-inner{max-width:1400px;margin:0 auto;padding:34px 40px 25px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px}.page-heading p{color:var(--muted);font-size:13px;margin:0}.heading-actions{display:flex;gap:9px;align-items:center}.demo-label{background:#e9effc;color:#3b5c9a;border-radius:100px;padding:5px 9px;font-size:10px;font-weight:700;white-space:nowrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border:1px solid transparent;border-radius:10px;font-weight:600;min-height:42px;text-decoration:none;font-size:12px;white-space:nowrap;background:var(--blue);color:white}.button:hover{filter:brightness(.96)}.button.secondary{background:white;border-color:#dbe3ee;color:var(--ink)}.button.ghost{background:transparent;color:var(--blue);padding:7px 0;min-height:32px}.button.compact{padding:8px 12px;min-height:36px;font-size:11px}.button.danger{background:var(--red)}.button.danger-text{background:transparent;color:var(--red);padding:7px 9px}.icon-button{display:inline-flex;align-items:center;justify-content:center;background:none;border:1px solid var(--line);width:34px;height:34px;border-radius:9px}.icon-button:hover{background:#edf2fa}.data-menu-wrap{position:relative}.data-menu{position:absolute;right:0;top:44px;width:230px;padding:7px;background:white;box-shadow:0 10px 40px #172b4d20;border:1px solid var(--line);border-radius:13px;z-index:40}.data-menu button{display:block;width:100%;text-align:left;background:none;border:0;border-radius:7px;padding:10px 11px;font-size:12px}.data-menu button:hover{background:var(--page)}.data-menu hr{border:0;border-top:1px solid var(--line);margin:6px}
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:22px}.stat{position:relative;background:white;border:1px solid var(--line);border-radius:var(--radius);padding:23px 23px 20px;box-shadow:var(--shadow);overflow:hidden}.stat-label{font-size:12px;color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:8px}.stat-label .icon{width:18px;height:18px;color:#8396b3}.stat-value{font-size:29px;font-weight:700;letter-spacing:-1px;margin:13px 0 10px;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat-value.date{font-size:23px;letter-spacing:-.5px}.stat-meta{font-size:11px;color:var(--muted)}.stat.emphasis{background:linear-gradient(115deg,#e9f5f0,#f5fbf8);border-color:#d5e9e0}.stat.emphasis .stat-value{color:#146b59}.pill{display:inline-flex;align-items:center;gap:5px;font-size:10px;padding:3px 8px;border-radius:100px;background:#e8f5ef;color:#146b59;font-weight:700}.pill.moderate{background:#fff4da;color:#886013}.pill.high,.pill.critical,.pill.overpayment{background:#fce9ed;color:#a02138}.pill.low{background:#e8f5ef;color:#146b59}.pill.none{background:#eef2f7;color:var(--muted)}.pill.blue{background:#eaf0ff;color:#2c58bb}.pill.missing_interest{background:#fff4da;color:#886013}.panel{border:1px solid var(--line);border-radius:var(--radius);background:white;box-shadow:var(--shadow);padding:23px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:18px}.panel-head p{font-size:11px;color:var(--muted);margin:4px 0 0}.panel-head h2{margin:0}.two-col{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(280px,1fr);gap:20px;margin-bottom:20px}.equal-col{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:22px}.legend{display:flex;gap:17px;flex-wrap:wrap;font-size:10px;color:var(--muted);align-items:center}.legend span{display:flex;gap:6px;align-items:center}.legend i{display:block;width:14px;height:3px;border-radius:2px;background:var(--blue)}.legend i.dashed{background:repeating-linear-gradient(90deg,#94a3b8 0 3px,transparent 3px 5px)}.legend i.teal{background:var(--teal)}.chart-wrap{position:relative;min-width:0}.debt-chart{width:100%;height:230px;overflow:visible}.chart-axis{font-size:10px;fill:#7c8da4}.chart-grid{stroke:#e9edf4;stroke-dasharray:3 4}.chart-baseline{fill:none;stroke:#97a7bd;stroke-width:2;stroke-dasharray:5 4}.chart-plan{fill:none;stroke:var(--blue);stroke-width:3}.chart-tooltip{position:absolute;pointer-events:none;background:#172b4df5;color:white;padding:10px 12px;border-radius:10px;font-size:11px;box-shadow:0 5px 20px #172b4d22;z-index:3;white-space:nowrap;max-width:280px}.chart-tooltip b{display:block;margin-bottom:4px}.chart-foot{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px;margin-top:9px}.recommendation{display:flex;gap:15px;align-items:flex-start;background:#ecf2ff;border:1px solid #dee8ff;border-radius:15px;padding:18px 21px;margin-bottom:28px}.recommendation>.icon{color:var(--blue);width:22px;height:22px;flex-shrink:0}.recommendation strong{font-size:12px;display:block;margin-bottom:4px}.recommendation p{font-size:12px;margin:0;line-height:1.6}.budget-visual{display:flex;justify-content:center;position:relative;height:164px;margin:0 0 14px}.budget-visual svg{width:164px;height:164px;transform:rotate(-90deg)}.donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:10px;color:var(--muted);pointer-events:none}.donut-center strong{font-size:21px;color:var(--ink);margin-top:3px;letter-spacing:-.5px}.budget-lines{display:grid;gap:8px}.budget-line{display:flex;justify-content:space-between;align-items:center;font-size:11px;gap:7px}.budget-line span{color:var(--muted);display:flex;align-items:center;gap:7px}.dot{height:7px;width:7px;display:inline-block;border-radius:50%;flex-shrink:0}.budget-line strong{font-weight:500;white-space:nowrap}.budget-total{margin-top:12px;padding-top:12px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:8px;font-size:11px}.deficit-box{background:#fff0f2;color:var(--red);padding:18px;border-radius:12px;margin-bottom:16px}.deficit-box strong{display:block;font-size:24px;margin:5px 0}.deficit-box p{font-size:11px;margin:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}.section-heading h2{font-size:19px}.section-heading p{color:var(--muted);font-size:11px;margin:4px 0 0}.projection-control{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px;white-space:nowrap}.projection-control select{border:1px solid #dae2ef;border-radius:9px;background:white;padding:8px;color:var(--ink)}.loan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.loan-card{background:white;border:1px solid var(--line);border-radius:16px;padding:19px;min-width:0;box-shadow:var(--shadow)}.loan-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:18px}.loan-card-top h3{font-size:13px;margin:0;overflow-wrap:anywhere}.loan-card-top .rate{font-size:10px;color:var(--muted);background:#f2f5f9;padding:3px 7px;border-radius:6px;white-space:nowrap}.ring-row{display:flex;gap:15px;align-items:center}.loan-ring{width:78px;height:78px;flex-shrink:0;position:relative}.loan-ring svg{width:100%;height:100%;transform:rotate(-90deg)}.loan-ring span{position:absolute;inset:0;display:grid;place-content:center;font-size:15px;font-weight:700}.ring-info{font-size:10px;color:var(--muted);min-width:0}.ring-info strong{display:block;font-size:13px;color:var(--ink);margin:3px 0 9px}.loan-card-footer{border-top:1px solid var(--line);margin-top:15px;padding-top:12px;font-size:10px;color:var(--muted);display:flex;justify-content:space-between;gap:8px}.loan-card-footer strong{color:var(--ink);font-weight:500}.section-gap{margin-top:28px}.warning{border:1px solid #f3cf92;background:#fff8e9;color:#765420;border-radius:12px;padding:13px 16px;font-size:12px;margin-bottom:16px}.warning.error{border-color:#f1c4cc;background:#fff0f2;color:#97263b}.warning p{margin:0}.empty{padding:46px 25px;text-align:center;border:1px dashed #ccd7e8;border-radius:18px;background:#fff}.empty>.icon{width:39px;height:39px;color:#8ca3c5;margin-bottom:13px}.empty h2{margin-bottom:8px}.empty p{max-width:480px;margin:0 auto 20px;color:var(--muted);font-size:13px}.empty.small{padding:25px 20px;border-style:solid}.loading{min-height:400px;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading h1{font-size:22px}.loading p{color:var(--muted)}.spinner{width:30px;height:30px;border:3px solid var(--line);border-top-color:var(--blue);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:20px}@keyframes spin{to{transform:rotate(360deg)}}
.debt-list{display:grid;gap:13px;margin-bottom:22px}.debt-row{background:white;border:1px solid var(--line);border-radius:15px;padding:20px;display:grid;grid-template-columns:minmax(180px,1.8fr) 1fr 1fr auto;gap:20px;align-items:center}.debt-name{display:flex;align-items:center;gap:12px;min-width:0}.loan-monogram{width:40px;height:40px;border-radius:12px;background:#edf2ff;display:grid;place-content:center;font-size:14px;font-weight:700;flex-shrink:0}.debt-name h3{margin:0 0 3px;overflow-wrap:anywhere}.debt-name small{font-size:10px}.debt-metric span{display:block;color:var(--muted);font-size:10px;margin-bottom:4px}.debt-metric strong{font-size:15px;white-space:nowrap}.row-actions{display:flex;gap:7px;align-items:center}.explain{font-size:12px;color:var(--muted);max-width:800px;line-height:1.7}.settings-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.settings-summary div{padding:14px;background:var(--page);border-radius:10px}.settings-summary span{font-size:11px;color:var(--muted);display:block;margin-bottom:5px}.settings-summary strong{font-size:15px}.strategy-control{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.strategy-control select,.table-filter select{border:1px solid #dbe3ee;background:#fff;border-radius:9px;padding:10px 12px;max-width:100%;color:var(--ink)}.switch-label{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px}.switch-label input{accent-color:var(--blue);width:17px;height:17px}.strategy-explanation{font-size:12px;color:var(--muted);margin-top:12px;margin-bottom:0}.timeline{display:grid;gap:16px}.timeline-row{display:grid;grid-template-columns:155px minmax(0,1fr) 70px;gap:14px;align-items:center}.timeline-name{font-size:12px;overflow-wrap:anywhere}.timeline-name small{display:block;font-size:10px;margin-top:3px}.timeline-track{display:grid;gap:4px}.timeline-bar{height:7px;border-radius:5px;background:#dbe3ef;min-width:1px}.timeline-bar.plan{background:var(--blue)}.timeline-value{font-size:11px;text-align:right}.timeline-value small{display:block}.once-list{display:grid;gap:0}.once-row{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-top:1px solid var(--line);align-items:center}.once-row:first-child{border-top:0}.once-row b{display:block;font-size:12px}.once-row small{font-size:10px}.once-right{display:flex;align-items:center;gap:12px}.once-amount{font-size:13px;text-align:right}.once-amount small{display:block}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.table-filter{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.segmented{display:inline-flex;border:1px solid var(--line);border-radius:9px;overflow:hidden}.segmented button{border:0;background:white;padding:9px 12px;font-size:11px}.segmented button.active{background:#eaf0ff;color:#2454b5;font-weight:700}.table-wrap{overflow:auto;margin:0 -23px;padding:0 23px}table{width:100%;border-collapse:collapse;font-size:11px;white-space:nowrap}th{text-align:right;color:var(--muted);font-size:10px;font-weight:500;padding:10px 10px;background:#f5f7fb;border-bottom:1px solid var(--line)}th:first-child,td:first-child{text-align:left}td{text-align:right;padding:12px 10px;border-bottom:1px solid #edf1f7;font-variant-numeric:tabular-nums}tbody tr:last-child td{border-bottom:0}.pagination{display:flex;align-items:center;justify-content:space-between;margin-top:17px;color:var(--muted);font-size:11px}.pagination div{display:flex;gap:6px}.journal-list .entry{display:grid;grid-template-columns:100px minmax(120px,1fr) minmax(100px,1fr) auto;gap:18px;align-items:center;padding:17px 0;border-top:1px solid var(--line)}.journal-list .entry:first-child{border-top:0}.entry-date{font-size:11px;color:var(--muted)}.entry b{font-size:12px;display:block;overflow-wrap:anywhere}.entry small{display:block;margin-top:3px;font-size:10px}.entry-amount{font-size:15px;font-weight:700;text-align:right}.summary-rows{display:grid;gap:0}.summary-row{padding:13px 0;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.summary-row:first-child{border-top:0}.summary-row b{font-size:12px}.summary-row small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.summary-row strong{font-size:15px}.actual-chart{height:210px;width:100%}.page-footer{display:flex;justify-content:space-between;gap:15px;margin-top:32px;padding-top:18px;border-top:1px solid var(--line);color:#7a8ba4;font-size:10px}.page-footer button{border:0;background:none;color:var(--muted);font-size:10px;padding:0;text-decoration:underline;text-underline-offset:3px}.mobile-nav{display:none}
dialog{border:1px solid #dbe3ed;border-radius:20px;padding:0;width:min(610px,calc(100% - 28px));max-height:90svh;box-shadow:0 24px 100px #071b4533;color:var(--ink)}dialog::backdrop{background:#0b1e3c66;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 25px 16px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:22px;margin-bottom:5px}.dialog-head p{font-size:12px;color:var(--muted);margin:0}.dialog-body{padding:22px 25px;max-height:calc(90svh - 190px);overflow:auto}.dialog-footer{display:flex;gap:10px;justify-content:flex-end;padding:16px 25px;border-top:1px solid var(--line);background:white}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:block;min-width:0}.field.full{grid-column:1/-1}.field>span{font-size:12px;font-weight:600;display:block;margin-bottom:7px}.field input,.field select,.field textarea{display:block;width:100%;border:1px solid #d6dfeb;border-radius:9px;padding:11px 12px;min-height:44px;color:var(--ink);background:white}.field textarea{min-height:70px;resize:vertical}.field small{display:block;font-size:10px;margin-top:5px;line-height:1.5}.field [aria-invalid=true]{border-color:var(--red);background:#fff8f9}.field-error{display:block;font-size:11px;color:var(--red);margin-top:5px}.form-error{padding:12px 14px;background:#fff0f2;color:#a02338;border-radius:9px;font-size:12px;margin-bottom:16px}.form-error:empty{display:none}details{margin-top:19px;border-top:1px solid var(--line);padding-top:15px}summary{font-weight:600;font-size:12px;cursor:pointer;margin-bottom:15px}.method-list{display:grid;gap:17px}.method-list h3{font-size:13px}.method-list p{color:var(--muted);font-size:12px;margin:0;line-height:1.7}.confirm-copy{font-size:13px;color:var(--muted);line-height:1.7}.toast{position:fixed;left:calc(50% + 90px);bottom:25px;transform:translateX(-50%);z-index:100;background:#172b4df5;color:white;padding:13px 20px;border-radius:12px;max-width:calc(100% - 30px);font-size:12px;box-shadow:0 8px 40px #172b4d22}.toast.error{background:#9d243b}.limit-note{color:var(--muted);font-size:11px}.inline-empty{font-size:12px;color:var(--muted);padding:15px 0}.help-copy{font-size:11px;color:var(--muted);line-height:1.6;margin-top:13px}
@media(min-width:1600px){.main-inner{padding-top:42px}.debt-chart{height:260px}.stat-value{font-size:34px}}
@media(max-width:1200px){.sidebar{width:194px;padding-left:12px;padding-right:12px}.brand{font-size:16px}.brand img{width:35px;height:35px}.nav-button{font-size:13px}main{margin-left:194px;width:calc(100% - 194px)}.main-inner{padding:27px 25px}.topbar{padding:0 25px}.two-col{grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr)}.loan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:19px}.stat-value{font-size:25px}.stat-value.date{font-size:19px}.loan-card{padding:18px}.stats-grid{gap:13px}.debt-row{gap:13px;grid-template-columns:minmax(155px,1.5fr) 1fr 1fr auto}.debt-metric strong{font-size:13px}.save-status{max-width:180px}}
@media(max-width:950px){.two-col,.equal-col{grid-template-columns:1fr}.budget-layout{display:grid;grid-template-columns:180px 1fr;gap:24px;align-items:center}.budget-visual{margin-bottom:0}.budget-total{grid-column:1/-1}.top-actions{gap:10px}.save-status{display:none}.debt-row{grid-template-columns:minmax(160px,1fr) 1fr auto}.debt-row .debt-metric:nth-of-type(3){display:none}.settings-summary{grid-template-columns:repeat(2,1fr)}.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-label{font-size:10px}.stat-value{font-size:22px}.stat-value.date{font-size:17px}.stat-meta{font-size:10px}.panel{padding:20px}.table-wrap{margin:0 -20px;padding:0 20px}.journal-list .entry{gap:11px;grid-template-columns:85px 1fr 100px auto}.timeline-row{grid-template-columns:130px 1fr 60px}.section-heading{align-items:flex-start}}
@media(max-width:700px){.sidebar{display:none}main{width:100%;margin:0}.topbar{height:69px;padding:0 19px;background:white;gap:8px}.crumb{display:none}.mobile-brand{display:flex;align-items:center;gap:9px;font-size:12px}.topbar .button{font-size:10px;padding:7px 9px}.topbar .button span{display:none}.main-inner{padding:25px 18px 105px}.page-heading{margin-bottom:22px;gap:12px;align-items:flex-start}.page-heading h1{font-size:26px}.page-heading p{font-size:11px;max-width:260px}.heading-actions{flex-direction:column;gap:7px;align-items:flex-end}.heading-actions .button{padding:9px 12px;min-height:37px;font-size:11px}.heading-actions .button .icon{display:none}.demo-label{font-size:9px;padding:4px 7px}.stats-grid{gap:10px;grid-template-columns:1fr 1fr;margin-bottom:17px}.stat{padding:17px 15px;border-radius:15px}.stat:first-child{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center}.stat:first-child .stat-label{grid-column:1;grid-row:1}.stat:first-child .stat-value{grid-row:1/3;grid-column:2;margin:0 0 0 8px;font-size:28px}.stat:first-child .stat-meta{grid-column:1;margin-top:7px}.stat-label{font-size:10px}.stat-value{font-size:23px;margin:10px 0 7px}.stat-value.date{font-size:18px}.stat-meta{font-size:10px}.stat-label .icon{width:16px;height:16px}.panel{padding:18px;border-radius:16px}.panel-head h2{font-size:16px}.two-col,.equal-col{gap:16px;margin-bottom:17px}.debt-chart{height:210px}.legend{gap:12px;font-size:9px}.chart-axis{font-size:10px}.chart-foot{font-size:9px}.chart-foot button{font-size:10px}.budget-layout{grid-template-columns:140px 1fr;gap:15px}.budget-visual,.budget-visual svg{width:140px;height:140px}.donut-center strong{font-size:17px}.budget-line{font-size:10px}.budget-total{font-size:10px}.recommendation{padding:16px;gap:11px;margin-bottom:25px}.recommendation p{font-size:11px}.recommendation strong{font-size:12px}.section-heading{gap:14px;flex-wrap:wrap}.section-heading h2{font-size:18px}.projection-control{margin-left:0}.projection-control select{padding:7px;font-size:11px}.loan-grid{grid-template-columns:1fr;gap:12px}.loan-card{padding:17px}.loan-card-top{margin-bottom:14px}.loan-card-top h3{font-size:14px}.loan-ring{width:76px;height:76px}.ring-row{gap:20px}.ring-info{display:grid;grid-template-columns:auto 1fr;column-gap:16px;align-items:center;font-size:10px;width:100%}.ring-info strong{margin:0;font-size:12px;text-align:right}.loan-card-footer{margin-top:14px;font-size:10px}.mobile-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;inset:auto 0 0;z-index:30;background:#fffffffa;border-top:1px solid #dce4f0;padding:7px 10px max(8px,env(safe-area-inset-bottom));box-shadow:0 -3px 20px #172b4d06;backdrop-filter:blur(12px)}.mobile-nav .nav-button{display:flex;flex-direction:column;gap:4px;text-align:center;color:#7889a1;margin:0;font-size:9px;padding:5px 3px;min-height:48px;border-radius:10px}.mobile-nav .nav-button.active{color:var(--blue);background:#edf3ff}.mobile-nav .nav-mark{display:none}.mobile-nav .icon{width:21px;height:21px}.page-footer{font-size:9px;display:block;line-height:1.7}.page-footer button{display:block;margin-top:6px}.debt-row{grid-template-columns:1fr auto;padding:17px;gap:14px}.debt-name{grid-column:1;grid-row:1}.row-actions{grid-column:2;grid-row:1}.debt-row .debt-metric{grid-row:2;grid-column:auto}.debt-row .debt-metric:nth-of-type(3){display:block}.debt-metric strong{font-size:15px}.debt-name h3{font-size:13px}.loan-monogram{width:36px;height:36px}.settings-summary{gap:9px}.settings-summary div{padding:11px}.settings-summary strong{font-size:13px}.settings-summary span{font-size:10px}.timeline-row{grid-template-columns:105px minmax(0,1fr) 54px;gap:10px}.timeline-name{font-size:10px}.timeline-value{font-size:10px}.timeline{gap:16px}.strategy-control select{width:100%;font-size:12px}.switch-label{font-size:11px}.table-toolbar{align-items:flex-start}.table-filter{width:100%}.table-filter select{max-width:100%;width:100%;font-size:12px}.table-wrap{margin:0 -18px;padding:0 18px}table{font-size:10px}th{font-size:9px}.once-row{gap:8px}.once-row b{font-size:11px}.once-amount{font-size:12px}.once-right{gap:8px}.journal-list .entry{grid-template-columns:1fr auto;gap:8px;padding:15px 0}.entry-date{grid-column:1;grid-row:1;font-size:10px}.entry b{font-size:12px}.entry-name{grid-column:1;grid-row:2}.entry-amount{grid-column:2;grid-row:1;font-size:14px}.entry .row-actions{grid-column:2;grid-row:2}.entry .row-actions .icon-button{width:30px;height:30px}.summary-row strong{font-size:13px}.summary-row b{font-size:11px}.summary-row small{font-size:9px}.toast{left:50%;bottom:90px;width:max-content;max-width:calc(100% - 30px);font-size:11px}.dialog-head{padding:21px 20px 15px}.dialog-head h2{font-size:20px}.dialog-body{padding:20px;max-height:calc(90svh - 185px)}.dialog-footer{padding:15px 20px}.dialog-footer .button{flex:1}.form-grid{gap:15px}.field input,.field select,.field textarea{font-size:16px}.field>span{font-size:11px}.field small{font-size:10px}.field.full-mobile{grid-column:1/-1}.data-menu{width:215px}.actual-chart{height:185px}.empty{padding:32px 20px}.empty h2{font-size:18px}.empty p{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.sync-warning{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:60;background:#fff7ed;border:1px solid #f5c58b;box-shadow:0 4px 30px #172b4d22;padding:12px 16px;border-radius:12px;display:flex;gap:15px;align-items:center;max-width:calc(100% - 28px);font-size:12px}.sync-warning[hidden]{display:none}.telegram main{padding-top:var(--telegram-top,0px)}.telegram .mobile-nav{padding-bottom:max(8px,env(safe-area-inset-bottom),var(--telegram-bottom,0px))}.telegram .main-inner{padding-bottom:calc(100px + var(--telegram-bottom,0px))}.account-label{font-size:11px;color:var(--muted);white-space:nowrap;max-width:130px;overflow:hidden;text-overflow:ellipsis}@media(max-width:700px){.sync-warning{bottom:85px;flex-direction:column;gap:8px;width:calc(100% - 28px)}.account-label{display:none}}
