/* Korzen. The tokens below are the brand: docs/brand (README.md, tokens.md,
   components.md) explains each one. Gate blue is the only brand hue; the five class colours mean a
   class and nothing else; neutrals lean blue. Dark mode follows the system unless the visitor picks a theme
   (data-theme on <html>, set by theme.js and the toggle in app.js). */
@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/fonts/plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/fonts/plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  /* Ground and ink */
  --bg: #f4f5fa;
  --surface: #ffffff;
  --surface-2: #eceef6;
  --text: #0c1230;
  --muted: #545c7a;
  --line: #d9ddeb;
  /* A control's edge: inputs, selects, the money box. 3.3:1 on surface (WCAG 1.4.11). */
  --line-strong: #868ea8;
  /* Gate blue: actions, links, the mark. Never for a state. */
  --accent: #1f36e0;
  --accent-ink: #ffffff;
  --accent-tint: #e7eafe;
  /* Night: the brand's deep surface (the paid plan, the closing band). */
  --night: #0c1230;
  --on-night: #ffffff;
  --on-night-muted: #aab2d6;
  /* States */
  --danger: #d7263d;
  --ok: #097a54;
  /* A message's text on its own tint: 4.5:1 at least. */
  --danger-text: #b01c30;
  --ok-text: #076846;
  /* The five classes, from person to bot */
  --c-human_high: #097a54;
  --c-human: #12a594;
  --c-unknown: #8a93ad;
  --c-bot: #d97a06;
  --c-bot_high: #d7263d;
  /* Code: a highlighted token's colour, inside a code block only, never a class or a
     state. 4.5:1 at least on surface and surface-2. */
  --code-comment: #545c7a;
  --code-keyword: #1f36e0;
  --code-string: #0a6b4b;
  --code-number: #a24a00;
  --code-function: #7a2bc4;
  --code-type: #0b6585;
  /* Shape */
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --shadow: none;
  /* Type */
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #090d1f;
  --surface: #10162e;
  --surface-2: #18203d;
  --text: #e8ebf7;
  --muted: #9aa3c4;
  --line: #263055;
  --line-strong: #5e688a;
  --accent: #8193ff;
  --accent-ink: #090d1f;
  --accent-tint: #1a2257;
  --night: #1a2257;
  --on-night: #ffffff;
  --on-night-muted: #aab2d6;
  --danger: #ff5c6c;
  --ok: #34d399;
  --danger-text: #ff5c6c;
  --ok-text: #34d399;
  --c-human_high: #34d399;
  --c-human: #2dd4bf;
  --c-unknown: #5e688a;
  --c-bot: #f5a524;
  --c-bot_high: #ff5c6c;
  --code-comment: #9aa3c4;
  --code-keyword: #8193ff;
  --code-string: #5ee0a8;
  --code-number: #ffad66;
  --code-function: #c9a3ff;
  --code-type: #5fd0f0;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090d1f;
    --surface: #10162e;
    --surface-2: #18203d;
    --text: #e8ebf7;
    --muted: #9aa3c4;
    --line: #263055;
    --line-strong: #5e688a;
    --accent: #8193ff;
    --accent-ink: #090d1f;
    --accent-tint: #1a2257;
    --night: #1a2257;
    --on-night: #ffffff;
    --on-night-muted: #aab2d6;
    --danger: #ff5c6c;
    --ok: #34d399;
    --danger-text: #ff5c6c;
    --ok-text: #34d399;
    --c-human_high: #34d399;
    --c-human: #2dd4bf;
    --c-unknown: #5e688a;
    --c-bot: #f5a524;
    --c-bot_high: #ff5c6c;
    --code-comment: #9aa3c4;
    --code-keyword: #8193ff;
    --code-string: #5ee0a8;
    --code-number: #ffad66;
    --code-function: #c9a3ff;
    --code-type: #5fd0f0;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--sans);
  /* Archivo sets tight at text sizes: open it a little. */
  letter-spacing: 0.008em;
  word-spacing: 0.06em;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* A link inside running text is underlined, not told apart by colour alone (WCAG 1.4.1). */
