/* BoxAI homepage. Engineering paper, navy ink, status colours that mean something. */

@font-face {
  font-family: "Big Shoulders Stencil";
  src: url("/fonts/big-shoulders-stencil-display-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #EEF1F0;
  --panel: #F8FAF9;
  --ink: #13233A;
  --ink-2: #5A6878;
  --grid: #D5DCDA;
  --line: #C3CCCA;
  --root: #D21F3C;
  --root-soft: #FBE3E6;
  --amber: #8A5300;
  --amber-soft: #FBEBD3;
  --calm: #22604F;
  --calm-soft: #DCEFE9;
  --focus: #1E5BD8;
  --display: "Big Shoulders Stencil", "Arial Narrow", Impact, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1626;
    --panel: #121E31;
    --ink: #E3E9E7;
    --ink-2: #93A1B0;
    --grid: #1D2A3E;
    --line: #2B3A51;
    --root: #FF5C70;
    --root-soft: #3A1622;
    --amber: #F2A53A;
    --amber-soft: #36270F;
    --calm: #5DBB9F;
    --calm-soft: #12302A;
    --focus: #7FA6FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0D1626;
  --panel: #121E31;
  --ink: #E3E9E7;
  --ink-2: #93A1B0;
  --grid: #1D2A3E;
  --line: #2B3A51;
  --root: #FF5C70;
  --root-soft: #3A1622;
  --amber: #F2A53A;
  --amber-soft: #36270F;
  --calm: #5DBB9F;
  --calm-soft: #12302A;
  --focus: #7FA6FF;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
h2 { font: 600 clamp(26px, 3.2vw, 34px)/1.15 var(--text); letter-spacing: -0.01em; margin: 0 0 20px; max-width: 26ch; }
h3 { font: 600 18px/1.3 var(--text); margin: 0 0 8px; }
code { font-family: var(--mono); font-size: 0.9em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 6px;
  font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink);
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: transparent; color: var(--ink); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--quiet:hover { border-color: var(--ink); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* Nav */
.nav { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.nav__row { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { font: 800 28px/1 var(--display); letter-spacing: 0.02em; text-decoration: none; }
.nav__links { display: flex; gap: 22px; }
.nav__links a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav__links a:hover { color: var(--ink); }
.nav__end { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.theme {
  background: none; border: 1px solid var(--line); color: var(--ink-2);
  font: 400 14px/1 var(--text); padding: 9px 12px; border-radius: 6px; cursor: pointer;
}
.theme:hover { color: var(--ink); border-color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero__title {
  font: 800 clamp(54px, 9.4vw, 128px)/0.92 var(--display);
  letter-spacing: 0.005em;
  margin: 0 0 28px;
  max-width: 11ch;
}
.hero__lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; max-width: 58ch; margin: 0 0 28px; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Console */
.console-section { padding: 16px 0 72px; }
.console {
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}
.console__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.console__title { font: 600 16px/1 var(--text); margin: 0; }
.incidents { display: flex; flex-wrap: wrap; gap: 8px; }
.incident {
  font: 400 15px/1 var(--text); color: var(--ink-2);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 14px; cursor: pointer;
}
.incident:hover { color: var(--ink); border-color: var(--ink); }
.incident[aria-pressed="true"] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.trap { margin: 0; padding: 12px 20px; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--line); min-height: 1.5em; }
.trap strong { color: var(--ink); font-weight: 600; }

.alertbar {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  padding: 12px 20px; background: var(--root-soft); border-bottom: 1px solid var(--line);
}
.alertbar[hidden] { display: none; }
.alertbar__pill { font: 600 13px/1 var(--text); color: #fff; background: var(--root); padding: 5px 9px; border-radius: 4px; }
:root[data-theme="dark"] .alertbar__pill { color: var(--paper); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .alertbar__pill { color: var(--paper); } }
.alertbar__svc { font-family: var(--mono); font-size: 15px; }
.alertbar__sig { color: var(--ink); }
.alertbar__time { margin-left: auto; color: var(--ink-2); font-family: var(--mono); font-size: 14px; }

.console__body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); }
.map {
  margin: 0; padding: 16px; border-right: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 340px; display: flex; flex-direction: column;
}
.map__canvas { flex: 1; display: flex; align-items: center; justify-content: center; }
.map__canvas svg { width: 100%; height: auto; max-height: 560px; display: block; }
.map__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); padding-top: 12px; }
.key::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; border: 1.5px solid; }
.key--root::before { background: var(--root); border-color: var(--root); }
.key--propagating::before { background: var(--amber-soft); border-color: var(--amber); }
.key--alerting::before { background: var(--root-soft); border-color: var(--root); }
.key--impacted::before { background: var(--panel); border-color: var(--amber); border-style: dashed; }
.key--suspect::before { background: var(--panel); border-color: var(--ink-2); }
.key--healthy::before { background: var(--calm-soft); border-color: var(--calm); }

/* Map SVG */
.node rect { stroke-width: 1.5; rx: 6; }
.node text { font: 600 13px var(--mono); fill: var(--ink); }
.node .node__kind { font: 400 11px var(--text); fill: var(--ink-2); }
.node--healthy rect { fill: var(--calm-soft); stroke: var(--calm); }
.node--root rect { fill: var(--root); stroke: var(--root); }
.node--root text, .node--root .node__kind { fill: #fff; }
:root[data-theme="dark"] .node--root text, :root[data-theme="dark"] .node--root .node__kind { fill: var(--paper); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .node--root text, :root:not([data-theme="light"]) .node--root .node__kind { fill: var(--paper); } }
.node--alerting rect { fill: var(--root-soft); stroke: var(--root); stroke-width: 2; }
.node--propagating rect { fill: var(--amber-soft); stroke: var(--amber); }
.node--impacted rect { fill: var(--panel); stroke: var(--amber); stroke-dasharray: 4 3; }
.node--candidate rect, .node--unrelated rect { fill: var(--panel); stroke: var(--ink-2); }
.node--unrelated { opacity: 0.75; }
.edge { fill: none; stroke: var(--line); stroke-width: 1.5; }
.edge--chain { stroke: var(--root); stroke-width: 3; }
.arrow { fill: var(--line); }
.arrow--chain { fill: var(--root); }
.draw .edge--chain { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s ease-out 0.15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Verdict */
.verdict { padding: 24px 24px 20px; }
.verdict__state { color: var(--ink-2); margin: 0; }
.verdict__state.is-error { color: var(--root); }
.verdict__label { margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
.verdict__svc {
  font: 800 clamp(40px, 4.6vw, 58px)/0.95 var(--display);
  color: var(--root); margin: 0 0 10px; overflow-wrap: anywhere;
}
.verdict__score { margin: 0 0 18px; font-weight: 600; }
.verdict__next { border-left: 3px solid var(--root); padding: 2px 0 2px 12px; margin-bottom: 18px; }
.verdict__next p:last-child { margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checks li {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.checks .mark { font-weight: 600; text-align: center; }
.checks .met .mark { color: var(--calm); }
.checks .unmet { color: var(--ink-2); }
.checks .pts { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.draw .checks li { opacity: 0; animation: tick 0.3s ease-out forwards; }
@keyframes tick { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .draw .edge--chain { animation: none; stroke-dashoffset: 0; }
  .draw .checks li { animation: none; opacity: 1; }
}

.console__detail {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line);
}
.console__detail[hidden] { display: none; }
.console__detail > div { padding: 20px 24px; }
.update { border-right: 1px solid var(--line); }
.update p { margin: 0 0 8px; max-width: 70ch; }
.update__source { font-size: 13px; color: var(--ink-2); }
.ruled ul { margin: 0 0 10px; padding: 0; list-style: none; }
.ruled li { padding: 6px 0; font-size: 15px; }
.ruled li strong { font-family: var(--mono); font-size: 14px; font-weight: 600; margin-right: 6px; }
.ruled__impact { font-size: 15px; color: var(--ink-2); margin: 0; }
.timeline { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.timeline ol { list-style: none; margin: 0; padding: 0; font: 13.5px/1.5 var(--mono); }
.timeline li { display: grid; grid-template-columns: 76px 150px 1fr; gap: 12px; padding: 5px 8px; border-radius: 4px; color: var(--ink-2); }
.timeline li.is-anomaly { color: var(--ink); }
.timeline li.is-change { color: var(--ink); background: var(--amber-soft); }
.timeline li.is-chain { box-shadow: inset 3px 0 0 var(--root); }
.timeline .svc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats { grid-column: 1 / -1; margin: 0; padding: 12px 24px 18px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); }

.editor { border-top: 1px solid var(--line); padding: 0 24px; }
.editor summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.editor__hint { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.editor textarea {
  width: 100%; min-height: 280px; resize: vertical; padding: 12px;
  font: 13px/1.5 var(--mono); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 6px;
}
.editor__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 0 20px; }
.editor__error { margin: 0; color: var(--root); font-size: 15px; }

/* Sections */
.problem, .how, .status, .faq, .access { padding: 72px 0; border-top: 1px solid var(--line); }
.problem__grid, .faq__grid, .access__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; }
.problem__list { list-style: none; margin: 0; padding: 0; }
.problem__list li { padding: 14px 0 14px 18px; border-left: 3px solid var(--line); margin-bottom: 8px; max-width: 62ch; }
.problem__list li strong { display: block; font-weight: 600; }

.steps { list-style: none; counter-reset: step; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(step); display: block; font: 800 44px/1 var(--display); margin-bottom: 10px; }
.steps p { margin: 0; color: var(--ink-2); }

table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 10px 12px 10px 0; border-bottom: 1.5px solid var(--ink); }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.checks-table { max-width: 820px; }
.checks-table td:nth-child(2) { font-family: var(--mono); width: 70px; }
.checks-table td:first-child { font-weight: 600; width: 230px; }
.checks-table__note { color: var(--ink-2); margin: 14px 0 0; max-width: 70ch; }

.status__lede { max-width: 66ch; margin: 0 0 24px; }
.status__table { max-width: 820px; margin-bottom: 48px; }
.status__table td:last-child { width: 120px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 4px; border: 1px solid; }
.tag--live { color: var(--calm); background: var(--calm-soft); border-color: var(--calm); }
.tag--build { color: var(--amber); background: var(--amber-soft); border-color: var(--amber); }
.tag--planned { color: var(--ink-2); border-color: var(--line); }

.api { max-width: 820px; }
.api p { max-width: 66ch; }
.api pre { background: var(--ink); color: var(--paper); padding: 16px 18px; border-radius: 6px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.api__note { color: var(--ink-2); font-size: 15px; }

.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.faq__list details p { margin: 0 0 18px; color: var(--ink-2); max-width: 66ch; }

.access p { max-width: 46ch; }
.form { display: grid; gap: 6px; max-width: 460px; }
.form label { font-weight: 600; font-size: 15px; margin-top: 10px; }
.form .optional { font-weight: 400; color: var(--ink-2); }
.form input {
  font: 16px var(--text); color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px;
}
.form input:focus-visible { border-color: var(--focus); }
.form button { margin-top: 18px; justify-self: start; }
.form__msg { margin: 8px 0 0; min-height: 1.5em; }
.form__msg.is-error { color: var(--root); }
.hp { position: absolute; left: -9999px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-2); font-size: 15px; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Caveats under the score */
.caveats { list-style: none; margin: -8px 0 16px; padding: 10px 12px; background: var(--amber-soft); border-radius: 6px; font-size: 14.5px; }
.caveats li + li { margin-top: 6px; }
.caveats li::before { content: "Check: "; font-weight: 600; }

/* Timeline extras */
.timeline li.is-outside { opacity: 0.55; }
.timeline .flag { display: inline-block; margin-left: 8px; font: 600 11.5px/1.4 var(--text); padding: 0 6px; border-radius: 3px; border: 1px solid currentColor; }

/* Copy request */
.editor__copy { margin-left: auto; }

/* Docs */
.doc__main { padding-top: 48px; padding-bottom: 72px; max-width: 900px; }
.doc__title { font: 800 clamp(44px, 6vw, 72px)/0.95 var(--display); margin: 0 0 18px; }
.doc__lede { font-size: 19px; max-width: 64ch; margin: 0 0 24px; }
.doc__toc { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.doc__toc a { color: var(--ink-2); font-size: 15px; }
.doc section { padding: 32px 0 8px; }
.doc pre { background: var(--ink); color: var(--paper); padding: 16px 18px; border-radius: 6px; overflow-x: auto; font: 13.5px/1.6 var(--mono); }
.doc td code, .doc li code, .doc p code { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; overflow-wrap: anywhere; }
.doc td:first-child { width: 34%; }
.doc__list { padding-left: 18px; max-width: 70ch; }
.doc__list li { margin-bottom: 10px; }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }


/* Live strip above the console */
.live { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0 0 12px; font-size: 15px; }
.live[hidden] { display: none; }
.live__status { margin: 0; font-weight: 600; }
.live__dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--calm); margin-right: 8px; vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) { .live__dot { animation: pulse 2s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: 0.35; } }
.live__record { margin: 0; color: var(--ink-2); }
.live__link { margin-left: auto; font-size: 15px; }
.graded { margin: 0; padding: 10px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.graded[hidden] { display: none; }
.graded.is-right { background: var(--calm-soft); }
.graded.is-wrong { background: var(--root-soft); }
.console__meta { margin: 0; color: var(--ink-2); font-size: 15px; }
.console-section--page { padding-top: 32px; }
.crumbs { margin: 0 0 12px; font-size: 15px; }

/* Agent trail */
.agent { border-top: 1px solid var(--line); padding: 20px 24px; }
.agent[hidden] { display: none; }
.trail { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.trail__step { position: relative; padding: 0 0 14px 34px; counter-increment: step; }
.trail__step::before { content: counter(step); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-2); font: 600 12px/19px var(--text); text-align: center; color: var(--ink-2); }
.trail__step:not(:last-child)::after { content: ""; position: absolute; left: 10.5px; top: 24px; bottom: 2px; width: 1.5px; background: var(--line); }
.trail__step--conclude::before { border-color: var(--root); background: var(--root); color: #fff; }
.trail__step--running::before { content: ""; border-style: dashed; }
.trail__head { margin: 0; }
.trail__calls { margin-left: 10px; font: 12.5px var(--mono); color: var(--ink-2); }
.trail__why { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.trail__found { margin: 2px 0 0; font-size: 15px; }
.trail__err { margin: 2px 0 0; color: var(--root); font-size: 14px; }
.ignored { list-style: none; margin: 0 0 10px; padding: 0; }
.ignored li { padding: 6px 0; font-size: 15px; color: var(--ink-2); }
.ignored li strong { color: var(--ink); font-weight: 600; }

/* Feed */
.feed__record { font-weight: 600; margin: 0 0 18px; }
.feed { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.feed__item { border-top: 1px solid var(--line); }
.feed__item:last-child { border-bottom: 1px solid var(--line); }
.feed__link { display: block; padding: 14px 4px; text-decoration: none; }
.feed__link:hover .feed__alert { text-decoration: underline; }
.feed__top { display: flex; gap: 12px; align-items: center; margin: 0; color: var(--ink-2); font-size: 14px; }
.feed__alert { margin: 4px 0 2px; font-weight: 600; overflow-wrap: anywhere; }
.feed__verdict { margin: 0; color: var(--ink-2); font-size: 15px; }
.feed__empty { color: var(--ink-2); }
.tag--wrong { color: var(--root); background: var(--root-soft); border-color: var(--root); }

/* Connect */
.connect { max-width: 640px; display: grid; gap: 18px; }
.connect[hidden] { display: none; }
.connect fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px 18px; margin: 0; display: grid; gap: 6px; background: var(--panel); }
.connect legend { font-weight: 600; padding: 0 6px; }
.connect label { font-weight: 600; font-size: 15px; margin-top: 8px; }
.connect label.check { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.connect input:not([type="checkbox"]), .connect select, .connect textarea {
  font: 16px var(--text); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%;
}
.connect textarea { font: 14px/1.5 var(--mono); }
.connect .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.connect .pair > div { display: grid; gap: 6px; }
.connect .optional { font-weight: 400; color: var(--ink-2); }
.connect button { justify-self: start; }
.hint { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 64ch; }
.connected[hidden] { display: none; }
.connected { max-width: 820px; }
.connected__warn { background: var(--amber-soft); padding: 10px 14px; border-radius: 6px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; align-items: baseline; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv code { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; }
.check-results { list-style: none; padding: 0; margin: 0 0 24px; }
.check-results li { padding: 6px 0; }
.check-results .is-ok strong { color: var(--calm); }
.check-results .is-bad strong, .check-results .is-bad { color: var(--root); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.split > .connect { max-width: none; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acct { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.acct__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ws-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; }
.ws-head h2:focus, .connected h2:focus { outline: none; }
.ws-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ws { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; background: var(--panel); display: grid; gap: 10px; min-width: 0; }
.ws h3 { margin: 0; }
.ws h4 { margin: 6px 0 0; font-size: 15px; }
.ws-runs { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.ws-runs a { overflow-wrap: anywhere; }
.keep-clear { font-size: 15px; }
.ws .kv .is-bad { color: var(--root); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.table-wrap:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.runs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.runs-table th, .runs-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.runs-table th { font-weight: 600; white-space: nowrap; }
.runs-table tr:last-child td { border-bottom: 0; }
.runs-table td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.runs-table .is-failed { color: var(--root); }
@media (max-width: 600px) {
  .runs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .runs-table, .runs-table tbody, .runs-table tr, .runs-table td { display: block; }
  .runs-table tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .runs-table td { border: 0; padding: 2px 0; }
  .runs-table td::before { content: attr(data-label) ": "; font-weight: 600; }
}
.btn--danger { color: var(--root); }
.btn--danger:hover { border-color: var(--root); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#new-key code { font: 14px/1.5 var(--mono); overflow-wrap: anywhere; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 2px 6px; }
.connected pre { background: var(--ink); color: var(--paper); padding: 16px 18px; border-radius: 6px; overflow-x: auto; font: 13.5px/1.6 var(--mono); white-space: pre; }
#snippet-tabs { margin: 8px 0 12px; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } .connect .pair { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; } .live__link { margin-left: 0; } }

.console h2.sub { font: 600 18px/1.3 var(--text); margin: 0 0 8px; max-width: none; letter-spacing: 0; }

/* Narrow screens: wide maps and tables scroll inside themselves */
.map, .verdict { min-width: 0; }
.map__canvas { min-width: 0; max-width: 100%; }
.map__canvas.is-scroll { justify-content: flex-start; overflow-x: auto; }
.map__canvas.is-scroll svg { flex-shrink: 0; }
@media (max-width: 560px) { .doc table { display: block; overflow-x: auto; } }
.doc table:focus-visible, .doc pre:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Responsive */
@media (max-width: 960px) {
  .console__body { grid-template-columns: 1fr; }
  .map { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problem__grid, .faq__grid, .access__grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .wrap { padding: 0 16px; }
  .hero { padding: 44px 0 28px; }
  .console__detail { grid-template-columns: 1fr; }
  .update { border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline li { grid-template-columns: 64px 1fr; }
  .timeline li .msg { grid-column: 1 / -1; padding-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .alertbar__time { margin-left: 0; }
  .checks-table td:first-child { width: auto; }
  .theme { padding: 8px 10px; }
}
