/* Bayton design system - VENDORED from bayton-design ds-bundle @ v1.4.5.
   Do not edit here; re-vendor from source. Fonts self-hosted via /static/fonts.css. */
@import url("/static/fonts.css");

/* ============================================================================
   BAYTON DESIGN LANGUAGE - STYLES
   The canonical self-contained stylesheet: font imports, tokens, and the
   component layer. This is the public CSS entrypoint for tagged releases.
   ========================================================================== */

/* TOKENS */
/* ---- tokens (inlined) ---- */
/* ============================================================================
   BAYTON DESIGN LANGUAGE - TOKENS
   Single source of truth for colour, type, space, radius, motion.

   Reconciled from:
     - gen.bayton.org hub  (warm dark, Raleway display, ghost numerals)
     - KAG/WAG/DAG/CAG Studio  (studio.css: semantic accents, status, fields)
     - bayton.org OG 11ty  (Open Sans body, brand accent palette, light mode)

   Themes are switched by `data-theme` on <html>:
     (none) | "dark"  -> warm dark            (canonical dark)
     "light-cool"     -> neutral light        (CANONICAL light - locked)
     "light-warm"     -> warm light           (reference only, kept for future)
   ========================================================================== */

:root,
[data-theme="dark"] {
  /* - neutrals: warm dark - */
  --canvas:    #131110;
  --canvas-2:  #1a1715;
  --surface:   #201c19;
  --surface-2: #2a2521;
  --field:     var(--surface);
  --field-raised: #27221f;
  --line:      rgba(245, 239, 232, 0.10);
  --line-2:    rgba(245, 239, 232, 0.18);
  --ink:       #f5efe8;
  --ink-dim:   #aba49b;
  --ink-faint: #6f685f;

  /* - accent: bayton orange (constant across every theme) - */
  --accent:      #ff4500;
  --accent-2:    #ff6a33;
  --accent-lo:   #c0360a;
  --accent-soft: rgba(255, 69, 0, 0.13);
  --accent-line: rgba(255, 69, 0, 0.40);

  /* - bayton accent palette - ONE collapsed tier ---------------------------
     The real bayton.org + sysapps values, used for BOTH status and callouts /
     contrast (no separate "soft status" set). Semantics:
       info  -> --blue    success -> --green
       error -> --red     warn / alert -> --accent (orange, per 11ty callout-orange)
     --blood is the deep pressed/secondary orange. */
  --blue:  #0283bd;
  --green: #15B007;
  --red:   #c30000;
  --blood: #ce3800;
  /* status aliases so component CSS can read intent, not colour */
  --ok:   var(--green);
  --err:  var(--red);
  --warn: var(--accent);
  --info: var(--blue);

  /* signature ambient glow behind hero / panels */
  --glow: rgba(255, 69, 0, 0.11);

  /* - type - */
  --display: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;

  /* type scale (display-led, fluid) */
  --fs-display: clamp(2.6rem, 6vw, 4.2rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.3rem);
  --fs-h3: 1.25rem;
  --fs-lede: clamp(1.05rem, 1.5vw, 1.2rem);
  --fs-body: 1.0625rem;   /* 17px */
  --fs-sm: 0.92rem;
  --fs-xs: 0.78rem;
  --fs-kicker: 0.72rem;

  /* - space scale - */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;

  /* - radius - */
  --r-xs: 5px;
  --r-sm: 9px;
  --r-md: 11px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* - motion - */
  --t-fast: 150ms;
  --t-base: 240ms;
  --t-slow: 420ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* - layout - */
  --maxw: 1060px;        /* content container max width */
  --navh: 66px;
  --gutter: 1.6rem;      /* container side padding (desktop) */
  --gutter-sm: 1.1rem;   /* container side padding (phones, <= --bp-sm) */

  /* - breakpoints - THE responsive standard -------------------------------
     One scale for every project. @media can't read custom properties, so use
     the literal px in `@media (max-width: ...)` - these tokens are the reference
     (and usable in JS / container queries). Intents:
       sm  phones          - single column, compact gutters
       md  tablet portrait - tables collapse to cards, 2-col forms become 1-col
       lg  tablet landscape - 3-col grids become 2, sidebars stack
       xl  desktop                                                          */
  --bp-sm: 600px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;

  color-scheme: dark;
}

/* ---- LIGHT · WARM (REFERENCE ONLY - not canonical) ------------------------
   Kept documented for a future warm-light direction. The canonical light theme
   is light-cool below. Warm paper + warm near-black ink. */
[data-theme="light-warm"] {
  --canvas:    #f6f1ea;
  --canvas-2:  #efe8de;
  --surface:   #fffdf9;
  --surface-2: #ffffff;
  --field:     var(--surface);
  --field-raised: #ffffff;
  --line:      rgba(40, 30, 20, 0.12);
  --line-2:    rgba(40, 30, 20, 0.20);
  --ink:       #1f1a15;
  --ink-dim:   #6b6259;
  --ink-faint: #9c9389;

  --accent-soft: rgba(255, 69, 0, 0.10);
  --accent-line: rgba(255, 69, 0, 0.42);
  --glow: rgba(255, 69, 0, 0.08);

  color-scheme: light;
}

/* ---- LIGHT · COOL (CANONICAL light) - studio's existing neutral light ------ */
[data-theme="light-cool"] {
  --canvas:    #e9e9ea;
  --canvas-2:  #f1f1f2;
  --surface:   #fafafa;
  --surface-2: #ffffff;
  --field:     var(--surface-2);
  --field-raised: #ffffff;
  --line:      rgba(20, 20, 22, 0.11);
  --line-2:    rgba(20, 20, 22, 0.22);
  --ink:       #18181a;
  --ink-dim:   #5a5a5e;
  --ink-faint: #9a9a9e;

  --accent-soft: rgba(255, 69, 0, 0.10);
  --accent-line: rgba(255, 69, 0, 0.42);
  --glow: rgba(255, 69, 0, 0.07);

  color-scheme: light;
}

/* COMPONENTS */


.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal; font-style: normal; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block;
  white-space: nowrap; word-wrap: normal; direction: ltr;
  -webkit-font-feature-settings: "liga"; -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(130% 100% at 84% -12%, var(--glow), transparent 60%),
    var(--canvas);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--ui);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

/* Form controls do not inherit typography from the page by default - the UA
   stylesheet gives button/input/select/textarea their own font, which wins over
   inheritance. Inherit the UI font once here so every control matches the body
   without each component re-declaring font-family. (Family only, not the `font`
   shorthand, so component-level size/weight/line-height are untouched.) */
button, input, optgroup, select, textarea { font-family: inherit; }

a { color: var(--accent); text-decoration: none; }

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

/* ---------------------------------------------------------------- typography */
.text-display,
.display,
h1.text-display,
h1.display {
  font-family: var(--display); font-weight: 700;
  font-size: var(--fs-display); line-height: 1.02;
  letter-spacing: -0.015em; text-wrap: balance; margin: 0;
}
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.01em; line-height: 1.06; }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; }

.text-lede,
.lede { color: var(--ink-dim); font-size: var(--fs-lede); max-width: 46ch; text-wrap: pretty; }

/* kicker / eyebrow - mono, uppercase, orange */
.eyebrow,
.kicker {
  font-family: var(--mono); font-size: var(--fs-kicker); font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 1rem;
}
.eyebrow.sm, .kicker.sm { font-size: 0.64rem; letter-spacing: 0.18em; }
.eyebrow.lg, .kicker.lg { font-size: var(--fs-sm); letter-spacing: 0.24em; }
.eyebrow.muted, .kicker.muted { color: var(--ink-dim); letter-spacing: 0.22em; }

/* mono label / caption */
.mono-label,
.label-mono {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* ghost numeral - oversized, near-invisible display digit */
.ghost-number,
.ghost-num {
  font-family: var(--display); font-weight: 800; line-height: 1;
  color: var(--ink); opacity: 0.05; pointer-events: none; user-select: none;
}

/* ---------------------------------------------------------------- buttons */
.button,
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--ui); font-weight: 600; font-size: var(--fs-sm);
  padding: 0.8rem 1.4rem; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-fast), background var(--t-fast),
              border-color var(--t-fast), color var(--t-fast);
}
.button:active, .btn:active { transform: scale(0.98); }
.button .button-arrow, .btn .arr { transition: transform var(--t-fast); }
.button:hover .button-arrow, .btn:hover .arr { transform: translateX(3px); }

.button.primary, .btn-primary { background: var(--accent); color: #fff; }
.button.primary:hover, .btn-primary:hover { background: var(--accent-2); }

.button.ghost, .btn-ghost { color: var(--ink-dim); border-color: var(--line); background: transparent; }
.button.ghost:hover, .btn-ghost:hover { color: var(--ink); border-color: var(--line-2); }

.button.sm, .btn-sm { padding: 0.55rem 0.95rem; font-size: var(--fs-xs); border-radius: var(--r-sm); }
.button.lg, .btn-lg, .btn.lg { padding: 1rem 1.75rem; font-size: 1rem; border-radius: var(--r-lg); }
.button.block, .btn.block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------- form fields */
.field { margin-bottom: 1.7rem; }
.field-label {
  display: block; font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: 0.55rem;
}
.field-label .opt { color: var(--ink-faint); text-transform: none; letter-spacing: 0; font-weight: 400; }

.input,
.text-input, .select-input {
  width: 100%; background: var(--field, var(--surface)); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-sizing: border-box; min-height: 46px; line-height: 1.35;
  padding: 0.7rem 0.95rem; font-family: var(--ui); font-size: 0.98rem; outline: none;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.surface-card :is(.input, .text-input, .select-input),
.card :is(.input, .text-input, .select-input),
.step-card :is(.input, .text-input, .select-input),
.flow-step :is(.input, .text-input, .select-input),
.qa-row :is(.input, .text-input, .select-input),
.qa :is(.input, .text-input, .select-input),
.cta-card :is(.input, .text-input, .select-input),
.filter-bar :is(.input, .text-input, .select-input),
.filters :is(.input, .text-input, .select-input),
.modal :is(.input, .text-input, .select-input),
.data-table-wrap :is(.input, .text-input, .select-input),
.table-wrap :is(.input, .text-input, .select-input),
.tile :is(.input, .text-input, .select-input),
.service-tile :is(.input, .text-input, .select-input),
.feature-tile :is(.input, .text-input, .select-input),
.bento-tile :is(.input, .text-input, .select-input),
.price-card :is(.input, .text-input, .select-input),
.health-card :is(.input, .text-input, .select-input),
.status-card :is(.input, .text-input, .select-input),
.comparison-card :is(.input, .text-input, .select-input),
.compare-col :is(.input, .text-input, .select-input),
.demo :is(.input, .text-input, .select-input) {
  background: var(--field-raised, var(--field, var(--surface)));
}
.input::placeholder, .text-input::placeholder { color: var(--ink-faint); }
.input:is([type="date"], [type="time"]),
.text-input:is([type="date"], [type="time"]) {
  min-height: 44px; line-height: 1.2; color-scheme: dark;
}
html:is([data-theme="light-cool"], [data-theme="light-warm"]) .input:is([type="date"], [type="time"]),
html:is([data-theme="light-cool"], [data-theme="light-warm"]) .text-input:is([type="date"], [type="time"]) {
  color-scheme: light;
}
.input:is([type="date"], [type="time"])::-webkit-calendar-picker-indicator,
.text-input:is([type="date"], [type="time"])::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: 0.65;
}
.input:focus, .select-input:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input.mono, .text-input.mono { font-family: var(--mono); font-size: 0.9rem; }

.range-group,
.range-field {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2);
}
.range-control, .range-field-control { width: auto; min-width: 8rem; flex: 0 1 9rem; }
.range-separator, .range-field-sep { color: var(--ink-dim); font-size: var(--fs-sm); }
@media (max-width: 420px) {
  .range-control, .range-field-control { flex-basis: 100%; }
  .range-separator, .range-field-sep { width: 100%; text-align: center; }
}