:is(.post-body, .lp-note, .switch, label.check, .lp-sec p:not(.lp-card-link), details p) a:not(.btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5rem; font-weight: 650; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
:lang(ja) { --sans: "Archivo", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif; line-break: strict; }
:lang(ja) :is(h1, h2, h3) { hyphens: manual; word-break: auto-phrase; }
h1 { font-size: 1.65rem; font-weight: 750; font-stretch: 112%; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
code, pre { font-family: var(--mono); font-size: 0.85rem; }
/* Inline code longer than the line (an environment variable, a URL) breaks rather than
   widen the page; in a table it keeps its width, and the table scrolls. */
:not(pre) > code { overflow-wrap: break-word; }
pre {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  overflow-x: auto;
  /* Code keeps its lines: it scrolls sideways instead of breaking a token in two. */
  white-space: pre;
  word-break: normal;
  margin: 0;
}
/* Highlighted code: the server wraps each token in a span (internal/platform/highlight.go). */
.hl-c { color: var(--code-comment); }
.hl-k { color: var(--code-keyword); }
.hl-s { color: var(--code-string); }
.hl-n { color: var(--code-number); }
.hl-f { color: var(--code-function); }
.hl-t { color: var(--code-type); }

/* Top bar */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand { font-weight: 850; font-stretch: 122%; font-size: 1.65rem; letter-spacing: -0.01em; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
.brand:hover { text-decoration: none; }
/* Korzen's tree; the dark version is the same tree lit for a dark background. */
.brand-mark { width: 48px; height: 48px; background: url("/static/korzen.svg") center / contain no-repeat; }
:root[data-theme="dark"] .brand-mark { background-image: url("/static/korzen-dark.svg"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-mark { background-image: url("/static/korzen-dark.svg"); } }
.nav { display: flex; gap: 0.25rem; flex: 1; overflow-x: auto; }
.nav a {
  color: var(--muted);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  font-weight: 500;
  font-size: 1.02rem;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav a.active { color: var(--accent); background: var(--accent-tint); font-weight: 650; }
.who { color: var(--muted); font-size: 0.98rem; display: flex; align-items: center; gap: 0.75rem; white-space: nowrap; }

/* Layout */
.page { max-width: 1200px; margin: 0 auto; padding: 40px 24px 64px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
/* A dashboard page's title: the site's page header, sized for a working page. */
.page-head h1 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 850; font-stretch: 125%; margin-bottom: 0.4rem; }
.page-head .sub { font-size: 1.05rem; }
.page-head .lp-chip { margin-bottom: 0.75rem; }
.sub { color: var(--muted); margin: 0; text-wrap: pretty; }
.card h2.next { margin-top: 1.5rem; }
.none { color: var(--muted); }
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 16px; }
.two { grid-template-columns: 2fr 1fr; }
.two.top { align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  min-width: 0;
}
.card h2 { display: flex; justify-content: space-between; align-items: baseline; }
.kpi-label { color: var(--muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }
.kpi-value { font-size: 2rem; font-weight: 750; font-stretch: 115%; letter-spacing: -0.02em; margin-top: 0.15rem; font-variant-numeric: tabular-nums; }
.kpi-note { color: var(--muted); font-size: 0.85rem; }

/* Chart */
.chart { width: 100%; height: auto; display: block; margin-top: 0.5rem; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
/* Two drawings of a chart: the wide one on a desktop, the narrow one (labels about 12px
   on screen) on a phone. */
.chart.narrow { display: none; }
.chart.narrow .axis { font-size: 13px; }
@media (max-width: 600px) { .chart.wide { display: none; } .chart.narrow { display: block; } }
.chart rect { cursor: pointer; }
.chart-tip { min-height: 1.4em; margin: 0.25rem 0 0; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.chart-tip:empty { display: none; }
.chart-empty { display: grid; place-items: center; align-content: center; gap: 0.3rem; min-height: 200px; margin-top: 0.5rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); text-align: center; padding: 16px; }
.chart-empty strong { color: var(--text); font-size: 1.05rem; }
/* A new account's first step: a card with one primary action. */
.onboard { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.onboard .sub { margin: 0; max-width: 720px; }
@media (max-width: 600px) { .onboard { flex-direction: column; align-items: stretch; } }
.c-human_high { fill: var(--c-human_high); }
.c-human { fill: var(--c-human); }
.c-unknown { fill: var(--c-unknown); }
.c-bot { fill: var(--c-bot); }
.c-bot_high { fill: var(--c-bot_high); }
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--muted); font-size: 0.85rem; margin-top: 0.75rem; }
.legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.dot.human_high { background: var(--c-human_high); }
.dot.human { background: var(--c-human); }
.dot.unknown { background: var(--c-unknown); }
.dot.bot { background: var(--c-bot); }
.dot.bot_high { background: var(--c-bot_high); }

/* Class badges: a label, the class colour as its square, on a tint of that colour. The
   text is the class colour mixed toward text: 4.5:1 at least on its tint, both themes. */
.badge {
  --c: var(--c-unknown);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.1rem 0.5rem 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
  color: color-mix(in srgb, var(--c) 60%, var(--text));
  background: color-mix(in srgb, var(--c) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line));
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--c); }
.badge.human_high { --c: var(--c-human_high); }
.badge.human { --c: var(--c-human); }
.badge.bot { --c: var(--c-bot); }
.badge.bot_high { --c: var(--c-bot_high); }
/* A small tag beside a name: the current plan, the popular one. Not a button. */
/* .tag.off: a state that is not on, in muted. */
.tag.off { background: var(--surface-2); color: var(--muted); }
.tag { display: inline-block; vertical-align: middle; margin-left: 0.4rem; padding: 0.05rem 0.45rem; border-radius: var(--radius-sm); background: var(--accent-tint); color: var(--accent); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5; white-space: nowrap; }
.reason {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 0.4rem;
  margin: 0 0.25rem 0.25rem 0;
}
/* A verified bot's name among the reasons: automation the customer may let through. */
.reason.verified { color: var(--ok-text); background: color-mix(in srgb, var(--ok) 10%, transparent); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
/* A long path or an actor's hash never pushes the reasons out of view: cut, whole on hover. */
.table-wrap td.path code, .table-wrap td.actor code { display: inline-block; max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.table-wrap td.actor code { max-width: 10ch; }
/* A network's name beside its number (AS16509 AMAZON-02): muted, cut, whole on hover. */
.net-name { color: var(--muted); font-size: 0.85em; }
.table-wrap td.net { white-space: nowrap; }
.table-wrap td.net .net-name { display: inline-block; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 1.5rem 0; text-align: center; }

/* Top reasons */
.reasons { list-style: none; padding: 0; margin: 0; }
.reasons li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.reasons li:last-child { border-bottom: 0; }
.reasons .row { display: flex; justify-content: space-between; gap: 0.5rem; }
.reasons .desc { color: var(--muted); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The overview's two cards line up: the reasons keep five rows of one fixed height, and the
   chart takes the height left, centred, instead of leaving a gap under it. */
.reasons li { min-height: 3.4rem; box-sizing: border-box; }
.reasons li.gap { border-bottom-style: dashed; }
.grid.aligned { align-items: stretch; }
.grid.aligned > .card { display: flex; flex-direction: column; }
.reasons li.gap { min-height: 3.4rem; }
.grid.aligned > .card > [hx-get] { flex: 1; display: flex; align-items: center; }

/* What block mode would stop: monitor mode's first card (#287). */
.stop { margin-bottom: 16px; border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.stop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; flex-wrap: wrap; }
.stop-head .sub { margin-top: 0.25rem; max-width: 640px; }
.stop-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 32px; margin-top: 1rem; }
.stop-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.stop-paths h3 { margin: 0 0 0.25rem; }
.stop-paths .empty { padding: 1rem 0; text-align: left; }
@media (max-width: 860px) { .stop-body { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .stop-head .btn { width: 100%; } }
/* Block mode's lines on the chart and in its legend: solid for block, dashed for
   challenge, in the text colour, so the two never hang on a colour. */
.chart .would-block, .chart .would-challenge { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.chart polyline.would-challenge { stroke-dasharray: 5 4; }
.chart circle { fill: var(--surface); stroke-width: 1.5; }
.legend .line { display: inline-block; width: 18px; border-top: 2px solid var(--text); }
.legend .line.would-challenge { border-top-style: dashed; }

/* The overview's top lists (#288, #289): a value that filters the decisions table, its
   decisions, its share of bots, and a link that excludes it. */
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1179px) { .three { grid-template-columns: 1fr 1fr; } .three > :nth-child(3):last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .three { grid-template-columns: 1fr; } }
.card > .sub { margin: 0.25rem 0 0.5rem; }
table.tops { table-layout: fixed; margin-top: 0.25rem; }
.tops th.num { width: 5.5rem; }
.tops th.bots { width: 7.5rem; }
.tops th.x { width: 4.75rem; }
.tops th { white-space: normal; vertical-align: bottom; }
.stop .tops th.num { width: 8.5rem; }
.tops td { vertical-align: middle; }
.tops tr:last-child td { border-bottom: 0; }
.tops td.v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tops td.v code { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.tops td.v:has(.tag) code { max-width: calc(100% - 6rem); }
.tops td.x, .tops td:last-child { min-width: 0; text-align: right; padding-right: 0; }
.share { display: inline-block; width: 2.75rem; height: 6px; margin-right: 0.45rem; vertical-align: middle; border-radius: 1px; }
.share .track { fill: var(--surface-2); }
.top-x { color: var(--muted); font-size: 0.8rem; }
.top-x:hover { color: var(--accent); }
.reasons .row-end { display: inline-flex; align-items: baseline; gap: 0.75rem; }
@media (max-width: 600px) {
  .tops th.num { width: 4.5rem; }
  .tops th.bots { width: 4rem; }
  .tops th.x { width: 4.5rem; }
  .stop .tops th.num { width: 6rem; }
  .share { display: none; }
}

/* The decisions table's filters set from the overview, each with its way out. */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0.75rem 0 0; }
.chip { display: inline-flex; align-items: center; gap: 0.25rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); padding: 0 0 0 0.6rem; font-size: 0.85rem; min-height: 32px; }
.chip a { display: inline-grid; place-items: center; width: 32px; height: 32px; color: var(--muted); font-size: 1.1rem; }
.chip a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 768px) { .chip a { width: 44px; height: 44px; } }

/* Filters */
.pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.pill:hover { text-decoration: none; color: var(--text); }
.pill.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Forms: one control everywhere. A field is 40px (36px in a table or a filter row), its
   value Archivo 15px 400, its label 14px 600 in sentence case; its edge is line-strong,
   3:1 on its ground; focused, the edge turns gate blue with a 3px soft ring. */
form.stack { display: grid; gap: 0.9rem; }
label { display: grid; gap: 0.35rem; font-size: 14px; font-weight: 600; }
label.check { display: flex; align-items: center; gap: 0.5rem; font-size: 15px; font-weight: 400; min-height: 32px; }
.auth label.check { align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.auth label.check input { margin-top: 0.2rem; }
.hint { color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.noticed { display: grid; gap: 0.35rem; }
.noticed-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0; font-size: 15px; }
.advanced summary { cursor: pointer; font-weight: 600; margin-bottom: 0.6rem; }
.field-error { color: var(--danger-text); font-size: 0.85rem; font-weight: 500; margin: -0.45rem 0 0; }
:where(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="search"], textarea, select) {
  width: 100%;
  height: 40px;
  margin: 0;
  font: 400 15px/1.4 var(--sans);
  letter-spacing: 0;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0 12px;
}
/* Origins are code: mono, at the same size as every other value. */
textarea { height: auto; min-height: 88px; padding: 8px 12px; font-family: var(--mono); font-size: 15px; line-height: 1.5; resize: vertical; }
::placeholder { color: var(--muted); opacity: 0.75; }
:where(input:not([type="radio"], [type="checkbox"]), textarea, select):focus, .money:focus-within { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent) !important; }
/* A select looks like the inputs beside it, with a chevron drawn in the text colour. */
select {
  appearance: none;
  width: auto;
  min-width: 9rem;
  padding-right: 2.2rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
:where(select, input[type="text"], input[type="email"], input[type="password"], input[type="url"], textarea):hover:not(:focus) { border-color: color-mix(in srgb, var(--text) 45%, var(--line-strong)); }
/* In a table or a filter row, a control is 36px. */
td :is(input, select), .filters :is(input, select) { height: 36px; }
/* Radios and checkboxes keep the platform's shape, at a size and in the brand's colour. */
input[type="radio"], input[type="checkbox"] { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--accent); cursor: pointer; flex: none; }
label.check { cursor: pointer; }
label > select { justify-self: start; }
#mode td { vertical-align: middle; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:is(input:not([type="radio"], [type="checkbox"]), textarea, select):focus-visible { outline: 0; }
/* Buttons: 40px, or 32px small. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-ink);
  white-space: nowrap;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { min-height: 32px; padding: 0 0.85rem; font-size: 0.88rem; }
.topbar .btn.small { min-height: 40px; padding: 0 1rem; font-size: 0.95rem; }
.btn.link { background: none; border: 0; color: var(--muted); padding: 0; font-weight: 400; min-height: 0; }
.btn.link:hover { color: var(--text); }
.alert { border-radius: var(--radius-sm); padding: 0.65rem 0.9rem; margin-bottom: 1rem; font-size: 0.9rem; }
.alert.error { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger-text); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.alert.warn { background: color-mix(in srgb, var(--c-bot) 14%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--c-bot) 45%, transparent); }
.meter { width: 100%; height: 8px; margin-top: 0.75rem; appearance: none; border: 0; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
.meter::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.meter::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.meter.near::-webkit-progress-value { background: var(--c-bot); }
.meter.near::-moz-progress-bar { background: var(--c-bot); }
.meter.over::-webkit-progress-value { background: var(--c-bot_high); }
.meter.over::-moz-progress-bar { background: var(--c-bot_high); }
.alert.info { background: var(--accent-tint); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.alert.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok-text); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
/* A key or a snippet to copy: one line, as tall as the Copy button beside it. */
.secret, .code-row pre { font-family: var(--mono); font-size: 0.85rem; line-height: 1.5; background: var(--surface-2); border: 1px solid var(--line); padding: 0.55rem 0.8rem; border-radius: var(--radius-sm); }
.secret { border-style: dashed; word-break: break-all; }
.code-row pre { white-space: pre; word-break: normal; overflow-x: auto; }
.card.narrow, .alert.narrow { max-width: 640px; }
/* The authenticator link, apart from the step after it. */
.code-row + .actions { margin-bottom: 1rem; }
.code-row { display: flex; gap: 0.5rem; align-items: stretch; margin-top: 0.75rem; }
.code-row .secret, .code-row pre { flex: 1; min-width: 0; display: flex; align-items: center; }
.code-row .btn { min-height: 0; height: auto; }
/* A form's one action, as wide as its fields: sign-up, sign-in. */
.btn.wide { width: 100%; }
.section + .section, .grid + .card, .grid + .grid, .card + .grid, :not(.grid) > .card + .card { margin-top: 16px; }

/* Auth */
.auth { max-width: 420px; margin: 56px auto; }
/* A phone keeps the brand's 16 px side gutter around the card. */
@media (max-width: 452px) { .auth { margin: 32px 16px; } }
.auth .card { padding: 28px; }
.auth h1 { margin-bottom: 0.25rem; }
.auth .switch { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; text-align: center; }
form.stack .btn { justify-self: start; }
.actions { margin: 0.75rem 0 0; }
td:first-child { white-space: nowrap; }
td:last-child { min-width: 240px; }
@media (max-width: 600px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 0.5rem 1rem; }
  .brand { flex: 1; font-size: 1.4rem; }
  .brand-mark { width: 40px; height: 40px; }
  .subbar-name { display: none; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -0.7rem; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 1.5rem; }
  .card { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  /* A phone's row card keeps the country and the actor, small, and says the time is UTC. */
  .table-wrap td.opt { color: var(--muted); font-size: 0.82rem; }
  .table-wrap td.opt .none { display: none; }
  .table-wrap td.actor[data-label]::before { content: attr(data-label) " "; }
  .table-wrap td.when::after { content: " UTC"; color: var(--muted); font-size: 0.8rem; }
  td:last-child { min-width: 0; }
  .chart .zero { display: none; }
  /* Rows become small cards: when, class and score on a line, then path and reasons. */
  .table-wrap { overflow: visible; }
  .table-wrap thead { display: none; }
  .table-wrap tr { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { border: 0; padding: 0; }
  .table-wrap td.num { margin-left: auto; }
  .table-wrap td.num[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-size: 0.8rem; }
  .table-wrap td:last-child { flex-basis: 100%; }
  .table-wrap td.empty { flex-basis: 100%; }
  /* A long name, email or origin wraps inside its card instead of widening the page. */
  .table-wrap td { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .table-wrap td:first-child { white-space: normal; }
  /* A long label ("Zwei-Faktor-Anmeldung einschalten") takes two lines on a narrow phone. */
  .btn { white-space: normal; max-width: 100%; padding-block: 0.35rem; text-align: center; }
}

/* Landing: direct, the product and the code up front; gate blue and night carry the brand. */
main.lp { background: var(--bg); min-height: calc(100vh - 71px); display: flex; flex-direction: column; }
.lp-foot { margin-top: auto; }
.lp-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lp-narrow { max-width: 760px; }

/* Every public page starts with the same header: a kicker (optional), one title size for
   the whole site, a lead, and buttons (optional). Sections below use .lp-kicker, .lp-h2
   and .lp-sub, centered. */
.lp-hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.lp-hero .lp-chip a { color: inherit; }
.lp-hero .post-meta { margin: 1rem 0 0; }
.lp-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-chip { display: inline-block; color: var(--accent); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; }
.lp-hero h1 { max-width: 940px; font-size: clamp(2.3rem, 4.2vw, 3.5rem); line-height: 1.1; padding-bottom: 0.08em; letter-spacing: -0.025em; font-weight: 850; font-stretch: 125%; color: var(--text); margin-bottom: 1.5rem; text-wrap: balance; }
.lp-lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 1.5rem; max-width: 680px; }
.lp-hero .lp-lead:last-child { margin-bottom: 0; }
.lp-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.lp-btn { background: var(--accent); color: var(--accent-ink); padding: 0.8rem 1.4rem; font-size: 1rem; }
.lp-btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); padding: 0.8rem 1.4rem; font-size: 1rem; }
/* .btn:hover tints the background with the accent; a ghost keeps its text colour, so it
   takes the ghost's own hover instead: text on surface-2 keeps its contrast in both themes. */
.lp-btn-ghost:hover, .lp-btn-ghost:focus-visible { background: var(--surface-2); color: var(--text); border-color: var(--text); }
.lp-mono { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin: 1rem 0 0; }

/* The visitor's own verdict (#290): shown by app.js, asked for by the visitor. */
.lp-verdict { border-bottom: 1px solid var(--line); background: var(--surface); padding: 48px 0; }
.lp-verdict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.lp-verdict h2 { margin-top: 0; }
.lp-verdict .lp-mono a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.lp-verdict .lp-mono a:hover { color: var(--text); }
.lp-verdict .lp-mono + .btn { margin-top: 1rem; }
.lp-verdict-out:empty { display: none; }
.lp-verdict-out { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 1.25rem 1.5rem; }
.lp-verdict-class { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin: 0; }
.lp-verdict-class .lp-mono { margin: 0; }
.lp-verdict-out h3 { font-size: 0.95rem; margin: 1.25rem 0 0.5rem; }
.lp-verdict-why { margin: 0; }
.lp-verdict-why dt { margin-top: 0.5rem; }
.lp-verdict-why dd { margin: 0.15rem 0 0; color: var(--muted); }
@media (max-width: 860px) { .lp-verdict-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Live traffic: an ASCII field drawn by field.js; the key is its legend. */
.lp-field { border-bottom: 1px solid var(--line); background: var(--bg); }
.lp-field canvas { display: block; width: 100%; height: 182px; }
.lp-field-key { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; padding-block: 12px 16px; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.lp-field-key b { font-weight: 500; margin-right: 0.35rem; }
.lp-field-key .k-req { color: var(--muted); }
.lp-field-key .k-gate { color: var(--accent); }
.lp-field-key .k-bot { color: var(--c-bot_high); }
.lp-field-key .k-person { color: var(--c-human_high); }

/* The code panel: tabs made of radio buttons, no script. */
.lp-code { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: 8px 8px 0 var(--accent-tint); }
.lp-tabs { position: relative; }
.lp-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.lp-tabs label { display: inline-block; font-family: var(--mono); font-size: 0.8rem; font-weight: 400; color: var(--muted); padding: 0.75rem 1.1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; background: var(--surface-2); }
.lp-tabs input:checked + label { color: var(--text); background: var(--surface); border-bottom-color: transparent; box-shadow: inset 0 2px 0 var(--accent); }
.lp-tabs input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -2px; }
.lp-tabs pre, .lp-resp pre { display: none; background: transparent; border: 0; border-radius: 0; font-size: 0.8rem; line-height: 1.65; padding: 18px 20px; white-space: pre; word-break: normal; color: var(--text); overflow-x: auto; }
.lp-tabs { display: flex; flex-wrap: wrap; }
.lp-tabs label { flex: 1 0 auto; text-align: center; }
.lp-tabs pre { flex-basis: 100%; }
#lang-curl:checked ~ .p-curl, #lang-node:checked ~ .p-node, #lang-python:checked ~ .p-python, #lang-go:checked ~ .p-go,
#lang-java:checked ~ .p-java, #lang-php:checked ~ .p-php, #lang-csharp:checked ~ .p-csharp { display: block; }
.lp-resp { border-top: 1px solid var(--line); }
.lp-resp pre { display: block; padding-top: 0; }
.lp-resp-head { font-family: var(--mono); font-size: 0.8rem; line-height: 1.65; color: var(--muted); margin: 0; padding: 18px 20px 0; }
.lp-code .ok { color: var(--ok); font-weight: 700; }


/* Sections: centred heads, like a table of contents you scroll. */
.lp-sec { padding: 104px 0; }
.lp-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-kicker { color: var(--accent); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; text-align: center; margin-bottom: 0.8rem; }
.lp-h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.12; padding-bottom: 0.08em; letter-spacing: -0.02em; font-weight: 850; font-stretch: 125%; color: var(--text); text-align: center; max-width: 860px; margin: 0 auto 1rem; text-wrap: balance; }
.lp-sub { color: var(--muted); font-size: 1.1rem; text-align: center; max-width: 680px; margin: 0 auto 3rem; text-wrap: balance; }
.lp-h2 + :not(.lp-sub) { margin-top: 3rem; }
.lp-note { color: var(--muted); text-align: center; margin: 2rem auto 0; max-width: 760px; }
.lp h3, .lp .lp-plan-name, .lp .lp-card-title { font-size: 1.15rem; font-weight: 750; font-stretch: 110%; letter-spacing: -0.01em; }

.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; min-width: 0; }
.lp-step p { color: var(--muted); flex: 1; }
.lp-step pre { font-size: 0.78rem; white-space: pre; word-break: normal; background: var(--surface); overflow-x: auto; }
.lp-num { font-size: 2.6rem; line-height: 1; font-weight: 850; font-stretch: 125%; color: var(--accent); margin-bottom: 1rem; }

/* Screenshots */
.lp-shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 10px 10px 0 var(--accent-tint); }
.lp-shot img { display: block; width: 100%; height: auto; }
.lp-frame { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.lp-frame i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.lp-frame span { margin: 0 auto; font-size: 0.75rem; color: var(--muted); padding-right: 40px; }
.lp-shot-main { max-width: 1040px; margin: 0 auto 96px; }
.lp-tour { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: center; }
.lp-tour + .lp-tour { margin-top: 88px; }
.lp-tour-copy h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.lp-tour-copy p { color: var(--muted); font-size: 1.05rem; }

/* Classes: one card per class, its colour on top. */
.lp-classes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.lp-classes div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
.lp-classes p { color: var(--muted); font-size: 0.9rem; margin: 0; flex: 1; }
.lp-classes em { font-style: normal; font-family: var(--mono); font-size: 0.78rem; color: var(--text); border-top: 1px solid var(--line); padding-top: 0.7rem; width: 100%; }

.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* .lp-proof: the landing's measured numbers, as KPI cards, three across, one per row on a phone. */
.lp-proof { margin-top: 3rem; }
.lp-proof .kpis { grid-template-columns: repeat(3, 1fr); margin: 0; }
@media (max-width: 760px) { .lp-proof .kpis { grid-template-columns: 1fr; } }
.lp-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.lp-card svg { width: 38px; height: 38px; padding: 8px; border-radius: var(--radius-sm); color: var(--accent); background: var(--accent-tint); margin-bottom: 1rem; }
.lp-card p { color: var(--muted); margin: 0; }

.lp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.lp-table th, .lp-table td { padding: 18px 24px; border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
.lp-table thead th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.lp-table td { color: var(--muted); }
.lp-table tbody th { color: var(--text); font-weight: 400; text-align: left; min-width: 0; }
.lp-table td:last-child { min-width: 0; }
.lp-table td.us { color: var(--text); font-weight: 600; }
.lp-table td.us::before { content: "✓"; color: var(--ok); margin-right: 0.6rem; }
.lp-table td:not(.us):not(:first-child)::before { content: "×"; color: var(--muted); margin-right: 0.6rem; }
.lp-table th.us { color: var(--accent); }
.lp-table tr:last-child td, .lp-table tr:last-child th { border-bottom: 0; }

.lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 20px; }
.lp-plans.four { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1180px; margin: 0 auto; }
.lp-plans.four .lp-plan { padding: 24px; }
/* The four cards share their rows, so each card's perforation and button line up. */
.lp-plans.four .lp-plan { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; }
.lp-plans.four .lp-plan .lp-price { font-size: 2.3rem; }
/* Plans are tickets: a perforated line parts the price from the terms. */
.lp-plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.lp-plan.feature { background: var(--night); border-color: var(--night); color: var(--on-night); }
.lp-plan.feature > p, .lp-plan.feature .lp-ticks, .lp-plan.feature .lp-per { color: var(--on-night-muted); }
.lp-plan.feature .lp-price, .lp-plan.feature h3, .lp-plan.feature .lp-plan-name { color: var(--on-night); }
.lp-plan.feature .lp-ticks li::before { color: var(--on-night); }
.lp-plan.feature .lp-btn { background: var(--on-night); color: var(--night); }
.lp-plan > p { color: var(--muted); }
.lp-plan .lp-price { color: var(--text); font-size: 2.8rem; font-weight: 850; font-stretch: 125%; letter-spacing: -0.03em; margin: 0.25rem 0 0.5rem; }
.lp-ticks { border-top: 2px dashed color-mix(in srgb, currentColor 30%, transparent); padding-top: 1.25rem !important; }
.lp-plan .btn { width: 100%; }
.lp-ticks { list-style: none; padding: 0; margin: 1rem 0 1.75rem; display: grid; align-content: start; gap: 0.55rem; color: var(--muted); flex: 1; }
/* A term that wraps hangs past its tick. */
.lp-ticks li { position: relative; padding-left: 1.5em; }
.lp-ticks li::before { content: "✓"; color: var(--ok); position: absolute; left: 0; }
.lp-plan-name .tag { margin-left: 0.5rem; font-stretch: 100%; letter-spacing: 0.06em; }
.lp-plan.feature .tag { background: var(--on-night); color: var(--night); }

.lp-per { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.lp-contact .lp-mail { text-align: left; font-size: 1.4rem; font-weight: 700; margin: 0 0 3rem; }

/* The blog: an index of posts, and posts set for reading. */
.lp-blog, .post { padding: 64px 0 104px; }
.blog-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.blog-list li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.blog-list time, .post-meta { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.blog-list h2 { font-size: 1.4rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; margin: 0.4rem 0 0.5rem; }
.blog-list h2 a { color: var(--text); }
.blog-list p { color: var(--muted); margin: 0; }
/* The row above the list: All, then each product's posts; the page's own marked. */
.blog-products ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 2rem; }
.blog-products a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 0.85rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.blog-products a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.blog-products a.current { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }
@media (max-width: 768px) { .blog-products a { min-height: 44px; } }
.blog-empty { color: var(--muted); margin: 0; padding: 28px 0; border-top: 1px solid var(--line); }
.post .lp-kicker { text-align: left; }
.post-meta { margin: 0 0 2.5rem; }
.post-body { font-size: 1.08rem; line-height: 1.7; }
.post-body > * + * { margin-top: 1.1rem; }
.post-body h2 { font-size: 1.5rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; color: var(--text); margin-top: 2.6rem; }
.post-body h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.8rem; }
.post-body ul, .post-body ol { padding-left: 1.3rem; }
.post-body li + li { margin-top: 0.4rem; }
.post-body pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; line-height: 1.6; }
.post-body code { font-size: 0.88em; }
/* Inline code sits on a faint ground; code blocks keep theirs. */
.post-body :not(pre) > code, .docs-body td code, .lp-sec p > code, .lp details code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 3px; padding: 0.05em 0.3em; }
/* A code block with its Copy button in the corner. */
.code-block { position: relative; }
.code-block .code-copy { position: absolute; top: 8px; right: 8px; background: var(--surface); }
.code-block pre { padding-top: 48px; } /* the button sits above the first line, never over it */
/* Long-form pages: the hero sits on the reading column's left edge. */
.lp-hero:has(+ .lp-sec .lp-narrow) .lp-in { max-width: 760px; }
.post-body blockquote { margin-left: 0; padding-left: 1.1rem; border-left: 3px solid var(--accent); color: var(--muted); }
/* A hyphenated word in a heading keeps to one line, so "sign-ups" never breaks into "sign-"
   and "ups"; one wider than the line by itself, as a German or Dutch compound can be on a
   phone, breaks at its hyphens instead of running off the page. */
