/* CrushMFT27 site, drawn in the product's own language: a top app bar with a capsule menubar, list cards with a
   hairline between rows, and the one selected state the admin apps share: a light accent tint and a short accent
   bar that grows in on the left (never a full border, never a bar that follows the corner).
   Every colour and face is a token here; the theme blocks swap them. */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --orange: #ff8010;
  --orange-hover: #ff9a45;
  --on-orange: #17222b;
  --green: #22c55e;
  --green-ink: #7ddc9f;
  --blue: #60a5fa;
  --red: #f87171;

  /* the console frame is dark in both themes, like the admin it shows */
  --console-bg: #1d1d1d;
  --console-bar: #202020;
  --console-line: #3a3a3a;
  --console-ink: #e3e7ea;
  --console-muted: #a3acb3;
  --console-tab-on: #ffffff1a;
  --console-hover: #303336;
  --console-focus: #ff994e;

  --topbar: 64px;
  --strip: 52px;
  --measure: 1344px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 700ms;
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141414;
  --chrome: #1b1b1b;
  --panel: #1f1f1f;
  --panel-2: #262626;
  --line: #2f2f2f;
  --rule: #2a2a2a;
  --line-strong: #3d3d3d;
  --ink: #e6eaed;
  --strong: #fafbfb;
  --muted: #a3acb3;
  --faint: #8a939a;
  --accent-ink: #f1f3f4;
  --link: #ffa053;        /* inline links: AA on every dark surface (6.0–9.1:1) */
  --link-line: #ffa05380;
  --hover: #262626;
  --sel: #ffffff1a;
  --sel-soft: #ffffff0d;
  --sel-edge: #4d5357;
  --canvas-dot: #2e2e2e;
  --scrim: #000000a6;
  --shadow: 0 28px 70px -36px #000000e6;
  --shadow-sm: 0 6px 18px -10px #000000b3;
  --focus: #ffa053;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f6;
  --chrome: #ffffff;
  --panel: #ffffff;
  --panel-2: #f6f8f9;
  --line: #e2e7ea;
  --rule: #edf0f2;
  --line-strong: #cdd5da;
  --ink: #1f2a33;
  --strong: #10191f;
  --muted: #52616d;
  --faint: #66737e;
  --accent-ink: #17222b;
  --link: #a94700;        /* inline links: AA on every light surface (4.9–5.9:1) */
  --link-line: #a9470073;
  --hover: #eef2f4;
  --sel: #10191f17;
  --sel-soft: #10191f0a;
  --sel-edge: #b7c1c8;
  --canvas-dot: #d9e0e4;
  --scrim: #17222b66;
  --shadow: 0 28px 70px -40px #17222b59;
  --shadow-sm: 0 6px 18px -12px #17222b40;
  --focus: #bd5100;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + var(--strip) + 16px); -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--strong); font-weight: 750; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sprite { display: none; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
svg use { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; transition: none; }
::selection { background: var(--sel); color: var(--strong); }
[hidden] { display: none !important; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--orange); color: var(--on-orange); font-weight: 750;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

[data-theme="dark"] .logo-light, [data-theme="light"] .logo-dark { display: none; }
[data-theme="dark"] .show-light, [data-theme="light"] .show-dark { display: none; }

/* ------------------------------------------------------------------ the product's selected state */
/* A tint and a short accent bar on the left that grows in: the admin apps' one selection, used everywhere below. */
@keyframes bar-in { from { opacity: 0; transform: scaleY(.4); } }
.sel { position: relative; }
.sel::before,
.list-card :is(a, button)[aria-current]::before,
.list-card :is(a, button)[aria-selected="true"]::before,
.list-card button[aria-checked="true"]::before,
.list-card a.is-active::before {
  content: "";
  position: absolute; left: 0; top: .4rem; bottom: .4rem;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--orange);
  pointer-events: none;
  animation: bar-in var(--t-med) var(--ease);
}

