/* VoxelBond: tokens, fonts and every component class in one file.
   Generated by tools/build.py: do not edit. Keep fonts/ beside this file. */

/* VoxelBond tokens. Generated from tokens.json by tools/build.py: do not edit. */
@font-face { font-family: "VoxelBond Display"; src: url("fonts/VoxelBondDisplay-Bold.ttf"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("fonts/WorkSans-Medium.ttf"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("fonts/WorkSans-Bold.ttf"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Regular.otf"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-It.otf"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Semibold.otf"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Bold.otf"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Code Pro"; src: url("fonts/SourceCodePro-Regular.ttf"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Code Pro"; src: url("fonts/SourceCodePro-Semibold.ttf"); font-weight: 600; font-style: normal; font-display: swap; }
:root, [data-theme="light"] {
  --background: #f6f1ef;
  --foreground: #303030;
  --card: #ffffff;
  --card-foreground: #303030;
  --popover: #ffffff;
  --popover-foreground: #303030;
  --primary: #303030;
  --primary-foreground: #f6f1ef;
  --secondary: #ede6e3;
  --secondary-foreground: #303030;
  --muted: #ede6e3;
  --muted-foreground: #606060;
  --accent: #ede6e3;
  --accent-foreground: #303030;
  --border: #303030;
  --input: #303030;
  --hairline: rgba(48, 48, 48, 0.18);
  --ring: #3a737d;
  --destructive: #b3202a;
  --brand: #64b985;
  --brand-hover: #52a974;
  --on-brand: #303030;
  --brand-soft: #e2f2e8;
  --brand-deep: #3a737d;
  --on-brand-deep: #f6f1ef;
  --coral: #f18a75;
  --on-coral: #303030;
  --coral-deep: #b8442c;
  --peach: #fcdbc3;
  --canvas: #ede6e3;
  --info: #3a737d;
  --info-soft: #e0edef;
  --warn: #8a5a00;
  --warn-soft: #f7e9c4;
  --danger: #b3202a;
  --danger-soft: #f8dcdf;
  --success: #2c7a4f;
  --success-soft: #e2f2e8;
  --fly-lead: #68c1bd;
  --fly-text: #167b78;
  --fly-accent: #ef7748;
  --fly-deep: #5c2c63;
  --fly-highlight: #dfdd19;
  --brain-lead: #ef85b0;
  --brain-text: #bb4179;
  --brain-accent: #eb5b44;
  --brain-second: #70c4c0;
  --brain-soft: #d8ece9;
  --shadow-panel: 0 1px 2px rgba(16, 24, 40, 0.06), 0 6px 20px rgba(16, 24, 40, 0.08);
}
[data-theme="dark"] {
  --background: #1d1c1c;
  --foreground: #f3eeec;
  --card: #282727;
  --card-foreground: #f3eeec;
  --popover: #282727;
  --popover-foreground: #f3eeec;
  --primary: #f3eeec;
  --primary-foreground: #1d1c1c;
  --secondary: #323030;
  --secondary-foreground: #f3eeec;
  --muted: #323030;
  --muted-foreground: #aeaaa8;
  --accent: #323030;
  --accent-foreground: #f3eeec;
  --border: #f3eeec;
  --input: #f3eeec;
  --hairline: rgba(243, 238, 236, 0.2);
  --ring: #8fc3cb;
  --destructive: #f0959b;
  --brand: #64b985;
  --brand-hover: #52a974;
  --on-brand: #1d1c1c;
  --brand-soft: #24372c;
  --brand-deep: #8fc3cb;
  --on-brand-deep: #1d1c1c;
  --coral: #f18a75;
  --on-coral: #1d1c1c;
  --coral-deep: #f6a995;
  --peach: #4b3628;
  --canvas: #323030;
  --info: #8fc3cb;
  --info-soft: #1f3236;
  --warn: #e0b25a;
  --warn-soft: #3a2d0c;
  --danger: #f0959b;
  --danger-soft: #40191d;
  --success: #86d0a4;
  --success-soft: #24372c;
  --fly-lead: #68c1bd;
  --fly-text: #68c1bd;
  --fly-accent: #ef7748;
  --fly-deep: #c9a3cf;
  --fly-highlight: #dfdd19;
  --brain-lead: #ef85b0;
  --brain-text: #ef85b0;
  --brain-accent: #eb5b44;
  --brain-second: #70c4c0;
  --brain-soft: #26383a;
  --shadow-panel: 0 1px 2px rgba(16, 24, 40, 0.06), 0 6px 20px rgba(16, 24, 40, 0.08);
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --notch: 5px;
  --pen-fine: 0.5px;
  --pen: 1px;
  --pen-heavy: 2px;
  --radius-none: 0px;
  --radius-full: 9999px;
  --font-display: "VoxelBond Display", "Work Sans", sans-serif;
  --font-work: "Work Sans", sans-serif;
  --font-sans: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ====================================================================
   VoxelBond: core styles (decided 13 Nov 2026, after review rounds 1 and 2)
   Everything reads its values from the tokens (CSS variables).
   ==================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }

/* ---------- status colours ----------
   Fixed for every product: they are computed once at the root, so a [data-product] scope
   cannot remap them. Inside a product, a status never takes that product's colours. */
:root {
  --status-tested: var(--brand); --status-on-tested: var(--on-brand);
  --status-working: var(--brand-deep); --status-demo: var(--coral-deep);
}

/* ---------- one stone ----------
   The scene ground, the hover ground and the quiet control fill are the same stone as --muted. */
:root { --canvas: var(--muted); --accent: var(--muted); --secondary: var(--muted); }

/* ---------- type ---------- */
.vb-display, .vb-h1, .vb-h2, .vb-h3, .vb-h4 { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--foreground); }
.vb-display { font-size: 60px; line-height: 60px; letter-spacing: -0.02em; }
.vb-h1 { font-size: 36px; line-height: 40px; letter-spacing: -0.01em; }
.vb-h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.01em; }
.vb-h3 { font-size: 24px; line-height: 32px; }
.vb-h4 { font-size: 20px; line-height: 28px; }
.vb-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--foreground); }
.vb-body { margin: 0; font-size: 16px; line-height: 1.6; color: var(--foreground); }
.vb-small { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.vb-caption { margin: 0; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.vb-eyebrow { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--foreground); }
.vb-ui { font-size: 14px; line-height: 20px; font-weight: 600; }
.vb-metric { font-size: 18px; line-height: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vb-data { font-family: var(--font-mono); font-size: 12px; line-height: 16px; }
.vb-micro { font-size: 10px; line-height: 15px; font-weight: 600; }
.vb-link { color: var(--brand-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.vb-link:hover, .vb-link.is-hover { text-decoration-thickness: 2px; }
.vb-link:focus-visible, .vb-link.is-focus { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ---------- the notch, and where a line is drawn ----------
   One square of --n is cut from the TOP-LEFT corner only; the other three corners are straight.
     --n     notch size (token notch, 3px; one size for everything)
     --w     line width (token pen, 1px; the only outline weight in the system)
     --fill  fill colour (white by default); --fill-image and --fill-size for a hatch
     --line  line colour; by default the fill itself, so NO line shows

   A surface has no line. A card, a tag, a picture are told apart from the page by their fill
   and by space, not by an outline. The 1px ink line is kept for:
     - what you type in or switch: field, checkbox, radio
     - the second button, and a card that is itself a link
     - the Working and Demo-ready stamps, and the coloured line of a notice
   Add .is-line to draw the ink line on any notched box that needs it.
   A box without a line still has a 1px border in its own fill colour, so both kinds are the same size;
   a container whose children fill it edge to edge in another colour sets --w: 0px.

   The clip cuts only the corner square and reaches past the other three edges, so it never
   shaves a straight line: an outline keeps one width on every side, at any zoom.
   The step of the notch is the inner edge of a small square of line colour in the corner; the clip
   removes exactly the notch from it, so nothing sticks out and nothing shows beside the line.

   A child that sits flush in the top-left corner (a picture, a title band, a first segment)
   takes .vb-notch-child. clip-path also clips box-shadow, outline and anything drawn outside. */
.vb-notch, .vb-card, .vb-field, .vb-stamp, .vb-tag, .vb-frame, .vb-seg, .vb-chip.is-box, .vb-chip.is-line {
  --n: var(--notch); --w: var(--pen); --fill: var(--card); --line: var(--fill);
  border: var(--w) solid var(--line);
  background:
    linear-gradient(var(--line), var(--line)) 0 0 / calc(var(--n) + var(--w)) calc(var(--n) + var(--w)) no-repeat border-box,
    var(--fill-image, none) 0 0 / var(--fill-size, auto),
    var(--fill);
  clip-path: polygon(var(--n) -1px, calc(100% + 1px) -1px, calc(100% + 1px) calc(100% + 1px), -1px calc(100% + 1px), -1px var(--n), var(--n) var(--n));
}
.vb-notch.is-line, .vb-card.is-line, .vb-field { --line: var(--border); }
.vb-notch-child, .vb-frame > :first-child, .vb-seg > :first-child {
  clip-path: polygon(var(--n, var(--notch)) -1px, calc(100% + 1px) -1px, calc(100% + 1px) calc(100% + 1px), -1px calc(100% + 1px), -1px var(--n, var(--notch)), var(--n, var(--notch)) var(--n, var(--notch)));
}
/* a hatch as the fill of a notched box: <div class="vb-notch is-hatched" style="--hatch-color: var(--brand-deep)"> */
.is-hatched {
  --fill-image: linear-gradient(135deg, var(--hatch-color, var(--foreground)) 0 10%, transparent 10% 50%, var(--hatch-color, var(--foreground)) 50% 60%, transparent 60%);
  --fill-size: 7px 7px;
}

/* ---------- rules: the only free-standing lines ---------- */
.vb-rule { display: block; height: var(--pen-heavy); margin: 0; border: 0; background: var(--foreground); }   /* under a section title: one per section */
.vb-hairline { display: block; height: 1px; margin: 0; border: 0; background: var(--hairline); }              /* between rows */

/* ---------- button (survey ticks on hover and focus) ----------
   The main and the ink button are fills without a line; only the second button is outlined.
   The shape is drawn on ::before, so the button itself is not clipped and can draw
   its four corner ticks (::after) outside the box.
   Leave 12px free around a button that shows ticks. */
.vb-btn {
  --n: var(--notch); --w: var(--pen); --fill: var(--brand); --line: var(--fill);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 20px; margin: 0; border: 0; background: none;
  font: 600 14px/20px var(--font-sans); color: var(--on-brand);
  text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.vb-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: var(--w) solid var(--line);
  background:
    linear-gradient(var(--line), var(--line)) 0 0 / calc(var(--n) + var(--w)) calc(var(--n) + var(--w)) no-repeat border-box,
    var(--fill-image, none) 0 0 / var(--fill-size, auto),
    var(--fill);
  clip-path: polygon(var(--n) -1px, calc(100% + 1px) -1px, calc(100% + 1px) calc(100% + 1px), -1px calc(100% + 1px), -1px var(--n), var(--n) var(--n));
}
.vb-btn::after {
  --t: linear-gradient(var(--foreground), var(--foreground));
  content: ""; position: absolute; inset: -10px; pointer-events: none;
  background:
    var(--t) left 0 top 10px / 0 1px no-repeat, var(--t) left 10px top 0 / 1px 0 no-repeat,
    var(--t) right 0 top 10px / 0 1px no-repeat, var(--t) right 10px top 0 / 1px 0 no-repeat,
    var(--t) left 0 bottom 10px / 0 1px no-repeat, var(--t) left 10px bottom 0 / 1px 0 no-repeat,
    var(--t) right 0 bottom 10px / 0 1px no-repeat, var(--t) right 10px bottom 0 / 1px 0 no-repeat;
  transition: background-size 160ms ease-out;
}
.vb-btn:hover:not(:disabled)::after, .vb-btn:focus-visible::after, .vb-btn.is-hover::after, .vb-btn.is-press::after, .vb-btn.is-focus::after {
  background-size: 6px 1px, 1px 6px, 6px 1px, 1px 6px, 6px 1px, 1px 6px, 6px 1px, 1px 6px;
}
.vb-btn:active:not(:disabled), .vb-btn.is-press { --fill: var(--brand-hover); }
/* keyboard focus: the ticks, plus a 1.5px line in the text colour, 3px inside the edge. Nothing is drawn outside. */
.vb-btn:focus-visible, .vb-btn.is-focus { outline: 1.5px solid currentColor; outline-offset: -4.5px; }
.vb-btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; transition: translate 150ms ease-out; }
/* the arrow is the one icon that moves: give it .vb-arrow */
/* an icon of the set inside a button keeps the icon pen */
.vb-btn svg.vb-icon { stroke-width: 2; }
.vb-btn:hover:not(:disabled) .vb-arrow, .vb-btn:focus-visible .vb-arrow, .vb-btn.is-hover .vb-arrow, .vb-btn.is-focus .vb-arrow { translate: 3px 0; }
.vb-btn:active:not(:disabled) .vb-arrow, .vb-btn.is-press .vb-arrow { translate: 5px 0; transition-duration: 60ms; }
/* second action: white, the one outlined button */
.vb-btn.is-line { --fill: var(--card); --line: var(--border); color: var(--foreground); }
.vb-btn.is-line:active:not(:disabled), .vb-btn.is-line.is-press { --fill: var(--accent); }
/* quiet anchor: ink fill, cream text */
.vb-btn.is-ink { --fill: var(--primary); color: var(--primary-foreground); }
.vb-btn.is-ink:active:not(:disabled), .vb-btn.is-ink.is-press { --fill: var(--muted-foreground); }
/* sizes: small (tools, toolbars: no ticks, the fill answers instead), large (the one hero action) */
.vb-btn.is-sm { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.vb-btn.is-sm::after, .vb-btn.no-ticks::after { display: none; }
.vb-btn.is-sm:hover:not(:disabled), .vb-btn.no-ticks:hover:not(:disabled), .vb-btn.is-sm.is-hover, .vb-btn.no-ticks.is-hover { --fill: var(--brand-hover); }
.vb-btn.is-sm.is-line:hover:not(:disabled), .vb-btn.no-ticks.is-line:hover:not(:disabled), .vb-btn.is-sm.is-line.is-hover, .vb-btn.no-ticks.is-line.is-hover { --fill: var(--accent); }
.vb-btn.is-sm.is-ink:hover:not(:disabled), .vb-btn.no-ticks.is-ink:hover:not(:disabled), .vb-btn.is-sm.is-ink.is-hover, .vb-btn.no-ticks.is-ink.is-hover { --fill: var(--muted-foreground); }
.vb-btn.is-lg { min-height: 48px; padding: 12px 28px; font-size: 16px; line-height: 24px; }
/* disabled: hatched, the drawing convention for "not in use" */
.vb-btn:disabled, .vb-btn.is-disabled {
  cursor: not-allowed; color: var(--muted-foreground); --fill: var(--muted); --line: var(--fill);
  --fill-image: linear-gradient(135deg, var(--hairline) 0 10%, transparent 10% 50%, var(--hairline) 50% 60%, transparent 60%); --fill-size: 7px 7px;
}
@media (prefers-reduced-motion: reduce) { .vb-btn::after, .vb-btn svg { transition: none; } }

/* ---------- card: a white surface on the cream page, no line ----------
   On a white ground use .is-quiet. A card that is itself a link takes the ink line (.is-line). */
.vb-card { display: block; padding: 24px; color: var(--card-foreground); }
.vb-card.is-compact { padding: 16px; }
.vb-card.is-quiet { --fill: var(--muted); }
/* featured: one ink block in the top-right corner, with an arrow or a step number */
.vb-card.is-featured { position: relative; padding-right: 68px; }
.vb-card-corner { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: grid; place-items: center; background: var(--primary); color: var(--primary-foreground); font: 700 16px/1 var(--font-display); }
.vb-card-corner svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
/* information cards: coloured line, soft fill, ink text; always with a word or an icon */
.vb-card.is-info { --line: var(--info); --fill: var(--info-soft); }
.vb-card.is-warn { --line: var(--warn); --fill: var(--warn-soft); }
.vb-card.is-danger { --line: var(--danger); --fill: var(--danger-soft); }
.vb-card.is-success { --line: var(--success); --fill: var(--success-soft); }
.vb-card.is-brand { --line: var(--brand-deep); --fill: var(--brand-soft); }

/* ---------- field ---------- */
.vb-field { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; font-size: 14px; line-height: 20px; color: var(--foreground); }
.vb-field > input, .vb-field > select, .vb-field > textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 9px 0; font: inherit; color: inherit; }
.vb-field:focus-within, .vb-field.is-focus { --line: var(--ring); box-shadow: inset 0 0 0 1px var(--ring); }
.vb-field.is-error { --line: var(--danger); }
.vb-field.is-disabled { --line: var(--fill); --fill: var(--muted); --fill-image: linear-gradient(135deg, var(--hairline) 0 10%, transparent 10% 50%, var(--hairline) 50% 60%, transparent 60%); --fill-size: 7px 7px; color: var(--muted-foreground); cursor: not-allowed; }

/* ---------- status stamp (review 30 G): filled, line, dashed. Same colours in every product. ---------- */
.vb-stamp { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; font: 700 10px/16px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--foreground); }
.vb-stamp.is-tested { --line: var(--status-tested, var(--brand)); --fill: var(--status-tested, var(--brand)); color: var(--status-on-tested, var(--on-brand)); }
.vb-stamp.is-working { --line: var(--status-working, var(--brand-deep)); --fill: var(--card); color: var(--status-working, var(--brand-deep)); }
.vb-stamp.is-demo { --line: var(--status-demo, var(--coral-deep)); --fill: var(--card); color: var(--status-demo, var(--coral-deep)); border-style: dashed; }
.vb-stamp.is-lg { padding: 4px 12px; font-size: 12px; line-height: 18px; }

/* ---------- tag: a static label, fill only ---------- */
.vb-tag { --fill: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; font: 600 12px/18px var(--font-sans); color: var(--foreground); white-space: nowrap; }
.vb-tag.is-brand { --fill: var(--brand-soft); }
.vb-tag.is-peach { --fill: var(--peach); }
.vb-tag.is-ink { --fill: var(--primary); color: var(--primary-foreground); }

/* ---------- picture frame: the notch, no line ----------
   A picture that is mostly white on a white ground may take .is-line. */
.vb-frame { --w: 0px; position: relative; display: block; padding: 0; overflow: hidden; }
.vb-frame.is-line { --w: var(--pen); --line: var(--border); }
.vb-frame > img, .vb-frame > svg { display: block; width: 100%; height: auto; }

/* ---------- segmented control: one quiet notched track, the chosen segment in the brand colour ---------- */
.vb-seg { --fill: var(--muted); display: inline-flex; width: fit-content; max-width: 100%; gap: 2px; padding: 2px; }
.vb-seg > * { margin: 0; border: 0; min-height: 30px; padding: 4px 12px; background: none; color: var(--foreground); font: 600 14px/20px var(--font-sans); text-decoration: none; cursor: pointer; }
.vb-seg > :hover, .vb-seg > .is-hover { background: var(--card); }
.vb-seg > .is-on, .vb-seg > [aria-pressed="true"], .vb-seg > [aria-selected="true"] { background: var(--brand); color: var(--on-brand); }
.vb-seg > :focus-visible, .vb-seg > .is-focus { outline: 2px solid var(--ring); outline-offset: -3px; }
.vb-seg > :disabled, .vb-seg > .is-disabled { color: var(--muted-foreground); background: none; cursor: not-allowed; }

/* ---------- range: a 1px ink track and one travelling ink square with the notch ---------- */
.vb-range { -webkit-appearance: none; appearance: none; width: 160px; height: 24px; margin: 0; padding: 0; background: none; cursor: pointer; }
.vb-range::-webkit-slider-runnable-track { height: 1px; background: var(--foreground); }
.vb-range::-moz-range-track { height: 1px; background: var(--foreground); }
.vb-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -8.5px; border: 0; border-radius: 0; background: var(--foreground);
  clip-path: polygon(var(--notch) -1px, calc(100% + 1px) -1px, calc(100% + 1px) calc(100% + 1px), -1px calc(100% + 1px), -1px var(--notch), var(--notch) var(--notch)); }
.vb-range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 0; background: var(--foreground);
  clip-path: polygon(var(--notch) -1px, calc(100% + 1px) -1px, calc(100% + 1px) calc(100% + 1px), -1px calc(100% + 1px), -1px var(--notch), var(--notch) var(--notch)); }
.vb-range:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; }

