.workbook { --sheet-muted:#46516e; --sheet-line:#d8d9dc; --sheet-gold:#805511; }
.workbook [hidden] { display:none!important; }
.sp-privacy { padding:12px 16px; border-left:3px solid #ae833b; background:#f6f1e5; color:#3c455a; font-size:.95rem; }
.sp-links { display:flex; flex-wrap:wrap; gap:10px 22px; padding:16px 0; }
.sp-links a,.sp-index a { color:var(--navy-800); text-decoration:underline; text-underline-offset:3px; font-weight:650; }
.sp-forms { display:grid; align-items:start; gap:28px; max-width:850px; }
.sp-forms section { scroll-margin-top:16px; }
.sp-index { margin-top:28px; }
.sp-index h2 { font-size:1.35rem; margin-bottom:12px; }
.sp-index>div { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:14px; }
.sp-index a { padding:18px; border:1px solid #c8ced8; border-radius:12px; background:white; display:grid; gap:6px; text-decoration:none; }
.sp-index a:hover strong { text-decoration:underline; }
.sp-index span { font-size:.94rem; color:var(--sheet-muted); font-weight:400; }
.sheet-wrap { width:min(1060px, 100% - 40px); margin-inline:auto; }
.workbook .header .wrap { max-width:1124px; }
.sheet-intro { padding:clamp(30px,5vw,60px) 0 clamp(24px,3vw,36px); }
.sheet-intro .eyebrow { color:var(--sheet-gold); }
.sheet-intro h1 { margin:10px 0; color:var(--navy-800); font-size:clamp(2.05rem,4.4vw,3.6rem); line-height:1.05; text-wrap:balance; }
.sheet-intro p { max-width:66ch; line-height:1.55; color:var(--sheet-muted); }
.sheet-layout { display:grid; grid-template-columns:minmax(190px, .8fr) minmax(0, 2.2fr); gap:clamp(22px,4vw,52px); align-items:start; }
.sheet-picker h2,.sheet-select { margin:8px 0 14px; font:700 .76rem/1.4 var(--font-sans); letter-spacing:.06em; text-transform:uppercase; color:var(--sheet-muted); }
.sheet-picker nav a { display:flex; align-items:baseline; gap:13px; padding:14px 10px; min-height:48px; font-size:.95rem; font-weight:600; color:var(--navy-800); border-bottom:1px solid var(--sheet-line); border-left:3px solid transparent; }
.sheet-picker nav a span,.sheet-folio { font:600 .75rem/1.3 ui-monospace,monospace; color:var(--sheet-gold); }
.sheet-picker nav a[aria-current] { border-left-color:var(--gold-500); background:#f5e9d1; }
.sheet-picker nav a:hover { background:#efeae0; }
.sheet-select { display:none; }
.sheet-comparison { display:inline-block; margin:16px 0 0; padding:5px 2px; font-size:.88rem; font-weight:650; color:var(--navy-600); text-decoration:underline; text-underline-offset:3px; }
.sheet-panel { border:1px solid var(--sheet-line); border-radius:18px; background:white; box-shadow:0 4px 16px #07123308; overflow:hidden; }
.sheet-panel-head { padding:clamp(20px,3.6vw,36px); background:var(--navy-800); color:white; }
.sheet-panel-head h2 { font-size:clamp(1.65rem,3vw,2.45rem); margin:8px 0; }
.sheet-panel-head p { color:#e1e8f6; line-height:1.5; }
.sheet-folio { letter-spacing:.1em; color:var(--gold-300); }
.sheet-form,.sheet-notes { padding:clamp(20px,3.6vw,36px); }
.sheet-form fieldset { min-width:0; border:0; margin:0; padding:0; }
.sheet-fields { display:grid; grid-template-columns:1fr 1fr; gap:20px 22px; align-items:start; }
.sheet-field { min-width:0; }
.sheet-field:has([name="expenses"]),.sheet-field:has([name="housing"]) { grid-column:1/-1; }
.sheet-field label { display:block; margin-bottom:5px; color:var(--navy-800); font-size:.94rem; font-weight:650; line-height:1.4; }
.sheet-input { display:flex; align-items:center; border:1px solid #8994a7; border-radius:7px; background:#fff; overflow:hidden; }
.sheet-input:focus-within { outline:2px solid var(--navy-600); outline-offset:1px; }
.sheet-input input { min-width:0; width:100%; padding:11px; border:0; border-radius:0; outline:0; font:500 1rem/1.4 var(--font-sans); color:var(--navy-800); background:transparent; }
.sheet-input span { flex:none; padding-right:10px; font-size:.75rem; color:var(--sheet-muted); }
.sheet-field small,.sheet-format { color:var(--sheet-muted); font-size:.8rem; line-height:1.5; }
.sheet-field small { display:block; margin-top:4px; }
.sheet-field label small { display:inline; font-weight:400; }
.sheet-format { margin:20px 0 14px; }
.sheet-field .sheet-error { color:#9b251d; font-weight:600; }
.sheet-input:has([aria-invalid]) { border-color:#9b251d; }
.sheet-notes { border-top:1px solid var(--sheet-line); background:#fbfaf6; }
.sheet-notes h3 { font-size:1.18rem; }
.sheet-notes p { margin:8px 0; font-size:.9rem; color:var(--sheet-muted); }
.sheet-notes a,.sheet-footer a { display:table; padding:4px 0; color:var(--navy-600); text-decoration:underline; text-underline-offset:3px; font-weight:600; font-size:.85rem; }
.sheet-disclosure { margin:26px 0 36px; max-width:80ch; color:var(--sheet-muted); font-size:.86rem; }
.sheet-footer { border-top:1px solid var(--sheet-line); padding:20px 0; }
.sheet-footer .sheet-wrap { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.sheet-footer span { color:var(--sheet-muted); font-size:.8rem; }
.sheet-result { margin:0 clamp(16px,3.6vw,36px) 24px; background:#f0f5f3; border-left:4px solid #307365; padding:clamp(12px,2vw,22px); scroll-margin:12px; }
.sheet-result h3 { font-size:1.4rem; color:#193f37; }
.sheet-result dl { margin:0; }
.sheet-result dl>div { display:flex; align-items:baseline; justify-content:space-between; padding:9px 0; gap:12px; border-bottom:1px solid #cfdbd7; }
.sheet-result dt { color:#314d47; font-size:.89rem; }
.sheet-result dd { margin:0; font-weight:700; text-align:right; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.sheet-result dl>div:first-child dd { font-size:1.2rem; }
.sheet-status { margin-top:12px; font-weight:650; color:#193f37; }
.sheet-result h4 { margin:20px 0 10px; font-size:1.15rem; }
.sheet-result details { border-top:1px solid #cfdbd7; }
.sheet-result summary { padding:9px 0; cursor:pointer; font-weight:600; }
.sheet-scroll { overflow:auto; }
.sheet-result table { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.sheet-result td,.sheet-result th { font-size:.8rem; padding:5px; text-align:right; white-space:nowrap; }
.sheet-result thead th { color:#314d47; }
.sheet-result td,.sheet-result tbody th { border-top:1px solid #d2deda; }
@media (max-width:720px) {
  .sheet-layout { display:block; }
  .sheet-intro { padding-bottom:15px; }
  .sheet-ready .sheet-picker nav { display:none; }
  .sheet-select:not([hidden]) { display:block; }
  .sheet-select select { appearance:auto; display:block; width:100%; margin-top:5px; padding:10px; border:1px solid #8994a7; border-radius:7px; color:var(--navy-800); background:#fff; font:600 1rem/1.5 var(--font-sans); }
  .sheet-wrap { width:calc(100% - 28px); }
  .sheet-picker nav { margin-bottom:16px; }
  .sheet-comparison { margin:0 0 12px; }
}
@media (max-width:510px) {
  .sheet-fields { grid-template-columns:1fr; gap:15px; }
  .sheet-field:has([name="expenses"]),.sheet-field:has([name="housing"]) { grid-column:auto; }
  .sheet-panel-head,.sheet-form,.sheet-notes { padding:19px; }
  .sheet-result dl>div { flex-wrap:wrap; gap:2px 10px; }
  .sheet-result table { min-width:260px; }
}
