/*
 * The help page. Tokens from the dashboard (web/src/styles/tokens.css): dark from :root, light from
 * :root[data-theme='light'], here by the system's setting. Inter: SIL Open Font License 1.1, Copyright 2016 The Inter
 * Project Authors.
 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/inter-3100e775e861.woff2') format('woff2-variations'), url('/assets/inter-3100e775e861.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --bg: #121214;
  --card: #1b1b1f;
  --border: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: #a1a1aa;
  --control: #232328;
  --control-border: rgba(255, 255, 255, 0.09);
  --control-hover: #2b2b31;
  --divider: rgba(255, 255, 255, 0.06);
  --accent: #eb8a25;
  --accent-hover: #f39a3a;
  --accent-text: #f5a54a;
  --accent-soft: rgba(235, 138, 37, 0.16);
  --on-accent: #111111;
  --focus: #f5a54a;
  --shadow: none;
  --ok-text: #4ade80;
  --ok-bg: rgba(34, 197, 94, 0.16);
  --ok-solid: #22c55e;
  --attn-text: #facc15;
  --attn-bg: rgba(234, 179, 8, 0.16);
  --attn-solid: #eab308;
  --fail-text: #fca5a5;
  --fail-bg: rgba(239, 68, 68, 0.18);
  --fail-solid: #ef4444;
  --info-text: #93c5fd;
  --info-bg: rgba(59, 130, 246, 0.18);
  --info-solid: #3b82f6;
  --radius: 12px;
  --radius-ctl: 8px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --fs-sm: 13px;
  --lh-sm: 18px;
  --fs-md: 14px;
  --lh-md: 20px;
  --fs-lg: 16px;
  --lh-lg: 24px;
  --fs-xl: 22px;
  --lh-xl: 28px;
  --hit: 48px;
  --gutter: 16px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f4f5;
    --card: #ffffff;
    --border: #e4e4e7;
    --text: #18181b;
    --muted: #6b6b74;
    --control: #f4f4f5;
    --control-border: #dcdce0;
    --control-hover: #ececef;
    --divider: #eeeef0;
    --accent-hover: #d67a18;
    --accent-text: #a95a0b;
    --accent-soft: #fff1e0;
    --focus: #a95a0b;
    --shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 6px 20px rgba(24, 24, 27, 0.06);
    --ok-text: #15803d;
    --ok-bg: #dcfce7;
    --ok-solid: #16a34a;
    --attn-text: #a16207;
    --attn-bg: #fef9c3;
    --attn-solid: #a16207;
    --fail-text: #b91c1c;
    --fail-bg: #fee2e2;
    --fail-solid: #dc2626;
    --info-text: #1d4ed8;
    --info-bg: #dbeafe;
    --info-solid: #2563eb;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* The sign-in page's layout (web/src/pages/Login.css): one card in the middle of the page. */
.hp-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(var(--gutter), env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) max(var(--gutter), env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
}
.hp-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: min(480px, 100%);
  min-width: 0;
  padding: var(--space-7) var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.hp-brand { display: flex; justify-content: center; margin: 0; }
.hp-brand picture { display: block; width: min(240px, 100%); }
.hp-logo { display: block; width: 100%; height: auto; }
.hp-section { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.hp-section > *, .hp-panel > *, .hp-consent-block > * { margin: 0; }
.hp-title { margin: 0; font-size: var(--fs-xl); line-height: var(--lh-xl); font-weight: 650; text-align: center; overflow-wrap: anywhere; }
.hp-title:focus { outline: none; }
.hp-lead { margin: 0; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.hp-head { display: flex; flex-direction: column; gap: var(--space-2); }
.hp-note { margin: 0; color: var(--muted); font-size: var(--fs-md); line-height: var(--lh-md); text-align: center; }

/* The code. */
.hp-form { display: flex; flex-direction: column; gap: var(--space-3); }
.hp-code {
  width: 100%;
  height: 64px;
  padding: 0 var(--space-4);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-ctl);
  background: var(--control);
  color: var(--text);
  font: inherit;
  font-size: 32px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-align: center;
}
.hp-code::placeholder { color: var(--muted); opacity: 0.35; }
.hp-code:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.hp-code[aria-invalid='true'] { border-color: var(--fail-solid); box-shadow: 0 0 0 1px var(--fail-solid); }
.hp-error { margin: 0; color: var(--fail-text); font-size: var(--fs-md); line-height: var(--lh-md); text-align: center; }

/* Buttons: the dashboard's .btn at the 48px size (.btn-lg), full width as on the sign-in page. */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  min-height: var(--hit);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-ctl);
  background: var(--control);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
}
.hp-btn:hover { background: var(--control-hover); text-decoration: none; }
.hp-btn:disabled { opacity: 0.6; cursor: progress; }
.hp-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hp-btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.hp-btn-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.hp-btn-quiet:hover { background: var(--control); color: var(--text); }
.hp-btn-icon { flex: none; width: 18px; height: 18px; }
.hp-link {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  font-size: var(--fs-md);
  font-weight: 600;
  cursor: pointer;
}
.hp-link:hover { text-decoration: underline; }