/* list card: a card, a hairline between rows, rows that tint */
.list-card {
  display: grid; gap: 0; padding: 4px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--panel);
}
.list-card > li + li { border-top: 1px solid var(--rule); }
.list-card :is(a, button) {
  position: relative;
  display: grid; gap: 2px; width: 100%;
  min-height: 40px; padding: 8px 12px 8px 14px; align-content: center;
  border: 0; border-radius: var(--r-sm); background: transparent;
  color: var(--ink); text-align: left; font-size: .9375rem; line-height: 1.35;
  cursor: pointer;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.list-card :is(a, button):hover { background: var(--hover); }
.list-card :is(a, button):active { background: var(--sel-soft); }
.list-card :is(a, button)[aria-current],
.list-card :is(a, button)[aria-selected="true"],
.list-card button[aria-checked="true"],
.list-card a.is-active { background: var(--sel); color: var(--strong); font-weight: 600; }
.list-card :is(a, button):focus-visible { outline-offset: -2px; }
.list-card strong { font-weight: 650; color: inherit; }
.list-card small { color: var(--faint); font-size: .8125rem; font-weight: 450; }
.list-card :is([aria-current], [aria-selected="true"], [aria-checked="true"], .is-active) small { color: var(--muted); } /* AA on the selection tint */

/* chips: tinted when on, no box and no underline (the product's section tab strip) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  border: 0; border-radius: var(--r-sm); background: transparent;
  color: var(--muted); font-size: .9375rem; font-weight: 600; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.chips button svg { width: 18px; height: 18px; }
.chips button:hover { background: var(--hover); color: var(--ink); }
.chips button:active { background: var(--sel-soft); }
.chips button:is([aria-selected="true"], [aria-checked="true"], [aria-pressed="true"]) { background: var(--sel); color: var(--strong); }
.chips button:is([aria-selected="true"], [aria-checked="true"], [aria-pressed="true"]) svg { color: var(--accent-ink); }
.chips.small button { min-height: 32px; padding: 0 10px; font-size: .875rem; }

/* capsule: the top menubar's track with a raised pill */
.capsule {
  display: inline-flex; gap: 2px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2);
}
.capsule button {
  min-height: 36px; padding: 0 16px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font-size: .875rem; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.capsule button:hover { color: var(--strong); }
.capsule button:active { transform: translateY(1px); }
.capsule { border-color: var(--sel-edge); background: var(--panel); }
.capsule button[aria-checked="true"] { background: var(--strong); color: var(--bg); font-weight: 700; box-shadow: var(--shadow-sm); }
.capsule button[aria-checked="true"]:hover { color: var(--bg); }

/* ------------------------------------------------------------------ controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: .9375rem; font-weight: 750; line-height: 1; white-space: nowrap; text-align: center;
  cursor: pointer;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-fast) var(--ease), box-shadow var(--t-fast) ease;
}
.btn svg { width: 18px; height: 18px; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.btn.lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.btn.primary { background: var(--orange); color: var(--on-orange); box-shadow: var(--shadow-sm); }
.btn.primary svg use { fill: currentColor; }
.btn.primary:hover { background: var(--orange-hover); transform: translateY(-1px); }
.btn.ghost { border-color: var(--line-strong); background: transparent; color: var(--strong); }
.btn.ghost:hover { border-color: var(--accent-ink); background: var(--sel-soft); transform: translateY(-1px); }
.btn:active { transform: scale(.97); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"], .btn:is(.primary, .ghost):disabled { cursor: not-allowed; opacity: .55; background: var(--panel-2); color: var(--muted); border-color: var(--line); box-shadow: none; transform: none; }

.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--panel); color: var(--ink);
  cursor: pointer;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-fast) var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--hover); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(.94); }

/* one link style for links in text: accent ink, a thin offset underline that firms up on hover, a clear focus ring.
   Buttons, navigation, jump bars and card-wide links have their own classes and are not touched. */
.link,
main :is(p, dd, td, figcaption, small, .lede) a:not([class]) {
  color: var(--link); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: var(--link-line);
  border-radius: 2px;
  transition: text-decoration-color var(--t-fast) ease, text-decoration-thickness var(--t-fast) ease;
}
.link { font-weight: 750; font-size: .9375rem; text-underline-offset: 5px; }
:is(.link, main :is(p, dd, td, figcaption, small, .lede) a:not([class])):hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
:is(.link, main :is(p, dd, td, figcaption, small, .lede) a:not([class])):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; text-decoration-color: currentColor; }
.link:active { opacity: .75; }

.badge {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px;
  border-radius: 6px; background: var(--sel); color: var(--accent-ink);
  font-size: .75rem; font-weight: 700;
}

.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .field-label { color: var(--muted); font-size: .875rem; font-weight: 600; }
.field :is(input, select, textarea), .side-search input {
  width: 100%; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--panel-2); color: var(--strong);
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.field :is(input, select, textarea):hover { border-color: var(--faint); }
.field :is(input, select, textarea):focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: .9375rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }

/* ------------------------------------------------------------------ shell */
.shell { min-height: 100dvh; }

