  /* ============================================================
     TOKENS — Blueprint / drafting-sheet system
     Light = pale drafting paper + ink-blue structure + rust CTA
     Dark  = drafting table at night, same roles inverted
     ============================================================ */
  :root {
    --bg: #EAEFEE;
    --bg-grid: #C9D2CE;
    --paper: #FFFFFF;
    --paper-alt: #F5F7F5;
    --ink: #16202B;
    --ink-soft: #4E5A62;
    --ink-faint: #8A9298;
    --line: #C7CFCB;
    --line-strong: #A9B3AE;
    --blue: #2F5D8A;
    --blue-ink: #1F4368;
    --blue-soft: #E4ECF3;
    --rust: #C4571F;
    --rust-ink: #9C441A;
    --rust-soft: #F7E5D7;
    --green: #3F7A54;
    --green-soft: #E1EEE3;
    --danger: #AA3B2C;
    --danger-soft: #F8E2DE;
    --shadow: 0 1px 2px rgba(22,32,43,.04), 0 8px 24px -12px rgba(22,32,43,.18);
    --radius: 3px;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #10151B;
      --bg-grid: #1C232B;
      --paper: #171E25;
      --paper-alt: #1D252C;
      --ink: #E9EDEE;
      --ink-soft: #AAB4BC;
      --ink-faint: #6E7981;
      --line: #2A333B;
      --line-strong: #3B454E;
      --blue: #7CACD8;
      --blue-ink: #BEDAF0;
      --blue-soft: #1E2C39;
      --rust: #E07E42;
      --rust-ink: #F3AA79;
      --rust-soft: #3A2718;
      --green: #74BE8B;
      --green-soft: #1D2E22;
      --danger: #E08476;
      --danger-soft: #3A211D;
      --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px -12px rgba(0,0,0,.55);
    }
  }
  :root[data-theme="dark"] {
    --bg: #10151B;
    --bg-grid: #1C232B;
    --paper: #171E25;
    --paper-alt: #1D252C;
    --ink: #E9EDEE;
    --ink-soft: #AAB4BC;
    --ink-faint: #6E7981;
    --line: #2A333B;
    --line-strong: #3B454E;
    --blue: #7CACD8;
    --blue-ink: #BEDAF0;
    --blue-soft: #1E2C39;
    --rust: #E07E42;
    --rust-ink: #F3AA79;
    --rust-soft: #3A2718;
    --green: #74BE8B;
    --green-soft: #1D2E22;
    --danger: #E08476;
    --danger-soft: #3A211D;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px -12px rgba(0,0,0,.55);
  }

  * { box-sizing: border-box; }
  html { color-scheme: light dark; height: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    /* Single-viewport app shell: the page itself never scrolls — only
       the .stage card scrolls internally, and only if one specific
       step's content genuinely can't fit (e.g. a long docket). Falls
       back to 100vh where 100dvh isn't supported. */
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  h1, h2, h3 { font-family: "Big Shoulders Display", "Arial Narrow", sans-serif; font-weight: 700; letter-spacing: .01em; text-wrap: balance; margin: 0; }
  .mono { font-family: "IBM Plex Mono", ui-monospace, "SF Mono", monospace; }
  a { color: inherit; }
  button { font-family: inherit; }
  ::selection { background: var(--blue-soft); }
  :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  }

  /* Shorter viewports (small laptops, landscape phones, browser
     toolbars eating into height) — trim the stage's own padding so
     more of it stays usable before its internal scroll kicks in. */
  @media (max-height: 700px) {
    .bx-page { padding-top: 12px; }
    .topbar { padding: 6px 4px 16px; }
    .stage { padding-top: 24px; padding-bottom: 28px; }
  }

  /* faint drafting grid */
  .grid-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
      repeating-linear-gradient(0deg, var(--bg-grid) 0 1px, transparent 1px 32px),
      repeating-linear-gradient(90deg, var(--bg-grid) 0 1px, transparent 1px 32px);
    opacity: .5;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 85%);
            mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 85%);
  }

  /* Position: fixed + inset: 0 rather than relying on flex:1 from an
     ancestor — when this markup is dropped into an Elementor Canvas page
     (or any other page builder), the shortcode/widget wrapper divs between
     <body> and this element are not themselves flex-sized to the viewport,
     which breaks a flex-inheritance approach silently (the browser just
     clips instead of showing the "no scroll" layout). Sizing directly off
     the viewport via inset:0 works regardless of what wraps it. Renamed
     from .page to .bx-page since WordPress itself adds a plain "page"
     class to <body> on any static Page — that collided with this selector
     and caused body to inherit these rules too. */
  .bx-page {
    position: fixed; inset: 0; z-index: 1; max-width: 720px; width: 100%; margin: 0 auto;
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px 28px; }
  .brand { font-family: "Big Shoulders Display", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .06em; }
  .brand span { color: var(--rust); }
  .reset-link {
    background: none; border: none; cursor: pointer;
    color: var(--ink-faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
    text-decoration: underline; text-underline-offset: 3px; padding: 4px;
  }
  .reset-link:hover { color: var(--ink-soft); }

  /* ============ stage card (the "drafting sheet") ============ */
  .stage {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px clamp(20px, 5vw, 56px) 44px;
    flex: 1;
    min-height: 0;
    display: flex; flex-direction: column;
    overflow-y: auto;
  }
  .stage::before, .stage::after,
  .stage .corner-br, .stage .corner-bl {
    content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  }
  .stage::before { top: -1px; left: -1px; border-top: 2px solid var(--blue); border-left: 2px solid var(--blue); }
  .stage::after { top: -1px; right: -1px; border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); }
  .corner-bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--blue); border-left: 2px solid var(--blue); }
  .corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--blue); border-right: 2px solid var(--blue); }

  .back-btn {
    align-self: flex-start; background: none; border: none; cursor: pointer; color: var(--ink-soft);
    font-size: 13px; letter-spacing: .04em; margin-bottom: 18px; padding: 4px 0; display: flex; align-items: center; gap: 4px;
  }
  .back-btn[hidden] { display: none; }
  .back-btn:hover { color: var(--blue); }

  /* ============ ruler progress ============ */
  .ruler { margin-bottom: 30px; }
  .ruler-track { position: relative; height: 2px; background: var(--line); border-radius: 2px; }
  .ruler-fill { position: absolute; inset: 0; width: 0%; background: var(--blue); border-radius: 2px; transition: width .4s ease; }
  .ruler-ticks { display: flex; justify-content: space-between; margin-top: -1px; }
  .ruler-ticks span { width: 2px; height: 7px; background: var(--line-strong); display: block; }
  .ruler-row { display: flex; justify-content: space-between; align-items: center; }
  .ruler-label { font-size: 11px; letter-spacing: .1em; color: var(--ink-faint); white-space: nowrap; margin-left: 14px; }

  /* ============ screens ============ */
  .screen { display: none; flex: 1; flex-direction: column; }
  .screen--active { display: flex; animation: rise .35s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

  .eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); margin-bottom: 10px; }
  .room-progress { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin: -4px 0 12px; min-height: 14px; }
  .h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.05; margin-bottom: 14px; }
  .h2 { font-size: clamp(22px, 4vw, 28px); line-height: 1.1; margin-bottom: 8px; }
  .lede { color: var(--ink-soft); font-size: 16px; line-height: 1.55; max-width: 46ch; margin-bottom: 26px; }
  .sub { color: var(--ink-soft); font-size: 14px; line-height: 1.5; margin-bottom: 22px; max-width: 50ch; }

  /* ---- landing ---- */
  .stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
  .stat-chip { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 11px; letter-spacing: .06em; color: var(--ink-soft); }
  .landing-spacer { flex: 1; }
  .fine-print { font-size: 12px; color: var(--ink-faint); margin-top: 10px; }

  /* ---- buttons ---- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
    font-size: 15px; font-weight: 600; padding: 14px 26px; transition: transform .12s ease, background .15s ease, border-color .15s ease;
  }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: var(--rust); color: #FFF7F2; }
  .btn-primary:hover { background: var(--rust-ink); }
  .btn-secondary { background: transparent; border-color: var(--line-strong); color: var(--ink); }
  .btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
  .btn-block { width: 100%; }
  .btn[disabled] { opacity: .45; cursor: not-allowed; }

  /* ---- option cards (single big choice: project type / scope) ---- */
  .option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  @media (max-width: 520px) { .option-grid { grid-template-columns: 1fr; } }
  .option-card {
    text-align: left; background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; position: relative;
    transition: border-color .15s ease, background .15s ease;
  }
  .option-card:hover { border-color: var(--blue); }
  .option-card[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
  .option-card svg { flex: none; width: 34px; height: 34px; color: var(--blue); margin-top: 2px; }
  .option-card.piece-card svg { width: 30px; height: 30px; }
  .option-card .ot { font-weight: 600; font-size: 14.5px; margin-bottom: 2px; display: block; }
  .option-card .od { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; display: block; }

  /* toggle (multi-select) variant of option-card, used for piece/room pickers */
  .option-card.toggle { padding-right: 46px; }
  .option-card.toggle .check {
    position: absolute; top: 16px; right: 16px; width: 18px; height: 18px;
    border: 1.5px solid var(--line-strong); border-radius: 4px; flex: none; background: var(--paper);
  }
  .option-card.toggle[aria-pressed="true"] .check { background: var(--blue); border-color: var(--blue); }
  .option-card.toggle[aria-pressed="true"] .check::after {
    content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 9px;
    border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg);
  }

  /* "Add More Cabinets" — rooms already in the quote: green + always
     checked (can't be unchecked, so existing pieces can't be dropped
     by mistake), tapping just queues it for another pass through the
     pieces step. Turns blue like a normal toggle once queued. */
  .option-card.already-in-quote { border-color: var(--green); background: var(--green-soft); }
  .option-card.already-in-quote .check { background: var(--green); border-color: var(--green); }
  .option-card.already-in-quote .check::after {
    content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 9px;
    border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg);
  }
  .option-card.already-in-quote[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
  .option-card.already-in-quote[aria-pressed="true"] .check { background: var(--blue); border-color: var(--blue); }
  .already-badge {
    display: inline-block; font-size: 9.5px; letter-spacing: .06em; color: var(--green);
    background: var(--green-soft); border: 1px solid var(--green); border-radius: 999px;
    padding: 2px 8px; margin-top: 5px; font-family: "IBM Plex Mono", monospace;
  }

  /* ---- chip choices (timeline / budget / areas) ---- */
  .chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
  .chip-card {
    background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 18px; cursor: pointer; text-align: left; min-width: 150px; flex: 1 1 150px;
    transition: border-color .15s ease, background .15s ease;
  }
  .chip-card:hover { border-color: var(--blue); }
  .chip-card[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
  .chip-card .ct { font-weight: 600; font-size: 14.5px; }
  .chip-card .cd { font-size: 12px; color: var(--ink-soft); margin-top: 2px; font-family: "IBM Plex Mono", monospace; }

  .step-actions { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; }
  .skip-link {
    display: inline-block; margin-top: 16px; background: none; border: none; cursor: pointer;
    color: var(--ink-faint); font-size: 12.5px; letter-spacing: .02em; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0;
    align-self: center;
  }
  .skip-link:hover { color: var(--blue); }

  /* ---- piece measurement cards (details step) ---- */
  .detail-list { display: flex; flex-direction: column; gap: 14px; }
  .detail-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-alt); padding: 16px; }
  .detail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
  .detail-head .dt { font-weight: 600; font-size: 14.5px; }
  .detail-head .dd { font-size: 10.5px; letter-spacing: .04em; color: var(--ink-faint); text-transform: uppercase; }
  .detail-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
  .field-inline { flex: 1 1 170px; min-width: 150px; }
  .field-inline label { display: block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
  .field-inline input {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: var(--paper); color: var(--ink); font-size: 14px; font-family: "IBM Plex Mono", monospace;
  }
  .field-inline input:focus { border-color: var(--blue); }
  .field-inline input.invalid { border-color: var(--danger); }
  .mm-hint { font-size: 11px; color: var(--ink-faint); margin-top: 5px; min-height: 14px; }
  .variant-row { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 200px; padding-top: 22px; }
  .variant-chip {
    border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 13px;
    font-size: 12px; cursor: pointer; color: var(--ink-soft);
  }
  .variant-chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--ink); }
  .variant-chip { display: inline-flex; align-items: center; }
  .variant-static { font-size: 12.5px; color: var(--ink-soft); padding-top: 24px; display: flex; align-items: center; }
  .ref-flag { font-size: 9.5px; letter-spacing: .04em; color: var(--green); margin-left: 5px; }

  /* material swatches — small visual cue next to each variant */
  .swatch { width: 14px; height: 14px; border-radius: 3px; flex: none; display: inline-block; margin-right: 7px; border: 1px solid var(--line-strong); }
  .sw-laminate { background: linear-gradient(135deg, #C79A6B, #A97C4F); }
  .sw-stone { background: linear-gradient(135deg, #EDEDE9, #CFCFC9); background-image: radial-gradient(circle at 30% 30%, #F5F5F1 0 1.5px, transparent 1.5px), radial-gradient(circle at 70% 60%, #DCDCD7 0 1.5px, transparent 1.5px), linear-gradient(135deg, #EDEDE9, #CFCFC9); background-size: 6px 6px, 6px 6px, cover; }
  .sw-led { background: radial-gradient(circle at 50% 35%, #FFE9AE, #C9922E 75%); }
  .sw-drawer { background: repeating-linear-gradient(0deg, #82633f 0 2px, transparent 2px 6px), #D9CBB5; }
  .sw-curve { border-radius: 3px 10px 3px 3px; background: linear-gradient(135deg, #BFD0DB, #7C9AAF); }
  .sw-fluted { background: repeating-linear-gradient(90deg, #8B9AA5 0 2px, #C3CDD3 2px 4px); }
  .sw-shelf { background: repeating-linear-gradient(0deg, #A9B3AE 0 2px, transparent 2px 5px), #E4E4E0; }
  .sw-groove { background: repeating-linear-gradient(90deg, #9AA6AC 0 1.5px, #D3D9DB 1.5px 5px); }

  /* file inputs (floor plan / reference design) */
  .file-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .file-btn {
    display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid var(--line-strong);
    border-radius: var(--radius); background: var(--paper-alt); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink);
  }
  .file-btn:hover { border-color: var(--blue); color: var(--blue); }
  .file-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .file-name { font-size: 11.5px; color: var(--ink-faint); }

  /* ---- calculating ---- */
  .calc-wrap { margin: auto 0; text-align: center; padding: 30px 0; }
  .calc-ring { width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--blue); animation: spin 1s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .calc-ring { animation: none; border-top-color: var(--line); } }
  .calc-status { font-size: 13px; color: var(--ink-soft); font-family: "IBM Plex Mono", monospace; min-height: 20px; }

  /* ---- results (gated) ---- */
  .estimate-card {
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-alt);
    padding: 26px 22px; text-align: center; margin-bottom: 24px; position: relative; overflow: hidden;
  }
  .estimate-figure { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: clamp(24px, 5vw, 32px); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
  .estimate-figure.blurred { filter: blur(7px); user-select: none; }
  .estimate-caption { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
  .lock-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
  .lock-overlay svg { width: 22px; height: 22px; color: var(--rust); }
  .lock-overlay span { font-size: 12px; color: var(--ink-soft); font-family: "IBM Plex Mono", monospace; }

  .field { margin-bottom: 14px; }
  .field label { display: block; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
  .field input {
    width: 100%; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: var(--paper); color: var(--ink); font-size: 15px; font-family: inherit;
  }
  .field input:focus { border-color: var(--blue); }
  .field .err { display: none; color: var(--danger); font-size: 12px; margin-top: 5px; }
  .field.invalid input { border-color: var(--danger); }
  .field.invalid .err { display: block; }
  .form-note { font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; }

  /* ---- unlocked ---- */
  .figure-big { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: clamp(30px, 6vw, 40px); font-variant-numeric: tabular-nums; color: var(--blue-ink); margin-bottom: 6px; }
  .recap-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
  .recap-chip { border: 1px dashed var(--line-strong); border-radius: 999px; padding: 5px 12px; font-size: 11.5px; color: var(--ink-soft); font-family: "IBM Plex Mono", monospace; }
  .budget-flag {
    border: 1px solid var(--rust); background: var(--rust-soft); border-radius: var(--radius);
    padding: 12px 14px; font-size: 12.5px; color: var(--ink); line-height: 1.5; margin-bottom: 22px;
  }
  .next-steps { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
  .next-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
  .next-steps li::before {
    counter-increment: step; content: counter(step);
    flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--blue);
    color: var(--blue); font-family: "IBM Plex Mono", monospace; font-size: 11px; display: flex; align-items: center; justify-content: center;
  }
  .cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
  .add-more-block { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line-strong); }
  .add-more-q { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 10px; }
  .site-visit-confirm { font-size: 12px; color: var(--green); margin-top: 10px; }
  .site-visit-confirm[hidden] { display: none; }

  /* ---- itemized docket (results screen) ---- */
  .docket { margin: 4px 0 28px; border-top: 1px solid var(--line); }
  .docket-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .di-name { font-weight: 600; font-size: 14px; color: var(--ink); }
  .di-spec { font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; }
  .di-side { flex: none; text-align: right; }
  .di-price { font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; color: var(--ink); }
  .link-btn { background: none; border: none; padding: 0; margin-top: 4px; font-family: inherit; font-size: 11.5px; color: var(--blue); text-decoration: underline; cursor: pointer; }
  .link-btn:hover { color: var(--blue-ink); }
  .docket-empty { padding: 16px 2px; color: var(--ink-faint); font-size: 13px; }
  .contact-recap {
    font-size: 12px; color: var(--ink-soft); margin-bottom: 20px; padding: 11px 13px;
    background: var(--paper-alt); border-radius: var(--radius); border: 1px solid var(--line);
  }
  .contact-recap strong { color: var(--ink); }

  /* ---- sticky running-estimate bar (pieces / measurements / areas steps) ---- */
  .quote-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    background: var(--paper); border-top: 1px solid var(--line-strong);
    box-shadow: 0 -8px 20px rgba(16,21,27,.08); padding: 12px 20px;
  }
  .quote-bar[hidden] { display: none; }
  .quote-bar-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
  .quote-bar-label { font-size: 10.5px; letter-spacing: .08em; color: var(--ink-faint); }
  .quote-bar-count { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
  .quote-bar-figure { font-size: 17px; font-weight: 600; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
  body.has-quotebar .bx-page { padding-bottom: 92px; }

  /* ---- modal ---- */
  .modal-overlay {
    position: fixed; inset: 0; background: rgba(16,21,27,.5); backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 20;
  }
  .modal-overlay[hidden] { display: none; }
  .modal {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    max-width: 400px; width: 100%; padding: 28px 26px; position: relative;
    animation: rise .3s ease both;
  }
  .modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; cursor: pointer; color: var(--ink-faint); font-size: 18px; line-height: 1; padding: 4px; }
  .modal-close:hover { color: var(--ink); }
  .modal .confirm { display: none; }
  .modal.is-confirmed .confirm { display: block; }
  .modal.is-confirmed .ask { display: none; }
  .resume-link { display: block; text-align: center; margin-top: 14px; background: none; border: none; cursor: pointer; color: var(--ink-faint); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
  .resume-link:hover { color: var(--blue); }

  /* ---- footer notes ---- */
  .notes { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
  .note-block {
    border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--paper-alt); padding: 4px 18px;
  }
  .note-block summary {
    cursor: pointer; padding: 14px 0; font-size: 13px; font-weight: 600; letter-spacing: .01em;
    list-style: none; display: flex; align-items: center; justify-content: space-between;
  }
  .note-block summary::-webkit-details-marker { display: none; }
  .note-block summary::after { content: "+"; font-family: "IBM Plex Mono", monospace; color: var(--ink-faint); font-size: 16px; }
  .note-block[open] summary::after { content: "–"; }
  .note-body { padding-bottom: 18px; font-size: 13px; color: var(--ink-soft); line-height: 1.65; }
  .note-body p { margin: 0 0 12px; }
  .tier-legend { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
  .tier-legend div { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; }
  .tier-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; }
  .dot-hot { background: var(--rust); }
  .dot-warm { background: var(--blue); }
  .dot-none { background: var(--ink-faint); }
  code.inline { background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; font-family: "IBM Plex Mono", monospace; font-size: 12px; }
  .rate-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 12px; }
  .rate-table th, .rate-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
  .rate-table th { color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; }
  .rate-table-wrap { overflow-x: auto; }
