
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* Styrene (light) and Gunmetal (dark): Kitbash's own values. */
:root {
  color-scheme: light;
  --kb-styrene: #d8dde1;
  --kb-panel: #f6f7f8;
  --kb-panel-2: #eceef0;
  --kb-ink: #1d2830;
  --kb-ink-2: #4d5b66;
  --kb-ink-3: #66727c;
  --kb-line: #cdd3d7;
  --kb-line-strong: #b3bbc1;

  --kb-accent: #ff5714;
  --kb-accent-hover: #f04a08;
  --kb-accent-ink: #140b05;
  --kb-accent-text: #aa3609;
  --kb-accent-soft: #fde3d8;
  --kb-select: var(--kb-ink);
  --kb-select-ink: var(--kb-panel);
  --kb-select-soft: color-mix(in oklab, var(--kb-ink) 8%, var(--kb-panel));
  --kb-agent: #2f5bd8;
  --kb-agent-soft: #dfe7fb;
  --kb-decal: #f2b90c;
  --kb-decal-soft: #fdf1c7;
  --kb-decal-ink: #5a4300;
  --kb-ok: #2e7d32;
  --kb-ok-soft: #dcefdc;
  --kb-danger: #c8102e;
  --kb-danger-hover: #a50d26;
  --kb-danger-soft: #fadbe0;

  --kb-bevel-hi: rgb(255 255 255 / .9);
  --kb-bevel-lo: rgb(29 40 48 / .10);
  --kb-raised: inset 0 1px 0 var(--kb-bevel-hi);
  --kb-key: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -3px 0 rgb(0 0 0 / .18), 0 1px 1px rgb(0 0 0 / .08);
  --kb-key-quiet: inset 0 1px 0 var(--kb-bevel-hi), inset 0 -2px 0 var(--kb-bevel-lo), 0 1px 1px rgb(0 0 0 / .06);
  --kb-pressed: inset 0 2px 3px rgb(29 40 48 / .16), inset 0 -1px 0 var(--kb-bevel-hi);
  --kb-recessed: inset 0 1px 2px rgb(29 40 48 / .10), inset 0 -1px 0 var(--kb-bevel-hi);
  --kb-cast-lg: 0 1px 0 rgb(29 40 48 / .06), 0 22px 40px -18px rgb(29 40 48 / .38);

  /* The hardware panel (hero, patch bay, closing): gunmetal in both themes. */
  --bay: #141a1f; --bay-2: #1e262d; --bay-line: #2c363e; --bay-line-strong: #3d4952; --bay-ink: #e5eaed; --bay-ink-2: #a5b1b9; --bay-ink-3: #8593a0;

  --kb-r-part: 3px; --kb-r-control: 5px; --kb-r-card: 7px; --kb-r-frame: 9px;
  --kb-snap: cubic-bezier(.3, 1.5, .5, 1);
  --kb-glide: cubic-bezier(.2, .7, .2, 1);
  --kb-font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --kb-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 16px; --measure: 68ch;
}
/* Light is the site's look (the Styrene draft). Gunmetal dark stays available as an opt-in theme. */
:root[data-theme="dark"] {
    color-scheme: dark;
    --kb-styrene: #141a1f; --kb-panel: #1e262d; --kb-panel-2: #182026;
    --kb-ink: #e5eaed; --kb-ink-2: #a5b1b9; --kb-ink-3: #8593a0;
    --kb-line: #2c363e; --kb-line-strong: #3d4952;
    --kb-accent: #ff6624; --kb-accent-hover: #ff7a40; --kb-accent-ink: #1a0d04; --kb-accent-text: #ff9970; --kb-accent-soft: #472315;
    --kb-agent: #86a5ff; --kb-agent-soft: #1d2a4f;
    --kb-decal: #f5c63c; --kb-decal-soft: #302b1c; --kb-decal-ink: #fbe4a0;
    --kb-ok: #6cc76f; --kb-ok-soft: #1a3a1e;
    --kb-danger: #ff6680; --kb-danger-hover: #ff8599; --kb-danger-soft: #45202a;
    --kb-bevel-hi: rgb(255 255 255 / .07); --kb-bevel-lo: rgb(0 0 0 / .35);
    --kb-key: inset 0 1px 0 rgb(255 255 255 / .3), inset 0 -3px 0 rgb(0 0 0 / .3), 0 1px 1px rgb(0 0 0 / .3);
    --kb-key-quiet: inset 0 1px 0 rgb(255 255 255 / .07), inset 0 -2px 0 rgb(0 0 0 / .35), 0 1px 1px rgb(0 0 0 / .3);
    --kb-pressed: inset 0 2px 4px rgb(0 0 0 / .45), inset 0 -1px 0 var(--kb-bevel-hi);
    --kb-recessed: inset 0 1px 3px rgb(0 0 0 / .4), inset 0 -1px 0 var(--kb-bevel-hi);
    --kb-cast-lg: 0 1px 0 rgb(0 0 0 / .3), 0 24px 44px -16px rgb(0 0 0 / .75);
    --bay: #0c1115; --bay-2: #161d22; --bay-line: #252e35;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--kb-styrene); color: var(--kb-ink);
  font: 400 16px/1.55 var(--kb-font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.35rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
h2.flush, h3.flush { margin-top: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: .25em 0; }
li::marker { color: var(--kb-ink-3); }
a { color: var(--kb-accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--kb-select); outline-offset: 2px; border-radius: var(--kb-r-part); }
::selection { background: var(--kb-accent-soft); color: var(--kb-ink); }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--kb-line); margin: 32px 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--kb-panel); padding: 8px 12px; z-index: 10; border-radius: var(--kb-r-control); }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- type ---- */
.label, .eyebrow { display: inline-block; font-size: .8125rem; font-weight: 600; color: var(--kb-ink-2); letter-spacing: 0; margin-bottom: 8px; }
/* Display headlines: Schibsted at its heaviest, set tight, whole (no single accented phrase). */
.display { font: 900 clamp(2.8rem, 1.4rem + 5.4vw, 6.6rem)/.92 var(--kb-font); letter-spacing: -.045em; margin-bottom: 24px; text-wrap: balance; }
.display-sm { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); line-height: .96; letter-spacing: -.04em; }
.title { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); letter-spacing: -.035em; line-height: 1.04; font-weight: 800; }
.h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 3rem); letter-spacing: -.035em; line-height: 1.02; font-weight: 800; }
.h3 { font-size: 1.1rem; font-weight: 700; }
.lead { font-size: 1.125rem; color: var(--kb-ink-2); max-width: 58ch; line-height: 1.55; }
.muted { color: var(--kb-ink-2); }
.small, .muted.small { font-size: .875rem; }
.prose { max-width: var(--measure); }
.num, code, pre, kbd { font-family: var(--kb-mono); }
.num { font-variant-numeric: tabular-nums; }
.ok { color: var(--kb-ok); }
.bad { color: var(--kb-danger); }
p.ok strong, p.bad strong { color: inherit; }
.center { text-align: center; }

/* ---- shell ---- */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.wide { max-width: 1240px; }
.site-head { border-bottom: 1px solid var(--kb-line-strong); background: var(--kb-styrene); position: sticky; top: 0; z-index: 5; }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--kb-ink); text-decoration: none; font-weight: 800; letter-spacing: -.025em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: var(--kb-r-control); flex: none; display: block; }
.brand-name { font-size: 1.0625rem; }
.brand .label { margin: 0; font-size: .75rem; font-weight: 600; color: var(--kb-ink-2); border: 1px solid var(--kb-line-strong); border-radius: var(--kb-r-part); padding: 1px 6px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 6px 10px; color: var(--kb-ink-2); text-decoration: none; font-size: .9375rem; border-radius: var(--kb-r-control); }
.site-nav a { font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--kb-ink); background: var(--kb-panel-2); }
.head-cta { flex: none; }
@media (max-width: 839px) {
  .site-nav { order: 3; width: 100%; margin: 0 0 8px; overflow-x: auto; }
  .head-row { flex-wrap: wrap; row-gap: 0; }
  .head-cta { margin-left: auto; }
}
main { display: block; }
main.page { max-width: 1080px; margin: 0 auto; padding: 40px var(--gutter) 72px; }
main.wide { padding-bottom: 0; }