.slider-control, .slider-field { display: grid; gap: var(--sp-2); }
.slider-control .field-label, .slider-field .field-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3);
  margin-bottom: 0;
}
.slider-output,
.slider-value {
  font-family: var(--display); font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: 0; text-transform: none; color: var(--ink);
}
.input-range,
.range-input {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  border-radius: var(--r-pill); outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--fill, 0%), var(--surface-2) var(--fill, 0%), var(--surface-2) 100%);
}
.input-range::-webkit-slider-thumb,
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent); border: 3px solid var(--canvas);
  box-shadow: 0 0 0 1px var(--accent);
}
.input-range::-moz-range-thumb,
.range-input::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
  border: 3px solid var(--canvas); box-shadow: 0 0 0 1px var(--accent);
}
.input-range:focus-visible, .range-input:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
.input-range:disabled, .range-input:disabled { opacity: 0.45; cursor: not-allowed; }

.input.select,
.select-input {
  -webkit-appearance: none; appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 0.95rem center;
}

/* segmented option cards */
.choice-grid, .seg { display: grid; gap: 0.6rem; }
.choice-grid.cols-2, .seg.cols-2 { grid-template-columns: 1fr 1fr; }
.choice-grid.cols-3, .seg.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .choice-grid.cols-3, .seg.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .choice-grid.cols-2, .choice-grid.cols-3, .seg.cols-2, .seg.cols-3 { grid-template-columns: 1fr; } }
/* wrap variant - content-sized chips that flow; the multi-select layout.
   (.opt-card serves both: single-select = one .on; multi-select = .seg.wrap,
    several .on at once, each a <button aria-pressed>.) */
.choice-grid.wrap, .seg.wrap { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.choice-grid.wrap .choice-card, .seg.wrap .opt-card { min-width: 80px; }

.choice-card,
.opt-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 0.85rem 2.35rem 0.85rem 0.95rem; text-align: left; background: var(--surface); cursor: pointer;
  display: flex; flex-direction: column; gap: 0.15rem;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast), transform var(--t-fast);
}
.choice-card:hover, .opt-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.choice-title, .opt-card .t { font-weight: 600; font-size: 0.92rem; }
.choice-subtitle, .opt-card .s { font-size: 0.76rem; color: var(--ink-dim); }
.choice-card.selected, .opt-card.on { border-color: var(--accent); background: var(--accent-soft); }
.choice-check, .opt-card .check {
  position: absolute; top: 0.6rem; right: 0.6rem; width: 16px; height: 16px;
  border-radius: 50%; background: var(--accent); display: grid; place-items: center;
  opacity: 0; transform: scale(0.5); transition: all var(--t-fast) var(--ease-out);
}
.choice-check svg, .opt-card .check svg { width: 9px; height: 9px; }
.choice-card.selected .choice-check, .opt-card.on .check { opacity: 1; transform: scale(1); }

/* toggle switch */
.toggle-row,
.toggle-line {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.65rem 0; cursor: pointer; user-select: none;
}
.toggle-row .toggle-label, .toggle-line .lab { font-weight: 600; font-size: 0.92rem; }
.toggle-row .toggle-subtitle, .toggle-line .sub { font-size: 0.78rem; color: var(--ink-dim); font-weight: 400; margin-top: 1px; }
.toggle-switch,
.tw {
  width: 50px; height: 28px; flex-shrink: 0; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line-2); position: relative;
  transition: background var(--t-base) var(--ease), border-color var(--t-base);
}
.toggle-switch::after,
.tw::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--ink-dim);
  transition: transform var(--t-base) var(--ease-out), background var(--t-base);
}
.toggle-row.selected .toggle-switch, .toggle-line.on .tw { background: var(--accent); border-color: var(--accent); }
.toggle-row.selected .toggle-switch::after, .toggle-line.on .tw::after { transform: translateX(22px); background: #fff; }

/* segmented selection control */
.segmented-control,
.mode-switch {
  --mode-switch-radius: var(--r-pill);
  display: inline-flex; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--mode-switch-radius); padding: 3px; gap: 2px;
}
.segmented-control.square, .mode-switch.square { --mode-switch-radius: var(--r-md); }
.segmented-control button,
.mode-switch button {
  font-family: var(--ui); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.4rem 0.9rem; border: 0; background: transparent;
  border-radius: max(0px, calc(var(--mode-switch-radius) - 3px));
  color: var(--ink-dim); cursor: pointer;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.segmented-control button.selected, .mode-switch button.on { background: var(--ink); color: var(--canvas); }
.segmented-control button:not(.selected):hover, .mode-switch button:not(.on):hover { color: var(--ink); }

/* colour swatch control */
.swatch-row { display: flex; gap: 0.55rem; flex-wrap: wrap; align-items: center; }
.swatch {
  width: 38px; height: 38px; border-radius: var(--r-md); border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; padding: 0;
  transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast);
}
.swatch:hover { transform: scale(1.08); }
.swatch.selected, .swatch.on { border-color: var(--ink); transform: scale(1.08); }

/* ---------------------------------------------------------------- cards */
.surface-card,
.card {
  position: relative; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: 2.1rem;
  transition: border-color var(--t-base), transform var(--t-base);
}
.surface-card:hover, .card:hover { border-color: var(--line-2); transform: translateY(-2px); }

/* numbered step / flow card */
.step-card,
.flow-step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem 1.7rem; transition: border-color var(--t-base), transform var(--t-base);
}
.step-card:hover, .flow-step:hover { border-color: var(--line-2); transform: translateY(-2px); }
.step-number,
.flow-n {
  font-family: var(--display); font-weight: 800; font-size: 2.3rem; line-height: 0.9;
  color: var(--accent); opacity: 0.92; min-width: 2.2ch;
}
.step-card h3, .flow-step h3 { margin: 0.15rem 0 0.4rem; font-size: 1.15rem; }
.step-card p, .flow-step p { margin: 0; color: var(--ink-dim); font-size: 0.97rem; }
.step-card.stack, .flow-step.stack { grid-template-columns: 1fr; gap: 0.8rem; }
.step-card.stack .step-number, .flow-step.stack .flow-n { min-width: 0; }

/* Q&A row with hairline dividers */
.qa-row, .qa { padding: 1.55rem 0; border-bottom: 1px solid var(--line); }
.qa-row h3, .qa h3 { margin: 0 0 0.5rem; font-size: 1.18rem; color: var(--ink); }
.qa-row p, .qa p { margin: 0; color: var(--ink-dim); font-size: 0.97rem; }

/* accent-glow CTA panel */
.cta-card,
.cta-panel {
  padding: 1.6rem 1.7rem; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 58%), var(--surface);
}
.cta-card h3, .cta-panel h3 { margin: 0 0 0.4rem; color: var(--ink); }
.cta-card p, .cta-panel p { margin: 0; color: var(--ink-dim); }

/* ---------------------------------------------------------------- callouts */
/* The bayton.org callout, reproduced faithfully: signature asymmetric radius,
   thick coloured left border, a Material Symbols icon and an underline bar on
   the heading. Two heading sizes (.callout-heading / .callout-heading-small).
   Colour set by variant via --c. */
.notice,
.callout {
  --c: var(--accent);
  padding: 1.25rem 1.4rem; margin: 1.25rem 0;
  border-radius: var(--r-lg);                 /* uniform - was asymmetric 20/10/10/50 */
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--c);            /* the retained signature: coloured left rule */
}
.notice > :last-child, .callout > :last-child { margin-bottom: 0; }
.notice p:not([class]), .callout p:not([class]) { margin: 0 0 0.6rem; color: var(--ink-dim); font-size: 0.95rem; }

/* Inline / compact variant - icon + message + action on a single centred row
   (e.g. a stale-load error banner). Overrides the base block padding/margin. */
.notice.inline,
.callout-inline {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); margin: 0;
}
.notice.inline {
  border: 0; border-radius: 0; background: transparent; color: var(--ink);
}

.notice-title,
.notice-title.sm,
.callout-heading,
.callout-heading-small {
  display: block; width: fit-content;
  font-family: var(--display); font-weight: 600; color: var(--c); margin: 0 0 0.7rem;
}
.notice-title, .callout-heading { font-size: 24px; }              /* primary */
.notice-title.sm, .callout-heading-small { font-size: 19px; }        /* secondary */
.notice-title .material-symbols-outlined,
.notice-title.sm .material-symbols-outlined,
.callout-heading .material-symbols-outlined,
.callout-heading-small .material-symbols-outlined {
  font-size: 1.05em; vertical-align: -0.12em; margin-right: 0.3rem;
}
/* the underline bar BENEATH the heading text (as wide as the text) */
.notice-title::after,
.notice-title.sm::after,
.callout-heading::after,
.callout-heading-small::after {
  content: ''; display: block; height: 4px;
  background: var(--c); border-radius: 5px; margin-top: 0.6rem;
}
.notice-title.sm::after, .callout-heading-small::after { height: 2px; margin-top: 0.35rem; }
.notice > .notice-title:last-child,
.notice > .notice-title.sm:last-child,
.notice > .callout-heading:last-child,
.notice > .callout-heading-small:last-child,
.callout > .notice-title:last-child,
.callout > .notice-title.sm:last-child,
.callout > .callout-heading:last-child,
.callout > .callout-heading-small:last-child { margin-bottom: 0; }

.notice.info,
.callout.info,  .callout.callout-blue   { --c: var(--blue); }
.notice.success, .notice.ok,
.callout.success, .callout.ok, .callout.callout-green { --c: var(--green); }
.notice.danger, .notice.err,
.callout.danger, .callout.err, .callout.callout-red    { --c: var(--red); }
.notice.warning, .notice.warn,
.callout.warning, .callout.warn, .callout.callout-orange { --c: var(--accent); }

/* compact dark pill callout (callout-small) */
.notice.compact,
.callout-small {
  border: 0; border-radius: var(--r-sm); padding: 0.4rem 0.2rem; margin: 1rem 0 0;
  background: var(--ink); color: var(--canvas);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.notice.compact p, .callout-small p { margin: 0; padding: 0.3rem 0.7rem; color: var(--canvas); font-size: 1rem; }
.notice.compact .material-symbols-outlined, .callout-small .material-symbols-outlined { font-size: 1.1em; padding-left: 0.5rem; }

/* ---------------------------------------------------------------- nav chips */
.chip {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim); background: transparent; border: 1px solid transparent;
  border-radius: var(--r-sm); padding: 0.5rem 0.8rem; cursor: pointer; white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.chip .chip-n { color: var(--ink-faint); font-weight: 600; }
.chip:hover { color: var(--ink); background: var(--surface); }
.chip.is-current { color: var(--ink); background: var(--surface); border-color: var(--line-2); }
.chip.is-current .chip-n { color: var(--accent); }

/* .badge remains as a tag-shaped compatibility alias. */

.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: inline-block;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent);
  animation: livepulse 2.4s var(--ease) infinite;
}
@keyframes livepulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* stat line */
.stat { color: var(--ink-faint); font-size: 0.95rem; font-family: var(--mono); letter-spacing: 0.02em; }
.stat strong { color: var(--accent); font-weight: 700; font-size: 1.15rem; padding-right: 0.15em; font-family: var(--display); }

/* section band header - big, bold, spacious */
.band-head { margin: 0 0 1.7rem; }
.band-head h2 { margin: 0.55rem 0 0; font-size: var(--fs-h2); text-wrap: balance; }
.band-head p.band-sub { margin: 0.7rem 0 0; color: var(--ink-dim); max-width: 58ch; }

