/* Visitr — built in the Swarm design system (https://claude.ai/artifact/JoHwWvKTyZwh16r5XA1nfq).
   tokens.css is Swarm's, copied verbatim. This file only arranges Swarm's vocabulary:
   paper on a desk (rail → canvas → surface + hairline), blue-black ink, ONE typeface,
   gold as the seal and the one primary action (the Seal Rule), mark → word → colour,
   soft shapes on the 4px ladder with the nested rule, no glass, no side rules.
   Spacing only from 4·8·16·24·32·48·72. */

:root { --rail-w: 236px; color-scheme: light; }
html, body { height: 100%; }
body { background: var(--canvas); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
button { color: inherit; }

/* ── controls: a fill, not a frame ───────────────────────────────────── */
.sw-button { min-height: 36px; border-radius: var(--r-sm); display: inline-flex; align-items: center;
  justify-content: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.sw-button--secondary { background: var(--sunken); border-color: transparent; color: var(--text); }
.sw-button--secondary:hover { background: var(--hairline); }
.sw-button--danger { background: var(--risk-bg); color: var(--risk); }
.sw-button--danger:hover { background: var(--risk); color: var(--surface); }
.sw-button--small { min-height: 30px; padding: 0 10px; font-size: var(--t-13); }
.sw-button--big { min-height: 56px; padding: 0 var(--s-3); font-size: var(--t-18); border-radius: var(--r-md); }
.sw-button--block { width: 100%; }
@media (pointer: coarse) { .sw-button { min-height: 44px; } .sw-button--small { min-height: 40px; } }

.field { display: flex; flex-direction: column; gap: var(--s-0); min-width: 0; }
.field__label { font-size: var(--t-13); font-weight: 600; color: var(--text); }
.field__hint { font-size: var(--t-12); color: var(--muted); }
.input, .select, .textarea {
  font: inherit; font-size: var(--t-14); color: var(--text);
  min-height: 36px; padding: 0 12px; width: 100%;
  background: var(--sunken); border: 1px solid transparent; border-radius: var(--r-sm);
  transition: background var(--d-state) var(--e), border-color var(--d-state) var(--e);
}
.textarea { padding: 8px 12px; min-height: 72px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--hairline); }
.input:focus, .select:focus, .textarea:focus { background: var(--surface); border-color: var(--hairline);
  outline: 2px solid var(--focus); outline-offset: 2px; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input[aria-invalid="true"] { border-color: var(--risk); }
@media (pointer: coarse) { .input, .select { min-height: 44px; font-size: var(--t-16); } }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
@media (max-width: 820px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ── type ────────────────────────────────────────────────────────────── */
.display { font-size: var(--t-40); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: var(--text); margin: 0; }
.headline { font-size: var(--t-24); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); margin: 0; }
.title { font-size: var(--t-18); font-weight: 700; line-height: 1.3; color: var(--text); margin: 0; }
.muted { color: var(--muted); }
.small { font-size: var(--t-13); }
.caption { font-size: var(--t-12); color: var(--muted); }
.ref { font-variant-numeric: tabular-nums; font-size: var(--t-13); letter-spacing: 0.06em; color: var(--text); }
.label { font-variant-numeric: tabular-nums; font-size: var(--t-11); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 400; }
@media (max-width: 820px) { .display { font-size: var(--t-32); } }

/* ── the shell: a rail and a page ────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--rail);
  border-right: 1px solid var(--hairline); padding: var(--s-2) 0 var(--s-1); overflow: hidden auto; }
.rail__brand { display: flex; align-items: center; gap: var(--s-1); font-size: var(--t-18); font-weight: 800;
  letter-spacing: -0.01em; color: var(--text); padding: 0 var(--s-2) var(--s-2); min-height: 36px; text-decoration: none; }
.rail__group { padding: var(--s-2) 0 0; }
.rail__group-label { font-size: var(--t-11); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
  padding: 0 var(--s-2) var(--s-0); }
.rail__item { display: flex; align-items: center; gap: var(--s-1); min-height: 36px; padding: 0 var(--s-2);
  margin-left: var(--s-1); color: var(--muted); text-decoration: none; font-size: var(--t-14); font-weight: 600;
  border: 1px solid transparent; border-right: none; border-radius: var(--r-spine); white-space: nowrap; }
.rail__item:hover { background: var(--sunken); color: var(--text); }
.rail__item[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 700; border-color: var(--hairline); }
.rail__item[aria-current="page"] .sw-mark { color: var(--gold-ink); }
.rail__item .sw-mark { width: 18px; height: 18px; }
.rail__n { margin-left: auto; font-variant-numeric: tabular-nums; font-size: var(--t-11); font-weight: 700; color: var(--muted); }
.rail__spacer { flex: 1 1 auto; min-height: var(--s-2); }
.rail__who { display: flex; align-items: center; gap: var(--s-1); padding: var(--s-1) var(--s-2); }
.rail__who-name { font-size: var(--t-13); font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail__who-role { font-size: var(--t-12); color: var(--muted); }

.page { min-width: 0; padding: var(--s-4) var(--s-4) var(--s-5); max-width: 1440px; }
.page--narrow { max-width: 880px; }
.page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-2);
  margin-bottom: var(--s-3); flex-wrap: wrap; }
.page__sub { margin: var(--s-0) 0 0; color: var(--muted); font-size: var(--t-14); }
.section { margin-top: var(--s-4); }

.face { width: 32px; height: 32px; border-radius: var(--r-pill); background: var(--sunken); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; font-size: var(--t-12); font-weight: 700;
  flex: none; border: 1px solid var(--hairline); }
.face--sm { width: 24px; height: 24px; font-size: 10px; }

/* the phone: a bottom tab bar, gold + in the middle */
.tabbar { display: none; }
@media (max-width: 1100px) { :root { --rail-w: 60px; } .rail__label, .rail__group-label, .rail__n, .rail__who-text { display: none; }
  .rail__item { justify-content: center; padding: 0; margin: 0 var(--s-1); border-radius: var(--r-sm); border-right: 1px solid transparent; }
  .rail__item[aria-current="page"] { border-right-color: var(--hairline); }
  .rail__brand { justify-content: center; padding: 0 0 var(--s-2); } .rail__brand-name { display: none; }
  .rail__who { justify-content: center; } }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .page { padding: var(--s-2) var(--s-2) calc(96px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0;
    bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--hairline);
    padding: 6px var(--s-1) calc(10px + env(safe-area-inset-bottom)); }
  .tabbar__item { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px;
    justify-content: center; font-size: var(--t-11); font-weight: 600; color: var(--muted); text-decoration: none;
    border-radius: var(--r-sm); }
  .tabbar__item .sw-mark { width: 20px; height: 20px; }
  .tabbar__item[aria-current="page"] { color: var(--text); }
  .tabbar__item[aria-current="page"] .sw-mark { color: var(--gold-ink); }
  .tabbar__plus { width: 48px; height: 48px; margin: 0 auto; border-radius: var(--r-pill); background: var(--gold);
    color: var(--on-gold); display: flex; align-items: center; justify-content: center; }
  .tabbar__plus .sw-mark { width: 22px; height: 22px; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-2); }
}
.mobile-top { display: none; }
@media (max-width: 820px) { .mobile-top { display: flex; } }

