/* ============================================================================
   CheckIn Eagle — static portal styles

   Palette roles (not just colors): deep blue is reserved for THE primary
   action on a screen, selected items, and navigation highlights; midnight
   blue owns heroes/atmosphere; a neutral gray is the soft surface tint;
   Emerald appears ONLY for security/verified moments so a green check
   always means something real. Blue is used with restraint — most of the
   interface leans on spacing, typography, and neutral hierarchy instead.
   Organizations tint the experience through --org-accent, never by
   repainting the platform chrome.
   ========================================================================== */

:root {
  --brand: #1D4ED8;         /* Deep Blue — primary actions, key highlights */
  --brand-bright: #3B82F6;  /* gradient partner for --brand */
  --brand-dark: #1E3A8A;    /* pressed/hover state of --brand */
  --midnight: #172554;      /* Midnight Blue — heroes, headers, atmosphere */
  --green: #10B981;         /* Emerald — verified / success / security ONLY */
  --red: #EF4444;           /* Coral Red — errors, failed verification */
  --amber: #F59E0B;         /* Amber — waiting / pending */
  /* Neutral scale — premium enterprise neutrals (warm, not blue/lavender
     tinted). Semantic aliases below map onto it; use the numbered
     variables directly for anything needing a shade not yet aliased. */
  --neutral-50: #FCFCFD;
  --neutral-100: #F8F9FB;
  --neutral-200: #F2F4F7;
  --neutral-300: #E4E7EC;
  --neutral-400: #D0D5DD;
  --neutral-500: #98A2B3;
  --neutral-600: #667085;
  --neutral-700: #475467;
  --neutral-800: #344054;
  --neutral-900: #101828;

  --bg: var(--neutral-50);      /* Page background */
  --surface: #FFFFFF;           /* Pure White — cards, forms, dialogs */
  --dark: var(--neutral-900);   /* Primary text */
  --muted: var(--neutral-600);  /* Secondary text */
  --border: var(--neutral-300); /* Borders */
  --tint: var(--neutral-100);   /* Secondary sections, card tints, hovers, empty states */
  --toast-bg: #1F2937;

  --grad-primary: linear-gradient(135deg, #3B82F6, #1D4ED8);
  --grad-premium: linear-gradient(150deg, #172554, #1D4ED8 130%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.08);

  --maxw: 480px;

  /* Per-organization accent — set at runtime by main.ts from the org's
     brand_color. It TINTS the reception hero (plaque) rather than
     repainting the platform, so every kiosk feels branded for the client
     without losing Eagle's visual consistency. */
  --org-accent: var(--brand-bright);

  /* Primary CTA gradient — overridden at runtime by the org's brand color. */
  --cta-a: #3B82F6;
  --cta-b: #1D4ED8;
  --cta-c: #1E3A8A;
  --cta-shadow: rgba(var(--brand-rgb), 0.30);

  /* RGB components (no rgba() wrapper) so interactive-element tints below
     can theme-swap via rgba(var(--brand-rgb), X) instead of hardcoding a hex. */
  --brand-rgb: 29, 78, 216;
  --brand-bright-rgb: 59, 130, 246;
}

/* Monochrome theme — an organization opt-in (organizations.theme) that swaps
   the deep-blue brand ramp for neutral graphite/near-black. Set at runtime
   by main.ts as document.documentElement.dataset.theme. A per-org custom
   brand_color (applied as an inline style on :root) still wins over this,
   same as it wins over the default blue theme. */
[data-theme="monochrome"] {
  --brand: #344054;
  --brand-bright: #667085;
  --brand-dark: #101828;
  --midnight: #101828;

  --grad-primary: linear-gradient(135deg, #667085, #344054);
  --grad-premium: linear-gradient(150deg, #101828, #344054 130%);

  --org-accent: var(--brand-bright);

  --cta-a: #475467;
  --cta-b: #344054;
  --cta-c: #101828;
  --cta-shadow: rgba(16, 24, 40, 0.30);

  --brand-rgb: 16, 24, 40;
  --brand-bright-rgb: 102, 112, 133;
}

* { box-sizing: border-box; }

/* The HTML `hidden` attribute must win over component `display` rules
   (e.g. .banner{display:flex}), otherwise hidden elements stay visible. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

/* The reception welcome breaks out of the centered column at width: 100vw,
   which overshoots by the scrollbar width on desktop; clip (not hidden — that
   would break the sticky topbar) the stray horizontal overflow. */
html { overflow-x: clip; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Accessibility: skip link & focus rings ---------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: 12px; }

:focus-visible {
  outline: 3px solid rgba(var(--brand-rgb), 0.55);
  outline-offset: 2px;
}

/* In-page kiosk clock ------------------------------------------------------ */
/* There is deliberately no persistent product header on visitor screens — a
   kiosk is the organization's reception, not a website. The time/date live
   inside the page as a quiet ambient line above the reception card. */
.reception__clock {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 0 14px; font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.reception__clock #kiosk-clock-time { font-weight: 600; color: var(--dark); }
.reception__clock-sep { opacity: 0.5; }

/* Device onboarding (unpaired kiosk) --------------------------------------- */
.onboard-divider {
  display: flex; align-items: center; gap: 12px;
  max-width: 400px; margin: 28px auto 0;
  color: var(--muted); font-size: 12.5px; white-space: nowrap;
}
.onboard-divider::before,
.onboard-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.onboard-links {
  display: flex; gap: 12px; max-width: 400px; margin: 16px auto 0;
}
.onboard-links .btn { flex: 1; text-align: center; text-decoration: none; }
#kiosk-pair .reception__powered { text-align: center; }

/* Banner ------------------------------------------------------------------- */
.banner {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  background: #FEF2F2; color: var(--red);
  padding: 12px 16px; font-size: 14px;
}
.banner__dismiss {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--red); font-weight: 600; font-family: inherit; font-size: 14px;
}

/* Layout ------------------------------------------------------------------- */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 40px;
  position: relative;
}

.screen { display: none; position: relative; animation: fade-in 0.32s ease both; }
.screen.is-active { display: block; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.screen__head { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.screen__title { font-size: 22px; font-weight: 600; margin: 0; color: var(--dark); }

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: none; border: none; cursor: pointer; color: var(--dark);
}
.iconbtn:hover { background: rgba(17, 24, 39, 0.05); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--center { align-items: center; text-align: center; padding-top: 24px; }

.title { font-size: 28px; font-weight: 700; margin: 0; color: var(--dark); }
.subtitle { font-size: 16px; color: var(--muted); margin: 0; }
.lead { font-size: 16px; color: var(--muted); line-height: 1.5; text-align: center; margin: 0 0 28px; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }

/* Segmented pill — the auth screens' sign-in / create-account switch. */
.seg {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--tint); border-radius: var(--radius-full); margin-top: 6px;
}
.seg__btn {
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--muted); background: none; border: none; cursor: pointer;
  padding: 9px 20px; border-radius: var(--radius-full);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.seg__btn:hover { color: var(--dark); }
.seg__btn.is-active {
  background: var(--surface); color: var(--brand);
  box-shadow: 0 2px 8px rgba(27, 22, 54, 0.10);
}

/* .hero / .hero-glow / .hero-icon removed 2026-07-11 — dead CSS from an
   earlier kiosk-landing iteration (no longer referenced by any markup) and
   in violation of the DESIGN.md No-Glow Rule besides. */

/* Admin auth (login / register / org setup) — the reception atmosphere, a
   compact brand tile, and a viewport-centred column so tablets in either
   orientation see the whole screen without scrolling or dead space. */
body.shell-active .eagle-bg { display: none; }

/* Auth screens: no persistent header — a centered card with generous
   whitespace and subtle branding, like a dedicated SaaS sign-in page.
   64px offsets .main's own vertical padding. */
#admin-login, #admin-register, #admin-forgot, #admin-reset { position: relative; }
#admin-login.is-active, #admin-register.is-active, #admin-forgot.is-active, #admin-reset.is-active {
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
}
.auth-mark {
  width: 60px; height: 60px; border-radius: 19px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary); color: #fff;
  box-shadow: 0 12px 26px rgba(var(--brand-rgb), 0.35);
}
.auth-title { font-size: 23px; }
#admin-login .stack--center, #admin-register .stack--center,
#admin-forgot .stack--center, #admin-reset .stack--center { padding-top: 0; gap: 10px; }
#admin-login .card, #admin-register .card, #admin-forgot .card, #admin-reset .card {
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05), 0 24px 48px -28px rgba(17, 24, 39, 0.4);
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--surface);
}

