html, body {
  margin: 0; padding: 0;
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font);
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

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

.kiosk-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: var(--liaise-navy);
  color: #fff;
}
.kiosk-header .logo { height: 36px; }
.kiosk-header .home-name { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em; }

.kiosk-main {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}

.kiosk-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 10px 28px;
  font-size: 0.85rem; color: var(--muted);
  border-top: 1px solid var(--border);
  background: #fff;
}

/* Easy-read toggle in kiosk footer */
.easy-read-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--liaise-navy);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit; font-size: 0.9rem; cursor: pointer;
}
.easy-read-toggle .er-icon {
  font-weight: 700; color: var(--liaise-navy);
}
.easy-read-toggle[aria-pressed="true"] {
  background: var(--liaise-navy); color: #fff; border-color: var(--liaise-navy);
}
.easy-read-toggle[aria-pressed="true"] .er-icon { color: #fff; }

/* ---------- Easy-read overrides — bigger, simpler, more contrast ---------- */
body.easy-read .reception-greeting { font-size: 2.1rem; }
body.easy-read .tile-action { padding: 56px 32px; gap: 32px; }
body.easy-read .tile-action h2 { font-size: 1.8rem; }
body.easy-read .tile-action p  { font-size: 1.15rem; }
body.easy-read .tile-dot       { width: 44px; height: 44px; }
body.easy-read .tile-dot-sm    { width: 22px; height: 22px; }
body.easy-read .reception-link { font-size: 1.15rem; padding: 16px 24px; }
body.easy-read .brand-arc            { width: 320px; }
body.easy-read .welcome-illustration { max-width: 880px; }

body.easy-read .screen-title  { font-size: 2rem; }
body.easy-read .screen-sub    { font-size: 1.15rem; margin-bottom: 28px; }
body.easy-read .form label    { font-size: 1.1rem; font-weight: 500; }
body.easy-read .form input,
body.easy-read .form textarea,
body.easy-read .form select {
  font-size: 1.2rem; padding: 16px 18px;
}
body.easy-read button.primary,
body.easy-read button.secondary,
body.easy-read .form-actions a.primary,
body.easy-read .form-actions a.secondary {
  font-size: 1.15rem; padding: 16px 28px;
}
body.easy-read .rating-btn { min-height: 64px; font-size: 1.4rem; }
body.easy-read .confirmation h1 { font-size: 2.4rem; }
body.easy-read .confirmation p  { font-size: 1.2rem; }

.reception {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 880px;
}
.kiosk-hero {
  width: 100%; max-width: 880px; height: 240px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}
.reception-greeting {
  margin: 0 0 24px; color: var(--liaise-navy); font-size: 1.6rem; font-weight: 700;
  text-align: center;
}
.reception-secondary { margin-top: 28px; text-align: center; }
.reception-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid var(--border);
  padding: 10px 18px; border-radius: 999px;
  color: var(--liaise-navy); font-size: 0.95rem; font-family: inherit;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.06s ease;
}
.reception-link:hover { background: var(--surface); }
.reception-link:active { transform: scale(0.98); }
.reception-link .tile-dot { margin: 0; }