.nw { display: inline-block; max-width: 100%; text-decoration: inherit; }
.ind-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ind-grid.two { grid-template-columns: repeat(2, 1fr); }
.ind-grid a { display: flex; flex-direction: column; gap: 0.55rem; height: 100%; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.ind-grid a:hover { border-color: var(--accent); text-decoration: none; }
.ind-name { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.ind-grid strong { font-size: 1.2rem; line-height: 1.35; font-weight: 700; letter-spacing: -0.005em; color: var(--text); }
.ind-desc { color: var(--muted); font-size: 0.95rem; flex: 1; }
.ind-more { font-weight: 600; color: var(--accent); font-size: 0.9rem; }
@media (max-width: 640px) { .ind-grid, .ind-grid.two { grid-template-columns: 1fr; } }
.docs { padding: 48px 0 104px; }
.docs-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs-nav { position: sticky; top: 88px; min-width: 0; }
.docs-nav-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem; }
.docs-nav-group { margin-top: 1.5rem; }
.docs-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.docs-nav a { display: block; padding: 6px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 0.95rem; }
.docs-nav a:hover { color: var(--text); }
.docs-nav a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.docs-body { max-width: 760px; min-width: 0; }
.docs-body h1 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; font-weight: 850; font-stretch: 125%; letter-spacing: -0.02em; color: var(--text); margin: 0 0 0.75rem; }
.docs-lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 2rem; }
.docs-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.docs-body th, .docs-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs-body th { color: var(--muted); font-weight: 600; white-space: normal; }
.docs-body td:first-child { white-space: normal; min-width: 8rem; }
.docs-body td:last-child { min-width: 0; }
.doc-steps li { padding-left: 0.25rem; }
.prompt { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.post-body .prompt pre, .prompt pre { border: 0; border-radius: 0; margin: 0; white-space: pre-wrap; word-break: normal; overflow-wrap: break-word; font-size: 0.88rem; }
/* A long prompt folds to six lines; its summary opens the rest. The prompt is copied whole
   either way. */
.prompt.fold { display: flex; flex-direction: column; }
.prompt.fold pre { order: 1; }
.prompt.fold details { order: 2; border-top: 1px solid var(--line); }
.prompt.fold details:not([open]) + pre { max-height: calc(6 * 1.6em + 1.5rem); overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.prompt.fold pre { line-height: 1.6; }
.prompt.fold summary { cursor: pointer; list-style: none; padding: 10px 14px; font-weight: 600; color: var(--accent); font-size: 0.9rem; }
.prompt.fold summary::-webkit-details-marker { display: none; }
.prompt.fold details[open] .more, .prompt.fold details:not([open]) .less { display: none; }
.docs-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.docs-pager a { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-weight: 600; max-width: 48%; }
.docs-pager a:hover { border-color: var(--accent); }
.docs-pager a span { color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.docs-pager .next { text-align: right; margin-left: auto; }
.docs-pager a { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
/* On a phone the two pages stack, each the column's width: a long title ("Weiter",
   "Auftragsverarbeitungsvertrag") never pushes past the edge. */
@media (max-width: 600px) {
  .docs-pager { flex-direction: column; gap: 12px; }
  .docs-pager a { max-width: none; }
  .docs-pager .next { margin-left: 0; }
  .docs-pager > span:empty { display: none; }
}
/* .post-next: the posts a post names to read next, under its body. */
.post-next { margin-top: 3rem; }
.post-next h2 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.75rem; }
.post-next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.post-next a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.post-next a:hover { border-color: var(--accent); text-decoration: none; }
.post-next strong { display: block; font-weight: 650; }
.post-next span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 0.25rem; }
.post-cta { margin-top: 3.5rem; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.post-cta h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 0.5rem; }
.post-cta p { color: var(--muted); margin: 0 0 1.25rem; }
.lp-card-link { margin-top: 1rem !important; }
.lp details { border-bottom: 1px solid var(--line); }
.lp summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; }
.lp summary::-webkit-details-marker { display: none; }
.lp summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.lp details[open] summary::after { content: "–"; }
.lp details p { color: var(--muted); margin: 0 0 22px; }

.lp-final { text-align: center; padding: 104px 0; background: var(--night); color: var(--on-night); }
.lp-final h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; padding-bottom: 0.08em; letter-spacing: -0.025em; font-weight: 850; font-stretch: 125%; color: var(--on-night); }
.lp-final p { color: var(--on-night-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.lp-final .lp-btn { background: var(--on-night); color: var(--night); }
.lp-final .lp-btn-ghost { background: transparent; color: var(--on-night); border-color: color-mix(in srgb, var(--on-night) 40%, transparent); }
.lp-final .lp-btn-ghost:hover, .lp-final .lp-btn-ghost:focus-visible { background: color-mix(in srgb, var(--on-night) 12%, transparent); color: var(--on-night); border-color: var(--on-night); }
.lp-foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.9rem; color: var(--muted); }
.lp-foot-grid { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.lp-foot nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.lp-foot a { color: var(--muted); }
.lp-foot-legal { margin-top: 14px; font-size: 0.85rem; }
.lp-foot-legal nav { gap: 1.1rem; }
.lp-nav { justify-content: center; }

@media (max-width: 1100px) {
  .lp-plans.four { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
}
/* The main menu at the top: Products, Pricing, Docs, Blog, About, Contact. Where the row
   runs short, About and Contact (below 1200px), then the Blog (below 1080px) leave it for
   the menu button, which holds every page; Pricing and Docs stay down to the phone menu. */
@media (max-width: 1199px) {
  .lp-nav .nav-wide { display: none; }
  .topbar .site-menu { display: block; }
}
@media (max-width: 1079px) {
  .lp-nav .nav-mid { display: none; }
}
@media (max-width: 960px) {
  .docs-grid { grid-template-columns: 1fr; gap: 24px; }
  .docs-nav { position: static; }
  .docs-nav-group { margin-top: 1rem; }
  .docs-nav ul { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); }
  .docs-nav a { border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; }
  .docs-nav a.active { border-bottom-color: var(--accent); }
  .lp-hero-grid, .lp-tour { grid-template-columns: 1fr; gap: 32px; }
  .lp-steps, .lp-cards { grid-template-columns: 1fr; }
  .lp-classes { grid-template-columns: 1fr 1fr; }
  .lp-plans { grid-template-columns: 1fr; }
  .lp-nav { display: none; }
  .topbar .site-menu { display: block; }
  .topbar-inner > .brand { margin-right: auto; }
}
@media (max-width: 600px) {
  .lp-in { padding: 0 16px; }
  .lp-hero { padding-top: 48px; }
  .lp-sec, .lp-final { padding: 72px 0; }
  .lp-classes { grid-template-columns: 1fr; }
  .lp-plans.four { grid-template-columns: 1fr; }
  .docs-body table { display: block; overflow-x: auto; }
  .lp-tabs pre, .lp-resp pre, .lp-resp-head { font-size: 0.72rem; overflow-x: auto; }
  .lp-shot-main { margin-bottom: 64px; }
}
.plan .sub { margin-bottom: 1rem; }
.spend { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem; }
.money { display: flex; align-items: center; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.money > span { padding-left: 0.7rem; color: var(--muted); }
.money input[type="text"] { width: 9rem; height: 38px; border: 0; outline: 0; box-shadow: none; background: transparent; padding-left: 6px; }
/* German, French and Italian write the sign after the amount (dollarSign). */
.money.after > span { padding: 0 0.7rem 0 0; }
.money.after input[type="text"] { padding-left: 0.7rem; }
.spend + .hint { margin-top: 0.6rem; }
.plan .table-wrap + .spend { margin-top: 1rem; }
.plan td label.check { display: inline-flex; font-weight: 600; }
.plan h3 { margin-top: 1.75rem; }
.alert a { color: inherit; font-weight: 600; }
.alert form { display: inline; }

/* The protection switch: a square track, like every control here; on is gate blue. */
.protection { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.protection h2 { margin-bottom: 0.25rem; }
.protection .sub { margin: 0; max-width: 680px; }
.protection.off { border-color: color-mix(in srgb, var(--c-bot) 45%, transparent); }
.toggle-switch { position: relative; flex: none; width: 56px; height: 30px; padding: 0; border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent); cursor: pointer; }
.toggle-switch span { position: absolute; top: 3px; left: 29px; width: 22px; height: 22px; border-radius: 2px; background: var(--accent-ink); transition: left 0.15s ease; }
.toggle-switch[aria-checked="false"] { background: var(--surface-2); border-color: var(--line); }
.toggle-switch[aria-checked="false"] span { left: 3px; background: var(--muted); }
.toggle-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .switch span { transition: none; } }

/* Link previews: /og/<name> at 1200×630, saved as web/static/og/<name>.png. */
body.og { margin: 0; background: #0c1230; }
.og-card { position: relative; width: 1200px; height: 630px; box-sizing: border-box; padding: 72px 80px; overflow: hidden; background: #0c1230; color: #e8ebf7; display: flex; flex-direction: column; }
.og-kicker { font-family: var(--mono); font-size: 26px; letter-spacing: 0.08em; text-transform: uppercase; color: #8193ff; margin: 0 0 28px; }
.og-title { font-size: 68px; line-height: 1.04; letter-spacing: -0.02em; font-weight: 850; font-stretch: 125%; color: #fff; margin: 0; max-width: 800px; text-wrap: balance; }
.og-brand { margin: auto 0 0; display: flex; align-items: center; gap: 16px; font-size: 34px; font-weight: 800; font-stretch: 118%; color: #fff; }
.og-mark { width: 60px; height: 60px; background: url("/static/korzen-dark.svg") center / contain no-repeat; }
.og-grid { position: absolute; right: -130px; top: 60px; display: grid; grid-template-columns: repeat(6, 40px); gap: 30px; opacity: 0.5; }
.og-grid i { width: 40px; height: 40px; border-radius: 50%; background: #1f36e0; }
.og-grid i.odd { background: transparent; box-shadow: inset 0 0 0 5px #8193ff; }
.og-title.og-mid { font-size: 58px; }
.og-title.og-long { font-size: 50px; }

/* Korzen: the product next to the brand in the dashboard, the home page's products, and
   the pages of products in the works. */
.prod-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.prod-state { font-family: var(--mono); font-size: 0.72rem; padding: 0.15rem 0.5rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ok) 14%, transparent); color: color-mix(in srgb, var(--ok) 85%, var(--text)); }
.prod-grid .soon .prod-state { background: var(--surface-2); color: var(--muted); }
.prod-grid strong { font-size: 1.5rem; }
.prod-line { font-weight: 600; color: var(--text); }
.soon-box { margin-top: 2.5rem; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.soon-box h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.75rem; }
.soon-box ul { padding-left: 1.2rem; margin: 0 0 1.25rem; }
.soon-box li + li { margin-top: 0.4rem; }
.soon-note { color: var(--muted); margin: 0 0 1.5rem; }
/* The brand's indexes (/pricing, /docs): the live product's card across the row, on night,
   then a card for each product in the works, two across, one per row on a phone. */
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1040px; margin: 0 auto; }
.brand-card { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.brand-card h2 { font-size: 1.5rem; font-weight: 750; font-stretch: 112%; margin: 0.25rem 0 0; }
.brand-card h2 a { color: inherit; }
.brand-card > p { color: var(--muted); margin: 0; }
.brand-card > p.prod-line { color: var(--text); }
.brand-card .lp-card-link { margin-top: auto !important; padding-top: 0.75rem; }
.brand-card.feature { grid-column: 1 / -1; padding: 36px; background: var(--night); border-color: var(--night); color: var(--on-night); }
.brand-card.feature h2, .brand-card.feature > p.prod-line, .brand-card.feature .lp-price { color: var(--on-night); }
.brand-card.feature > p, .brand-card.feature .brand-links span { color: var(--on-night-muted); }
.brand-card.feature .ind-name { color: var(--on-night); }
/* The live state on the night card: the ok tint made for a light surface reads dark on navy. */
.brand-card.feature .prod-state { background: color-mix(in srgb, var(--ok) 28%, transparent); color: color-mix(in srgb, var(--ok) 45%, var(--on-night)); }
.brand-card.feature a:not(.btn) { color: var(--on-night); }
.brand-card.feature .lp-btn { background: var(--on-night); color: var(--night); }
.brand-card.feature .lp-btn-ghost { background: transparent; color: var(--on-night); border-color: var(--on-night-muted); }
.brand-card.feature .lp-btn-ghost:hover, .brand-card.feature .lp-btn-ghost:focus-visible { background: color-mix(in srgb, var(--on-night) 12%, transparent); color: var(--on-night); border-color: var(--on-night); }
.brand-card .lp-price { font-size: 2.3rem; font-weight: 850; font-stretch: 125%; letter-spacing: -0.03em; margin: 0.25rem 0 0; }
.brand-card .lp-cta { justify-content: flex-start; margin-top: 1rem; }
.brand-links { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-top: 2px dashed color-mix(in srgb, currentColor 30%, transparent); padding-top: 1.25rem; }
.brand-links li { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.brand-links a { font-weight: 700; font-size: 1.05rem; }
/* The brand indexes' titles are links, and look it: underlined, thicker on hover. */
.brand-card h2 a, .brand-links a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.brand-card h2 a:hover, .brand-links a:hover { text-decoration-thickness: 2px; }
.brand-links span { font-size: 0.92rem; }
.brand-sub { font-family: var(--mono); font-size: 0.78rem !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: 0.06em; margin: 1rem 0 0; }
.brand-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brand-chips a { display: inline-block; padding: 0.3rem 0.7rem; border: 1px solid var(--on-night-muted); border-radius: var(--radius-sm); font-size: 0.9rem; }
.brand-chips a:hover { text-decoration: none; border-color: var(--on-night); }
/* The docs index's frameworks: each language's name, small, beside its guides; stacked on a phone. */
.brand-stacks { display: grid; gap: 8px; margin: 0.5rem 0 0; }
.brand-stacks > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; align-items: start; }
.brand-stacks dt { font-family: var(--mono); font-size: 0.78rem; color: var(--on-night-muted); padding-top: 0.4rem; }
.brand-stacks dd { margin: 0; }
@media (max-width: 760px) {
  .brand-grid, .brand-links { grid-template-columns: 1fr; }
  .brand-stacks > div { grid-template-columns: 1fr; gap: 4px; }
  .brand-stacks dt { padding-top: 0; }
  .brand-card, .brand-card.feature { padding: 22px; }
}

/* The header's tools: language and theme, one icon each. */
.tools { display: flex; align-items: center; gap: 0.25rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 2px; height: 36px; min-width: 36px; padding: 0 6px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); cursor: pointer; list-style: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.icon-btn svg { width: 20px; height: 20px; }
/* The theme button shows the scheme in use, a sun or a moon; its menu ticks the choice:
   System (nothing saved, the CSS follows prefers-color-scheme), Light or Dark. theme.js
   sets data-theme before the first paint, so neither flashes. */
.theme-menu .moon { display: none; }
:root[data-theme="dark"] .theme-menu .moon { display: block; }
:root[data-theme="dark"] .theme-menu .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-menu .moon { display: block; }
  :root:not([data-theme="light"]) .theme-menu .sun { display: none; }
}
[data-theme-set] svg { visibility: hidden; }
:root:not([data-theme]) [data-theme-set="system"] svg,
:root[data-theme="light"] [data-theme-set="light"] svg,
:root[data-theme="dark"] [data-theme-set="dark"] svg { visibility: visible; }

/* The language menu: a globe that opens a short list. */
.lang-menu { position: relative; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu .caret { width: 10px; height: 10px; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 200px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(12 18 48 / 14%); }
.theme-menu.lang-menu ul { min-width: 160px; }
.lang-menu :is(a, button) { display: flex; align-items: center; gap: 0.5rem; width: 100%; padding: 0.5rem 0.6rem; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; text-align: left; white-space: nowrap; cursor: pointer; }
.lang-menu :is(a, button):hover { background: var(--surface-2); text-decoration: none; }
.lang-menu a svg, [data-theme-set] svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.lang-menu a svg { visibility: hidden; }
.lang-menu a[aria-current] { font-weight: 650; }
.lang-menu a[aria-current] svg { visibility: visible; }

/* About: a story to read, then the principles. */
.about-copy h2 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 2.5rem 0 0.75rem; }
.about-copy h2:first-child { margin-top: 0; }
.about-copy p { font-size: 1.08rem; line-height: 1.7; }
.about-list { padding-left: 1.2rem; font-size: 1.05rem; line-height: 1.65; }
.about-list li + li { margin-top: 0.6rem; }

/* The Products menu: each product with its line and whether it is live. */
.lp-nav { overflow: visible; }
.nav-menu { position: relative; }
.nav-menu summary { display: flex; align-items: center; gap: 4px; list-style: none; cursor: pointer; color: var(--muted); padding: 0.4rem 0.6rem; border-radius: var(--radius-sm); font-weight: 500; font-size: 1.02rem; white-space: nowrap; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover, .nav-menu[open] summary { background: var(--surface-2); color: var(--text); }
.nav-menu .caret { width: 10px; height: 10px; }
.nav-menu ul { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: 340px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(12 18 48 / 14%); }
.nav-menu ul a { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.7rem 0.75rem; border-radius: var(--radius-sm); color: var(--text); white-space: normal; }
.nav-menu ul a:hover { background: var(--surface-2); text-decoration: none; }
.pm-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.pm-line { color: var(--muted); font-size: 0.9rem; }
.prod-state.later { background: var(--surface-2); color: var(--muted); }

/* A product's own menu, under the header: its name, then its pages. Every entry is a
   page; the header above never changes. */
.subbar { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
.subbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 52px; display: flex; align-items: center; gap: 1.5rem; }
.subbar-name { font-weight: 750; font-size: 1.05rem; color: var(--text); white-space: nowrap; padding-right: 1.5rem; border-right: 1px solid var(--line); }
.subbar-name:hover { text-decoration: none; color: var(--accent); }
.subnav { display: flex; gap: 0.25rem; flex: 1; overflow-x: auto; }
.subnav a { color: var(--muted); padding: 0.35rem 0.6rem; border-radius: var(--radius-sm); white-space: nowrap; font-weight: 500; }
.subnav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.subnav a.active { color: var(--accent); background: var(--accent-tint); font-weight: 650; }
.nav-menu summary.active { color: var(--text); }
@media (max-width: 600px) { .subbar-inner { gap: 0.75rem; } .subbar-name { padding-right: 0.75rem; } }

.lp-final-cta { justify-content: center; }

/* The API keys: each with its hint and age, revoked where it is listed. */
.keys { list-style: none; padding: 0; margin: 0.5rem 0 1rem; border-top: 1px solid var(--line); }
.keys li { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.keys code { font-size: 0.9rem; }
.key-date { flex: 1; color: var(--muted); font-size: 0.85rem; }
/* Set-up's domains: each with its badge and, until verified, the TXT record that proves it. */
.domain-row { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.domain-row:last-child { padding-bottom: 0; }
.domain-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
.domain-row .hint { margin: 0.5rem 0 0; }
.domain-head form { margin-left: auto; }
/* Set-up's domain added by hand: a label above an input and its button. */
.add-domain { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.add-domain label { display: block; margin-bottom: 0.4rem; }
.add-domain input { flex: 1; min-width: 0; }
/* Set-up's verified crawlers: a kind, its (i) and its choice on one row, wrapping on a phone. */
.crawler-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.crawler-row label { flex: 1 1 14rem; }
/* An (i) that shows its tip on hover, on focus, and on a tap (app.js sets aria-expanded). */
.info-wrap { position: relative; display: inline-flex; }
/* The round "i" button alone: an .alert.info box is no button. */
button.info { width: 1.4rem; height: 1.4rem; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--muted); font: italic 600 0.8rem/1 var(--sans); cursor: help; }
button.info:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.info-tip { display: none; position: absolute; z-index: 5; top: calc(100% + 0.4rem); left: 50%; transform: translateX(-50%); width: min(20rem, calc(100vw - 2rem)); padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); font-size: 0.85rem; line-height: 1.45; box-shadow: 0 6px 20px rgb(12 18 48 / 0.18); }
.info-wrap:hover .info-tip, button.info:focus + .info-tip, button.info[aria-expanded="true"] + .info-tip { display: block; }
@media (max-width: 640px) { .info-tip { left: auto; right: -0.5rem; transform: none; } }

/* A form or a row of buttons after a card's text keeps its distance. */
.card .sub + form, .card .sub + .actions, .card .sub + .code-row { margin-top: 1rem; }

/* Dashboard header: the product being used, with a menu to the others, and the account. */
.spacer { flex: 1; }
.prod-switch { padding-left: 1.1rem; border-left: 1px solid var(--line); }
.prod-switch summary { color: var(--text); font-weight: 650; }
.prod-switch ul a[aria-current] { background: var(--accent-tint); }
.account-menu { position: relative; }
/* The site's pages on a narrow screen, where the main menu does not fit. */
.site-menu { display: none; }
/* A closed menu takes no room: Chrome lays out a closed <details>'s content, contained,
   and a fixed popup would then reach past the screen's edge. */
details:not([open]) > .menu-pop, .lang-menu:not([open]) > ul { display: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu .caret { width: 10px; height: 10px; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 240px; max-height: calc(100dvh - 80px); overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(12 18 48 / 14%); }
.acct-head { display: grid; gap: 0.1rem; padding: 0.5rem 0.6rem 0.65rem; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.acct-head span { color: var(--muted); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; }
.menu-pop a, .menu-pop button { display: block; width: 100%; padding: 0.5rem 0.6rem; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); text-decoration: none; }
.menu-pop a[aria-current] { font-weight: 650; }

/* A product in the works, seen from the dashboard. */
.soon-panel { display: grid; grid-template-columns: 3fr 2fr; gap: 32px; padding: 32px; }
.soon-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 1.25rem; border-radius: var(--radius); background: var(--accent-tint); color: var(--accent); }
.soon-icon svg { width: 28px; height: 28px; }
.soon-main h2 { font-size: 1.35rem; font-weight: 750; font-stretch: 112%; }
.soon-main .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.soon-plans { padding: 24px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); align-self: start; }
.soon-plans h3 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 1rem; }
.soon-plans ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.85rem; }
.soon-plans li { position: relative; padding-left: 1.4rem; }
.soon-plans li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
@media (max-width: 860px) { .soon-panel { grid-template-columns: 1fr; padding: 20px; } .soon-panel > * { min-width: 0; } }
@media (max-width: 600px) {
  /* The dashboard keeps one row: the tree stands for Korzen, the product menu spans the screen. */
  .topbar-inner:has(.prod-switch) { flex-wrap: nowrap; gap: 0.5rem; }
  .topbar-inner:has(.prod-switch) .brand { flex: none; }
  .topbar-inner:has(.prod-switch) .brand-word { display: none; }
  .prod-switch { padding-left: 0.6rem; }
  .prod-switch ul { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; }
  /* The site keeps one row too: the tree, the tools, Sign in, Start free and the menu, which spans
     the screen when open. */
  .topbar-inner:has(.who) { flex-wrap: nowrap; gap: 0.5rem; }
  .topbar-inner:has(.who) .brand { flex: none; margin-right: auto; }
  .topbar .who { gap: 0.5rem; }
  .site-menu .menu-pop, .topbar .lang-menu ul { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; }
}
/* Below 440px the site's header keeps the tree, Sign in, Start free and the menu: the
   language and theme move into the menu, as in the dashboard. */
@media (max-width: 440px) {
  .topbar-inner:has(.who) .brand-word, .topbar-inner:has(.who) .tools { display: none; }
  .site-menu .menu-tools { display: block; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
}
@media (max-width: 380px) { .topbar-inner:has(.who), .topbar .who { gap: 0.35rem; } }

/* The filters fold behind "Filters (n)" on a phone; on a desktop the summary hides. */
.filter-fold > summary { display: none; }
.filter-fold > summary::-webkit-details-marker { display: none; }
@media (max-width: 600px) {
  .filter-fold > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: -8px 0; cursor: pointer; font-weight: 650; list-style: none; }
  .filter-fold > summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; font-weight: 400; }
  .filter-fold[open] > summary { margin-bottom: 12px; }
  .filter-fold[open] > summary::after { content: "–"; }
}
/* What the reasons on the page mean, under the table. */
.meanings { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 0.75rem; font-size: 0.9rem; }
.meanings summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 32px; }
.meanings dl { margin: 0.5rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; }
.meanings dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .meanings dl { grid-template-columns: 1fr; gap: 0.1rem; } .meanings dd { margin-bottom: 0.5rem; } }
/* Even columns, as many as fit: a field keeps one column's width on any row, Clear sits in
   the next cell at the fields' foot, and a phone stacks them. */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); align-items: end; gap: 0.75rem 1rem; }