.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  height: var(--topbar);
  /* the bar's contents sit on the page's own column: at 1920 the gutters grow, the bar does not */
  padding-inline: max(clamp(16px, 3.2vw, 56px), calc((100% - var(--measure)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--chrome);
}
.brand { flex: none; display: block; padding: 6px 4px; border-radius: var(--r-sm); }
.brand img { width: 171px; height: 32px; }
.menu-btn { display: none; }

/* main menubar: a capsule track like the product's header nav */
.mainnav { display: flex; align-items: center; margin-left: 20px; }
.drawer-head, .drawer-cta { display: none; }
.menubar {
  display: flex; align-items: center; gap: 2px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2);
}
.menubar > li { position: relative; }
.menubar-item {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px;
  border-radius: 999px;
  color: var(--muted); font-size: .9375rem; font-weight: 600; white-space: nowrap;
  cursor: pointer; list-style: none;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.menubar-item::-webkit-details-marker { display: none; }
summary.menubar-item::after {
  content: ""; width: 6px; height: 6px; margin-left: 2px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--t-med) var(--ease);
}
.menu[open] > summary.menubar-item::after { transform: translateY(1px) rotate(225deg); }
.menubar-item:hover, .menu[open] > .menubar-item { color: var(--strong); background: var(--panel); }
.menubar-item:active { transform: translateY(1px); }
.menubar-item[aria-current], .menubar-item.is-current {
  color: var(--strong); background: var(--panel);
  box-shadow: 0 1px 2px #0000002e, inset 0 0 0 1px var(--line);
}
.menu-panel {
  position: absolute; top: calc(100% + 10px); left: -8px; z-index: 70;
  width: 380px; padding: 0;
  filter: drop-shadow(0 24px 40px #00000059);
}
.menu-panel.narrow { width: 300px; }
.menu[open] > .menu-panel { animation: menu-in 220ms var(--ease) both; }
.menu-panel .list-card { background: var(--chrome); }
.menu-panel .list-card a { padding-block: 10px; }

.search {
  flex: none; margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 8px 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--panel-2); color: var(--faint);
  font-size: .9375rem; cursor: pointer;
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.search svg { flex: none; width: 18px; height: 18px; }
.search:hover { border-color: var(--line-strong); background: var(--hover); color: var(--ink); }
.search:active { transform: translateY(1px); }
kbd {
  flex: none; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--panel); color: var(--muted); font: inherit; font-size: .8125rem; font-weight: 600;
}
.theme-btn, .top-cta { flex: none; }
.scrim { display: none; }

/* the home page's own section strip, sticky under the bar */
.strip {
  position: sticky; top: var(--topbar); z-index: 50;
  height: var(--strip);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
}
.strip ul {
  display: flex; align-items: center; gap: 4px;
  max-width: calc(var(--measure) + 2 * clamp(20px, 3.2vw, 56px)); height: 100%;
  margin-inline: auto; padding: 0 clamp(20px, 3.2vw, 56px);
  overflow-x: auto; scrollbar-width: none;
}
.strip a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 36px; padding: 0 12px 0 14px; border-radius: var(--r-sm);
  color: var(--muted); font-size: .875rem; font-weight: 600; white-space: nowrap;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.strip a:hover { background: var(--hover); color: var(--ink); }
.strip a:active { background: var(--sel-soft); }
.strip a[aria-current] { background: var(--sel); color: var(--strong); }
.strip a[aria-current]::before { content: ""; position: absolute; left: 0; top: .4rem; bottom: .4rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); animation: bar-in var(--t-med) var(--ease); }

/* ------------------------------------------------------------------ main and views */
main {
  min-width: 0;
  padding: 0 clamp(20px, 3.2vw, 56px);
  outline: none;
}
.view, .foot, .page-head, .page-body, .settings { max-width: var(--measure); margin-inline: auto; }
.view { padding-block: clamp(40px, 4.5vw, 64px); }
.view-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 36px; }
.view-head h2, .wizard h2 { max-width: 22ch; font-size: clamp(1.875rem, 1.2rem + 2.1vw, 2.875rem); line-height: 1.1; letter-spacing: -.025em; }
.view-sub { max-width: 60ch; margin-top: 14px; color: var(--muted); font-size: 1.0625rem; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; }