/* Trust line under the CTAs */
.trust {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 20px 0 0; font-size: 12.5px; color: var(--muted);
}
.trust svg { color: var(--green); }

/* ── Digital reception welcome ────────────────────────────────────────────────
   A centered hero instead of a color-blocked split: one solid card carries
   the brand moment (plaque → greeting → organization) above a tiered set of
   actions, on a flat, calm background. The organization appears through its
   logo plaque and the --org-accent tint, never by repainting the platform.
   (Prior to 2026-07-11 this sat on an animated "Eagle atmosphere" background
   — breathing radial-gradient washes and wing-arc shapes. Removed per the
   DESIGN.md No-Glow Rule; trust here comes from calm clarity, not ambient
   decoration.) */
.reception {
  /* Break out of .main's centered 480px column to fill the viewport edge to
     edge — a reception wall, not a form column. */
  position: relative;
  width: 100vw;
  margin: -24px 0 -40px calc(50% - 50vw);
  min-height: calc(100vh - 61px - 57px);
}
.reception.is-active {
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px 44px;
}

/* Flat background layer behind every visitor and auth screen — kept as an
   element (rather than deleted from markup) so main.ts/HTML don't need
   changes, but intentionally styled to do nothing decorative. */
.eagle-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: var(--bg);
}
/* A near-invisible static grain, not glow and not glass: a flat single
   color reads as an empty placeholder, not as calm minimalism. Grain adds
   the same "someone made a deliberate surface choice" signal as a paper
   or film texture would, with zero motion, zero blur, zero light-source
   implication — it doesn't conflict with the No-Glow/No-Glass rules
   because it isn't simulating light or depth at all. baseFrequency is
   high and octaves low so it reads as fine grain, not a pattern. */
.eagle-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.06 0 0 0 0 0.09 0 0 0 0 0.16 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.reception__stage {
  position: relative; width: 100%; max-width: 620px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

/* The hero card: solid surface, generous radius, one soft resting shadow —
   same language as the standard .card component, just larger. */
.reception__card {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(24px, 4.2vw, 40px) clamp(20px, 4.5vw, 44px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 12px 30px -22px rgba(17, 24, 39, 0.35);
}

.reception__plaque {
  width: 80px; height: 80px; border-radius: 24px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--org-accent), var(--brand));
  color: #fff; font-size: 32px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.14);
}
.kiosk-mark__img { width: 100%; height: 100%; object-fit: cover; }

.reception__identity { margin-top: 14px; }
.reception__greeting { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.reception__org {
  margin: 4px 0 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12;
  font-size: clamp(30px, 4.6vw, 44px); color: var(--dark);
}
.reception__msg { margin: 10px auto 0; font-size: 14.5px; color: var(--muted); max-width: 30em; line-height: 1.55; }

/* Org name skeleton — shown until the kiosk resolves its paired/linked
   organization, so we never flash the wrong brand name before swapping it
   out for the real one. */
.reception__org.is-loading {
  color: transparent;
  background: var(--tint);
  border-radius: 10px;
  width: 220px;
  height: 0.72em;
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
}
.reception__org.is-loading::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.2s infinite;
}