/* ── cards ───────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding: var(--s-2) var(--s-2) 0; flex-wrap: wrap; }
.card__body { padding: var(--s-2); }
.card + .card { margin-top: var(--s-3); }
.cards { display: grid; gap: var(--s-3); }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); } }
.tile { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  box-shadow: var(--shadow-soft); padding: var(--s-2); }
.tile__label { display: flex; align-items: center; gap: 6px; font-size: var(--t-12); color: var(--muted); }
.tile__figure { font-size: 22px; line-height: 1.15; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums; margin-top: var(--s-1); }
.tile__line { font-size: var(--t-12); color: var(--muted); margin-top: 2px; }

/* ── facts: soft pills ───────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: var(--r-sm);
  font-size: var(--t-12); font-weight: 600; white-space: nowrap; background: var(--sunken); color: var(--muted); }
.pill .sw-mark { width: 14px; height: 14px; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--attention { background: var(--attention-bg); color: var(--attention); }
.pill--risk { background: var(--risk-bg); color: var(--risk); }
.pill--info { background: var(--info-bg); color: var(--ink-blue); }
/* visit stages use the stage family: expected = ready, partly = in progress, arrived = done */
.stage { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: var(--r-sm);
  font-size: var(--t-12); font-weight: 600; white-space: nowrap; }