/* ---------- table: caps header on one ink rule, hairline rows, room on both sides ---------- */
.vb-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.vb-table th { padding: 8px 12px; text-align: left; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); border-bottom: var(--pen) solid var(--border); }
.vb-table td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.vb-table .is-num { text-align: right; }
.vb-table caption { caption-side: top; text-align: left; padding: 0 12px 8px; font: 600 14px/20px var(--font-sans); color: var(--foreground); }
.vb-table td.is-muted { color: var(--muted-foreground); }
.vb-table tr.is-on > td { background: var(--peach); border-bottom-color: transparent; }   /* the one highlighted row */
/* its notch is a small square of the ground colour (cream, or white inside a card), so the row stays one piece */
.vb-table tr.is-on > td:first-child { background: linear-gradient(var(--table-ground, var(--background)), var(--table-ground, var(--background))) 0 0 / var(--notch) var(--notch) no-repeat, var(--peach); }
.vb-card .vb-table { --table-ground: var(--card); }
.vb-card.is-quiet .vb-table { --table-ground: var(--muted); }

/* ---------- icons and chips (review 31 B1; 31 C1, C3, C4; 25 E) ----------
   One pen: the heavy pen, 2px, square ends, mitred corners, no fill, on a 24px grid.
   A point (as in the point cloud) is a square dot 0.75px heavier than the line. */
