/* The pairing door's page (D-137): the console's light and dark tokens (web/src/tokens.css), no
   fonts of its own — the door shares nothing with the console, not even a file. */
:root {
  --bg: #ffffff;
  --text: #1a1814;
  --text-muted: #6e6a62;
  --line: #e9e6de;
  --accent: #b5721a;
  --on-accent: #ffffff;
  --bg-quiet-button: #ede7da;
  --danger-2: #a03a33;
  --ok-text: #256b42;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1814;
    --text: #faf9f5;
    --text-muted: #c4bfb2;
    --line: #38352e;
    --bg-quiet-button: #55514a;
    --danger-2: #ebd4d1;
    --ok-text: #e4efe7;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

h1 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

h2 {
  margin: 18px 0 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.lead {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.faint {
  margin: 6px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.center {
  text-align: center;
}

.primary {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
}

.primary:disabled {
  opacity: 0.55;
}

.quiet {
  margin-top: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-quiet-button);
  color: var(--text);
  font: inherit;
}

.qr {
  width: min(260px, 100%);
  margin: 6px auto 10px;
}

.qr svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.code {
  margin: 8px 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  overflow-wrap: anywhere;
}

ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

li {
  margin: 4px 0;
}

a {
  color: var(--accent);
}

.msg {
  margin: 12px 0 0;
  color: var(--danger-2);
}

.msg.ok {
  color: var(--ok-text);
}