/* ===========================================================================
   B + C COMPONENTS - harvested from sysapps (data) and 11ty (editorial),
   restyled into the Studio language (surface fills, hairline borders, accent
   focus, mono kickers, the radius + motion scales).
   =========================================================================== */

/* ---------------------------------------------------------------- buttons (extra) */
.button.text,
.btn-text {
  background: transparent; border: 0; color: var(--ink-dim);
  padding: 0.6rem 0.4rem; font-weight: 600; font-size: var(--fs-sm); cursor: pointer;
}
.button.text:hover, .btn-text:hover { color: var(--accent); }
.button.icon,
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  padding: 0; gap: 0; font-size: inherit; font-weight: inherit; white-space: normal;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  color: var(--ink-dim); cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.button.icon:hover, .icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.button.icon .material-symbols-outlined, .icon-btn .material-symbols-outlined { font-size: 20px; }
.button.add,
.add-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%;
  padding: 0.7rem 1rem; font-family: var(--ui); font-weight: 600; font-size: var(--fs-sm);
  min-height: auto; white-space: normal;
  color: var(--ink-dim); background: transparent; cursor: pointer;
  border: 1px dashed var(--line-2); border-radius: var(--r-md);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.button.add:hover, .add-btn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.button.add .material-symbols-outlined, .add-btn .material-symbols-outlined { font-size: 24px; line-height: 1; }
.button.close,
.x-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none;
  padding: 0; gap: 0; font-size: inherit; font-weight: inherit; line-height: 1; white-space: normal;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent;
  color: var(--ink-faint); cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.button.close:hover, .x-btn:hover { color: var(--err); border-color: color-mix(in srgb, var(--err) 45%, transparent); background: color-mix(in srgb, var(--err) 10%, transparent); }

/* ---------------------------------------------------------------- modal footer */
.dialog-actions,
.modal-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: var(--sp-2);
}
.dialog-actions.start, .modal-footer.start { justify-content: flex-start; }
.dialog-actions.between, .modal-footer.between { justify-content: space-between; }

/* ---------------------------------------------------------------- menu + vertical nav */
.menu {
  display: grid; gap: 2px; min-width: min(220px, 100%);
  padding: var(--sp-1); border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface-2); box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  overflow: hidden;
}
.menu-item, .nav-item {
  width: 100%; border: 0; background: transparent; color: var(--ink-dim); cursor: pointer;
  display: flex; align-items: center; gap: var(--sp-2); text-align: left;
  font-family: var(--ui); font-size: 0.84rem; font-weight: 600; line-height: 1.2;
  transition: color var(--t-fast), background var(--t-fast);
}
.menu-item { padding: 0.55rem 0.65rem; border-radius: var(--r-sm); }
.menu-item .material-symbols-outlined, .nav-item .material-symbols-outlined {
  flex: none; font-size: 18px;
}
.menu-item:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--surface); color: var(--ink);
}
.menu-item.is-active { background: var(--accent-soft); color: var(--accent); }
.menu-item.is-danger { color: var(--err); }
.menu-item.is-danger:hover:not(:disabled):not([aria-disabled="true"]) {
  background: color-mix(in srgb, var(--err) 10%, transparent); color: var(--err);
}
.menu-divider { height: 1px; margin: var(--sp-1) 0; background: var(--line); }

.nav-list { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nav-item { padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm); }
.nav-item:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--surface); color: var(--ink);
}
.nav-item.is-active { background: var(--accent-soft); color: var(--accent); }

/* ---------------------------------------------------------------- marketing site header */
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; z-index: 90;
  width: var(--scroll-progress, 0%); height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--accent-lo), var(--accent), var(--accent-2));
}
.site-header {
  position: sticky; top: 0; z-index: 80;
  min-height: var(--navh); border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
}
.site-header-inner {
  max-width: var(--maxw); min-height: var(--navh); margin: 0 auto;
  padding: 0 var(--gutter); display: flex; align-items: center; gap: var(--sp-4);
}
.site-header .brand,
.site-header-brand {
  flex: none; display: inline-flex; align-items: center; min-width: 0;
  color: var(--ink); text-decoration: none;
}
.site-header .brand:hover,
.site-header-brand:hover { color: var(--accent); }
.site-nav {
  margin-left: auto; display: flex; align-items: center; justify-content: flex-end;
  gap: var(--sp-1); min-width: 0;
}
.site-nav a {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0.55rem 0.7rem; border-radius: var(--r-sm);
  color: var(--ink-dim); font-family: var(--ui); font-size: var(--fs-sm);
  font-weight: 600; line-height: 1.1; text-decoration: none;
  transition: color var(--t-fast), background var(--t-fast);
}
.site-nav a:hover { color: var(--ink); background: var(--surface); }
.site-nav a.is-current, .site-nav a[aria-current="location"] { color: var(--ink); }
.site-nav a.is-current::after,
.site-nav a[aria-current="location"]::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.25rem;
  height: 2px; border-radius: var(--r-pill); background: var(--accent);
}
.site-nav .button, .site-nav .btn { margin-left: var(--sp-2); }
.nav-toggle {
  display: none; place-items: center; width: 42px; height: 42px; flex: none;
  margin-left: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: transparent; color: var(--ink-dim); cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] {
  color: var(--ink); border-color: var(--line-2); background: var(--surface);
}
.nav-toggle .material-symbols-outlined { font-size: 22px; }
@media (max-width: 1024px) {
  .site-header-inner { flex-wrap: wrap; align-content: center; padding: 0 var(--gutter-sm); }
  .nav-toggle { display: grid; }
  .site-nav {
    order: 3; display: none; width: 100%; margin-left: 0; padding: 0 0 var(--sp-3);
    flex-direction: column; align-items: stretch; gap: var(--sp-1);
  }
  .site-header.is-open .site-nav,
  .site-header:has(.nav-toggle[aria-expanded="true"]) .site-nav { display: flex; }
  .site-nav a { justify-content: flex-start; min-height: 44px; }
  .site-nav .button, .site-nav .btn { margin: var(--sp-2) 0 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav a, .nav-toggle { transition: none; }
}

/* ---------------------------------------------------------------- fields (extra) */
.field-grid, .field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 600px) { .field-grid, .field-row-2 { grid-template-columns: 1fr; } }
.field-error, .err-hint { color: var(--err); font-size: var(--fs-xs); margin: 0.4rem 0 0; }
.hint { color: var(--ink-faint); font-size: var(--fs-xs); margin: 0.4rem 0 0; }
.hint.info, .hint.success, .hint.ok, .hint.warning, .hint.warn, .hint.danger, .hint.err,
.hint-info, .hint-ok, .hint-warn, .hint-err {
  display: flex; align-items: flex-start; gap: var(--sp-2); width: 100%; box-sizing: border-box;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md);
  color: var(--ink-dim); font-size: inherit;
}
.hint.info, .hint-info { background: color-mix(in srgb, var(--info) 10%, transparent); }
.hint.success, .hint.ok, .hint-ok { background: color-mix(in srgb, var(--ok) 11%, transparent); }
.hint.warning, .hint.warn, .hint-warn { background: var(--accent-soft); }
.hint.danger, .hint.err, .hint-err { background: color-mix(in srgb, var(--err) 10%, transparent); }
.hint.info .material-symbols-outlined,
.hint.success .material-symbols-outlined,
.hint.ok .material-symbols-outlined,
.hint.warning .material-symbols-outlined,
.hint.warn .material-symbols-outlined,
.hint.danger .material-symbols-outlined,
.hint.err .material-symbols-outlined,
.hint-info .material-symbols-outlined,
.hint-ok .material-symbols-outlined,
.hint-warn .material-symbols-outlined,
.hint-err .material-symbols-outlined {
  flex: none; font-size: 20px; line-height: 1.1;
}
.hint.info .material-symbols-outlined, .hint-info .material-symbols-outlined { color: var(--info); }
.hint.success .material-symbols-outlined, .hint.ok .material-symbols-outlined, .hint-ok .material-symbols-outlined { color: var(--ok); }
.hint.warning .material-symbols-outlined, .hint.warn .material-symbols-outlined, .hint-warn .material-symbols-outlined { color: var(--accent); }
.hint.danger .material-symbols-outlined, .hint.err .material-symbols-outlined, .hint-err .material-symbols-outlined { color: var(--err); }
.password-field, .pw-wrap { position: relative; }
.password-field .input, .pw-wrap .text-input { padding-right: 3rem; }
.password-toggle,
.pw-eye {
  position: absolute; top: 50%; right: 0.5rem; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--ink-faint); cursor: pointer; padding: 0.3rem;
}
.password-toggle:hover, .pw-eye:hover { color: var(--ink); }
.dropzone,
.drop {
  display: grid; place-items: center; gap: 0.4rem; text-align: center;
  padding: 1.6rem; border: 1px dashed var(--line-2); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink-dim); cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.dropzone:hover, .drop:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.dropzone .material-symbols-outlined, .drop .material-symbols-outlined { font-size: 28px; color: var(--ink-faint); }

/* ---------------------------------------------------------------- tags & pills */
/* One system: .tag = squared chip, .pill = fully-rounded. Status via modifiers
   that read the single accent palette. (.badge remains a tag-shaped alias.) */
.label-chip, .tag, .pill, .badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.3rem 0.6rem; white-space: nowrap; line-height: 1;
  border: 1px solid var(--line-2); color: var(--ink-dim); background: var(--surface);
}
.label-chip.tag, .tag, .badge { border-radius: var(--r-sm); }
.label-chip.pill, .pill { border-radius: var(--r-pill); letter-spacing: 0.06em; }
.label-chip.sentence-case, .pill.neutral {
  color: var(--ink-dim); border-color: var(--line-2); background: var(--surface);
  text-transform: none; font-weight: 500;
}
.label-chip.lg, .pill.lg { padding: 0.45rem 0.9rem; font-size: 0.72rem; letter-spacing: 0.04em; }
.label-chip.micro, .tag.micro {
  padding: 0.25rem 0.5rem; border-radius: 6px; letter-spacing: 0.08em;
  color: var(--ink-faint); border-color: var(--line); background: transparent;
}
/* status / intent variants (work on both .tag and .pill) */
.label-chip.accent, .tag.accent, .pill.accent, .badge.accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.label-chip.info, .tag.info, .pill.info, .badge.info { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 40%, transparent); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.label-chip.success, .label-chip.ok, .tag.success, .tag.ok, .pill.success, .pill.ok, .badge.success, .badge.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 42%, transparent); background: color-mix(in srgb, var(--green) 13%, transparent); }
.label-chip.warning, .label-chip.warn, .tag.warning, .tag.warn, .pill.warning, .pill.warn, .badge.warning, .badge.warn { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.label-chip.danger, .label-chip.err, .tag.danger, .tag.err, .pill.danger, .pill.err, .badge.danger, .badge.err { color: var(--red); border-color: color-mix(in srgb, var(--red) 42%, transparent); background: color-mix(in srgb, var(--red) 12%, transparent); }
.label-chip.outline, .label-chip.ghost,
.tag.outline, .tag.ghost,
.pill.outline, .pill.ghost,
.badge.outline, .badge.ghost {
  background: transparent;
}
/* Android version / API-level pill - tabular numerals so digits line up.
   (The bayton.org/sysapps version pill.) */
.label-chip.api, .label-chip.version, .pill.api, .pill.version {
  color: var(--blue); font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--blue) 14%, transparent);
  border-color: color-mix(in srgb, var(--blue) 30%, transparent);
}
/* android glyph baked into the version pill (matches bayton.org) */
.label-chip.version::before, .pill.version::before {
  content: "android"; font-family: "Material Symbols Outlined";
  font-feature-settings: "liga"; -webkit-font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  font-size: 1.15em; line-height: 1; margin-right: 0.1em;
}
/* dark blue for legibility - covers default-dark (no data-theme) and explicit dark,
   excludes the two light themes */
