/* ASP Range Check-In — styles
   Large, high-contrast, phone-first. Light and dark themes share one structure. */

:root {
  /* ASP brand: white + ASP red in light mode, black + bright red in dark mode */
  --bg: #FFFFFF; --surface: #FFFFFF; --sunk: #F4F4F5; --border: #D4D4D8; --border-strong: #8A8A93;
  --text: #111113; --muted: #4A4A52;
  --accent: #C8102E; --on-accent: #FFFFFF; --accent-soft: #FCE9EC;
  --btn2: #EFEFF1;
  --brand-red: #C8102E; --brand-shield: #55555C;
  --ccw-bg: #EEEFF2; --ccw-fg: #33363D; --bsis-bg: #FBEFD3; --bsis-fg: #6E4300;
  --ok-bg: #DDF5E4; --ok-fg: #14612F; --warn-bg: #FDF1CF; --warn-fg: #7A4600;
  --bad-bg: #FBE7EA; --bad-fg: #8F1426; --done-bg: #ECE7FD; --done-fg: #4C2A9E;
  --neutral-bg: #EFEFF1; --neutral-fg: #3F3F46;
  --focus: #C8102E;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #141416; --sunk: #0B0B0C; --border: #2E2E33; --border-strong: #5C5C66;
    --text: #F5F5F6; --muted: #B4B4BC;
    --accent: #FF4D5E; --on-accent: #000000; --accent-soft: #2B0D12;
    --btn2: #1F1F23;
    --brand-red: #FF4D5E; --brand-shield: #A1A1AA;
    --ccw-bg: #24262B; --ccw-fg: #D4D7DE; --bsis-bg: #3A2C10; --bsis-fg: #F5CF7A;
    --ok-bg: #12301F; --ok-fg: #8DE8AE; --warn-bg: #3A2A0A; --warn-fg: #FBD36A;
    --bad-bg: #33100F; --bad-fg: #FFB3BA; --done-bg: #2A2048; --done-fg: #CBBEFF;
    --neutral-bg: #232327; --neutral-fg: #D4D4D8;
    --focus: #FF4D5E;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #141416; --sunk: #0B0B0C; --border: #2E2E33; --border-strong: #5C5C66;
  --text: #F5F5F6; --muted: #B4B4BC;
  --accent: #FF4D5E; --on-accent: #000000; --accent-soft: #2B0D12;
  --btn2: #1F1F23;
  --brand-red: #FF4D5E; --brand-shield: #A1A1AA;
  --ccw-bg: #24262B; --ccw-fg: #D4D7DE; --bsis-bg: #3A2C10; --bsis-fg: #F5CF7A;
  --ok-bg: #12301F; --ok-fg: #8DE8AE; --warn-bg: #3A2A0A; --warn-fg: #FBD36A;
  --bad-bg: #33100F; --bad-fg: #FFB3BA; --done-bg: #2A2048; --done-fg: #CBBEFF;
  --neutral-bg: #232327; --neutral-fg: #D4D4D8;
  --focus: #FF4D5E;
  color-scheme: dark;
}

/* Text size: normal = 19px, larger = 22px. Everything is in rem so it all scales. */
html { font-size: 118.75%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html[data-text="large"] { font-size: 137.5%; }
@media (max-width: 340px) { html { font-size: 106.25%; } html[data-text="large"] { font-size: 125%; } }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font-family: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem; line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: anywhere;
}
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.25rem; }
p { margin: 0; }
svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

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