.reception__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.reception__chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--tint); color: var(--dark);
  border: 1px solid rgba(var(--brand-rgb), 0.10);
  padding: 7px 13px; border-radius: var(--radius-full);
  font-size: 12.5px; font-weight: 500;
}
.reception__chip svg { color: var(--brand); }
.reception__dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); }
.reception__dot--closed { background: #FBBF24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.8); }

.reception__actions {
  width: 100%; max-width: 460px;
  display: flex; flex-direction: column; gap: 12px; margin-top: 22px;
}

.reception .linklike { color: var(--brand); }

.reception__phone { display: inline-flex; align-items: center; gap: 14px; }
.reception__phone-qr { flex: 0 0 auto; padding: 7px; background: #fff; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 10px 24px rgba(27, 22, 54, 0.08); line-height: 0; }
.reception__phone-qr img { display: block; width: 72px; height: 72px; }
.reception__phone-text { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.reception__phone-title { font-size: 14px; font-weight: 600; color: var(--dark); }
.reception__phone-sub { font-size: 12.5px; color: var(--muted); }

.reception__powered {
  margin: 0; text-align: center; font-size: 11px; color: var(--muted);
  opacity: 0.75; letter-spacing: 0.02em;
}
.reception__powered strong { font-weight: 600; }

/* .btn-hero and its cta-halo pulsing-glow keyframe removed 2026-07-11 —
   dead CSS (no longer referenced by any markup) and in violation of the
   DESIGN.md No-Glow Rule besides. */

/* Role-based entry tiles — the fork that makes the kiosk purpose-built.
   The primary "visiting" tile carries Eagle's gradient; secondary intents
   (invite, delivery) are calmer soft cards. */
.intent {
  display: flex; align-items: center; gap: 14px; width: 100%; font-family: inherit;
  text-align: left; cursor: pointer; border-radius: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.intent--primary {
  padding: 20px 22px; border: none; color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, var(--cta-a) 0%, var(--cta-b) 48%, var(--cta-c) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 14px 30px var(--cta-shadow);
  animation: cta-halo 4s ease-in-out infinite;
}
.intent--primary:hover { transform: translateY(-3px); }
.intent--primary:active { transform: scale(0.98); }
.intent__icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.18); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.intent__label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.intent__title { font-size: 17px; font-weight: 600; color: #fff; }
.intent__sub { font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.intent__chevron { flex: 0 0 auto; color: rgba(255, 255, 255, 0.8); }

.intent-row { display: flex; gap: 12px; }
.intent--sm {
  flex: 1; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 16px; background: rgba(255, 255, 255, 0.82); border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(27, 22, 54, 0.04);
}
.intent--sm:hover { border-color: var(--brand-bright); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(27, 22, 54, 0.09); }
.intent--sm:active { transform: scale(0.98); }
.intent--sm .intent__icon { width: 40px; height: 40px; border-radius: 13px; background: var(--tint); color: var(--brand); }
.intent--sm .intent__title { font-size: 14.5px; font-weight: 600; color: var(--dark); }
.intent--sm .intent__sub { font-size: 12px; color: var(--muted); }

.field-optional { font-weight: 500; color: var(--muted); }

.kiosk-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: rgba(243, 239, 252, 0.7); border: none; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted);
  padding: 13px; border-radius: 18px; transition: background 0.2s ease, color 0.2s ease;
}
.kiosk-secondary:hover { background: var(--tint); color: var(--dark); }

/* Short kiosk screens: tighten the hero so every action stays above the fold. */
@media (max-height: 740px) {
  .reception.is-active { padding: 20px 20px 28px; }
  .reception__card { padding: 24px clamp(18px, 4vw, 36px); }
  .reception__plaque { width: 64px; height: 64px; border-radius: 20px; }
  .reception__identity { margin-top: 14px; }
  .reception__actions { margin-top: 18px; gap: 10px; }
}

/* Staggered entrance for hero children */
.reveal {
  opacity: 0; transform: translateY(14px);
  animation: reveal 0.5s ease forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 60ms);
}
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* Buttons ------------------------------------------------------------------ */
.btn {
  font-family: inherit; font-size: 16px; font-weight: 600;
  border-radius: var(--radius-full); border: 2px solid transparent;
  min-height: 56px; padding: 0 24px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(var(--brand-rgb), 0.28); }
.btn--primary:hover:not(:disabled) { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(var(--brand-rgb), 0.34); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover:not(:disabled) { background: rgba(var(--brand-rgb), 0.06); transform: translateY(-1px); }
.btn--danger { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(239, 68, 68, 0.28); }
.btn--danger:hover:not(:disabled) { background: #DC2626; transform: translateY(-1px); }
.btn--text {
  background: none; border: none; min-height: 44px; width: auto;
  color: var(--brand); font-weight: 500; font-size: 14px;
}
.btn--text:disabled { color: var(--muted); }

.actions { width: 100%; }
.actions--stack { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; width: 100%; }

.datetime-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--tint); color: var(--dark);
  padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 14px; margin-bottom: 20px;
}
.datetime-chip .dot { color: var(--muted); }

/* Cards & forms ------------------------------------------------------------ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 12px 30px -22px rgba(17, 24, 39, 0.35);
}
.form { display: flex; flex-direction: column; gap: 16px; }

.form-section { display: flex; flex-direction: column; gap: 16px; }
.form-section + .form-section { padding-top: 20px; border-top: 1px solid var(--border); }
.form-section__title {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--dark); }
.field input {
  width: 100%; min-width: 0;
  font-family: inherit; font-size: 15px; color: var(--dark);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 15px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: rgba(82, 97, 98, 0.55); }
.field input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15);
}
.field input[aria-invalid="true"] { border-color: var(--red); }

/* Host picker — replaces a native <datalist>, which can't show a status/
   department subtitle and can't be styled at all. */
.host-combo { position: relative; }
.host-dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  max-height: 260px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
  padding: 6px;
}
.host-dropdown__item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 10px 10px; border-radius: 8px; cursor: pointer;
}
.host-dropdown__item:hover, .host-dropdown__item.is-active { background: var(--tint); }
.host-dropdown__name { font-size: 14px; font-weight: 600; color: var(--dark); }
.host-dropdown__meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.host-dropdown__empty { padding: 10px; font-size: 13px; color: var(--muted); }

/* Logo / background image upload — sits alongside the URL field so a
   hosted-URL paste still works, but importing a local file no longer
   requires one. */
.image-upload-row { display: flex; align-items: center; gap: 12px; }
.image-upload-preview {
  width: 44px; height: 44px; border-radius: var(--radius-md); flex: 0 0 auto;
  object-fit: cover; border: 1px solid var(--border); background: var(--tint);
}
.image-upload-controls { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: center; }
.image-upload-controls input { flex: 1; min-width: 0; }
.image-upload-btn { flex: 0 0 auto; cursor: pointer; }

.grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