/* ------------------------------------------------------------------ 1. overview */
.hero { padding-block: clamp(32px, 4.5vw, 64px) clamp(16px, 2vw, 32px); }
.hero-copy {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end; gap: 24px 56px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.hero h1 { font-size: clamp(2.75rem, 1.4rem + 4.4vw, 5.25rem); line-height: .98; letter-spacing: -.045em; }
.lede { color: var(--muted); font-size: 1.125rem; line-height: 1.6; max-width: 48ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }

.console { min-width: 0; }
.console-tabs-wrap { margin: 0; padding: 0; border: 0; min-width: 0; }
.console-tabs {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 0 0 12px;
}
.console-tabs label {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 0 14px; border-radius: var(--r-sm);
  color: var(--muted); font-size: .9375rem; font-weight: 600; white-space: nowrap;
  cursor: pointer;
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.console-tabs label:hover { color: var(--ink); background: var(--hover); }
.console-tabs label:active { opacity: .85; }
#v-dashboard:checked ~ .console-tabs label[for="v-dashboard"],
#v-sessions:checked ~ .console-tabs label[for="v-sessions"],
#v-files:checked ~ .console-tabs label[for="v-files"],
#v-jobs:checked ~ .console-tabs label[for="v-jobs"],
#v-reports:checked ~ .console-tabs label[for="v-reports"],
#v-ai:checked ~ .console-tabs label[for="v-ai"] { color: var(--strong); background: var(--sel); }
#v-dashboard:focus-visible ~ .console-tabs label[for="v-dashboard"],
#v-sessions:focus-visible ~ .console-tabs label[for="v-sessions"],
#v-files:focus-visible ~ .console-tabs label[for="v-files"],
#v-jobs:focus-visible ~ .console-tabs label[for="v-jobs"],
#v-reports:focus-visible ~ .console-tabs label[for="v-reports"],
#v-ai:focus-visible ~ .console-tabs label[for="v-ai"] { outline: 2px solid var(--focus); outline-offset: 2px; }

.console-view {
  display: none; margin: 0;
  border: 1px solid var(--console-line); border-radius: var(--r-lg);
  background: var(--console-bg); color: var(--console-ink);
  box-shadow: var(--shadow); overflow: clip;
}
/* a phone gets a readable part of the dashboard instead of the whole screen shrunk to a few pixels */
.console-phone { display: none; }
.console-phone {
  border: 1px solid var(--console-line); border-radius: var(--r-md);
  background: var(--console-bg); color: var(--console-muted); overflow: clip;
}
.console-phone img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
.console-phone span { display: block; padding: 12px 14px 14px; border-top: 1px solid var(--console-line); font-size: .875rem; line-height: 1.45; }
.console-phone strong { display: block; margin-top: 2px; color: var(--console-ink); text-decoration: underline; text-underline-offset: 4px; }
.console-phone:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
#v-dashboard:checked ~ .view-dashboard,
#v-sessions:checked ~ .view-sessions,
#v-files:checked ~ .view-files,
#v-jobs:checked ~ .view-jobs,
#v-reports:checked ~ .view-reports,
#v-ai:checked ~ .view-ai { display: block; animation: view-in var(--t-slow) var(--ease) both; }
/* five tabs: the short names on a phone, so the row fits without scrolling */
.console-tabs .t-short { display: none; }
.console-view > img { width: 100%; }
.console-view figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 8px 16px;
  border-top: 1px solid var(--console-line);
  color: var(--console-muted); font-size: .875rem;
}
.console-view figcaption .cap-hint { color: var(--console-ink); text-align: right; }
#hero-shot { scroll-margin-top: calc(var(--topbar) + var(--strip) + 16px); }
.console-view figcaption a { color: var(--console-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.hd-pause {
  position: relative;
  min-height: 32px; padding: 0 14px;
  border: 1px solid var(--console-line); border-radius: var(--r-sm);
  background: transparent; color: var(--console-ink); font-size: .875rem; font-weight: 700;
  cursor: pointer;
  transition: background-color var(--t-fast) ease;
}
.hd-pause::after { content: ""; position: absolute; inset: -6px -4px; }
.hd-pause:hover { background: var(--console-hover); }
.hd-pause:active { transform: translateY(1px); }
.hd-pause:focus-visible { outline-color: var(--console-focus); }

.listeners {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin-top: 20px;
}
.listeners-label { color: var(--faint); font-size: .875rem; font-weight: 600; }
.listeners ul { display: flex; flex-wrap: wrap; gap: 8px; }
.listeners ul a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--strong); font-size: .875rem; font-weight: 700;
  transition: border-color var(--t-fast) ease, transform var(--t-fast) var(--ease), background-color var(--t-fast) ease;
}
.listeners ul a:hover { border-color: var(--accent-ink); background: var(--sel-soft); transform: translateY(-1px); }
.listeners ul a:active { background: var(--sel); }
.listeners .link { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; }

/* ------------------------------------------------------------------ 2. demos: see app-replica.css */
.demo-noscript { padding: 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--muted); }

