/* mkprj.io. Colours, spacing, radii, type and motion come from tokens.css (a verbatim copy of
   server/static/css/tokens.css); the few marketing-only sizes are declared once below, in the
   tokens layer, and built from the product's own steps. Mock product UI reuses the app's class
   names (strip, bay, toast, sv, av, pill, kbd) so it reads like the real thing. No modifier
   classes: state is in data-* attributes. */
@layer tokens, base, layout, components, utilities;

@layer tokens {
  :root {
    /* Display sizes the app never needs: the hero headline and section headings. */
    --fs-display: clamp(calc(var(--fs-title-page) + var(--space-1)), 2.2rem + 2vw, calc(var(--fs-title-page) * 2));
    --lh-display: 1.06;
    --fs-heading: clamp(calc(var(--fs-title-view) + var(--space-1)), 1.2rem + 1.1vw, calc(var(--fs-title-page) + var(--space-2)));
    --lh-heading: 1.15;
    --fs-lede: calc(var(--fs-prose) + var(--space-0));
    --lh-lede: calc(var(--lh-prose) + var(--space-1));
    --fs-price: calc(var(--fs-title-page) * 2);
    /* Page width and section rhythm. */
    --site-max: calc(var(--space-12) * 25);
    --gutter: var(--space-4);
    --sec-pad: calc(var(--space-12) * 2);
  }
  @media (min-width: 760px) { :root { --gutter: var(--space-8); } }
  @media (max-width: 759px) { :root { --sec-pad: calc(var(--space-12) + var(--space-6)); } }
}

@layer base {
  *, *::before, *::after { box-sizing: border-box; min-width: 0; }
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + var(--space-4)); }
  body {
    margin: 0;
    background: var(--surface-base);
    color: var(--text-primary);
    font: var(--fs-prose)/var(--lh-prose) var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3 { margin: 0; text-wrap: balance; }
  p { margin: 0; }
  ul, ol, dl, dd, figure { margin: 0; padding: 0; }
  a { color: inherit; }
  code { font-family: var(--font-mono); font-size: 0.9em; }
  :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-sm); }
  ::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }
  table { border-collapse: collapse; }
  button, input, select, textarea { font: inherit; color: inherit; }
  fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
  legend { padding: 0; }
  [hidden] { display: none !important; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
  }
}

@layer layout {
  .wrap { max-width: var(--site-max); margin: 0 auto; padding: 0 var(--gutter); }

  .top { position: sticky; top: 0; z-index: var(--layer-sticky); background: var(--surface-base); border-bottom: 1px solid var(--border-default); }
  .top-in { display: flex; align-items: center; gap: var(--space-6); height: var(--topbar); }
  .top nav { margin-left: auto; }

  .hero { padding: var(--space-12) 0 var(--sec-pad); }
  .hero-in { display: grid; gap: var(--space-12); align-items: center; }
  @media (min-width: 1080px) {
    .hero { padding-top: calc(var(--space-12) + var(--space-8)); }
    .hero-in { grid-template-columns: minmax(0, 9fr) minmax(0, 14fr); gap: var(--space-12); }
  }

  .sub-hero { padding: var(--space-12) 0 var(--sec-pad); }
  @media (min-width: 1080px) { .sub-hero { padding-top: calc(var(--space-12) + var(--space-8)); } }

  .sec { padding: var(--sec-pad) 0; }
  .alt { background: var(--surface-raised); border-block: 1px solid var(--border-default); }
  .split { display: grid; gap: var(--space-12); align-items: center; }
  @media (min-width: 1000px) {
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(var(--space-12) + var(--space-6)); }
    .split.rev > :first-child { order: 1; }
  }

  .close { padding: var(--sec-pad) 0; }
  .foot { border-top: 1px solid var(--border-default); padding: var(--space-8) 0; }
}