.err { color: var(--red); font-size: 12px; margin: 0; min-height: 0; }
.err:empty { display: none; }
.err--center { text-align: center; min-height: 18px; }
.hint--center { text-align: center; }
.hint--center:empty { display: none; }

/* OTP method cards --------------------------------------------------------- */
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.method {
  font-family: inherit; cursor: pointer; text-align: center;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.045);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}
.method:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(17, 24, 39, 0.09); }
.method:active { transform: scale(0.98); }
.method.is-selected {
  border-color: var(--brand); border-width: 2px;
  box-shadow: 0 10px 24px rgba(var(--brand-rgb), 0.2);
}
.method__icon {
  width: 76px; height: 76px; border-radius: var(--radius-full);
  background: rgba(var(--brand-rgb), 0.1); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.method__title { font-size: 16px; font-weight: 600; color: var(--dark); }
.method__sub { font-size: 13px; color: var(--muted); word-break: break-word; }

.center-spinner { display: flex; justify-content: center; margin-top: 32px; }

/* OTP inputs --------------------------------------------------------------- */
.otp-inputs { display: flex; gap: 8px; justify-content: center; }
.otp-cell {
  width: 50px; height: 58px; text-align: center;
  font-family: inherit; font-size: 22px; font-weight: 600; color: var(--dark);
  border: 1.5px solid var(--border); border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(27, 22, 54, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.otp-cell:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15);
}
.otp-cell.is-error { border-color: var(--red); }
.countdown { font-size: 28px; font-weight: 600; color: var(--dark); margin: 4px 0; }

/* Code display ------------------------------------------------------------- */
.code-card { text-align: center; display: flex; flex-direction: column; gap: 12px; width: 100%; }
.code-card__label { font-size: 13px; font-weight: 500; color: var(--muted); }
.code-card__code {
  font-size: 36px; font-weight: 700; letter-spacing: 8px;
  color: var(--dark); font-variant-numeric: tabular-nums;
}
.qr-card { display: inline-flex; padding: 16px; }
.qr-img { display: block; width: 180px; height: 180px; }

.code-input {
  font-family: inherit; font-size: 24px; font-weight: 600; letter-spacing: 8px;
  text-align: center; text-transform: uppercase; color: var(--dark);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 20px; width: 100%; max-width: 320px;
}
.code-input::placeholder { color: rgba(82, 97, 98, 0.4); letter-spacing: 8px; }
.code-input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15);
}

.input-plain {
  font-family: inherit; font-size: 16px; color: var(--dark); text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 15px 18px; width: 100%; max-width: 340px;
}
.input-plain:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15); }

/* ── Visit Pass (success) ─────────────────────────────────────────────────────
   The peak moment: a designed pass the visitor keeps, not a code dump. The
   emerald check is the ONE place green appears in the flow — it earns its
   meaning as "verified / you're in". */
.pass-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 400px; margin: 0 auto; padding-top: 8px; }
.pass-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.pass-check {
  width: 68px; height: 68px; border-radius: var(--radius-full);
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.4);
}
.pass-title { margin: 4px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--dark); }
.pass-notified {
  margin: 0; font-size: 14px; font-weight: 600; color: var(--green);
  display: inline-flex; align-items: center; gap: 6px;
}
.pass-notified::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.pass-ticket {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-top: 6px;
}
.pass-ticket__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 20px; background: var(--grad-premium); color: #fff;
}
.pass-ticket__label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.pass-ticket__org { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-top: 2px; }
.pass-ticket__mark {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--radius-sm); overflow: hidden;
  background: #fff; color: var(--org-accent); font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.pass-ticket__mark img { width: 100%; height: 100%; object-fit: cover; }

.pass-ticket__body { display: flex; gap: 16px; padding: 20px; align-items: center; }
.pass-qr { flex: 0 0 auto; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); }
.pass-qr .qr-img { width: 110px; height: 110px; }
.pass-rows { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pass-rows div { display: flex; flex-direction: column; gap: 1px; }
.pass-rows dt { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pass-rows dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--dark); }

.pass-ticket__perforation {
  height: 0; border-top: 2px dashed var(--border); margin: 0 16px; position: relative;
}
.pass-ticket__code { padding: 16px 20px 20px; text-align: center; }
.pass-code-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pass-code { display: block; margin-top: 4px; font-size: 34px; font-weight: 800; letter-spacing: 8px; color: var(--dark); font-variant-numeric: tabular-nums; }

.pass-emailed { margin: 4px 0 0; font-size: 13px; color: var(--green); font-weight: 600; text-align: center; }
.pass-tip { text-align: center; }