.vb-icon { width: 24px; height: 24px; max-width: none; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; stroke-miterlimit: 4; }
.vb-icon.is-16 { width: 16px; height: 16px; }
.vb-icon.is-20 { width: 20px; height: 20px; }
.vb-icon.is-40 { width: 40px; height: 40px; }
/* round ink chip: when the item stands apart with air around it */
.vb-chip { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--primary); color: var(--primary-foreground); }
.vb-chip .vb-icon { width: 20px; height: 20px; }
/* box chip: when items sit closer together. A quiet notched square, no line (.is-line is the old name) */
.vb-chip.is-box, .vb-chip.is-line { border-radius: 0; --fill: var(--muted); color: var(--foreground); }
.vb-chip.is-sm { width: 32px; height: 32px; }
.vb-chip.is-sm .vb-icon { width: 16px; height: 16px; }

/* the other two circles that are allowed: a status dot and an avatar */
.vb-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--brand); }
.vb-dot.is-coral { background: var(--coral); }
.vb-dot.is-ink { background: var(--primary); }
.vb-avatar { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-full); overflow: hidden; background: var(--muted); font: 600 14px/1 var(--font-sans); color: var(--foreground); }

/* ---------- hatch: 45 degrees, 5px apart ----------
   Drawn as a 7px tile (7 / sqrt 2 = 5px between lines), so every line is identical: no uneven
   or shimmering lines. Colour with --hatch-color. On a notched box use .is-hatched instead. */
.vb-hatch {
  background-image: linear-gradient(135deg, var(--hatch-color, var(--foreground)) 0 10%, transparent 10% 50%, var(--hatch-color, var(--foreground)) 50% 60%, transparent 60%);
  background-size: 7px 7px;
}
.vb-hatch.is-quiet, .is-hatched.is-quiet { --hatch-color: var(--hairline); }

/* ---------- names ----------
   <span class="vb-wordmark">VoxelBond</span>              the name in its survey frame (review 27 V)
   <span class="vb-product" data-product="fly">Voxel<span>Fly</span></span>   (review 28 E; the word is Work Sans Medium in the product's text colour:
   the lead colour darkened until it reads on cream, --fly-text and --brain-text) */
.vb-wordmark {
  --m: 0.2em; --t: max(1px, 0.05em); --c: var(--foreground);
  --g: linear-gradient(var(--c), var(--c));
  display: inline-block; padding: 0.24em 0.34em 0.2em; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1; letter-spacing: -0.01em; color: var(--c);
  background:
    var(--g) left top / var(--m) var(--t) no-repeat, var(--g) left top / var(--t) var(--m) no-repeat,
    var(--g) right top / var(--m) var(--t) no-repeat, var(--g) right top / var(--t) var(--m) no-repeat,
    var(--g) left bottom / var(--m) var(--t) no-repeat, var(--g) left bottom / var(--t) var(--m) no-repeat,
    var(--g) right bottom / var(--m) var(--t) no-repeat, var(--g) right bottom / var(--t) var(--m) no-repeat;
}
.vb-wordmark.is-plain { padding: 0; background: none; }
.vb-product { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; color: var(--foreground); white-space: nowrap; }
.vb-product > span { font-family: var(--font-work); font-weight: 500; letter-spacing: 0; color: var(--product-word, var(--foreground)); }

/* ---------- product palettes ----------
   Inside a product, the product's colours take the brand slots.
   Fly: teal leads, orange is the one mark, lime the highlighter, plum links and focus.
   Brain: pink leads, red is the one mark, mint the soft ground, teal a second fill; links and focus the dark pink. */
[data-product="bond"] { --product: var(--brand); --product-word: var(--foreground); }
[data-product="fly"] {
  --product: var(--fly-lead); --product-word: var(--fly-text);
  --brand: var(--fly-lead); --brand-hover: color-mix(in srgb, var(--fly-lead) 84%, var(--foreground));
  --brand-soft: color-mix(in srgb, var(--fly-lead) 20%, var(--card));
  --brand-deep: var(--fly-deep); --ring: var(--fly-deep); --info: var(--fly-deep);
  --coral: var(--fly-accent); --coral-deep: color-mix(in srgb, var(--fly-accent) 70%, var(--foreground)); --peach: color-mix(in srgb, var(--fly-highlight) 35%, var(--card));
}
[data-product="brain"] {
  --product: var(--brain-lead); --product-word: var(--brain-text);
  --brand: var(--brain-lead); --brand-hover: color-mix(in srgb, var(--brain-lead) 84%, var(--foreground));
  --brand-soft: var(--brain-soft);
  --brand-deep: var(--brain-text); --ring: var(--brain-text);   /* links and focus; information cards keep the petrol, so they are not taken for an error */
  --coral: var(--brain-accent); --coral-deep: color-mix(in srgb, var(--brain-accent) 70%, var(--foreground)); --peach: var(--brain-soft);
}

/* ==================== AppShell ==================== */
/* App shell (final review 2 D): a top bar across the whole width, then a docked sidebar and the scene.
   Light; the top bar and the sidebar are white, the scene is stone; nothing floats but a small toolbar over the scene.
   No ink line between the panels: they are told apart by their fills. One hairline under the top bar.
   No inspector column: the details of a selection sit in the sidebar, under their list.
   The shell is a size container: below 640px the sidebar folds to a 56px rail; the top bar stays.
   On .vb-shell-app.vb-notch the line width is 0, so the stone scene runs to the edge (no white 1px frame). */
.vb-shell-app { --w: 0px; container: vb-shell / inline-size; display: grid; grid-template-rows: 48px minmax(0, 1fr); height: 100%; min-height: 420px; color: var(--foreground); font-size: 14px; line-height: 20px; }
.vb-shell-body { display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 0; }

/* ---- top bar: 48px, product name, project name, account. Never tools or the main action. ---- */
.vb-shell-top { display: flex; align-items: center; gap: 16px; min-width: 0; height: 48px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--hairline); background: var(--card); }
.vb-shell-top .vb-product, .vb-shell-title { flex: none; margin: 0; font-size: 20px; line-height: 28px; }
.vb-shell-title { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.vb-shell-project { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; padding-left: 16px; border-left: 1px solid var(--hairline); }
.vb-shell-project > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.vb-shell-account { flex: none; margin: 0 0 0 auto; padding: 0; border: 0; background: none; border-radius: var(--radius-full); cursor: pointer; }
.vb-shell-account .vb-avatar { width: 32px; height: 32px; font-size: 12px; }
/* the avatar is stone on the white bar; on hover it turns ink (stone on stone would not show) */
.vb-shell-account:hover .vb-avatar { background: var(--primary); color: var(--primary-foreground); }
.vb-shell-account:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ---- sidebar: docked, white; the stone scene beside it is the separation, no line ---- */
.vb-shell-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; min-height: 0; padding: 16px; overflow-y: auto; background: var(--card); }
.vb-shell-sechead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.vb-shell-count { font-size: 12px; font-weight: 600; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }

/* steps: the open one on --brand-soft ("you are here"), notched, no line; the number box is stone, ink when open */
.vb-shell-steps { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.vb-shell-step { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 8px; font-weight: 600; color: var(--muted-foreground); }
.vb-shell-step[aria-current="step"] { background: var(--brand-soft); color: var(--foreground); }
.vb-shell-step > .vb-icon { margin-left: auto; width: 16px; height: 16px; }
.vb-shell-stepnum { --fill: var(--muted); display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; font: 700 12px/1 var(--font-display); color: var(--foreground); }
.vb-shell-step[aria-current="step"] .vb-shell-stepnum { --fill: var(--primary); color: var(--primary-foreground); }

/* stat row (30 D): one dense row, hairline dividers, no boxes, an icon beside each figure */
.vb-shell-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; }
.vb-shell-stat { display: grid; gap: 2px; align-content: start; min-width: 0; padding: 2px 6px; border-left: 1px solid var(--hairline); }
.vb-shell-stat:first-child { padding-left: 0; border-left: 0; }
.vb-shell-fig { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 16px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vb-shell-fig .vb-icon { width: 16px; height: 16px; }
.vb-shell-fig small { font-size: 11px; font-weight: 600; }
.vb-shell-flab { margin: 0; font-size: 11px; line-height: 14px; color: var(--muted-foreground); }

/* the honest-limit notice */
.vb-card.vb-shell-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 10px 12px; font-size: 13px; line-height: 18px; }
.vb-shell-note .vb-icon { width: 18px; height: 18px; color: var(--warn); }
.vb-shell-note p { margin: 0; }

/* list rows: hairline between; hover stone, the selected one on --brand-soft, both notched, no line */
.vb-shell-rows { margin: 0; padding: 0; list-style: none; }
.vb-shell-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 7px 8px; border-bottom: 1px solid var(--hairline); cursor: pointer; }
.vb-shell-row:last-child { border-bottom: 0; }
.vb-shell-row:hover { background: var(--muted); border-bottom-color: transparent; }
.vb-shell-row[aria-selected="true"] { background: var(--brand-soft); border-bottom-color: transparent; }
.vb-shell-row b { font-weight: 600; }
.vb-shell-row > span { font-size: 12px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.vb-shell-row .vb-icon { width: 18px; height: 18px; }
.vb-shell-swatch { width: 18px; height: 0; border-top: 2px solid var(--foreground); }
.vb-shell-swatch.is-mark { border-top: 3px solid var(--coral); }
.vb-shell-more { display: inline-block; margin: 6px 0 0 36px; font-size: 13px; }

/* the selection: under its list, a caps heading, a title, the figures */
.vb-shell-sel { min-width: 0; }
.vb-shell-seltitle { margin: 0 0 6px; font: 700 18px/24px var(--font-display); }
.vb-shell-props { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; font-variant-numeric: tabular-nums; }
.vb-shell-props dt { color: var(--muted-foreground); }
.vb-shell-props dd { margin: 0; text-align: right; font-weight: 600; }

/* form bits: the select is a core field (ink line); the layer box is a checkbox, so it keeps the ink line */
.vb-field.vb-shell-select { position: relative; min-height: 36px; }
.vb-shell-select > select { -webkit-appearance: none; appearance: none; padding: 7px 24px 7px 0; cursor: pointer; }
.vb-shell-select > .vb-icon { position: absolute; right: 10px; width: 16px; height: 16px; pointer-events: none; }
.vb-shell-layers { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.vb-shell-layer { display: flex; align-items: center; gap: 10px; min-height: 28px; cursor: pointer; }
.vb-shell-layer > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vb-shell-box { --n: 0px; --fill: var(--card); --line: var(--border); display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; }
.vb-shell-box .vb-icon { width: 12px; height: 12px; visibility: hidden; }
.vb-shell-layer > input:checked + .vb-shell-box { --fill: var(--brand); color: var(--on-brand); }
.vb-shell-layer > input:checked + .vb-shell-box .vb-icon { visibility: visible; }
.vb-shell-layer:has(> input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }

.vb-shell-foot { margin-top: auto; padding: 12px 0 0; }
.vb-btn.vb-shell-wide { width: 100%; }

/* ---- folded sidebar: a 56px rail ---- */
.vb-shell-rail { display: none; flex-direction: column; align-items: center; gap: 4px; width: 56px; min-height: 0; padding: 8px 0 12px; background: var(--card); }
.vb-shell-railitem { display: grid; place-items: center; width: 40px; height: 40px; color: var(--foreground); }
.vb-shell-railitem[aria-current="step"] { background: var(--brand-soft); }
.vb-shell-railitem .vb-icon { width: 20px; height: 20px; }
.vb-shell-railgrow { flex: 1; }

/* ---- the scene: the stone ground; our output carries the colour ---- */
.vb-shell-scene { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--muted); }
.vb-shell-drawing { position: absolute; inset: 56px 16px 44px; width: calc(100% - 32px); height: calc(100% - 100px); }
/* the one thing that floats: a small toolbar. White and stone fills; the only lines are those of .vb-btn.is-line.
   On the stone scene the stone controls turn white, and their hover turns stone. */
.vb-shell-toolbar { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; pointer-events: none; }
.vb-shell-toolbar > * { pointer-events: auto; }
.vb-shell-tools { display: flex; gap: 2px; }
.vb-btn.vb-shell-tool { width: 32px; padding: 0; }
.vb-shell-toolbar .vb-seg { --fill: var(--card); }
.vb-shell-toolbar .vb-seg > * { min-height: 30px; padding: 5px 12px; font-size: 13px; line-height: 20px; }
.vb-shell-toolbar .vb-seg > :hover:not(.is-on, [aria-pressed="true"], [aria-selected="true"], :disabled), .vb-shell-toolbar .vb-seg > .is-hover { background: var(--muted); }
.vb-shell-scale { position: absolute; left: 14px; bottom: 12px; display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 14px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.vb-shell-scale svg { width: 96px; height: 20px; fill: none; }
.vb-shell-scenetag { position: absolute; right: 12px; bottom: 12px; }
.vb-shell-scene :where(.vb-tag) { --fill: var(--card); }   /* a plain tag on the stone scene is white; .is-brand, .is-peach, .is-ink keep their fill */

/* ---- narrow windows: the sidebar folds to the rail, the top bar stays ---- */
@container vb-shell (max-width: 640px) {
  .vb-shell-body { grid-template-columns: 56px minmax(0, 1fr); }
  .vb-shell-side { display: none; }
  .vb-shell-rail { display: flex; }
  .vb-shell-top { gap: 12px; }
  .vb-shell-project { padding-left: 12px; }
}

/* notch on the selection and hover bands too: the top-left corner is cut on every box */
.vb-shell-step[aria-current="step"], .vb-shell-row:hover, .vb-shell-row[aria-selected="true"], .vb-shell-railitem[aria-current="step"] {
  clip-path: polygon(var(--notch) -1px, calc(100% + 1px) -1px, calc(100% + 1px) calc(100% + 1px), -1px calc(100% + 1px), -1px var(--notch), var(--notch) var(--notch));
}

/* ==================== Card ==================== */
/* Card: the content of a card (review 29 A, B, C3, D, E, F, K).
   The box itself is core: .vb-card, .is-compact, .is-quiet, .is-featured + .vb-card-corner. */

/* text inside a card */
.vb-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.vb-card-label { margin: 0; font: 600 12px/16px var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--foreground); }
.vb-card-title { margin: 6px 0 0; font: 700 20px/28px var(--font-display); color: var(--foreground); }
.vb-card-text { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.vb-card-foot { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.vb-card-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; line-height: 1.5; color: var(--foreground); }
.vb-card-list > li { display: grid; grid-template-columns: 5px minmax(0, 1fr); gap: 10px; }
.vb-card-list > li::before { content: ""; width: 5px; height: 5px; margin-top: 8px; background: var(--foreground); }

/* inside a card: a hairline divider or a quiet tile (fill and notch, no line), never a second card.
   In a quiet (stone) card the tile is white. */
.vb-card-rule { height: 0; margin: 16px 0; border: 0; border-top: 1px solid var(--hairline); }
.vb-card-tile { --fill: var(--muted); padding: 12px 16px; }
.vb-card.is-quiet .vb-card-tile { --fill: var(--card); }

/* fact card (29 D): icon chip, caps label, bold answer, link */
.vb-card-fact { display: grid; gap: 8px; align-content: start; justify-items: start; }
.vb-card-fact > .vb-chip { margin-bottom: 4px; }
.vb-card-fact .vb-card-label { color: var(--muted-foreground); }
.vb-card-answer { margin: 0; font: 700 20px/24px var(--font-display); color: var(--foreground); font-variant-numeric: tabular-nums; }
/* tight facts: bare icon beside the figure, hairline between rows */
.vb-card-facts { margin: 0; padding: 0; list-style: none; display: grid; }
.vb-card-facts > li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.vb-card-facts > li:first-child { border-top: 0; padding-top: 0; }
.vb-card-facts > li:last-child { padding-bottom: 0; }
.vb-card-facts b { font: 600 18px/22px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--foreground); min-width: 4.5ch; }

/* link card (29 E): the whole card is the link, so it is the one card with the 1px ink line.
   Hover and keyboard focus: the title underlines, the arrow box fills with ink; the line stays 1px.
   Keyboard focus also turns the line petrol and doubles it inside (2px of --ring, as on a field),
   because the notch clips an outline. */
a.vb-card.vb-card-link, .vb-card.vb-card-link { --line: var(--border); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px; color: var(--foreground); text-decoration: none; cursor: pointer; }
.vb-card-link .vb-card-title { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color 120ms ease-out; }
.vb-card-arrow { --fill: var(--muted); display: grid; place-items: center; flex: none; width: 36px; height: 36px; color: var(--foreground); transition: color 120ms ease-out; }
.vb-card-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.vb-card.is-quiet .vb-card-arrow { --fill: var(--card); }
.vb-card-link:focus-visible, .vb-card-link.is-focus { --line: var(--ring); outline: none; box-shadow: inset 0 0 0 1px var(--ring); }
.vb-card-link:hover .vb-card-title, .vb-card-link.is-hover .vb-card-title, .vb-card-link:focus-visible .vb-card-title, .vb-card-link.is-focus .vb-card-title { text-decoration-color: currentColor; }
.vb-card-link:hover .vb-card-arrow, .vb-card-link.is-hover .vb-card-arrow, .vb-card-link:focus-visible .vb-card-arrow, .vb-card-link.is-focus .vb-card-arrow { --fill: var(--primary); color: var(--primary-foreground); }

/* image card (29 F): a picture in its notched frame (no line), text below */
.vb-card.vb-card-media { padding: 12px; }
.vb-card-media > .vb-frame { position: relative; }
.vb-card-media > .vb-frame > .vb-tag { position: absolute; left: 8px; top: 8px; }
.vb-card-media-text { padding: 16px 12px 12px; }

@media (prefers-reduced-motion: reduce) { .vb-card-link .vb-card-title, .vb-card-arrow { transition: none; } }

/* ==================== Controls ==================== */
/* Controls: the house rules (notch top-left on every control; the 1px ink line only on what you
   type in or switch: field, checkbox, radio, switch; circles only for dots). Accepted in the final review (9a A, 9b A).
   Builds on the core .vb-field, .vb-seg, .vb-tag, .vb-link, .vb-btn.is-sm and .vb-table.
   "Not in use" is the quiet 7px hatch tile of the core, on stone, without a line. */

/* ---------- label, help and error text ---------- */
.vb-ctl-stack { display: grid; gap: 6px; min-width: 0; align-content: start; }
.vb-ctl-label { display: block; margin: 0; font: 600 13px/18px var(--font-sans); color: var(--foreground); }
.vb-ctl-label > span { font-weight: 400; color: var(--muted-foreground); }
.vb-ctl-help { margin: 0; font: 400 13px/18px var(--font-sans); color: var(--muted-foreground); }
.vb-ctl-help.is-error { display: flex; gap: 6px; align-items: flex-start; font-weight: 600; color: var(--danger); }
.vb-ctl-help.is-error::before {
  content: ""; flex: none; width: 14px; height: 14px; margin-top: 2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 0h11v14H0V3h3zM6.25 2.75h1.5v5.5h-1.5zM6.25 9.75h1.5v1.5h-1.5z' fill='white' fill-rule='evenodd'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 0h11v14H0V3h3zM6.25 2.75h1.5v5.5h-1.5zM6.25 9.75h1.5v1.5h-1.5z' fill='white' fill-rule='evenodd'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
/* a field that is not in use: hatched, like a disabled button (same as the core .vb-field.is-disabled). Put it on the .vb-field. */
.vb-ctl-disabled { --line: var(--fill); --fill: var(--muted); --fill-image: linear-gradient(135deg, var(--hairline) 0 10%, transparent 10% 50%, var(--hairline) 50% 60%, transparent 60%); --fill-size: 7px 7px; color: var(--muted-foreground); cursor: not-allowed; }
.vb-ctl-disabled > input, .vb-ctl-disabled > select, .vb-ctl-disabled > textarea { cursor: not-allowed; }
/* a textarea: the field grows with it */
.vb-ctl-tall { align-items: stretch; }
.vb-ctl-tall > textarea { min-height: 76px; resize: vertical; line-height: 20px; }
/* a select: the native arrow replaced by a pen chevron */
.vb-ctl-select { position: relative; }
.vb-ctl-select > select { -webkit-appearance: none; appearance: none; padding-right: 20px; cursor: pointer; }
.vb-ctl-select::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 12px; height: 12px; margin-top: -6px; pointer-events: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

/* ---------- checkbox, radio, switch ----------
   <label class="vb-ctl-check"><input type="checkbox"><span class="vb-ctl-box"></span>Text</label>
   The input stays in place for assistive technology but is invisible; the span draws.
   The shape sits on ::before so the focus line (an outline on the span) is not clipped. */
.vb-ctl-check, .vb-ctl-radio, .vb-ctl-switch {
  position: relative; display: inline-flex; align-items: flex-start; gap: 10px;
  font: 400 14px/20px var(--font-sans); color: var(--foreground); cursor: pointer;
}
.vb-ctl-check > input, .vb-ctl-radio > input, .vb-ctl-switch > input {
  position: absolute; left: 0; top: 2px; width: 16px; height: 16px; margin: 0; opacity: 0; pointer-events: none;
}
.vb-ctl-switch > input { width: 44px; height: 24px; top: 0; }
.vb-ctl-box, .vb-ctl-track {
  --n: var(--notch); --w: var(--pen); --line: var(--border); --fill: var(--card);
  position: relative; isolation: isolate; flex: none; width: 16px; height: 16px; margin-top: 2px;
}
.vb-ctl-box::before, .vb-ctl-track::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: var(--w) solid var(--line);
  background:
    linear-gradient(var(--line), var(--line)) 0 0 / calc(var(--n) + var(--w)) calc(var(--n) + var(--w)) no-repeat border-box,
    var(--fill-image, none) 0 0 / var(--fill-size, auto),
    var(--fill);
  clip-path: polygon(var(--n) -1px, calc(100% + 1px) -1px, calc(100% + 1px) calc(100% + 1px), -1px calc(100% + 1px), -1px var(--n), var(--n) var(--n));
  transition: background-color 120ms ease-out;
}
/* the tick: drawn with the heavy pen (2px), square ends */
.vb-ctl-box::after {
  content: ""; position: absolute; inset: 0; background: var(--on-brand); opacity: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.25 2.25L11.5 6' fill='none' stroke='white' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.25 2.25L11.5 6' fill='none' stroke='white' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
/* the radio dot: a true circle, allowed because it is a dot */
.vb-ctl-dot {
  --line: var(--border); --fill: var(--card);
  position: relative; flex: none; width: 16px; height: 16px; margin-top: 2px;
  border: var(--pen) solid var(--line); border-radius: var(--radius-full); background: var(--fill);
  transition: background-color 120ms ease-out;
}
.vb-ctl-dot::after { content: ""; position: absolute; inset: 3px; border-radius: var(--radius-full); background: var(--on-brand); opacity: 0; }
/* the checkbox is a plain square; the switch a plain rectangle with one notched square knob. Not a pill. */
.vb-ctl-box, .vb-ctl-track { --n: 0px; }
.vb-ctl-track { width: 44px; height: 24px; margin-top: 0; }
.vb-ctl-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--foreground);
  clip-path: polygon(var(--notch) -1px, calc(100% + 1px) -1px, calc(100% + 1px) calc(100% + 1px), -1px calc(100% + 1px), -1px var(--notch), var(--notch) var(--notch));
  transition: translate 160ms ease-out;
}

