.main-container{max-width:960px;margin:0 auto;padding:1.5rem 1.5rem 3rem}.page-title{font-family:var(--calc-font-headline);color:var(--calc-text-primary);margin:0 0 .5rem;font-size:clamp(1.6rem,4vw,2.4rem)}.page-subtitle{color:var(--calc-text-faded);margin:0 0 2rem;line-height:1.5}.input-card,.result-card{background:var(--calc-bg-card);border:1px solid var(--calc-border-default);border-radius:var(--calc-radius-lg);margin-bottom:1.25rem;padding:1.25rem 1.5rem}.card-title{font-family:var(--calc-font-headline);text-transform:uppercase;letter-spacing:.05em;color:var(--calc-text-faded);margin:0 0 1rem;font-size:1rem}.form-group{flex-direction:column;gap:.4rem;margin-bottom:1rem;display:flex}.form-group:last-child{margin-bottom:0}.form-group label{color:var(--calc-text-faded);font-size:.9rem}.form-group input[type=text]{background:var(--calc-bg-input);border:1px solid var(--calc-border-strong);border-radius:var(--calc-radius-md);color:var(--calc-text-primary);font-family:var(--calc-font-mono);transition:var(--calc-transition-default,border-color .15s);padding:.65rem .85rem;font-size:1.05rem}.form-group input[type=text]:focus{border-color:var(--calc-cyan);outline:none}.input-hint{color:var(--calc-text-dim);font-size:.8rem}.switch-label{cursor:pointer;color:var(--calc-text-primary);align-items:center;gap:.55rem;font-size:.92rem;display:flex}.switch-label input[type=checkbox]{width:1.05rem;height:1.05rem;accent-color:var(--calc-cyan);cursor:pointer}[data-theme=light] .input-card,[data-theme=light] .result-card{background:#fff;border-color:#0000001f;box-shadow:0 1px 4px #0000000f}[data-theme=light] .form-group input[type=text]{background:#f0f4f9;border-color:#00000026}[data-theme=light] .switch-label{color:#0f172a}[data-theme=light] .switch-label input[type=checkbox]{accent-color:#0891b2}.result-value{font-family:var(--calc-font-mono);color:var(--calc-cyan);margin-bottom:.3rem;font-size:clamp(1.8rem,5vw,2.6rem)}.result-detail{color:var(--calc-text-faded);line-height:1.5}[data-theme=light] .result-value{color:#0891b2}.stat-row{gap:.75rem;margin-top:1.1rem;display:none}.stat-row.show{grid-template-columns:repeat(3,1fr);display:grid}.stat-cell{background:var(--calc-bg-input);border:1px solid var(--calc-border-subtle);border-radius:var(--calc-radius-md);flex-direction:column;gap:.25rem;padding:.75rem .85rem;display:flex}.stat-label{text-transform:uppercase;letter-spacing:.04em;color:var(--calc-text-dim);font-size:.72rem}.stat-value{font-family:var(--calc-font-mono);color:var(--calc-text-primary);font-size:1.15rem}[data-theme=light] .stat-cell{background:#eef2f9;border-color:#0000001a}[data-theme=light] .stat-value{color:#0f172a}[data-theme=light] .stat-label{color:#475569}.interpretation{border-radius:var(--calc-radius-md);border-left:3px solid var(--calc-tier-neutral,#7b90a8);background:#7b90a81a;margin-top:1.1rem;padding:.9rem 1rem}.interp-badge{font-family:var(--calc-font-headline);color:var(--calc-text-primary);margin-bottom:.35rem;font-size:.9rem;font-weight:700;display:inline-block}.interp-text{color:var(--calc-text-faded);margin:0;font-size:.88rem;line-height:1.6}.interpretation[data-tier=good]{border-left-color:var(--calc-tier-good,#34d399);background:#34d3991a}.interpretation[data-tier=warn]{border-left-color:var(--calc-tier-warn,#f59e0b);background:#f59e0b1a}.interpretation[data-tier=high]{border-left-color:var(--calc-tier-crisis,#fb7185);background:#fb71851a}[data-theme=light] .interpretation{background:#eef2f9;border-left-color:#64748b}[data-theme=light] .interpretation[data-tier=good]{background:#f0fdf4;border-left-color:#047857}[data-theme=light] .interpretation[data-tier=warn]{background:#fffbeb;border-left-color:#b45309}[data-theme=light] .interpretation[data-tier=high]{background:#fff1f2;border-left-color:#e11d48}[data-theme=light] .interp-badge{color:#0f172a}[data-theme=light] .interp-text{color:#475569}.errbar-wrap{margin-top:1.2rem}.errbar{width:100%;height:auto}.errbar .bar-label{fill:var(--calc-text-faded);font-family:var(--calc-font-headline);font-size:13px}.errbar .bar-val{fill:var(--calc-text-faded);font-family:var(--calc-font-mono);font-size:13px}.errbar .bar-exp{fill:var(--calc-cyan)}.errbar .bar-theo{fill:var(--calc-gold)}[data-theme=light] .errbar .bar-label,[data-theme=light] .errbar .bar-val{fill:#475569}[data-theme=light] .errbar .bar-exp{fill:#0891b2}[data-theme=light] .errbar .bar-theo{fill:#b45309}.tab-strip{border-bottom:1px solid var(--calc-border-default);gap:.25rem;margin-bottom:1.25rem;display:flex}.tab-btn{appearance:none;color:var(--calc-text-faded);cursor:pointer;font-family:var(--calc-font-headline);background:0 0;border:none;border-bottom:2px solid #0000;padding:.7rem 1rem;font-size:.95rem;font-weight:600;transition:color .15s,border-color .15s}.tab-btn:hover{color:var(--calc-text-primary)}.tab-btn.active{color:var(--calc-cyan);border-bottom-color:var(--calc-cyan)}[data-theme=light] .tab-btn.active{color:#0891b2;border-bottom-color:#0891b2}.preset-row{flex-wrap:wrap;gap:.5rem;margin-bottom:1.25rem;display:flex}.preset-chip{background:var(--calc-bg-input);border:1px solid var(--calc-border-strong);color:var(--calc-text-faded);cursor:pointer;border-radius:999px;padding:.4rem .85rem;font-size:.82rem;transition:border-color .15s,color .15s,background .15s}.preset-chip:hover{border-color:var(--calc-cyan);color:var(--calc-cyan)}[data-theme=light] .preset-chip{color:#334155;background:#eef2f9;border-color:#00000024}[data-theme=light] .preset-chip:hover{color:#0891b2;border-color:#0891b2}.modes-intro{color:var(--calc-text-faded);margin:0 0 1rem;font-size:.9rem;line-height:1.6}#signed-explain{margin:1rem 0 0}.modes-table-wrap{overflow-x:auto}.modes-table{border-collapse:collapse;width:100%;font-size:.92rem}.modes-table th,.modes-table td{border-bottom:1px solid var(--calc-border-subtle);text-align:left;padding:.65rem .75rem}.modes-table th{color:var(--calc-text-faded);font-family:var(--calc-font-headline);letter-spacing:.04em;text-transform:uppercase;font-size:.8rem}.modes-table .mode-name{color:var(--calc-text-primary)}.modes-table .mode-result{color:var(--calc-text-primary);font-family:var(--calc-font-mono)}.modes-empty{color:var(--calc-text-dim);font-style:italic}[data-theme=light] .modes-table th,[data-theme=light] .modes-table td{border-bottom-color:#0000001a}[data-theme=light] .modes-table .mode-name,[data-theme=light] .modes-table .mode-result{color:#0f172a}.action-bar{flex-wrap:wrap;gap:.5rem;margin-bottom:1.25rem;display:flex}.action-btn{background:var(--calc-bg-input);border:1px solid var(--calc-border-strong);border-radius:var(--calc-radius-md);color:var(--calc-text-faded);cursor:pointer;padding:.5rem .9rem;font-size:.85rem;transition:border-color .15s,color .15s}.action-btn:hover{border-color:var(--calc-cyan);color:var(--calc-cyan)}[data-theme=light] .action-btn{color:#334155;background:#eef2f9;border-color:#00000024}[data-theme=light] .action-btn:hover{color:#0891b2;border-color:#0891b2}.faq-item__question{cursor:pointer;color:var(--calc-text-primary);user-select:none;justify-content:space-between;align-items:center;padding:14px 4px;font-size:.9rem;font-weight:600;list-style:none;transition:color .2s;display:flex}.faq-item__question::-webkit-details-marker{display:none}.faq-item__question:after{content:"+";font-family:var(--calc-font-mono);color:var(--calc-text-dim);flex-shrink:0;margin-left:16px;font-size:1.1rem;transition:color .2s}.faq-item[open] .faq-item__question:after{content:"−";color:var(--calc-cyan)}.faq-item__question:hover{color:var(--calc-cyan)}.faq-item__answer{color:var(--calc-text-faded);padding:0 4px 14px;font-size:.85rem;line-height:1.75}[data-theme=light] .faq-item__question{color:#0f172a}[data-theme=light] .faq-item__question:after{color:#64748b}[data-theme=light] .faq-item[open] .faq-item__question:after,[data-theme=light] .faq-item__question:hover{color:#0891b2}[data-theme=light] .faq-item__answer{color:#475569}@media (width<=480px){.tab-btn{flex:1;padding:.7rem .5rem;font-size:.88rem}.stat-row.show{grid-template-columns:1fr}}.math2-workbench{border:1px solid var(--border,#454559);color:var(--text,inherit);border-radius:16px;margin:24px 0;padding:16px}.math2-workbench summary{cursor:pointer;font-weight:700}.math2-workbench-body{gap:14px;margin-top:18px;display:grid}.math2-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px;display:grid}.math2-fields .field{gap:8px;display:grid}.math2-fields input,.math2-fields select{width:100%;min-width:0}.math2-table-wrap{overflow-x:auto}.math2-table-wrap table{border-collapse:collapse;width:100%;margin:16px 0}.math2-table-wrap caption{text-align:left;margin:8px 0;font-weight:700}.math2-table-wrap th,.math2-table-wrap td{border-bottom:1px solid var(--border,#454559);text-align:left;overflow-wrap:anywhere;padding:9px}.math2-plot svg{width:100%;height:auto;display:block}.math2-error{color:var(--danger,#f87171)}.math2-workbench :focus-visible{outline:3px solid var(--accent,#818cf8);outline-offset:3px}@media print{.math2-workbench[open]{break-inside:avoid}}.math2-scenario-actions{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.math2-explanation{border:1px solid var(--calc-border,#475569);--math2-series-1:#0e7490;--math2-series-2:#7c3aed;--math2-series-3:#b45309;--math2-series-4:#15803d;--math2-series-5:#be185d;border-radius:12px;margin:18px 0;padding:12px}.math2-explanation figcaption{margin-bottom:10px;font-weight:700}.math2-explanation svg{width:100%;max-width:100%;height:auto;display:block}.math2-explanation svg [tabindex]:focus{outline:3px solid var(--accent,#22d3ee)}.math2-visual-table{margin-top:10px}.math2-visual-table summary{cursor:pointer;padding:8px}.math2-saved-tray,.math2-share-preview,.math2-learner{border:1px solid var(--calc-border,#475569);border-radius:10px;margin:16px 0;padding:10px}.math2-share-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto}.math2-fields input[type=range]{width:100%}.math2-saved-tray summary,.math2-share-preview summary,.math2-learner summary{cursor:pointer;padding:6px}[data-theme=dark] .math2-explanation{--math2-series-1:#22d3ee;--math2-series-2:#a78bfa;--math2-series-3:#fb923c;--math2-series-4:#4ade80;--math2-series-5:#f472b6}.math2-explanation svg text{font-family:var(--calc-font-mono,ui-monospace,monospace)}@media (width<=480px){.math2-explanation svg text{font-size:22px}.math2-explanation[data-math2-visual=tree] svg text{font-size:17px}}.math2-step-control{margin:14px 0}.math2-step-control input{width:100%;margin:8px 0;display:block}.math2-step-control summary{cursor:pointer;padding:6px}