.stage .sw-mark { width: 14px; height: 14px; }
.stage--expected { background: var(--st-ready-chip); color: var(--st-ready); }
.stage--partly_arrived { background: var(--st-progress-chip); color: var(--st-progress); }
.stage--arrived { background: var(--st-done-chip); color: var(--st-done); }
.stage--left { background: var(--st-review-chip); color: var(--st-review); }
.stage--cancelled { background: var(--st-cancelled-chip); color: var(--st-cancelled); }

/* toolbar chips */
.chips { display: flex; gap: var(--s-1); flex-wrap: wrap; align-items: center; }
.tchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-pill);
  font-size: var(--t-13); font-weight: 600; color: var(--body); background: var(--sunken); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; }
.tchip .sw-mark { width: 14px; height: 14px; }
.tchip:hover { border-color: var(--hairline); }
.tchip[aria-pressed="true"] { border-color: var(--ink-blue); background: oklch(45% 0.15 265 / 0.07); color: var(--text); }
@media (pointer: coarse) { .tchip { height: 40px; } }

/* ── table ───────────────────────────────────────────────────────────── */
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-13); }
.t th { text-align: left; font-weight: 400; font-size: var(--t-11); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); background: var(--sunken); padding: 8px 12px; white-space: nowrap; }
.t th:first-child { border-top-left-radius: var(--r-sm); border-bottom-left-radius: var(--r-sm); }
.t th:last-child { border-top-right-radius: var(--r-sm); border-bottom-right-radius: var(--r-sm); }
.t td { padding: 12px; border-bottom: 1px solid var(--hairline); vertical-align: middle; color: var(--body); }
.t tbody tr { cursor: pointer; transition: background var(--d-state) var(--e); }
.t tbody tr:hover td { background: var(--sunken); }
.t tbody tr:last-child td { border-bottom: none; }
.t tr.is-soon td { background: var(--attention-bg); }
.t .time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); white-space: nowrap; }
.who { display: flex; flex-direction: column; gap: 4px; }
.who__row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.who__name { font-weight: 600; color: var(--text); }

/* mobile list instead of the table */
.list { display: none; }
@media (max-width: 820px) { .tablewrap--responsive { display: none; } .list { display: grid; gap: var(--s-1); } }
.lrow { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-1) var(--s-2); padding: var(--s-2);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); text-align: left;
  font: inherit; cursor: pointer; width: 100%; }
.lrow__time { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; font-size: var(--t-14); }
.lrow__meta { grid-column: 2; display: flex; gap: var(--s-1); flex-wrap: wrap; align-items: center; }

.empty { text-align: center; padding: var(--s-5) var(--s-3); color: var(--muted); }
.empty .sw-mark { width: 24px; height: 24px; margin: 0 auto var(--s-1); color: var(--muted); }

/* ── the visit sheet (right panel) ───────────────────────────────────── */
.scrim { position: fixed; inset: 0; background: oklch(22% 0.015 265 / 0.32); z-index: 50; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--canvas);
  z-index: 51; box-shadow: var(--shadow-panel); display: flex; flex-direction: column;
  animation: sheet-in var(--d-panel) var(--e); }
@keyframes sheet-in { from { transform: translateX(24px); opacity: 0; } }
.sheet__head { display: flex; align-items: flex-start; gap: var(--s-2); padding: var(--s-3) var(--s-3) var(--s-2);
  border-bottom: 1px solid var(--hairline); background: var(--surface); }
.sheet__body { flex: 1; overflow: auto; padding: var(--s-3); display: grid; gap: var(--s-3); align-content: start; }
.sheet__foot { padding: var(--s-2) var(--s-3); border-top: 1px solid var(--hairline); background: var(--surface);
  display: flex; gap: var(--s-1); justify-content: flex-end; flex-wrap: wrap; }
.iconbtn { width: 36px; height: 36px; border-radius: var(--r-sm); display: inline-flex; align-items: center;
  justify-content: center; background: transparent; border: none; cursor: pointer; color: var(--muted); flex: none; }
.iconbtn:hover { background: var(--sunken); color: var(--text); }
@media (pointer: coarse) { .iconbtn { width: 44px; height: 44px; } }

.facts { display: grid; gap: var(--s-1); }
.fact { display: flex; align-items: center; gap: var(--s-1); font-size: var(--t-14); color: var(--body); }
.fact .sw-mark { color: var(--muted); }

.guest { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--s-2);
  display: grid; gap: var(--s-1); }