/* ---- signed-in shell: a sidebar panel of molded menu rows, the logo leads back to / ---- */
.shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.side, .side-in, .app-nav { min-width: 0; }
.side { background: var(--kb-panel); border-bottom: 1px solid var(--kb-line); }
.side-in { padding: 14px var(--gutter); display: flex; flex-direction: column; gap: 14px; }
.side .brand { padding: 2px 6px; }
.side .brand-name { white-space: nowrap; }
.side .brand .label { display: none; }
.app-nav { display: grid; gap: 14px; }
.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu li { margin: 0; }
.menu a, .menu button.nav-link {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; color: var(--kb-ink-2); text-decoration: none;
  font: 500 .9375rem/1.2 var(--kb-font); border-radius: var(--kb-r-control); background: none; border: 0; box-shadow: none; cursor: pointer; text-align: left; justify-content: flex-start;
}
.menu a:hover, .menu button.nav-link:hover { color: var(--kb-ink); background: var(--kb-panel-2); transform: none; }
.menu a[aria-current="page"] { background: var(--kb-select); color: var(--kb-select-ink); }
.menu form { margin: 0; }
.menu-quiet { padding-top: 12px; border-top: 1px solid var(--kb-line); }
.menu-label { flex: 1; min-width: 0; }
.menu-count { font: 500 .75rem/1 var(--kb-mono); }
.menu-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--kb-ink-3); flex: none; opacity: .55; }
.menu-mark.live { background: var(--kb-ok); opacity: 1; }
.menu-mark.wait { background: var(--kb-decal); border-radius: 1px; transform: rotate(45deg); width: 9px; height: 9px; opacity: 1; }
.plan-meter { padding: 14px; border-radius: var(--kb-r-card); background: var(--kb-panel-2); box-shadow: var(--kb-recessed); }
.plan-meter p { margin: 0 0 10px; display: grid; gap: 2px; font-size: .875rem; }
.plan-meter p span { color: var(--kb-ink-2); }
.plan-meter.quiet p { margin: 0; }
.plan-meter .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 12px; }
.plan-meter .days span { height: 8px; border-radius: 2px; background: var(--kb-line); }
.plan-meter .days span.used { background: var(--kb-ink); }
.side-who { margin: 0; padding: 0 6px; font-size: .8125rem; color: var(--kb-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-main { min-width: 0; padding: 24px var(--gutter) 72px; }
.app-main .wrap { padding: 0; }
@media (max-width: 899px) {
  /* Phones and tablets: the menu is one row that scrolls sideways inside itself; the page never does. */
  .side .app-nav { grid-auto-flow: column; justify-content: start; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .side-in { gap: 10px; padding-bottom: 8px; }
  .menu { grid-auto-flow: column; }
  .menu-quiet { border-top: 0; padding-top: 0; }
  .menu a, .menu button.nav-link { white-space: nowrap; }
  .plan-meter, .side-who { display: none; }
}
@media (min-width: 900px) {
  .shell { grid-template-columns: 264px minmax(0, 1fr); }
  .side { border-bottom: 0; border-right: 1px solid var(--kb-line); }
  .side-in { padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .side .brand { padding: 0 8px 8px; }
  .plan-meter { margin-top: auto; }
  .app-main { padding: 36px 40px 72px; max-width: 1100px; }
}

.page-head { margin-bottom: 28px; }
.page-head h1 { margin-bottom: 8px; }
.page-head > p, .page-head .lead { color: var(--kb-ink-2); max-width: 62ch; margin: 0; }
.page-head.center p { margin-left: auto; margin-right: auto; }
.narrow { max-width: 460px; margin: 0 auto; }
.narrow .page-head { margin-top: 16px; }
.back { display: inline-block; margin-bottom: 16px; color: var(--kb-ink-2); text-decoration: none; font-size: .9375rem; }
.back:hover { color: var(--kb-ink); }
.stack > * + * { margin-top: 16px; }
.grid-2, .grid-3 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- surfaces: flat panels with hairline seams ---- */
.card, .panel {
  background: var(--kb-panel); border: 1px solid var(--kb-line); border-radius: var(--kb-r-card);
  box-shadow: var(--kb-raised); padding: 20px; margin: 0 0 16px;
}
.card > :last-child, .notice > :last-child, .panel > :last-child { margin-bottom: 0; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card-head, .panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2, .card-head h3, .panel-head h2, .panel-head .h3 { margin: 0; }
.card.muted { background: var(--kb-panel-2); }
.card.ok, .card.warn, .card.error, .notice, .card[role="status"], .card[role="alert"] { border-left-width: 3px; }
.card.ok { border-left-color: var(--kb-ok); }
.card.warn { border-left-color: var(--kb-decal); }
.card.error, .card[role="alert"] { border-left-color: var(--kb-danger); }
.card[role="status"]:not(.ok):not(.warn):not(.error) { border-left-color: var(--kb-ink-3); }
.risk { border: 1px solid var(--kb-line); border-left: 3px solid var(--kb-ink-3); border-radius: var(--kb-r-card); padding: 16px 18px; background: var(--kb-panel); }
.risk .label { color: var(--kb-ink); }
.risk p { margin: 0; color: var(--kb-ink-2); font-size: .9375rem; }
.risk p + p { margin-top: 8px; }
.empty { border: 1px dashed var(--kb-line-strong); border-radius: var(--kb-r-card); padding: 28px; text-align: center; color: var(--kb-ink-2); }
.empty strong { display: block; color: var(--kb-ink); margin-bottom: 4px; }

/* ---- controls: molded keys, only on what you press ---- */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  font: 600 .9375rem/1 var(--kb-font); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  color: var(--kb-accent-ink); background: var(--kb-accent); border: 1px solid var(--kb-accent-hover);
  border-radius: var(--kb-r-control); box-shadow: var(--kb-key);
  transition: background-color .15s var(--kb-glide), transform .12s var(--kb-snap), box-shadow .12s;
}
button:hover, .button:hover { background: var(--kb-accent-hover); text-decoration: none; }
button:active, .button:active { transform: translateY(1px); box-shadow: var(--kb-pressed); }
button.secondary, .button.secondary, button.ghost, .button.ghost, .button-quiet {
  color: var(--kb-ink); background: var(--kb-panel); border-color: var(--kb-line-strong); box-shadow: var(--kb-key-quiet);
}
button.secondary:hover, .button.secondary:hover, button.ghost:hover, .button.ghost:hover, .button-quiet:hover { background: var(--kb-panel-2); }
button.ghost, .button.ghost { box-shadow: none; border-color: transparent; background: transparent; }
button.danger, .button.danger { color: #fff; background: var(--kb-danger); border-color: var(--kb-danger-hover); }
button.danger:hover, .button.danger:hover { background: var(--kb-danger-hover); }
button.small, .button.small, .button-small { min-height: 34px; padding: 0 12px; font-size: .875rem; }
button.block, .button.block { width: 100%; }
.button.lg { min-height: 50px; padding: 0 24px; font-size: 1rem; }
button[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.text-button, .provider button.danger {
  min-height: 0; padding: 0; background: none; border: 0; box-shadow: none; color: var(--kb-danger);
  font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
}
.text-button:hover, .provider button.danger:hover { background: none; color: var(--kb-danger-hover); }
.more { font-weight: 600; text-decoration: none; color: var(--kb-accent-text); }
.more:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.actions form, form.actions { margin: 0; }
.actions .more { margin-left: 6px; }
.inline, form.inline { display: inline; margin: 0; }
main.page > form:not(.card):not(.actions), .narrow > form:not(.card):not(.actions) { margin-bottom: 16px; }
form.center { text-align: center; }

label { display: block; font-weight: 600; font-size: .9375rem; margin: 14px 0 6px; }
form > label:first-of-type, .card > label:first-of-type { margin-top: 0; }
label.check {
  display: flex; gap: 10px; align-items: flex-start; font-weight: 500; padding: 12px 14px; margin: 8px 0;
  border: 1px solid var(--kb-line); border-radius: var(--kb-r-control); background: var(--kb-panel); cursor: pointer;
}
label.check:hover { border-color: var(--kb-line-strong); }
label.check:has(input:checked) { border-color: var(--kb-select); box-shadow: inset 0 0 0 1px var(--kb-select); }
label.check input { margin-top: 3px; }
label.plain { font-weight: 500; display: flex; gap: 8px; align-items: center; }
input[type=checkbox], input[type=radio] { accent-color: var(--kb-select); width: 18px; height: 18px; flex: none; }
input[type=text], input[type=password], input[type=tel], input[type=email], input[type=number], textarea, select {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--kb-ink);
  background: var(--kb-panel-2); border: 1px solid var(--kb-line-strong); border-radius: var(--kb-r-control); box-shadow: var(--kb-recessed);
}
input:hover, textarea:hover, select:hover { border-color: var(--kb-ink-3); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--kb-select); outline-offset: 1px; border-color: var(--kb-select); }
input::placeholder { color: var(--kb-ink-3); }
textarea { min-height: 110px; resize: vertical; }
input#code, input[autocomplete="one-time-code"] { font-family: var(--kb-mono); font-size: 1.4rem; letter-spacing: .3em; text-align: center; }

/* ---- status: an LED shape and a word ---- */
.pill, .led { display: inline-flex; align-items: center; gap: 7px; font-size: .8125rem; font-weight: 600; color: var(--kb-ink-2); white-space: nowrap; }
.pill::before, .led::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--kb-ink-3); flex: none; }
.pill.ok, .led.ok { color: var(--kb-ok); }
.pill.ok::before, .led.ok::before { background: var(--kb-ok); border-color: var(--kb-ok); }
.pill.bad, .led.bad { color: var(--kb-danger); }
.pill.bad::before, .led.bad::before { border-radius: 1px; background: var(--kb-danger); border-color: var(--kb-danger); }
.pill.warn, .led.warn { color: var(--kb-decal-ink); }
.pill.warn::before, .led.warn::before { border-radius: 1px; transform: rotate(45deg) scale(.9); background: var(--kb-decal); border-color: var(--kb-decal); }
.pill.info, .led.info, .led.busy { color: var(--kb-agent); }
.pill.info::before, .led.info::before, .led.busy::before { background: var(--kb-agent); border-color: var(--kb-agent); }
.led.busy::before { animation: kb-pulse 1.4s var(--kb-glide) infinite; }
@keyframes kb-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--kb-agent) 55%, transparent); } 60% { box-shadow: 0 0 0 6px transparent; } }
progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 3px; background: var(--kb-line); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--kb-line); }
progress::-webkit-progress-value { background: var(--kb-agent); }
progress::-moz-progress-bar { background: var(--kb-agent); }