/* ------------------------------------------------------------------ 3. inspector */
.inspector { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
.inspector-list { position: sticky; top: calc(var(--topbar) + var(--strip) + 24px); }
.inspector-list button { padding: 14px 16px 14px 18px; gap: 4px; }
.inspector-list button strong { color: var(--strong); font-size: 1rem; font-weight: 700; }
.inspector-list button span { color: var(--faint); font-size: .875rem; font-weight: 450; }
.inspector-panels { display: grid; gap: 24px; min-width: 0; }
.panel { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); overflow: clip; }
.panel-copy { display: grid; gap: 12px; justify-items: start; padding: 28px 32px; }
.panel-copy p { max-width: 60ch; color: var(--muted); }
.shot {
  display: grid; place-items: center;
  padding: 28px; min-height: 320px;
  border-top: 1px solid var(--line);
  background: radial-gradient(var(--canvas-dot) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--panel-2);
}
.shot img {
  width: auto; max-width: 100%; max-height: 460px;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow);
  transition: transform var(--t-med) var(--ease);
}
.shot:hover img { transform: translateY(-3px); }
.shot:active img { transform: translateY(-2px); }
html:not(.js) .inspector { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .inspector-list { display: none; }

/* ------------------------------------------------------------------ 5. designer */
.designer { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); overflow: clip; }
.designer-copy { display: grid; gap: 12px; align-content: center; justify-items: start; padding: 32px; border-right: 1px solid var(--line); }
.designer-copy p { color: var(--muted); }
.canvas {
  counter-reset: node;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; align-items: center;
  padding: 56px 40px;
  background: radial-gradient(var(--canvas-dot) 1.1px, transparent 1.3px) 0 0 / 20px 20px, var(--panel-2);
}
.canvas li {
  counter-increment: node; position: relative;
  display: grid; gap: 6px; align-content: start;
  min-height: 148px; padding: 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--panel); box-shadow: var(--shadow-sm);
  transition: border-color var(--t-med) ease, box-shadow var(--t-med) ease;
}
.canvas li::before {
  content: counter(node);
  display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px;
  border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-strong);
  color: var(--muted); font-size: .8125rem; font-weight: 750;
  transition: background-color var(--t-med) ease, color var(--t-med) ease, border-color var(--t-med) ease;
}
.canvas li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; left: 100%; width: 36px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 11px);
  background-size: 22px 2px; transition: background-image .4s ease;
}
.canvas strong { color: var(--strong); font-size: 1rem; font-weight: 750; }
.canvas span { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.canvas li.is-active { border-color: var(--faint); box-shadow: 0 0 0 4px var(--sel), var(--shadow-sm); }
.canvas li.is-active::before { background: var(--strong); border-color: var(--strong); color: var(--bg); }
.canvas li.is-done::before { border-color: var(--accent-ink); color: var(--accent-ink); }
/* the hero dashboard's status colours: the active step and the done steps are the "Healthy" green (the active one solid),
   and the link out of a finished step flows orange like the traffic line; darker inks in light for AA text contrast */
.canvas { --st-done: var(--green-ink); --st-run: var(--green-ink); --st-run-on: #0b1622; --st-flow: var(--orange); }
:root[data-theme="light"] .canvas { --st-done: #15803d; --st-run: #15803d; --st-run-on: #ffffff; --st-flow: #c2570c; }
.canvas li.is-done::before { border-color: color-mix(in srgb, var(--st-done) 55%, transparent); background: color-mix(in srgb, var(--st-done) 14%, var(--panel)); color: var(--st-done); }
.canvas li.is-active {
  border-color: var(--line-strong);
  background: linear-gradient(var(--st-run), var(--st-run)) left center / 3px 56% no-repeat, color-mix(in srgb, var(--st-run) 9%, var(--panel));
  box-shadow: var(--shadow-sm);
}
.canvas li.is-active::before { background: var(--st-run); border-color: var(--st-run); color: var(--st-run-on); }
.canvas li.is-done:not(:last-child)::after { background-image: repeating-linear-gradient(90deg, var(--st-flow) 0 6px, transparent 6px 11px); }

/* ------------------------------------------------------------------ 6. editions */
div.editions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.edition {
  position: relative;
  display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; align-content: start;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--panel);
  transition: border-color var(--t-med) ease, transform var(--t-med) var(--ease);
}
.edition:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.edition h3, .edition h4 { font-size: 1.125rem; }
.edition .tagline { color: var(--muted); font-size: .9375rem; }
.edition .price-note { color: var(--faint); font-size: .875rem; }
.edition .btn { justify-self: start; margin-top: 6px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--muted); font-size: .875rem; }
.price strong { display: inline-block; color: var(--strong); font-size: 2.375rem; font-weight: 750; line-height: 1.05; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.edition.featured { border-color: var(--line-strong); background: var(--panel-2); box-shadow: var(--shadow-sm); overflow: clip; }
.edition.featured::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--orange); }
.edition-badge { position: absolute; top: 22px; right: 22px; padding: 3px 10px; border-radius: 999px; background: var(--sel); color: var(--strong); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }

.enterprise {
  position: relative;
  margin-top: 16px; padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line-strong); border-radius: calc(var(--r-lg) + 4px);
  background: var(--panel); overflow: clip;
}
.enterprise { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.ent-main h3 { font-size: 1.625rem; letter-spacing: -.02em; }
.ent-main .tagline { margin-top: 6px; color: var(--muted); }
.ent-features { columns: 3; column-gap: 32px; margin-top: 18px; }
.ent-features li { break-inside: avoid; padding: 9px 0 9px 22px; border-top: 1px solid var(--rule); color: var(--ink); font-size: .9375rem; line-height: 1.4; position: relative; }
.ent-features li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 10px; height: 5px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
/* the three Enterprise licenses side by side, split by rules rather than boxed */
.ent-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ent-tier { display: flex; flex-direction: column; gap: 8px; padding: 24px 28px 4px; }
.ent-tier:first-child { padding-left: 0; }
.ent-tier:last-child { padding-right: 0; }
.ent-tier + .ent-tier { border-left: 1px solid var(--line); }
.ent-tier h4 { font-size: 1.125rem; }
.ent-tier .tagline { color: var(--muted); font-size: .9375rem; }
.ent-tier .price strong { font-size: 2.375rem; }
.ent-tier .price-each { color: var(--accent-ink); font-size: .9375rem; font-weight: 650; }
.ent-tier .price-note { color: var(--faint); font-size: .875rem; }
.ent-tier .btn { align-self: flex-start; margin-top: auto; }
.ent-tier .price-note { margin-bottom: 8px; }
.ent-notes { grid-column: 1 / -1; }
.ent-notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); }
.ent-notes p { color: var(--muted); font-size: .9375rem; }
.ent-notes strong { color: var(--strong); }
.price.flip strong, .price.flip span { display: inline-block; }