.guest__top { display: flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; }
.guest__name { font-weight: 700; color: var(--text); font-size: var(--t-16); }
.guest__lines { display: grid; gap: 2px; font-size: var(--t-13); color: var(--muted); }
.guest__actions { display: flex; gap: var(--s-1); flex-wrap: wrap; margin-top: var(--s-0); }
.passcode { font-variant-numeric: tabular-nums; letter-spacing: 0.14em; font-weight: 700; color: var(--text); }

.exhibit { background: var(--sunken); border-radius: var(--r-md); padding: var(--s-2); display: grid; gap: 6px; }
.exhibit__row { display: flex; gap: var(--s-1); align-items: center; font-size: var(--t-13); flex-wrap: wrap; }

/* ── registering ─────────────────────────────────────────────────────── */
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
@media (max-width: 820px) { .kinds { grid-template-columns: 1fr; } }
.kind { text-align: left; font: inherit; cursor: pointer; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: var(--s-2); display: grid; gap: var(--s-1); box-shadow: var(--shadow-soft);
  transition: box-shadow var(--d-state) var(--e), border-color var(--d-state) var(--e); color: var(--body); }
.kind:hover { box-shadow: var(--shadow-lift); }
.kind[aria-pressed="true"] { border-color: var(--ink-blue); background: oklch(45% 0.15 265 / 0.05); }
.kind__marks { display: flex; gap: 6px; color: var(--text); }
.kind__marks .sw-mark { width: 20px; height: 20px; }
.kind__name { font-weight: 700; color: var(--text); font-size: var(--t-16); }
.kind__line { font-size: var(--t-13); color: var(--muted); }
.form { display: grid; gap: var(--s-3); }
.form__section { display: grid; gap: var(--s-2); }
.form__foot { display: flex; gap: var(--s-1); justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.durations { display: flex; gap: var(--s-0); flex-wrap: wrap; }
.picker { position: relative; }
.picker__menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--surface);
  border-radius: var(--r-md); box-shadow: var(--shadow-panel); padding: var(--s-0); max-height: 300px; overflow: auto; }
.picker__opt { display: flex; align-items: center; gap: var(--s-1); width: 100%; text-align: left; font: inherit;
  background: none; border: none; padding: 8px; border-radius: var(--r-sm); cursor: pointer; color: var(--body); }
.picker__opt:hover, .picker__opt[aria-selected="true"] { background: var(--sunken); }
.picker__opt b { color: var(--text); }
.chosen { display: flex; align-items: center; gap: var(--s-1); background: var(--sunken); border-radius: var(--r-md);
  padding: var(--s-1) var(--s-2); }
.addlink { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: var(--t-13); font-weight: 600;
  color: var(--muted); background: transparent; border: 1px dashed var(--hairline); border-radius: var(--r-sm);
  padding: 6px 10px; cursor: pointer; }
.addlink:hover { color: var(--text); border-color: var(--muted); }
.formerr { background: var(--risk-bg); color: var(--risk); border-radius: var(--r-sm); padding: var(--s-1) var(--s-2);
  font-size: var(--t-14); font-weight: 600; display: flex; gap: var(--s-1); align-items: center; }
.done-guests { display: grid; gap: var(--s-1); }

/* ── toasts and alerts ───────────────────────────────────────────────── */
.toasts { position: fixed; top: var(--s-2); right: var(--s-2); z-index: 80; display: grid; gap: var(--s-1);
  width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-panel); padding: var(--s-2);
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-1); align-items: start; animation: sheet-in var(--d-panel) var(--e); }
.toast__title { font-weight: 700; color: var(--text); font-size: var(--t-14); }
.toast__body { font-size: var(--t-13); color: var(--muted); }
.toast .sw-mark { margin-top: 2px; }
.toast--arrival .toast__mark { color: var(--st-done); }
.bell { position: relative; }
.bell__n { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; border-radius: var(--r-pill);
  background: var(--tape); color: var(--on-tape); font-size: 10px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; padding: 0 4px; }
.alerts { position: absolute; z-index: 60; width: min(380px, calc(100vw - 32px)); background: var(--surface);
  border-radius: var(--r-lg); box-shadow: var(--shadow-panel); padding: var(--s-1); max-height: 70vh; overflow: auto; }
.alert { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1); padding: var(--s-1); border-radius: var(--r-sm);
  cursor: pointer; text-align: left; font: inherit; background: none; border: none; width: 100%; color: var(--body); }