/* Success ------------------------------------------------------------------ */
.success-badge {
  width: 88px; height: 88px; border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.success-badge--green { width: 80px; height: 80px; }
.pop { animation: pop 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.summary { width: 100%; display: flex; flex-direction: column; gap: 0; }
.summary__row { display: flex; justify-content: space-between; padding: 12px 0; }
.summary__row + .summary__row { border-top: 1px solid var(--border); }
.summary__label { color: var(--muted); font-size: 14px; }
.summary__value { color: var(--dark); font-size: 14px; font-weight: 600; }

/* Button spinner ----------------------------------------------------------- */
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff; display: inline-block;
  animation: spin 0.7s linear infinite;
}
.center-spinner .spinner { border-color: rgba(var(--brand-rgb), 0.25); border-top-color: var(--brand); }
.btn--outline .spinner, .btn--text .spinner {
  border-color: rgba(var(--brand-rgb), 0.3); border-top-color: var(--brand);
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { color: transparent; position: relative; }
.btn.is-loading .spinner { position: absolute; top: 50%; left: 50%; margin: -11px 0 0 -11px; }

/* Toasts ------------------------------------------------------------------- */
.toast-host {
  position: fixed; left: 0; right: 0; bottom: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none; z-index: 50; padding: 0 12px;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--toast-bg); color: #fff;
  padding: 12px 16px; border-radius: var(--radius-md);
  box-shadow: var(--shadow); font-size: 13.5px; font-weight: 500;
  width: 100%; max-width: 420px; pointer-events: auto;
  animation: toast-in 0.28s ease both;
}
.toast.is-out { animation: toast-out 0.24s ease forwards; }
.toast__chip {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.toast--success .toast__chip { background: rgba(52, 211, 153, 0.16); color: #34D399; }
.toast--error   .toast__chip { background: rgba(248, 113, 113, 0.16); color: #F87171; }
.toast--warning .toast__chip { background: rgba(251, 191, 36, 0.16); color: #FBBF24; }
.toast--info    .toast__chip { background: rgba(96, 165, 250, 0.16); color: #60A5FA; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }

/* Footer ------------------------------------------------------------------- */
/* Responsive --------------------------------------------------------------- */
@media (min-width: 620px) {
  .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .otp-cell { width: 40px; height: 50px; font-size: 20px; }
  .methods { grid-template-columns: 1fr; }
}

/* On wide desktop viewports the visitor flow (kiosk-width by design) would
   otherwise float as a bare card in a sea of blank page. Give it a soft
   branded backdrop and a touch more breathing room instead of leaving the
   rest of the viewport looking unfinished. */
@media (min-width: 860px) {
  .visitor-shell {
    background:
      radial-gradient(50% 45% at 12% -10%, rgba(var(--brand-rgb), 0.10), transparent 60%),
      radial-gradient(40% 35% at 100% 100%, rgba(16, 185, 129, 0.08), transparent 60%),
      var(--bg);
    min-height: 100vh;
  }
  .visitor-shell .main { max-width: 560px; padding-top: 56px; }
  .visitor-shell .card { box-shadow: var(--shadow); }
  /* The reception welcome is full-bleed — cancel the desktop breathing room
     so the brand panel sits flush against the topbar. */
  .visitor-shell .reception { margin-top: -56px; }
}

/* ============================================================================
   Admin console
   ========================================================================== */
.main--wide { max-width: 760px; }

/* ── Workspace app-shell ──────────────────────────────────────────────────────
   A persistent sidebar + content region instead of a topbar and pill tabs, so
   the console reads as one intentional workspace (Linear/Stripe register)
   rather than a stack of widgets. Restraint over color: navigation, status and
   metrics lean on type, weight, spacing and hairlines — brand indigo is spent
   only on the single active nav item and primary actions. */
body.shell-active .main { max-width: none; padding: 0; }
body.shell-active #admin-dashboard.screen { animation: none; }

.shell {
  display: grid; grid-template-columns: 244px 1fr;
  width: 100vw; margin-left: calc(50% - 50vw);
  min-height: 100vh; background: var(--bg);
}
/* No persistent nav column — used by Reception, whose only "sections" are
   the workspace itself and a couple of header actions, not a full console. */
.shell--flat { grid-template-columns: 1fr; }
.shell-header__brand { display: flex; align-items: center; gap: 10px; }
.shell-brand__mark--sm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  background: var(--midnight); color: #fff;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.shell-nav {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 14px; background: var(--surface);
  border-right: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh;
}
.shell-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; }
.shell-brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--midnight); color: #fff;
}
.shell-brand__text { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--dark); }

.shell-menu { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.shell-menu__item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--muted);
  background: none; border: none; cursor: pointer; text-align: left; text-decoration: none;
  padding: 9px 11px; border-radius: 9px;
  transition: background 0.13s ease, color 0.13s ease;
}
.shell-menu__item svg { flex: 0 0 auto; opacity: 0.85; }
.shell-menu__item:hover { background: var(--tint); color: var(--dark); }
.shell-menu__item.is-on { background: var(--tint); color: var(--brand); font-weight: 600; }
.shell-menu__item.is-on svg { opacity: 1; }

.shell-account {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 10px 4px; border-top: 1px solid var(--border);
}
.shell-account__id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.shell-account__org { font-size: 13px; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell-account__portal { font-size: 11.5px; color: var(--muted); text-decoration: none; }
.shell-account__portal:hover { color: var(--brand); }
.shell-account__logout {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.shell-account__logout:hover { background: var(--tint); color: var(--dark); }

.shell-body { min-width: 0; display: flex; flex-direction: column; }
.shell-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 32px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.shell-header__title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--dark); }
.shell-header__sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.shell-content { padding: 28px 32px 48px; max-width: 1080px; }
.shell-content--wide { max-width: 1240px; }

/* ── Receptionist Workspace ───────────────────────────────────────────────────
   A workflow board for the front desk: search, live counts, who's here, who's
   expected. Same calm surface + elevation language as the admin shell. */
.rec-header-actions { display: flex; align-items: center; gap: 10px; }
.btn--inline { width: auto; min-height: 40px; padding: 0 16px; font-size: 14px; }

.rec-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0 16px; height: 52px; color: var(--muted); margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.rec-search input { flex: 1; border: none; outline: none; background: none; font-family: inherit; font-size: 15px; color: var(--dark); height: 100%; }

.rec-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.rec-metric {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; cursor: pointer; text-align: left; font-family: inherit;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.rec-metric:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -14px rgba(17, 24, 39, 0.3); }
.rec-metric.is-on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, 0 10px 24px -16px rgba(var(--brand-rgb), 0.5); }
.rec-metric__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: 0.5; }
.rec-metric__dot--in { background: var(--green); opacity: 1; }
.rec-metric__dot--expected { background: var(--amber); opacity: 1; }
.rec-metric__dot--pending { background: var(--amber); opacity: 1; }
/* Draws the eye when someone's actually stuck — not just mid-OTP for the
   usual couple of seconds. */
.rec-metric--alert { border-color: var(--amber); background: rgba(245, 158, 11, 0.06); }
.rec-metric--alert .rec-metric__num { color: var(--amber); }
.rec-metric__num { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--dark); line-height: 1; }
.rec-metric__label { font-size: 12.5px; font-weight: 600; color: var(--muted); }

.rec-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.rec-side { display: flex; flex-direction: column; gap: 18px; }

.rec-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 12px 30px -22px rgba(17, 24, 39, 0.35);
  overflow: hidden;
}
.rec-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 16px 18px 12px;
}
.rec-panel__title { margin: 0; font-size: 15px; font-weight: 700; color: var(--dark); }
.rec-panel__count { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--tint); padding: 2px 8px; border-radius: var(--radius-full); }
.rec-panel__link { font-size: 12.5px; font-weight: 600; color: var(--brand); text-decoration: none; }
.rec-panel__link:hover { text-decoration: underline; }

