/* Lyntway console.
 *
 * Light and paper-like, because the people this has to convince are not
 * all engineers. An auditor, a risk officer or an insurer following a
 * verify link should land on something that reads like a document, not
 * like a terminal they were not meant to see.
 *
 * Three typefaces, each doing a job rather than decorating:
 *
 *   serif  headings — receipts and ledgers are set in serif, and it puts
 *          the page closer to a bank statement than to a dashboard
 *   sans   prose and controls
 *   mono   every cryptographic value, without exception. Monospace here
 *          means "these are the exact bytes", so it is never used for
 *          emphasis — that would dilute the one signal it carries.
 *
 * No webfont is loaded. The Content-Security-Policy forbids third-party
 * origins, and it would be incoherent to fetch a font from a CDN on a page
 * whose argument is that you do not have to trust anyone to check a
 * receipt. Everything below resolves from fonts already on the machine.
 *
 * Light only, deliberately. The page commits to one look rather than
 * inverting into a second palette that would get half the care, so every
 * colour is painted explicitly and nothing is inherited from the host.
 */

:root {
  /* Neutrals carry a faint warm cast so the ground reads as paper rather
     than as an unpainted default. */
  --paper: #fcfcfb;
  --surface: #ffffff;
  --sunk: #f7f7f5;
  --line: #e6e6e2;
  --line-strong: #d4d4cf;

  --ink: #14161a;
  --muted: #5a616d;
  --faint: #888f9b;

  /* Ink indigo: the colour of a fountain pen, and chosen partly for what
     it is not — the semantic colours below have to stay unambiguous, so
     the accent cannot be green, amber or red. */
  --accent: #2f3b8f;
  --accent-soft: #eef0f9;
  --accent-line: #c8cee8;

  /* State, kept separate from the accent. These mean something. */
  --ok: #176b45;
  --ok-soft: #ecf6f0;
  --ok-line: #b9dcc9;
  --warn: #8a5a0b;
  --warn-soft: #fbf4e6;
  --warn-line: #e6d3a8;
  --bad: #9e2b25;
  --bad-soft: #fbefee;
  --bad-line: #ecc4c1;

  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Georgia, ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 8px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 4px 14px rgba(20, 22, 26, .04);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- Chrome --------------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(252, 252, 251, .88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: 58px; display: flex; align-items: center; gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  letter-spacing: -.015em; color: var(--ink); margin: 0;
}
.brand:hover { text-decoration: none; }
.brand .seal {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2.5px solid var(--accent);
  position: relative; flex: none;
}
.brand .seal::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--accent);
}

nav { display: flex; gap: 4px; margin-left: auto; }
nav a {
  color: var(--muted); font-size: 14.5px; padding: 6px 12px;
  border-radius: 6px;
}
nav a:hover { background: var(--sunk); color: var(--ink); text-decoration: none; }
nav a.on { color: var(--ink); font-weight: 550; background: var(--sunk); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px 96px; }

/* --- Page openings --------------------------------------------------- */