.alert:hover { background: var(--sunken); }
.alert__title { font-weight: 700; color: var(--text); font-size: var(--t-14); }
.alert--unread .alert__title::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 999px;
  background: var(--tape); margin-left: 6px; vertical-align: middle; }
.alert__body { font-size: var(--t-12); color: var(--muted); }

/* ── sign in, pass, landing: the centred cover ───────────────────────── */
.cover { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--s-4) var(--s-2); background: var(--rail); }
.cover__card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-xl); box-shadow: var(--shadow-soft); padding: var(--s-4) var(--s-3); display: grid; gap: var(--s-2); }
.wordmark { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--t-24); font-weight: 800;
  letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.or { display: flex; align-items: center; gap: var(--s-1); color: var(--muted); font-size: var(--t-12); }
.or::before, .or::after { content: ""; height: 1px; background: var(--hairline); flex: 1; }
.cover__foot { margin-top: var(--s-3); font-size: var(--t-12); color: var(--muted); text-align: center; }
.cover__foot a { color: var(--muted); }
.code-input { font-size: var(--t-24); letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums;
  font-weight: 700; min-height: 56px; }

.pass { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft); overflow: hidden; }
.pass__top { padding: var(--s-3); display: grid; gap: var(--s-0); border-bottom: 1px dashed var(--hairline); }
.pass__qr { padding: var(--s-3); display: grid; justify-items: center; gap: var(--s-1); }
.pass__qr img { width: 240px; height: 240px; image-rendering: pixelated; border-radius: var(--r-md); }
.pass__code { font-size: var(--t-24); font-weight: 800; letter-spacing: 0.24em; color: var(--text); font-variant-numeric: tabular-nums; }
.pass__facts { padding: 0 var(--s-3) var(--s-3); display: grid; gap: var(--s-1); }
.banner { border-radius: var(--r-md); padding: var(--s-2); display: flex; gap: var(--s-1); align-items: center;
  font-weight: 600; font-size: var(--t-14); }
.banner--ok { background: var(--ok-bg); color: var(--ok); }
.banner--risk { background: var(--risk-bg); color: var(--risk); }
.banner--info { background: var(--info-bg); color: var(--ink-blue); }

/* ── the kiosk: one thing on the screen, big ─────────────────────────── */
.kiosk { min-height: 100vh; background: var(--canvas); display: grid; grid-template-rows: auto 1fr auto; }
.kiosk__top { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--hairline); background: var(--surface); }
.kiosk__venue { font-size: var(--t-14); color: var(--muted); }
.kiosk__clock { font-size: var(--t-24); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.kiosk__main { display: grid; place-items: center; padding: var(--s-4) var(--s-3); }
.kiosk__inner { width: min(960px, 100%); display: grid; gap: var(--s-4); }
.kiosk__hello { text-align: center; display: grid; gap: var(--s-1); }
.kiosk__hello .display { font-size: var(--t-48); }
.kiosk__split { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-4); align-items: stretch; }
@media (max-width: 820px) { .kiosk__split { grid-template-columns: 1fr; } .kiosk__hello .display { font-size: var(--t-32); } }
.kcard { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl); box-shadow: var(--shadow-soft);
  padding: var(--s-3); display: grid; gap: var(--s-2); align-content: start; }
.camera { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--sunken);
  display: grid; place-items: center; }
.camera video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camera__frame { position: absolute; inset: 18%; border: 3px solid var(--surface); border-radius: var(--r-lg);
  box-shadow: 0 0 0 9999px oklch(22% 0.015 265 / 0.18); pointer-events: none; }
.camera__off { padding: var(--s-3); text-align: center; color: var(--muted); display: grid; gap: var(--s-2); justify-items: center; }
.codeboxes { display: flex; gap: var(--s-1); justify-content: center; }
.codeboxes input { width: 52px; height: 64px; text-align: center; font: inherit; font-size: var(--t-28); font-weight: 800;
  text-transform: uppercase; color: var(--text); background: var(--sunken); border: 1px solid transparent;
  border-radius: var(--r-md); }
.codeboxes input:focus { background: var(--surface); border-color: var(--hairline); outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 480px) { .codeboxes input { width: 42px; height: 56px; } }
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.bigchoice { font: inherit; cursor: pointer; text-align: left; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: var(--s-3); display: grid; gap: var(--s-1); box-shadow: var(--shadow-soft); min-height: 120px;
  color: var(--body); }
