/* Tokens from docs/DESIGN-SYSTEM.md. Inlined for the same reason the mail templates inline them:
   a static asset cannot read a markdown file. Six values, one place. */
:root {
  --paper: #F7F8F7; --surface: #FFFFFF; --rule: #D8DDDA;
  --ink: #14201C; --muted: #5C6B65; --sealed: #1A7F4B; --pending: #7A6A2F;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 Archivo, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  display: flex; justify-content: center; padding: 48px 16px;
}
.sheet {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 3px;
  max-width: 640px; width: 100%; padding: 32px;
}
.wordmark {
  margin: 0 0 24px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.wordmark b { color: var(--sealed); font-weight: 700; }
h1 { font-size: 22px; line-height: 1.3; margin: 0 0 10px; font-weight: 600; }
.lede { color: var(--muted); margin: 0 0 24px; }
.facts { border-collapse: collapse; width: 100%; margin-bottom: 24px; }
.facts th, .facts td {
  text-align: left; font-weight: 400; padding: 9px 0; border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.facts th { color: var(--muted); font-size: 13px; width: 38%; }
.facts td { font-size: 14px; }
.mono { font-family: var(--mono); }
.pending { color: var(--pending); }
.note { font-size: 13px; color: var(--muted); margin: 0; }

/* ── forms ─────────────────────────────────────────────────────────────────────────────────── */
.tag {
  border: 1px solid var(--rule); border-radius: 2px; padding: 1px 6px; margin-left: 6px;
  font-size: 11px; letter-spacing: .1em; color: var(--muted);
}
h2 { font-size: 15px; margin: 28px 0 10px; font-weight: 600; }
label { display: block; font-size: 13px; color: var(--muted); margin: 16px 0 5px; }
input, select {
  width: 100%; padding: 9px 10px; font: inherit; font-size: 14px;
  border: 1px solid var(--rule); border-radius: var(--radius, 3px);
  background: var(--surface); color: var(--ink);
}
input.mono, select.mono, #otp-code { font-family: var(--mono); }
input:focus, select:focus { outline: 2px solid var(--sealed); outline-offset: 1px; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
button {
  margin-top: 22px; padding: 11px 22px; font: inherit; font-size: 15px; font-weight: 600;
  color: #fff; background: var(--sealed); border: 0; border-radius: 3px; cursor: pointer;
}
button:disabled { opacity: .5; cursor: default; }
.status {
  margin: 14px 0 0; font-size: 13px; white-space: pre-line; color: var(--muted);
  border-left: 2px solid var(--rule); padding-left: 10px;
}
.status.bad { color: var(--stop, #8C2F1E); border-left-color: var(--stop, #8C2F1E); }
.who { font-size: 12px; color: var(--muted); margin: 0 0 20px; }
.facts.wide th, .facts.wide td { font-size: 12px; padding: 7px 10px 7px 0; }
.facts.wide th { width: auto; }
:root { --stop: #8C2F1E; }
.who { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
button.link {
  margin: 0; padding: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 400;
  text-decoration: underline; cursor: pointer;
}
button.link:hover { color: var(--ink); }

/* ── A WIDE TABLE SCROLLS INSIDE ITSELF, IT DOES NOT PUSH THE PAGE ─────────────────────────────
 * Six columns of hostnames and addresses will always exceed a phone and often a laptop. Without a
 * scroll container the table widens the sheet and the whole layout overflows — which is what a
 * horizontal scrollbar on <body> means. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.facts.wide { min-width: 620px; }
.facts.wide td, .facts.wide th { white-space: nowrap; }
.facts.wide td.wrap { white-space: normal; }
body { overflow-x: hidden; }
.count { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 6px; }
.with-affordance { position: relative; display: flex; align-items: center; }
.with-affordance input { padding-right: 62px; }
.affordance {
  position: absolute; right: 8px; margin: 0; padding: 4px 6px; font-size: 12px; font-weight: 400;
  background: none; color: var(--muted); border: 0; cursor: pointer; text-decoration: underline;
}
.affordance:hover { color: var(--ink); }
#review .facts th { width: 34%; }
#review button.link { margin-left: 14px; }