@layer components {
  /* Brand */
  .brand { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; font-size: var(--fs-title-view); letter-spacing: -0.01em; text-decoration: none; }
  .ring { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--line, var(--accent)); flex: none; }
  .brand .ring { width: 16px; height: 16px; border-width: 4px; }

  /* Navigation */
  .nav { list-style: none; display: flex; gap: var(--space-1); }
  .nav a { display: inline-flex; align-items: center; min-height: var(--control-md); padding: 0 var(--space-2); border-radius: var(--radius-md); font-size: var(--fs-ui); font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
  .nav a:hover { color: var(--text-primary); background: var(--surface-control); }
  .nav a[aria-current=page] { color: var(--text-primary); background: var(--surface-control); }
  /* Phones: the nav drops to its own row under the brand and the trial button, so every page
     stays one tap away without JavaScript. */
  @media (max-width: 859px) {
    .top { position: static; }
    .top-in { flex-wrap: wrap; height: auto; row-gap: 0; padding-top: var(--space-2); }
    .top-in > .btn { margin-left: auto; }
    .top nav { order: 3; width: calc(100% + var(--space-4)); margin: 0 calc(-1 * var(--space-2)); }
    .top .nav { flex-wrap: wrap; gap: 0; }
  }

  .skip { position: absolute; left: var(--space-2); top: var(--space-2); z-index: var(--layer-toast); padding: var(--space-2) var(--space-3); background: var(--accent); color: var(--on-accent); font-weight: 600; border-radius: var(--radius-md); transform: translateY(calc(-100% - var(--space-4))); }
  .skip:focus { transform: none; }

  /* Buttons (the app's .btn, plus a large size for calls to action) */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--control-md); padding: 0 var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--border-default); background: var(--surface-control); color: var(--text-primary); font: 500 var(--fs-ui)/1 var(--font-sans); white-space: nowrap; text-decoration: none; cursor: pointer; transition: border-color var(--t-fast) var(--ease), filter var(--t-fast) var(--ease); }
  .btn:hover { border-color: var(--border-strong); }
  .btn:active { transform: translateY(1px); }
  .btn[data-variant=primary] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
  .btn[data-variant=primary]:hover { filter: brightness(1.06); }
  .btn[data-size=lg] { height: var(--control-lg); padding: 0 var(--space-6); font-size: var(--fs-prose); border-radius: var(--radius-md); }
  .btn[data-size=sm] { height: var(--control-sm); padding: 0 var(--space-2); font-size: var(--fs-meta); }
  .btn:focus-visible { outline-offset: 2px; }

  /* Type */
  .eyebrow { font: 500 var(--fs-label)/var(--lh-label) var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: var(--space-3); }
  h1 { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: -0.025em; font-weight: 700; }
  h2 { font-size: var(--fs-heading); line-height: var(--lh-heading); letter-spacing: -0.018em; font-weight: 700; }
  h3 { font-size: var(--fs-prose); line-height: var(--lh-ui); font-weight: 600; }
  .lede { font-size: var(--fs-lede); line-height: var(--lh-lede); color: var(--text-secondary); margin-top: var(--space-4); max-width: 38em; }
  .lede.narrow { max-width: 34em; }
  .hero .lede { margin-top: var(--space-6); }
  .fine { font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--text-muted); margin-top: var(--space-3); }
  .mut { color: var(--text-muted); }
  .cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

  /* Pains: someone's frustration in a filled quote with a red edge, then a lighter, unfilled
     answer under it. Feature blocks never use this shape. */
  .pains { list-style: none; display: grid; gap: var(--space-6); margin-top: var(--space-8); }
  @media (min-width: 900px) { .pains { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .pains[data-one] { grid-template-columns: minmax(0, 1fr); max-width: 44em; }
  @media (min-width: 760px) { .pains[data-two] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: calc(44em * 1.6); } }
  .pains > li { display: flex; flex-direction: column; }
  .pains-sec { padding-top: 0; }
  .pain { margin: 0; flex: 1; position: relative; padding: var(--space-6) var(--space-6) var(--space-6) calc(var(--space-6) + var(--space-1)); background: var(--surface-raised); border: 1px solid var(--border-default); border-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
  .pain::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--space-1); background: var(--status-blocked); }
  .pain p { font-size: var(--fs-title-view); line-height: var(--lh-title-view); font-weight: 600; font-style: italic; color: var(--text-primary); }
  .fix { padding: var(--space-4) var(--space-6) var(--space-4) calc(var(--space-6) + var(--space-1)); border: 1px dashed var(--border-strong); border-radius: 0 0 var(--radius-lg) var(--radius-lg); font-size: var(--fs-ui); line-height: var(--lh-prose); color: var(--text-secondary); }
  .fix-k { display: block; margin-bottom: var(--space-1); font: 500 var(--fs-label)/var(--lh-label) var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); }
  .fix-k::after { content: " →"; }

  /* Outcome topics on the home page: a small picture, one promise, a link to its own page */
  .topics { list-style: none; display: grid; gap: var(--space-12) var(--space-8); margin-top: var(--space-8); }
  @media (min-width: 860px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .topic { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--fs-ui); line-height: var(--lh-prose); color: var(--text-secondary); }
  .topic h3 { color: var(--text-primary); font-size: var(--fs-title-view); line-height: var(--lh-title-view); margin-top: var(--space-4); }
  .tvis { display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); min-height: calc(var(--space-12) * 4); padding: var(--space-4); background: var(--surface-base); }
  .tvis .toast { max-width: none; box-shadow: none; }
  .tvis .hist { padding: 0; }
  .tvis .hd { display: block; }
  .more { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--control-md); margin-top: var(--space-1); font-weight: 600; color: var(--accent-ink); text-decoration: none; }
  .more:hover { text-decoration: underline; text-underline-offset: var(--space-1); }
  .kinds { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .kind { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--control-md); padding-right: var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: var(--surface-raised); font-weight: 500; }
  .kind .h { display: grid; place-items: center; align-self: stretch; width: var(--space-8); font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.02em; color: var(--holder-ink); background: var(--type-task); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
  .kind[data-type=bug] .h { background: var(--type-bug); }
  .kind[data-type=incident] .h { background: var(--type-incident); }
  .mini-props { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-raised); }
  .mini-props dt { color: var(--text-muted); }
  .saved { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-raised); }
  .keyrow { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); color: var(--text-secondary); }
  .keyrow > span { display: inline-flex; align-items: center; gap: var(--space-2); }

  /* Sub-pages: breadcrumb, in-page contents, numbered example steps, the technical section */
  .crumbs { font-size: var(--fs-ui); color: var(--text-muted); margin-bottom: var(--space-4); }
  .crumbs a { color: var(--text-secondary); }
  .toc { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-8); font-size: var(--fs-ui); }
  .toc a { display: inline-flex; align-items: center; min-height: var(--control-md); padding: 0 var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-md); color: var(--text-secondary); text-decoration: none; }
  .toc a:hover { color: var(--text-primary); border-color: var(--border-strong); }
  .steps { list-style: none; display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-8); font-size: var(--fs-ui); line-height: var(--lh-prose); color: var(--text-secondary); counter-reset: step; }
  .steps > li { counter-increment: step; position: relative; padding-left: calc(var(--space-8) + var(--space-3)); }
  .steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: var(--space-8); height: var(--space-8); display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; font: 500 var(--fs-ui)/1 var(--font-mono); color: var(--text-primary); }
  .steps b { display: block; margin-bottom: var(--space-0); font-size: var(--fs-prose); font-weight: 600; color: var(--text-primary); }
  .sec-head { max-width: 44em; }
  .deep-note { max-width: 44em; margin-top: var(--space-4); font-size: var(--fs-ui); line-height: var(--lh-prose); color: var(--text-secondary); }
  .defs { display: grid; gap: var(--space-6); margin-top: var(--space-8); }
  @media (min-width: 760px) { .defs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-8); } }
  .defs > div { display: flex; flex-direction: column; gap: var(--space-1); padding-top: var(--space-4); border-top: 1px solid var(--border-default); font-size: var(--fs-ui); line-height: var(--lh-prose); color: var(--text-secondary); }
  .defs h3 { color: var(--text-primary); }
  .defs code, .deep-note code, .steps code, .ticks code { color: var(--text-primary); overflow-wrap: anywhere; }

  /* Lists: ticks for how things work, road for what's coming */
  .tag { display: inline-block; font: 500 10px/var(--lh-micro) var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0 var(--space-1); vertical-align: 1px; }

  .ticks { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-8); font-size: var(--fs-ui); line-height: var(--lh-prose); color: var(--text-secondary); }
  .ticks { max-width: 48em; }
  .ticks li { position: relative; padding-left: var(--space-6); }
  .ticks li::before { content: ""; position: absolute; left: var(--space-1); top: calc(var(--lh-prose) / 2 - 4px); width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--text-muted); }
  .ticks b { color: var(--text-primary); font-weight: 600; }

  .road { list-style: none; display: grid; gap: var(--space-6) var(--space-8); margin-top: var(--space-8); }
  @media (min-width: 640px) { .road { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1000px) { .road { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .road li { display: flex; flex-direction: column; gap: var(--space-1); padding-top: var(--space-4); border-top: 1px dashed var(--border-strong); font-size: var(--fs-ui); line-height: var(--lh-prose); color: var(--text-secondary); }
  .road h3 { color: var(--text-primary); }
  .road code { color: var(--text-primary); }

  /* Keys */
  .keys { margin-top: var(--space-12); }
  .keys h3 { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--text-muted); font-weight: 600; margin-bottom: var(--space-3); }
  .keys dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--border-default); }
  .keys dl > div { display: flex; align-items: center; gap: var(--space-3); min-height: var(--row-standard); padding: var(--space-1) 0; border-bottom: 1px solid var(--border-default); font-size: var(--fs-ui); }
  .keys dt { flex: none; width: 88px; display: flex; gap: var(--space-1); }
  .keys dd { color: var(--text-secondary); }
  .kbd { display: inline-block; font: 400 var(--fs-key)/var(--lh-key) var(--font-mono); border: 1px solid var(--border-default); border-bottom-color: var(--border-strong); border-radius: var(--radius-sm); padding: 0 var(--space-1); color: var(--text-secondary); background: var(--surface-control); white-space: nowrap; }

  /* Pricing */
  .price-grid { display: grid; gap: var(--space-12); margin-top: var(--space-8); }
  @media (min-width: 1000px) { .price-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(var(--space-12) + var(--space-6)); } }
  .price-main { font-size: var(--fs-ui); line-height: var(--lh-prose); color: var(--text-secondary); display: flex; flex-direction: column; gap: var(--space-3); }
  .price-main .cta { margin-top: var(--space-4); }
  .price-main .fine { margin-top: 0; }
  .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-1) var(--space-3); color: var(--text-primary); }
  .amt { font-size: var(--fs-price); line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .per { font-size: var(--fs-ui); color: var(--text-secondary); max-width: 14em; line-height: var(--lh-ui); }
  .tiers { width: 100%; font-size: var(--fs-ui); margin-top: var(--space-2); }
  .tiers th { text-align: left; font-size: var(--fs-label); font-weight: 600; color: var(--text-muted); padding: 0 0 var(--space-2); border-bottom: 1px solid var(--border-default); }
  .tiers td { height: var(--row-standard); border-bottom: 1px solid var(--border-default); color: var(--text-primary); }
  .tiers .num { text-align: right; font-family: var(--font-mono); }
  .tiers th.num { font-family: var(--font-sans); }
  .tiers[data-mirror=brackets] tbody tr:first-child td { font-weight: 600; }
  .tiers th { white-space: nowrap; }
  .price-notes { display: grid; gap: var(--space-8); align-content: start; }
  @media (min-width: 640px) { .price-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .price-notes > div { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--fs-ui); line-height: var(--lh-prose); color: var(--text-secondary); padding-top: var(--space-4); border-top: 1px solid var(--border-strong); }
  .price-notes h3 { color: var(--text-primary); }

  /* Closing call to action */
  .close-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-4); }
  .close-in p { color: var(--text-secondary); font-size: var(--fs-lede); line-height: var(--lh-lede); }
  .close-in .btn { margin-top: var(--space-4); }

  /* Footer */
  .foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); font-size: var(--fs-ui); }
  .foot .brand { font-size: var(--fs-prose); }
  .foot nav { margin-left: auto; }
  @media (max-width: 759px) { .foot nav { margin-left: 0; width: 100%; } .foot .nav { flex-wrap: wrap; margin-left: calc(-1 * var(--space-2)); } }

  /* Forms: the app's .fm/.fld column of labelled fields (server/static/css/components/form.css).
     State: [data-invalid] on .fld, aria-invalid on the control. */
  .fm { display: flex; flex-direction: column; gap: var(--space-4); }
  .fm > .btn { height: var(--control-lg); font-size: var(--fs-prose); align-self: flex-start; padding: 0 var(--space-6); }
  .fld { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--fs-ui); }
  .fld label { font-weight: 600; color: var(--text-primary); }
  .fld label .opt { font-weight: 400; color: var(--text-secondary); }
  .fld :is(input, select, textarea) { width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface-base); font-size: var(--fs-prose); transition: border-color var(--t-fast) var(--ease); }
  .fld :is(input, select) { height: var(--control-lg); padding: 0 var(--space-3); }
  .fld textarea { padding: var(--space-2) var(--space-3); line-height: var(--lh-prose); resize: vertical; }
  .fld :is(input, select, textarea):hover { border-color: var(--text-muted); }
  .fld :is(input, select, textarea):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--focus-ring); }
  .fld[data-invalid] :is(input, select, textarea), .fld [aria-invalid=true] { border-color: var(--status-blocked); }
  .fhint, .ferr { font-size: var(--fs-meta); line-height: var(--lh-meta); }
  .fhint { color: var(--text-secondary); }
  .fhint a { color: var(--accent-ink); }
  .ferr { color: var(--status-blocked); font-weight: 500; }
  .fld-pair { display: grid; gap: var(--space-4); }
  @media (min-width: 600px) { .fld-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .nojs-note { margin-top: var(--space-6); padding: var(--space-3) var(--space-4); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); font-size: var(--fs-ui); color: var(--text-secondary); max-width: 44em; }
  .nojs-note a { color: var(--accent-ink); }

  /* Home page calculator: one number in, the monthly total out; the bracket rows it uses light up. */
  .calc-mini { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-4) var(--space-6); padding: var(--space-4); background: var(--surface-base); border: 1px solid var(--border-default); border-radius: var(--radius-lg); }
  .calc-mini .fld { flex: 0 1 calc(var(--space-12) * 4); }
  .calc-mini output { display: flex; flex-direction: column; gap: var(--space-0); min-height: var(--control-lg); justify-content: flex-end; }
  .calc-total { font-size: var(--fs-title-page); line-height: var(--lh-title-page); font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
  .calc-total small { font-size: var(--fs-ui); font-weight: 500; letter-spacing: 0; color: var(--text-secondary); }
  .calc-sub, .calc-hint { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--text-secondary); }
  .tiers tr[data-used] td { background: color-mix(in srgb, var(--accent) 12%, transparent); }
  .tiers tr[data-used] td:first-child { box-shadow: inset var(--space-1) 0 0 var(--accent); padding-left: var(--space-3); }
  .tiers td:first-child { transition: padding var(--t-fast) var(--ease); }
  .yearly-line { color: var(--text-primary); }
  .yearly-line a { color: var(--accent-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
  .yearly-line a:hover { text-decoration: underline; text-underline-offset: var(--space-1); }

  /* Pricing page calculator: controls, the result, then the breakdown by bracket. */
  .calc { display: grid; gap: var(--space-6); margin-top: var(--space-8); }
  @media (min-width: 1000px) {
    .calc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8) calc(var(--space-12) + var(--space-2)); }
    .bk-wrap, .calc-cta { grid-column: 1 / -1; }
  }
  .calc-in { display: flex; flex-direction: column; gap: var(--space-6); }
  .calc-in .fld input { max-width: calc(var(--space-12) * 4); font-size: var(--fs-title-view); font-weight: 600; }
  .opts { display: flex; flex-direction: column; gap: var(--space-2); }
  .opts legend { margin-bottom: var(--space-2); font-size: var(--fs-ui); font-weight: 600; color: var(--text-primary); }
  .opt-row, .term { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-base); font-size: var(--fs-ui); line-height: var(--lh-ui); cursor: pointer; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
  .opt-row:hover, .term:hover { border-color: var(--border-strong); }
  .opt-row:has(:checked), .term:has(:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface-base)); }
  .opt-row:has(:focus-visible), .term:has(:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
  .opt-row input, .term input { margin: var(--space-0) 0 0; flex: none; width: var(--space-4); height: var(--space-4); accent-color: var(--accent); }
  .opt-row input:focus-visible, .term input:focus-visible { outline: none; }
  .opt-row small, .term small { display: block; margin-top: var(--space-0); font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--text-secondary); }
  .opt-row b, .term b { font-weight: 600; color: var(--text-primary); }
  .terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }

  .calc-res { align-self: start; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); background: var(--surface-base); border: 1px solid var(--border-default); border-radius: var(--radius-lg); }
  .calc-res .calc-total { font-size: calc(var(--fs-title-page) + var(--space-2)); line-height: 1.1; }
  .calc-dl { margin-top: var(--space-4); border-top: 1px solid var(--border-default); font-size: var(--fs-ui); line-height: var(--lh-ui); }
  .calc-dl > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--border-default); }
  .calc-dl dt { color: var(--text-secondary); }
  .calc-dl dd { color: var(--text-primary); font-weight: 500; }
  .calc-note { margin-top: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-left: var(--space-1) solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: var(--fs-ui); line-height: var(--lh-prose); color: var(--text-primary); }
  .calc-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }

  .bk-wrap { overflow-x: auto; }
  .bk { width: 100%; font-size: var(--fs-ui); }
  .bk caption { text-align: left; font-size: var(--fs-ui); font-weight: 600; color: var(--text-primary); padding-bottom: var(--space-2); }
  .bk :is(th, td) { height: var(--row-standard); padding: 0 var(--space-3); border-bottom: 1px solid var(--border-default); text-align: left; white-space: nowrap; }
  .bk :is(th, td):first-child { padding-left: 0; }
  .bk :is(th, td):last-child { padding-right: 0; }
  .bk thead th { font-size: var(--fs-label); font-weight: 600; color: var(--text-muted); }
  .bk tbody th, .bk tfoot th { font-weight: 500; color: var(--text-primary); }
  .bk .num { text-align: right; font-family: var(--font-mono); }
  .bk th.num { font-family: var(--font-sans); }
  @media (max-width: 599px) { .bk .rate { display: none; } .bk :is(th, td) { padding: 0 var(--space-2); } }
  .bk tfoot th, .bk tfoot td { color: var(--text-secondary); }
  .bk tfoot th { white-space: normal; padding-block: var(--space-2); }
  .bk tfoot tr[data-sub] > * { border-top: 1px solid var(--border-strong); color: var(--text-primary); }
  .bk tfoot tr[data-total] > * { font-weight: 700; color: var(--text-primary); border-bottom: 2px solid var(--border-strong); }

  /* Static price tables, in pairs */
  .price-tables { display: grid; gap: var(--space-8); margin-top: var(--space-12); }
  @media (min-width: 900px) { .price-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-12); } }
  .price-tables > div { display: flex; flex-direction: column; gap: var(--space-2); }
  .price-tables h3, .tbl-h { color: var(--text-primary); }
  .tbl-h { margin-top: var(--space-12); margin-bottom: var(--space-2); }
  .cell-note { display: block; padding-bottom: var(--space-2); font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--text-secondary); }
  .tiers td .tag, .bk .tag { margin-left: var(--space-1); }
  .tbl-scroll { overflow-x: auto; }
  .tbl-scroll:focus-visible { outline-offset: 4px; }
  .tiers.ex th[scope=row] { text-align: left; font-size: var(--fs-ui); font-weight: 600; color: var(--text-primary); height: var(--row-standard); border-bottom: 1px solid var(--border-default); font-family: var(--font-mono); padding: 0; }
  .tiers.ex :is(th, td) { white-space: nowrap; padding-left: var(--space-4); }
  .tiers.ex :is(th, td):first-child { padding-left: 0; }
  .tiers.inc :is(th, td) { padding-right: var(--space-4); }
  .tiers.inc td { padding-block: var(--space-2); height: auto; }
  .tiers.inc { min-width: calc(var(--space-12) * 12); max-width: calc(var(--space-12) * 18); }
  .sec-head + .tbl-scroll { margin-top: var(--space-8); }
  .tiers.ex { min-width: calc(var(--space-12) * 12); }

  /* Quote builder and contact form */
  .quote-grid { display: grid; gap: var(--space-8); margin-top: var(--space-8); align-items: start; }
  @media (min-width: 1000px) { .quote-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: calc(var(--space-12) + var(--space-6)); } }
  #contact .quote-grid { margin-top: 0; }
  .quote-form, .contact-form { padding: var(--space-6); background: var(--surface-base); border: 1px solid var(--border-default); border-radius: var(--radius-lg); }
  .quote-summary { padding: var(--space-3) var(--space-4); border-left: var(--space-1) solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: var(--fs-ui); line-height: var(--lh-prose); color: var(--text-secondary); }
  .quote-summary b { color: var(--text-primary); }
  .quote-what .ticks { margin-top: var(--space-4); }
  .quote-what h3 { color: var(--text-primary); }

  /* Questions: native disclosure, so it works without JavaScript and from the keyboard */
  .faq { margin-top: var(--space-8); max-width: 52em; border-top: 1px solid var(--border-default); }
  .faq details { border-bottom: 1px solid var(--border-default); }
  .faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--row-comfortable); padding: var(--space-3) 0; font-weight: 600; color: var(--text-primary); cursor: pointer; list-style: none; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; flex: none; width: var(--space-6); text-align: center; font: 500 var(--fs-title-view)/1 var(--font-mono); color: var(--text-muted); }
  .faq details[open] summary::after { content: "−"; }
  .faq summary:hover::after { color: var(--text-primary); }
  .faq details > p { max-width: 44em; padding-bottom: var(--space-4); font-size: var(--fs-ui); line-height: var(--lh-prose); color: var(--text-secondary); }
  .faq details > p + p { margin-top: calc(-1 * var(--space-2)); }
  .faq a { color: var(--accent-ink); }
  .faq .tag { margin-right: var(--space-1); }

  /* A placeholder only Chris can fill in. Visible on purpose; listed in site/README.md. */
  .tbd { padding: var(--space-2) var(--space-3); border: 1px dashed var(--status-progress); border-radius: var(--radius-md); font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--text-primary); }
  .faq details > p.tbd { padding-bottom: var(--space-2); margin-bottom: var(--space-4); }

  /* The quote page: a light sheet of paper in both themes, then a print stylesheet. */
  .quote-page { padding: var(--space-8) 0 var(--sec-pad); }
  .quote-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
  .copy-status { font-size: var(--fs-ui); color: var(--text-secondary); }
  .quote-note { padding: var(--space-3) var(--space-4); border: 1px solid var(--status-blocked); border-radius: var(--radius-md); font-size: var(--fs-ui); }
  .quote-note a { color: var(--accent-ink); }
  .quote-bad { max-width: 44em; padding: var(--space-8) 0; }
  .quote-bad a { color: var(--accent-ink); }
  .quote { max-width: calc(var(--space-12) * 18); display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-8); background: var(--surface-raised); color: var(--text-primary); border: 1px solid var(--border-default); border-radius: var(--radius-lg); font-size: var(--fs-ui); line-height: var(--lh-prose); }
  @media (max-width: 599px) { .quote { padding: var(--space-4); gap: var(--space-6); } }
  .quote h2 { font: 500 var(--fs-label)/var(--lh-label) var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: var(--space-2); }
  .q-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-6); padding-bottom: var(--space-6); border-bottom: 2px solid var(--text-primary); }
  .q-head > div:first-child { display: flex; flex-direction: column; gap: var(--space-1); max-width: 22em; }
  .q-from { color: var(--text-secondary); }
  .q-id h1 { font-size: var(--fs-title-page); line-height: var(--lh-title-page); margin-bottom: var(--space-2); }
  .q-dl { display: grid; gap: var(--space-1); }
  .q-dl > div { display: grid; grid-template-columns: calc(var(--space-12) * 2 + var(--space-4)) minmax(0, 1fr); gap: var(--space-3); }
  .q-dl dt { color: var(--text-muted); }
  .q-dl dd { color: var(--text-primary); overflow-wrap: anywhere; }
  .q-parties { display: grid; gap: var(--space-6); }
  @media (min-width: 700px) { .q-parties { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .q-co { font-weight: 600; font-size: var(--fs-prose); }
  .q-addr { white-space: pre-line; color: var(--text-secondary); }
  .q-parties p { overflow-wrap: anywhere; }
  .q-lines { width: 100%; }
  .q-lines :is(th, td) { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border-default); text-align: left; vertical-align: top; }
  .q-lines :is(th, td):first-child { padding-left: 0; }
  .q-lines :is(th, td):last-child { padding-right: 0; }
  .q-lines thead th { font-size: var(--fs-label); font-weight: 600; color: var(--text-muted); border-bottom-color: var(--border-strong); }
  .q-qty { display: none; }
  .q-lines td small { display: block; color: var(--text-secondary); font-size: var(--fs-meta); line-height: var(--lh-meta); }
  .q-lines .num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
  .q-lines th.num { font-family: var(--font-sans); }
  .q-lines tfoot th { font-weight: 500; color: var(--text-secondary); }
  .q-lines tfoot tr[data-sub] > * { border-top: 1px solid var(--border-strong); color: var(--text-primary); }
  .q-lines tfoot tr[data-total] > * { font-weight: 700; font-size: var(--fs-prose); color: var(--text-primary); border-top: 2px solid var(--text-primary); border-bottom: 2px solid var(--text-primary); }
  @media (max-width: 599px) {
    .q-lines .qx { display: none; }
    .q-lines .q-qty { display: inline; }
  }
  .q-due { font-size: var(--fs-prose); }
  .q-bump { padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-left: var(--space-1) solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: var(--fs-ui); line-height: var(--lh-prose); }
  .q-terms { display: grid; gap: var(--space-6); }
  @media (min-width: 700px) { .q-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .q-terms section { display: flex; flex-direction: column; gap: var(--space-2); color: var(--text-secondary); }
  .q-terms b { color: var(--text-primary); }
  .q-foot { padding-top: var(--space-4); border-top: 1px solid var(--border-default); font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--text-muted); }

  @media print {
    html { color-scheme: light; background: none; }
    body { background: none; }
    .top, .foot, .skip, .crumbs, .quote-bar { display: none !important; }
    .quote-page { padding: 0; }
    .quote-page > .wrap { max-width: none; padding: 0; }
    .quote { max-width: none; padding: 0; border: 0; border-radius: 0; background: none; gap: var(--space-6); }
    .q-lines tr, .q-terms section { break-inside: avoid; }
    .tbd { border-style: dashed; }
  }

  /* ---- Mock product UI. Pictures, not controls: nothing inside is focusable or clickable. ---- */
  .mock { position: relative; background: var(--surface-raised); border: 1px solid var(--border-default); border-radius: var(--radius-lg); font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--text-primary); cursor: default; user-select: none; }
  .mock .btn { cursor: default; }
  .ph { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-default); font-size: var(--fs-ui); }
  .ov { display: inline-flex; align-items: center; gap: var(--space-1); white-space: nowrap; color: var(--text-secondary); }
  .ov .ring { width: 10px; height: 10px; border-width: 2.5px; }

  /* Board mock */
  .mbar { display: flex; align-items: center; gap: var(--space-3); height: var(--topbar); padding: 0 var(--space-4); border-bottom: 1px solid var(--border-default); }
  .mbar b { font-size: var(--fs-ui); }
  .cmd { margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-6); height: var(--control-md); padding: 0 var(--space-2) 0 var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-base); color: var(--text-muted); font-size: var(--fs-meta); }
  .mb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); padding: var(--space-3) var(--space-3) calc(var(--space-12) * 2 + var(--space-2)); background: var(--surface-base); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .bay { background: var(--surface-raised); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: var(--space-1); display: flex; flex-direction: column; gap: var(--space-1); align-self: start; }
  .bayh { display: flex; align-items: baseline; gap: var(--space-1); padding: var(--space-1) var(--space-1) var(--space-0); font-weight: 600; font-size: var(--fs-label); }
  .bayh .cnt { font-weight: 400; color: var(--text-muted); }

  .strip { --strip-hold: 30px; position: relative; display: grid; grid-template-columns: var(--strip-hold) minmax(0, 1fr) 42px; min-height: 56px; background: var(--surface-base); border: 1px solid var(--border-default); border-radius: var(--radius-sm); }
  .strip[data-current] { border-color: var(--accent); }
  .strip .h { display: grid; place-items: center; color: var(--holder-ink); font-weight: 700; font-size: 9px; letter-spacing: 0.02em; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--type-task); }
  .strip[data-type=bug] .h { background: var(--type-bug); }
  .strip .m { padding: var(--space-1) var(--space-2); border-right: 1px solid var(--border-default); display: flex; flex-direction: column; gap: var(--space-0); }
  .strip .k { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-micro); line-height: var(--lh-micro); color: var(--text-muted); white-space: nowrap; }
  .strip .k .pts { margin-left: auto; font-family: var(--font-mono); }
  .strip .x { font-weight: 500; line-height: 1.25; font-size: var(--fs-meta); }
  .strip .wk { display: flex; align-items: center; gap: var(--space-1); font-size: var(--fs-micro); line-height: var(--lh-meta); color: var(--text-secondary); }
  .strip .wk .av { width: 16px; height: 16px; font-size: 7px; }
  .strip .who { overflow-wrap: anywhere; }
  .strip .l { display: grid; place-items: center; align-content: center; font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-muted); }
  .strip .l small { font-family: var(--font-sans); font-size: 9px; letter-spacing: 0.04em; }
  .strip .l[data-live] { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink); }
  .lb { position: absolute; left: var(--strip-hold); right: 0; bottom: 0; height: 2px; overflow: hidden; background: color-mix(in srgb, var(--accent) 18%, transparent); }
  .lb > i { display: block; height: 100%; background: var(--accent); transform-origin: left center; transform: scaleX(var(--f, 1)); }
  [data-rollback] { animation: rollback var(--t-flash) var(--ease) var(--t-slow) both; }
  @keyframes rollback { 0%, 30% { background: color-mix(in srgb, var(--status-blocked) 18%, var(--surface-base)); } }

  /* Toast (the app's critical notice) */
  .toast { background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-overlay); padding: var(--space-3); max-width: 300px; font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--text-secondary); }
  .toast b { display: block; margin-bottom: var(--space-0); font-size: var(--fs-ui); color: var(--text-primary); }
  .toast[data-critical] { border-color: var(--status-blocked); }
  .toast .ta { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
  .board-mock .toast { position: absolute; right: var(--space-4); bottom: var(--space-4); width: 300px; animation: toast-in var(--t-med) var(--ease) calc(var(--t-slow) * 2) both; }
  @keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

  /* Save mark */
  .sv { width: 14px; height: 14px; flex: none; display: inline-grid; place-items: center; vertical-align: -2px; }
  .sv svg { width: 14px; height: 14px; overflow: visible; }
  .sv .arc { fill: none; stroke-width: 2; opacity: 0.3; }
  .sv .ck, .sv .xx { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .sv[data-state=ok] .arc, .sv[data-state=ok] .ck { stroke: var(--status-done); }
  .sv[data-state=fail] .arc, .sv[data-state=fail] .xx { stroke: var(--status-blocked); }
  .board-mock .sv[data-state=fail] { animation: sv-nudge var(--t-slow) var(--ease) var(--t-slow) both; }
  @keyframes sv-nudge { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }

  /* Avatar: people are circles, agents rounded squares in actor-agent */
  .av { width: 20px; height: 20px; border: 1px solid var(--border-strong); display: inline-grid; place-items: center; font-family: var(--font-mono); font-size: 9px; line-height: 1; color: var(--text-secondary); border-radius: 50%; flex: none; vertical-align: middle; }
  .av[data-actor=agent] { border-radius: var(--radius-sm); color: var(--actor-agent); border-color: color-mix(in srgb, var(--actor-agent) 50%, var(--border-strong)); }

  /* Sub-page mocks: one column with a refused move, and two columns after a live move */
  .rule-mock { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-3); background: var(--surface-base); }
  .rule-mock .toast { max-width: none; box-shadow: none; }
  .rule-mock .bay { align-self: stretch; }
  .live-mock .mb { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: var(--space-3); border-radius: var(--radius-lg); }
  @media (max-width: 599px) { .live-mock .mb { grid-template-columns: minmax(0, 1fr); } }

  /* Item type settings mock */
  .panel-mock { padding-bottom: var(--space-4); }
  .props { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4) var(--space-4) 0; }
  .props dt { color: var(--text-muted); }
  .chip { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--space-2); border: 1px solid var(--border-default); border-radius: var(--radius-md); font-size: var(--fs-meta); background: var(--surface-control); }
  .flow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
  .flow i { font-style: normal; color: var(--text-muted); }
  .pill { display: inline-block; font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 600; border: 1px solid; border-radius: var(--radius-sm); padding: 0 var(--space-2); white-space: nowrap; color: var(--status-ready); }
  .pill[data-status=progress] { color: var(--status-progress); }
  .pill[data-status=done] { color: var(--status-done); }
  .plabel { margin: var(--space-6) var(--space-4) var(--space-2); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 600; color: var(--text-muted); }
  .ftab { width: calc(100% - var(--space-8)); margin: 0 var(--space-4); font-size: var(--fs-ui); }
  .ftab th { text-align: left; font-size: var(--fs-label); font-weight: 600; color: var(--text-muted); padding: 0 var(--space-2) var(--space-1) 0; border-bottom: 1px solid var(--border-default); }
  .ftab td { height: var(--row-standard); padding-right: var(--space-2); border-bottom: 1px solid var(--border-default); }
  .ftab td:last-child { color: var(--text-secondary); }
  .rule { display: flex; align-items: center; gap: var(--space-2); margin: 0 var(--space-4); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-base); }
  .rule .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-done); flex: none; }

  /* History mock */
  .hist { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4); }
  .hi { display: flex; flex-direction: column; gap: var(--space-1); padding-left: var(--space-3); border-left: 2px solid var(--border-default); }
  .hi:first-child { border-left-color: color-mix(in srgb, var(--actor-agent) 60%, var(--border-default)); }
  .hw .av { margin-right: var(--space-1); }
  .hw .tag { margin: 0 var(--space-1); }
  .hd { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-0) var(--space-3); font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--text-secondary); }
  .hd dt { color: var(--text-muted); }
  .hd del { color: var(--text-muted); }

  /* Code */
  .code-fig { display: flex; flex-direction: column; gap: var(--space-3); }
  .code-fig figcaption { font-size: var(--fs-ui); line-height: var(--lh-prose); color: var(--text-secondary); }
  .code-fig figcaption b { color: var(--text-primary); display: block; font-size: var(--fs-prose); }
  .code { margin: 0; padding: var(--space-4) var(--space-4); background: var(--surface-base); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow-x: auto; font: 400 var(--fs-ui)/var(--lh-prose) var(--font-mono); color: var(--text-primary); tab-size: 2; }
  .code code { font-size: inherit; }
  .code .kw { color: var(--text-primary); font-weight: 500; }
  .code .st { color: var(--text-secondary); }
  .code:focus-visible { outline-offset: 2px; }
  @media (max-width: 599px) { .code { padding: var(--space-3); font-size: var(--fs-meta); line-height: var(--lh-ui); white-space: pre-wrap; overflow-wrap: anywhere; } }

  /* Hero figure on narrower screens: fewer columns, the notice below the board. */
  @media (max-width: 1079px) and (min-width: 600px) { .hero-fig { max-width: 760px; } }
  @media (max-width: 599px) {
    .mbar .cmd > span:first-child { display: none; }
    .mbar .cmd { gap: 0; padding: 0 var(--space-1); }
    .mb { grid-template-columns: minmax(0, 1fr); padding-bottom: var(--space-3); }
    .bay[data-col=todo], .bay[data-col=done] { display: none; }
    .board-mock .toast { position: static; width: auto; max-width: none; margin: 0 var(--space-3) var(--space-3); box-shadow: none; }
  }
}

@layer utilities {
  .nw { white-space: nowrap; }
  .sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