/* ------------------------------------------------------------------ 7. wizard */
.wizard {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px 64px; align-items: center;
  padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel);
}
.wizard-copy p { max-width: 56ch; margin-top: 16px; color: var(--muted); }
ol.steps { position: relative; display: grid; gap: 16px; }
ol.steps::before, ol.steps::after { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; }
ol.steps::before { background: var(--line-strong); }
ol.steps::after { background: var(--muted); transform: scaleY(var(--progress, 0)); transform-origin: top; }
ol.steps li { position: relative; z-index: 1; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; column-gap: 16px; min-height: 60px; }
ol.steps li small { grid-column: 2; color: var(--faint); font-size: .875rem; }
ol.steps strong { color: var(--strong); font-size: 1.125rem; font-weight: 750; }
.step-n {
  grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px;
  border: 2px solid var(--line-strong); border-radius: 50%;
  background: var(--panel); color: var(--muted); font-weight: 750;
  transition: background-color var(--t-med) ease, border-color var(--t-med) ease, color var(--t-med) ease;
}
ol.steps li.lit .step-n { background: var(--strong); border-color: var(--strong); color: var(--bg); }

/* ------------------------------------------------------------------ inner pages: head, "On this page", content */
.page-head { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px); }
.page-head h1 { max-width: 20ch; font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.5rem); line-height: 1.02; letter-spacing: -.04em; }
.page-head h1 span { color: inherit; }
.page-head .lede, .page-head > p { max-width: 64ch; margin-top: 20px; }
.page-head .legal-date { color: var(--faint); font-size: .9375rem; }
.page-body { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 80px; }
.page-body.no-jump { grid-template-columns: minmax(0, 1fr); }
.page-body.no-jump .jump { display: none; }
.jump { position: sticky; top: calc(var(--topbar) + 20px); max-height: calc(100dvh - var(--topbar) - 40px); overflow-y: auto; scrollbar-width: thin; }
.jump-title { padding: 0 4px 8px; color: var(--faint); font-size: .875rem; font-weight: 600; }
.jump a { font-size: .875rem; }
.page-content { min-width: 0; }
/* the wider page column must not stretch running text: answers, callouts, notes and stacked copy keep a reading measure */
.page-content :is(details, .callout, .stack) p, .page-content .feature-note { max-width: 70ch; }

/* settings layout (protocols): a side list and a panel, like Preferences */
.settings { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 88px; }
.settings-side { position: sticky; top: calc(var(--topbar) + 20px); display: grid; gap: 10px; }
.side-search { position: relative; display: block; }
.side-search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; color: var(--faint); transform: translateY(-50%); pointer-events: none; }
.side-search input { padding-left: 38px; }
.proto-list button { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; }
.proto-list button small { grid-column: 1; }
.proto-list .badge { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.side-empty { padding: 12px; color: var(--faint); }
.settings-main { min-width: 0; }
.proto-panel { display: grid; gap: 20px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.proto-panel header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.proto-panel h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -.03em; }
.proto-panel .role { color: var(--muted); font-weight: 600; }
.proto-desc { max-width: 60ch; color: var(--ink); font-size: 1.125rem; }
.sides { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); align-items: center; gap: 0; }
.side { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-2); color: var(--faint); }
.side svg { width: 28px; height: 28px; }
.side strong { color: var(--muted); }
.side.on { border-color: var(--sel-edge); background: var(--sel-soft); }
.side.on svg { color: var(--accent-ink); }
.side.on strong { color: var(--strong); }
.side small { font-size: .875rem; }
.wire { height: 2px; margin-inline: 8px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 11px); background-size: 22px 2px; }

