:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#142535;background:#f5f9fd;font-size:16px;font-synthesis:none;--blue:#1968a5;--navy:#194b70;--light:#e5f2ff;--line:#dfE8ef;--muted:#52677a;--orange:#ac5018;--red:#ba3a35;--radius:16px}
svg{width:1.25em;height:1.25em;flex-shrink:0}.record>summary>svg{width:17px;height:17px;color:#7994aa}.record[open]>summary>svg{transform:rotate(180deg)}.empty-state>svg{width:34px;height:34px;margin:auto}.inline-notice>svg{width:18px;height:18px}.hint{display:block}
.sponsor-footer{margin:0 38px 25px 286px}.sponsor-footer .ad-well{margin-top:0}.ad-frame{height:160px}@media(max-width:1180px){.sponsor-footer{margin-left:245px;margin-right:25px}}@media(max-width:980px){.sponsor-footer{margin-left:216px;margin-right:22px}}@media(max-width:700px){.sponsor-footer{margin:0 17px 22px}}@media print{.sponsor-footer{display:none}}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,summary{ -webkit-tap-highlight-color:transparent}a{color:var(--blue)}button{cursor:pointer}button:disabled{cursor:wait;opacity:.58}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #3488c9;outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid #68aee3;outline-offset:1px}h1,h2,h3,h4,p{margin-top:0}h1{font-size:2.05rem;font-weight:620;letter-spacing:-1px;margin-bottom:10px}h2{font-size:1.14rem;letter-spacing:-.25px;margin-bottom:9px}h3{font-size:1.02rem}p{line-height:1.6}svg{display:block}button svg{pointer-events:none}input,select,textarea{min-width:0;max-width:100%}button{border:0;background:none;color:inherit}.skip-link{position:absolute;left:16px;top:-60px;padding:10px 20px;background:white;z-index:100}.skip-link:focus{top:10px}.boot{min-height:100vh;display:grid;align-content:center;justify-items:center;gap:16px;color:var(--navy)}.boot-mark{width:65px;height:35px;border:4px solid var(--blue);border-bottom:0;border-radius:70px 70px 0 0}
.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{background:#eaf4fe;border-right:1px solid #dbe8f3;position:fixed;inset:0 auto 0 0;width:248px;display:flex;flex-direction:column;padding:29px 18px 20px;z-index:10}.brand{display:flex;align-items:center;gap:10px;padding:0 11px 30px;text-decoration:none;color:var(--navy)}.brand img{width:45px;height:45px;object-fit:contain}.brand-name{font-weight:700;letter-spacing:-.4px;line-height:1.12;font-size:1.18rem}.brand-name span{display:block;font-size:1.06rem;letter-spacing:.5px;font-weight:500}.side-label{text-transform:uppercase;font-size:.72rem;letter-spacing:1.8px;color:#55718a;margin:14px 16px 12px;font-weight:650}.nav{display:flex;flex-direction:column;gap:5px}.nav button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:13px 15px;border-radius:9px;color:#354f65;font-size:.92rem;font-weight:500}.nav button:hover{background:#dceefd}.nav button.active{background:#fff;color:#125d94;box-shadow:0 2px 8px #1c5d8520;font-weight:650}.nav svg{width:19px;height:19px;opacity:.85}.nav .count{margin-left:auto;font-size:.75rem;background:#eaf4fe;padding:3px 7px;border-radius:5px}.side-bottom{margin-top:auto;padding:30px 13px 0}.local-note{font-size:.83rem;color:#436179;display:flex;align-items:center;gap:8px}.local-note svg{width:16px;height:16px}.side-bottom small{display:block;font-size:.75rem;line-height:1.6;color:#5c7183;margin-top:8px}.workspace{grid-column:2;min-width:0}.topbar{height:83px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 38px}.crumb{display:flex;align-items:center;gap:12px;font-size:.85rem;color:#597183}.crumb strong{font-weight:550;color:#263d50}.crumb .divider{color:#bacbd8}.top-actions{display:flex;align-items:center;gap:13px}.save-status{font-size:.79rem;color:#567360;display:flex;align-items:center;gap:5px}.save-status svg{width:15px;height:15px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:10px 16px;border-radius:8px;border:1px solid #d5e2ec;background:#fff;font-size:.87rem;line-height:1.35;font-weight:560;text-decoration:none;color:#24455e;min-height:41px;white-space:nowrap}.btn:hover{background:#f0f7fd;border-color:#a8c4db}.btn svg{width:17px;height:17px}.btn.primary{background:#1c679e;border-color:#1c679e;color:#fff;box-shadow:0 2px 4px #185a8c16}.btn.primary:hover{background:#145780}.btn.soft{background:#eaf4fe;border-color:#d5e7f6;color:#1b608f}.btn.danger{color:#b23d36}.btn.small{font-size:.79rem;padding:7px 11px;min-height:34px}.btn.text{border-color:transparent;background:none;padding-left:5px;padding-right:5px;box-shadow:none}.icon-btn{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:7px;color:#5e7588}.icon-btn:hover{background:#f0f5fa;color:#b23d36}.icon-btn svg{width:18px;height:18px}.mobile-menu{display:none}.main{max-width:1530px;margin:0 auto;padding:35px 38px 20px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading p{font-size:.94rem;color:var(--muted);margin-bottom:0}.eyebrow{display:flex;align-items:center;gap:9px;text-transform:uppercase;letter-spacing:1.5px;font-size:.7rem;font-weight:650;color:#487895;margin-bottom:11px}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:5px;background:#edf5fc;color:#426a87;font-size:.72rem;font-weight:550;text-transform:none;letter-spacing:0}.badge.orange{color:#a14a17;background:#fff1e5}.badge.green{color:#316747;background:#edf6ee}.hero{position:relative;background:#e2f1fe;border:1px solid #cfe4f6;border-radius:14px;overflow:hidden;display:flex;align-items:center;justify-content:space-between;padding:22px 27px;margin-bottom:25px;gap:22px}.hero h2{font-size:1.18rem;font-weight:590;margin-bottom:7px}.hero p{font-size:.88rem;line-height:1.5;margin-bottom:0;color:#48677e;max-width:650px}.hero-actions{display:flex;gap:10px;align-items:center;z-index:1}.hero-art{width:110px;height:70px;position:absolute;right:220px;bottom:-25px;border:2px solid #b5d8f2;border-bottom:0;border-radius:100px 100px 0 0;pointer-events:none;opacity:.8}.hero-art:before,.hero-art:after{content:"";position:absolute;border:1px solid #b5d8f2;border-bottom:0;border-radius:120px 120px 0 0;inset:-14px}.hero-art:after{inset:-28px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.metric{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px 21px;min-height:133px}.metric-top{display:flex;justify-content:space-between;align-items:center;color:#526a7c;font-size:.82rem;gap:8px}.metric-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:8px;background:#f0f7fd;color:#6195bd}.metric-icon svg{width:16px;height:16px}.metric-value{font-size:1.82rem;line-height:1.2;font-weight:610;letter-spacing:-.8px;margin:11px 0 5px;white-space:nowrap}.metric-sub{font-size:.75rem;color:#61788b;line-height:1.45}.metric.success{background:#f8fcff;border-color:#b8d9f3}.metric.success .metric-value{color:#165f94}.metric .warning{color:var(--orange)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;margin-bottom:22px}.card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:23px 25px;margin-bottom:22px;min-width:0}.dashboard-grid>.card{margin-bottom:0}.card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:18px}.card-header h2{font-size:1.08rem;margin-bottom:5px}.card-sub{font-size:.8rem;color:#63788a;line-height:1.5}.chart-wrap{position:relative;width:100%;min-height:260px}.chart{width:100%;height:auto;overflow:visible}.chart text{font-family:inherit;font-size:11px;fill:#688195}.chart .grid{stroke:#edf2f6;stroke-width:1}.chart .median-line{stroke:#2679b9;stroke-width:2.6;fill:none}.chart-legend{display:flex;gap:18px;justify-content:center;flex-wrap:wrap;font-size:.72rem;color:#5b7287;margin:12px 0 4px}.legend-key{display:inline-flex;align-items:center;gap:7px}.legend-key:before{content:"";width:15px;height:7px;background:#dceefe;border-radius:2px}.legend-key.inner:before{background:#add2ee}.legend-key.line:before{height:3px;background:#2679b9}.chart-tip{position:absolute;pointer-events:none;background:#153b58;color:#fff;border-radius:8px;padding:10px 12px;font-size:.77rem;line-height:1.6;z-index:5;box-shadow:0 4px 15px #18364f33;min-width:160px}.chart-tip strong{font-weight:550;display:block;color:#a6d2f3}.empty-chart{min-height:260px;display:grid;place-items:center;text-align:center;background:linear-gradient(#fff,#f6faff);border-radius:8px;color:#688195;padding:30px}.allocation-donut{height:160px;display:flex;justify-content:center;align-items:center;position:relative;margin:15px 0}.allocation-donut .donut{border-radius:100%;width:145px;height:145px;background:conic-gradient(#347fba 0% 60%,#9fc7e7 60% 90%,#daeaf6 90% 100%);position:relative}.allocation-donut .donut:after{content:"";position:absolute;inset:16px;border-radius:100%;background:#fff}.donut-label{position:absolute;text-align:center;font-size:.73rem;color:#6b8193}.donut-label strong{display:block;color:#234961;font-size:1.1rem;margin-bottom:3px;letter-spacing:-.5px}.allocation-list{display:flex;flex-direction:column;gap:14px;margin-top:14px}.allocation-row{display:flex;align-items:center;font-size:.8rem;gap:8px}.allocation-row .swatch{width:8px;height:8px;border-radius:2px;background:#347fba}.allocation-row span:nth-child(2){color:#536c80}.allocation-row strong{margin-left:auto;font-size:.79rem}.allocation-caption{font-size:.74rem;color:#6c8092;line-height:1.6;margin-top:20px;padding-top:13px;border-top:1px solid #edf1f5}.lower-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:22px}.lower-grid .card{height:100%}.summary-row{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid #edf2f6;font-size:.84rem;gap:18px}.summary-row:last-child{border:0}.summary-row span{color:#61788b}.summary-row strong{text-align:right;font-weight:560}.inline-link{font-size:.8rem;color:var(--blue);padding:0}.progress{height:8px;background:#fde8df;border-radius:4px;overflow:hidden;margin:14px 0 15px}.progress div{height:100%;background:#7fb6d9;border-radius:4px}.note{font-size:.82rem;line-height:1.65;color:#576f83}.note.warm{background:#fff7ef;border:1px solid #f0dac8;padding:14px 16px;border-radius:9px;color:#875126}.note.blue{background:#f0f7fd;border:1px solid #daeafa;padding:14px 16px;border-radius:9px;color:#48697f}.note strong{font-weight:630}.inline-notice{display:flex;align-items:center;gap:10px;font-size:.8rem;color:#876044;background:#fff5eb;border:1px solid #f2dcc7;border-radius:8px;padding:10px 14px;margin-bottom:20px}.inline-notice .btn{margin-left:auto}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px 22px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label{font-size:.84rem;font-weight:530;color:#314e65}.field .hint{font-size:.75rem;line-height:1.45;color:#657b8d}.field input,.field select,.field textarea{width:100%;min-height:43px;border:1px solid #d5e2eb;background:#fff;border-radius:7px;padding:10px 12px;color:#243f55;font-size:.89rem;line-height:1.2}.field input:hover,.field select:hover{border-color:#aec9dd}.field input[disabled]{background:#f1f5f8}.field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2360798c' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;padding-right:32px}.field input[type=checkbox]{width:18px;height:18px;min-height:0;padding:0;accent-color:var(--blue)}.field-check{display:flex;gap:9px;align-items:center;font-size:.85rem;color:#426077;line-height:1.5}.field-check input{width:17px;height:17px;accent-color:var(--blue)}.field-check span{flex:1}.span-2{grid-column:span 2}.span-all{grid-column:1/-1}.form-divider{border:0;border-top:1px solid #edf1f5;margin:25px 0}.record{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:15px;overflow:hidden}.record>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:18px 22px;cursor:pointer}.record>summary::-webkit-details-marker{display:none}.record-title{flex:1;min-width:0}.record-title strong{display:block;font-size:.93rem;font-weight:590;color:#284a63;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-title small{display:block;font-size:.76rem;color:#6b8295;margin-top:5px}.record-value{font-size:1.06rem;font-weight:590;white-space:nowrap}.record .chevron{width:17px;height:17px;color:#7994aa;transition:transform .15s}.record[open] .chevron{transform:rotate(180deg)}.record-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:9px;background:#edf6fd;color:#4c8cb9;flex-shrink:0}.record-icon svg{width:19px;height:19px}.record-body{padding:5px 22px 23px}.record-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid #edf2f6}.empty-state{text-align:center;padding:36px 20px;background:#f8fbfe;border:1px dashed #c7dcec;border-radius:12px;color:#607c91;margin-bottom:20px}.empty-state h3{color:#365d79;margin:12px 0 7px;font-weight:550}.empty-state p{font-size:.85rem;max-width:520px;margin:0 auto 18px}.step-dot{width:29px;height:29px;border:1px solid #c9dfef;border-radius:50%;background:#eaf4fc;color:#4a7c9d;font-size:.85rem;display:grid;place-items:center}.table-wrap{overflow:auto;max-width:100%;border-radius:8px}.data-table{width:100%;border-collapse:collapse;font-size:.8rem;text-align:right;white-space:nowrap}.data-table th{font-size:.72rem;font-weight:570;color:#5c7589;padding:11px 13px;background:#f3f8fc;border-bottom:1px solid #dde8f1}.data-table td{padding:12px 13px;border-bottom:1px solid #edf2f6;color:#344f65}.data-table th:first-child,.data-table td:first-child{text-align:left}.data-table tr:last-child td{border-bottom:0}.data-table tr:hover td{background:#f8fbfe}.data-table .fail{color:#b34e31}.data-table input{width:120px;font-size:.84rem;padding:9px 10px;border:1px solid #d7e5ef;border-radius:6px;color:#2b4d65}.data-table input[type=date]{width:150px}.holdings input{width:100%}.holdings th{min-width:100px}.holdings th:first-child{min-width:125px}.text-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.text-row p{margin-bottom:0}.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:24px}.choice{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid #d6e4ef;padding:19px;border-radius:10px;background:#fff}.choice.selected{background:#f0f8ff;border:2px solid #79afda;padding:18px}.choice .radio{display:block;width:17px;height:17px;border:1.5px solid #a9c4d8;border-radius:100%;margin-bottom:14px}.choice.selected .radio{border:5px solid #3985bd}.choice strong{font-size:.92rem;font-weight:580;margin-bottom:9px}.choice small{font-size:.78rem;line-height:1.65;color:#647f93}.footer{max-width:1530px;margin:26px auto 0;padding:0 38px 25px}.footer-top{display:flex;justify-content:space-between;gap:20px;align-items:center;border-top:1px solid #dce7ef;padding-top:20px;font-size:.73rem;color:#6a8092}.footer-links{display:flex;gap:17px;flex-wrap:wrap}.footer-links button{font-size:inherit;padding:0;color:#4c718d}.ad-well{margin:25px auto 0;border:1px dashed #d5e2ed;border-radius:7px;padding:13px;min-height:64px;text-align:center;color:#7290a6;background:#f8fbfd;max-width:970px}.ad-well .ad-label{text-transform:uppercase;letter-spacing:1.4px;font-size:.65rem;margin-bottom:5px}.ad-well p{font-size:.72rem;margin:0;line-height:1.4}.ad-frame{width:100%;border:0;min-height:130px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#204a67;color:white;padding:13px 20px;border-radius:9px;box-shadow:0 4px 20px #173b5830;z-index:100;font-size:.86rem;max-width:min(90vw,650px);line-height:1.5}.toast[hidden]{display:none}dialog{border:1px solid #d5e4ef;border-radius:16px;padding:0;box-shadow:0 16px 70px #153f6940;max-width:min(92vw,660px);width:100%;color:#28455e}dialog::backdrop{background:#15354955;backdrop-filter:blur(3px)}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px 26px 17px;border-bottom:1px solid #e2ecf4}.modal-header h2{margin:0;font-size:1.22rem}.modal-body{padding:22px 26px 26px;max-height:70vh;overflow:auto}.modal-body p{font-size:.9rem;color:#506d82}.modal-body h3{margin-top:24px}.modal-body li{font-size:.85rem;line-height:1.7;color:#506d82;margin:5px 0}.modal-body .btn{white-space:normal}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.saved-plan{display:flex;align-items:center;gap:12px;border:1px solid #dce8f2;border-radius:9px;padding:13px 14px;margin:10px 0}.saved-plan>div{flex:1;min-width:0}.saved-plan strong{display:block;font-size:.9rem}.saved-plan small{display:block;font-size:.74rem;color:#7791a4;margin-top:4px}.source-list{padding-left:20px}.source-list a{overflow-wrap:anywhere}.large-stat{font-size:2.5rem;letter-spacing:-1.2px;font-weight:600;color:#226d9f;margin:14px 0 5px}.result-tabs{display:flex;gap:7px;border-bottom:1px solid #dce8f0;margin-bottom:22px}.result-tabs button{padding:12px 16px;font-size:.85rem;color:#547188;border-bottom:2px solid transparent}.result-tabs .selected{border-color:#3f89bf;color:#1f6597}.warning-list{margin:0;padding-left:18px}.warning-list li{font-size:.79rem;line-height:1.6;margin:7px 0;color:#865b3b}.pill-list{display:flex;gap:7px;flex-wrap:wrap}.spinner{width:17px;height:17px;border:2px solid #ffffff66;border-top-color:white;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.subtle{color:#647f93}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;gap:15px}.section-title h2{margin:0}.reality-note{font-size:.75rem;color:#638198;line-height:1.6;margin-top:14px}.scenario-box{background:#eff7fd;border:1px solid #d0e4f4;border-radius:9px;padding:16px;display:flex;gap:20px;align-items:center;flex-wrap:wrap}.scenario-box strong{color:#326c94;font-size:.88rem}.error-box{background:#fff0ed;border:1px solid #f0ccc5;border-radius:9px;padding:15px 18px;color:#9e3d2e;margin-bottom:20px;font-size:.84rem;line-height:1.6}.error-box ul{margin:6px 0}.privacy-kicker{font-size:.75rem;color:#6f8597;line-height:1.6}.chart-toolbar{display:flex;align-items:center;gap:7px}.chart-toolbar button{padding:5px 9px;font-size:.71rem;border:1px solid #dce8f2;border-radius:5px;color:#5f7d93}.chart-toolbar .selected{background:#edf6fd;color:#256b9b;border-color:#c0dbf0}.comparison-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.comparison-grid .card{padding:17px}.comparison-grid .card strong{font-size:1.5rem;color:#1f6b9c}.text-input-like{border:0;background:transparent;width:100%;font-size:1.7rem;letter-spacing:-.6px;font-weight:600;color:#234c6a;padding:0 0 8px}.text-input-like:focus{outline:0;border-bottom:1px solid #9fc7e3}.status-dot{width:6px;height:6px;border-radius:100%;background:#69a17b;display:inline-block}
@media(min-width:1500px){.main{padding-top:42px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 310px}.chart-wrap{min-height:300px}.sidebar{width:260px}.shell{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:1180px){.sidebar{width:220px;padding-left:13px;padding-right:13px}.shell{grid-template-columns:220px minmax(0,1fr)}.main{padding:28px 25px 15px}.topbar{padding:0 25px}.footer{padding:0 25px 20px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 240px;gap:16px}.card{padding:20px}.metric{padding:17px 16px}.metric-value{font-size:1.55rem}.hero{padding:20px}.hero-art{display:none}.save-status{display:none}.form-grid.four{grid-template-columns:repeat(2,1fr)}}
@media(max-width:980px){.sidebar{width:194px;padding-left:10px;padding-right:10px}.shell{grid-template-columns:194px minmax(0,1fr)}.brand{padding-left:7px;gap:6px}.brand img{width:36px;height:36px}.brand-name{font-size:1.02rem}.brand-name span{font-size:.95rem}.nav button{padding:12px 11px;font-size:.85rem;gap:9px}.main{padding:25px 22px 15px}.topbar{padding:0 22px}.metric-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.allocation-card{display:none}.lower-grid{grid-template-columns:1fr}.hero{align-items:flex-start}.hero-actions{flex-direction:column}.form-grid{grid-template-columns:repeat(2,1fr)}.choices{grid-template-columns:1fr}.choice{display:grid;grid-template-columns:20px 1fr;column-gap:13px}.choice .radio{grid-row:span 2;margin-top:2px;margin-bottom:0}.choice strong{margin-bottom:5px}.choice small{grid-column:2}.crumb>span:first-child,.crumb .divider{display:none}.comparison-grid{grid-template-columns:1fr}}
@media(max-width:700px){.shell{display:block}.sidebar{transform:translateX(-100%);width:240px;transition:transform .2s;box-shadow:10px 0 40px #12314b20}.sidebar.mobile-open{transform:translateX(0)}.workspace{width:100%}.mobile-menu{display:block;padding:7px;color:#376383}.mobile-menu svg{width:22px;height:22px}.topbar{height:67px;padding:0 16px;gap:9px;position:sticky;top:0;z-index:8}.crumb{margin-right:auto;min-width:0}.crumb strong{font-size:.81rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:145px}.top-actions{gap:7px}.top-actions .btn{font-size:.75rem;min-height:35px;padding:8px 10px}.top-actions .save-button{display:none}.main{padding:26px 17px 10px}.page-heading{margin-bottom:20px;gap:10px;flex-wrap:wrap}.page-heading h1{font-size:1.8rem}.page-heading p{font-size:.86rem}.eyebrow{font-size:.65rem}.hero{display:block;padding:20px;margin-bottom:20px}.hero h2{font-size:1.1rem}.hero p{font-size:.81rem}.hero-actions{flex-direction:row;margin-top:16px}.metric-grid{gap:10px;margin-bottom:17px}.metric{padding:14px;min-height:120px}.metric-top{font-size:.73rem;gap:3px}.metric-icon{display:none}.metric-value{font-size:1.47rem}.metric-sub{font-size:.7rem}.card{padding:18px 16px;margin-bottom:17px;border-radius:11px}.card-header{gap:9px}.card-header h2{font-size:1rem}.card-sub{font-size:.74rem}.chart-wrap{min-height:200px}.chart-legend{gap:10px;font-size:.65rem}.dashboard-grid{margin-bottom:17px}.lower-grid{gap:17px}.form-grid,.form-grid.two,.form-grid.four{grid-template-columns:1fr;gap:16px}.span-2{grid-column:auto}.field label{font-size:.84rem}.field input,.field select{font-size:1rem}.record>summary{padding:15px 14px;gap:9px}.record-body{padding:4px 15px 18px}.record-title strong{font-size:.87rem}.record-value{font-size:.91rem}.record-icon{width:31px;height:31px}.record-tools{flex-wrap:wrap}.record-title small{font-size:.71rem}.footer{padding:0 17px 22px;margin-top:15px}.footer-top{flex-direction:column;align-items:flex-start;gap:12px;font-size:.71rem}.footer-links{gap:15px}.chart-toolbar button{font-size:.64rem;padding:4px 6px}.ad-well{margin-top:20px}.result-tabs{gap:0;overflow:auto;white-space:nowrap}.result-tabs button{font-size:.76rem;padding:12px 11px}.inline-notice{font-size:.75rem;flex-wrap:wrap}.inline-notice .btn{margin-left:0}.text-row{flex-wrap:wrap}.modal-body{padding:20px}.modal-header{padding:20px}.modal-actions{flex-wrap:wrap}.note{font-size:.79rem}}
@media print{.sidebar,.topbar,.hero-actions,.footer,.btn,.nav,dialog,.toast{display:none!important}.shell{display:block}.workspace{width:100%}.main{padding:0}.card,.metric{break-inside:avoid}.chart{max-height:350px}.page-heading{margin-top:10px}.dashboard-grid,.lower-grid{display:block}.metric-grid{grid-template-columns:repeat(4,1fr)}body{background:#fff}.metric{padding:12px}.allocation-card{display:none}}

/* Theme additions leave the original light palette and printable reports intact. */
:root{color-scheme:light}
.theme-toggle{flex-shrink:0}
.theme-toggle svg{width:17px;height:17px}
.theme-toggle[aria-pressed="true"]{background:#e2f1fd;border-color:#91bddb;color:#195f90}
.help-details{margin-top:18px;padding:15px 17px;border:1px solid #d4e4f0;border-radius:9px;background:#f5faff;font-size:.84rem;line-height:1.65;color:#3f5e75}
.help-details>summary{font-weight:600;cursor:pointer;color:#294f6b}
.help-details>summary::marker{color:#3377aa}
.help-details[open]>summary{margin-bottom:12px}
.help-details p,.tax-allowance-example p{margin-bottom:10px}
.help-details p:last-child,.tax-allowance-example p:last-child{margin-bottom:0}
.tax-allowance-example{margin-top:15px;padding:14px 16px;border-left:3px solid #83b7dd;border-radius:0 8px 8px 0;background:#edf6fd;color:#365b76;font-size:.83rem;line-height:1.65;overflow-wrap:anywhere}
.help-details code,.tax-allowance-example code{font-size:.94em;background:#deedf8;border-radius:4px;padding:2px 5px;color:#244f6e}
@media(max-width:420px){.theme-toggle .theme-toggle-label{display:none}.top-actions .theme-toggle{width:35px;padding:8px;font-size:0;gap:0}}
@media screen{
  html[data-theme="dark"]{
    color-scheme:dark;
    color:#e6eff8;
    background:#101b28;
    --blue:#a0d1fa;
    --navy:#bfdef8;
    --light:#203d56;
    --line:#344c62;
    --muted:#b0c3d4;
    --orange:#ffbd8b;
    --red:#ffb0a4;
    --dark-surface:#172637;
    --dark-surface-raised:#1c3044;
    --dark-input:#102131;
    --dark-border:#54728d;
    scrollbar-color:#536f88 #101b28;
  }
  html[data-theme="dark"] ::selection{background:#37688f;color:#fff}
  html[data-theme="dark"] button:focus-visible,
  html[data-theme="dark"] a:focus-visible,
  html[data-theme="dark"] summary:focus-visible{outline-color:#a6d8ff}
  html[data-theme="dark"] input:focus,
  html[data-theme="dark"] select:focus,
  html[data-theme="dark"] textarea:focus{outline-color:#a6d8ff}
  html[data-theme="dark"] .skip-link{background:#213c54;color:#dcedff}
  html[data-theme="dark"] .sidebar{background:#142638;border-color:#334b61;box-shadow:8px 0 32px #030b151f}
  html[data-theme="dark"] .side-label{color:#a9c4db}
  html[data-theme="dark"] .nav button{color:#c5d8e8}
  html[data-theme="dark"] .nav button:hover{background:#213b52}
  html[data-theme="dark"] .nav button.active{background:#27465f;color:#d8edff;box-shadow:0 2px 8px #030a1438}
  html[data-theme="dark"] .nav .count{background:#162b3f;color:#d3e7f8}
  html[data-theme="dark"] .local-note{color:#c0d7e8}
  html[data-theme="dark"] .side-bottom small{color:#a9bfd1}
  html[data-theme="dark"] .topbar{background:#152638}
  html[data-theme="dark"] .crumb{color:#a8c1d6}
  html[data-theme="dark"] .crumb strong{color:#dceaf6}
  html[data-theme="dark"] .crumb .divider{color:#7791a8}
  html[data-theme="dark"] .save-status{color:#b3d7bd}
  html[data-theme="dark"] .mobile-menu{color:#bdddf7}
  html[data-theme="dark"] .btn{background:#1c3247;border-color:#4b6882;color:#d8eafa}
  html[data-theme="dark"] .btn:hover{background:#29465e;border-color:#83b3d7}
  html[data-theme="dark"] .btn.primary{background:#a0d1fa;border-color:#a0d1fa;color:#0e2b42;box-shadow:0 2px 6px #0003}
  html[data-theme="dark"] .btn.primary:hover{background:#bee2ff;border-color:#bee2ff}
  html[data-theme="dark"] .btn.soft{background:#23415b;border-color:#476f90;color:#c3e5ff}
  html[data-theme="dark"] .btn.danger{color:#ffb0a4}
  html[data-theme="dark"] .theme-toggle[aria-pressed="true"]{background:#2d516e;border-color:#83b7dc;color:#e0f1ff}
  html[data-theme="dark"] .btn.text{background:none;border-color:transparent;box-shadow:none}
  html[data-theme="dark"] .btn.text:hover{background:#27445b}
  html[data-theme="dark"] .icon-btn{color:#bfd5e6}
  html[data-theme="dark"] .icon-btn:hover{background:#334052;color:#ffc0b6}
  html[data-theme="dark"] .eyebrow{color:#adcfe8}
  html[data-theme="dark"] .badge{background:#28465e;color:#d0e6f8}
  html[data-theme="dark"] .badge.orange{background:#493222;color:#ffcb9f}
  html[data-theme="dark"] .badge.green{background:#233f34;color:#bbebcc}
  html[data-theme="dark"] .hero{background:#1b3850;border-color:#3c607f}
  html[data-theme="dark"] .hero h2{color:#e1f1ff}
  html[data-theme="dark"] .hero p{color:#c1d6e7}
  html[data-theme="dark"] .hero-art,
  html[data-theme="dark"] .hero-art:before,
  html[data-theme="dark"] .hero-art:after{border-color:#46799f}
  html[data-theme="dark"] .metric,
  html[data-theme="dark"] .card,
  html[data-theme="dark"] .record{background:var(--dark-surface)}
  html[data-theme="dark"] .metric-top{color:#bacfdf}
  html[data-theme="dark"] .metric-icon{background:#26445e;color:#b6dcf9}
  html[data-theme="dark"] .metric-sub{color:#aec3d5}
  html[data-theme="dark"] .metric.success{background:#19334a;border-color:#487b9f}
  html[data-theme="dark"] .metric.success .metric-value{color:#b4ddff}
  html[data-theme="dark"] .card-sub{color:#b1c7d9}
  html[data-theme="dark"] .chart text{fill:#b7cede}
  html[data-theme="dark"] .chart .grid{stroke:#334b60}
  html[data-theme="dark"] .chart .median-line{stroke:#b3dfff}
  html[data-theme="dark"] .chart path[fill="#dceefe"]{fill:#234b6c}
  html[data-theme="dark"] .chart path[fill="#acd1ee"],
  html[data-theme="dark"] .chart path[fill="#add2ee"]{fill:#3a6e96}
  html[data-theme="dark"] #chart-cursor{stroke:#add9fb}
  html[data-theme="dark"] .chart-legend{color:#bfd5e7}
  html[data-theme="dark"] .legend-key:before{background:#356488}
  html[data-theme="dark"] .legend-key.inner:before{background:#6397be}
  html[data-theme="dark"] .legend-key.line:before{background:#b3dfff}
  html[data-theme="dark"] .chart-tip{background:#d7eaff;color:#142b3e;border:1px solid #b5daf6;box-shadow:0 5px 20px #0005}
  html[data-theme="dark"] .chart-tip strong{color:#194f75}
  html[data-theme="dark"] .empty-chart{background:linear-gradient(#172637,#1a3045);color:#c1d8eb}
  html[data-theme="dark"] .allocation-donut .donut:after{background:var(--dark-surface)}
  html[data-theme="dark"] .donut-label{color:#b2c8da}
  html[data-theme="dark"] .donut-label strong{color:#e0effb}
  html[data-theme="dark"] .allocation-row span:nth-child(2){color:#bfd3e3}
  html[data-theme="dark"] .allocation-caption{color:#aec4d7;border-color:#344c62}
  html[data-theme="dark"] .summary-row{border-color:#344c62}
  html[data-theme="dark"] .summary-row span{color:#b6ccdf}
  html[data-theme="dark"] .summary-row .badge.green{color:#bbebcc}
  html[data-theme="dark"] .summary-row .badge.orange{color:#ffcb9f}
  html[data-theme="dark"] .progress{background:#56372e}
  html[data-theme="dark"] .progress div{background:#87bde5}
  html[data-theme="dark"] .note{color:#bed1e0}
  html[data-theme="dark"] .note.warm{background:#382c24;border-color:#77573f;color:#ffd1aa}
  html[data-theme="dark"] .note.blue{background:#1d374d;border-color:#41617d;color:#c6e0f4}
  html[data-theme="dark"] .inline-notice{background:#3a3027;border-color:#775c40;color:#f6d0ad}
  html[data-theme="dark"] .field label{color:#d1e3f1}
  html[data-theme="dark"] .field .hint{color:#adc3d5}
  html[data-theme="dark"] .field input,
  html[data-theme="dark"] .field select,
  html[data-theme="dark"] .field textarea,
  html[data-theme="dark"] .data-table input{background-color:var(--dark-input);border-color:var(--dark-border);color:#e1effa}
  html[data-theme="dark"] input::placeholder,
  html[data-theme="dark"] textarea::placeholder{color:#a3bdd3;opacity:1}
  html[data-theme="dark"] .field input:hover,
  html[data-theme="dark"] .field select:hover,
  html[data-theme="dark"] .data-table input:hover{border-color:#86b8dd}
  html[data-theme="dark"] .field input[disabled]{background:#253748;color:#a9bfd0}
  html[data-theme="dark"] .field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b8d5ec' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")}
  html[data-theme="dark"] option{background:#102131;color:#e1effa}
  html[data-theme="dark"] .field-check{color:#c2d8e9}
  html[data-theme="dark"] .form-divider{border-color:#344c62}
  html[data-theme="dark"] .record-title strong{color:#d5e8f7}
  html[data-theme="dark"] .record-title small{color:#afc7dc}
  html[data-theme="dark"] .record>summary>svg,
  html[data-theme="dark"] .record .chevron{color:#a6c9e4}
  html[data-theme="dark"] .record-icon{background:#24445f;color:#afdafa}
  html[data-theme="dark"] .record-tools{border-color:#344c62}
  html[data-theme="dark"] .empty-state{background:#182c3e;border-color:#557993;color:#bdd3e5}
  html[data-theme="dark"] .empty-state h3{color:#d7e9f7}
  html[data-theme="dark"] .step-dot{background:#24445e;border-color:#587c99;color:#d2ebff}
  html[data-theme="dark"] .data-table th{background:#20384d;color:#c4dbee;border-color:#48667f}
  html[data-theme="dark"] .data-table td{color:#d2e3f1;border-color:#344c62}
  html[data-theme="dark"] .data-table tr:hover td{background:#21394d}
  html[data-theme="dark"] .data-table .fail{color:#ffb79d}
  html[data-theme="dark"] .choice{background:#172637;border-color:#506c84}
  html[data-theme="dark"] .choice.selected{background:#223e56;border-color:#95c9ee}
  html[data-theme="dark"] .choice .radio{border-color:#92b5cf}
  html[data-theme="dark"] .choice.selected .radio{border-color:#aedcff}
  html[data-theme="dark"] .choice small{color:#b8d0e2}
  html[data-theme="dark"] .footer-top{border-color:#344c62;color:#afc6d8}
  html[data-theme="dark"] .footer-links button{color:#b4d8f3}
  html[data-theme="dark"] .ad-well{background:#142637;border-color:#4a6b85;color:#b7cde0}
  html[data-theme="dark"] .toast{background:#cee7fa;color:#142e43;box-shadow:0 4px 20px #0006;border:1px solid #96c6e8}
  html[data-theme="dark"] dialog{background:#182c3e;color:#e2effa;border-color:#577895;box-shadow:0 16px 70px #0009}
  html[data-theme="dark"] dialog::backdrop{background:#020914ad}
  html[data-theme="dark"] .modal-header{border-color:#3a556e}
  html[data-theme="dark"] .modal-body p,
  html[data-theme="dark"] .modal-body li{color:#c4d8e7}
  html[data-theme="dark"] .modal-body .note.warm{color:#ffd1aa}
  html[data-theme="dark"] .modal-body .note.blue{color:#c6e0f4}
  html[data-theme="dark"] .saved-plan{background:#1c3348;border-color:#496984}
  html[data-theme="dark"] .saved-plan small{color:#abc7dd}
  html[data-theme="dark"] .large-stat{color:#b1dbfb}
  html[data-theme="dark"] .result-tabs{border-color:#415f77}
  html[data-theme="dark"] .result-tabs button{color:#bad2e4}
  html[data-theme="dark"] .result-tabs .selected{border-color:#acd9fb;color:#d1eaff}
  html[data-theme="dark"] .warning-list li{color:#f3c9a7}
  html[data-theme="dark"] .subtle,
  html[data-theme="dark"] .reality-note,
  html[data-theme="dark"] .privacy-kicker{color:#afc8dc}
  html[data-theme="dark"] .scenario-box{background:#213c53;border-color:#517894}
  html[data-theme="dark"] .scenario-box strong{color:#b8defb}
  html[data-theme="dark"] .error-box{background:#3c2828;border-color:#97675f;color:#ffc6ba}
  html[data-theme="dark"] .chart-toolbar button{background:#1b3145;border-color:#51718b;color:#c7def0}
  html[data-theme="dark"] .chart-toolbar .selected{background:#315771;border-color:#82b6db;color:#e2f2ff}
  html[data-theme="dark"] .comparison-grid .card strong{color:#b7dfff}
  html[data-theme="dark"] .text-input-like{color:#d3e9fc}
  html[data-theme="dark"] .text-input-like:focus{border-color:#a6d8ff}
  html[data-theme="dark"] .status-dot{background:#a3d7b5}
  html[data-theme="dark"] .help-details{background:#1b344b;border-color:#4b6d89;color:#c9dfef}
  html[data-theme="dark"] .help-details>summary{color:#d6eafb}
  html[data-theme="dark"] .help-details>summary::marker{color:#b3dcfa}
  html[data-theme="dark"] .tax-allowance-example{background:#213d55;border-color:#94c5e8;color:#d1e7f7}
  html[data-theme="dark"] .help-details code,
  html[data-theme="dark"] .tax-allowance-example code{background:#2d4c65;color:#e1f2ff}
}

/* Forecast exports stay readable in both themes and on narrow screens. */
.export-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.export-actions .btn{white-space:normal}
.export-caption{margin-top:-4px;margin-bottom:22px}
.export-caption .btn{vertical-align:baseline;margin-left:4px}
.export-status{font-weight:650}
.modal-body>.export-actions{margin:20px 0}
.field textarea.ai-export-text{min-height:22rem;max-height:60vh;resize:vertical;line-height:1.45;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.875rem;white-space:pre;overflow:auto}
.card-header>.btn{flex-shrink:0}
@media(max-width:1100px){.text-row:has(.export-actions){align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.card-header:has(> .btn){flex-wrap:wrap}.export-actions{width:100%}.export-actions .btn{flex:1 1 auto}.export-caption .btn{display:flex;margin:8px 0 0}.field textarea.ai-export-text{min-height:18rem}}