html:not([data-theme="light-cool"]):not([data-theme="light-warm"]) .pill.api,
html:not([data-theme="light-cool"]):not([data-theme="light-warm"]) .label-chip.api,
html:not([data-theme="light-cool"]):not([data-theme="light-warm"]) .label-chip.version,
html:not([data-theme="light-cool"]):not([data-theme="light-warm"]) .pill.version {
  color: #5fb6dd;
  background: color-mix(in srgb, #5fb6dd 13%, transparent);
  border-color: color-mix(in srgb, #5fb6dd 30%, transparent);
}

/* removable filter chip */
.filter-chip,
.chip-removable {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 600;
  padding: 0.3rem 0.35rem 0.3rem 0.7rem; border-radius: var(--r-pill);
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
/* crisp, optically-centred - drawn in CSS (no glyph metrics to fight) */
.filter-chip .filter-chip-remove,
.chip-removable .x {
  position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 0; cursor: pointer; font-size: 0; padding: 0;
}
.filter-chip .filter-chip-remove::before, .filter-chip .filter-chip-remove::after,
.chip-removable .x::before, .chip-removable .x::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 8px; height: 1.5px;
  background: #fff; border-radius: 1px;
}
.filter-chip .filter-chip-remove::before, .chip-removable .x::before { transform: translate(-50%, -50%) rotate(45deg); }
.filter-chip .filter-chip-remove::after, .chip-removable .x::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* universal icon alignment: any Material Symbol sitting inline in a flex
   control (button, pill, tag, chip) centres on the text cap-height. */
.button .material-symbols-outlined,
.btn .material-symbols-outlined,
.label-chip .material-symbols-outlined,
.tag .material-symbols-outlined,
.pill .material-symbols-outlined,
.badge .material-symbols-outlined,
.chip .material-symbols-outlined { font-size: 1.1em; line-height: 1; }

/* shared keyboard-focus ring for interactive controls */
.button:focus-visible, .btn:focus-visible, .btn-text:focus-visible, .icon-btn:focus-visible, .add-btn:focus-visible,
.x-btn:focus-visible, .chip:focus-visible, .filter-chip .filter-chip-remove:focus-visible, .chip-removable .x:focus-visible, .swatch:focus-visible,
.choice-card:focus-visible, .opt-card:focus-visible, .toggle-row:focus-visible, .toggle-line:focus-visible, .segmented-control button:focus-visible, .mode-switch button:focus-visible,
.tabs a:focus-visible, .pager a:focus-visible, .site-nav a:focus-visible, .copy-btn:focus-visible, .search-submit:focus-visible,
.menu-item:focus-visible, .nav-item:focus-visible {
  outline: 2px solid var(--accent-line); outline-offset: 2px; border-radius: var(--r-sm);
}

/* ---------------------------------------------------------------- status / message blocks */
/* Compact inline states - distinct from prose callouts. */
.message,
.msg {
  display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start;
  padding: 0.85rem 1rem; border-radius: var(--r-md); font-size: var(--fs-sm);
  border: 1px solid var(--c, var(--line-2)); background: color-mix(in srgb, var(--c, var(--accent)) 8%, var(--surface));
  color: var(--ink-dim);
}
.message .material-symbols-outlined, .msg .material-symbols-outlined { color: var(--c, var(--accent)); font-size: 20px; }
.message strong, .msg strong { color: var(--ink); font-weight: 700; }
.message.info, .msg.info { --c: var(--blue); }
.message.success, .message.ok, .msg.success, .msg.ok { --c: var(--green); }
.message.warning, .message.warn, .msg.warning, .msg.warn { --c: var(--accent); }
.message.danger, .message.err, .msg.danger, .msg.err { --c: var(--red); }
/* empty state */
.empty-state {
  display: grid; place-items: center; gap: 0.6rem; text-align: center;
  padding: 2.5rem 1.5rem; border: 1px dashed var(--line-2); border-radius: var(--r-lg);
  color: var(--ink-dim); background: var(--surface);
}
.empty-state .material-symbols-outlined { font-size: 40px; color: var(--ink-faint); }
.empty-state h3 { margin: 0; color: var(--ink); }

/* ---------------------------------------------------------------- data table */
.data-table-wrap,
.table-wrap {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  overflow-x: auto;
}
table.data-table, table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data-table.traditional, table.data.traditional { min-width: 760px; }
table.data-table thead th,
table.data thead th {
  position: sticky; top: 0; background: var(--surface-2); z-index: 1;
  text-align: left; padding: 0.7rem 0.95rem; font-family: var(--mono);
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim); border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
table.data-table tbody td, table.data tbody td { padding: 0.7rem 0.95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data-table tbody tr:last-child td, table.data tbody tr:last-child td { border-bottom: 0; }
table.data-table tbody tr:hover, table.data tbody tr:hover { background: var(--canvas-2); }
table.data-table td .secondary-text, table.data td .secondary { display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-faint); margin-top: 2px; }
table.data-table td a, table.data td a { color: var(--ink); border-bottom: 1px solid transparent; }
table.data-table td a:hover, table.data td a:hover { color: var(--accent); border-bottom-color: var(--accent); }
table.data-table th.numeric, table.data-table td.numeric,
table.data-table th.num, table.data-table td.num,
table.data th.numeric, table.data td.numeric,
table.data th.num, table.data td.num {
  text-align: right; font-variant-numeric: tabular-nums;
}
/* sortable header */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--ink); }
.sort-indicator, .sort-ind { color: var(--ink-faint); font-size: 0.95rem; line-height: 1; vertical-align: middle; margin-left: 0.3rem; }
.sort-indicator.active, .sort-ind.on { color: var(--accent); }
/* mobile: collapse rows to labelled cards */
@media (max-width: 768px) {
  table.data-table thead, table.data thead { display: none; }
  table.data-table, table.data-table tbody, table.data-table tr, table.data-table td, table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data-table tr, table.data tr { border: 1px solid var(--line); border-radius: var(--r-md); margin: 0.6rem; }
  table.data-table td, table.data td { border: 0; display: grid; grid-template-columns: 40% 1fr; gap: 0.5rem; }
  table.data-table td::before, table.data td::before { content: attr(data-label); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
  table.data-table td.numeric::before, table.data-table td.num::before,
  table.data td.numeric::before, table.data td.num::before { text-align: left; }
  table.data-table.traditional, table.data.traditional { display: table; width: max-content; min-width: 100%; }
  table.data-table.traditional thead, table.data.traditional thead { display: table-header-group; }
  table.data-table.traditional tbody, table.data.traditional tbody { display: table-row-group; }
  table.data-table.traditional tr, table.data.traditional tr { display: table-row; border: 0; border-radius: 0; margin: 0; width: auto; }
  table.data-table.traditional th,
  table.data-table.traditional td,
  table.data.traditional th,
  table.data.traditional td { display: table-cell; width: auto; }
  table.data-table.traditional td, table.data.traditional td { border-bottom: 1px solid var(--line); }
  table.data-table.traditional tbody tr:last-child td, table.data.traditional tbody tr:last-child td { border-bottom: 0; }
  table.data-table.traditional td::before, table.data.traditional td::before { content: none; }
}

/* ---------------------------------------------------------------- tiles & meters */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.tile {
  position: relative; overflow: hidden; padding: 1.3rem 1.3rem 1.2rem;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.tile::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.tile.borderless::before, .tile.plain::before { content: none; }
.tile.accent, .tile.flag { border-color: var(--accent-line); }
.tile .tile-value, .tile .tile-val { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1; color: var(--ink); }
.tile .tile-value.is-text, .tile .tile-val.is-text { font-size: 1.2rem; }
.tile .tile-title, .tile .tile-label { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); margin-top: 0.6rem; }
.tile .tile-description, .tile .tile-sub { display: block; font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.2rem; }

/* labelled progress / coverage meter */
.meter-row { display: grid; grid-template-columns: 130px 1fr 56px; gap: 0.9rem; align-items: center; padding: 0.45rem 0; }
.meter-row .meter-name { font-size: var(--fs-sm); color: var(--ink-dim); }
.meter { height: 10px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.meter > .fill { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--accent-lo), var(--accent)); }
.meter-row .meter-count { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-faint); text-align: right; }

/* ---------------------------------------------------------------- filter bar */
.filter-bar,
.filters {
  display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center;
  padding: 0.8rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
}
.filter-bar .input.select, .filter-bar .input, .filters .select-input, .filters .text-input { width: auto; flex: 0 1 180px; }
.filter-bar .flex-grow, .filters .grow { flex: 1 1 200px; }
.filter-bar .filter-end, .filters .filters-end { margin-left: auto; }
.results-summary,
.result-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem 1rem;
  color: var(--ink-dim); font-size: var(--fs-sm); padding: 0.6rem 0.1rem;
}
.active-filters, .chip-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.active-filters .active-filters-label, .chip-bar .chips-label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.filter-clear, .chip-clear { color: var(--ink-faint); font-size: 0.8rem; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.filter-clear:hover, .chip-clear:hover { color: var(--ink); }

/* ---------------------------------------------------------------- tabs */
.tab-nav,
.tabs {
  display: flex; gap: 0.3rem; max-width: 100%; overflow-x: auto;
  border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.tab-nav a,
.tabs a {
  display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.5rem; padding: 0.7rem 0.95rem;
  color: var(--ink-dim); border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-weight: 600; font-size: var(--fs-sm); transition: color var(--t-fast), border-color var(--t-fast);
}
.tab-nav a:hover, .tabs a:hover { color: var(--ink); }
.tab-nav a.active, .tabs a.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.tab-badge, .tab-count { font-family: var(--mono); font-size: 0.66rem; padding: 0.1rem 0.4rem; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-faint); }
.tab-nav a.active .tab-badge, .tabs a.is-active .tab-count { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 420px) {
  .tab-nav, .tabs { flex-wrap: wrap; overflow-x: visible; }
  .tab-nav a, .tabs a { flex: 1 1 auto; justify-content: center; }
}

/* ---------------------------------------------------------------- pager */
.pagination, .pager { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.pagination a, .pagination span:not(.material-symbols-outlined), .pager a, .pager span:not(.material-symbols-outlined) {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 0.6rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink-dim); font-size: var(--fs-sm); cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.pagination a:hover, .pager a:hover { color: var(--ink); border-color: var(--line-2); }
.pagination a.current, .pager a.is-current { color: #fff; background: var(--accent); border-color: var(--accent); cursor: default; }
.pagination .pagination-info, .pager .info { border: 0; color: var(--ink-faint); cursor: default; }

/* ---------------------------------------------------------------- search pill */
.search,
.search-box {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem 0.55rem 1rem;
  border: 2px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search:focus-within, .search-box:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
/* Flat variant: de-bordered fill for standalone use on a page canvas, where the
   default bordered pill can read as a box-in-a-box. The border stays for layout
   but goes transparent (no size shift vs the default); focus shows just the accent
   ring. Use as class="search-box search-box-flat". */
.search.flat, .search-box-flat { border-color: transparent; }
.search.flat:focus-within, .search-box-flat:focus-within { border-color: transparent; box-shadow: 0 0 0 3px var(--accent-soft); }
.search.operational,
.search-box-alt {
  min-height: 54px; padding: 0.65rem 1.05rem;
  border-width: 1px; border-radius: var(--r-sm);
  background: var(--surface); gap: 0.75rem;
}
.search.operational:focus-within, .search-box-alt:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.search .material-symbols-outlined, .search-box .material-symbols-outlined { color: var(--ink-faint); font-size: 22px; }
.search input, .search-box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-family: var(--ui); font-size: 1rem; outline: none; }
.search input::placeholder, .search-box input::placeholder { color: var(--ink-faint); }
.search .search-key,
.search-box .kbd {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint);
  padding: 0.15rem 0.45rem; border: 1px solid var(--line-2); border-radius: var(--r-xs); background: var(--surface-2);
}
.search:focus-within .search-key, .search-box:focus-within .kbd { display: none; }
.search .search-button,
.search-box .search-submit {
  flex: none; border: 0; cursor: pointer; padding: 0.5rem 1.1rem; border-radius: var(--r-pill);
  background: var(--accent); color: #fff; font-family: var(--ui); font-weight: 600; font-size: var(--fs-sm);
}
.search .search-button:hover, .search-box .search-submit:hover { background: var(--accent-2); }
/* suggestion chips under a search */
.suggestion-list, .suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-top: 0.8rem; }
.suggestion-list .suggestion-label, .suggestions .label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.suggestion-list a, .suggestions a {
  font-family: var(--mono); font-size: 0.74rem; color: var(--ink-dim);
  padding: 0.3rem 0.7rem; border: 1px solid var(--line-2); border-radius: var(--r-pill);
}
.suggestion-list a:hover, .suggestions a:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
/* live results popup */
.result-list,
.results-popup {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface-2);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35); overflow: hidden;
}
.result-list a, .results-popup a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; align-items: center; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.result-list a:last-child, .results-popup a:last-child { border-bottom: 0; }
.result-list a:hover, .results-popup a:hover { background: var(--canvas-2); }
.result-list .result-title, .results-popup .r-name { color: var(--ink); font-weight: 600; }
.result-list .result-title, .result-list .result-meta, .results-popup .r-name, .results-popup .r-pkg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-list .result-meta, .results-popup .r-pkg { display: block; font-family: var(--mono); font-size: 0.76rem; color: var(--ink-faint); margin-top: 2px; }