.rec-list { display: flex; flex-direction: column; }
.rec-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-top: 1px solid var(--border);
}
.rec-list--compact .rec-row { padding: 10px 18px; }
.rec-row__avatar {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: var(--radius-full);
  background: var(--tint); color: var(--midnight); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rec-row__body { flex: 1; min-width: 0; }
.rec-row__name { font-size: 14.5px; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-row__meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-row__time { flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.rec-row__end { flex: 0 0 auto; }
.rec-row__action {
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--brand);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 6px 14px; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease;
}
.rec-row__action:hover { background: var(--tint); border-color: var(--brand); }

.rec-empty { padding: 26px 18px; text-align: center; font-size: 13px; color: var(--muted); }

.rec-activity { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-top: 1px solid var(--border); }
.rec-activity__dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: 0.5; }
.rec-activity__dot--in { background: var(--green); opacity: 1; }
.rec-activity__text { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-activity__text strong { color: var(--dark); font-weight: 600; }
.rec-activity__time { flex: 0 0 auto; font-size: 11.5px; color: var(--muted); }

/* Modal dialogs — the walk-in check-in form, and the themed confirm/prompt
   dialogs in dialog.ts that replace native window.confirm()/prompt(). */
.rec-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rec-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, 0.5); backdrop-filter: blur(2px); }
.rec-modal__panel {
  position: relative; width: 100%; max-width: 520px; background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: 0 30px 60px -20px rgba(17, 24, 39, 0.5);
  padding: 22px; animation: pop 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.rec-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rec-modal__head h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--dark); }
.rec-modal__actions { display: flex; gap: 10px; margin-top: 6px; }
.rec-modal__actions .btn { flex: 1; }

@media (max-width: 860px) {
  .rec-metrics { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rec-metric { padding: 12px; }
  .rec-metric__num { font-size: 24px; }
  .rec-grid { grid-template-columns: 1fr; }
  .rec-header-actions .chip-btn span, .rec-header-actions #rec-refresh { display: none; }
}

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .shell-nav {
    position: static; height: auto; flex-direction: row; align-items: center;
    gap: 8px; padding: 10px 12px; border-right: none; border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }
  .shell-nav::-webkit-scrollbar { display: none; }
  .shell-brand { padding: 0 8px 0 4px; flex: 0 0 auto; }
  .shell-brand__text { display: none; }
  .shell-menu { flex-direction: row; gap: 2px; flex: 1; }
  .shell-menu__item span { display: none; }
  .shell-menu__item { padding: 9px; }
  .shell-menu__item.is-on span { display: inline; }
  .shell-account { border-top: none; padding: 0; flex: 0 0 auto; }
  .shell-account__id { display: none; }
  .shell-header { padding: 16px 18px; }
  .shell-content { padding: 20px 18px 40px; }
}

/* Password affix input */
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix input { flex: 1; padding-right: 46px; width: 100%; }
.affix-btn {
  position: absolute; right: 8px; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: none; background: none; cursor: pointer;
  color: var(--muted); border-radius: var(--radius-sm);
}
.affix-btn:hover { background: rgba(17, 24, 39, 0.05); }

.back-link { text-align: center; color: var(--muted); font-size: 13px; text-decoration: none; }
.back-link:hover { color: var(--brand); }

/* Consent line under visitor-facing forms (check-in, delivery) — a plain
   disclosure, not a blocking checkbox, so the kiosk stays a fast 20-second
   flow while still surfacing the privacy policy at the point of collection. */
.consent-line { font-size: 12.5px; color: var(--muted); text-align: center; margin: 2px 0 0; }
.consent-line a { color: var(--muted); text-decoration: underline; }
.consent-line a:hover { color: var(--brand); }

/* Legal pages (privacy policy, terms of service) — a plain reading column,
   no persistent chrome, consistent with the rest of the site's auth pages. */
.legal { max-width: 700px; margin: 0 auto; padding: 48px 24px 80px; }
.legal__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 28px;
}
.legal__back:hover { color: var(--brand); }
.legal__mark { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.legal h1 { font-size: 28px; font-weight: 700; color: var(--dark); margin: 0 0 6px; }
.legal .legal__updated { font-size: 13px; color: var(--muted); margin: 0 0 36px; }
.legal h2 { font-size: 18px; font-weight: 600; color: var(--dark); margin: 36px 0 10px; }
.legal p { font-size: 15px; line-height: 1.7; color: var(--dark); margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { font-size: 15px; line-height: 1.7; color: var(--dark); margin: 0 0 6px; }
.legal a { color: var(--brand); }
.legal strong { font-weight: 600; }

.linklike {
  font-family: inherit; font-size: inherit; font-weight: 600; color: var(--brand);
  background: none; border: none; cursor: pointer; padding: 0;
}
.linklike:hover { text-decoration: underline; }

/* Dashboard header */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-org { margin: 2px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.dash-actions { display: flex; gap: 8px; }
.section-lede { margin: 0; color: var(--muted); font-size: 14px; }
.section-divider { height: 1px; background: var(--border); margin: 28px 0 22px; }

.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; font-family: inherit;
  font-size: 13px; font-weight: 600; color: var(--dark); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer;
  padding: 8px 12px; border-radius: var(--radius-full); transition: background 0.15s ease;
}
.chip-btn:hover { background: var(--tint); }
.chip-btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip-btn--primary:hover { background: var(--brand-dark); }

/* Metric cards — number-forward and calm. Hierarchy comes from type scale and
   a hairline, not from three saturated color tiles. The icon is a single quiet
   lavender chip, uniform across metrics. */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px -16px rgba(17, 24, 39, 0.18);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.stat-card:hover { transform: translateY(-1px); box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05), 0 16px 34px -18px rgba(17, 24, 39, 0.28); }
.stat-icon {
  width: 34px; height: 34px; border-radius: 10px; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--midnight);
}
/* Legacy color variants collapse to the single calm treatment. */
.stat-icon--brand, .stat-icon--green, .stat-icon--muted, .stat-icon--amber { background: var(--tint); color: var(--midnight); }
.stat-num { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--dark); line-height: 1; }
.stat-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--muted); }

