.coffee-compact { line-height:1.65; }
.coffee-compact .layout { padding-top:24px; gap:32px; }
.coffee-compact .hero { padding-bottom:16px; }
.coffee-compact .hero h1 { margin-bottom:8px; font-size:clamp(27px,3.5vw,38px); }
.coffee-compact .hero .eyebrow { margin-bottom:7px; font-size:11px; }
.coffee-compact .hero .lead { font-size:14px; line-height:1.65; }
.coffee-compact .section { margin-top:24px; scroll-margin-top:calc(var(--budget-header-height,100px) + 16px); }
.coffee-compact .section > h2 { margin-bottom:12px; font-size:22px; }
.coffee-compact p { margin-bottom:12px; }
.coffee-compact .note { line-height:1.6; }
.coffee-compact .budget-controls { display:grid; grid-template-columns:minmax(260px,1.2fr) minmax(190px,1fr) minmax(180px,1fr); align-items:center; gap:14px; margin:18px 0 10px; }
.coffee-compact .budget-controls .tier-control { width:100%; margin:0; gap:3px; padding:3px; }
.coffee-compact .budget-controls .tier-control button { min-width:0; flex:1; padding:8px 6px; font-size:14px; }
.coffee-compact .duration-choice { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:4px 10px; margin:0; padding:0; border:0; }
.coffee-compact .duration-choice label { font-size:12px; line-height:1.45; }
.coffee-compact .duration-choice label small { font-size:11px; }
.coffee-compact .duration-choice > div { gap:5px; }
.coffee-compact .duration-choice p { grid-column:1 / -1; margin:2px 0 0; font-size:11px; line-height:1.45; }
.coffee-compact .day-stepper { display:inline-flex; align-items:center; gap:0; min-width:0; }
.coffee-compact .day-stepper button { flex:0 0 44px; width:44px; min-height:44px; padding:0; border:1px solid var(--line); color:var(--ink); background:var(--surface); font-size:22px; line-height:1; }
.coffee-compact .day-stepper input { width:46px; min-width:0; height:44px; min-height:44px; padding:5px 2px; margin:0; border:1px solid var(--line); border-inline:0; text-align:center; font-size:18px; line-height:1.4; appearance:textfield; -moz-appearance:textfield; }
.coffee-compact .day-stepper input::-webkit-inner-spin-button,
.coffee-compact .day-stepper input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.coffee-compact .cbc-option { gap:10px; min-height:44px; padding:9px 10px; margin:0; border:1px solid var(--line); background:var(--surface); font-size:13px; line-height:1.45; }
.coffee-compact .cbc-option small { margin-top:3px; font-size:11px; line-height:1.5; color:var(--muted); }
.coffee-compact .cbc-option input[type="checkbox"] { position:relative; display:inline-block; flex:0 0 42px; width:42px; height:26px; min-height:26px; margin:0; padding:0; border:1px solid #a9a69e; border-radius:14px; background:var(--tint); appearance:none; -webkit-appearance:none; cursor:pointer; transition:background-color 140ms ease,border-color 140ms ease; }
.coffee-compact .cbc-option input[type="checkbox"]::before { content:""; position:absolute; left:3px; top:3px; width:18px; height:18px; border-radius:50%; background:var(--muted); transition:transform 140ms ease,background-color 140ms ease; }
.coffee-compact .cbc-option input[type="checkbox"]:checked { border-color:var(--ink); background:var(--ink); }
.coffee-compact .cbc-option input[type="checkbox"]:checked::before { transform:translateX(16px); background:var(--paper); }
.coffee-compact .cbc-option:focus-within { outline:none; }
.coffee-compact .budget-topnote { display:grid; gap:4px; margin:8px 0 12px; }
.coffee-compact .budget-topnote p,
.coffee-compact .budget-topnote .duration-summary { margin:0; font-size:12px; line-height:1.55; }
.coffee-compact .budget-topnote .warning { margin:0; padding:7px 10px; border-left-width:2px; font-size:11px; }
.coffee-compact .decision-status { gap:4px 12px; font-size:11px; }
.coffee-compact .decision-status a { min-height:44px; }
.coffee-compact .decision-summary { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:12px 0; }
.coffee-compact .decision-summary .metric { display:block; padding:12px 10px 10px; }
.coffee-compact .decision-summary .metric .label { min-height:0; margin:0 0 6px; font-size:12px; line-height:1.45; }
.coffee-compact .decision-summary .metric .value { font-size:clamp(22px,2.5vw,30px); letter-spacing:-.035em; line-height:1.3; }
.coffee-compact .decision-summary .metric .value small { display:block; margin:2px 0 0; font-size:11px; }
.coffee-compact .decision-summary .metric .sub { margin-top:6px; font-size:11px; line-height:1.45; }
.coffee-compact .budget-actions { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 16px; }
.coffee-compact .budget-actions a { display:inline-flex; justify-content:center; align-items:center; min-height:44px; padding:8px 18px; border:1px solid var(--line); background:var(--surface); color:var(--ink); font-size:13px; text-decoration:none; }
.coffee-compact .budget-actions a:first-child { border-color:var(--ink); background:var(--ink); color:var(--paper); }
.coffee-compact button,
.coffee-compact .budget-actions a,
.coffee-compact summary { transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease,transform 140ms ease; }
.coffee-compact button:not(:disabled):active,
.coffee-compact .budget-actions a:active { transform:translateY(1px); }
.coffee-compact button:disabled { opacity:.42; cursor:not-allowed; transform:none; }
.coffee-compact button:focus-visible,
.coffee-compact input:focus-visible,
.coffee-compact a:focus-visible,
.coffee-compact summary:focus-visible { outline:2px solid var(--vermillion); outline-offset:3px; }
.coffee-compact input[aria-invalid="true"] { border-color:var(--vermillion); }
.coffee-compact .section-fold { margin-top:20px; padding:0; border:1px solid var(--line); background:transparent; }
.coffee-compact .section-fold > summary { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:3px 14px; min-height:64px; padding:12px 14px; list-style:none; cursor:pointer; }
.coffee-compact .section-fold > summary::-webkit-details-marker { display:none; }
.coffee-compact .section-fold > summary::after { content:"＋"; grid-column:2; grid-row:1 / 3; color:var(--vermillion); font-size:20px; font-weight:400; }
.coffee-compact .section-fold[open] > summary::after { content:"−"; }
.coffee-compact .section-fold > summary h2 { margin:0; color:var(--ink); font:600 19px/1.4 var(--serif); }
.coffee-compact .section-fold > summary small { grid-column:1; color:var(--muted); font-size:12px; line-height:1.5; }
.coffee-compact .section-fold[open] > summary { border-bottom:1px solid var(--line); background:var(--tint); }
.coffee-compact .section-fold > :not(summary) { margin-left:14px; margin-right:14px; }
.coffee-compact .section-fold > :last-child { margin-bottom:14px; }
.coffee-compact .section-fold > .section { margin-top:16px; }
.coffee-compact .baseline-fold { margin:12px 0; padding-inline:12px; }
.coffee-compact .baseline-fold > summary { min-height:46px; padding:10px 0; font-size:13px; line-height:1.7; }
.coffee-compact .baseline-fold > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; list-style:none; }
.coffee-compact .baseline-fold > summary::-webkit-details-marker { display:none; }
.coffee-compact .baseline-fold > summary::after { content:""; width:7px; height:7px; flex:0 0 7px; margin-right:3px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); transition:transform 140ms ease; }
.coffee-compact .baseline-fold[open] > summary::after { transform:rotate(225deg); }
.coffee-compact .compact-bridge > summary { flex-wrap:wrap; gap:4px 10px; }
.coffee-compact .compact-bridge > summary strong { font-size:14px; font-variant-numeric:tabular-nums; }
.coffee-compact .section-fold.baseline-fold { padding:0; }
.coffee-compact .section-fold.baseline-fold > summary { min-height:64px; padding:12px 14px; }
.coffee-compact .compact-compare .reading-chart { margin:12px 0; }
.coffee-compact .compact-compare .reading-chart figcaption { margin-bottom:8px; font-size:15px; }
.coffee-compact .compact-compare .reading-legend { gap:14px; margin-bottom:6px; font-size:11px; }
.coffee-compact .compact-compare .reading-tier-row { gap:2px 10px; padding:9px 0; }
.coffee-compact .compact-compare .reading-tier-row > strong { font-size:20px; }
.coffee-compact .compact-compare .reading-tier-row > small { font-size:11px; }
.coffee-compact .compact-compare .reading-upgrades { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:14px 0; }
.coffee-compact .compact-compare .reading-upgrades article { display:block; min-width:0; padding-top:8px; }
.coffee-compact .compact-compare .reading-upgrades h3 { margin-bottom:5px; font-size:16px; }
.coffee-compact .compact-compare .reading-upgrades article > strong { display:block; margin:5px 0; font-size:16px; line-height:1.4; }
.coffee-compact .compact-compare .reading-upgrades p { gap:2px 8px; margin:5px 0; font-size:12px; line-height:1.5; }
.coffee-compact .compact-compare .reading-upgrades small { display:block; font-size:11px; line-height:1.5; }
.coffee-compact .notice,
.coffee-compact .warning { margin:12px 0; padding:10px 12px; font-size:12px; line-height:1.65; }
.coffee-compact .table-wrap { margin:12px 0; }
.coffee-compact .table-hint { margin-bottom:6px; font-size:11px; }
.coffee-compact .summary-grid:not(.decision-summary) { margin:14px 0; gap:8px; }
.coffee-compact .summary-grid:not(.decision-summary) .metric { padding:12px; }
.coffee-compact .summary-grid:not(.decision-summary) .metric .label { min-height:0; margin-bottom:5px; }
.coffee-compact .summary-grid:not(.decision-summary) .metric .value { font-size:25px; }
.coffee-compact .summary-grid:not(.decision-summary) .metric .sub { margin-top:6px; line-height:1.5; }
.coffee-compact #cash > .summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.coffee-compact .scenario { margin:14px 0; padding:16px; }
.coffee-compact .scenario .scenario-state { gap:5px 12px; margin:10px 0; }
.coffee-compact .scenario .scenario-status { margin-bottom:8px; font-size:12px; }
.coffee-compact .scenario .scenario-live-totals { margin:10px 0; padding:9px 10px; gap:6px 12px; }
.coffee-compact .scenario .scenario-live-totals strong { font-size:15px; }
.coffee-compact .scenario .scenario-controls { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:12px 0; }
.coffee-compact .scenario .scenario-controls label { gap:5px; font-size:12px; line-height:1.5; }
.coffee-compact .scenario .scenario-controls input { min-height:44px; padding:7px 8px; font-size:16px; }
.coffee-compact .scenario .scenario-controls .note { font-size:11px; line-height:1.5; }
.coffee-compact .scenario .scenario-edit-controls { margin:12px 0; }
.coffee-compact .scenario .scenario-edit-controls > summary { min-height:44px; padding:10px 0; }
.coffee-compact .scenario .scenario-line { padding:12px 0; }
.coffee-compact .scenario .scenario-line h4 { margin-bottom:8px; }
.coffee-compact .scenario .scenario-line-fields { gap:10px; }
.coffee-compact .scenario .scenario-line input { font-size:16px; }
.coffee-compact .scenario .scenario-tools { gap:8px; margin:12px 0; }
.coffee-compact .scenario .scenario-tools button { min-height:44px; padding:8px 12px; font-size:12px; }
.coffee-compact .scenario .ledger { margin:12px 0; }
.coffee-compact .scenario .ledger summary { min-height:52px; padding:11px 0; }
.coffee-compact .scenario .ledger .section-title,
.coffee-compact .scenario .ledger summary .amount { font-size:13px; }
.coffee-compact .budget-visual { margin:16px 0; }
.coffee-compact .budget-visual .bv-caption { margin-bottom:10px; }
.coffee-compact .budget-visual .bv-title { margin-bottom:4px; font-size:19px; }
.coffee-compact .budget-visual .bv-note,
.coffee-compact .budget-visual .bv-scale-note,
.coffee-compact .budget-visual .bv-interaction-note { margin-top:5px; font-size:11px; line-height:1.55; }
.coffee-compact .budget-visual .bv-row-heading { flex-wrap:nowrap; gap:6px 10px; }
.coffee-compact .budget-visual .bv-row-name,
.coffee-compact .budget-visual .bv-stage-name { font-size:12px; line-height:1.5; }
.coffee-compact .budget-visual .bv-money { font-size:13px; }
.coffee-compact .budget-visual .bv-cost-row { min-height:58px; padding:9px 7px; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--text); }
.coffee-compact .budget-visual .bv-cost-row .bv-row-name { flex:1 1 auto; }
.coffee-compact .budget-visual .bv-cost-row .bv-track { height:7px; margin-top:6px; }
.coffee-compact .budget-visual .bv-share { margin-top:3px; line-height:1.25; }
.coffee-compact .budget-visual .bv-stage-list { gap:6px; }
.coffee-compact .budget-visual .bv-stage { min-height:70px; padding:8px 10px; }
.coffee-compact .budget-visual .bv-stage-name { flex:1 1 auto; }
.coffee-compact .budget-visual .bv-cash-track { height:12px; margin-top:6px; }
.coffee-compact .budget-visual .bv-cash-track .bv-fill { top:2px; height:8px; }
.coffee-compact .budget-visual .bv-peak-marker { top:-2px; height:16px; }
.coffee-compact .budget-visual .bv-stage-peak { margin-top:4px; font-size:10px; line-height:1.4; }
.coffee-compact .budget-visual .bv-legend { gap:6px 14px; margin:9px 0; font-size:11px; }
.coffee-compact .budget-visual .bv-stage-panel { margin-top:12px; padding:12px; }
.coffee-compact .budget-visual .bv-stage-title { margin-bottom:8px; font-size:14px; }
.coffee-compact .budget-visual .bv-cash-values { gap:8px 12px; }
.coffee-compact .budget-visual .bv-cash-values dt { font-size:11px; }
.coffee-compact .budget-visual .bv-cash-values dd { margin-top:2px; font-size:12px; }
.coffee-compact .budget-visual .bv-bar-row { margin:12px 0; }
.coffee-compact .budget-visual .bv-equation { margin-top:12px; font-size:14px; }
.coffee-compact .budget-visual .bv-separate { margin:12px 0 8px; padding:10px 0; }
.coffee-compact .budget-visual .bv-points-equation { margin:12px 0; font-size:12px; }
.coffee-compact .budget-visual .bv-points-equation > strong { font-size:16px; }
.coffee-compact .reading-funding { margin:14px 0; gap:12px; }
.coffee-compact .reading-funding article { padding-top:10px; }
.coffee-compact .reading-funding h3 { margin-bottom:8px; }
.coffee-compact .reading-deliverables { margin:14px 0; }
.coffee-compact .reading-deliverables summary { min-height:60px; gap:12px; }
.coffee-compact .reading-resources { margin:14px 0; }
.coffee-compact .reading-resource-head,
.coffee-compact .reading-resource-row { padding:8px 0; gap:12px; }
.coffee-compact .page-footer { margin-top:24px; padding-top:16px; }
@media (hover:hover) {
  .coffee-compact .day-stepper button:not(:disabled):hover { border-color:var(--ink); background:var(--tint); }
  .coffee-compact .budget-actions a:hover { border-color:var(--ink); background:var(--tint); }
  .coffee-compact .budget-actions a:first-child:hover { background:#2b3b5b; color:var(--paper); }
  .coffee-compact .section-fold > summary:hover { background:var(--tint); }
  .coffee-compact .budget-visual .bv-cost-row:hover { background:var(--tint); }
}
@media (max-width:960px) {
  .coffee-compact .layout { gap:14px; padding-top:14px; }
  .coffee-compact .sidebar { padding-bottom:6px; }
  .coffee-compact .budget-controls { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 14px; }
  .coffee-compact .budget-controls .tier-control { grid-column:1 / -1; }
}
@media (max-width:600px) {
  .coffee-compact .site-header { padding-block:4px; }
  .coffee-compact .site-header .brand { font-size:17px; }
  .coffee-compact .layout { padding:12px 16px 36px; gap:12px; }
  .coffee-compact .sidebar nav { padding:0; }
  .coffee-compact .sidebar a { font-size:12px; padding:7px 9px; }
  .coffee-compact .hero { padding-bottom:12px; }
  .coffee-compact .hero h1 { font-size:27px; }
  .coffee-compact .hero .lead { font-size:12px; }
  .coffee-compact .budget-controls { margin-top:12px; gap:8px 12px; }
  .coffee-compact .duration-choice { grid-template-columns:1fr; gap:3px; }
  .coffee-compact .duration-choice label { display:flex; align-items:baseline; gap:6px; }
  .coffee-compact .duration-choice label small { display:inline; }
  .coffee-compact .duration-choice p { font-size:10px; }
  .coffee-compact .budget-controls .cbc-option { align-self:center; padding:8px; gap:7px; }
  .coffee-compact .budget-controls .cbc-option small { font-size:10px; }
  .coffee-compact .budget-topnote { margin-top:7px; margin-bottom:8px; }
  .coffee-compact .budget-topnote p { font-size:11px; }
  .coffee-compact .decision-summary { gap:6px; margin:10px 0; }
  .coffee-compact .decision-summary .metric { padding:10px 8px 9px; }
  .coffee-compact .decision-summary .metric .label { min-height:34px; font-size:12px; }
  .coffee-compact .decision-summary .metric .value { font-size:22px; }
  .coffee-compact .decision-summary .metric .sub { font-size:11px; }
  .coffee-compact .budget-actions { margin:8px 0 14px; }
  .coffee-compact .budget-actions a { flex:1; padding-inline:10px; }
  .coffee-compact .section > h2 { font-size:20px; }
  .coffee-compact .section-fold > summary h2 { font-size:18px; }
  .coffee-compact .compact-compare .reading-upgrades { gap:10px; }
  .coffee-compact .compact-compare .reading-upgrades h3 { font-size:15px; }
  .coffee-compact .compact-compare .reading-upgrades article > strong { font-size:14px; }
  .coffee-compact .compact-compare .reading-upgrades p { display:grid; gap:2px; font-size:12px; }
  .coffee-compact .compact-compare .reading-upgrades small { font-size:11px; }
  .coffee-compact .scenario { padding:12px 10px; }
  .coffee-compact .scenario .scenario-controls { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 10px; }
  .coffee-compact .scenario .scenario-line-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .coffee-compact .scenario .scenario-live-totals { gap:6px 10px; padding:8px; }
  .coffee-compact .scenario .scenario-live-totals strong { font-size:14px; }
  .coffee-compact .scenario .scenario-live-totals .label { font-size:11px; }
  .coffee-compact .scenario .ledger .section-title { font-size:12px; }
  .coffee-compact .scenario .ledger summary .amount { font-size:12px; }
  .coffee-compact .budget-visual .bv-cost-row { padding:9px 4px; }
  .coffee-compact .budget-visual .bv-stage { padding:8px; }
  .coffee-compact .budget-visual .bv-stage .bv-row-heading { gap:6px; }
  .coffee-compact .budget-visual .bv-stage .bv-stage-name { font-size:11px; }
  .coffee-compact .budget-visual .bv-stage .bv-money { font-size:12px; }
  .coffee-compact .budget-visual .bv-cash-values { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
}
@media (prefers-reduced-motion:reduce) {
  .coffee-compact *, .coffee-compact *::before, .coffee-compact *::after { transition:none !important; animation:none !important; scroll-behavior:auto !important; }
}
@media print {
  .coffee-compact .budget-actions,
  .coffee-compact .day-stepper button { display:none; }
  .coffee-compact .day-stepper input { border:0; width:36px; }
  .coffee-compact .budget-controls { display:flex; flex-wrap:wrap; margin:8px 0; }
  .coffee-compact .section-fold { break-inside:auto; }
  .coffee-compact .section-fold > summary { break-after:avoid; }
  .coffee-compact .section-fold > summary::after { display:none; }
  .coffee-compact .scenario .scenario-live-totals { position:static; }
}