/* hover */
.vb-ctl-check:hover > input:not(:disabled) + .vb-ctl-box, .vb-ctl-check.is-hover > .vb-ctl-box,
.vb-ctl-switch:hover > input:not(:disabled) + .vb-ctl-track, .vb-ctl-switch.is-hover > .vb-ctl-track,
.vb-ctl-radio:hover > input:not(:disabled) + .vb-ctl-dot, .vb-ctl-radio.is-hover > .vb-ctl-dot { --fill: var(--muted); }
/* checked: green fill, ink mark */
.vb-ctl-check > input:checked + .vb-ctl-box, .vb-ctl-check.is-on > .vb-ctl-box,
.vb-ctl-radio > input:checked + .vb-ctl-dot, .vb-ctl-radio.is-on > .vb-ctl-dot,
.vb-ctl-switch > input:checked + .vb-ctl-track, .vb-ctl-switch.is-on > .vb-ctl-track { --fill: var(--brand); }
.vb-ctl-check:hover > input:checked:not(:disabled) + .vb-ctl-box, .vb-ctl-check.is-on.is-hover > .vb-ctl-box,
.vb-ctl-radio:hover > input:checked:not(:disabled) + .vb-ctl-dot, .vb-ctl-radio.is-on.is-hover > .vb-ctl-dot,
.vb-ctl-switch:hover > input:checked:not(:disabled) + .vb-ctl-track, .vb-ctl-switch.is-on.is-hover > .vb-ctl-track { --fill: var(--brand-hover); }
.vb-ctl-check > input:checked + .vb-ctl-box::after, .vb-ctl-check.is-on > .vb-ctl-box::after,
.vb-ctl-radio > input:checked + .vb-ctl-dot::after, .vb-ctl-radio.is-on > .vb-ctl-dot::after { opacity: 1; }
.vb-ctl-switch > input:checked + .vb-ctl-track::after, .vb-ctl-switch.is-on > .vb-ctl-track::after { translate: 20px 0; background: var(--on-brand); }
/* keyboard focus: 2px petrol line, 2px outside (buttons draw their own, inside) */
.vb-ctl-check > input:focus-visible + .vb-ctl-box, .vb-ctl-check.is-focus > .vb-ctl-box,
.vb-ctl-radio > input:focus-visible + .vb-ctl-dot, .vb-ctl-radio.is-focus > .vb-ctl-dot,
.vb-ctl-switch > input:focus-visible + .vb-ctl-track, .vb-ctl-switch.is-focus > .vb-ctl-track { outline: 2px solid var(--ring); outline-offset: 2px; }
/* error: the line turns danger red; the message under it says what to do */
.vb-ctl-check.is-error > .vb-ctl-box, .vb-ctl-radio.is-error > .vb-ctl-dot, .vb-ctl-switch.is-error > .vb-ctl-track { --line: var(--danger); }
/* disabled: hatched stone, no line, muted mark */
.vb-ctl-check:has(> input:disabled), .vb-ctl-radio:has(> input:disabled), .vb-ctl-switch:has(> input:disabled) { color: var(--muted-foreground); cursor: not-allowed; }
.vb-ctl-check > input:disabled + .vb-ctl-box, .vb-ctl-switch > input:disabled + .vb-ctl-track {
  --line: var(--fill); --fill: var(--muted); --fill-image: linear-gradient(135deg, var(--hairline) 0 10%, transparent 10% 50%, var(--hairline) 50% 60%, transparent 60%); --fill-size: 7px 7px;
}
.vb-ctl-radio > input:disabled + .vb-ctl-dot { --line: var(--muted); --fill: var(--muted); }
.vb-ctl-check > input:disabled + .vb-ctl-box::after, .vb-ctl-radio > input:disabled + .vb-ctl-dot::after,
.vb-ctl-switch > input:disabled + .vb-ctl-track::after { background: var(--muted-foreground); }
/* a group of checkboxes or radios */
.vb-ctl-group { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.vb-ctl-group > legend { padding: 0; margin-bottom: 4px; }

/* ---------- filter chip: a quiet selector ("Windows / Doors / Bricks") ----------
   <button class="vb-ctl-chip" aria-pressed="true">Windows</button>
   Small and quiet: a stone fill with the notch and no line; white on hover; when on, the soft
   brand fill with a small ink tick (not the full green: that is kept for the one main action).
   Compare the static .vb-tag: the same fill, but it does not react. */
.vb-ctl-chip {
  --n: var(--notch); --w: var(--pen); --fill: var(--muted); --line: var(--fill);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 4px;
  min-height: 26px; padding: 3px 10px; margin: 0; border: 0; background: none;
  font: 600 12px/18px var(--font-sans); color: var(--foreground); white-space: nowrap; cursor: pointer;
  -webkit-appearance: none; appearance: none; text-decoration: none;
}
.vb-ctl-chip::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: var(--w) solid var(--line);
  background:
    linear-gradient(var(--line), var(--line)) 0 0 / calc(var(--n) + var(--w)) calc(var(--n) + var(--w)) no-repeat border-box,
    var(--fill-image, none) 0 0 / var(--fill-size, auto),
    var(--fill);
  clip-path: polygon(var(--n) -1px, calc(100% + 1px) -1px, calc(100% + 1px) calc(100% + 1px), -1px calc(100% + 1px), -1px var(--n), var(--n) var(--n));
}
/* the tick: 10px, ink */
.vb-ctl-chip::before {
  content: ""; display: none; flex: none; width: 10px; height: 10px; margin-left: -2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.75 5.25l2 2L8.25 2.75' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.75 5.25l2 2L8.25 2.75' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
}
.vb-ctl-chip:hover:not(:disabled), .vb-ctl-chip.is-hover { --fill: var(--card); }
.vb-ctl-chip[aria-pressed="true"], .vb-ctl-chip.is-on { --fill: var(--brand-soft); color: var(--foreground); }
.vb-ctl-chip[aria-pressed="true"]::before, .vb-ctl-chip.is-on::before { display: block; }
.vb-ctl-chip[aria-pressed="true"]:hover:not(:disabled), .vb-ctl-chip.is-on.is-hover { --fill: color-mix(in srgb, var(--brand) 32%, var(--card)); }
.vb-ctl-chip:focus-visible, .vb-ctl-chip.is-focus { outline: 2px solid var(--ring); outline-offset: 2px; }
.vb-ctl-chip:disabled, .vb-ctl-chip.is-disabled { cursor: not-allowed; color: var(--muted-foreground); --fill: var(--muted); --fill-image: linear-gradient(135deg, var(--hairline) 0 10%, transparent 10% 50%, var(--hairline) 50% 60%, transparent 60%); --fill-size: 7px 7px; }
/* on a stone ground (a quiet card, the scene) the chips turn white, and white turns stone on hover */
:is(.vb-card.is-quiet, .vb-shell-scene) .vb-ctl-chip:not([aria-pressed="true"], .is-on, :disabled) { --fill: var(--card); }
:is(.vb-card.is-quiet, .vb-shell-scene) .vb-ctl-chip:not([aria-pressed="true"], .is-on, :disabled):is(:hover, .is-hover) { --fill: var(--muted); }
.vb-ctl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