.filters label { min-width: 0; }
.filters :is(select, input) { width: 100%; }
.filter-actions { display: flex; gap: 0.5rem; }
/* Clear keeps its room when hidden, so the row never moves. */
.filter-actions .off { visibility: hidden; }
.matched { margin: 0 0 0.5rem; }
a.badge:hover, a.reason:hover, .cell-filter:hover { text-decoration: none; filter: brightness(0.95); }
.cell-filter { color: inherit; }
.cell-filter:hover code, .cell-filter:hover { color: var(--accent); }

/* A touch screen of any width taps the header's icons with a finger: 44px. */
@media (pointer: coarse) { .icon-btn { height: 44px; min-width: 44px; } }
/* Touch: a phone never zooms into a field (iOS does below 16px), and what a finger taps is
   44px at least. */
@media (max-width: 767px) {
  :is(input, textarea, select) { font-size: 16px !important; }
  .icon-btn { height: 44px; min-width: 44px; }
  .subnav a, .nav a, .nav-menu summary, .pill { min-height: 44px; display: inline-flex; align-items: center; }
  .lp-foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .lp-foot nav { gap: 0 1.25rem; }
  label.check { min-height: 44px; }
  .menu-pop a, .menu-pop button { min-height: 44px; display: flex; align-items: center; }
  .lang-menu :is(a, button) { min-height: 44px; }
  /* The mode table's actions: as wide as the row, and tall enough for a thumb. */
  #mode td select { width: 100%; height: 44px; }
  #mode .table-wrap td[data-label="action"] { flex: 1 1 60%; }
}
/* A plan's whole row picks it: the label's shadow covers the row. */
.plan tbody tr { position: relative; }
.plan tbody td label.check::after { content: ""; position: absolute; inset: 0; }
.plan tbody td label.check input { position: relative; z-index: 1; } /* above the shadow: its own click lands */
.plan tbody tr:hover { background: var(--surface-2); }
.plan tbody tr:has(input:checked) { background: var(--accent-tint); }