/* combobox / typeahead */
.typeahead, .combobox { position: relative; }
.typeahead-list,
.combobox-list {
  position: absolute; left: 0; right: 0; margin-top: 0.4rem; z-index: 5;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2);
  box-shadow: 0 14px 40px rgba(0,0,0,0.32); max-height: 240px; overflow-y: auto;
}
.typeahead-option, .combobox-option { padding: 0.6rem 0.9rem; cursor: pointer; font-size: var(--fs-sm); }
.typeahead-option:hover, .typeahead-option.active, .combobox-option:hover, .combobox-option.is-active { background: var(--accent-soft); color: var(--accent); }

/* ---------------------------------------------------------------- tooltip */
.tip { position: relative; border-bottom: 1px dotted var(--ink-faint); cursor: help; }
.tip::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  white-space: nowrap; padding: 0.4rem 0.6rem; border-radius: var(--r-sm); font-size: 0.78rem;
  background: var(--ink); color: var(--canvas); opacity: 0; pointer-events: none;
  transition: opacity var(--t-fast); z-index: 10;
}
.tip:hover::after { opacity: 1; }

/* ---------------------------------------------------------------- avatar stack */
.avatar-stack { display: inline-flex; align-items: center; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface);
  background: var(--surface-2); color: var(--ink); display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 700; margin-left: -8px; transition: transform var(--t-fast);
}
.avatar:first-child { margin-left: 0; }
.avatar:hover { transform: translateY(-3px); }
.avatar.accent { background: var(--accent); color: #fff; }
.avatar.blue { background: var(--blue); color: #fff; }
.avatar.green { background: var(--green); color: #fff; }

/* ---------------------------------------------------------------- copy + code */
.code-block { position: relative; }
.code-block pre {
  margin: 0; padding: 1rem 3rem 1rem 1rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.85rem; color: var(--ink); overflow-x: auto;
}
.copy-btn {
  position: absolute; top: 0.6rem; right: 0.6rem; display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--mono); font-size: 0.7rem; padding: 0.3rem 0.55rem; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-dim);
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent-line); }
.copy-btn.copied { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.copy-btn .material-symbols-outlined { font-size: 14px; }

/* Disabled affordance for every button-like control. Keep this after variant
   hover rules so disabled controls do not animate, recolour, or imply action. */
:is(.button, .btn, .btn-text, .icon-btn, .add-btn, .x-btn, .copy-btn, .search-submit, .segmented-control button, .mode-switch button, .menu-item, .nav-item):is(:disabled, [disabled], [aria-disabled="true"]) {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.button:is(:disabled, [disabled], [aria-disabled="true"]):hover .button-arrow,
.btn:is(:disabled, [disabled], [aria-disabled="true"]):hover .arr { transform: none; }
.button.primary:is(:disabled, [disabled], [aria-disabled="true"]),
.btn-primary:is(:disabled, [disabled], [aria-disabled="true"]),
.search-box .search-submit:is(:disabled, [disabled], [aria-disabled="true"]) {
  background: var(--accent); color: #fff; border-color: transparent;
}
.button.ghost:is(:disabled, [disabled], [aria-disabled="true"]),
.btn-ghost:is(:disabled, [disabled], [aria-disabled="true"]) {
  color: var(--ink-dim); border-color: var(--line); background: transparent;
}
.button.text:is(:disabled, [disabled], [aria-disabled="true"]),
.btn-text:is(:disabled, [disabled], [aria-disabled="true"]) {
  color: var(--ink-dim); background: transparent;
}
.button.icon:is(:disabled, [disabled], [aria-disabled="true"]),
.icon-btn:is(:disabled, [disabled], [aria-disabled="true"]) {
  color: var(--ink-dim); border-color: var(--line); background: var(--surface);
}
.button.add:is(:disabled, [disabled], [aria-disabled="true"]),
.add-btn:is(:disabled, [disabled], [aria-disabled="true"]) {
  color: var(--ink-dim); border-color: var(--line-2); background: transparent;
}
.button.close:is(:disabled, [disabled], [aria-disabled="true"]),
.x-btn:is(:disabled, [disabled], [aria-disabled="true"]) {
  color: var(--ink-faint); border-color: var(--line); background: transparent;
}
.copy-btn:is(:disabled, [disabled], [aria-disabled="true"]) {
  color: var(--ink-dim); border-color: var(--line-2); background: var(--surface-2);
}
.menu-item:is(:disabled, [disabled], [aria-disabled="true"]),
.nav-item:is(:disabled, [disabled], [aria-disabled="true"]) {
  color: var(--ink-dim); background: transparent;
}

/* ---------------------------------------------------------------- record / detail header */
.record-head {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  padding: 1.6rem 1.8rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.record-head::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.record-head .record-id { font-family: var(--mono); font-size: 1.25rem; font-weight: 700; color: var(--ink); word-break: break-all; }
.record-head .record-label { color: var(--ink-dim); font-size: var(--fs-sm); margin-top: 0.2rem; }
.record-head .actions { display: flex; gap: 0.5rem; }

/* ---------------------------------------------------------------- pricing table */
.pricing-grid, .pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 768px) { .pricing-grid, .pricing { grid-template-columns: 1fr; } }
.price-card {
  position: relative; display: flex; flex-direction: column; text-align: center;
  padding: 2rem 1.6rem; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface);
}
.price-card.featured, .price-card.hero {
  text-align: left; padding: 2.4rem;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border-color: var(--line-2);
}
.price-card.focus, .price-card.popular { border-color: var(--accent-line); }
.price-card.focus::before, .price-card.popular::before {
  content: 'Most popular'; position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 0.25rem 0.7rem; border-radius: var(--r-pill);
}
.price-card h3 { margin: 0 0 0.6rem; font-size: 1.3rem; }
.price-card .price-value, .price-card .price { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--ink); line-height: 1; }
.price-card .price-value small, .price-card .price small { font-family: var(--ui); font-size: 0.9rem; font-weight: 400; color: var(--ink-faint); }
.price-card .price-note { margin: 0.8rem 0 0; color: var(--ink-dim); font-size: 0.96rem; }
.price-card ul { list-style: none; margin: 1.4rem 0; padding: 0; text-align: left; display: grid; gap: 0.6rem; }
.price-card .feature-list, .price-card .incl { margin-top: 1.8rem; }
.price-card li { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; align-items: center; color: var(--ink-dim); font-size: var(--fs-sm); }
.price-card li .material-symbols-outlined,
.price-card .feature-marker {
  color: var(--green); font-size: 18px; line-height: 1;
}
.price-card .feature-marker { display: inline-grid; place-items: center; width: 18px; height: 18px; }
.price-card .feature-marker:is(svg, img) { display: block; width: 18px; height: 18px; object-fit: contain; }
.price-card .feature-marker:is(svg) { fill: currentColor; }
.price-card .feature-list li .material-symbols-outlined,
.price-card .incl li .material-symbols-outlined,
.price-card .feature-list li .feature-marker,
.price-card .incl li .feature-marker { color: var(--accent); }
.price-card .button, .price-card .btn { margin-top: auto; justify-content: center; }

/* ---------------------------------------------------------------- logo strip */
.logo-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1.5rem 2rem;
  align-items: center; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.logo-strip .logo-item {
  height: 34px; display: grid; place-items: center; color: var(--ink-dim); opacity: 0.7;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; transition: opacity var(--t-fast), color var(--t-fast);
}
.logo-strip .logo-item:hover { opacity: 1; color: var(--ink); }

/* ---------------------------------------------------------------- pull-quote */
.pullquote {
  position: relative; overflow: hidden; margin: 1.6rem 0;
  padding: 1.5rem 2rem 1.4rem 3.6rem; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); font-family: var(--display); font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.32; color: var(--ink); text-wrap: balance;
}
.pullquote::before {   /* big accent opening quote */
  content: '\201C'; position: absolute; left: 0.8rem; top: 0.3rem;
  font-family: var(--display); font-weight: 800; font-size: 4.5rem; line-height: 1; color: var(--accent);
}
.pullquote::after {    /* oversized ghost closing quote, echoing the ghost numerals */
  content: '\201D'; position: absolute; right: 0.4rem; bottom: -3.2rem;
  font-family: var(--display); font-weight: 800; font-size: 10rem; line-height: 1;
  color: var(--ink); opacity: 0.04; pointer-events: none; user-select: none;
}
.pullquote cite { position: relative; z-index: 1; display: block; margin-top: 1rem; font-family: var(--ui); font-weight: 600; font-size: 0.9rem; font-style: normal; color: var(--accent); }

/* ---------------------------------------------------------------- breadcrumbs */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: var(--fs-sm); color: var(--ink-faint); }
.breadcrumbs a { color: var(--ink-dim); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--ink-faint); }
.breadcrumbs .current { color: var(--ink); }

/* ---------------------------------------------------------------- section headers and intros */
.section-header,
.section-head {
  display: flex; flex-direction: column; gap: var(--sp-1);
  padding-bottom: var(--sp-4); margin-bottom: var(--sp-2);
}
.section-header-row, .section-head-row { display: flex; align-items: flex-start; gap: var(--sp-3); }
.section-header-icon,
.section-head-icon {
  flex: none; font-size: 22px; line-height: 1.6rem; color: var(--accent);
}
.section-header-text,
.section-head-text {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem;
}
.section-header-title,
.section-head-title,
.section-header-text h2,
.section-head-text h2 {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: 1.25rem; line-height: 1.6rem; color: var(--ink);
}
.section-header-subtitle,
.section-head-subtitle,
.section-header-text p,
.section-head-text p {
  margin: 0; color: var(--ink-dim); font-size: var(--fs-sm);
  line-height: 1.5; max-width: 68ch;
}
.section-header-actions,
.section-head-actions {
  flex: none; display: flex; align-items: center; gap: var(--sp-2);
}
.section-header .section-header-link,
.section-head .section-link {
  color: var(--accent); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap;
}
.section-header > .section-header-link, .section-head > .section-link { align-self: flex-start; }