/* ---------- navigation links: ink text; the current page has a 2px ink underline ---------- */
.vb-ctl-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.vb-ctl-nav a { display: inline-block; padding: 6px 0; font: 600 14px/20px var(--font-sans); color: var(--foreground); text-decoration: none; }
.vb-ctl-nav a:hover, .vb-ctl-nav a.is-hover { box-shadow: inset 0 calc(-1 * var(--pen)) var(--foreground); }
.vb-ctl-nav a[aria-current="page"], .vb-ctl-nav a.is-current { box-shadow: inset 0 calc(-1 * var(--pen-heavy)) var(--foreground); }
.vb-ctl-nav a:focus-visible, .vb-ctl-nav a.is-focus { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ---------- toolbar: a row of .vb-btn.is-sm, 4px apart, hairline separators ---------- */
.vb-ctl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.vb-ctl-sep { flex: none; width: 1px; height: 20px; margin: 0 6px; background: var(--hairline); }
.vb-ctl-toolbar .vb-btn.is-sm { gap: 6px; }
.vb-ctl-toolbar .vb-btn.is-sm.vb-ctl-icon { padding: 4px 8px; }
/* text for screen readers only (icon-only buttons) */
.vb-ctl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) { .vb-ctl-box::before, .vb-ctl-track::before, .vb-ctl-track::after, .vb-ctl-dot { transition: none; } }

/* ==================== Drawing ==================== */
/* Drawing (review 31 A3, A4, D1, E1)
   One ink, three pens from the tokens: --pen-fine 0.5px, --pen 1px, --pen-heavy 2px.
   Square ends, mitred corners. Weight, size and hatching carry the meaning, not colour. */

/* A drawing in inline SVG. Put a pen class on each line:
   .vb-draw-fine   hatching, dimension and construction lines
   .vb-draw-pen    every outline (the default)
   .vb-draw-heavy  what is cut or what matters most */
.vb-draw-sheet {
  --draw-fine-w: var(--pen-fine); --draw-fine-c: var(--foreground);
  display: block; overflow: visible; color: var(--foreground);
  fill: none; stroke: currentColor; stroke-width: var(--pen);
  stroke-linecap: square; stroke-linejoin: miter; stroke-miterlimit: 4;
}
.vb-draw-sheet * { vector-effect: non-scaling-stroke; }
.vb-draw-sheet .vb-draw-fine { stroke: var(--draw-fine-c); stroke-width: var(--draw-fine-w); }
.vb-draw-sheet .vb-draw-pen { stroke-width: var(--pen); }
.vb-draw-sheet .vb-draw-heavy { stroke-width: var(--pen-heavy); }
.vb-draw-sheet text { stroke: none; fill: currentColor; font: 600 12px/1 var(--font-sans); font-variant-numeric: tabular-nums; }

/* The masonry hatch (31 D1) as the fill of a notched box (.vb-notch, .vb-card, .vb-btn ...).
   .vb-hatch would replace the notch background and lose the corner step; this keeps it.
   The same 7px tile as the core .vb-hatch and .is-hatched (7 / sqrt 2 = 5px between lines), so every
   line is identical. Ink by default; colour it with --hatch-color. */
.vb-draw-hatched {
  --fill-image: linear-gradient(135deg, var(--hatch-color, var(--foreground)) 0 10%, transparent 10% 50%, var(--hatch-color, var(--foreground)) 50% 60%, transparent 60%);
  --fill-size: 7px 7px;
}

/* Dimension string (31 E1): only on a picture of a real, measured result.
   <div class="vb-draw-dim" style="width: …"><span class="vb-draw-dim-val">8.40 m</span></div>
   The box spans exactly what is measured. Horizontal: the measured edge is below the box.
   .is-v: vertical, the box is as tall as what is measured, which lies to its left. */
.vb-draw-dim {
  --ext: 14px;    /* extension lines, from the dimension line towards the measured edge */
  --over: 6px;    /* how far the lines run past each other */
  --tick: 14px;   /* tick: regular pen, 45 degrees */
  --draw-fine-w: var(--pen-fine); --draw-fine-c: var(--foreground);
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  min-width: 0; padding: 0 0 calc(var(--ext) + 2px);
  color: var(--foreground); font: 600 12px/16px var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* dimension line */
.vb-draw-dim::before {
  content: ""; position: absolute; left: calc(-1 * var(--over)); right: calc(-1 * var(--over)); bottom: var(--ext);
  border-top: var(--draw-fine-w) solid var(--draw-fine-c);
}
/* extension lines, on both measured edges */
.vb-draw-dim::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--ext) + var(--over));
  border-left: var(--draw-fine-w) solid var(--draw-fine-c); border-right: var(--draw-fine-w) solid var(--draw-fine-c);
}
.vb-draw-dim-val { padding: 0 4px; }
/* the two ticks, drawn by the value (it stays unpositioned, so they sit on the dimension) */
.vb-draw-dim-val::before, .vb-draw-dim-val::after {
  content: ""; position: absolute; bottom: calc(var(--ext) - var(--tick) / 2);
  width: var(--pen); height: var(--tick); background: currentColor; rotate: 45deg;
}
.vb-draw-dim-val::before { left: calc(var(--pen) / -2); }
.vb-draw-dim-val::after { right: calc(var(--pen) / -2); }

