:root{font-family:"Segoe UI",Arial,Helvetica,sans-serif;color:#24333e;background:#f4f7f8;font-synthesis:none;--ink:#24333e;--muted:#657681;--teal:#087f8c;--border:#e1e8eb;--shadow:0 3px 12px #18394604}*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.55}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button,input,select,a,summary{outline-offset:4px}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #39a5b6}a{color:inherit}button{border:0}h1,h2,p{margin:0}button,summary{touch-action:manipulation}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.skip-link{position:fixed;z-index:100;top:12px;left:12px;background:white;padding:12px;transform:translateY(-160%)}.skip-link:focus{transform:none}.workspace{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;padding:32px 20px 22px;background:#102e36;color:#c5d7db;display:flex;flex-direction:column;overflow-y:auto;z-index:10}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#fff;font-size:18px;font-weight:650;letter-spacing:-.3px;line-height:1.3;margin:0 2px 41px}.brand small{display:block;font-size:9px;font-weight:500;letter-spacing:1.6px;color:#96b7bf;margin-top:8px}.brand-symbol{display:flex;align-items:flex-end;gap:3px;width:30px;height:28px;flex-shrink:0}.brand-symbol i{display:block;width:7px;height:15px;background:#5dd0ce;border-radius:2px 2px 0 0}.brand-symbol i:nth-child(2){height:25px;background:#d0f1ed}.brand-symbol i:nth-child(3){height:20px;background:#88c7d4}.plans-title{display:flex;align-items:center;justify-content:space-between;margin:0 7px 16px}.plans-title h2{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:1.5px;color:#a1bfc6}.icon-button{display:inline-grid;place-items:center;min-width:32px;min-height:32px;background:transparent;color:inherit;font-size:24px;border-radius:6px;line-height:1}.plans-title .icon-button{background:#24434b;color:#d0ecef}.plan-search input{width:100%;border:1px solid #36535c;background:#173841;color:#eaf4f6;border-radius:7px;font-size:13px;padding:10px 12px;margin-bottom:13px}.plan-search input::placeholder{color:#a4bec5}#plan-list{display:flex;flex-direction:column;gap:5px;max-height:60vh;overflow:auto}.plan-item{display:flex;align-items:center;gap:11px;width:100%;padding:12px 11px;text-align:left;color:#bdd1d7;background:transparent;border:1px solid transparent;border-radius:7px;font-size:14px;line-height:1.4}.plan-item:hover{background:#20434c}.plan-item.active{background:#244953;border-color:#36606b;color:white}.plan-item>span{min-width:0;overflow-wrap:anywhere;flex:1}.plan-item small{display:block;font-size:11px;color:#a5c1c8;margin-top:4px}.plan-item .plan-initial{display:grid;place-items:center;width:27px;height:29px;border:1px solid #466b75;border-radius:5px;color:#9dd4dc;font-size:12px;flex:0 0 27px}.plan-item.active .plan-initial{background:#386670;color:#efffff}.archived-toggle{font-size:12px;display:flex;align-items:center;gap:7px;padding:18px 7px;color:#a4bec6}.sidebar-bottom{margin-top:auto;display:flex;align-items:flex-start;gap:9px;border-top:1px solid #31505a;padding:20px 5px 0;font-size:12px;color:#d0dfe3}.sidebar-bottom small{display:block;color:#91b2bb;font-size:10px;margin-top:4px}.local-dot{width:6px;height:6px;border-radius:50%;background:#64d1b2;flex:0 0 6px;margin-top:7px}.sidebar-loading{padding:8px;font-size:13px}main{margin-left:238px;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:77px;padding:20px 36px;border-bottom:1px solid var(--border);background:#fff}.breadcrumb{font-size:10px;letter-spacing:1.3px;color:#7d8b93}.breadcrumb span{margin:0 15px;color:#adb9bf}.breadcrumb strong{font-weight:600;color:#566975;letter-spacing:.2px;overflow-wrap:anywhere}.save-status{font-size:12px;color:#4b7c71;display:flex;align-items:center;gap:7px;white-space:nowrap}.save-status::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.save-status.unsaved{color:#96722b}.save-status.failed{color:#ae4d45}.content{max-width:1600px;margin:auto;padding:33px 36px 20px}.page-title{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:26px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.7px;color:#67808d;margin-bottom:8px}h1{font-size:29px;line-height:1.3;letter-spacing:-.8px;font-weight:650;color:#1e303d;overflow-wrap:anywhere}.page-description{color:var(--muted);font-size:14px;margin-top:10px}.title-actions{display:flex;gap:9px;flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:10px 15px;border-radius:7px;font-size:13px;font-weight:600;line-height:1.4;white-space:nowrap;text-decoration:none;border:1px solid transparent}.button.primary{background:#087f8c;color:white;box-shadow:0 2px 3px #087f8c18}.button.primary:hover:not(:disabled){background:#066b76}.button.secondary{background:white;border-color:#dce5e9;color:#49606e;box-shadow:var(--shadow)}.button.secondary:hover:not(:disabled){background:#f6fafb;border-color:#bfcfd7}.button.quiet{background:transparent;color:#58717d}.button.quiet:hover:not(:disabled){background:#edf3f5}.button.danger{background:#b2473d;color:white}.summary-grid{display:grid;grid-template-columns:1.17fr 1fr 1fr 1fr;gap:15px;margin-bottom:25px}.metric{background:#fff;border:1px solid var(--border);border-radius:10px;padding:20px 21px;box-shadow:var(--shadow);min-width:0}.metric-label{font-size:10px;letter-spacing:1.25px;font-weight:650;color:#73838c;display:flex;justify-content:space-between;gap:8px}.metric>strong{display:block;font-size:26px;line-height:1.3;font-weight:650;letter-spacing:-.6px;margin-top:17px;color:#243d49;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.metric>strong small{font-size:13px;font-weight:500;letter-spacing:0;color:#7b8e97}.metric>p{font-size:11px;color:#7a8d97;margin-top:10px;line-height:1.7}.metric.next-metric{background:#eaf5f5;border-color:#c6e2e3}.next-metric .metric-label{color:#4d7d83}.next-metric>strong{color:#076c79;font-size:29px}.next-metric>p{color:#57818a}.metric-symbol{font-size:15px;line-height:1}.progress-track{height:3px;background:#edf1f3;border-radius:3px;margin-top:14px;overflow:hidden}.progress-track>span{display:block;width:0;height:100%;background:#42a49f}.ledger-panel{border:1px solid var(--border);border-radius:10px;background:#fff;box-shadow:var(--shadow);overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 23px}.panel-heading h2{font-size:16px;font-weight:650;letter-spacing:-.2px}.panel-heading h2>span{font-size:10px;background:#edf2f4;color:#7b8d97;padding:4px 8px;border-radius:4px;font-weight:500;vertical-align:middle;margin-left:9px;white-space:nowrap}.panel-heading p{font-size:12px;color:#788b96;margin-top:7px}.plan-state{font-size:11px;color:#397b72;background:#eaf5ef;padding:5px 9px;border-radius:5px;white-space:nowrap}.plan-state.stopped{background:#fff1df;color:#926832}.ledger-scroll{overflow-x:auto;overscroll-behavior-x:contain;max-width:100%}table{border-collapse:collapse;width:100%;table-layout:fixed;min-width:1070px;font-size:13px}thead{background:#f6f9fa}th{padding:13px 10px;color:#7e909b;text-align:left;font-size:10px;letter-spacing:.6px;font-weight:600;border-block:1px solid #e6edf0;white-space:nowrap}td{border-bottom:1px solid #edf1f3;padding:13px 9px;height:70px;color:#526975;font-variant-numeric:tabular-nums;vertical-align:middle}th:first-child,td:first-child{padding-left:20px}.number-column{width:54px}th:nth-child(2){width:142px}.description-column{width:auto;min-width:200px}.odds-column{width:95px}.money-column{width:115px}.result-column{width:168px}.delete-column{width:38px}.number-cell{font-size:11px;color:#9aabb4}.money-cell{white-space:nowrap;text-align:right;font-size:13px;font-weight:550;color:#4b6572}th.money-column{text-align:right}.balance-cell{color:#264d5a;font-weight:650}.profit-positive{color:#24836a}.profit-negative{color:#b86558}td input,td select{max-width:100%;width:100%;border:1px solid transparent;background:transparent;color:#425a68;font-size:13px;padding:7px 6px;border-radius:5px;height:35px}td input:hover,td select:hover{border-color:#dce8ec;background:#fbfdfe}td input:focus,td select:focus{border-color:#83c2ca;background:white;outline:2px solid #cbe9eb;outline-offset:0}td input[type=number]{font-variant-numeric:tabular-nums;text-align:right}td input[type=date]{font-size:12px}td .label-input{color:#3d5664}td input::placeholder{color:#9aaab3}.result-controls{display:flex;align-items:center;gap:4px}.quick-result{display:grid;place-items:center;min-width:30px;height:29px;border:1px solid #dce6e9;background:#fff;border-radius:5px;font-size:11px;font-weight:650;color:#81939d}.quick-result:hover{border-color:#7eabb4;background:#f3f9fa}.quick-result[data-value=W]:hover,.quick-result.selected[data-value=W]{background:#e8f5ef;color:#218268;border-color:#a4d6c4}.quick-result[data-value=L]:hover,.quick-result.selected[data-value=L]{background:#fff0eb;color:#b46150;border-color:#e1b5a9}.quick-result[data-value=V]:hover,.quick-result.selected[data-value=V]{background:#eef1f9;color:#67749e;border-color:#bfc9e2}.result-controls>select{width:75px;min-width:75px;flex:1;padding:5px 1px;font-size:11px;color:#82939e}.quick-controls{display:flex;gap:3px}.delete-entry{display:grid;place-items:center;width:24px;height:29px;font-size:18px;border-radius:4px;background:transparent;color:#abb9c0}.delete-entry:hover{background:#fff0ec;color:#b35f50}.pending-row{background:#fcfefe}.next-row{background:#f5fbfb}.next-row td{border-bottom:0}.next-row td input{border-color:#d8e7e9;background:#fff}.next-row .number-cell{color:#38969c}.next-row .money-cell{color:#0c7b86}.next-row .delete-entry{visibility:hidden}.pending-note{font-size:10px;color:#7d959f;display:block;line-height:1.2;margin-top:4px}.ledger-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 22px;border-top:1px solid #e3edee;background:#fefefe}.ledger-footer>p{font-size:11px;color:#7c909c;max-width:620px;line-height:1.8}.legend{display:flex;gap:13px;color:#8a9aa4;font-size:10px;white-space:nowrap}.legend>span{display:flex;align-items:center;gap:5px}.legend-dot{height:5px;width:5px;border-radius:50%;background:#8fa5bd}.legend-dot.win{background:#55a98d}.legend-dot.loss{background:#d78c7b}.save-bar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:17px 0 32px;padding:0 3px}.save-bar>div:first-child{display:grid;gap:4px}.save-bar strong{font-size:12px;color:#4e6a78;font-weight:600}.save-bar span{font-size:11px;color:#8798a2}.save-actions{display:flex;gap:8px}.lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.info-panel{background:white;border:1px solid var(--border);border-radius:9px;padding:23px 24px;min-width:0}.section-caption{font-size:9px;font-weight:650;letter-spacing:1.6px;color:#91a2ad;margin-bottom:12px}.info-panel h2{font-size:15px;color:#47606f;font-weight:600}.info-panel>p,.calculation-details>p{font-size:12px;line-height:1.9;color:#8496a1;margin-top:10px}.calculation-details{margin-top:16px}.calculation-details>summary{font-size:11px;font-weight:600;color:#378895;cursor:pointer}.target-row{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#f5f9fa;padding:12px;border-radius:6px;margin-top:14px;font-size:11px;color:#6c8491}.target-row strong{color:#477080;font-weight:600;overflow-wrap:anywhere;text-align:right}.tool-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:18px}.tool-actions .button{font-size:11px;padding:8px 11px;min-height:34px}.management-actions{display:flex;gap:20px;border-top:1px solid #eef2f4;margin-top:20px;padding-top:15px}.text-button{padding:0;background:none;font-size:11px;color:#8a9ba6;text-decoration:underline;text-underline-offset:3px}.danger-text{color:#b68075}.page-footer{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#99a9b2;margin-top:33px;padding:18px 1px;border-top:1px solid #e2e9ec}.message{padding:16px 18px;border-radius:8px;font-size:13px;margin-bottom:20px;line-height:1.7;overflow-wrap:anywhere}.error-message{color:#934c40;background:#fff4ef;border:1px solid #ebd1c7}.notice-message{color:#386c64;background:#ecf7f1;border:1px solid #c8e4d7}.message .button{margin-top:12px}.modal{border:1px solid #dce5e9;border-radius:14px;padding:29px;max-width:min(610px,calc(100vw - 32px));width:610px;color:var(--ink);box-shadow:0 25px 100px #102e3633;max-height:90vh;overflow:auto}.modal::backdrop{background:#102d3b78;backdrop-filter:blur(3px)}.modal-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.modal-heading h2{font-size:24px;line-height:1.3;letter-spacing:-.5px}.modal-close{font-size:27px;color:#738994;margin:-4px -5px 0 0}.modal-intro{font-size:14px;color:#6e838e;margin:11px 0 23px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:7px;color:#526b79;font-size:13px;font-weight:550}.field.full-width{grid-column:1/-1}.field input{width:100%;min-width:0;height:43px;border:1px solid #d7e3e7;border-radius:7px;padding:9px 11px;background:white;color:#304c5b;font-weight:400}.field small{font-size:11px;line-height:1.65;color:#879ba5;font-weight:400}.setup-impact{border:1px solid #d2e7e9;background:#f1f9f9;color:#49747c;border-radius:7px;padding:13px 15px;font-size:12px;line-height:1.8;margin-top:23px}.setup-impact strong{display:block;color:#315d67;font-weight:600}.form-error{color:#a54b3c;background:#fff4ef;border-radius:6px;padding:12px 14px;font-size:13px;margin-top:15px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.confirm-modal{width:510px}.confirm-text{font-size:15px;color:#647c89;line-height:1.8;margin-top:18px;white-space:pre-line}.confirmation-detail{padding:14px;background:#f3f7f9;border-radius:7px;color:#506c7c;font-size:13px;line-height:1.9;margin-top:16px;white-space:pre-line;overflow-wrap:anywhere}.noscript{position:fixed;inset:20px 20px auto;background:#fff4ef;border:1px solid #e7c4b5;padding:22px;color:#814d39;z-index:100}
.success-panel{background:#fff;border:1px solid #badbdc;border-radius:12px;box-shadow:var(--shadow);margin-bottom:22px;overflow:hidden}
.success-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px 0}.success-heading .eyebrow{margin-bottom:6px}.success-heading h2{font-size:22px;line-height:1.35;color:#234e58;letter-spacing:-.4px}.success-status{font-size:13px;font-weight:600;line-height:1.5;color:#216d71;background:#e8f5f3;border:1px solid #d2e9e5;border-radius:6px;padding:6px 10px;text-align:center}.success-status.achieved{color:#216b4e;background:#e8f5ed;border-color:#c7e5d2}.success-status.stopped{color:#885c29;background:#fff3e2;border-color:#eddbbe}
.success-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:0;padding:23px 24px}.success-metric{min-width:0;padding:3px 20px;border-left:1px solid #e1ecee}.success-metric:first-child{border-left:0;padding-left:0}.success-metric:last-child{padding-right:0}.success-metric h3{font-size:14px;font-weight:550;color:#55717c;margin:0}.success-metric strong{display:block;font-size:clamp(20px,1.75vw,30px);line-height:1.35;letter-spacing:-.5px;color:#28525e;margin-top:10px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.success-total strong{color:#087886}.success-metric p{font-size:13px;line-height:1.65;color:#647c86;margin-top:7px}.success-context{display:flex;flex-wrap:wrap;column-gap:26px;row-gap:7px;padding:16px 24px;background:#f2f9f9;border-top:1px solid #dcecee;color:#446976;font-size:14px;line-height:1.7}.success-note{padding:13px 24px;font-size:13px;line-height:1.75;color:#5e7682;background:#fcfefe;border-top:1px solid #e5eff0}
.setup-preview-totals{margin:12px 0}.setup-preview-totals>div{display:flex;justify-content:space-between;align-items:baseline;gap:18px;padding:7px 0;border-bottom:1px solid #dcebed}.setup-preview-totals dt{font-size:14px}.setup-preview-totals dd{font-size:14px;font-weight:650;text-align:right;overflow-wrap:anywhere;min-width:0}.setup-impact>p{margin-top:9px;font-size:13px}.setup-impact{overflow-wrap:anywhere}
@media(max-width:1180px){.success-grid{grid-template-columns:1fr 1fr;gap:20px}.success-total{grid-column:1/-1}.success-metric{padding:0;border:0}.success-metric strong{font-size:25px}.success-total strong{font-size:30px}}
@media(max-width:760px){.success-heading{padding:19px 17px 0;align-items:flex-start;flex-direction:column;gap:10px}.success-heading h2{font-size:22px}.success-status{font-size:13px}.success-grid{padding:20px 17px;gap:20px;grid-template-columns:1fr}.success-total{grid-column:auto}.success-metric strong,.success-total strong{font-size:27px}.success-metric+.success-metric{padding-top:16px;border-top:1px solid #e1ecee}.success-context{display:block;padding:13px 17px;font-size:14px}.success-context p+p{margin-top:7px}.success-note{padding:12px 17px;font-size:13px}.setup-preview-totals>div{display:block}.setup-preview-totals dd{text-align:left;margin-top:3px}}
/* Regularly used copy keeps a readable floor; compact labels stay secondary. */
.brand small{font-size:10px}.metric-label,.eyebrow,.section-caption{font-size:11px}.metric>p,.save-bar span,.ledger-footer>p,.calculation-details>summary,.info-panel>p,.calculation-details>p,.target-row,.tool-actions .button,.text-button{font-size:12px}.panel-heading p,.button,.field,.save-status{font-size:14px}td,td input,td select,.money-cell{font-size:14px}.quick-result{font-size:12px}th,.result-controls>select,.plan-state,.panel-heading h2>span{font-size:12px}.page-footer,.legend{font-size:11px}.metric>strong small{font-size:13px}.sidebar-bottom small,.plan-item small,.archived-toggle{font-size:12px}
@media(min-width:1500px){.content{padding-top:40px}.summary-grid{gap:20px}.metric{padding:24px}.metric>strong{font-size:30px}.next-metric>strong{font-size:33px}table{min-width:1120px}.description-column{width:auto}.money-column{width:124px}}
@media(max-width:1180px){.sidebar{width:210px;padding-inline:15px}main{margin-left:210px}.content{padding:27px 23px}.topbar{padding-inline:23px}.page-title{align-items:flex-start;flex-direction:column;gap:18px}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:19px 21px}.metric>strong{margin-top:12px}.metric>p{margin-top:7px}.lower-grid{gap:15px}.info-panel{padding:21px}.ledger-footer{align-items:flex-start;flex-direction:column;gap:12px}.save-actions .button{font-size:12px}}
@media(max-width:760px){.sidebar{position:relative;width:auto;padding:20px 19px 16px;display:grid;grid-template-columns:1fr auto;gap:0 15px;overflow:visible}.brand{margin:0;font-size:17px}.brand small{margin-top:5px;font-size:9px}.brand-symbol{height:25px}.plans-title{margin:0;grid-column:2;grid-row:1}.plans-title h2{display:none}.plans-title .icon-button{width:36px;height:36px}.plan-search{display:none}#plan-list{grid-column:1/-1;flex-direction:row;max-height:none;margin-top:21px;overflow-x:auto;padding-bottom:3px;gap:7px}.plan-item{flex:0 0 auto;width:auto;max-width:210px;min-width:130px;padding:9px 11px;font-size:12px;gap:8px}.plan-item small{font-size:10px}.plan-item .plan-initial{display:none}.archived-toggle{grid-column:1;margin-top:10px;padding:0;font-size:11px}.sidebar-bottom{border:0;margin:10px 0 0;padding:0;grid-column:2;align-self:end;font-size:10px;gap:5px}.sidebar-bottom small{display:none}.sidebar-bottom .local-dot{margin-top:5px}main{margin-left:0}.topbar{min-height:55px;padding:14px 19px;gap:10px}.breadcrumb{font-size:9px;letter-spacing:.8px;max-width:55%}.breadcrumb span{margin:0 6px}.save-status{font-size:11px;white-space:normal;line-height:1.4}.content{padding:25px 17px 13px}.page-title{gap:17px;margin-bottom:21px}.eyebrow{font-size:9px}h1{font-size:25px}.page-description{font-size:13px;line-height:1.8;margin-top:8px}.title-actions{width:100%;gap:8px}.title-actions .button{font-size:12px;flex:1}.summary-grid{gap:10px;margin-bottom:20px}.metric{padding:15px 14px;border-radius:8px}.metric-label{font-size:9px;letter-spacing:.8px}.metric>strong,.next-metric>strong{font-size:24px;letter-spacing:-.5px;margin-top:13px}.metric>strong small{display:block;font-size:11px;margin-top:3px}.metric>p{font-size:11px;margin-top:8px;line-height:1.7}.metric-symbol{font-size:13px}.panel-heading{padding:18px 16px;align-items:flex-start}.panel-heading h2{font-size:15px}.panel-heading h2>span{font-size:10px;margin-left:5px}.panel-heading p{font-size:12px;line-height:1.8}.plan-state{font-size:10px}.ledger-footer{padding:14px 16px}.ledger-footer>p{font-size:11px}.legend{font-size:10px;gap:15px}.save-bar{flex-direction:column;align-items:stretch;padding:0 1px;gap:15px;margin:17px 0 25px}.save-actions{justify-content:flex-end}.save-actions .button{font-size:12px;padding-inline:13px}.save-bar strong{font-size:12px}.save-bar span{font-size:11px;line-height:1.7}.lower-grid{grid-template-columns:1fr;gap:13px}.info-panel{padding:20px}.info-panel h2{font-size:15px}.info-panel>p,.calculation-details>p{font-size:12px}.section-caption{font-size:9px}.page-footer{font-size:9px;margin-top:24px}.modal{padding:23px 20px}.modal-heading h2{font-size:23px}.form-grid{gap:17px 13px}.field{font-size:12px}.field input{font-size:14px}.modal-actions{flex-wrap:wrap}.modal-actions .button{font-size:13px}.confirm-text{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Input and action labels retain their full reading size on narrow screens. */
.button,.field,.plan-item,.quick-result,.result-controls>select{font-size:14px}.result-column{width:184px}.quick-result{min-width:27px}.quick-controls{gap:3px}.field small{font-size:12px}.metric>p,.panel-heading p,.ledger-footer>p{color:#607784}.info-panel>p,.calculation-details>p,.save-bar span{color:#657d8a}.text-button{color:#607d8a}.danger-text{color:#a55e50}.breadcrumb{font-size:11px}.topbar .save-status{font-size:13px}
@media(max-width:760px){.title-actions .button,.save-actions .button,.modal-actions .button,.tool-actions .button,.field,.plan-item{font-size:14px}.metric-label,.section-caption,.eyebrow{font-size:10px}.metric>p{font-size:12px}.page-description{font-size:14px}.ledger-footer>p,.save-bar span{font-size:12px}.plan-item small{font-size:11px}.topbar .save-status{font-size:12px}.breadcrumb{font-size:10px}.sidebar-bottom{font-size:11px}.archived-toggle{font-size:12px}}
.ledger-scroll{position:relative}table{min-width:1120px}.number-column{width:45px}th:nth-child(2){width:135px}.odds-column{width:90px}.money-column{width:110px}.metric-label,.section-caption,.eyebrow,.legend,.page-footer{font-size:12px}.save-bar strong,.save-bar span,.ledger-footer>p,.calculation-details>summary,.text-button{font-size:13px}.money-cell{overflow-wrap:anywhere;white-space:normal}
@media(max-width:760px){.metric-label,.section-caption,.eyebrow{font-size:12px;letter-spacing:.8px}.legend,.page-footer,.breadcrumb,.plan-item small,.archived-toggle{font-size:12px}.save-bar span,.ledger-footer>p{font-size:13px}}

/* Everyday actions remain reachable as the ledger grows. */
html{scroll-padding-bottom:150px}
main{padding-bottom:150px}
.button{min-height:44px}
.icon-button{min-width:44px;min-height:44px}
.title-actions{flex-wrap:wrap;flex-shrink:1;justify-content:flex-end;max-width:100%}
.ledger-jump{display:inline-flex;align-items:center;min-height:44px;padding:7px 0;color:#087886;font-size:14px;font-weight:600;text-underline-offset:3px}
.local-save-note{margin-top:9px;color:#607784;font-size:14px;line-height:1.6}
.plans-title{gap:8px}
.sidebar-new-plan{padding:8px 10px;background:#24434b;border-color:#42616a;color:#edf8fa;font-size:14px;white-space:nowrap;box-shadow:none}
.sidebar-new-plan:hover:not(:disabled){background:#31545d}
.sidebar-manage-plans{display:block;width:100%;min-height:44px;margin-top:10px;padding:9px 12px;border:1px solid #42616a;border-radius:7px;background:#173841;color:#d9edf1;font-size:14px;text-align:left}
.sidebar-manage-plans:hover:not(:disabled){background:#244953}
.save-bar{position:fixed;z-index:20;left:274px;right:36px;bottom:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;max-width:1528px;margin:0 auto;padding:13px 17px;border:1px solid #cedee3;border-radius:10px;background:#fff;box-shadow:0 6px 30px #102e3626}
.save-bar>div{min-width:0}
.save-bar strong,.save-bar span{font-size:14px;overflow-wrap:anywhere;line-height:1.45}
.save-actions{flex-wrap:wrap;justify-content:flex-end}
.save-actions .button{font-size:14px}
.delete-column{width:64px}
.delete-entry{width:44px;height:44px;font-size:23px}
#ledger-table input,#ledger-table select,#ledger-table button{scroll-margin-block:30px 170px}
#ledger-mobile-hint{display:none;color:#607784;font-size:14px;line-height:1.5;margin-top:8px}
.entry-guide{margin:0 0 18px;padding:13px 16px;border:1px solid #d8e7eb;border-radius:8px;background:#f6fafb;color:#496675;font-size:14px;line-height:1.65}
.entry-guide summary{cursor:pointer;color:#345d6a;font-size:14px;font-weight:600}
.entry-guide p,.entry-guide li{font-size:14px}
.entry-guide p{margin-top:9px}
.entry-guide ol,.entry-guide ul{margin:10px 0 0;padding-left:22px}
.entry-guide li+li{margin-top:6px}

/* Empty workspaces and plan management use the same local workspace styling. */
.empty-workspace{padding:36px 30px;border:1px solid #d5e4e8;border-radius:12px;background:#fff;box-shadow:var(--shadow);text-align:center}
.empty-workspace h2{margin:0;color:#234e58;font-size:28px;line-height:1.3;letter-spacing:-.4px;overflow-wrap:anywhere}
.empty-workspace>p{max-width:650px;margin:12px auto 0;color:#607784;font-size:16px;line-height:1.65}
.empty-workspace>.button{margin-top:22px}
.empty-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;max-width:840px;margin:28px auto 0;padding-left:24px;text-align:left;color:#496675;font-size:14px;line-height:1.65}
.empty-steps li{padding:4px 7px;overflow-wrap:anywhere}
.empty-steps p{font-size:14px}
#manage-plans-dialog{width:760px;max-width:min(760px,calc(100vw - 32px))}
#managed-plan-list{display:grid;gap:10px;margin-top:20px}
.managed-plan{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;padding:15px;border:1px solid #dce7eb;border-radius:8px;background:#fbfdfd}
.managed-plan>div:first-child{min-width:0;flex:1}
.managed-plan h3{margin:0;color:#304f5c;font-size:16px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.managed-plan p{margin-top:4px;color:#607784;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.managed-plan-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.managed-plan-actions button{min-height:44px;font-size:14px}
#manage-plans-dialog .modal-actions{flex-wrap:wrap}

@media(max-width:1180px){
  .save-bar{left:233px;right:23px}
}
@media(max-width:760px){
  html{scroll-padding-bottom:210px}
  main{padding-bottom:210px}
  .sidebar{grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
  .brand{min-width:0;gap:8px}
  .brand>span:last-child{min-width:0}
  .brand small{letter-spacing:.7px}
  .plans-title .sidebar-new-plan{min-height:44px;font-size:14px}
  .sidebar-manage-plans{grid-column:1/-1;justify-self:stretch}
  .title-actions{justify-content:flex-start}
  .title-actions .button{flex:1 1 120px;min-height:44px}
  .save-bar{left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));grid-template-columns:minmax(0,1fr);gap:9px;max-width:none;padding:12px}
  .save-bar>div:first-child{gap:3px}
  .save-bar strong,.save-bar span{font-size:14px}
  .save-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .save-actions .button{width:100%;padding-inline:9px;font-size:14px}
  .quick-controls{display:none}
  .result-controls>select{width:100%;min-width:112px;min-height:44px;height:44px;padding:8px 24px 8px 10px;border:1px solid #d5e3e8;border-radius:6px;background-color:#fff;font-size:16px;color:#425a68}
  td input{height:44px;font-size:16px}
  td input[type=date]{font-size:14px}
  .field input{font-size:16px;min-height:44px}
  #ledger-mobile-hint{display:block}
  #ledger-table input,#ledger-table select,#ledger-table button{scroll-margin-bottom:220px}
  .success-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;padding:18px 17px}
  .success-total{grid-column:1/-1}
  .success-metric{padding:0;border-left:0}
  .success-metric+.success-metric{padding-top:14px;border-top:1px solid #e1ecee}
  .success-metric strong{font-size:22px;overflow-wrap:anywhere}
  .success-total strong{font-size:27px}
  .success-metric h3{font-size:14px}
  .success-context,.success-note{font-size:14px}
  .empty-workspace{padding:27px 20px}
  .empty-workspace h2{font-size:24px}
  .empty-steps{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:22px}
  .managed-plan{align-items:stretch;flex-direction:column;gap:12px;padding:14px}
  .managed-plan-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .managed-plan-actions button{width:100%}
}

/* Local accounts share the calculator's colors and clear form controls. */
.auth-screen{display:flex;align-items:center;justify-content:center;min-height:100vh;min-height:100svh;padding:40px 24px;background:radial-gradient(ellipse at 0 0,#dcefeb 0,transparent 65%),#f4f7f8}
.auth-card{width:100%;max-width:480px;padding:33px;border:1px solid #d6e4e8;border-radius:14px;background:#fff;box-shadow:0 12px 45px #173d4812}
.auth-card h1{margin:0;color:#234e58;font-size:29px;line-height:1.25;letter-spacing:-.6px;overflow-wrap:anywhere}
.auth-card>p{margin-top:12px;color:#607784;font-size:16px;line-height:1.65}
.auth-card .brand{margin:0 0 24px;color:#234e58}
.auth-card .brand small{color:#607e89;font-size:11px}
.auth-tabs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px;margin:24px 0;padding:4px;border:1px solid #e1eaed;border-radius:9px;background:#edf3f5}
.auth-tab{min-width:0;min-height:44px;padding:9px 12px;border:1px solid transparent;border-radius:6px;background:transparent;color:#526e7b;font-size:16px;font-weight:600;line-height:1.4}
.auth-tab:hover:not(:disabled){color:#087886;background:#f7fbfc}
.auth-tab.active{border-color:#d6e5e8;background:#fff;color:#087886;box-shadow:0 2px 6px #1839460b}
#auth-form{display:grid;gap:17px}
#auth-form .field{font-size:14px}
#auth-form input{min-height:46px;font-size:16px}
#auth-form .field small{font-size:14px;line-height:1.5}
#auth-submit{width:100%;min-height:46px;margin-top:4px;font-size:16px}
#auth-error{margin:0;color:#934c40;font-size:14px;line-height:1.6}
#auth-mode-note{margin-top:20px;color:#607784;font-size:14px;line-height:1.6}
#legacy-account-note{margin-top:18px;padding:12px 14px;border:1px solid #cfe5df;border-radius:8px;background:#edf7f5;color:#386c64;font-size:14px;line-height:1.6}
.account-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;margin-top:18px;padding:15px 5px 4px;border-top:1px solid #31505a}
.account-summary strong{grid-column:1/-1;min-width:0;color:#edf8fa;font-size:15px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.account-summary small{grid-column:1/-1;min-width:0;color:#acc9cf;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.account-summary button{min-width:0;min-height:44px;margin-top:6px;padding:8px 10px;border:1px solid #42616a;border-radius:7px;background:#173841;color:#d9edf1;font-size:14px;line-height:1.4;white-space:normal}
.account-summary .button{border-color:#42616a;background:#173841;color:#d9edf1;box-shadow:none}
.account-summary button:hover:not(:disabled){background:#244953}
.account-summary .button:hover:not(:disabled){border-color:#5c7d86;background:#244953;color:#effafa}
.account-summary #logout{background:transparent;color:#c5dce2}
.account-summary #logout:hover:not(:disabled){background:#244953}
#account-form{display:grid;gap:17px;margin-top:18px}
#account-form .field{font-size:14px}
#account-form .field input{min-height:44px;font-size:16px}
#account-form .field input[readonly]{border-color:#dce6e9;background:#f3f7f8;color:#657b87}
#account-form .field small{font-size:14px;line-height:1.5}
#account-form .form-error{margin:0;font-size:14px;line-height:1.6}
.lower-grid.no-active-plan{grid-template-columns:minmax(0,1fr)}

@media(max-width:760px){
  .account-summary{grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;column-gap:8px;row-gap:3px;margin-top:14px;padding:12px 0 0}
  .account-summary strong{grid-column:1;grid-row:1;font-size:14px}
  .account-summary small{grid-column:1;grid-row:2;font-size:14px}
  .account-summary #account-settings{grid-column:2;grid-row:1/span 2}
  .account-summary #logout{grid-column:3;grid-row:1/span 2}
  .account-summary button{max-width:108px;margin-top:0;padding:8px;font-size:14px}
}
@media(max-width:420px){
  .auth-screen{padding:24px 16px}
  .auth-card{padding:27px 21px}
  .auth-card h1{font-size:27px}
  .auth-tabs{margin:21px 0}
  .auth-tab{padding:9px 8px}
}

/* Identity and actions are grouped so long account names cannot squeeze controls. */
.account-summary{grid-template-columns:minmax(0,1fr)}
.account-summary>div:first-child{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;min-width:0}
.account-summary>.account-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;min-width:0;margin-top:5px}
.account-summary .account-actions #account-settings,.account-summary .account-actions #logout{grid-column:auto;grid-row:auto;width:100%;max-width:none;margin:0}
.show-password{display:flex;align-items:center;gap:9px;min-height:44px;color:#496675;font-size:14px;line-height:1.5;cursor:pointer}
#auth-form .show-password input{flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:0;accent-color:#087f8c}
@media(max-width:760px){
  .account-summary{grid-template-columns:minmax(0,1fr) minmax(156px,192px)}
  .account-summary>div:first-child{grid-column:1;grid-row:1}
  .account-summary>.account-actions{grid-column:2;grid-row:1;margin-top:0}
}