.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); color: var(--text); padding: 12px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
  padding-top: max(10px, env(safe-area-inset-top));
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  flex: none; width: 2.1rem; height: 2.1rem; border-radius: 10px;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.5px;
}
.brand-name { font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-chip { flex: none; font-size: 0.75rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; border: 2px solid var(--text); }
.top-actions { display: flex; gap: 8px; flex: none; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  border: 2px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; padding: 0;
}
.icon-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.icon-btn .i-sun { display: none; }
:root[data-theme-now="dark"] .icon-btn .i-sun { display: block; }
:root[data-theme-now="dark"] .icon-btn .i-moon { display: none; }
@media (max-width: 359px) { .brand-name { display: none; } }

/* ---------- Layout ---------- */
.wrap {
  width: 100%; max-width: 640px; margin: 0 auto;
  padding: 20px max(18px, env(safe-area-inset-right)) calc(36px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 22px;
}
.wrap:focus { outline: none; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-lg { display: flex; flex-direction: column; gap: 18px; }
.lead { font-size: 1.05rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.89rem; }
.eyebrow { font-size: 0.89rem; font-weight: 700; color: var(--muted); }
.center { text-align: center; }

.panel { padding: 16px; border-radius: 16px; background: var(--sunk); border: 1px solid var(--border); }
.card { padding: 16px; border-radius: 16px; background: var(--surface); border: 2px solid var(--border); display: flex; flex-direction: column; gap: 10px; }

.section-title { font-size: 1.25rem; padding-bottom: 8px; border-bottom: 2px solid var(--border); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 3.1rem; padding: 10px 18px; border-radius: var(--radius);
  border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: 1.05rem; font-weight: 700; text-decoration: none; cursor: pointer;
  width: 100%; text-align: center; line-height: 1.2;
}
.btn.big { min-height: 3.4rem; font-size: 1.12rem; }
.btn.secondary { background: var(--btn2); color: var(--text); border-color: var(--border); }
.btn.danger { background: transparent; color: var(--bad-fg); border-color: var(--bad-fg); }
.btn.ghost { background: transparent; color: var(--accent); border: 2px dashed var(--border); }
.btn.link { background: transparent; border: none; color: var(--accent); width: auto; min-height: 48px; padding: 8px 4px; justify-content: flex-start; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row > .btn { flex: 1 1 6.5rem; width: auto; padding-left: 12px; padding-right: 12px; }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 0.95rem; font-weight: 700; }
.optional { font-size: 0.79rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: var(--sunk); color: var(--muted); margin-left: 6px; }
.hint { font-size: 0.89rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="password"], select, textarea {
  width: 100%; min-height: 3.1rem; padding: 10px 14px;
  font: inherit; font-size: 1.05rem; /* never below 16px, so iPhones don't zoom */
  color: var(--text); background: var(--surface);
  border: 2px solid var(--border-strong); border-radius: var(--radius);
  appearance: none; -webkit-appearance: none;
}
textarea { min-height: 6rem; resize: vertical; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
.card input, .card select, .card textarea { background: var(--bg); }
.code-input { font-size: 1.35rem !important; letter-spacing: 1px; min-height: 3.5rem !important; }
.mono { font-weight: 700; letter-spacing: 1.5px; }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 3rem; }
.select-wrap svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search { position: relative; }
.search input { padding-left: 3rem; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select, fieldset.has-error .choices { border-color: var(--bad-fg); }
.field-error { color: var(--bad-fg); font-weight: 700; font-size: 0.95rem; display: flex; gap: 6px; align-items: flex-start; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-size: 0.95rem; font-weight: 700; }
.choices { display: flex; flex-direction: column; gap: 10px; border-radius: var(--radius); }
.choices.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); }
.choice {
  display: flex; align-items: center; gap: 14px; min-height: 3.1rem; padding: 10px 14px;
  border-radius: var(--radius); border: 2px solid var(--border); background: var(--surface);
  cursor: pointer; font-size: 1rem;
}
.card .choice { background: var(--bg); }
.choice input { width: 1.5rem; height: 1.5rem; margin: 0; flex: none; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Tags & pills ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; font-size: 0.82rem; font-weight: 700; padding: 2px 11px; border-radius: 999px; line-height: 1.5; }
.tag.ccw { background: var(--ccw-bg); color: var(--ccw-fg); }
.tag.bsis { background: var(--bsis-bg); color: var(--bsis-fg); }
.tag.s-pending { background: var(--neutral-bg); color: var(--neutral-fg); }
.tag.s-checked { background: var(--ok-bg); color: var(--ok-fg); }
.tag.s-verify { background: var(--warn-bg); color: var(--warn-fg); }
.tag.s-issued { background: var(--done-bg); color: var(--done-fg); }
.tag.s-bad { background: var(--bad-bg); color: var(--bad-fg); }

/* ---------- Name list ---------- */
.name-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 4.2rem; padding: 12px 14px 12px 16px;
  border-radius: 16px; border: 2px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
}
.name-btn .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.name-btn .nm { font-size: 1.12rem; font-weight: 700; }
.name-btn .chev { color: var(--muted); }

/* ---------- RSO ---------- */
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 16px; background: var(--sunk); border: 1px solid var(--border); }
.tab {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 2.8rem;
  border-radius: 12px; border: none; background: transparent; color: var(--text);
  font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.count { min-width: 1.5rem; height: 1.5rem; padding: 0 7px; border-radius: 999px; font-size: 0.85rem; display: inline-grid; place-items: center; background: var(--warn-bg); color: var(--warn-fg); }
.tab[aria-selected="true"] .count { background: var(--on-accent); color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.6rem, 1fr)); gap: 8px; }
.stat { padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font-size: 1.45rem; line-height: 1.1; }
.stat span { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.stat.ok b { color: var(--ok-fg); } .stat.warn b { color: var(--warn-fg); } .stat.done b { color: var(--done-fg); } .stat.bad b { color: var(--bad-fg); }

.updated { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.updated .btn { width: auto; min-height: 2.6rem; font-size: 0.9rem; padding: 6px 14px; }
.who-name { font-size: 1.12rem; font-weight: 700; line-height: 1.25; }
.note { font-size: 0.92rem; color: var(--muted); }

.block { padding: 14px; border-radius: 14px; border: 2px solid var(--border); background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.block.done { border-color: var(--ok-fg); background: var(--ok-bg); }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.block-head h3 { font-size: 1.05rem; }
dl.kv { margin: 0; display: grid; gap: 10px; }
dl.kv div { display: flex; flex-direction: column; }
dl.kv dt { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
dl.kv dd { margin: 0; font-size: 1rem; white-space: pre-line; }
dl.kv dd.mono { font-size: 1.15rem; }
.empty { text-align: center; padding: 32px 12px; color: var(--muted); }
.empty svg { width: 3rem; height: 3rem; margin-bottom: 8px; }
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 4px var(--accent); } to { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Done ---------- */
.big-check { width: 6rem; height: 6rem; border-radius: 50%; background: var(--ok-bg); color: var(--ok-fg); display: grid; place-items: center; margin: 24px auto 0; }
.big-check svg { width: 3.2rem; height: 3.2rem; stroke-width: 2.5; }

/* ---------- Toast & dialog ---------- */
.toast {
  position: sticky; top: calc(68px + env(safe-area-inset-top)); z-index: 15;
  max-width: 640px; margin: 10px auto 0; width: calc(100% - 28px);
  padding: 14px 16px; border-radius: 14px; font-weight: 700;
  background: var(--bad-bg); color: var(--bad-fg); border: 2px solid var(--bad-fg);
}
.toast.good { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-fg); }
dialog {
  border: none; border-radius: 18px; padding: 0; width: min(92vw, 460px);
  background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
dialog::backdrop { background: rgba(0,0,0,.55); }
.dialog-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.dialog-body p { font-size: 1.05rem; }

.info-row { display: flex; gap: 12px; align-items: flex-start; }
.strong { font-weight: 700; }
.hint.tight { margin: -4px 0 10px; }
.group-error { margin-top: 8px; }
.footer-note { text-align: center; font-size: 0.82rem; color: var(--muted); padding-top: 8px; }

@media (min-width: 720px) {
  .wrap { padding-top: 32px; }
  h1 { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .toast, .btn, .tabs { display: none !important; } }

/* ---------- v2: tabs, chips, dialogs ---------- */
.tabs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tab { padding: 4px 6px; text-align: center; line-height: 1.15; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 2.6rem; padding: 6px 14px;
  border-radius: 999px; border: 2px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer;
}
.chip svg { width: 1.05rem; height: 1.05rem; stroke-width: 3; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tag svg { width: 0.95rem; height: 0.95rem; vertical-align: -2px; margin-right: 4px; stroke-width: 3; }
.form-dialog { max-height: 92vh; max-height: 92dvh; overflow-y: auto; }
.form-dialog .choice { background: var(--bg); }
.form-dialog input[type="text"], .form-dialog input[type="password"], .form-dialog select { background: var(--bg); }

/* ---------- v3: Simple list roster, bottom tabs, quick tour ---------- */
.help-btn { font: inherit; font-size: 1.2rem; font-weight: 700; }
@media (max-width: 419px) { .top-actions { gap: 6px; } .icon-btn { width: 44px; height: 44px; } .role-chip { display: none; } }
.b-summary { font-size: 1.05rem; color: var(--muted); }
.b-summary b { color: var(--text); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-row .search { flex: 1 1 12rem; min-width: 0; }
.filter-select { flex: 1 1 10rem; min-width: 0; }
.filter-select select { padding-left: 2.8rem; font-weight: 700; }
.filter-select svg:first-child { left: 14px; right: auto; color: var(--muted); }
.filter-select.active select { border-color: var(--accent); background: var(--accent-soft); }
.filter-select.active svg:first-child { color: var(--accent); }
.b-group { display: flex; flex-direction: column; gap: 8px; }
.b-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 2px solid var(--border); padding-bottom: 6px; }
.b-group-head h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 6px; }
.b-group-head .btn.link { min-height: 44px; }
.b-count { font-size: 0.85rem; min-width: 1.6rem; height: 1.6rem; border-radius: 999px; display: inline-grid; place-items: center; background: var(--sunk); border: 1px solid var(--border); padding: 0 6px; }
.b-row { border: 2px solid var(--border); background: var(--surface); border-radius: 14px; padding: 10px 10px 10px 14px; display: flex; flex-direction: column; gap: 10px; }
.b-row.flag { border-color: var(--bad-fg); }
.b-row.out { opacity: 0.85; }
.b-row-main { display: flex; align-items: center; gap: 8px; }
.b-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.b-name { font-weight: 700; font-size: 1.08rem; line-height: 1.25; }
.b-sub { font-size: 0.85rem; color: var(--muted); }
.b-sub.bad { color: var(--bad-fg); font-weight: 700; }
.b-row-main .btn { width: auto; min-height: 2.8rem; padding: 6px 14px; font-size: 0.95rem; flex: none; }
.b-row-main .icon-btn { flex: none; }
.btn.warnbtn { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-fg); }
.b-more .btn { min-height: 2.8rem; font-size: 0.95rem; }
.b-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 6px max(4px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
}
.b-nav.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b-nav-item { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 0.75rem; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; cursor: pointer; border-radius: 12px; }
.b-nav-item.on { color: var(--accent); }
.b-nav-icon { position: relative; display: inline-flex; }
.b-badge { position: absolute; top: -6px; right: -14px; min-width: 1.2rem; height: 1.2rem; border-radius: 999px; background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--warn-fg); font-size: 0.7rem; display: grid; place-items: center; padding: 0 4px; }
body.has-nav .wrap { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
/* quick tour */
.wt-layer { position: fixed; inset: 0; z-index: 60; background: rgba(8, 10, 14, 0.62); display: flex; align-items: flex-end; justify-content: center;
  padding: 12px max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.wt-card { width: 100%; max-width: 520px; max-height: calc(100dvh - 24px); overflow-y: auto; background: var(--surface); color: var(--text); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.wt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wt-top .eyebrow { white-space: nowrap; }
.wt-top .btn.link { margin-left: auto; padding: 8px 6px; flex: none; }
.wt-card h2 { font-size: 1.3rem; }
.wt-text { font-size: 1.02rem; }
.wt-pic { background: var(--sunk); border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.wt-pic .btn { width: auto; min-height: 2.6rem; font-size: 0.92rem; padding: 6px 14px; }
.wt-pic .b-row, .wt-pic .block { background: var(--surface); }
.wt-pic .fake-input { display: flex; align-items: center; min-height: 2.8rem; padding: 0 14px 0 3rem; border: 2px solid var(--border-strong); border-radius: 14px; background: var(--surface); }
.wt-pic .b-nav.wt-nav { position: static; border: 1px solid var(--border); border-radius: 14px; padding: 6px 4px; }
.wt-hl { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--accent); animation: wtpulse 1.6s ease-in-out infinite; border-radius: 12px; }
@keyframes wtpulse { 0%, 100% { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--accent); } 50% { box-shadow: 0 0 0 3px var(--surface), 0 0 0 9px var(--accent-soft); } }
.wt-dots { display: flex; gap: 8px; justify-content: center; }
.wt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.wt-dot.on { background: var(--accent); width: 22px; border-radius: 6px; }

/* ---------- v4: who's using this phone ---------- */
button.role-chip { font: inherit; font-size: 0.75rem; font-weight: 700; background: transparent; color: var(--text); cursor: pointer; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 32px; }
button.role-chip:disabled { cursor: default; }
@media (max-width: 419px) { button.role-chip:not(:disabled) { display: inline-block; } .brand-name { display: none; } }
.id-name .chev { visibility: hidden; color: var(--accent); }
.id-name[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.id-name[aria-checked="true"] .chev { visibility: visible; }
@media (max-width: 419px) {
  .topbar .icon-btn { width: 44px; height: 44px; }
  .top-actions { gap: 5px; }
  .brand { gap: 8px; }
  button.role-chip { max-width: 5.5rem; padding: 1px 7px; }
}
@media (max-width: 359px) { .topbar .logo { display: none; } }
.id-name .nm { flex: 1; }

/* ---------- v5: ASP logo ---------- */
.logo-mark { width: 2.3rem; height: 2.5rem; flex: none; display: block; }
.logo-shield { fill: none; stroke: var(--brand-shield); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.logo-star, .logo-word { fill: var(--brand-red); }
.logo-word { font-family: "Russo One", "Arial Black", Impact, sans-serif; font-weight: 400; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.logo-tag1 { fill: var(--brand-red); font-family: "Atkinson Hyperlegible", Arial, sans-serif; font-weight: 700; letter-spacing: 2px; }
.logo-tag2 { fill: var(--muted); font-family: "Atkinson Hyperlegible", Arial, sans-serif; font-weight: 400; letter-spacing: 4px; }
.logo-lockup { width: min(15rem, 72%); height: auto; display: block; margin: 0 auto 4px; }
.logo-lockup .logo-word { stroke: var(--bg); }
/* reviews */
.review-links { display: flex; flex-direction: column; gap: 10px; }
.review-sheet { max-height: 92vh; max-height: 92dvh; overflow-y: auto; }
.review-link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 3.2rem; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; text-align: center; line-height: 1.2; }
.review-link svg { color: var(--brand-red); }
.review-link.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.review-link.primary svg { color: var(--on-accent); }
.review-card { gap: 12px; }
.logo.logo-mark { background: none; border-radius: 0; width: 2.3rem; height: 2.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.big-check.small-check { width: 4rem; height: 4rem; margin: 0 auto; }
.big-check.small-check svg { width: 2.2rem; height: 2.2rem; }

/* ---------- v6: headings and buttons in Saira Semi Condensed (brand); reading and typing stay in Atkinson ---------- */
h1, h2, h3, .btn, .tab, .wt-card h2, .b-group-head h2, .section-title, .c-big-title, .eyebrow {
  font-family: "Saira Semi Condensed", "Atkinson Hyperlegible", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
h1, h2, h3 { font-weight: 700; letter-spacing: 0.2px; }
h1 { font-size: 1.85rem; line-height: 1.1; }
.btn { font-weight: 700; letter-spacing: 0.3px; }
.eyebrow { font-weight: 600; letter-spacing: 0.4px; }