.vb-draw-dim.is-v { justify-content: flex-start; align-items: center; padding: 0 0 0 calc(var(--ext) + 2px); }
.vb-draw-dim.is-v::before {
  left: var(--ext); right: auto; top: calc(-1 * var(--over)); bottom: calc(-1 * var(--over));
  border-top: 0; border-left: var(--draw-fine-w) solid var(--draw-fine-c);
}
.vb-draw-dim.is-v::after {
  left: 0; right: auto; top: 0; bottom: 0; width: calc(var(--ext) + var(--over)); height: auto;
  border: 0; border-top: var(--draw-fine-w) solid var(--draw-fine-c); border-bottom: var(--draw-fine-w) solid var(--draw-fine-c);
}
.vb-draw-dim.is-v > .vb-draw-dim-val { padding: 4px 0; writing-mode: vertical-rl; writing-mode: sideways-lr; }
.vb-draw-dim.is-v > .vb-draw-dim-val::before,
.vb-draw-dim.is-v > .vb-draw-dim-val::after { left: calc(var(--ext) - var(--pen) / 2); right: auto; }
.vb-draw-dim.is-v > .vb-draw-dim-val::before { top: calc(var(--tick) / -2); bottom: auto; }
.vb-draw-dim.is-v > .vb-draw-dim-val::after { bottom: calc(var(--tick) / -2); top: auto; }

/* The fine pen (0.5px) needs a high-density screen or print.
   On a plain screen it is drawn 1px wide in the secondary ink instead. */
@media (max-resolution: 1.99dppx) {
  .vb-draw-sheet, .vb-draw-dim { --draw-fine-w: 1px; --draw-fine-c: var(--muted-foreground); }
}

/* ==================== Hero ==================== */
/* Hero (review 32 B): the first screen of the website. The path is the picture:
   plan and capture, reconstruct, analyse and share, drawn left to right, ending on the result.
   The screen is a size container: below 640px it folds to the phone order
   (words first, then the path stacked top to bottom). */
.vb-hero-screen { container: vb-hero / inline-size; background: var(--background); color: var(--foreground); }

/* ---- site navigation (12 C): text links only, Contact last; no button. One hairline under it, no ink line ---- */
.vb-hero-nav { display: flex; align-items: center; gap: 28px; min-height: 72px; padding: 0 48px; border-bottom: 1px solid var(--hairline); background: var(--background); }
.vb-hero-home { display: inline-flex; margin-right: auto; color: inherit; text-decoration: none; }
.vb-hero-home .vb-wordmark { font-size: 22px; }
.vb-hero-home:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.vb-hero-links { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.vb-hero-link { display: inline-block; padding: 6px 0; font: 600 15px/20px var(--font-sans); color: var(--foreground); text-decoration: none; text-underline-offset: 7px; white-space: nowrap; }
.vb-hero-link .vb-product { font-size: 16px; line-height: 20px; }
.vb-hero-link:hover, .vb-hero-link.is-hover { text-decoration: underline; text-decoration-thickness: var(--pen); }
.vb-hero-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: var(--pen-heavy); }
.vb-hero-link:focus-visible, .vb-hero-link.is-focus { outline: 2px solid var(--ring); outline-offset: 2px; }
.vb-hero-menu { display: none; }
.vb-btn.vb-hero-menu { width: 40px; padding: 0; }

/* ---- words ---- */
.vb-hero-body { display: grid; gap: 56px; padding: 64px 48px 56px; }
.vb-hero-words { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 56px; align-items: start; }
.vb-hero-title { font-size: clamp(36px, 5.2cqi, 60px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.vb-hero-cred { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.vb-hero-cred::before { content: ""; flex: none; width: 24px; height: var(--pen); background: var(--foreground); }
.vb-hero-lead { margin: 0; padding-top: 6px; font-size: 18px; line-height: 1.6; max-width: 46ch; }
/* 12px of free space around each button for its survey ticks */
.vb-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 28px; padding-left: 12px; margin-left: -12px; }

/* ---- the path: three pictures in notched frames (white, no line) joined by a drawn line with square ends ---- */
.vb-hero-path { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1.65fr); grid-template-rows: auto auto; row-gap: 14px; margin: 0; }
.vb-hero-step { grid-row: 1 / span 2; display: grid; grid-template-rows: subgrid; row-gap: 14px; min-width: 0; margin: 0; }
.vb-hero-pic { position: relative; align-self: end; }
.vb-hero-pic > svg { display: block; width: 100%; height: auto; }
.vb-hero-pictags { position: absolute; right: 8px; bottom: 8px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.vb-hero-pictags .vb-tag { padding: 0 6px; font-size: 11px; line-height: 16px; }
.vb-hero-label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 10px; align-self: start; font: 600 15px/20px var(--font-sans); }
.vb-hero-label .vb-stamp { grid-column: 2; justify-self: start; margin-top: 2px; }
.vb-hero-sub { grid-column: 2; margin-top: -6px; font-size: 14px; font-weight: 400; line-height: 20px; color: var(--muted-foreground); }
.vb-hero-sub .vb-product { font-size: 15px; }
.vb-hero-num { --fill: var(--primary); display: inline-grid; place-items: center; width: 24px; height: 24px; color: var(--primary-foreground); font: 700 13px/1 var(--font-display); }
.vb-hero-join {
  --g: linear-gradient(var(--foreground), var(--foreground));
  grid-row: 1; align-self: end; height: 7px; margin-bottom: 40px;
  background: var(--g) left center / 100% var(--pen) no-repeat, var(--g) left center / 7px 7px no-repeat, var(--g) right center / 7px 7px no-repeat;
}

/* ---- phone order ---- */
@container vb-hero (max-width: 639.98px) {
  .vb-hero-nav { min-height: 60px; gap: 12px; padding: 0 16px; }
  .vb-hero-home .vb-wordmark { font-size: 20px; }
  .vb-hero-links { display: none; }
  .vb-hero-menu { display: inline-flex; }
  .vb-hero-body { gap: 40px; padding: 32px 16px 40px; }
  .vb-hero-words { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .vb-hero-title { font-size: 36px; line-height: 40px; }
  .vb-hero-cred { margin-top: 16px; }
  .vb-hero-lead { padding-top: 0; font-size: 17px; }
  .vb-hero-actions { margin-top: 24px; }
  .vb-hero-path { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 0; }
  .vb-hero-step { grid-row: auto; grid-template-rows: none; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 14px; }
  .vb-hero-pic { align-self: center; }
  .vb-hero-label { align-self: center; }
  .vb-hero-result { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .vb-hero-join {
    grid-row: auto; width: 7px; height: 28px; margin: 0 0 0 62.5px;
    background: var(--g) center top / var(--pen) 100% no-repeat, var(--g) center top / 7px 7px no-repeat, var(--g) center bottom / 7px 7px no-repeat;
  }
}

/* ==================== Notice ==================== */
/* Notice: information card (review 29 G). Coloured 1px line, soft fill, ink text, always an icon and a word.
   The box is core: .vb-card.is-compact + .is-info / .is-warn / .is-danger / .is-success / .is-brand.
   The icon takes the line colour (--line, set by the kind); the word and the sentence stay ink,
   because the info word in petrol on its soft fill is only 4.46:1. */
.vb-note-head { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vb-note-icon { flex: none; width: 20px; height: 20px; color: var(--line); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.vb-note-word { font: 700 12px/16px var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--foreground); }
.vb-note-text { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--foreground); }
.vb-note-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

/* compact: icon, word and sentence on one line (a sidebar, a tool panel); a longer sentence wraps under the word */
.vb-card.vb-note-row { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 8px; padding: 8px 12px; }
.vb-note-row > .vb-note-icon { width: 16px; height: 16px; margin-top: 2px; }
.vb-note-row > .vb-note-text { margin: 0; font-size: 13px; line-height: 20px; }
.vb-note-row .vb-note-word { margin-right: 6px; font-size: 11px; line-height: 20px; }

/* ==================== ProductFamily ==================== */
/* Product family (review 28 C, 28 E; roles final: 1a A, 1b A). The names themselves are .vb-product and
   .vb-wordmark in the core; the palettes are the [data-product] scopes in the core.

   The product word uses the text variant of the product colour (--fly-text, --brain-text),
   which reads on cream and on white at any size, also inside a sentence. */

/* ==================== Progress ==================== */
/* Progress (review 30 K2 pipeline bar, 30 L3 coverage meter)
   Static: nothing moves, nothing loops. Every bar and segment is notched top-left
   (add .vb-notch to the bar or segment element). Only the Working and Demo-ready segments
   have a line (petrol, coral dashes), as the stamps do; the meter is a stone track without a line. */

/* ---- pipeline bar: the three steps, in the shapes of the status stamps ----
   It takes the fixed status colours (10 B), so it looks the same inside every product. */
.vb-prog-pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.vb-prog-step { display: grid; gap: 6px; align-content: start; min-width: 0; }
.vb-prog-seg { display: block; height: 20px; }
.vb-prog-seg.is-tested { --fill: var(--status-tested, var(--brand)); --line: var(--fill); }
/* Working: petrol line and the petrol 7px hatch tile (the gradient of the core .is-hatched) */
.vb-prog-seg.is-working { --line: var(--status-working, var(--brand-deep)); --fill: var(--card);
  --fill-image: linear-gradient(135deg, var(--status-working, var(--brand-deep)) 0 10%, transparent 10% 50%, var(--status-working, var(--brand-deep)) 50% 60%, transparent 60%); --fill-size: 7px 7px; }
.vb-prog-seg.is-demo { --line: var(--status-demo, var(--coral-deep)); --fill: var(--card); border-style: dashed; }
.vb-prog-text { display: grid; gap: 0; padding-top: 4px; border-top: var(--pen-heavy) solid transparent; font-size: 12px; line-height: 16px; color: var(--muted-foreground); min-width: 0; }
.vb-prog-text b { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--foreground); }
/* the step you are on: the heavy pen under its segment, as under the current page */
.vb-prog-step[aria-current="step"] .vb-prog-text { border-top-color: var(--foreground); }
.vb-prog-pipeline.is-page { gap: 6px; }
.vb-prog-pipeline.is-page .vb-prog-seg { height: 24px; }
.vb-prog-pipeline.is-page .vb-prog-text { font-size: 13px; line-height: 18px; padding-top: 6px; }
.vb-prog-pipeline.is-page .vb-prog-text b { font-size: 15px; line-height: 22px; }

/* ---- coverage meter: icon, bar and figure on one line, the label below ----
   Set the value on the meter or the bar: style="--value: 91%".
   Level (5 B): green from 80 %, amber from 50 %, red below. CSS cannot compare a variable,
   so the app sets the class from the value: none (80 % and up), .is-mid (50 to 79 %), .is-low
   (below 50 %), and the label words with it. The thresholds are working values. */
.vb-prog-meter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; align-items: center; min-width: 0; }
.vb-prog-meter > .vb-icon { width: 20px; height: 20px; max-width: none; }
.vb-prog-figure { white-space: nowrap; }
.vb-prog-unit { font-size: 12px; line-height: 16px; font-weight: 600; }
.vb-prog-label { grid-column: 2 / -1; font-size: 13px; line-height: 18px; color: var(--muted-foreground); }
/* the bar on its own: stone track, no line, the level fill inset by 3px. Tall enough for the notch to read on the fill. On a stone ground the track is white. */
.vb-prog-bar { --fill: var(--muted); --line: var(--fill); display: block; height: 22px; padding: 3px; min-width: 48px; }
.vb-prog-fill { display: block; height: 100%; width: var(--value, 0%); max-width: 100%; background: var(--success);
  clip-path: polygon(var(--notch) -1px, calc(100% + 1px) -1px, calc(100% + 1px) calc(100% + 1px), -1px calc(100% + 1px), -1px var(--notch), var(--notch) var(--notch)); }
.vb-prog-meter.is-mid .vb-prog-fill, .vb-prog-bar.is-mid .vb-prog-fill { background: var(--warn); }
.vb-prog-meter.is-low .vb-prog-fill, .vb-prog-bar.is-low .vb-prog-fill { background: var(--danger); }
.vb-prog-bar.is-sm { height: 18px; }
.vb-card.is-quiet .vb-prog-bar, .vb-shell-scene .vb-prog-bar { --fill: var(--card); }
.vb-prog-meter.is-page { column-gap: 12px; }
.vb-prog-meter.is-page > .vb-icon { width: 24px; height: 24px; }
.vb-prog-meter.is-page .vb-prog-bar { height: 26px; }
.vb-prog-meter.is-page .vb-prog-label { font-size: 14px; line-height: 20px; }

/* ==================== StatRow ==================== */
/* StatRow (review 30 D): one dense row of two to four figures, hairline dividers, no boxes.
   Each figure: icon inline, the figure in tabular numerals (.vb-metric), the unit small after it,
   the label below. The row is a size container: under 480px, four figures go two by two.
   .is-compact is the sidebar size: smaller icon and figure, stays on one line down to about 270px. */
.vb-stat-row { container: vb-stat / inline-size; min-width: 0; }
.vb-stat-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min-content, 1fr); margin: 0; padding: 0; list-style: none; }
.vb-stat-item { display: grid; gap: 4px; align-content: start; padding: 2px 16px; border-left: 1px solid var(--hairline); }
.vb-stat-item:first-child { border-left: 0; padding-left: 0; }
.vb-stat-item:last-child { padding-right: 0; }
.vb-stat-fig { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--foreground); }
.vb-stat-fig > .vb-icon { width: 20px; height: 20px; max-width: none; }
.vb-stat-unit { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--foreground); }
.vb-stat-label { font-size: 13px; line-height: 18px; color: var(--muted-foreground); }
/* a figure with a status: a small meter beside it (see Progress) */
.vb-stat-fig > .vb-prog-bar { flex: 1 1 48px; max-width: 120px; margin-left: 4px; }