.hero { padding: 52px 0 34px; max-width: 40rem; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
h1 {
  font-family: var(--serif); font-weight: 600; font-size: 40px;
  line-height: 1.14; letter-spacing: -.022em; margin: 0 0 14px;
  text-wrap: balance;
}
.lede { color: var(--muted); font-size: 17px; margin: 0; max-width: 34rem; }
.lede strong { color: var(--ink); font-weight: 550; }

h2 {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  letter-spacing: -.015em; margin: 0 0 6px;
}

/* --- Cards and fields ------------------------------------------------ */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
/* Utility classes rather than style attributes. The console's CSP sets
   style-src 'self', which blocks inline style="" — and relaxing it to buy
   three margin declarations would be a poor trade on a page whose whole
   argument is that you need not trust what it serves you. */
.flush { margin: 0; }
.push  { margin-left: auto; }
.tight { min-height: 0; }

.card-head h2 { margin: 0; }
.card-head {
  padding: 15px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.card-body { padding: 20px; }

.label {
  display: block; font-size: 12.5px; font-weight: 600;
  letter-spacing: .02em; color: var(--muted); margin: 0 0 8px;
}
.label-mono {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--faint);
}

textarea, input[type=password], input[type=text] {
  width: 100%; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 12px 13px; font-family: var(--mono); font-size: 13px;
  line-height: 1.65; resize: vertical;
}
textarea::placeholder, input::placeholder { color: var(--faint); }
textarea:focus, input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 170px; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-gap { margin-top: 18px; }

button {
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  border-radius: 6px; padding: 9px 18px; font-family: var(--sans);
  font-size: 14.5px; font-weight: 560; cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
button:hover:not(:disabled) { background: #26307a; border-color: #26307a; }
button:disabled { opacity: .45; cursor: default; }
button.ghost {
  background: var(--surface); color: var(--muted); border-color: var(--line-strong);
}
button.ghost:hover:not(:disabled) {
  background: var(--sunk); color: var(--ink); border-color: var(--line-strong);
}
button.small { padding: 6px 12px; font-size: 13px; }

.hint { color: var(--faint); font-size: 13.5px; }
.note { color: var(--faint); font-size: 13px; margin: 9px 0 0; }
code {
  font-family: var(--mono); font-size: .88em; background: var(--sunk);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px;
}

/* Optional configuration folded away, so the default path is one field
   and one button. A key is the exception, not the entry requirement. */
details.advanced { margin-top: 16px; }
details.advanced summary {
  cursor: pointer; font-size: 13.5px; color: var(--muted);
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
}
details.advanced summary::-webkit-details-marker { display: none; }
details.advanced summary::before {
  content: "›"; display: inline-block; transition: transform .15s ease;
  font-size: 15px; color: var(--faint);
}
details.advanced[open] summary::before { transform: rotate(90deg); }
details.advanced summary:hover { color: var(--ink); }
.advanced-body {
  margin-top: 14px; padding: 16px; background: var(--sunk);
  border: 1px solid var(--line); border-radius: 6px;
}

/* --- Verdict --------------------------------------------------------- */

.verdict {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; background: var(--surface); margin-bottom: 20px;
}
.verdict .mark {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 1px;
  font-size: 13px; font-weight: 700; color: #fff;
}
.verdict h2 {
  font-family: var(--sans); font-size: 15.5px; font-weight: 640;
  letter-spacing: -.005em; margin: 0 0 3px;
}
.verdict p { margin: 0; color: var(--muted); font-size: 14px; }
.verdict.ok   { background: var(--ok-soft);   border-color: var(--ok-line); }
.verdict.ok   .mark { background: var(--ok); }
.verdict.ok   h2 { color: var(--ok); }
.verdict.warn { background: var(--warn-soft); border-color: var(--warn-line); }
.verdict.warn .mark { background: var(--warn); }
.verdict.warn h2 { color: var(--warn); }
.verdict.bad  { background: var(--bad-soft);  border-color: var(--bad-line); }
.verdict.bad  .mark { background: var(--bad); }
.verdict.bad  h2 { color: var(--bad); }

/* --- Before and after ------------------------------------------------ */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.pane { display: flex; flex-direction: column; }
.pane-head {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px;
}
pre.out {
  flex: 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 14px; margin: 0; min-height: 170px;
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word; overflow-x: auto;
}
pre.out.sunk { background: var(--sunk); color: var(--muted); }
mark {
  background: var(--accent-soft); color: var(--accent);
  border-bottom: 1.5px solid var(--accent-line);
  border-radius: 2px; padding: 1px 3px; font-weight: 500;
}
.nothing { color: var(--faint); font-style: italic; }

/* --- Fact tables ----------------------------------------------------- */

.facts {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.fact {
  display: grid; grid-template-columns: 190px 1fr; gap: 18px;
  padding: 12px 18px; border-bottom: 1px solid var(--line); margin: 0;
}
.fact:last-child { border-bottom: 0; }
.fact dt {
  font-size: 13px; font-weight: 550; color: var(--muted); margin: 0;
}
.fact dd {
  margin: 0; font-family: var(--mono); font-size: 12.5px;
  word-break: break-all; font-variant-numeric: tabular-nums;
}
.fact dd .aside { font-family: var(--sans); color: var(--faint); font-size: 12.5px; }
@media (max-width: 640px) { .fact { grid-template-columns: 1fr; gap: 5px; } }

.pill {
  display: inline-block; font-family: var(--sans); font-size: 11.5px;
  font-weight: 600; letter-spacing: .01em; padding: 2px 8px;
  border-radius: 20px; border: 1px solid var(--line-strong);
  color: var(--muted); background: var(--sunk); vertical-align: 1px;
}
.pill.ok   { color: var(--ok);   background: var(--ok-soft);   border-color: var(--ok-line); }
.pill.warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
.pill.bad  { color: var(--bad);  background: var(--bad-soft);  border-color: var(--bad-line); }

.warnings { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.warning {
  display: flex; gap: 10px; padding: 11px 14px; font-size: 13.5px;
  background: var(--warn-soft); border: 1px solid var(--warn-line);
  border-radius: 6px; color: #6d4708;
}
.warning::before {
  content: "!"; font-family: var(--mono); font-weight: 700;
  color: var(--warn); flex: none;
}

/* --- Closing note ---------------------------------------------------- */

.foot {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 13.5px; display: flex; gap: 20px;
  flex-wrap: wrap; align-items: baseline;
}
.foot a { color: var(--muted); }

.section { margin-top: 44px; }
.section-head { margin-bottom: 16px; }
.section-head p { color: var(--muted); margin: 0; font-size: 14.5px; max-width: 40rem; }

.spinner {
  display: inline-block; width: 13px; height: 13px; vertical-align: -2px;
  border: 2px solid var(--accent-line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- Activity ----------------------------------------------------------

   The picture of where a customer's data goes.

   Bars are drawn with block characters rather than sized elements, because
   the Content-Security-Policy forbids inline style attributes and a bar
   whose width has to be computed would need one. Setting a width through
   the CSSOM would work today and would break silently the day the policy
   tightens, whereas a bar made of text cannot break at all — and on a page
   whose argument is a printed record, a bar you could read aloud is the
   more honest one anyway. */

/* Consecutive cards have no margin of their own — they sit inside a
   .section that spaces them — so a run of them needs a container that
   does the spacing instead of margins bolted onto the card. */
.stack { display: flex; flex-direction: column; gap: 18px; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--surface); padding: 18px 20px; }
.stat-n {
  font-family: var(--serif); font-size: 30px; letter-spacing: -.02em;
  color: var(--ink); line-height: 1.1;
}
.stat-n .of { color: var(--faint); font-size: 17px; }
.stat-k {
  font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--faint); margin-top: 7px;
}
.stat-note { color: var(--muted); font-size: 12.5px; margin-top: 6px; line-height: 1.45; }

.lane {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.lane:last-child { border-bottom: 0; }
.lane-to { font-family: var(--mono); font-size: 13.5px; color: var(--ink); word-break: break-all; }
.lane-n { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.lane-bar {
  grid-column: 1 / -1; font-family: var(--mono); font-size: 11px;
  color: var(--accent-line); letter-spacing: -.5px; line-height: 1;
}
.lane-from {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap;
  gap: 6px; margin-top: 3px;
}

.tag {
  font-family: var(--mono); font-size: 11.5px; padding: 2px 7px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted); background: var(--sunk); white-space: nowrap;
}
.tag.act { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.tag.warn{ border-color: var(--warn-line);  background: var(--warn-soft);  color: var(--warn); }
/* Traffic we were told about rather than saw. Drawn as an outline so the
   difference is visible at a glance without needing the label read — the
   claim is weaker, and it should look weaker. */
.tag.faded { background: transparent; border-style: dashed; }
.tag.ok  { border-color: var(--ok-line);   background: var(--ok-soft);   color: var(--ok); }
.tag.bad { border-color: var(--bad-line);  background: var(--bad-soft);  color: var(--bad); }

/* The gap that cannot be counted. Set as prose rather than as a figure,
   because rendering it as a number would invent the very quantity this
   exists to admit is unknown. */
.unknown {
  margin: 0; color: var(--ink); font-size: 15px; line-height: 1.55;
  font-family: var(--serif); max-width: 44rem;
}
.steps { margin: 16px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.steps li { margin-bottom: 6px; line-height: 1.5; }
.steps li:last-child { margin-bottom: 0; }

/* ===========================================================================
   The application shell.

   Everything above this line dresses a document — a receipt, a verification,
   a log. Everything below dresses a place someone works in, which is a
   different job: it has to stay legible when a page is dense, keep the same
   frame while the content changes, and never make a person wonder where they
   are.

   The palette does not change. A dashboard that looked like a different
   product from the verify page would undo the one thing that page is for,
   which is being recognisably the same evidence a customer was shown.
   =========================================================================== */

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }

.side {
  border-right: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; padding: 20px 0;
  position: sticky; top: 0; height: 100vh;
}
.side .brand { padding: 0 20px 22px; }

.side nav { display: flex; flex-direction: column; gap: 1px; padding: 0 12px; margin: 0; }
.side nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 6px; font-size: 14px;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.side nav a:hover { background: var(--sunk); color: var(--ink); text-decoration: none; }
.side nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 550; }

/* A dot rather than an icon set. Icons would need a library or inline SVG
   for every item, and a coloured dot carries the one thing a sidebar icon
   usually carries here: which section you are in. */
.side nav a .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); flex: none;
}
.side nav a.on .dot { background: var(--accent); }

.side-foot {
  margin-top: auto; padding: 16px 20px 0; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--faint); line-height: 1.5;
}
.side-foot strong { display: block; color: var(--ink); font-weight: 550; font-size: 13px; }

.main { min-width: 0; padding: 0 32px 80px; }
.main-head {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 34px 0 22px; flex-wrap: wrap;
}
.main-head h1 { font-size: 27px; margin: 0 0 6px; }
.main-head p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 46rem; }

/* --- Tables ---------------------------------------------------------------
   Wide content scrolls inside its own container so the page body never
   scrolls sideways. */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left; font-weight: 550; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--faint); padding: 0 14px 10px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
table.data td {
  padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top;
  color: var(--ink);
}
table.data tr:last-child td { border-bottom: 0; }
table.data td.mono, table.data td .mono { font-family: var(--mono); font-size: 12.5px; }
table.data td.num { text-align: right; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
table.data tbody tr:hover td { background: var(--sunk); }

/* --- Empty states ---------------------------------------------------------
   A blank panel reads as broken. Every one of these says what would put
   something here, because a new account sees them all at once and that is
   the moment they decide whether the product works. */
.empty { padding: 40px 24px; text-align: center; }
.empty h3 { font-family: var(--serif); font-size: 17px; margin: 0 0 8px; color: var(--ink); }
.empty p { margin: 0 auto; color: var(--muted); font-size: 14px; max-width: 32rem; line-height: 1.55; }
.empty .row { justify-content: center; margin-top: 18px; }

/* --- Auth pages ----------------------------------------------------------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand { justify-content: center; margin-bottom: 26px; }
.auth-card h1 { font-size: 25px; margin: 0 0 8px; text-align: center; }
.auth-card .lede { text-align: center; margin: 0 auto 24px; font-size: 14.5px; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 550; color: var(--muted); margin-bottom: 6px;
}
.field input { width: 100%; }
.field .help { font-size: 12px; color: var(--faint); margin-top: 6px; }
button.wide { width: 100%; justify-content: center; padding: 10px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.divider {
  display: flex; align-items: center; gap: 12px; margin: 22px 0;
  color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* --- Landing -------------------------------------------------------------- */
.lander { max-width: 1080px; margin: 0 auto; padding: 0 24px 100px; }
.lead { padding: 84px 0 56px; max-width: 46rem; }
.lead h1 {
  font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 20px;
}
.lead .sub { font-size: 19px; color: var(--muted); line-height: 1.5; margin: 0 0 30px; max-width: 38rem; }
.lead .sub strong { color: var(--ink); font-weight: 550; }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature h3 { font-family: var(--serif); font-size: 17px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.band { border-top: 1px solid var(--line); margin-top: 72px; padding-top: 56px; }
.band h2 { font-size: 25px; margin: 0 0 12px; }
.band > p { color: var(--muted); font-size: 15.5px; max-width: 40rem; margin: 0 0 28px; line-height: 1.55; }

pre.snippet {
  background: var(--ink); color: #e8e9ed; border-radius: var(--radius);
  padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px;
  line-height: 1.65; margin: 0;
}
pre.snippet .c { color: #8b93a7; }
pre.snippet .k { color: #a5b4fc; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: static; height: auto; flex-direction: row; align-items: center;
    padding: 12px 16px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line);
  }
  .side .brand { padding: 0 16px 0 0; }
  .side nav { flex-direction: row; padding: 0; }
  .side-foot { display: none; }
  .main { padding: 0 20px 64px; }
}

/* Selects, styled to match the inputs beside them. Left to the browser they
   render at a different height and weight, which makes a row of controls
   look assembled rather than designed. */
select {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 8px 30px 8px 11px; appearance: none; cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
table.data select { padding: 4px 26px 4px 8px; font-size: 13px; }

/* Textareas in forms sit at a comfortable height for a list of terms
   rather than the tall editor the playground wants. */
.field textarea {
  width: 100%; min-height: 90px; font-size: 14px; line-height: 1.5;
  font-family: var(--mono);
}

/* Findings, split by what produced them.
 *
 * The two tiers are deliberately distinguishable at a glance and neither
 * is styled as an alarm: a model finding is not worse than a rule finding,
 * it is a different kind of claim, and colouring it red would tell the
 * reader the wrong thing. */
.finds { display: flex; flex-direction: column; gap: 10px; }
.find { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tiers { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.tier {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
  cursor: help;
}
.tier.rules   { background: var(--ok-soft);   border-color: var(--ok-line);   color: var(--ok); }
.tier.model   { background: var(--paper);     border-color: var(--line);      color: var(--faint); }
.tier.unknown { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }

.find .mono { font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* Detection health: one line per component, its state and what that costs. */
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.lane-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lane-row .note { flex: 1 1 320px; margin: 0; }

/* Per-provider connect snippets. */
.snip { margin-top: 14px; }
.snip-head {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex; gap: 8px; align-items: baseline;
}

/* A standing warning, not an alert. The situation is stable and wrong,
 * which is a different thing from something having just failed. */
.warn-card {
  border-color: var(--warn-line);
  background: var(--warn-soft);
}
.warn-card h3 { margin: 0 0 6px; color: var(--warn); font-size: 15px; }

/* Legal pages. Read end to end rather than scanned, so the measure is
 * narrower and the rhythm slower than the console's. */
.legal { max-width: 720px; padding: 56px 0 96px; }
.legal h1 { margin-bottom: 8px; }
.legal .lede { font-size: 18px; color: var(--faint); margin: 0 0 28px; max-width: 60ch; }
.legal h2 {
  font-size: 19px;
  margin: 40px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 20px; }
.legal li { margin: 8px 0; }
.legal address { font-style: normal; margin: 12px 0 20px; line-height: 1.7; }
.legal table.data { margin: 18px 0; }
.legal .card { margin: 0 0 32px; }

/* Consent line under the signup button, and the legal links in the console
 * sidebar. Classes rather than inline styles: the CSP drops those silently,
 * which is the worst way for a layout to fail. */
.legal-consent { margin-top: 12px; }
.side-legal { margin-top: 10px; }

/* Recovery codes at signup. Deliberately prominent: this is the only
 * moment they exist, and an account that loses them cannot be recovered
 * by us or by anyone who talks to us. */
.recovery-card { margin: 20px 0 0; border-color: var(--warn-line); background: var(--warn-soft); }
.recovery-card h3 { margin: 0 0 8px; font-size: 15px; color: var(--warn); }
.snippet.codes { line-height: 1.9; letter-spacing: 0.04em; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink); }

/* A whole card folded away.
 *
 * Distinct from details.advanced above, which hides a field or two inside
 * a form. This hides a section that would otherwise be as long as the
 * answer it sits behind — on a page whose whole design is "one question,
 * one path", a fallback section rendered open competes with the path and
 * the question stops mattering. */
summary.card-head {
  cursor: pointer;
  list-style: none;
  user-select: none;
}
summary.card-head::-webkit-details-marker { display: none; }
summary.card-head::after {
  content: "›";
  margin-left: auto;
  font-size: 17px;
  color: var(--faint);
  transition: transform .15s ease;
}
details[open] > summary.card-head::after { transform: rotate(90deg); }
summary.card-head:hover { background: var(--sunk); }
summary.card-head:hover::after { color: var(--muted); }
/* Keyboard users get the same affordance as a pointer. A disclosure that
   can only be opened by clicking is one a screen reader user cannot find. */
summary.card-head:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Recent requests: clickable rows and expandable detail panels. */
.row-click { cursor: pointer; }
.row-click:hover { background: var(--sunk); }
.row-detail { display: none; }
.row-detail.open { display: table-row; animation: drawer .2s ease-out; }
.row-detail > td { background: var(--sunk); border-top: 1px solid var(--line); }
.detail-wrap { padding: 12px 8px; }
.detail-wrap .stack { gap: 8px; }
.detail-wrap h3 { margin: 0; }
.detail-wrap .data { margin: 0; }
@keyframes drawer {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* Documentation contents and copy buttons.
 *
 * The docs page grew to eleven sections with no way into it but scrolling,
 * and no section could be linked to at all — which matters for a page that
 * gets quoted in a security review. */
.toc {
  margin: 28px 0 40px;
  padding: 18px 22px;
  border: 1px solid var(--rule, #e2e6ec);
  border-radius: 8px;
  background: var(--panel, #fbfcfd);
}
.toc-head {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted, #55606e);
}
.toc ol {
  margin: 0;
  padding-left: 1.3em;
  columns: 2;
  column-gap: 36px;
}
.toc li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* Anchored headings get a target offset so a linked section is not pinned
   under the top of the viewport. */
h2[id], h3[id] { scroll-margin-top: 20px; }

.snipwrap { position: relative; }
.snipwrap .copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #e8eaf0;
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s ease;
}
.snipwrap:hover .copy,
.snipwrap .copy:focus-visible { opacity: 1; }
.snipwrap .copy:hover { background: rgba(255, 255, 255, .16); }