.section-title, .section-intro { max-width: 60ch; }
.section-title.center, .section-intro.center { margin-inline: auto; text-align: center; }
.section-title .eyebrow, .section-intro .kicker { margin: 0 0 0.8rem; }
.section-title h2, .section-intro h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 2.7rem); text-wrap: balance; }
.section-title p:not(.eyebrow), .section-intro p:not(.kicker) {
  margin: 1rem 0 0; color: var(--ink-dim); font-size: 1.1rem;
}
@media (max-width: 520px) {
  .section-header-row, .section-head-row { flex-wrap: wrap; }
  .section-header-actions, .section-head-actions { width: 100%; }
}

/* ---------------------------------------------------------------- service / shortcut tiles */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.tile-grid.services { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tile.service,
.service-tile {
  display: grid; gap: 0.6rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); text-align: left; overflow: visible; position: static;
  transition: border-color var(--t-base), transform var(--t-base);
}
.tile.service:hover, .service-tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tile.service::before { content: none; }
.tile.service .material-symbols-outlined, .service-tile .material-symbols-outlined { font-size: 26px; color: var(--accent); }
.tile.service .tile-title,
.service-tile .tile-title,
.service-tile .t {
  display: block; margin-top: 0; font-family: var(--display); font-weight: 700;
  font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--ink);
}
.tile.service .tile-description,
.service-tile .tile-description,
.service-tile .s {
  display: block; margin-top: 0; font-size: var(--fs-sm); color: var(--ink-dim);
}

/* ---------------------------------------------------------------- hero (marketing) */
.hero {
  position: relative; padding: 3.5rem 0 4rem;
}
.hero .ghost-num { position: absolute; left: -1.5vw; top: -8vh; font-size: 36vh; z-index: 0; }
.hero-inner { position: relative; z-index: 1; max-width: 46ch; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.015em; margin: 1rem 0 1.2rem; text-wrap: balance; }
.hero .kicker + h1 { margin-top: 0; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }

/* ---------------------------------------------------------------- diff viewer */
/* Line-by-line change view (from DeltaWatch). Added/removed row tints are
   mixed from the palette so they hold in every theme. */
.diff-viewer,
.diff {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); font-family: var(--mono); font-size: 0.85rem;
}
.diff-toolbar,
.diff-head {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.9rem;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.diff-dots { display: flex; gap: 0.4rem; flex: none; }
.diff-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.diff-dots i:nth-child(1) { background: #ff5f57; }
.diff-dots i:nth-child(2) { background: #febc2e; }
.diff-dots i:nth-child(3) { background: #28c840; }
.diff-caption, .diff-cap { font-size: 0.72rem; color: var(--ink-faint); }
.diff-content, .diff-body { overflow-x: auto; }
.diff-row, .diff-line { display: flex; line-height: 1.7; }
.diff-row .line-number, .diff-line .ln { width: 3ch; flex: none; text-align: right; padding-right: 0.8rem; color: var(--ink-faint); user-select: none; }
.diff-row .diff-prefix, .diff-line .pf { width: 2ch; flex: none; text-align: center; user-select: none; color: var(--ink-faint); }
.diff-row .diff-text, .diff-line .tx { flex: 1; padding-right: 1rem; white-space: pre; color: var(--ink-dim); }
.diff-row.added, .diff-line.added   { background: color-mix(in srgb, var(--green) 15%, var(--surface)); }
.diff-row.added .diff-prefix, .diff-row.added .diff-text, .diff-line.added .pf, .diff-line.added .tx   { color: color-mix(in srgb, var(--green) 55%, var(--ink)); }
.diff-row.removed, .diff-line.removed { background: color-mix(in srgb, var(--red) 15%, var(--surface)); }
.diff-row.removed .diff-prefix, .diff-row.removed .diff-text, .diff-line.removed .pf, .diff-line.removed .tx { color: color-mix(in srgb, var(--red) 55%, var(--ink)); }

/* ---------------------------------------------------------------- status / health card */
.health-card, .status-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 1.6rem 1.8rem; }
.health-head, .status-head { display: flex; align-items: center; gap: 0.7rem; }
.health-head h3, .status-head h3 { margin: 0; font-size: 1.3rem; }
.health-dot, .status-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; }
.health-dot.ok, .status-dot.ok       { background: var(--green); }
.health-dot.degraded, .status-dot.degraded { background: var(--accent); }   /* orange - stays on the one-tier palette */
.health-dot.down, .status-dot.down     { background: var(--red); }
.health-dot.unknown, .status-dot.unknown  { background: var(--ink-faint); animation: statuspulse 1.6s var(--ease) infinite; }
@keyframes statuspulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.health-grid, .status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; margin: 1.4rem 0; }
@media (max-width: 600px) { .health-grid, .status-grid { grid-template-columns: 1fr; } }
.health-grid dt, .status-grid dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin: 0; }
.health-grid dd, .status-grid dd { margin: 0.25rem 0 0; color: var(--ink); }
.health-grid dd.mono, .status-grid dd.mono { font-family: var(--mono); }
.health-error,
.status-err {
  border: 1px solid color-mix(in srgb, var(--red) 45%, transparent);
  background: color-mix(in srgb, var(--red) 10%, transparent);
  color: var(--red); border-radius: var(--r-md); padding: 0.7rem 0.9rem;
  font-family: var(--mono); font-size: 0.85rem;
}
.health-foot, .status-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: var(--sp-1); color: var(--ink-faint); font-size: var(--fs-sm); }

/* ===========================================================================
   MOBILE - Jetpack Compose + Material 3, themed with the bayton palette.
   These are web approximations of the native components for documentation;
   the real source of truth is each app's ui/theme/Theme.kt. Type is Material
   default (Roboto/system) today.  Scheme values are the actual app values.
   =========================================================================== */
.m3 {
  --m3-primary: #FF4500; --m3-on-primary: #ffffff;
  --m3-secondary: #15B007; --m3-tertiary: #0077b3;
  --m3-secondary-container: #0077b3; --m3-on-secondary-container: #ffffff;
  --m3-error: #C30000; --m3-error-container: #FFDEDE; --m3-on-error-container: #270000;
  --m3-surface: #F7F7F7; --m3-on-surface: #333333;
  --m3-surface-container: #ffffff; --m3-on-surface-variant: #5a5a5e;
  --m3-outline: rgba(0,0,0,0.16);
  font-family: Roboto, "Open Sans", system-ui, sans-serif;
}
.m3.dark {
  --m3-secondary-container: #00284d;
  --m3-error-container: #270000; --m3-on-error-container: #FFDEDE;
  --m3-surface: #141218; --m3-on-surface: #ffffff;
  --m3-surface-container: #252525; --m3-on-surface-variant: #c9c5d0;
  --m3-outline: rgba(255,255,255,0.18);
}

/* phone frame */
.phone { width: min(300px, 100%); border-radius: 38px; background: #0a0a0a; padding: 9px; box-shadow: 0 24px 50px -20px rgba(0,0,0,0.5); flex: none; }
.phone-screen { position: relative; border-radius: 30px; overflow: hidden; height: 580px; display: flex; flex-direction: column; background: var(--m3-surface); color: var(--m3-on-surface); }
.m3-statusbar { display: flex; justify-content: space-between; padding: 0.5rem 1.1rem 0.2rem; font-size: 0.68rem; font-weight: 600; color: var(--m3-on-surface); }

/* top app bar - circular app logo + title (+ optional android metadata line) + actions */
.m3-appbar { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.9rem; color: var(--m3-on-surface); }
.m3-applogo { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--m3-primary); color: var(--m3-on-surface); }
.m3-applogo .material-symbols-outlined { font-size: 15px; }
.m3-appbar .title { font-size: 1.1rem; font-weight: 500; flex: 1; line-height: 1.15; min-width: 0; }
.m3-appbar .title .meta { display: flex; align-items: center; gap: 0.25rem; font-size: 0.64rem; font-weight: 400; color: var(--m3-on-surface-variant); margin-top: 1px; }
.m3-appbar .title .meta .material-symbols-outlined { font-size: 12px; color: var(--m3-secondary); }
.m3-appbar > .material-symbols-outlined { font-size: 20px; color: var(--m3-on-surface); flex: none; }

.m3-body { flex: 1; overflow: hidden; padding: 0.3rem 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.m3-label { font-size: 0.92rem; font-weight: 600; margin: 0.25rem 0 -0.1rem; }

/* welcome card (secondaryContainer / blue) */
.m3-welcome { background: var(--m3-secondary-container); color: var(--m3-on-secondary-container); border-radius: 16px; padding: 1rem 1.05rem; }
.m3-welcome .wh { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.35rem; }
.m3-welcome .wb { font-size: 0.78rem; line-height: 1.45; }
.m3-welcome .wn { font-size: 0.7rem; line-height: 1.4; opacity: 0.72; margin-top: 0.5rem; }

/* quick-action tiles */
.m3-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.m3-tile { background: var(--m3-surface-container); border-radius: 12px; padding: 0.7rem 0.3rem; display: grid; place-items: center; gap: 0.4rem; }
.m3-tile .material-symbols-outlined { font-size: 21px; color: var(--m3-on-surface); }
.m3-tile .tl { font-size: 0.7rem; }

/* contact / settings list */
.m3-list { background: var(--m3-surface-container); border-radius: 14px; overflow: hidden; }
.m3-row { display: flex; align-items: center; gap: 0.9rem; padding: 0.65rem 1rem; font-size: 0.82rem; }
.m3-row + .m3-row { border-top: 1px solid var(--m3-outline); }
.m3-row .material-symbols-outlined { font-size: 18px; color: var(--m3-on-surface); flex: none; }

/* Material outlined text field (focused) */
.m3-field { position: relative; border: 2px solid var(--m3-primary); border-radius: 8px; padding: 0.7rem 0.8rem; font-size: 0.84rem; color: var(--m3-on-surface); }
.m3-field .lbl { position: absolute; top: -0.52rem; left: 0.6rem; background: var(--m3-surface); padding: 0 0.3rem; font-size: 0.68rem; color: var(--m3-primary); }
.m3-field .caret { color: var(--m3-primary); font-weight: 300; }

/* app result card (Package Search) */
.m3-app { background: var(--m3-surface-container); border-radius: 14px; padding: 0.85rem 0.95rem; }
.m3-app-head { display: flex; align-items: flex-start; gap: 0.7rem; }
.m3-app-ic { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--m3-surface); border: 1px solid var(--m3-outline); }
.m3-app-ic .material-symbols-outlined { font-size: 17px; color: var(--m3-secondary); }
.m3-app .an { font-size: 0.92rem; font-weight: 500; }
.m3-app .ap { font-family: var(--mono); font-size: 0.7rem; color: var(--m3-on-surface-variant); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m3-app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 0.8rem; margin-top: 0.7rem; font-size: 0.7rem; }
.m3-app-grid .k { color: var(--m3-on-surface-variant); }
.m3-app-grid .v { color: var(--m3-on-surface); }
.m3-app-chips { display: flex; gap: 1rem; margin-top: 0.7rem; font-size: 0.72rem; font-weight: 600; }
.m3-app-chips span { display: inline-flex; align-items: center; gap: 0.25rem; }
.m3-app-chips .material-symbols-outlined { font-size: 14px; }
.m3-chip-ok { color: var(--m3-secondary); }
.m3-chip-sys { color: var(--m3-primary); }

/* featured action card with toggle */
.m3-feature { display: flex; gap: 0.8rem; align-items: flex-start; background: var(--m3-surface-container); border-radius: 14px; padding: 0.9rem 1rem; }
.m3-feature .fic .material-symbols-outlined { font-size: 21px; color: var(--m3-on-surface); }
.m3-feature .ft { flex: 1; min-width: 0; }
.m3-feature .ft .t { font-weight: 500; font-size: 0.9rem; }
.m3-feature .ft .d { font-size: 0.72rem; color: var(--m3-on-surface-variant); margin-top: 0.25rem; line-height: 1.4; }