/* Controls */
.controls { display: flex; align-items: stretch; gap: 10px; margin-bottom: 12px; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 8px; height: 46px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0 12px; color: var(--muted);
}
.search-box input {
  flex: 1; border: none; outline: none; background: none; font-family: inherit;
  font-size: 14px; color: var(--dark); height: 100%;
}
.toggle-btn {
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; height: 46px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  border-radius: var(--radius-md); padding: 0 16px; white-space: nowrap;
}
.toggle-btn.is-on { background: rgba(16, 185, 129, 0.12); border-color: var(--green); color: var(--green); }

.date-row {
  display: flex; gap: 12px; margin-bottom: 18px; padding: 12px;
  background: var(--tint); border-radius: var(--radius-md);
}
.date-field { position: relative; flex: 1; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.date-field input {
  font-family: inherit; font-size: 14px; color: var(--dark);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; background: var(--surface);
}
.date-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15); }

/* Custom themed date picker — replaces the browser-native <input type=date>
   popover, which renders with OS chrome that clashes with the rest of the UI. */
.date-trigger {
  display: flex; align-items: center; gap: 8px; width: 100%; font-family: inherit;
  font-size: 14px; font-weight: 500; color: var(--muted); text-align: left; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.date-trigger svg { flex: 0 0 auto; color: var(--muted); }
.date-trigger.is-set { color: var(--dark); font-weight: 600; }
.date-trigger:hover { border-color: var(--brand); }
.date-trigger:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15); }

.dp-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30;
  width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.16); padding: 14px; animation: fade-in 0.15s ease both;
}
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-month { font-size: 13.5px; font-weight: 700; color: var(--dark); }
.dp-nav {
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border: none; border-radius: var(--radius-sm); background: none; color: var(--muted); cursor: pointer;
}
.dp-nav:hover { background: var(--tint); color: var(--dark); }
.dp-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 2px; }
.dp-weekdays span { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--dark);
  border: none; border-radius: var(--radius-sm); background: none; cursor: pointer;
}
.dp-cell:hover { background: var(--tint); }
.dp-cell--pad { visibility: hidden; cursor: default; }
.dp-cell--today { font-weight: 700; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.dp-cell--selected, .dp-cell--selected:hover { background: var(--brand); color: #fff; font-weight: 700; box-shadow: none; }
.dp-foot { display: flex; justify-content: flex-end; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.dp-clear {
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: none; border: none; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm);
}
.dp-clear:hover { background: var(--tint); color: var(--dark); }

/* Log list */
.logs { display: flex; flex-direction: column; gap: 10px; }
.log-card {
  display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 16px; animation: fade-in 0.3s ease both;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.045); transition: box-shadow 0.15s ease;
}
.log-card:hover { box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08); }
.avatar {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: var(--radius-full);
  background: rgba(var(--brand-rgb), 0.12); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px;
}
.log-main { flex: 1; min-width: 0; }
.log-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.log-name { font-size: 15px; font-weight: 600; color: var(--dark); }
.log-sub { font-size: 13px; color: var(--muted); margin-top: 1px; }
.log-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.log-times { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 4px; }
/* Status as a dot + label, not a color block — legible without leaning on fill. */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  padding: 3px 10px 3px 8px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--in { color: var(--green); border-color: color-mix(in srgb, var(--green) 30%, var(--border)); }
.badge--out { color: var(--muted); }

.state { text-align: center; color: var(--muted); padding: 40px 16px; }
.state p { margin: 0 0 8px; }