/* Two-factor set-up: the QR code beside the key, the code field sized for six digits. */
.totp-setup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; margin: 1rem 0; }
.totp-setup .sub { margin-bottom: 0; }
.qr-box { width: 184px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qr { display: block; width: 100%; height: auto; }
input.otp { width: 160px; font-family: var(--mono); letter-spacing: 0.15em; }
.form-actions { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 600px) { .totp-setup { grid-template-columns: 1fr; } .qr-box { width: 200px; } }
/* A button that reads as a link inside a sentence. */
.btn.link.inline { display: inline; font-size: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; vertical-align: baseline; }
.btn.link.inline:hover { color: var(--accent); background: none; }

/* Below 400px the dashboard header keeps the tree, the product and the account: the
   language and theme move into the account menu. */
.menu-tools { display: none; }
@media (max-width: 400px) {
  .topbar-inner:has(.prod-switch) .tools { display: none; }
  .menu-tools { display: block; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
  .prod-switch { min-width: 0; }
  .prod-switch summary { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* The comparison on a phone: each row a card, each answer under its column's name. */
@media (max-width: 600px) {
  .lp-table-wrap { overflow: visible; border: 0; background: none; }
  .lp-table, .lp-table tbody { display: block; }
  .lp-table thead { display: none; }
  .lp-table tr { display: block; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .lp-table tbody th { display: block; padding: 14px 16px 8px; font-weight: 650; border: 0; }
  .lp-table td { display: grid; grid-template-columns: 1.2em 7.5rem 1fr; gap: 0 0.5rem; padding: 8px 16px; border-bottom: 0; border-top: 1px solid var(--line); }
  .lp-table td::before { margin: 0 !important; }
  .lp-table td::after { content: attr(data-label); grid-column: 2; grid-row: 1; color: var(--muted); font-weight: 600; font-size: 0.85rem; }
  .lp-table td { grid-auto-flow: dense; }
}
/* A docs page's languages as tabs: the tab names the language, so its heading goes. */
.code-tab-list { margin: 2rem 0 0.5rem; }
.code-tab-list .pill { cursor: pointer; font: inherit; font-size: 0.9rem; }
.tab-panel > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* The one destructive action: a red button, in a card of its own at the page's end. */
.btn.danger { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.btn.danger:hover { filter: brightness(0.95); }
/* A comparison on a phone: each row a card, its question on top, each answer under its name. */
@media (max-width: 600px) {
  .post-body table.vs, .post-body table.vs tbody, .post-body table.vs tr { display: block; }
  .post-body table.vs thead { display: none; }
  .post-body table.vs tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .post-body table.vs th[scope="row"] { display: block; padding: 12px 14px 4px; border: 0; }
  .post-body table.vs td { display: block; padding: 6px 14px 12px; border: 0; border-top: 1px solid var(--line); }
  .post-body table.vs td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.8rem; font-weight: 650; margin-bottom: 2px; }
}

/* The mode card's actions, locked in monitor mode: there, but grey until block mode. */
.mode-actions { border: 0; padding: 0; margin: 0; min-width: 0; }
.mode-actions legend { padding: 0; margin-bottom: 0.25rem; }
.mode-actions:disabled { opacity: 0.55; }
.mode-actions:disabled select { cursor: not-allowed; }

/* The language button names the language it shows (EN, PT, ES) beside the globe. */
.lang-short { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.02em; }
.lang-menu summary.icon-btn { gap: 4px; padding: 0 8px; }
/* The theme's choices in a phone's menu, under the languages, with their own label. */
.menu-theme { margin: 4px 0 0; padding: 4px 0 0; list-style: none; border-top: 1px solid var(--line); }
.menu-theme .menu-label { padding: 0.35rem 0.6rem 0.15rem; color: var(--muted); font-size: 0.8rem; font-weight: 650; }
.menu-pop [data-theme-set] { display: flex; align-items: center; gap: 0.5rem; }

/* The usage page's plans: one card each, chosen by clicking anywhere on it. */
.plan-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 1rem 0; }
@media (max-width: 1000px) { .plan-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .plan-pick { grid-template-columns: 1fr; } }
.plan-opt { display: flex; flex-direction: column; gap: 0.5rem; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.plan-opt:hover { border-color: var(--accent); }
.plan-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan-opt-head { display: flex; align-items: center; gap: 0.5rem; }
.plan-opt-head input { margin: 0; accent-color: var(--accent); }
.plan-opt-price { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.plan-opt dl { margin: 0; display: grid; gap: 0.3rem; font-size: 0.85rem; }
.plan-opt dl div { display: flex; justify-content: space-between; gap: 0.5rem; border-top: 1px solid var(--line); padding-top: 0.3rem; }
.plan-opt dt { color: var(--muted); }
.plan-opt dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Allowed origins: one field per origin, each with its Remove. */

/* Text only a screen reader reads. */
/* A table is never .sr itself: table layout ignores width: 1px; wrap it in a div.sr. */
.sr { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Compare at a glance: Bot Protection's column first and tinted; the first column stays put
   while the others scroll sideways on a phone. */
.vs-wrap { position: relative; overflow-x: auto; max-width: calc(100vw - 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vs-sum { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.vs-sum th, .vs-sum td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.vs-sum tbody th { text-align: left; white-space: normal; min-width: 14rem; font-weight: 600; position: sticky; left: 0; background: var(--surface); text-transform: none; letter-spacing: normal; font-size: 0.9rem; color: var(--text); }
@media (max-width: 600px) { .vs-sum tbody th { min-width: 9.5rem; } }
.vs-sum thead th { font-size: 0.85rem; color: var(--muted); }
.vs-sum thead th a { color: inherit; }
.vs-sum .us, .vs-sum td:nth-child(2) { background: var(--accent-tint); color: var(--text); font-weight: 650; }
.vs-sum tr:last-child th, .vs-sum tr:last-child td { border-bottom: 0; }
.vs-sum td:not(.mk) { font-size: 0.82rem; white-space: normal; min-width: 7rem; max-width: 9rem; }
.mk { font-size: 1.05rem; font-weight: 700; }
.mk.yes { color: var(--ok); }
.mk.part, .mk.paid { color: var(--c-bot); }
.mk.no { color: var(--danger); }
.mk.unk { color: var(--muted); }
.vs-sum td:last-child { min-width: 7rem; }

/* Rules: each rule a line, its checkbox, name and weight, its description under them. */
.thresholds { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.thresholds label { display: grid; gap: 0.35rem; align-content: start; }
.thresholds input { width: 100%; }
.rule-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.rule-group legend { font-weight: 600; padding: 0; margin-bottom: 0.35rem; }
.rule-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rule-list li { border-bottom: 1px solid var(--line); }
.rule-list label, .rule-line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.2rem 0.75rem; padding: 0.6rem 0; }
.rule-list label { cursor: pointer; }
.rule-line { grid-template-columns: 1fr auto; }
.rule-list code { font-size: 0.88rem; overflow-wrap: anywhere; }
.rule-list .w { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; min-width: 2.5ch; }
.rule-list .desc { grid-column: 2 / -1; color: var(--muted); font-size: 0.82rem; }
.rule-line .desc { grid-column: 1 / -1; }
.rule-list li.off code, .rule-list li.off .w { color: var(--muted); text-decoration: line-through; }
.rule-list li.sum { color: var(--muted); font-size: 0.9rem; }
.rule-list li.total { color: var(--text); border-bottom: 0; }
.decision-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem 1.25rem; margin: 0; }
.decision-head dt { color: var(--muted); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }
.decision-head dd { margin: 0.2rem 0 0; min-width: 0; overflow-wrap: anywhere; }
.decision-head .kpi-value { font-size: 1.5rem; }
tr[aria-current] { background: var(--accent-tint); }
/* Five pages in the bar: on a phone they fit without scrolling. */
@media (max-width: 600px) { .subnav { gap: 0; } .subnav a { padding: 0.35rem 0.45rem; } }

/* Recovery codes: two columns of codes, copied whole; the sign-in folds them away. */
.recovery-codes { margin: 0; white-space: pre; columns: 2; column-gap: 2rem; word-break: normal; }
.recovery-fold summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.9rem; min-height: 32px; }

/* Team (#28): each person's role saves on its own; the invite form sits on one line. */
.role-form { display: flex; align-items: center; gap: 0.5rem; }
.invite-form { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem; margin-top: 0.75rem; }
.invite-form label:first-of-type { flex: 1 1 16rem; }
.invite-form + .field-error { margin-top: 0.5rem; }
#invites h3 { margin-top: 1.5rem; }
.keys li form { margin-left: auto; }
@media (max-width: 600px) {
  #invites .keys li { flex-wrap: wrap; row-gap: 0.25rem; }
  #invites .keys li > span:first-child { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
  #invites .keys .key-date { order: 3; flex-basis: 100%; }
}
/* The overview's attacks (#810): one card a burst of bot decisions, its facts in a grid. */
.attacks { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.attack { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.75rem 1rem; min-width: 0; }
.attack-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 0.5rem; }
.attack-head h3 { margin: 0; font-size: 1rem; min-width: 0; overflow-wrap: anywhere; }
.attack-head code { font-size: 0.85rem; font-weight: 400; }
.attack-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.5rem 1rem; margin: 0.6rem 0 0; }
.attack-facts dt { color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.attack-facts dd { margin: 0.15rem 0 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.attack-facts .fact { display: inline-block; margin-right: 0.6rem; }
/* The bot scores (#813): the histogram in the class colours, the categories' shares in a neutral. */
.histo { margin: 0; }
.histogram { width: 100%; height: auto; display: block; margin-top: 0.5rem; }
.histogram .grid { stroke: var(--line); stroke-width: 1; }
.histogram .axis { fill: var(--muted); font-size: 11px; }
.histo figcaption { text-align: center; }
.share .part { fill: var(--line-strong); }
.parts caption { text-align: left; margin-bottom: 0.4rem; }
/* The map of bots by country (#815): five steps of the bot colour on the ground of no data. */
.m1 { --m: color-mix(in srgb, var(--c-bot) 22%, var(--surface-2)); }
.m2 { --m: color-mix(in srgb, var(--c-bot) 40%, var(--surface-2)); }
.m3 { --m: color-mix(in srgb, var(--c-bot) 60%, var(--surface-2)); }
.m4 { --m: color-mix(in srgb, var(--c-bot) 80%, var(--surface-2)); }
.m5 { --m: var(--c-bot); }
.map-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 1rem 1.5rem; align-items: start; margin-top: 0.5rem; }
.map { width: 100%; height: auto; display: block; }
.map path, .map circle { fill: var(--m, var(--surface-2)); stroke: var(--line); stroke-width: 0.8; fill-rule: evenodd; }
.map-list { margin: 0.4rem 0 0.9rem; padding-left: 1.4rem; font-variant-numeric: tabular-nums; }
.map-list li { padding: 0.15rem 0; }
.map-list strong { float: right; }
.map-legend { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 0.8rem; }
.map-legend i { display: inline-block; width: 18px; height: 10px; border-radius: 1px; background: var(--m); }
@media (max-width: 760px) { .map-wrap { grid-template-columns: 1fr; } }