/* M3 switch */
.m3-switch { width: 48px; height: 28px; border-radius: 999px; background: var(--m3-surface); border: 2px solid var(--m3-outline); position: relative; flex: none; align-self: center; }
.m3-switch::after { content: ''; position: absolute; top: 50%; left: 7px; transform: translateY(-50%); width: 10px; height: 10px; border-radius: 50%; background: var(--m3-on-surface-variant); transition: all 0.2s; }
.m3-switch.on { background: var(--m3-primary); border-color: var(--m3-primary); }
.m3-switch.on::after { left: 24px; width: 20px; height: 20px; background: #fff; }

/* M3 colour-role swatch */
.m3-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.9rem; }
.m3-role { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.m3-role .pair { display: flex; height: 48px; }
.m3-role .pair span { flex: 1; }
.m3-role .meta { padding: 0.5rem 0.7rem; }
.m3-role .rn { font-family: var(--mono); font-size: 0.72rem; color: var(--ink); }
.m3-role .rv { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-faint); margin-top: 2px; }

/* ---------------------------------------------------------------- comparison (us vs them) */
.comparison-grid, .compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 768px) { .comparison-grid, .compare { grid-template-columns: 1fr; } }
.comparison-card, .compare-col { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 2rem; background: var(--surface); }
.comparison-card.highlight, .compare-col.highlight { background: linear-gradient(160deg, var(--accent-soft), var(--surface-2)); border-color: var(--accent-line); }
.comparison-card h3, .compare-col h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; margin: 0; }
.comparison-card .comparison-label, .compare-col .ch { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.comparison-card ul, .compare-col ul { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-direction: column; gap: 0.9rem; }
.comparison-card li, .compare-col li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.97rem; color: var(--ink-dim); }
.comparison-card.highlight li, .compare-col.highlight li { color: var(--ink); }
.comparison-card li .material-symbols-outlined, .compare-col li .material-symbols-outlined { flex: none; font-size: 19px; margin-top: 1px; }
.comparison-card li > :is(svg, img),
.compare-col li > :is(svg, img) {
  flex: none; width: 19px; height: 19px; object-fit: contain; margin-top: 1px;
}
.comparison-card li .no, .compare-col li .no { color: var(--ink-faint); }
.comparison-card li .yes, .compare-col li .yes { color: var(--accent); }

/* ---------------------------------------------------------------- bento grid */
.bento-grid, .bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature-tile,
.bento-tile {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.6rem; transition: transform var(--t-fast) var(--ease), border-color var(--t-fast);
}
.feature-tile:hover, .bento-tile:hover { transform: translateY(-3px); border-color: var(--line-2); }
.feature-tile.span-2, .bento-tile.span-2 { grid-column: span 2; }
.feature-tile.span-2x2, .bento-tile.span-2x2 { grid-column: span 2; grid-row: span 2; }
.feature-tile.span-full, .bento-tile.span-full { grid-column: 1 / -1; }
.feature-tile.highlight, .bento-tile.highlight { background: linear-gradient(160deg, var(--accent-soft), var(--surface-2)); border-color: var(--accent-line); }
.feature-tile .feature-icon, .bento-tile .ic { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 1.1rem; }
.feature-tile .feature-icon .material-symbols-outlined, .bento-tile .ic .material-symbols-outlined { font-size: 22px; }
.feature-tile .feature-icon > :is(svg, img),
.bento-tile .ic > :is(svg, img) {
  display: block; width: 22px; height: 22px; object-fit: contain;
}
.feature-tile .feature-icon > svg,
.bento-tile .ic > svg { fill: currentColor; }
.feature-tile h3, .bento-tile h3 { font-size: 1.15rem; margin: 0; }
.feature-tile.span-2x2 h3, .feature-tile.span-full h3, .bento-tile.span-2x2 h3, .bento-tile.span-full h3 { font-size: 1.4rem; }
.feature-tile p, .bento-tile p { color: var(--ink-dim); margin: 0.6rem 0 0; font-size: 0.95rem; }
@media (max-width: 768px) { .bento-grid, .bento { grid-template-columns: 1fr 1fr; } .feature-tile.span-2x2, .bento-tile.span-2x2 { grid-row: auto; } }
@media (max-width: 600px) { .bento-grid, .bento { grid-template-columns: 1fr; } .feature-tile.span-2, .feature-tile.span-2x2, .feature-tile.span-full, .bento-tile.span-2, .bento-tile.span-2x2, .bento-tile.span-full { grid-column: auto; } }

/* ---------------------------------------------------------------- success state (branded confirmation) */
.confirmation, .success-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem; max-width: 480px; margin: 0 auto; }
.confirmation-check, .success-check { position: relative; width: 108px; height: 108px; display: grid; place-items: center; margin-bottom: 0.5rem; }
.confirmation-check::before, .success-check::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--accent-line); border-top-color: var(--accent);
  animation: success-spin 6s infinite ease-in-out;
}
.confirmation-check .material-symbols-outlined, .success-check .material-symbols-outlined { font-size: 56px; color: var(--accent); }
.confirmation-spiral, .success-spiral { width: 108px; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 0.5rem; }
.confirmation-spiral svg, .success-spiral svg { width: 100%; height: 100%; display: block; }
.confirmation-spiral .spiral-ink, .success-spiral .spiral-ink { fill: var(--ink); }
.confirmation-spiral .spiral-accent, .success-spiral .spiral-accent { fill: var(--accent); }
.confirmation-spiral .spiral-spin, .success-spiral .spiral-spin {
  animation: success-spin 6s infinite ease-in-out;
  transform-box: fill-box;
  transform-origin: center;
}
.confirmation h3, .success-state h3 { font-size: 1.6rem; margin: 0; }
.confirmation p, .success-state p { color: var(--ink-dim); font-size: 1.02rem; max-width: 38ch; margin: 0.3rem 0 0; }
@keyframes success-spin { 0% { transform: rotate(0); } 20% { transform: rotate(180deg); } 40%, 100% { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .confirmation-check::before, .success-check::before, .confirmation-spiral .spiral-spin, .success-spiral .spiral-spin { animation: none; } }

/* ---------------------------------------------------------------- brand motifs */
:root {
  --brand-mark: url("assets/logos/swirl-solid.svg");
  --brand-arc: url("assets/logos/swirl-arc.svg");
  --brand-tail: url("assets/logos/swirl-tail.svg");
  --brand-combo: url("assets/logos/combo-tile.svg");
  --brand-peak: url("assets/logos/peak-ink.svg");
  --brand-wordmark-ink: url("assets/logos/wordmark-ink.svg");
  --brand-wordmark-accent: url("assets/logos/wordmark-accent.svg");
}

.brand-surface,
.brand-motif-surface {
  position: relative; min-height: 230px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--canvas-2);
}
.brand-surface.center, .brand-motif-surface.center { display: grid; place-items: center; text-align: center; }

.brand-wordmark {
  position: relative; display: block; width: var(--brand-wordmark-width, 174px);
  aspect-ratio: 2872 / 462; flex: none;
}
.brand-wordmark::before,
.brand-wordmark::after {
  content: ""; position: absolute; inset: 0;
}
.brand-wordmark::before {
  background: var(--brand-wordmark-ink-color, var(--ink));
  -webkit-mask: var(--brand-wordmark-ink) left / contain no-repeat;
  mask: var(--brand-wordmark-ink) left / contain no-repeat;
}
.brand-wordmark::after {
  background: var(--brand-wordmark-accent-color, var(--accent));
  -webkit-mask: var(--brand-wordmark-accent) left / contain no-repeat;
  mask: var(--brand-wordmark-accent) left / contain no-repeat;
}

.brand-mark-lockup {
  position: relative; display: block;
  width: var(--brand-mark-size, 64px); height: var(--brand-mark-size, 64px);
}
.brand-mark-lockup::before,
.brand-mark-lockup::after {
  content: ""; position: absolute; inset: 0;
}
.brand-mark-lockup::before {
  background: var(--brand-mark-arc, var(--accent));
  -webkit-mask: var(--brand-arc) center / contain no-repeat;
  mask: var(--brand-arc) center / contain no-repeat;
}
.brand-mark-lockup::after {
  background: var(--brand-mark-tail, var(--ink));
  -webkit-mask: var(--brand-tail) center / contain no-repeat;
  mask: var(--brand-tail) center / contain no-repeat;
}

