:root {
  --ink:#302a26; --muted:#6b6259; --paper:#fbfaf7; --white:#fffefa;
  --line:#ded5c8; --gold:#806649; --soft:#f0e9df;
  --serif:Baskerville,Georgia,serif;
}
* {box-sizing:border-box}
body {margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 system-ui,sans-serif}
header,footer {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px max(5vw,19px);flex-wrap:wrap}
header {border-bottom:1px solid var(--line);background:var(--white)}
header span,footer {font-size:12px;color:var(--gold)}
header span {letter-spacing:.13em}
footer {border-top:1px solid var(--line)}
.brand {font:clamp(22px,4vw,32px)/1 var(--serif);letter-spacing:-.04em;color:inherit;text-decoration:none}
main {max-width:820px;margin:auto;padding:28px 20px 56px}
.progress {display:flex;gap:5px;margin-bottom:28px}
.progress span {height:3px;flex:1;background:var(--line)}
.progress span.on {background:var(--gold)}
h1,h2,h3 {font-family:var(--serif);font-weight:400;line-height:1.13;overflow-wrap:anywhere}
h1 {font-size:clamp(36px,6.6vw,58px);letter-spacing:-.035em;margin:0 0 15px}
h2 {font-size:30px;margin:26px 0 12px}
h3 {font-size:23px;margin:12px 0 5px}
p {margin:0 0 14px}
.lead,.hint {color:var(--muted);max-width:64ch}
.hint {font-size:14px}
.card,.report {padding:clamp(13px,3vw,24px);background:var(--white);border:1px solid var(--line);margin:14px 0;min-width:0}
label {display:block;font-size:14px;min-width:0}
input,select,button {font:inherit;color:inherit;border-radius:0}
input,select {display:block;margin-top:5px;padding:10px;width:100%;min-height:44px;background:var(--white);border:1px solid #aa9d8d}
button {border:1px solid var(--ink);padding:10px 16px;min-height:46px;background:var(--ink);color:var(--white);cursor:pointer}
button.secondary {background:transparent;color:var(--ink);border-color:#aa9d8d}
button.quiet {background:transparent;color:var(--muted);border:0;padding:8px 0;text-decoration:underline;text-underline-offset:4px}
:focus-visible {outline:2px solid var(--gold);outline-offset:3px}
h1:focus {outline:none}
.grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0}
.actions,.downloads {display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:26px}
.error {color:#853f30;margin:12px 0}
summary {cursor:pointer;min-height:44px;padding:8px 0;overflow-wrap:anywhere}
.metric {border-bottom:1px solid var(--line);display:flex;gap:10px;justify-content:space-between;padding:8px 0;overflow-wrap:anywhere}
.metric strong {text-align:right;font-weight:600;flex-shrink:0}
.track {background:var(--soft);height:13px;display:flex;margin:14px 0 8px;outline:1px solid var(--line)}
.track span {height:100%}
.notice {border-left:2px solid var(--gold);padding:7px 12px;margin:12px 0}
.quote {position:relative;font:italic clamp(24px,4vw,33px)/1.28 var(--serif);margin:24px 0 12px;padding:21px;color:var(--gold);background:var(--soft)}
.quote::before,.quote::after {content:"";position:absolute;width:26px;height:26px;border:3px double #b4a087}
.quote::before {top:5px;right:5px;border-left:0;border-bottom:0}
.quote::after {bottom:5px;left:5px;border-right:0;border-top:0}
em {color:var(--gold)}
@media(max-width:520px) {.grid {grid-template-columns:1fr} .actions button {flex:1} .metric {font-size:14px}}
textarea {font:inherit;color:inherit;width:100%;margin-top:5px;padding:10px;display:block;background:var(--white);border:1px solid #aa9d8d;border-radius:0;resize:vertical}
.allocation-bars {display:grid;gap:3px;margin:4px 0 8px;min-height:5px}
.allocation-bars span {display:block;background:#b8a58d;height:5px}
.allocation-bars span + span {background:#806649}