/* ---- tables and code ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
td, th { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--kb-line); vertical-align: top; }
td:last-child, th:last-child { padding-right: 0; }
thead th { font-size: .8125rem; font-weight: 600; color: var(--kb-ink-2); border-bottom-color: var(--kb-line-strong); }
tbody tr:last-child td, table:not(:has(thead)) tr:last-child td, table:not(:has(thead)) tr:last-child th { border-bottom: 0; }
table.kv th { width: 34%; font-weight: 600; color: var(--kb-ink-2); }
table.rules td:first-child input { margin-top: 2px; }
td.nowrap, th.nowrap { white-space: nowrap; }
code { font-size: .875em; background: var(--kb-panel-2); border: 1px solid var(--kb-line); border-radius: var(--kb-r-part); padding: 1px 5px; }
pre {
  margin: 0 0 16px; padding: 14px 16px; overflow-x: auto; font-size: .8125rem; line-height: 1.6;
  background: var(--kb-panel-2); border: 1px solid var(--kb-line); border-radius: var(--kb-r-control); box-shadow: var(--kb-recessed);
}
pre code { background: none; border: 0; padding: 0; }
pre.code { font-size: 1.05rem; letter-spacing: .04em; text-align: center; white-space: pre-wrap; word-break: break-all; }
pre.url { white-space: pre-wrap; word-break: break-all; }

details { margin: 0 0 12px; }
details > summary { cursor: pointer; list-style: none; font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+"; font-family: var(--kb-mono); color: var(--kb-ink-3); width: 1ch; flex: none; }
details[open] > summary::before { content: "\2212"; }
details.card[open] > summary { margin-bottom: 12px; }
details.muted > summary { font-weight: 500; color: var(--kb-ink-2); }
details.muted[open] > .card, details.muted[open] > form { margin-top: 12px; }

/* ---- QR and step lists ---- */
.qr { background: #fff; padding: 12px; border-radius: var(--kb-r-card); border: 1px solid var(--kb-line); width: min(280px, 100%); margin: 0 auto 16px; }
.qr svg { display: block; width: 100%; height: auto; }
.qr-layout { display: grid; gap: 24px; align-items: center; }
@media (min-width: 640px) { .qr-layout { grid-template-columns: 1fr auto; } .qr-layout .qr { margin: 0; } }
ol.steps-list { list-style: none; padding: 0; counter-reset: step; }
ol.steps-list > li { counter-increment: step; position: relative; padding: 0 0 14px 38px; margin: 0; }
ol.steps-list > li:last-child { padding-bottom: 0; }
ol.steps-list > li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; display: grid; place-items: center;
  font: 600 .8125rem/1 var(--kb-mono); border: 1px solid var(--kb-line-strong); border-radius: var(--kb-r-part); background: var(--kb-panel);
}
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: 10px 0; border-bottom: 1px solid var(--kb-line); margin: 0; }
ul.plain li:last-child { border-bottom: 0; }
ul.checks { list-style: none; padding: 0; }
ul.checks li { position: relative; padding-left: 24px; }
ul.checks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 5px; border-left: 2px solid var(--kb-ok); border-bottom: 2px solid var(--kb-ok); transform: rotate(-45deg); }

/* ---- accounts ---- */
.providers { border: 1px solid var(--kb-line); border-radius: var(--kb-r-card); background: var(--kb-panel); box-shadow: var(--kb-raised); margin-bottom: 24px; }
.provider { padding: 18px 20px; border-bottom: 1px solid var(--kb-line); }
.provider:last-child { border-bottom: 0; }
.provider-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.provider-head h2 { font-size: 1.05rem; margin: 0; }
.provider p { margin: 0 0 10px; }
.provider p:last-child, .provider form:last-child { margin-bottom: 0; }
.provider p.ok, .provider p.bad { font-weight: 500; }
.provider .muted { font-size: .9375rem; }
.provider .actions { margin-top: 10px; }
.provider > form:not(.inline) { margin-top: 10px; }
.doc h2 { font-size: 1.15rem; margin-top: 32px; }
.doc h2.flush { margin-top: 0; }
.doc li + li { margin-top: 6px; }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--kb-line); padding: 32px 0 40px; margin-top: 24px; font-size: .9375rem; }
.foot-grid { display: grid; gap: 20px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links li { margin: 0; }
.foot-links a { color: var(--kb-ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--kb-ink); text-decoration: underline; }
.site-foot .muted { margin: 10px 0 0; }
@media (min-width: 840px) { .foot-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }

/* ---- the ticket: the setup prompt you tear off and hand to your bot (signature) ---- */
.ticket { position: relative; background: var(--kb-panel); border: 1px solid var(--kb-line); border-radius: var(--kb-r-frame); }
.ticket-stub { padding: 20px 22px 22px; }
.ticket-body { position: relative; padding: 22px; border-top: 2px dashed var(--kb-line-strong); }
/* The perforation's notches: page-colored half circles over each edge, drawn with the ticket's own seam. */
.ticket-body::before, .ticket-body::after {
  content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--kb-styrene); border: 1px solid var(--kb-line);
}
.ticket-body::before { left: -13px; clip-path: inset(0 0 0 50%); }
.ticket-body::after { right: -13px; clip-path: inset(0 50% 0 0); }
.ticket-head { margin-bottom: 14px; }
.ticket-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.ticket fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ticket legend { padding: 0; font-weight: 600; font-size: .9375rem; margin-bottom: 10px; }
.connectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 10px; }
.connector-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wizard .connector { padding: 14px 16px; font-size: 1rem; }
.soon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.soon-label { font-size: .8125rem; font-weight: 600; color: var(--kb-ink-2); }
.soon-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.soon-list li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px 4px 8px; font-size: .8125rem; color: var(--kb-ink-2);
  border: 1px dashed var(--kb-line-strong); border-radius: var(--kb-r-control); }
.soon-list .brand-icon { filter: grayscale(1); opacity: .6; }
.needs { margin-top: 18px; padding: 12px 14px; border-radius: var(--kb-r-card); background: var(--kb-panel-2); box-shadow: var(--kb-recessed); }
.needs ul { margin: 6px 0 0; padding-left: 1.1em; font-size: .9375rem; color: var(--kb-ink-2); }
.needs li { margin: 2px 0; }
.connector {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 12px; font-weight: 600; font-size: .9375rem;
  border: 1px solid var(--kb-line-strong); border-radius: var(--kb-r-control); background: var(--kb-panel); cursor: pointer;
  transition: border-color .15s, box-shadow .15s var(--kb-snap);
}
.connector:hover { border-color: var(--kb-ink-3); }
.connector:has(input:checked) { border-color: var(--kb-select); }
.connector:has(input:focus-visible) { outline: 2px solid var(--kb-select); outline-offset: 2px; }
.connector input { margin: 0; }
.connector small { margin-left: auto; font-weight: 500; font-size: .75rem; color: var(--kb-ink-3); }
.connector.soon { cursor: not-allowed; color: var(--kb-ink-2); border-color: var(--kb-line); }
.ticket-note { margin: 12px 0 0; font-size: .875rem; color: var(--kb-ink-2); }
.prompt { position: relative; }
.prompt pre {
  /* Whole lines only, so the visible end never cuts a line in half. */
  max-height: calc(1.6em * 12 + 30px); overflow: auto; margin: 0; white-space: pre-wrap; word-break: break-word;
  font-size: .78rem; line-height: 1.6; background: var(--kb-panel-2);
}
.prompt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.prompt-actions .label { margin: 0; color: var(--kb-ink); }
.prompt-actions button { margin-left: auto; }
.prompt-actions .copy-done:not(:empty) + button { margin-left: 0; }
.prompt-actions .copy-done:not(:empty) { margin-left: auto; }
.prompt-actions .small { color: var(--kb-ink-2); }
.copy-done { color: var(--kb-ok); font-weight: 600; font-size: .875rem; }
.no-js-only { display: inline; }
.js .no-js-only { display: none; }

