.compound h1{margin-bottom:.35em}
.compound-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:16px;align-items:start}
.compound-layout section{min-width:0;margin:0;padding:clamp(14px,2.4vw,26px)}
.compound h2{margin:0 0 16px;font-size:1.15rem}
#compound-form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
#compound-form input,#compound-form select{width:100%;box-sizing:border-box}
#compound-form button{background:var(--desk-action);color:var(--desk-on-action);font-weight:700;cursor:pointer}
#compound-error{font-weight:600}
.compound-results{--growth:var(--desk-action);font-variant-numeric:tabular-nums}
.compound-results #projection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow-wrap:anywhere}
#projection > div{border:1px solid var(--edge);border-radius:12px;padding:12px}
#projection > div:first-child{grid-column:1/-1;background:var(--page)}
#projection span,#projection strong{display:block}
#projection span{color:var(--sub)}
#projection strong{font-size:1.25rem}
#projection > div:first-child strong{font-size:clamp(1.65rem,4vw,2.65rem)}
.compound-plot{margin-top:16px}
#growth-chart{display:block;width:100%;height:auto}
#chart-grid text{fill:var(--fg);font-size:18px}
#chart-grid line{stroke:var(--edge)}
#growth-line,#principal-line{fill:none;stroke:var(--growth);stroke-width:3}
#principal-line{stroke:var(--sub);stroke-width:1.5;stroke-dasharray:5 5}
#growth-point{fill:var(--growth);stroke:var(--panel2);stroke-width:2}
#growth-period{width:100%;box-sizing:border-box;accent-color:var(--growth)}
#period-value{margin:4px 0 0}
.compound-note{font-size:.9rem}
@media(max-width:760px){.compound-layout{grid-template-columns:minmax(0,1fr)}}
.compound-hero{padding:clamp(22px,5vw,56px);margin:0 0 20px;border:1px solid #73503b;border-radius:20px;background:radial-gradient(ellipse at 92% 0%,#754124 0%,transparent 65%),linear-gradient(125deg,#191511,#302118);color:#fff4e8}
.compound-hero h1{max-width:22ch;color:inherit;margin:.3em 0;font-size:clamp(1.9rem,5vw,3.4rem);line-height:1.17}
.compound-hero h1 span{display:block;color:#ffb77f}
.compound .compound-hero p{margin:0;color:#eed9c8}
.compound-kicker{font-size:.9rem;font-weight:700}
.compound-ledger,.compound-guide{margin-top:20px;padding:clamp(14px,2.4vw,26px)}
.ledger-scroll{overflow-x:auto;border:1px solid var(--edge);border-radius:12px}
.compound-ledger table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.ledger-caption{text-align:left;padding:10px 14px;font-size:.88rem;color:var(--sub)}
.compound-ledger :is(th,td){padding:10px 14px;border-top:1px solid var(--edge);white-space:nowrap;text-align:right}
.compound-ledger th:first-child{text-align:left}
.compound-ledger thead,.compound-ledger tbody tr:nth-child(even){background:var(--page)}
.compound-ledger td:last-child{font-weight:700}
.ledger-controls{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.ledger-controls button:disabled{opacity:.5}
.compound-guide dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1px;border:1px solid var(--edge);background:var(--edge);border-radius:12px;overflow:hidden}
.compound-guide dl div{background:var(--panel2);padding:14px}
.compound-guide dt{font-weight:700}
.compound-guide dd{margin:5px 0 0;color:var(--sub)}
