:root{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;color:#1c2530;background:linear-gradient(180deg,#f4f6f8,#e8ecf2)}*{box-sizing:border-box}body{margin:0}.page{max-width:1200px;margin:0 auto;padding:1.5rem}.page-header{display:flex;align-items:center;justify-content:flex-start;gap:.6rem;min-height:0}header h1{margin:0}.header-title-chip{display:inline-flex;align-items:center;border:1px solid #c7d1dc;border-radius:999px;background:#f7f9fc;color:#5b6b7b;padding:.26rem .62rem;font-size:.78rem;line-height:1.1;font-weight:600}header p{margin-top:.5rem;color:#425466}.header-tools{position:static;display:inline-flex;align-items:center;gap:.4rem}.header-tool-btn{border:1px solid #c7d1dc;border-radius:999px;background:#f7f9fc;color:#5b6b7b;padding:.26rem .52rem;font-size:.76rem;line-height:1.1}.header-tool-icon-btn{border:1px solid #c7d1dc;border-radius:999px;background:#f7f9fc;color:#5b6b7b;min-height:30px;padding:.24rem .55rem;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;line-height:1;font-size:.76rem;font-weight:600;white-space:nowrap}.header-tool-icon-btn svg{width:14px;height:14px;fill:currentColor}.header-tool-icon-btn:hover{background:#edf2f8;color:#364657}.header-tool-icon-btn:disabled{background:#eef2f7;color:#8a96a3;border-color:#d4dce6;cursor:not-allowed}.share-dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0e161f75;display:flex;align-items:center;justify-content:center;padding:1rem;z-index:200}.share-dialog{width:min(520px,100%);background:#fff;border:1px solid #d4dde7;border-radius:12px;padding:1rem;box-shadow:0 18px 38px #0e161f3d}.share-dialog h2{margin:0 0 .5rem;font-size:1.05rem}.share-dialog p{margin:.35rem 0;line-height:1.45}.share-dialog-warning{color:#8b2f34;font-weight:600}.share-dialog-actions{margin-top:.85rem;display:flex;gap:.55rem;justify-content:flex-end}.header-tool-btn:hover{background:#edf2f8;color:#364657}.header-tool-btn:disabled{background:#eef2f7;color:#8a96a3;border-color:#d4dce6;cursor:not-allowed}.header-tool-link{display:inline-flex;align-items:center;border:1px solid #c7d1dc;border-radius:999px;background:#f7f9fc;color:#5b6b7b;padding:.26rem .62rem;font-size:.78rem;line-height:1.1;text-decoration:none}.header-tool-link:hover{background:#edf2f8;color:#364657}.panel{background:#fff;border:1px solid #d6dde6;border-radius:10px;padding:1rem;margin-top:1rem}.collapsible-panel{padding:0}.panel-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem;border:none;background:transparent;color:#1c2530;border-radius:10px 10px 0 0;text-align:left}.panel-toggle:hover{background:#f5f8fc}.panel-toggle h2{margin:0}.panel-toggle-icon{font-size:.85rem;color:#5b6b7b;transition:transform .15s ease;transform:rotate(-90deg)}.panel-toggle-icon.is-open{transform:rotate(0)}.panel-content{padding:.65rem 1rem 1rem}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem}.grid-compact{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.instance-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:.6rem;padding:.65rem;border-radius:8px;border:1px solid #e1e7ef;background:#f7fbff}@media (max-width: 980px){.instance-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}}.panel .instance-grid:nth-of-type(3n+1){background:#f3f8ff;border-color:#d5e4f7}.panel .instance-grid:nth-of-type(3n+2){background:#f4f9f4;border-color:#d6e7d6}.panel .instance-grid:nth-of-type(3n){background:#fff7f0;border-color:#efdece}label{display:flex;flex-direction:column;gap:.3rem;font-size:.92rem}.label-row{display:inline-flex;align-items:flex-start;gap:.35rem;white-space:normal;line-height:1.2;min-width:0}.label-text{min-width:0;overflow-wrap:anywhere}.help-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:#d9e7ff;color:#1f4f9f;font-size:11px;font-weight:700;cursor:help;border:1px solid #b8cff6}.help-wrap{position:relative;display:inline-flex;align-items:center;overflow:visible;flex:0 0 auto}.help-tooltip{position:absolute;bottom:125%;right:0;left:auto;transform:none;width:min(320px,calc(100vw - 2rem));background:#1c2530;color:#fff;font-size:12px;line-height:1.35;border-radius:6px;padding:.45rem .55rem;box-shadow:0 6px 18px #0000002e;opacity:0;pointer-events:none;transition:opacity .12s ease;z-index:20;white-space:normal;word-break:break-word}.help-wrap:hover .help-tooltip{opacity:1}@media (max-width: 640px){.help-tooltip{position:fixed;left:max(.75rem,env(safe-area-inset-left));right:max(.75rem,env(safe-area-inset-right));bottom:max(.75rem,env(safe-area-inset-bottom));top:auto;width:auto;max-width:none;max-height:45vh;overflow-y:auto;z-index:220}}input,select,button{border:1px solid #c2ccd7;border-radius:8px;padding:.55rem .65rem;font-size:.95rem}label input,label select{width:100%;max-width:100%;min-width:0}input:disabled,select:disabled{background:#eef2f7;color:#5a6674;cursor:not-allowed}input[readonly]{background:#eef2f7;color:#5a6674}.actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1rem}.actions-primary{margin-top:.8rem;margin-bottom:.2rem}.hero-cta{flex-direction:column;align-items:center;justify-content:center;gap:.5rem;margin-top:1.05rem}.hero-run-btn{width:min(100%,560px);min-height:64px;border-radius:999px;padding:.95rem 1.8rem;font-size:clamp(1.02rem,1.95vw,1.24rem);font-weight:700;letter-spacing:.01em;box-shadow:0 10px 22px #1f6feb47}.hero-run-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 12px 24px #1f6feb52}.hero-stop-btn{min-height:44px;border-radius:999px;padding:.65rem 1.15rem;font-size:.96rem;font-weight:600;letter-spacing:.01em;background:#6b7280;color:#fff;box-shadow:0 6px 14px #424b5a38}.hero-stop-btn:hover:not(:disabled){background:#5c6473;transform:translateY(-1px);box-shadow:0 8px 16px #424b5a42}.privacy-banner{position:fixed;left:50%;bottom:calc(max(.7rem,env(safe-area-inset-bottom)) + .35rem);transform:translate(-50%);width:min(1080px,calc(100% - 1.25rem));display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.62rem .75rem;border:1px solid #cbd7e4;border-radius:10px;background:#fffffff7;box-shadow:0 10px 24px #0f182429;z-index:170}.privacy-banner p{margin:0;font-size:.85rem;color:#425466;line-height:1.4}.privacy-banner-actions{display:inline-flex;align-items:center;gap:.4rem;flex-wrap:wrap;justify-content:flex-end}.privacy-banner-btn{min-height:34px;padding:.4rem .6rem;border-radius:7px;font-size:.82rem}.privacy-banner-link{min-height:34px;padding:.35rem .6rem;font-size:.82rem}button{background:#1f6feb;color:#fff;border:none;cursor:pointer;transition:background-color .12s ease,transform .12s ease,box-shadow .12s ease}button:hover{background:#185ec9}button:disabled{opacity:.7;cursor:not-allowed}.btn-secondary{background:#6b7b8c}.btn-secondary:hover{background:#5d6d7e}.btn-excel{background:#107c41}.btn-excel:hover{background:#0e6c39}.btn-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid #c2ccd7;border-radius:8px;padding:.55rem .65rem;font-size:.95rem;color:#1f6feb;background:#eef4ff;text-decoration:none}.btn-link:hover{background:#dce8ff}.btn-remove{width:120px;min-width:120px;height:40px;align-self:start;justify-self:start;grid-column:1 / -1;white-space:nowrap}.results p{margin:.35rem 0}.results-stack{display:grid;gap:.75rem}.result-item{border:1px solid #e0e7ef;border-radius:8px;padding:.7rem .75rem;background:#fbfcfe}.result-item h3{margin:0 0 .4rem;font-size:1rem}.result-item p{margin:.3rem 0}.result-summary-flow{line-height:1.5}.assumption-summary-list{margin:.2rem 0 0;padding-left:1.2rem;display:grid;gap:.25rem}.assumption-summary-list li{margin:0;line-height:1.45}.mc-age-curve-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.55rem;margin:0 0 .75rem}.mc-age-curve-metric{border:1px solid #dbe4ee;border-radius:8px;background:#fff;padding:.55rem .6rem}.mc-age-curve-metric-label{display:block;font-size:.82rem;color:#5b6b7d;margin-bottom:.2rem}.mc-age-curve-wrap{border:1px solid #e0e7ef;border-radius:8px;background:#fff;overflow:hidden}.mc-age-curve-svg{display:block;width:100%;height:auto}.mc-age-curve-tick{fill:#607082;font-size:11px}.mc-age-curve-axis{fill:#425466;font-size:12px;font-weight:600}.mode-note{margin:.65rem 0 0;font-size:.88rem;color:#556576}.panel-actions{margin-top:.65rem}.wealth-chart-wrap{position:relative;margin-bottom:1rem}.wealth-chart-legend{display:flex;gap:1rem;align-items:center;margin-bottom:.4rem;color:#425466;font-size:.88rem;overflow-x:auto;overflow-y:hidden;padding-bottom:.2rem;white-space:nowrap;-webkit-overflow-scrolling:touch}.wealth-chart-legend-item{display:inline-flex;align-items:center;gap:.4rem;border:1px solid #d6dde6;background:#fff;color:#425466;padding:.3rem .5rem;border-radius:7px;cursor:pointer;flex:0 0 auto}.wealth-chart-legend-item:hover{background:#f5f8fc}.wealth-chart-legend-swatch{display:inline-block;width:18px;height:3px;border-radius:2px}.wealth-chart-legend-swatch-nominal{background:#1f6feb}.wealth-chart-legend-swatch-real{background:#ff8a00}.wealth-chart-legend-swatch-mc{background:#94a3b8}.wealth-chart-legend-swatch-mc-liquid{background:#d97706}.wealth-chart-legend-swatch-mc-nominal-band{background:#6ea8ff}.wealth-chart-legend-swatch-mc-real-band{background:#fb6}.wealth-chart-legend-item.is-off{opacity:.45}.panel-title-with-help{margin:0 0 .5rem}.wealth-chart{width:100%;height:auto;border:1px solid #e0e7ef;border-radius:8px;display:block}.wealth-chart-tooltip{position:absolute;top:10px;right:10px;background:#1c2530e6;color:#fff;padding:.5rem .65rem;border-radius:6px;font-size:.85rem;line-height:1.35;pointer-events:none}@media (max-width: 680px){.page-header{align-items:flex-start}.header-tools{justify-content:flex-end}.privacy-banner{width:calc(100% - .8rem);padding:.55rem .6rem;align-items:flex-start;flex-direction:column;gap:.45rem}.privacy-banner-actions{width:100%;justify-content:flex-start}}.table-wrap{overflow:auto;max-height:70vh;border:1px solid #e0e7ef;border-radius:8px}table{width:100%;border-collapse:collapse;min-width:760px}thead th{position:sticky;top:0;z-index:2;background:#fff;box-shadow:0 1px #d6dde6}th,td{border-bottom:1px solid #e0e7ef;padding:.45rem;text-align:left;white-space:nowrap}