/* ---- setup progress: what the bot is doing, live ---- */
.progress { list-style: none; margin: 0; padding: 0; border: 1px solid var(--kb-line); border-radius: var(--kb-r-card); background: var(--kb-panel); }
.progress li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 12px 16px; margin: 0; border-bottom: 1px solid var(--kb-line); }
.progress li:last-child { border-bottom: 0; }
.progress li > span:first-child { font-weight: 600; font-size: .9375rem; }
.progress li .sub { grid-column: 1 / -1; color: var(--kb-ink-2); font-size: .8125rem; }
.progress li[hidden] { display: none; }

/* ---- marketing ---- */
.section { padding: 96px 0; border-top: 1px solid var(--kb-line-strong); }
.section-head { margin-bottom: 28px; }
.section-head > .label { color: var(--kb-accent-text); }
.section-head .lead { margin-top: 10px; }
.cols { display: grid; gap: 32px; }
.cols > .full { grid-column: 1 / -1; }
@media (min-width: 960px) { .cols { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 72px; row-gap: 40px; } }
.spacer { display: none; }
@media (min-width: 960px) { .spacer { display: block; } }

.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: start; }
/* Phones read headline, ticket, then the explanation; wide screens put the ticket beside both. */
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 0; }
  .hero-copy { padding-top: 24px; }
  .hero-side { grid-column: 2; grid-row: 1 / span 2; }
  .hero-more { grid-column: 1; }
}
.hero-copy > .label { color: var(--kb-accent-text); }
.hero .lead { margin-bottom: 20px; }
.hero .actions { margin-top: 24px; }
.hero-note { margin-top: 16px; }
.hero-steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 0; border-top: 1px solid var(--kb-line); }
.hero-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; padding: 14px 0; margin: 0; border-bottom: 1px solid var(--kb-line); }
.hero-steps .step-num { grid-row: span 2; }
.hero-steps strong { font-weight: 640; }
.hero-steps span:last-child { color: var(--kb-ink-2); font-size: .9375rem; }
.step-num {
  width: 26px; height: 26px; display: grid; place-items: center; font: 600 .8125rem/1 var(--kb-mono);
  border: 1px solid var(--kb-line-strong); border-radius: var(--kb-r-part); background: var(--kb-panel); color: var(--kb-ink);
}
.hero-side > * + * { margin-top: 16px; }
.facts { display: grid; gap: 0; margin: 40px 0 0; border-top: 1px solid var(--kb-line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--kb-line); display: grid; gap: 2px; }
.facts dt { margin: 0; }
.facts dd { margin: 0; }
@media (min-width: 960px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }

.specimen { margin: 0; }
.mock { background: var(--kb-panel); border: 1px solid var(--kb-line); border-radius: var(--kb-r-card); overflow: hidden; }
.mock-raised { box-shadow: var(--kb-cast-lg); }
.mock-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--kb-line); background: var(--kb-panel-2); }
.mock-bar .label { margin: 0; font-size: .75rem; }
.mock p { margin: 0; }
.turns { padding: 6px 16px; }
.turn { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--kb-line); font-size: .9375rem; }
.turn:last-child { border-bottom: 0; }
.turn .label { margin: 2px 0 0; font-size: .75rem; }
.turn ul { list-style: none; padding: 0; margin: 6px 0 0; }
.turn li { position: relative; padding-left: 14px; margin: 3px 0; }
.turn li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--kb-ink-3); }
/* The approval form as the app shows it: a section of the chat panel under a seam, not a card inside it. */
.approval { padding: 14px 16px 16px; border-top: 1px solid var(--kb-line); box-shadow: inset 3px 0 0 var(--kb-decal); background: var(--kb-panel); }
.approval-title { color: var(--kb-ink); margin-bottom: 6px; }
.approval-to { display: flex; gap: 8px; margin: 0 0 8px; font-size: .875rem; }
.approval-to dt { color: var(--kb-ink-2); }
.approval-to dd { margin: 0; font-weight: 600; }
.approval blockquote { margin: 0 0 12px; padding: 10px 12px; background: var(--kb-panel-2); border-radius: var(--kb-r-part); font-size: .9375rem; }
.mock-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mock-btn { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; font-weight: 600; font-size: .8125rem; border-radius: var(--kb-r-control); color: var(--kb-ink); border: 1px solid var(--kb-line-strong); background: var(--kb-panel); box-shadow: var(--kb-key-quiet); }
.mock-btn.approve { background: var(--kb-accent); color: var(--kb-accent-ink); border-color: var(--kb-accent-hover); box-shadow: var(--kb-key); }
.mock-actions .small { color: var(--kb-ink-2); font-size: .8125rem; }
figcaption { margin-top: 10px; font-size: .875rem; color: var(--kb-ink-2); }
figcaption .label { margin: 0 8px 0 0; color: var(--kb-ink); }
.mini-rows { list-style: none; margin: 0; padding: 0 16px; }
.mini-rows li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; margin: 0; border-top: 1px solid var(--kb-line); font-size: .9375rem; }
.mini-rows li:first-child { border-top: 0; }
.mini-rows .sub { color: var(--kb-ink-3); font-size: .8125rem; margin-left: 4px; }
.mini-rows .state { margin-left: auto; color: var(--kb-ink-2); font-size: .8125rem; white-space: nowrap; }
.mini-rows .state.ok { color: var(--kb-ok); }
.mini-rows .state.hidden { color: var(--kb-ink); font-weight: 600; }
.mini-rows time { font-family: var(--kb-mono); font-size: .8125rem; color: var(--kb-ink-3); }
.log .state { font-weight: 500; }
.modes { padding: 12px 16px 4px; }
.mode { display: flex; gap: 10px; align-items: center; font-size: .9375rem; }
.mode + .mode { margin-top: 6px; }
.radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--kb-ink-3); flex: none; }
.radio.on { border: 4px solid var(--kb-select); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
@media (min-width: 840px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; } }
.steps > li { margin: 0; }
.steps .step-num { margin-bottom: 14px; }
.steps .h3 { margin-bottom: 6px; }
.steps p { color: var(--kb-ink-2); margin: 0; }
.steps q { color: var(--kb-ink); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--kb-line); border-radius: var(--kb-r-card); background: var(--kb-panel); }
.flow li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; padding: 14px 16px; margin: 0; border-bottom: 1px dashed var(--kb-line-strong); }
.flow li:last-child { border-bottom: 0; }
.flow .step-num { grid-row: span 2; }
.flow strong { font-weight: 640; }
.flow span:last-child { color: var(--kb-ink-2); font-size: .9375rem; }
.flow code { font-size: .8em; }
.aside-note { border-left: 2px solid var(--kb-line-strong); padding: 2px 0 2px 16px; color: var(--kb-ink-2); font-size: .9375rem; }
.aside-note .label { color: var(--kb-ink); }
.aside-note p { margin: 0; }
.aside-note p + p { margin-top: 8px; }
@media (min-width: 960px) { .aside-note { align-self: start; } .aside-note.at-end { align-self: end; } }