.card-block {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form select {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; font-size: 1rem; font-family: inherit;
  color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: #fff; margin-top: 4px;
}
.confirmation-hero {
  width: 100%; max-width: 540px; height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.tile-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 720px; width: 100%;
}
.tile {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  font-family: inherit;
  color: inherit;
}
.tile:hover  { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.tile:active { transform: scale(0.98); box-shadow: var(--shadow-md); }
.tile h2 { margin: 0 0 8px; color: var(--liaise-navy); }
.tile p  { margin: 0; color: var(--muted); }
button.tile { display: block; width: 100%; }

/* Action tiles use the Liaise brand 6-dot palette as the visual anchor —
   no illustrations, just typography + the same colour story as the wordmark. */
.tile-action {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 56px 28px;
  text-align: center;
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.tile-action:hover  { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tile-action h2 { font-size: 1.4rem; margin: 0; }
.tile-action p  { font-size: 1rem; margin: 0; color: var(--muted); }

/* Brand-coloured top accent bar on each tile (picks up its dot colour) */
.tile-accent::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 6px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.tile-accent.accent-red::before    { background: #e83944; }
.tile-accent.accent-orange::before { background: #f18a00; }
.tile-accent.accent-yellow::before { background: #ffd100; }
.tile-accent.accent-green::before  { background: #45ac34; }
.tile-accent.accent-blue::before   { background: #006fb8; }
.tile-accent.accent-purple::before { background: #8e4896; }

.screen-lg { width: 100%; max-width: 920px; }
.screen-lg > .screen-title,
.screen-lg > .screen-sub { text-align: center; }
.screen-lg > .screen-sub { max-width: 640px; margin-left: auto; margin-right: auto; }

.form-context {
  margin: 0 0 8px; font-size: 0.95rem;
}
.form-context strong { color: var(--liaise-navy); font-weight: 600; }

/* The Liaise brand dot, sized for tile-anchor use */
.tile-dot {
  display: inline-block;
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tile-dot-sm { width: 14px; height: 14px; }
.dot-red    { background: #e83944; }
.dot-orange { background: #f18a00; }
.dot-yellow { background: #ffd100; }
.dot-green  { background: #45ac34; }
.dot-blue   { background: #006fb8; }
.dot-purple { background: #8e4896; }

/* Tile icon — circular tinted backdrop with a Liaise brand-pack icon
   sitting on top. Smaller than a hero disc; adds variety without dominating. */
.tile-icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 88px; height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.tile-action:hover .tile-icon-wrap { transform: scale(1.06); }
.tile-icon { width: 56px; height: 56px; display: block; }
body.easy-read .tile-icon-wrap { width: 104px; height: 104px; }
body.easy-read .tile-icon      { width: 64px; height: 64px; }

/* Soft tinted halo behind the brand icon — pale wash of the tile's accent
   colour so the tile reads at a glance even from across the room. */
.tint-red    { background: rgba(232, 57, 68, 0.10); }
.tint-orange { background: rgba(241,138,  0, 0.12); }
.tint-yellow { background: rgba(255,209,  0, 0.18); }
.tint-green  { background: rgba( 69,172, 52, 0.12); }
.tint-blue   { background: rgba(  0,111,184, 0.10); }
.tint-purple { background: rgba(142, 72,150, 0.12); }

/* Decorative brand-disc background — soft, blurred discs around the screen.
   Calmer than the previous version: smaller, more transparent. */
.screen-decorated {
  position: relative;
  z-index: 0;
  isolation: isolate;
}
.screen-decorated::before,
.screen-decorated::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.14;
  pointer-events: none;
  z-index: -1;
}
.screen-decorated::before {
  width: 240px; height: 240px;
  background: #ffd100;
  top: -80px; left: -120px;
}
.screen-decorated::after {
  width: 220px; height: 220px;
  background: #45ac34;
  bottom: -100px; right: -100px;
}
.screen-decorated .deco-disc {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.10;
  pointer-events: none;
  z-index: -1;
}
.screen-decorated .deco-disc.deco-purple { width: 180px; height: 180px; background: #8e4896; top: 35%; right: -80px; }
.screen-decorated .deco-disc.deco-blue   { width: 160px; height: 160px; background: #006fb8; bottom: 25%; left: -70px; }

/* Mini brand-arc above the title on key screens — reuses the master-logo
   arc as a small typographic flourish. */
.brand-arc-mini {
  display: block;
  width: 110px; height: auto;
  margin: 0 auto 14px;
  opacity: 0.9;
}
body.easy-read .brand-arc-mini { width: 140px; margin-bottom: 18px; }

/* The actual master-wordmark arc, used as a header decoration (still
   referenced from /assets/brand-dots-arc.svg if needed elsewhere). */
.brand-arc {
  display: block;
  width: 240px; height: auto;
  margin: 4px auto 12px;
  opacity: 0.95;
}

/* Liaise transitions illustration as the welcome banner — adds warmth without
   forcing made-up icons onto the action tiles. Hot-linked from liaise.com. */
.welcome-illustration {
  display: block;
  width: 100%; max-width: 720px;
  height: auto;
  margin: 8px auto 16px;
  border-radius: var(--radius-md);
}

button.primary {
  background: var(--liaise-navy); color: #fff; border: 0;
  padding: 14px 28px; border-radius: var(--radius-md);
  font-size: 1.05rem; cursor: pointer;
}
button.secondary {
  background: #fff; color: var(--liaise-navy);
  border: 1px solid var(--liaise-navy);
  padding: 14px 28px; border-radius: var(--radius-md);
  font-size: 1.05rem; cursor: pointer;
}

.error { color: var(--liaise-red); }
.loading { color: var(--muted); font-size: 1.1rem; }

/* ---------- Screens ---------- */
.screen { width: 100%; max-width: 760px; }
.screen-title { color: var(--liaise-navy); margin: 0 0 8px; font-size: 1.6rem; }
.screen-sub   { color: var(--muted); margin: 0 0 24px; }
.screen-footer { margin-top: 32px; display: flex; gap: 12px; }
.tile-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Form ---------- */
.form { display: grid; gap: 16px; }
.form label {
  display: block;
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 500;
}
.form label .req { color: var(--liaise-red); }
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form input:not([type]) {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  margin-top: 4px;
}
.form input:focus {
  outline: 2px solid var(--liaise-blue);
  outline-offset: 1px;
  border-color: var(--liaise-blue);
}
.form label.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  color: var(--muted);
}
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

/* ---------- Confirmation ---------- */
.confirmation { text-align: center; max-width: 540px; }
.confirmation h1 { color: var(--liaise-navy); }
.confirmation .muted { color: var(--muted); margin-bottom: 28px; }

/* ---------- Picker (multiple matching visits) ---------- */
.picker-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.picker-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.picker-item:active { transform: scale(0.99); box-shadow: var(--shadow-md); }
.picker-name { font-weight: 600; color: var(--liaise-navy); font-size: 1.05rem; }
.picker-meta { font-size: 0.9rem; color: var(--muted); margin-top: 2px; }

/* ---------- Ratings ---------- */
.ratings { display: grid; gap: 18px; }
.rating-row { display: grid; gap: 8px; }
.rating-row label { font-size: 0.95rem; font-weight: 500; }
.rating-buttons { display: flex; gap: 8px; }
.rating-btn {
  flex: 1; min-height: 48px;
  background: #fff; color: var(--liaise-navy);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 1.05rem; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.12s ease;
}
.rating-btn:hover  { border-color: var(--liaise-navy); }
.rating-btn.selected {
  background: var(--liaise-navy); color: #fff; border-color: var(--liaise-navy);
}

/* ---------- Manager dashboard ---------- */
.manager-nav {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex; gap: 4px;
}
.manager-tab {
  background: transparent; border: 0; padding: 14px 20px;
  font-size: 0.95rem; font-family: inherit; color: var(--muted);
  border-bottom: 3px solid transparent; cursor: pointer;
  text-decoration: none;
}
.manager-tab.active { color: var(--liaise-navy); border-bottom-color: var(--liaise-navy); font-weight: 600; }
.manager-tab:hover { color: var(--liaise-navy); }
.manager-tab-link { margin-left: auto; }

.manager-main { flex: 1; padding: 24px 28px 64px; background: var(--surface); display: block; }
.manager-toolbar {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto 24px;
}
.manager-filter { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.manager-filter select {
  padding: 8px 12px; font-size: 0.95rem; font-family: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: #fff; color: var(--fg); min-width: 240px;
}
.manager-summary { color: var(--liaise-navy); font-size: 1.05rem; }
.manager-summary strong { font-weight: 700; }
.manager-content { max-width: 1200px; margin: 0 auto; }
.manager-empty {
  background: #fff; border: 1px dashed var(--border); border-radius: var(--radius-md);
  padding: 32px; text-align: center; color: var(--muted);
}

/* ---------- Presence table ---------- */
.presence-home {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 16px; overflow: hidden;
}
.presence-home-title { margin: 0; padding: 14px 20px; color: var(--liaise-navy); font-size: 1rem; border-bottom: 1px solid var(--border); }
.presence-home-title .muted { font-weight: 400; font-size: 0.85rem; margin-left: 6px; }
.presence-table { width: 100%; border-collapse: collapse; }
.presence-table thead { background: var(--surface); }
.presence-table th, .presence-table td { padding: 10px 16px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.presence-table th { color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.75rem; }
.presence-table tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }

/* ---------- Roll call ---------- */
.rollcall-chooser h2 { margin-top: 0; color: var(--liaise-navy); }
.rollcall-chooser select {
  flex: 1; padding: 12px 16px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff;
}

.rollcall-header {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 24px; margin-bottom: 16px;
}
.rollcall-header h2 { margin: 0 0 4px; color: var(--liaise-navy); font-size: 1.2rem; }
.rollcall-counts { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-good { background: #E6F4EA; color: #1B5E20; border: 1px solid #C8E6C9; }
.pill-bad  { background: #FCE8E8; color: #B71C1C; border: 1px solid #F5C6CB; }

.rollcall-list { display: flex; flex-direction: column; gap: 8px; }
.rollcall-row {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-left-width: 4px;
}
.rollcall-row.rollcall-accounted { border-left-color: var(--liaise-green); }
.rollcall-row.rollcall-missing   { border-left-color: var(--liaise-red); background: #FFF5F5; }
.rollcall-row.rollcall-pending   { border-left-color: var(--border); }
.rollcall-name strong { display: block; color: var(--liaise-navy); margin-bottom: 2px; }
.rollcall-name .muted { font-size: 0.85rem; }
.rollcall-actions { display: flex; gap: 8px; flex-shrink: 0; }
.rc-btn {
  padding: 10px 16px; font-size: 0.9rem; font-weight: 600; font-family: inherit;
  border-radius: var(--radius-md); cursor: pointer;
  background: #fff; color: var(--liaise-navy); border: 1px solid var(--border);
}
.rc-btn:disabled { opacity: 0.5; cursor: default; }
.rc-good:not(:disabled) { background: var(--liaise-green); color: #fff; border-color: var(--liaise-green); }
.rc-bad:not(:disabled)  { background: var(--liaise-red); color: #fff; border-color: var(--liaise-red); }

#autoRefresh { font-size: 0.8rem; }

/* ---------- Admin page ---------- */
.admin-main {
  flex: 1; padding: 24px 28px 64px;
  background: var(--surface);
  display: block;
}
.admin-toolbar {
  display: flex; align-items: center; gap: 16px;
  max-width: 1200px; margin: 0 auto 24px;
}
.admin-toolbar input[type="search"] {
  flex: 1;
  padding: 12px 16px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: #fff; color: var(--fg);
}
.admin-toolbar input[type="search"]:focus { outline: 2px solid var(--liaise-blue); outline-offset: 1px; }
.admin-count { color: var(--muted); font-size: 0.95rem; white-space: nowrap; }

.admin-regions { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.admin-region-title {
  margin: 0 0 12px; color: var(--liaise-navy); font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; align-items: baseline; gap: 10px;
}
.admin-region-count {
  color: var(--muted); font-size: 0.85rem; font-weight: 400; letter-spacing: 0;
}

.admin-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.admin-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.admin-card-hero { aspect-ratio: 16/9; overflow: hidden; background: var(--surface); }
.admin-card-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-card-hero-blank { width: 100%; height: 100%; background: linear-gradient(135deg, var(--liaise-navy), var(--liaise-navy-2)); }
.admin-card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.admin-card-name { margin: 0; color: var(--liaise-navy); font-size: 1.05rem; font-weight: 600; }
.admin-card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; }
.admin-card-config { font-size: 0.8rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.admin-card-qr { display: flex; justify-content: center; padding: 12px 0; }
.admin-card-qr img { width: 192px; height: 192px; image-rendering: crisp-edges; }
.admin-card-actions { display: flex; gap: 8px; }
.admin-card-actions a {
  flex: 1; text-align: center; padding: 10px 12px;
  border-radius: var(--radius-md); text-decoration: none;
  font-size: 0.9rem; font-weight: 600;
}
.admin-card-actions a.primary { background: var(--liaise-navy); color: #fff; }
.admin-card-actions a.secondary { background: #fff; color: var(--liaise-navy); border: 1px solid var(--liaise-navy); }

.pill {
  background: var(--surface); color: var(--liaise-navy);
  border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}
.muted { color: var(--muted); }

/* Admin settings panel (per-home inline edit) */
.admin-card-settings { margin-top: 4px; }
.admin-card-settings > summary {
  cursor: pointer; color: var(--liaise-navy); font-size: 0.85rem;
  padding: 8px 4px; user-select: none; list-style: none;
}
.admin-card-settings > summary::before { content: '▸ '; }
.admin-card-settings[open] > summary::before { content: '▾ '; }
.admin-settings-form { display: flex; flex-direction: column; gap: 10px; padding: 8px 4px 0; }
.admin-settings-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--muted); }
.admin-settings-form input {
  padding: 8px 10px; font-size: 0.9rem; font-family: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: #fff; color: var(--fg);
}
.admin-settings-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-settings-actions { display: flex; align-items: center; gap: 12px; }
.admin-settings-actions button {
  padding: 8px 14px; font-size: 0.9rem; font-weight: 600; font-family: inherit;
  border-radius: var(--radius-md); border: 0; cursor: pointer;
  background: var(--liaise-navy); color: #fff;
}
.admin-settings-status { font-size: 0.8rem; }
.admin-settings-status.error { color: var(--liaise-red); }

/* Visitor admin table — banned row tint */
.presence-table tr.row-banned { background: #FFF5F5; }
.presence-table tr.row-banned td:first-child strong { color: var(--liaise-red); }

/* Invite banner shown when arriving via an invite token */
.invite-banner {
  background: linear-gradient(90deg, #FFD100 0%, #FF881B 100%);
  color: #1F2937;
  padding: 10px 24px;
  font-size: 0.9rem;
  display: flex; gap: 12px; align-items: center;
}
.invite-banner strong { font-weight: 700; }

/* Admin card actions — allow buttons alongside anchor links */
.admin-card-actions button {
  flex: 1; text-align: center; padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem; font-weight: 600;
  font-family: inherit; cursor: pointer; border: 0;
}
.admin-card-actions button.secondary {
  background: #fff; color: var(--liaise-navy); border: 1px solid var(--liaise-navy);
}

/* ---------- Textarea (feedback free text) ---------- */
.form textarea {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; font-size: 1rem; font-family: inherit;
  color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: #fff; margin-top: 4px;
  resize: vertical; min-height: 80px;
}
.form textarea:focus {
  outline: 2px solid var(--liaise-blue); outline-offset: 1px; border-color: var(--liaise-blue);
}

/* ---------- People-with-access (admin) ---------- */
.admin-card-people { margin-top: 8px; }
.admin-card-people summary { cursor: pointer; font-size: 0.92rem; color: var(--liaise-navy); padding: 6px 0; }
.people-section { margin: 10px 0 14px; }
.people-section-title { font-weight: 600; color: var(--liaise-navy); font-size: 0.9rem; margin-bottom: 4px; }
.people-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.people-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.85rem;
}
.people-email { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--fg); }
.people-remove {
  background: transparent; border: 0; color: var(--liaise-red);
  font-size: 1.1rem; cursor: pointer; padding: 0 6px;
}
.people-add {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; margin-top: 8px;
  align-items: center;
}
.people-add input, .people-add select {
  padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit;
  font-size: 0.85rem;
}
.people-add button { padding: 6px 14px; font-size: 0.85rem; border-radius: 8px; border: 0; background: var(--liaise-navy); color: #fff; cursor: pointer; }
.people-add .people-status { grid-column: 1 / -1; font-size: 0.8rem; }
@media (max-width: 640px) {
  .people-add { grid-template-columns: 1fr; }
}

/* ---------- Returning-visitor banner ---------- */
.returning-visitor-banner {
  margin: 0 0 4px;
  padding: 10px 14px;
  background: rgba(69,172,52,0.10);
  border: 1px solid rgba(69,172,52,0.35);
  border-radius: var(--radius-md);
  color: var(--liaise-navy);
  font-size: 0.95rem;
}

/* ---------- Visitee picker (who are you here to see?) ---------- */
.visitee-picker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: grid; gap: 12px;
}
.visitee-picker .fvq-label { font-weight: 600; color: var(--liaise-navy); }
.visitee-options {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.visitee-options label {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer; font-weight: 500;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.visitee-options input[type="radio"] { accent-color: var(--liaise-navy); }
.visitee-options label:has(input:checked) {
  border-color: var(--liaise-navy);
  box-shadow: inset 0 0 0 1px var(--liaise-navy);
}
.visitee-detail label { display: block; font-weight: 500; color: var(--liaise-navy); }
.visitee-detail .vd-label { display: block; margin-bottom: 4px; }
.visitee-hint {
  margin: 6px 0 0; font-size: 0.88rem;
}
body.easy-read .visitee-picker .fvq-label { font-size: 1.15rem; }
body.easy-read .visitee-options label { font-size: 1.05rem; padding: 14px 16px; }
body.easy-read .visitee-hint { font-size: 1rem; }
@media (max-width: 640px) {
  .visitee-options { grid-template-columns: 1fr; }
}

/* ---------- First-time visitor question + housekeeping screen ---------- */
.first-visit-question {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 0 0 8px;
}
.first-visit-question .fvq-label {
  font-weight: 600; color: var(--liaise-navy); margin-bottom: 10px;
}
.first-visit-question .fvq-options {
  display: flex; gap: 10px;
}
.first-visit-question .fvq-options label {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: #fff;
  cursor: pointer; font-weight: 500;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.first-visit-question .fvq-options input[type="radio"] { accent-color: var(--liaise-navy); }
.first-visit-question .fvq-options label:has(input:checked) {
  border-color: var(--liaise-navy); background: #fff;
  box-shadow: inset 0 0 0 1px var(--liaise-navy);
}
body.easy-read .first-visit-question .fvq-label { font-size: 1.15rem; }
body.easy-read .first-visit-question .fvq-options label { font-size: 1.1rem; padding: 16px 18px; }

.housekeeping {
  width: 100%; max-width: 720px;
}
.housekeeping h1 { color: var(--liaise-navy); margin: 0 0 6px; font-size: 1.6rem; }
.housekeeping > p.lead {
  color: var(--muted); margin: 0 0 22px; font-size: 1rem;
}
.housekeeping-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; gap: 14px;
}
.housekeeping-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  align-items: start;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.housekeeping-list .hk-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.housekeeping-list .hk-icon img { width: 32px; height: 32px; display: block; }
.housekeeping-list h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--liaise-navy); }
.housekeeping-list p  { margin: 0; color: var(--fg); font-size: 0.95rem; line-height: 1.45; }
body.easy-read .housekeeping h1 { font-size: 2rem; }
body.easy-read .housekeeping-list h3 { font-size: 1.2rem; }
body.easy-read .housekeeping-list p  { font-size: 1.1rem; }
body.easy-read .housekeeping-list .hk-icon { width: 64px; height: 64px; }
body.easy-read .housekeeping-list .hk-icon img { width: 38px; height: 38px; }

/* ---------- Mobile + tablet responsiveness ---------- */
@media (max-width: 900px) {
  .tile-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .kiosk-main { padding: 24px; }
  .reception { max-width: 600px; }
  .kiosk-hero { height: 200px; }
  .screen-lg { max-width: 640px; }
}

@media (max-width: 640px) {
  .kiosk-header { padding: 12px 16px; gap: 12px; }
  .kiosk-header .logo { height: 28px; }
  .kiosk-header .home-name { font-size: 0.92rem; text-align: right; }
  .kiosk-main { padding: 16px; }
  .kiosk-footer {
    padding: 8px 14px; gap: 8px; font-size: 0.78rem;
    flex-wrap: wrap; justify-content: center;
  }
  .kiosk-footer .tagline { display: none; }

  .reception-greeting { font-size: 1.3rem; margin-bottom: 18px; }
  .kiosk-hero { height: 160px; margin-bottom: 18px; border-radius: var(--radius-md); }

  .tile-grid { gap: 14px; }
  .tile-grid.grid-3 { grid-template-columns: 1fr; }
  .tile { padding: 22px; border-radius: var(--radius-md); }
  .tile-action { padding: 36px 20px; gap: 20px; border-radius: var(--radius-md); }
  .tile-action h2 { font-size: 1.2rem; }
  .tile-icon-wrap { width: 72px; height: 72px; }
  .tile-icon { width: 44px; height: 44px; }

  .screen-title { font-size: 1.35rem; }
  .screen-sub   { font-size: 0.95rem; margin-bottom: 18px; }
  .brand-arc-mini { width: 86px; margin-bottom: 10px; }
  .screen-footer { flex-direction: column; gap: 10px; }
  .screen-footer button { width: 100%; }

  .form { gap: 14px; }
  .form input, .form textarea, .form select { font-size: 16px; padding: 14px 14px; }
  .form-actions { flex-direction: column; gap: 10px; }
  .form-actions button, .form-actions a { width: 100%; }

  .confirmation-hero { height: 160px; margin-bottom: 16px; }
  .confirmation h1 { font-size: 1.5rem; }

  .housekeeping-list li { grid-template-columns: 44px 1fr; gap: 12px; padding: 14px; }
  .housekeeping-list .hk-icon { width: 44px; height: 44px; }
  .housekeeping-list .hk-icon img { width: 26px; height: 26px; }

  .first-visit-question .fvq-options { flex-direction: column; }
  .first-visit-question .fvq-options label { padding: 14px; }
}

/* Tighter still on phones held in portrait */
@media (max-width: 380px) {
  .kiosk-header .home-name { font-size: 0.85rem; }
  .reception-greeting { font-size: 1.15rem; }
  .tile-action { padding: 30px 16px; }
  .tile-icon-wrap { width: 64px; height: 64px; }
  .tile-icon { width: 38px; height: 38px; }
}