/* Which computer: the steps for this one, the others behind the switch. */
.hp-os { gap: var(--space-5); }
.hp-pickrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-3);
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--divider);
}
.hp-for { margin: 0; color: var(--muted); font-size: var(--fs-md); line-height: var(--lh-md); }
.hp-for b { color: var(--text); font-size: var(--fs-lg); }
.hp-seg {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-ctl);
  background: var(--control);
}
.hp-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.hp-seg label {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  padding: 0 var(--space-2);
  border-radius: calc(var(--radius-ctl) - 2px);
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: var(--lh-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.hp-seg label:hover { color: var(--text); }
.hp-seg input:checked + label { background: var(--accent-soft); color: var(--accent-text); }
.hp-seg input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 0; }

.hp-panel { display: flex; flex-direction: column; gap: var(--space-4); }
.hp-sub { margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--divider); color: var(--muted); font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.hp-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: var(--space-4); }
.hp-steps li { position: relative; counter-increment: step; padding-left: 40px; min-height: 28px; overflow-wrap: anywhere; }
.hp-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: var(--fs-md);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hp-callout { padding: var(--space-4); border-radius: var(--radius-ctl); background: var(--control); border: 1px solid var(--control-border); }
.hp-callout p { margin: 0; }
.hp-callout p + p { margin-top: var(--space-2); color: var(--muted); }
.hp-callout-title { font-weight: 600; }

/* A slim strip with a 3px bar in the tone's solid (the dashboard's Banner). */
.hp-banner { margin: 0; padding: var(--space-3); border-left: 3px solid var(--b-solid); background: var(--b-bg); font-size: var(--fs-md); line-height: var(--lh-md); }
.hp-tone-info { --b-bg: var(--info-bg); --b-solid: var(--info-solid); }
.hp-tone-ok { --b-bg: var(--ok-bg); --b-solid: var(--ok-solid); }

.hp-consent-block { display: flex; flex-direction: column; gap: var(--space-3); }
.hp-consent { margin: 0 0 var(--space-1); }

/* The titled screens. */
.hp-message { align-items: stretch; }
.hp-status { display: flex; justify-content: center; }
.hp-status > span { display: none; place-items: center; width: 56px; height: 56px; border-radius: 999px; }
.hp-status[data-tone='fail'] > [data-tone='fail'] { display: grid; background: var(--fail-bg); color: var(--fail-text); }
.hp-status[data-tone='time'] > [data-tone='time'] { display: grid; background: var(--attn-bg); color: var(--attn-text); }
.hp-status[data-tone='info'] > [data-tone='info'] { display: grid; background: var(--info-bg); color: var(--info-text); }
.hp-status[data-tone='ok'] > [data-tone='ok'] { display: grid; background: var(--ok-bg); color: var(--ok-text); }
.hp-icon { width: 28px; height: 28px; }
.hp-actions { display: flex; flex-direction: column; gap: var(--space-3); }

.hp-foot { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0; padding-top: var(--space-5); border-top: 1px solid var(--divider); color: var(--muted); font-size: var(--fs-md); line-height: var(--lh-md); }
.hp-foot p { margin: 0; }
.hp-foot b { color: var(--text); }
.hp-foot-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent-text); }

/* Phones: the card starts at the top, so the first step is on screen without scrolling. */
@media (max-width: 720px) {
  .hp-page { place-items: start center; }
  .hp-card { padding: var(--space-6) var(--space-4); gap: var(--space-5); }
  .hp-brand picture { width: min(200px, 100%); }
}
@media (pointer: coarse) {
  .hp-seg label { min-height: 44px; }
}