.ledger { width: 100%; border-collapse: collapse; background: var(--kb-panel); border: 1px solid var(--kb-line); border-radius: var(--kb-r-card); overflow: hidden; }
.ledger caption { text-align: left; caption-side: top; padding: 0 0 4px; }
.ledger th[scope="rowgroup"] { padding: 12px 16px; background: var(--kb-panel-2); font-size: .875rem; font-weight: 650; border-bottom: 1px solid var(--kb-line); }
.ledger .group-approve th[scope="rowgroup"] { box-shadow: inset 3px 0 0 var(--kb-decal); }
.ledger th[scope="row"] { padding: 12px 16px; width: 36%; font-weight: 600; }
.ledger td { padding: 12px 16px 12px 0; color: var(--kb-ink-2); }
@media (max-width: 599px) {
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td, .ledger caption { display: block; width: 100%; }
  .ledger th[scope="row"] { padding-bottom: 0; border-bottom: 0; }
  .ledger td { padding: 4px 16px 12px; }
}
.points { display: grid; gap: 28px; }
@media (min-width: 840px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
.points .h3 { margin-bottom: 6px; }
.points p { color: var(--kb-ink-2); margin: 0; }
.points p + p { margin-top: 8px; }
.links-row { display: flex; flex-wrap: wrap; gap: 16px; }
.margin-stack > * + * { margin-top: 24px; }

.plans { display: grid; gap: 16px; }
@media (min-width: 840px) { .plans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.plan { background: var(--kb-panel); border: 1px solid var(--kb-line); border-radius: var(--kb-r-card); padding: 22px; display: flex; flex-direction: column; box-shadow: var(--kb-raised); }
.plan-name { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-name .h3 { margin: 0; }
.plan-rec { font-size: .8125rem; color: var(--kb-ink-2); }
.price { font: 850 2.4rem/1.05 var(--kb-font); letter-spacing: -.03em; margin: 14px 0 4px; }
.price small { font-size: .9375rem; font-weight: 500; color: var(--kb-ink-2); margin-left: 6px; letter-spacing: 0; }
.plan-sum { font-weight: 600; margin-bottom: 10px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.plan-list li { position: relative; padding-left: 22px; color: var(--kb-ink-2); font-size: .9375rem; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 4px; border-left: 2px solid var(--kb-ok); border-bottom: 2px solid var(--kb-ok); transform: rotate(-45deg); }
.plans-mini .plan { padding: 18px; }
.plans-mini .price { font-size: 1.6rem; }
.plans-mini p.muted { font-size: .875rem; margin: 0; }
.plans.compact { gap: 12px; }
.ruled-table { margin-top: 12px; }
.detail-list li { color: var(--kb-ink-2); }
.block { margin-bottom: 28px; }

.faq details { border-bottom: 1px solid var(--kb-line); padding: 14px 0; margin: 0; }
.faq details:first-child { border-top: 1px solid var(--kb-line); }
.faq summary { font-size: 1rem; }
.faq details p { margin: 10px 0 0 calc(1ch + 10px); color: var(--kb-ink-2); max-width: 62ch; }
.closing { text-align: left; }
.closing .lead { margin-bottom: 0; }
.tools-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tools-row code { font-size: .8125rem; }

/* ---- bands: the gunmetal hardware panel, full bleed ---- */
.band { background: var(--bay); color: var(--bay-ink); position: relative; overflow: hidden; }
.band .lead { color: var(--bay-ink-2); }
.band a:not(.button) { color: #ff9970; }
.band .label { color: var(--bay-ink-2); }
.button.quiet-on-dark { background: var(--bay-2); color: var(--bay-ink); border-color: var(--bay-line-strong); box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), inset 0 -2px 0 rgb(0 0 0 / .35); }
.button.quiet-on-dark:hover { background: #26303a; }
.hero-band { padding: 56px 0 64px; }
.hero-layout { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1040px) { .hero-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: 72px; } .hero-band { padding: 80px 0 88px; } }
.hero-text .lead { font-size: 1.1875rem; max-width: 52ch; }
.hero-text .actions { margin-top: 28px; }
.hero-fine { margin: 18px 0 0; color: var(--kb-ink-2); font-size: .9375rem; }
.closing-band { padding: 72px 0; }
.closing-band .display { max-width: 18ch; }

/* ---- the hero's staged chat, skinned like the assistant you pick ---- */
.demo { margin: 0; width: 100%; max-width: 460px; justify-self: center; }
.demo-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 auto 14px; width: fit-content; border-radius: var(--kb-r-card); background: var(--bay); box-shadow: inset 0 1px 3px rgb(0 0 0 / .5); }
.demo-tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.demo-tabs label { margin: 0; padding: 7px 16px; border-radius: var(--kb-r-control); font-size: .875rem; font-weight: 600; color: var(--bay-ink-2); cursor: pointer; }
.demo-tabs label:hover { color: var(--bay-ink); }
.demo-tabs input:checked + label { background: var(--bay-ink); color: var(--bay); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .2); }
.demo-tabs input:focus-visible + label { outline: 2px solid var(--kb-accent); outline-offset: 2px; }
.demo-window { display: none; }
.demo:has(#skin-grok:checked) .demo-grok, .demo:has(#skin-dots:checked) .demo-dots { display: block; }
.demo-window {
  background: var(--kb-panel); color: var(--kb-ink); border-radius: var(--kb-r-frame); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .06);
}
/* Skins: each assistant's own look, set with local tokens. BotChatter's approval form keeps its own colors. */
.demo-grok { --kb-decal-ink: #f3c95a; --kb-ok: #4cc38a; --kb-panel: #15171b; --kb-panel-2: #22252a; --kb-ink: #eceef1; --kb-ink-2: #a6adb6; --kb-ink-3: #7c848e; --kb-line: #2b2f35; --kb-line-strong: #3b4047; --me-bg: #2b2f35; --me-ink: #eceef1; font-family: ui-sans-serif, system-ui, sans-serif; }
/* Dots lives in ChatGPT: white, grey user bubbles, plain assistant text. */
.demo-dots { --kb-panel: #ffffff; --kb-panel-2: #f4f4f4; --kb-ink: #1f1f1f; --kb-ink-2: #5d5d5d; --kb-ink-3: #8f8f8f; --kb-line: #ececec; --kb-line-strong: #dadada; --me-bg: #f0f0f0; --me-ink: #1f1f1f; --kb-decal-ink: #6b4d00; --kb-ok: #18794e; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.demo-dots .demo-bubble { background: none; padding-left: 2px; }
/* A dot: a round dark avatar with one white eye. */
.assistant-logo.dot-mark { position: relative; border-radius: 50%; background: #1f1f1f; }
.dot-mark::after { content: ""; position: absolute; left: 27%; top: 27%; width: 26%; height: 26%; border-radius: 50%; background: #fff; }
:root:not([data-theme="light"]) .wizard .dot-mark { box-shadow: 0 0 0 1px var(--kb-line-strong); }
.demo-note { margin: 12px 0 0; font-size: .75rem; color: var(--bay-ink-3); text-align: center; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--kb-line); }
.demo-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: .9375rem; }
.demo-title .assistant-logo { width: 22px; height: 22px; }
.demo-grok .grok-mark { background: #eceef1; color: #15171b; }
.demo-chip { font-size: .75rem; font-weight: 600; color: var(--kb-ink-2); padding: 3px 9px; border: 1px solid var(--kb-line-strong); border-radius: 999px; }
.demo-log { height: 480px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 0 16px 16px; font-size: .9375rem; }
.demo-turn { display: grid; grid-template-rows: 1fr; }
.demo-inner { min-height: 0; overflow: hidden; display: flow-root; }
.demo-me .demo-inner { display: flex; justify-content: flex-end; }
.demo-me p { margin: 12px 0 0; max-width: 82%; padding: 9px 13px; border-radius: 18px 18px 4px 18px; background: var(--me-bg); color: var(--me-ink); }
.demo-paste span { display: block; font-size: .75rem; font-weight: 600; color: var(--kb-ink-3); margin-bottom: 2px; }
.demo-tools { margin: 12px 0 0; display: grid; gap: 6px; font-size: .8125rem; }
.demo-tools .led { color: var(--kb-ink-2); font-weight: 500; }
.demo-bubble { margin-top: 12px; max-width: 88%; padding: 10px 13px; border-radius: 18px 18px 18px 4px; background: var(--kb-panel-2); }
.demo-bubble p { margin: 0; }
.demo-bubble ul { list-style: none; margin: 6px 0 0; padding: 0; }
.demo-bubble li { margin: 4px 0 0; padding-left: 14px; position: relative; }
.demo-bubble li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--kb-ink-3); }
.demo-qr-label { display: grid; }
.demo-qr-label span { grid-area: 1 / 1; }
.demo-qr { position: relative; width: 136px; margin-top: 10px; padding: 8px; background: #fff; border: 1px solid var(--kb-line); border-radius: var(--kb-r-control); overflow: hidden; }
.demo-qr svg { display: block; width: 100%; height: auto; }
.demo-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #2fb36d; opacity: 0; }
.demo-event .demo-inner { text-align: center; }
.demo-event .led { margin-top: 12px; padding: 4px 10px; border: 1px solid var(--kb-line); border-radius: 999px; }
.demo-ask { margin-top: 12px; border: 1px solid var(--kb-line-strong); border-radius: var(--kb-r-card); padding: 12px 14px; box-shadow: inset 3px 0 0 var(--kb-decal); }
.demo-to { margin: 6px 0 4px; font-weight: 650; }
.demo-quote { margin: 0 0 10px; padding: 8px 10px; background: var(--kb-panel-2); border-radius: var(--kb-r-part); }
.demo-btns { display: flex; gap: 8px; }
.demo-btns .mock-btn { background: var(--kb-panel); color: var(--kb-ink); border-color: var(--kb-line-strong); }
.demo-btns .mock-btn.approve { background: #ff5714; color: #140b05; border-color: #d9450c; }
.demo-qr-label .gen { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .demo-turn { animation: demo-in .5s var(--kb-glide) both; }
  .demo-t1 { animation-delay: .4s; } .demo-t2 { animation-delay: 1.3s; } .demo-t3 { animation-delay: 2.4s; }
  .demo-t4 { animation-delay: 5.2s; } .demo-t5 { animation-delay: 6.2s; } .demo-t6 { animation-delay: 7.1s; }
  .demo-t7 { animation-delay: 8.9s; } .demo-t8 { animation-delay: 9.8s; animation-timing-function: var(--kb-snap); }
  /* The QR code draws itself row by row under a scan line, then the caption changes from "Generating" to "Scan". */
  .demo-qr path { animation: qr-gen 1.5s steps(23, end) 2.9s both; }
  .demo-scan { animation: qr-scan 1.5s linear 2.9s both; }
  .demo-qr-label .gen { animation: label-out .3s ease 4.4s both; }
  .demo-qr-label .ready { animation: label-in .3s ease 4.4s both; }
}
@keyframes demo-in { from { grid-template-rows: 0fr; opacity: 0; } to { grid-template-rows: 1fr; opacity: 1; } }
@keyframes qr-gen { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes qr-scan { 0% { top: 0; opacity: 1; } 95% { top: 100%; opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes label-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes label-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 640px) { .demo-log { height: 420px; } }

/* ---- landing sections ---- */
.narrow-head { max-width: 720px; }
.paths { display: grid; gap: 20px; }
@media (min-width: 880px) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.path { background: var(--kb-panel); border: 1px solid var(--kb-line); border-radius: var(--kb-r-frame); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.path .h3 { font-size: 1.3rem; margin-bottom: 6px; }
.path .flow-steps { margin: 18px 0; width: 100%; }
.path .button { margin-top: auto; }
.path .small { margin: 0 0 18px; }
.flow-steps { list-style: none; padding: 0; margin: 20px 0; counter-reset: flow; }
.flow-steps li { counter-increment: flow; position: relative; display: grid; gap: 2px; padding: 0 0 16px 44px; margin: 0; }
.flow-steps li::before {
  content: counter(flow); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center;
  font: 600 .8125rem/1 var(--kb-mono); border-radius: var(--kb-r-part); background: var(--kb-panel); border: 1px solid var(--kb-line-strong); color: var(--kb-ink);
}
.flow-steps li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 4px; border-left: 1px dashed var(--kb-line-strong); }
.flow-steps strong { font-weight: 640; }
.flow-steps span { color: var(--kb-ink-2); font-size: .9375rem; }
.band .flow-steps span { color: var(--bay-ink-2); }
.asks { display: grid; gap: 28px 40px; margin: 0; }
@media (min-width: 840px) { .asks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.asks div { display: grid; gap: 10px; }
.asks dt, .asks dd { margin: 0; }
.asks dd { color: var(--kb-ink-2); padding-left: 4px; }
/* Things you'd say: soft chat bubbles, never in the action color, so they can't be mistaken for buttons. */
.bubble { display: inline-block; padding: 10px 15px; border-radius: 18px 18px 18px 4px; background: var(--kb-panel); color: var(--kb-ink); font-weight: 560; font-size: 1.0625rem; }
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; } }
.split .checks { margin-top: 20px; }

/* ---- the setup wizard: accounts, assistant, prompt ---- */
.start-layout { display: grid; gap: 32px; align-items: start; }
.start-layout > * { min-width: 0; }
@media (min-width: 1000px) { .start-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 64px; } .start-layout .section-head { position: sticky; top: 96px; } }
.wizard { background: var(--kb-panel); border: 1px solid var(--kb-line); border-radius: var(--kb-r-frame); box-shadow: var(--kb-cast-lg); overflow: hidden; scroll-margin-top: 80px; }
.wizard-rail { list-style: none; margin: 0; padding: 14px 18px; display: flex; gap: 6px; border-bottom: 1px solid var(--kb-line); background: var(--kb-panel-2); }
.wizard-rail { align-items: center; }
.wizard-rail li { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .875rem; font-weight: 600; color: var(--kb-ink-3); }
.wizard-rail li + li::before { content: ""; width: 28px; height: 1px; background: var(--kb-line-strong); margin: 0 6px; }
.rail-num { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--kb-line-strong); font-size: .8125rem; flex: none; }
.wizard-rail li[aria-current="step"] { color: var(--kb-ink); }
@media (max-width: 520px) {
  .wizard .connectors { grid-template-columns: 1fr; }
  .wizard-panel { padding: 18px 16px; }
  .wizard-rail { padding: 12px 14px; }
  .wizard-rail li:not([aria-current]) { font-size: 0; gap: 0; }
  .wizard-rail li:not([aria-current]) .rail-num { font-size: .8125rem; }
  .wizard-rail li + li::before { width: 16px; margin: 0 4px; }
}
.wizard-rail li[aria-current="step"] .rail-num { background: var(--kb-accent); border-color: var(--kb-accent); color: var(--kb-accent-ink); }
.wizard-rail li.done .rail-num { background: var(--kb-ok-soft); border-color: var(--kb-ok); color: var(--kb-ok); }
.js .wizard-rail li { cursor: pointer; }
.wizard-track { position: relative; }
.wizard-panel { padding: 22px; }
.wizard-panel + .wizard-panel { border-top: 1px dashed var(--kb-line-strong); }
/* All steps share one grid cell, so the wizard keeps the tallest step's height and the page never grows or jumps when
   the prompt appears; the inactive steps are hidden (and out of the tab order) but still take up their space. */
.js .wizard-track { display: grid; }
.js .wizard-panel { grid-area: 1 / 1; display: flex; flex-direction: column; visibility: hidden; border-top: 0; min-width: 0; }
.js .wizard-panel.is-active { visibility: visible; }
.js .wizard-nav { margin-top: auto; padding-top: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .js .wizard-panel.from-right { animation: slide-from-right .32s var(--kb-glide) both; }
  .js .wizard-panel.from-left { animation: slide-from-left .32s var(--kb-glide) both; }
}
@keyframes slide-from-right { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes slide-from-left { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.wizard-title { font-size: 1.2rem; margin-bottom: 14px; }
.wizard-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
/* The prompt is for copying, not reading: a short window keeps step 3 no taller than the others. */
.wizard .prompt pre { max-height: calc(1.6em * 7 + 30px); }
.wizard .plain-steps { margin-bottom: 12px; }
.wizard .ticket-stub, .wizard .ticket-body { padding: 13px 16px; }
.address-row { display: flex; align-items: center; gap: 10px; }
.address-row pre { flex: 1; min-width: 0; margin: 0; padding: 8px 12px; white-space: nowrap; overflow-x: auto; }
.address-row .copy-done:empty { display: none; }
.wizard .compact .prompt pre { max-height: calc(1.6em * 3 + 26px); }
.wizard .compact .prompt-actions { margin-bottom: 8px; }
.wizard .plain-steps { font-size: .875rem; line-height: 1.45; }
.wizard .plain-steps li { margin: 2px 0; }
.wizard .ticket-step { margin-bottom: 8px; }
.wizard .ticket-stub + .ticket-body { padding-top: 14px; }
.wizard-error { color: var(--kb-danger); font-weight: 600; font-size: .875rem; margin: 10px 0 0; }
.brand-icon { flex: none; }
.connector .brand-icon { margin-left: -2px; }
.connector.soon .brand-icon { filter: grayscale(1); opacity: .5; }
.assistants { display: grid; gap: 10px; }
@media (min-width: 560px) { .assistants { grid-template-columns: 1fr 1fr; } }
.assistant-card {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; padding: 14px;
  border: 1px solid var(--kb-line-strong); border-radius: var(--kb-r-card); background: var(--kb-panel); cursor: pointer; font-weight: 400;
}
.assistant-card:hover { border-color: var(--kb-ink-3); }
.assistant-card:has(input:checked) { border-color: var(--kb-select); box-shadow: inset 0 0 0 1px var(--kb-select); }
.assistant-card:has(input:focus-visible) { outline: 2px solid var(--kb-select); outline-offset: 2px; }
.assistant-card input { margin-top: 6px; }
.assistant-card strong { display: block; font-size: 1rem; }
.assistant-card span span { display: block; color: var(--kb-ink-2); font-size: .875rem; margin-top: 2px; }
.assistant-logo { width: 32px; height: 32px; border-radius: 8px; flex: none; display: block; }
.grok-mark { display: grid; place-items: center; background: #15171b; color: #fff; font: 700 .625rem/1 var(--kb-font); letter-spacing: .02em; }
.email-choice { border: 0; margin: 18px 0 0; padding: 0; min-width: 0; }
.email-choice legend { padding: 0; font-weight: 600; margin-bottom: 8px; }
.js .wizard:has(input[name="assistant"][value="dots"]:checked) .email-choice { display: none; }
.choice { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; padding: 12px 14px; border: 1px solid var(--kb-line); border-radius: var(--kb-r-control); font-weight: 400; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--kb-select); }
.choice input { margin-top: 3px; }
.choice strong { display: block; }
.choice span span { display: block; color: var(--kb-ink-2); font-size: .875rem; }
.final .ticket { box-shadow: none; }
.final > * + * { margin-top: 16px; }
.ticket-step { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin: 0 0 12px; }
.ticket-solo { border-top: 0; }
.ticket-solo::before, .ticket-solo::after { display: none; }
.plain-steps { margin: 0 0 16px; padding-left: 1.2em; color: var(--kb-ink-2); }
.plain-steps strong { color: var(--kb-ink); }

/* ---- /start ---- */
.setup-hero { padding: 40px 0 72px; }
.setup-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .setup-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 64px; } .setup-copy { position: sticky; top: 100px; } }
.setup-title { font: 900 clamp(2.2rem, 1.5rem + 2.8vw, 3.8rem)/.96 var(--kb-font); letter-spacing: -.04em; margin-bottom: 18px; }
.setup-side > * + * { margin-top: 20px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 18px; background: var(--kb-panel-2); border: 1px solid var(--kb-line); border-radius: var(--kb-r-card); }
.mode-switch a { display: grid; gap: 1px; padding: 9px 12px; border-radius: var(--kb-r-control); text-decoration: none; color: var(--kb-ink-2); }
.mode-switch a strong { color: var(--kb-ink); font-size: .9375rem; }
.mode-switch a span { font-size: .8125rem; }
.mode-switch a:hover { background: var(--kb-panel); }
.mode-switch a[aria-current="page"] { background: var(--kb-panel); box-shadow: var(--kb-key-quiet); color: var(--kb-ink-2); }
.ticket-gate h3 { margin-bottom: 6px; }
.ticket-gate p { color: var(--kb-ink-2); }
.progress-title { font-size: 1rem; margin: 0 0 10px; }

/* ---- sign in ---- */
.signin { display: grid; gap: 40px; max-width: 960px; margin: 16px auto 0; }
@media (min-width: 860px) { .signin { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: 56px; } }
.signin-alt { background: var(--kb-panel-2); border: 1px solid var(--kb-line); border-radius: var(--kb-r-frame); padding: 24px; }
.signin-alt h2 { font-size: 1.1rem; }
.signin-alt h2 + p { color: var(--kb-ink-2); }
.signin-alt h2:not(:first-child) { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--kb-line); }
.say { margin: 0 0 10px; display: inline-block; padding: 10px 15px; border-radius: 18px 18px 18px 4px; background: var(--kb-panel); color: var(--kb-ink); font-weight: 560; }
.say::before { content: "\201C"; } .say::after { content: "\201D"; }

/* ---- the Switchboard hero: headline on styrene, then the patch bay (signature) ---- */
.hero-b { padding: 64px 0 88px; }
.hero-b .display { max-width: 15ch; }
.hero-row { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; justify-content: space-between; }
.hero-row .lead { margin: 0; max-width: 52ch; font-size: 1.1875rem; }
.hero-row .actions { margin: 0; }
.hero-b .hero-fine { margin: 16px 0 0; }
.patchbay {
  margin-top: 48px; background: var(--bay); color: var(--bay-ink); border-radius: 14px; padding: 22px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), 0 40px 60px -30px rgb(20 26 31 / .6);
}
.bay-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 4px 16px; border-bottom: 1px solid var(--bay-line); }
/* Stencilled hardware lettering: the one place caps are used, because it's printed on the panel. */
.stencil { font: 500 .75rem/1 var(--kb-mono); letter-spacing: .08em; color: var(--bay-ink-3); }
.bay-live { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--bay-ink-2); }
.lamp { width: 8px; height: 8px; border-radius: 50%; background: #6cc76f; box-shadow: 0 0 8px #6cc76f; flex: none; }
.lamp.off { background: var(--kb-decal); box-shadow: none; border-radius: 1px; transform: rotate(45deg); }
.bay-grid { display: grid; gap: 20px; margin-top: 20px; align-items: start; }
.jacks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.jack { display: flex; align-items: center; gap: 12px; margin: 0; height: 48px; padding: 0 14px; border-radius: var(--kb-r-card); background: var(--bay-2); border: 1px solid var(--bay-line); color: var(--bay-ink); }
.jack .brand-icon { color: var(--bay-ink); }
.jack-name { font-weight: 600; font-size: .9375rem; flex: 1; min-width: 0; }
.jack .lamp { margin-left: auto; }
.jack.off { opacity: .55; }
.jack .soon { font-size: .75rem; color: var(--bay-ink-3); }
.hole { width: 24px; height: 24px; border-radius: 50%; background: #0c1115; box-shadow: inset 0 2px 4px rgb(0 0 0 / .8), 0 0 0 4px var(--bay-line-strong); flex: none; }
.cords { display: none; width: 100%; height: 348px; }
.cords path { fill: none; stroke: var(--kb-accent); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cords path.slack { stroke: var(--bay-line-strong); }
.patchbay .demo { justify-self: stretch; max-width: none; }
@media (min-width: 1040px) {
  .bay-grid { grid-template-columns: minmax(0, .9fr) 110px minmax(0, 1.25fr); gap: 0; }
  .jacks { margin-top: 64px; }
  .cords { margin-top: 64px; }
  .cords { display: block; }
  .jacks { padding-right: 0; }
  .patchbay .demo { padding-left: 4px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cords path:not(.slack) { stroke-dasharray: 400; stroke-dashoffset: 400; animation: cord-in 1.1s var(--kb-glide) .2s forwards; }
  .cords path:nth-child(2) { animation-delay: .35s; } .cords path:nth-child(3) { animation-delay: .5s; }
}
@keyframes cord-in { to { stroke-dashoffset: 0; } }

/* ---- "the day after the trade show": an example chat that fills in as it scrolls into view ---- */
.ask-split { align-items: center; }
.trade-chat { margin: 0; background: var(--kb-panel); border: 1px solid var(--kb-line); border-radius: var(--kb-r-frame); box-shadow: var(--kb-cast-lg); overflow: hidden; }
.trade-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--kb-line); font-size: .8125rem; color: var(--kb-ink-2); }
.trade-log { display: grid; gap: 14px; padding: 18px; }
.trade-turn { display: grid; gap: 10px; }
.trade-me { justify-self: end; margin: 0; max-width: 80%; padding: 9px 14px; border-radius: 18px 18px 4px 18px; background: var(--kb-ink); color: var(--kb-panel); font-weight: 500; }
.trade-bot { justify-self: start; max-width: 92%; padding: 11px 14px; border-radius: 18px 18px 18px 4px; background: var(--kb-panel-2); font-size: .9375rem; }
.trade-bot p { margin: 0; }
.trade-bot ul { margin: 6px 0 0; padding-left: 1.1em; }
.trade-bot li { margin: 4px 0 0; }
.trade-bot .via { font-size: .75rem; color: var(--kb-ink-3); white-space: nowrap; }
.trade-bot blockquote { margin: 6px 0 0; padding: 8px 10px; border-left: 3px solid var(--kb-line-strong); background: var(--kb-panel); border-radius: var(--kb-r-part); }
.trade-bot .waits { list-style: none; padding: 0; margin: 0; min-width: 200px; }
.trade-bot .waits li { display: flex; justify-content: space-between; gap: 24px; margin: 0; padding: 3px 0; }
.trade-bot .waits .num { color: var(--kb-ink-2); font-size: .8125rem; }
.chat-ask { box-shadow: inset 3px 0 0 var(--kb-decal); padding-left: 12px; }
.trade-bot .chat-to { margin: 6px 0 4px; font-weight: 650; }
.trade-bot .chat-quote { margin: 0 0 10px; padding: 8px 10px; background: var(--kb-panel); border-radius: var(--kb-r-part); }
.trade-chat figcaption { margin: 0; padding: 0 18px 14px; }
/* Each turn rises in as the chat scrolls into view: the ask first, then the reply. Only where scroll-driven
   animations exist and motion is welcome; everywhere else the whole conversation is simply there. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .trade-me, .trade-bot { animation: trade-in linear both; animation-timeline: view(); }
    .trade-me { animation-range: entry 10% entry 60%; }
    .trade-bot { animation-range: entry 45% entry 95%; }
  }
}
@keyframes trade-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---- dashboard: the bay strip, the reply queue, settings rows ---- */
.dash-head h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); letter-spacing: -.035em; }
.bay-strip { display: flex; flex-wrap: wrap; background: var(--bay); border-radius: var(--kb-r-frame); margin: 0 0 20px; overflow: hidden; box-shadow: inset 0 1px 0 rgb(255 255 255 / .07); }
.bay-line { flex: 1 1 200px; display: flex; align-items: center; gap: 12px; padding: 16px 20px; color: var(--bay-ink); text-decoration: none; border-right: 1px solid var(--bay-line); }
.bay-line:last-child { border-right: 0; }
.bay-line:hover { background: var(--bay-2); text-decoration: none; }
.bay-line > span:last-child { display: grid; gap: 1px; min-width: 0; }
.bay-line strong { font-size: .9375rem; }
.bay-line span span { font-size: .8125rem; color: var(--bay-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bay-line .brand-icon { color: var(--bay-ink); }
.empty-line strong { color: #ff9970; }
.dash-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.queue { display: grid; gap: 14px; }
.queue .panel-head { margin: 0; }
.ask-card { background: var(--kb-panel); border: 1px solid var(--kb-line); border-radius: var(--kb-r-frame); padding: 18px 20px; box-shadow: var(--kb-raised); }
.ask-card .led { margin: 0; }
.ask-to { margin: 8px 0 0; color: var(--kb-ink-2); font-size: .9375rem; }
.ask-to strong { color: var(--kb-ink); }
.ask-text { margin: 10px 0; padding: 12px 14px; border-radius: var(--kb-r-control); background: var(--kb-panel-2); box-shadow: var(--kb-recessed); font-size: 1.0625rem; }
.ask-card .small { margin: 0; }
.recent-title { margin: 8px 0 0; }
.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--kb-line); border-radius: var(--kb-r-card); background: var(--kb-panel); overflow: hidden; }
.card .rows { margin: 12px 0; }
.rows li { margin: 0; border-top: 1px solid var(--kb-line); display: flex; align-items: center; gap: 14px; padding: 0 16px; min-height: 54px; }
.rows li:first-child { border-top: 0; }
.rows li > a { flex: 1; display: flex; align-items: center; gap: 14px; min-height: 54px; margin: 0 -16px; padding: 0 16px; color: var(--kb-ink); text-decoration: none; }
.rows li > a:hover { background: var(--kb-panel-2); }
.rows .num { font-size: .8125rem; color: var(--kb-ink-3); }
.row-end { margin-left: auto; color: var(--kb-ink-2); font-size: .875rem; }
.rows a .row-end { color: var(--kb-accent-text); font-weight: 600; }
.row-main { display: grid; gap: 2px; padding: 10px 0; min-width: 0; }
.rows form.row-end { margin-left: auto; }
.settings-card .small { margin: 0; }
.danger-zone { border-color: color-mix(in oklab, var(--kb-danger) 35%, var(--kb-line)); }
.plans.plans-2 { max-width: 880px; }
@media (min-width: 840px) { .plans.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.extras-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.extras-form label { margin: 0 0 6px; }
.extras-form input { width: 7rem; }

/* ---- motion ----
   Motion answers something: a press, an open, a switch, a confirmation, or live state (a lamp, an agent working).
   At most one load moment per page: the patch bay on the landing page, the waiting diamond on the overview, a fresh
   confirmation notice. Transform and opacity only, nothing that moves layout. Every rule sits behind
   prefers-reduced-motion: no-preference, so the resting state is always the end state. */
.wizard-rail .rail-num { transition: background-color .2s var(--kb-glide), border-color .2s var(--kb-glide), color .2s var(--kb-glide); }
@media (prefers-reduced-motion: no-preference) {
  /* Page to page (Chrome, Edge, Safari 18.2+; elsewhere a plain navigation): the sidebar and header stay put, the
     current-row highlight slides to the new row and snaps in, the logo travels between header and sidebar, and the
     dashboard content settles in place. */
  @view-transition { navigation: auto; }
  .site-head { view-transition-name: site-head; }
  .side { view-transition-name: side; }
  .site-head .brand-mark, .side .brand-mark { view-transition-name: brand-mark; }
  .menu a[aria-current="page"] { view-transition-name: menu-current; }
  .app-main { view-transition-name: app-main; }
  ::view-transition-old(root), ::view-transition-new(root), ::view-transition-old(side), ::view-transition-new(side),
  ::view-transition-old(site-head), ::view-transition-new(site-head) { animation-duration: .2s; }
  /* The logo and the highlight travel as one solid part (no crossfade of their labels), and snap into place. */
  ::view-transition-group(brand-mark), ::view-transition-group(menu-current) { animation-duration: .32s; animation-timing-function: var(--kb-snap); z-index: 1; }
  ::view-transition-old(brand-mark), ::view-transition-old(menu-current) { animation: none; opacity: 0; }
  ::view-transition-new(brand-mark), ::view-transition-new(menu-current) { animation: none; }
  ::view-transition-group(app-main) { animation: none; }
  ::view-transition-old(app-main) { animation: vt-out .12s ease-out both; }
  ::view-transition-new(app-main) { animation: vt-settle .24s var(--kb-glide) .06s both; }

  /* Menu rows are keys: they press in 1px. */
  .menu a { transition: background-color .12s, color .12s, transform .12s var(--kb-snap); }
  .menu a:active, .menu button.nav-link:active { transform: translateY(1px); }

  /* The overview, with replies waiting: the diamond pings once. */
  .menu:has(a[href="/app"][aria-current="page"]) .menu-mark.wait { animation: wait-ping .6s var(--kb-snap) .35s 1 both; }

  /* Live lamps breathe, slowly and faintly, a little out of step with each other. */
  .bay-line .lamp:not(.off) { animation: lamp-breathe 3.2s ease-in-out infinite alternate; }
  .bay-line:nth-child(2) .lamp { animation-delay: -1.1s; } .bay-line:nth-child(3) .lamp { animation-delay: -2.3s; }

  /* The patch bay: as each cord leaves its jack the jack seats; when the cord reaches the assistant its lamp lights,
     then breathes. The bay's own lamp lights after the last cord. "Soon" jacks stay still. */
  .jack:not(.off) .hole { animation: jack-seat .34s var(--kb-snap) .2s both; }
  .jack:not(.off) .lamp { animation: lamp-on .3s var(--kb-snap) .95s both, lamp-breathe 3.2s ease-in-out 1.6s infinite alternate; }
  .jack:nth-child(2) .hole { animation-delay: .35s; }
  .jack:nth-child(2) .lamp { animation-delay: 1.1s, 2.7s; }
  .jack:nth-child(3) .hole { animation-delay: .5s; }
  .jack:nth-child(3) .lamp { animation-delay: 1.25s, 2.1s; }
  .bay-live .lamp { animation: lamp-on .3s var(--kb-snap) 1.45s both; }

  /* Wizard: once the person moves between steps, the step number that changes state snaps into place; a copy
     confirms with a snap. */
  .stepped .wizard-rail li.done .rail-num, .stepped .wizard-rail li[aria-current="step"] .rail-num { animation: seat .32s var(--kb-snap); }
  .copy-done:not(:empty) { animation: confirm-in .3s var(--kb-snap); }

  /* Disclosures: the sign turns and the content fades in (no height animation). */
  details[open] > summary::before { animation: sign-turn .24s var(--kb-snap); }
  details[open] > :not(summary) { animation: fade-in .2s var(--kb-glide); }

  /* A confirmation that answers what the person just did settles in. Standing states (waiting) don't move. */
  .card[role="status"]:not(.warn) { animation: notice-in .32s var(--kb-snap) .1s both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-settle { from { opacity: 0; transform: translateY(6px); } }
@keyframes wait-ping { 0%, 100% { transform: rotate(45deg) scale(1); } 45% { transform: rotate(45deg) scale(1.5); } }
@keyframes lamp-breathe { to { opacity: .62; } }
@keyframes lamp-on { from { opacity: 0; transform: scale(.4); } }
@keyframes jack-seat { from { transform: scale(.78); } }
@keyframes seat { from { transform: scale(.7); } }
@keyframes confirm-in { from { opacity: 0; transform: translateX(-6px) scale(.96); } }
@keyframes sign-turn { from { transform: rotate(-90deg); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes notice-in { from { opacity: 0; transform: translateY(-4px) scale(.99); } }

@media (max-width: 640px) {
  .hide-phone { display: none; }
  .turn { grid-template-columns: 1fr; gap: 2px; }
  .hero { padding-top: 32px; }
  .ticket-stub, .ticket-body { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-head, .side, .site-foot { display: none; } body { background: #fff; } }