/* Empty states: icon + title + optional helper text + optional CTA */
.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; padding: 48px 20px;
}
.empty-state__icon {
  width: 56px; height: 56px; border-radius: var(--radius-full);
  background: var(--tint); color: var(--muted);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.empty-state__title { font-size: 15px; font-weight: 600; color: var(--dark); margin: 0; }
.empty-state__sub { font-size: 13px; color: var(--muted); margin: 0; max-width: 340px; line-height: 1.5; }
.empty-state__cta { margin-top: 10px; }
.btn--sm { width: auto; min-height: 40px; padding: 0 20px; font-size: 13.5px; }

/* Skeleton rows */
.skeleton { pointer-events: none; }
.sk { background: #EDF1F4; border-radius: 6px; position: relative; overflow: hidden; }
.sk::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: translateX(-100%); animation: shimmer 1.2s infinite;
}
.sk-avatar { width: 40px; height: 40px; border-radius: var(--radius-full); flex: 0 0 auto; }
.sk-line { height: 12px; margin: 6px 0; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

@media (max-width: 520px) {
  .stats { gap: 8px; }
  .stat-card { padding: 14px 10px; gap: 8px; }
  .stat-icon { width: 38px; height: 38px; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 11px; }
  .controls { flex-direction: column; align-items: stretch; }
  .toggle-btn { width: 100%; }
  .main--wide { padding-left: 14px; padding-right: 14px; }
  .admin-tabs {
    margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px;
    mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
  }
  .tab-btn { padding: 9px 14px; font-size: 13px; }
}

/* Subtle admin link on the visitor welcome screen */
.admin-link {
  position: absolute; top: 14px; right: 16px; z-index: 21;
  font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 6px 10px; border-radius: var(--radius-sm);
}
.admin-link:hover { background: rgba(17, 24, 39, 0.05); color: var(--dark); }
/* In locked-down kiosk/desk mode, hide the admin entry point. */
body.kiosk .admin-link { display: none; }

/* Kiosk mode: the reception fills the viewport edge to edge. A visitor
   should see the organization's reception, not a webpage; Eagle's presence
   is the small "Powered by" line in the panel. */
body.kiosk .reception { min-height: 100vh; margin-top: -24px; margin-bottom: -40px; }
/* Desktop visitor-shell pads .main to 56px; cancel the larger offset too so
   the reception wall sits flush at the viewport top in kiosk mode. */
@media (min-width: 860px) {
  body.visitor-shell.kiosk .reception { margin-top: -56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================================
   Admin console — tabs, kiosks, analytics, invitations, settings, security
   ========================================================================== */
.admin-tabs {
  display: flex; gap: 8px; overflow-x: auto; margin: 4px 0 24px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border); -webkit-overflow-scrolling: touch;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  font-family: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 10px 18px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.tab-btn:hover { background: var(--tint); color: var(--dark); }
.tab-btn.is-on {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: 0 6px 16px rgba(var(--brand-rgb), 0.28); transform: translateY(-1px);
}

.admin-tabs--mini { margin: 0; padding-bottom: 0; border-bottom: none; }
.admin-tabs--mini .tab-btn { padding: 6px 12px; font-size: 12px; }

.tab-panel { display: none; animation: fade-in 0.28s ease both; }
.tab-panel.is-active { display: block; }

.panel-title { font-size: 18px; font-weight: 600; color: var(--dark); margin: 0 0 4px; }
.panel-subtitle { font-size: 14px; font-weight: 600; color: var(--dark); display: block; margin-bottom: 12px; }

.report-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 8px; }

/* Kiosks -------------------------------------------------------------------- */
.kiosk-card { display: flex; align-items: flex-start; gap: 12px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; margin-top: 5px; }
.status-dot--online { background: var(--green); }
.status-dot--offline { background: var(--muted); }
.status-dot--disabled { background: var(--red); }
.status-dot--pending { background: var(--amber); }
.kiosk-status-label { font-size: 12px; font-weight: 600; }
.kiosk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.detail-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.detail-row span:first-child { color: var(--muted); }
.detail-row span:last-child { font-weight: 600; color: var(--dark); }

/* Charts ---------------------------------------------------------------------- */
.chart-card { margin-bottom: 16px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.chart-head .panel-subtitle { margin-bottom: 0; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 130px; }
.bars--hours { height: 90px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; }
/* Charts read as data, not decoration: a single indigo, differentiated by
   depth/opacity rather than a second hue (emerald stays reserved for status). */
.bar-fill { width: 100%; border-radius: 4px 4px 0 0; background: rgba(var(--brand-rgb), 0.82); transition: height 0.3s ease; }
.bar-fill--muted { background: rgba(var(--brand-rgb), 0.12); }
.bar-fill--secondary { background: rgba(49, 46, 129, 0.55); }
.bar-fill--secondary.bar-fill--muted { background: rgba(49, 46, 129, 0.12); }
.bar-label { font-size: 9px; color: var(--muted); margin-top: 4px; }
.bar-value { font-size: 9px; color: var(--muted); }

.hbar-row { margin-bottom: 12px; }
.hbar-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.hbar-top span:first-child { color: var(--dark); }
.hbar-top span:last-child { color: var(--muted); }
.hbar-track { height: 8px; border-radius: 4px; background: #F2F2F2; overflow: hidden; }
.hbar-fill { height: 100%; background: var(--brand); border-radius: 4px; transition: width 0.3s ease; }
.hbar-fill--green { background: rgba(49, 46, 129, 0.55); }

/* Settings -------------------------------------------------------------------- */
.settings-card { margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }

/* Save Settings sits in a sticky footer bar rather than at the natural end
   of a long card stack, so it's reachable without scrolling past ~9 cards
   first — a settings screen used occasionally shouldn't make its one
   required action a scavenger hunt. */
.settings-save-bar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; justify-content: flex-end;
  margin: 8px -32px -48px; padding: 16px 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.settings-save-bar .btn { width: auto; min-width: 200px; }
@media (max-width: 720px) {
  .settings-save-bar { margin: 8px -18px -40px; padding: 14px 18px; }
  .settings-save-bar .btn { width: 100%; }
}
.field-label { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: -4px; }
.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; display: flex; align-items: center; justify-content: center;
  color: #fff; transition: border-color 0.15s ease;
}
.swatch.is-selected { border-color: var(--dark); }

.switch-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--dark); cursor: pointer; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__track {
  position: absolute; inset: 0; background: var(--border); border-radius: var(--radius-full);
  transition: background 0.15s ease; cursor: pointer;
}
.switch__track::before {
  content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform 0.15s ease;
}
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::before { transform: translateX(18px); }

/* Security ---------------------------------------------------------------------- */
.lockdown-card { border-color: var(--border); }
.lockdown-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lockdown-card.is-active { background: rgba(186, 26, 26, 0.05); border-color: var(--red); }
.lockdown-card.is-active .panel-subtitle,
.lockdown-card.is-active .hint { color: var(--red); }
.lockdown-card.is-active .switch input:checked + .switch__track { background: var(--red); }

.coming-soon-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding: 6px 0; }

.audit-row { display: flex; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 12.5px; }
.audit-row:first-child { border-top: none; }
.audit-row .audit-main { color: var(--dark); font-weight: 500; }
.audit-row .audit-meta { color: var(--muted); display: block; }

/* ── Brand color picker (admin settings) ──────────────────────────────────── */
.color-picker-row { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }

/* Custom saturation/value + hue picker, replacing the browser-native
   <input type="color"> swatch button, which renders inconsistently (and
   small/ugly) across browsers. See src/color-picker.ts. */
.color-picker { position: relative; }
.color-picker__trigger {
  width: 56px; height: 42px; padding: 3px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  display: block;
}
.color-picker__swatch { display: block; width: 100%; height: 100%; border-radius: 8px; background: var(--brand); }
.color-picker__panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 20;
  width: 200px; padding: 14px; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.14);
}
.color-picker__sv {
  position: relative; width: 100%; height: 140px; border-radius: 8px;
  cursor: crosshair; touch-action: none;
}
.color-picker__sv-thumb {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.3);
  pointer-events: none;
}
.color-picker__hue {
  position: relative; width: 100%; height: 14px; border-radius: var(--radius-full);
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  cursor: pointer; touch-action: none;
}
.color-picker__hue-thumb {
  position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: #fff; border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.3);
  pointer-events: none;
}
.color-hex {
  width: 120px; font-family: inherit; font-size: 14px; color: var(--dark);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  text-transform: uppercase;
}
.color-hex:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15); }
.color-preview {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
}
.color-preview__chip {
  width: 26px; height: 26px; border-radius: 9px;
  background: var(--org-accent); border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ── Host availability ─────────────────────────────────────────────────────── */
.host-status-select {
  font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--dark);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px;
  background: var(--surface); cursor: pointer;
}
.host-status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 2px; }
.host-status-dot--available { background: var(--green); }
.host-status-dot--away { background: var(--amber); }