/* dialogs used by the content pages (feature details, video player) */
.modal-sheet {
  width: min(760px, 100% - 32px); max-height: min(86dvh, 900px); padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: var(--chrome); color: var(--ink); box-shadow: var(--shadow);
}
.modal-sheet.video-modal { width: min(1080px, 100% - 32px); }
.modal-sheet::backdrop { background: var(--scrim); }
.modal-sheet[open] { animation: palette-in 260ms var(--ease) both; }
.modal-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px 24px; border-bottom: 1px solid var(--line); }
.modal-sheet-head h2 { font-size: 1.25rem; }
.modal-sheet-body { padding: 24px; overflow-y: auto; max-height: calc(min(86dvh, 900px) - 140px); }
.modal-sheet-body p { color: var(--muted); }
.modal-sheet-body p + p { margin-top: 12px; }
.modal-sheet-body video { width: 100%; border-radius: var(--r-md); background: #000000; }
.modal-sheet-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ footer */
.foot { padding-block: 56px 32px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-brand img { width: 171px; height: 32px; }
.foot-brand p { max-width: 32ch; color: var(--muted); font-size: .9375rem; }
.foot h2 { margin-bottom: 10px; font-size: .9375rem; letter-spacing: 0; }
.foot-grid > div:not(.foot-brand) { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.foot-grid > div:not(.foot-brand) a { padding-block: 6px; color: var(--muted); font-size: .9375rem; transition: color var(--t-fast) ease; }
.foot-grid > div a:hover, .foot-bar a:hover { color: var(--strong); }
.foot-grid > div a:active, .foot-bar a:active { opacity: .75; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: .875rem; }
.foot-bar div { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-bar a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

/* ------------------------------------------------------------------ command palette */
.palette {
  width: min(640px, 100% - 32px); max-height: min(560px, 100dvh - 96px);
  margin: 12vh auto auto; padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: var(--chrome); color: var(--ink); box-shadow: var(--shadow);
}
.palette::backdrop { background: var(--scrim); }
.palette[open] { animation: palette-in 260ms var(--ease) both; }
.palette-box { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: inherit; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line); }
.palette-input svg { flex: none; width: 20px; height: 20px; color: var(--faint); }
.palette-input input { flex: 1; min-width: 0; min-height: 48px; border: 0; outline: 0; background: transparent; color: var(--strong); font-size: 1.0625rem; }
.palette-input input::placeholder { color: var(--faint); }
.esc { min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel-2); color: var(--muted); font-size: .8125rem; font-weight: 600; cursor: pointer; }
.esc:hover { color: var(--strong); }
.esc:active { transform: translateY(1px); }
.palette-list { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.palette-list .group { padding: 12px 12px 4px; color: var(--faint); font-size: .8125rem; font-weight: 600; }
.palette-list a {
  position: relative;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 12px 12px 12px 16px; border-radius: var(--r-sm);
  color: var(--ink); font-weight: 600;
}
.palette-list a small { color: var(--faint); font-size: .8125rem; font-weight: 450; text-align: right; }
.palette-list a[aria-selected="true"] { background: var(--sel); color: var(--strong); }
.palette-list a[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: .4rem; bottom: .4rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); }
.palette-list a:active { opacity: .8; }
.palette-empty { padding: 24px; color: var(--muted); }

.tabbar { display: none; }

/* selects: the kit's chevron, inset from the edge instead of the browser's arrow at the far right */
select {
  -webkit-appearance: none; appearance: none;
  padding-right: 36px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238a939a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  background-size: 11px 8px !important;
}
select::-ms-expand { display: none; }

/* SplitText line masks: room for descenders */
:is([data-split], .page-head h1) > [class*="mask"] { padding-bottom: .14em; margin-bottom: -.14em; }

/* ------------------------------------------------------------------ keyframes */
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes palette-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes flow { to { background-position: 22px 0; } }
@keyframes flow-down { to { background-position: 0 18px; } }

/* theme switch: the new theme opens as a circle from the toggle */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: theme-reveal 620ms var(--ease) both; }
@keyframes theme-reveal { from { clip-path: circle(0 at var(--vt-x, 100%) var(--vt-y, 0)); } to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 100%) var(--vt-y, 0)); } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1240px) {
  .search span, .search kbd { display: none; }
  .search { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 1100px) {
  .menu-btn { display: inline-grid; }
  .mainnav {
    position: fixed; z-index: 90; top: 0; left: 0; bottom: 0;
    width: min(340px, 100% - 48px);
    margin: 0; padding: 12px;
    display: flex; flex-direction: column; align-items: stretch; gap: 12px;
    overflow-y: auto; overscroll-behavior: contain;
    border-right: 1px solid var(--line-strong);
    background: var(--chrome); box-shadow: var(--shadow);
    transition: transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  }
  .js .mainnav { transform: translateX(-104%); visibility: hidden; }
  .js .mainnav.open { transform: none; visibility: visible; transition: transform var(--t-med) var(--ease); }
  html:not(.js) .mainnav { position: static; width: auto; box-shadow: none; }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 12px 8px; border-bottom: 1px solid var(--line); color: var(--strong); font-weight: 750; }
  .drawer-cta { display: inline-flex; }
  .menubar { flex-direction: column; align-items: stretch; gap: 2px; padding: 4px; border-radius: var(--r-md); background: var(--panel); }
  .menubar-item { width: 100%; min-height: 44px; border-radius: var(--r-sm); justify-content: space-between; }
  summary.menubar-item::after { margin-left: auto; }
  .menubar-item[aria-current], .menubar-item.is-current { box-shadow: none; background: var(--sel); }
  .menu-panel, .menu-panel.narrow { position: static; width: auto; padding: 4px 0 8px; filter: none; }
  .menu-panel .list-card { background: var(--panel-2); }
  .scrim { position: fixed; inset: 0; z-index: 80; display: block; background: var(--scrim); opacity: 0; transition: opacity var(--t-med) ease; }
  .scrim.on { opacity: 1; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
  .inspector { grid-template-columns: minmax(0, 1fr); }
  .inspector-list { position: static; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .inspector-list > li + li { border-top: 0; }
  .designer { grid-template-columns: minmax(0, 1fr); }
  .designer-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .wizard { grid-template-columns: minmax(0, 1fr); }
  .ent-features { columns: 2; }
  .ent-tiers { grid-template-columns: minmax(0, 1fr); }
  .ent-tier, .ent-tier:first-child, .ent-tier:last-child { padding: 20px 0; }
  .ent-tier + .ent-tier { border-left: 0; border-top: 1px solid var(--line); }
  .page-body, .settings { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .jump, .settings-side { position: static; max-height: none; }
  .jump .list-card { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
  .jump .list-card > li + li { border-top: 0; }
  .proto-list { max-height: 320px; overflow-y: auto; }
}
@media (max-width: 860px) {
  div.editions { grid-template-columns: minmax(0, 1fr); }
  .ent-features { columns: 1; }
  .ent-notes { grid-template-columns: minmax(0, 1fr); }
  .canvas { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 24px; }
  .canvas li { min-height: 0; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .canvas li::before { grid-row: span 2; margin: 0; }
  .canvas li:not(:last-child)::after {
    top: 100%; left: 30px; width: 2px; height: 28px;
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 11px);
    background-size: 2px 18px;
  }
  .sides { grid-template-columns: minmax(0, 1fr); }
  .wire { width: 2px; height: 28px; margin: 4px auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 11px); background-size: 2px 18px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --topbar: 56px; --strip: 0px; }
  .topbar { gap: 8px; padding: 0 12px; }
  .brand img { width: 139px; height: 26px; }
  .top-cta { display: none; }
  .strip { display: none; }
  main { padding: 0 16px; }
  .home main { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .lede { font-size: 1.0625rem; }
  .actions .btn { flex: 1 1 auto; white-space: normal; }
  /* links that stand on their own get a full-size touch target */
  :is(.panel-copy, .designer-copy, .actions) > .link { display: inline-flex; align-items: center; min-height: 44px; }
  .console-tabs-wrap { display: none; }
  .console-phone { display: block; }
  .listeners .link { margin-left: 0; }
  .view-head { margin-bottom: 24px; }
  .view-head .chips { width: 100%; }
  .inspector-list { grid-auto-flow: row; }
  .inspector-list > li + li, .inspector-list > button + button { border-top: 1px solid var(--rule); }
  .capsule { width: 100%; }
  .capsule button { flex: 1; }
  .panel-copy, .metric, .designer-copy, .edition { padding: 20px; }
  .shot { min-height: 0; padding: 16px; }
  .tabbar {
    position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line); background: var(--chrome);
  }
  .tabbar a, .tabbar button {
    position: relative;
    display: grid; justify-items: center; align-content: center; gap: 2px;
    min-height: 48px; padding: 3px 0; border: 0; border-radius: var(--r-sm); background: transparent;
    color: var(--faint); font-size: .75rem; font-weight: 650; cursor: pointer;
    transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
  }
  .tabbar svg { width: 20px; height: 20px; }
  .tabbar a[aria-current] { color: var(--strong); background: var(--sel); }
  .tabbar a[aria-current] svg { color: var(--accent-ink); }
  .tabbar a:active, .tabbar button:active { background: var(--hover); }
  .palette { margin-top: 16px; }
}
@media (max-width: 400px) {
  .foot-grid { column-gap: 16px; }
  .capsule button { padding-inline: 8px; font-size: .8125rem; }
}

/* ------------------------------------------------------------------ motion (2026-12-04): calm, quick, once */
/* Starting states exist only under .motion, which app.js sets when motion is welcome and the browser can observe. */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); }
.motion .hero h1 .w { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(.28em); animation: m-word .9s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
@keyframes m-word { to { opacity: 1; filter: none; transform: none; } }
.motion .hero .hero-side > * { opacity: 0; animation: m-rise .8s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 380ms); }
.motion .hero .console { opacity: 0; animation: m-console 1s var(--ease-out) .55s forwards; }
.motion .hero .listeners { opacity: 0; animation: m-rise .7s var(--ease-out) .9s forwards; }
@keyframes m-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes m-console { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
.motion [data-reveal] { opacity: 0; filter: blur(3px); transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .7s var(--ease-out); }
.motion [data-reveal].is-in { opacity: 1; filter: none; transform: none; }
.motion [data-stagger] > * { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 60ms); }
.motion [data-stagger].is-in > * { opacity: 1; transform: none; }
.motion [data-stagger].is-in > *:hover { transition-delay: 0s; }
/* the comparison bars grow to their value once their card is in */
.motion .pt-cards .pt-fill { transform: scaleX(0); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + 260ms); }
.motion .pt-cards.is-in .pt-fill { transform: none; }
/* a switched tab or story: a short crossfade, the picture a beat behind the words */
.swap-in { animation: m-swap .32s var(--ease-out); }
.swap-in .shot img, .swap-in .canvas li { animation: m-swap .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
@keyframes m-swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.canvas li { transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .4s var(--ease-out); }
.canvas li::before { transition: background-color .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out), transform .4s var(--ease-out); }
.canvas li.is-active::before { transform: scale(1.08); }
.listeners ul a:active, .chips button:active, .capsule button:active { transform: scale(.97); }

/* ------------------------------------------------------------------ reduced motion: everything settles, nothing loops */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  ol.steps::after { transform: scaleY(1); }
}