.bigchoice:hover { box-shadow: var(--shadow-lift); }
.bigchoice .sw-mark { width: 28px; height: 28px; color: var(--text); }
.bigchoice__name { font-size: var(--t-20); font-weight: 700; color: var(--text); }
.hosts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-1); }
.hostbtn { font: inherit; cursor: pointer; text-align: left; display: flex; align-items: center; gap: var(--s-1);
  min-height: 64px; padding: var(--s-1) var(--s-2); background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-md); color: var(--body); }
.hostbtn[aria-pressed="true"] { border-color: var(--ink-blue); background: oklch(45% 0.15 265 / 0.05); }
.hostbtn b { display: block; color: var(--text); }
.result { text-align: center; display: grid; gap: var(--s-2); justify-items: center; }
.result__mark { width: 96px; height: 96px; border-radius: var(--r-pill); display: grid; place-items: center; }
.result__mark .sw-mark { width: 52px; height: 52px; stroke-width: 1.3; }
.result__mark--ok { background: var(--st-done-chip); color: var(--st-done); }
.result__mark--info { background: var(--info-bg); color: var(--ink-blue); }
.result__mark--risk { background: var(--risk-bg); color: var(--risk); }
.result__count { font-size: var(--t-13); color: var(--muted); }
.kiosk__foot { padding: var(--s-2) var(--s-4); display: flex; justify-content: space-between; align-items: center;
  font-size: var(--t-12); color: var(--muted); }
.kiosk .sw-button { min-height: 56px; font-size: var(--t-16); border-radius: var(--r-md); }
.kiosk .input { min-height: 56px; font-size: var(--t-18); border-radius: var(--r-md); }
.kiosk .field__label { font-size: var(--t-14); }

/* ── settings ────────────────────────────────────────────────────────── */
.rows { display: grid; }
.row { display: flex; align-items: center; gap: var(--s-2); padding: 12px 0; border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.row:last-child { border-bottom: none; }
.row__main { flex: 1; min-width: 180px; }
.row__title { font-weight: 700; color: var(--text); font-size: var(--t-14); }
.bigcode { font-size: var(--t-40); font-weight: 800; letter-spacing: 0.24em; color: var(--text); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; background: var(--sunken); border-radius: var(--r-md); padding: 4px; gap: 4px; }
.seg button { font: inherit; font-size: var(--t-13); font-weight: 600; border: none; background: transparent; color: var(--muted);
  padding: 0 12px; min-height: 28px; border-radius: var(--r-sm); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-soft); }

.landing { max-width: 640px; text-align: center; display: grid; gap: var(--s-3); justify-items: center; }
.landing__go { display: flex; gap: var(--s-1); width: 100%; max-width: 440px; }
.landing__suffix { display: flex; align-items: center; color: var(--muted); font-size: var(--t-14); }

.spinner { width: 18px; height: 18px; border-radius: 999px; border: 2px solid var(--hairline); border-top-color: var(--text);
  animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* On a phone the tab bar carries the gold +; the page head keeps no second one (the Seal Rule). */
@media (max-width: 820px) { .desk-only, .page__head [data-bell] { display: none !important; } }

/* face check-in (V11) */
.facemsg { font-size: var(--t-28); font-weight: 800; color: var(--text); line-height: 1.2; min-height: 2.4em; display: grid; place-items: center; }
.camera__frame--face { inset: 12% 20%; border-radius: 45%; }
.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--sunken); border-radius: var(--r-md); padding: var(--s-2);
  font-size: var(--t-14); color: var(--body); line-height: 1.5; cursor: pointer; }
.consent input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--text); }

/* V13–V17: three kinds of walk-in, a broker's reason, the optional half of a broker's details */
.keys--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.keys--2 { max-width: 720px; margin: 0 auto; width: 100%; }
@media (max-width: 820px) { .keys--3, .keys--2 { grid-template-columns: 1fr; } }
.bigchoice--short { display: flex; align-items: center; gap: var(--s-2); min-height: 88px; }
.bigchoice[aria-pressed="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
details.more { border-top: 1px solid var(--hairline); padding-top: var(--s-2); }
details.more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: var(--s-1);
  font-weight: 600; color: var(--text); min-height: 32px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary .sw-mark { transform: rotate(45deg); }
@media (pointer: coarse) { details.more > summary { min-height: 44px; } }