/* sidebar size */
.vb-stat-row.is-compact .vb-stat-item { padding: 0 6px; gap: 2px; }
.vb-stat-row.is-compact .vb-stat-item:first-child { padding-left: 0; }
.vb-stat-row.is-compact .vb-stat-item:last-child { padding-right: 0; }
.vb-stat-row.is-compact .vb-stat-fig { gap: 4px; }
.vb-stat-row.is-compact .vb-stat-fig > .vb-icon { width: 16px; height: 16px; }
.vb-stat-row.is-compact .vb-metric { font-size: 15px; line-height: 20px; }
.vb-stat-row.is-compact .vb-stat-unit { font-size: 11px; }
.vb-stat-row.is-compact .vb-stat-label { font-size: 12px; line-height: 16px; }

/* narrow: four figures two by two; the divider only between the two columns */
@container vb-stat (max-width: 479px) {
  .vb-stat-row:not(.is-compact) .vb-stat-list:has(> :nth-child(4)) { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .vb-stat-row:not(.is-compact) .vb-stat-list:has(> :nth-child(4)) > .vb-stat-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .vb-stat-row:not(.is-compact) .vb-stat-list:has(> :nth-child(4)) > .vb-stat-item:nth-child(even) { padding-right: 0; }
}

/* ==================== Type ==================== */
/* Type: the three helpers the core does not have yet.
   .vb-type-micro    the micro style of the scale (10/15, 600): the second line inside a compact chip, never a sentence
   .vb-type-tnum     tabular figures, for a column of numbers or a stat row (.vb-metric has them already)
   .vb-type-measure  caps a text block at about 72 characters */
.vb-type-micro { font-size: 10px; line-height: 15px; font-weight: 600; }
.vb-type-tnum { font-variant-numeric: tabular-nums; }
.vb-type-measure { max-width: 66ch; }

/* ==================== Wordmark ==================== */
/* Wordmark (review 27 V): the small mark and the tagline lockup.
   The name itself is .vb-wordmark in the core.

   <span class="vb-mark-icon" role="img" aria-label="VoxelBond"><span>V</span></span>
   The survey frame around one V: favicon, avatar, app icon. Square, 1em wide,
   so font-size is its size (default 32px). Geometry = icons/voxelbond-mark.svg (48 grid). */
.vb-mark-icon {
  --c: var(--foreground);                 /* frame and V */
  --i: 0.0604em;                          /* inset of the frame: 2.9 / 48 */
  --m: 0.2417em;                          /* corner arm: 11.6 / 48 */
  --t: max(1px, 0.0667em);                /* line: 3.2 / 48 */
  --g: linear-gradient(var(--c), var(--c));
  display: inline-grid; place-items: center; flex: none;
  width: 1em; height: 1em; font-size: 32px; line-height: 1;
  color: var(--c);
  background:
    var(--g) left var(--i) top var(--i) / var(--m) var(--t) no-repeat, var(--g) left var(--i) top var(--i) / var(--t) var(--m) no-repeat,
    var(--g) right var(--i) top var(--i) / var(--m) var(--t) no-repeat, var(--g) right var(--i) top var(--i) / var(--t) var(--m) no-repeat,
    var(--g) left var(--i) bottom var(--i) / var(--m) var(--t) no-repeat, var(--g) left var(--i) bottom var(--i) / var(--t) var(--m) no-repeat,
    var(--g) right var(--i) bottom var(--i) / var(--m) var(--t) no-repeat, var(--g) right var(--i) bottom var(--i) / var(--t) var(--m) no-repeat,
    var(--vb-mark-ground, transparent);
}
.vb-mark-icon > span {
  font-family: var(--font-display); font-weight: 700; font-size: 0.5833em; line-height: 1;
  letter-spacing: 0; translate: 0 -0.0135em;    /* centres the cap height in the frame */
}
.vb-mark-icon.is-16 { font-size: 16px; }
.vb-mark-icon.is-24 { font-size: 24px; }
.vb-mark-icon.is-48 { font-size: 48px; }
.vb-mark-icon.is-72 { font-size: 72px; }
/* app icon: the mark on a square of ground. A plain square: the platform cuts its own shape. */
.vb-mark-icon.is-tile { --i: 0.17em; --m: 0.2em; --t: max(1px, 0.055em); --vb-mark-ground: var(--background); }
.vb-mark-icon.is-tile > span { font-size: 0.44em; }
.vb-mark-icon.is-ink { --c: var(--primary-foreground); --vb-mark-ground: var(--primary); }

/* the name with its short tagline under it, aligned on the first letter.
   font-size of the lockup = font-size of the name. */
.vb-mark-lockup { display: inline-grid; justify-items: start; gap: 0.12em; font-size: 40px; }
.vb-mark-lockup > .vb-wordmark { --c: currentColor; font-size: 1em; }   /* the name follows the lockup's colour */
.vb-mark-tagline {
  margin: 0; padding-left: 0.85em;          /* = 0.34em of the name, at 0.4em */
  font: 400 0.4em/1.3 var(--font-sans); color: inherit; white-space: nowrap;
}