.brand-texture,
.brand-texture::before,
.brand-texture::after,
.brand-field,
.brand-field::before,
.brand-field::after {
  position: absolute; inset: 0;
}
.brand-texture,
.brand-field {
  --brand-field-size: 76px;
  --brand-field-ink: var(--ink);
  --brand-field-opacity: 0.05;
  --brand-field-angle: 0deg;
  --brand-field-repeat: repeat;
  --brand-field-x: 0;
  --brand-field-y: 0;
  --brand-field-bleed: -35%;
  pointer-events: none;
}
.brand-texture::before,
.brand-field::before {
  content: ""; inset: var(--brand-field-bleed);
  background: var(--brand-field-ink); opacity: var(--brand-field-opacity);
  transform: rotate(var(--brand-field-angle)); transform-origin: center;
  -webkit-mask: var(--brand-field-mark, var(--brand-mark)) var(--brand-field-x) var(--brand-field-y) / var(--brand-field-size) var(--brand-field-repeat);
  mask: var(--brand-field-mark, var(--brand-mark)) var(--brand-field-x) var(--brand-field-y) / var(--brand-field-size) var(--brand-field-repeat);
}
.brand-texture.offset::after,
.brand-field.offset::after {
  content: ""; inset: var(--brand-field-bleed);
  background: var(--brand-field-ink); opacity: calc(var(--brand-field-opacity) * 0.7);
  transform: rotate(var(--brand-field-angle)); transform-origin: center;
  -webkit-mask: var(--brand-field-mark, var(--brand-mark)) var(--brand-field-offset-x, 38px) var(--brand-field-offset-y, 38px) / var(--brand-field-size) var(--brand-field-repeat);
  mask: var(--brand-field-mark, var(--brand-mark)) var(--brand-field-offset-x, 38px) var(--brand-field-offset-y, 38px) / var(--brand-field-size) var(--brand-field-repeat);
}
.brand-texture.horizontal, .brand-field.horizontal { --brand-field-angle: 0deg; }
.brand-texture.vertical, .brand-field.vertical { --brand-field-angle: 90deg; --brand-field-bleed: -35%; }
.brand-texture.diagonal, .brand-field.diagonal { --brand-field-angle: -20deg; --brand-field-bleed: -35%; }
.brand-texture.angle-up, .brand-field.angle-up { --brand-field-angle: 20deg; --brand-field-bleed: -35%; }
.brand-texture.sm, .brand-field.sm { --brand-field-size: 52px; }
.brand-texture.lg, .brand-field.lg { --brand-field-size: 112px; }
.brand-texture.accent, .brand-field.accent { --brand-field-ink: var(--accent); --brand-field-opacity: 0.12; }
.brand-texture.info, .brand-field.info { --brand-field-ink: var(--info); --brand-field-opacity: 0.11; }
.brand-texture.faint, .brand-field.faint { --brand-field-opacity: 0.035; }
.brand-texture.fade,
.brand-field.fade {
  --brand-field-ink: var(--accent); --brand-field-opacity: 0.14; --brand-field-size: 62px;
  -webkit-mask: radial-gradient(120% 120% at 18% 12%, #000, transparent 68%);
  mask: radial-gradient(120% 120% at 18% 12%, #000, transparent 68%);
}
.brand-texture.split::before,
.brand-field.split::before {
  background: var(--accent); opacity: 0.16;
  -webkit-mask: var(--brand-arc) 0 -24px / 86px repeat;
  mask: var(--brand-arc) 0 -24px / 86px repeat;
}
.brand-texture.split::after,
.brand-field.split::after {
  content: ""; background: var(--ink); opacity: 0.07;
  -webkit-mask: var(--brand-tail) 0 24px / 86px repeat;
  mask: var(--brand-tail) 0 24px / 86px repeat;
}
.brand-texture.peak, .brand-field.peak { --brand-field-mark: var(--brand-peak); --brand-field-ink: var(--accent); --brand-field-opacity: 0.14; --brand-field-size: 64px; }
.brand-texture.combo, .brand-field.combo { --brand-field-mark: var(--brand-combo); --brand-field-opacity: 0.08; --brand-field-size: 108px; }
.brand-texture.density,
.brand-field.density {
  --brand-field-mark: var(--brand-combo);
  --brand-field-ink: var(--accent);
  --brand-field-opacity: 0.14;
  --brand-field-size: 108px;
  -webkit-mask: radial-gradient(120% 120% at var(--brand-field-fade-x, 18%) var(--brand-field-fade-y, 12%), #000, transparent 68%);
  mask: radial-gradient(120% 120% at var(--brand-field-fade-x, 18%) var(--brand-field-fade-y, 12%), #000, transparent 68%);
}

.brand-ambient {
  background:
    radial-gradient(90% 80% at var(--brand-ambient-x, 100%) var(--brand-ambient-y, 0%), var(--glow), transparent 60%),
    var(--surface);
}
.brand-ambient.dual {
  background:
    radial-gradient(60% 60% at 12% 20%, var(--glow), transparent 55%),
    radial-gradient(60% 60% at 92% 96%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 55%),
    var(--surface);
}
.brand-ambient.spotlight {
  background:
    radial-gradient(70% 120% at 50% -20%, var(--glow), transparent 60%),
    var(--surface);
}
.brand-ambient.mesh {
  background:
    radial-gradient(40% 50% at 20% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    radial-gradient(45% 55% at 78% 42%, color-mix(in srgb, var(--info) 10%, transparent), transparent 60%),
    radial-gradient(50% 60% at 55% 92%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 62%),
    var(--surface);
}

.brand-watermark::before {
  content: ""; position: absolute; inset: var(--brand-watermark-bleed, -25%);
  background: var(--brand-watermark-ink, var(--ink));
  opacity: var(--brand-watermark-opacity, 0.045);
  transform: rotate(var(--brand-watermark-angle, -20deg)); transform-origin: center;
  -webkit-mask: var(--brand-watermark-mark, var(--brand-mark)) 0 0 / var(--brand-watermark-size, 120px) repeat;
  mask: var(--brand-watermark-mark, var(--brand-mark)) 0 0 / var(--brand-watermark-size, 120px) repeat;
}

.brand-letterhead {
  position: relative; padding: var(--sp-6); background: var(--surface-2);
}
.brand-letterhead::before,
.brand-letterhead::after {
  content: ""; position: absolute; right: -90px; bottom: -90px; width: 360px; height: 360px;
}
.brand-letterhead::before {
  background: var(--accent); opacity: 0.12;
  -webkit-mask: var(--brand-arc) center / contain no-repeat;
  mask: var(--brand-arc) center / contain no-repeat;
}
.brand-letterhead::after {
  background: var(--ink); opacity: 0.06;
  -webkit-mask: var(--brand-tail) center / contain no-repeat;
  mask: var(--brand-tail) center / contain no-repeat;
}
.brand-letterhead-content { position: relative; max-width: 320px; }
.brand-letterhead-title {
  margin-top: var(--sp-7); color: var(--ink); font-family: var(--display);
  font-size: var(--fs-h3); font-weight: 700; line-height: 1.1;
}
.brand-letterhead-copy { margin-top: var(--sp-2); color: var(--ink-dim); font-size: var(--fs-sm); }

.brand-share-card {
  position: relative; width: 100%; max-width: 720px; aspect-ratio: 1200 / 630;
  margin-inline: auto; overflow: hidden; border: 1px solid var(--line-2);
  border-radius: var(--r-lg); background: var(--canvas);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.35);
}
.brand-share-card::before {
  content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0.05;
  -webkit-mask:
    var(--brand-mark) 0 0 / 68px repeat,
    radial-gradient(120% 130% at 100% 100%, #000, transparent 60%);
  -webkit-mask-composite: source-in;
  mask:
    var(--brand-mark) 0 0 / 68px repeat,
    radial-gradient(120% 130% at 100% 100%, #000, transparent 60%);
  mask-composite: intersect;
}
.brand-share-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 100% at 92% 8%, var(--glow), transparent 55%);
}
.brand-share-inner {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  justify-content: space-between; padding: 8% 8% 7%;
}
.brand-share-inner .brand-wordmark { width: 34%; min-width: 150px; }
.brand-share-label {
  color: var(--accent-2); font-size: clamp(9px, 1.8vw, 12px);
  font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.brand-share-title {
  margin-top: 2%; color: var(--ink); font-family: var(--display);
  font-size: clamp(24px, 6vw, 44px); font-weight: 800; line-height: 1.02;
}
.brand-share-url { margin-top: 3%; color: var(--ink-dim); font-size: clamp(11px, 2vw, 15px); }

.brand-app-icon {
  --brand-icon-size: 104px; --brand-mark-size: calc(var(--brand-icon-size) * 0.6);
  width: var(--brand-icon-size); height: var(--brand-icon-size);
  display: grid; place-items: center; overflow: hidden; border-radius: var(--r-xl);
}
.brand-app-icon.accent {
  --brand-mark-arc: #f5efe8; --brand-mark-tail: #131110;
  background: linear-gradient(160deg, var(--accent-2), var(--accent) 60%, var(--accent-lo));
  box-shadow: 0 16px 34px -14px color-mix(in srgb, var(--accent) 70%, transparent);
}
.brand-app-icon.dark {
  --brand-mark-arc: var(--accent); --brand-mark-tail: #f5efe8;
  border: 1px solid var(--line-2);
  background: radial-gradient(120% 120% at 30% 20%, #201c19, #131110);
}
.brand-app-icon.light {
  --brand-mark-arc: var(--accent); --brand-mark-tail: #18181a;
  border: 1px solid var(--line-2); background: #fafafa;
}

/* ---------------------------------------------------------------- branded loading */
.brand-loader {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1 1 100%; width: 100%; min-width: 0;
  gap: var(--sp-3); text-align: center; color: var(--ink); padding: var(--sp-6) 0;
}
.brand-loader p { margin: 0; color: var(--ink-dim); font-size: var(--fs-sm); }
.loading-spinner,
.brand-spinner {
  display: block; flex: none; width: 48px; height: 48px; color: var(--ink);
  animation: brand-spin 1.8s linear infinite; transform-origin: center;
}
.loading-spinner.sm, .brand-spinner.sm { width: 32px; height: 32px; }
.loading-spinner.lg, .brand-spinner.lg { width: 72px; height: 72px; }
.loading-spinner .brand-spinner-accent, .brand-spinner .brand-spinner-accent { fill: var(--accent); }
.loading-spinner .brand-spinner-ink, .brand-spinner .brand-spinner-ink { fill: currentColor; }

.brand-loader-mark {
  position: relative; display: block;
  width: var(--brand-loader-size, 56px); height: var(--brand-loader-size, 56px);
  margin-inline: auto;
}
.brand-loader-mark::before,
.brand-loader-mark::after {
  content: ""; position: absolute; inset: 0;
}
.brand-loader-mark::before {
  background: var(--brand-loader-arc, var(--accent));
  -webkit-mask: var(--brand-arc) center / contain no-repeat;
  mask: var(--brand-arc) center / contain no-repeat;
}
.brand-loader-mark::after {
  background: var(--brand-loader-tail, var(--ink));
  -webkit-mask: var(--brand-tail) center / contain no-repeat;
  mask: var(--brand-tail) center / contain no-repeat;
}
.brand-loader-mark.spin { animation: brand-spin 1.4s linear infinite; }
.brand-loader-rail {
  position: relative; width: min(100%, var(--brand-loader-rail-width, 360px));
  height: 44px; margin-inline: auto;
}
.brand-loader-rail::after {
  content: ""; position: absolute; left: 0; right: 0; top: 40px; height: 2px;
  border-radius: var(--r-pill); background: var(--line);
}
.brand-loader-rail.no-line::after { display: none; }
.brand-loader-rail .brand-loader-mark {
  --brand-loader-size: 40px;
  position: absolute; left: 0; top: 0;
  animation: brand-roll 1.8s ease-in-out infinite alternate;
}
.brand-loader-skeleton {
  position: relative; min-height: 230px; padding: var(--sp-5);
}
.brand-loader-skeleton::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
  background: var(--ink); opacity: 0.04;
  -webkit-mask: var(--brand-mark) center / contain no-repeat;
  mask: var(--brand-mark) center / contain no-repeat;
}
.brand-skeleton-lines {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3);
}
.brand-skeleton-lines span {
  height: 14px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--line), var(--line-2), var(--line));
  background-size: 200% 100%; animation: brand-shimmer 1.4s linear infinite;
}
.brand-skeleton-lines span:nth-child(1) { width: 60%; }
.brand-skeleton-lines span:nth-child(2) { width: 90%; }
.brand-skeleton-lines span:nth-child(3) { width: 75%; }
.brand-skeleton-lines span:nth-child(4) { width: 40%; }

@keyframes brand-spin { to { transform: rotate(360deg); } }
@keyframes brand-roll {
  from { left: 0; transform: rotate(0deg); }
  to { left: calc(100% - var(--brand-loader-size, 40px)); transform: rotate(360deg); }
}
@keyframes brand-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-spinner, .brand-loader-mark.spin, .brand-loader-rail .brand-loader-mark,
  .brand-skeleton-lines span {
    animation: none;
  }
}

/* ===========================================================================
   RESPONSIVE - THE standard. Breakpoints: sm 600 · md 768 · lg 1024 · xl 1280.
   Most components already reflow (fluid clamp() type; tables - cards at md;
   forms/segments - 1-col at sm). These are the shared layout primitives so no
   project hand-rolls them again.
   =========================================================================== */

/* container: centred, capped at --maxw, gutter tightens on phones */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 600px) { .container { padding-inline: var(--gutter-sm); } }

/* auto-stacking grid - NO breakpoints needed: columns wrap once they can't hold
   --col-min (default 260px). The default for card/tile grids that should reflow. */
.cols { display: grid; gap: 1.4rem; align-content: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--col-min, 260px)), 1fr)); }
.cols.tight { --col-min: 200px; gap: 1rem; }
.cols.wide  { --col-min: 320px; }

/* explicit two-up that collapses to one column at md (use when auto-fit won't do) */
.row-md { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 768px) { .row-md { grid-template-columns: 1fr; } }

/* responsive visibility */
@media (max-width: 600px) { .hide-sm { display: none !important; } }
.show-sm { display: none; }
@media (max-width: 600px) { .show-sm { display: revert !important; } }

/* touch ergonomics: tappable controls reach the 44px minimum on coarse pointers */
@media (pointer: coarse) {
  .button, .btn, .button.sm, .btn-sm, .button.icon, .icon-btn, .button.close, .x-btn,
  .chip, .pagination a, .pager a, .tab-nav a, .tabs a, .site-nav a,
  .segmented-control button, .mode-switch button,
  .filter-chip .filter-chip-remove, .chip-removable .x, .menu-item, .nav-item {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .surface-card:hover, .card:hover, .step-card:hover, .flow-step:hover,
  .choice-card:hover, .opt-card:hover, .feature-tile:hover, .bento-tile:hover {
    transform: none;
  }
}
