/* The Get Go — design system */
@font-face { font-family: 'Inter'; src: url('/vendor/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('/vendor/fonts/cormorant-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('/vendor/fonts/cormorant-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('/vendor/fonts/cormorant-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --plum: #6B0147;
  --plum-600: #7D0A56;
  --plum-700: #560139;
  --plum-800: #4A0131;
  --plum-rgb: 107 1 71;
  --plum-900: #2A0A1F;
  --plum-50: #F7EEF3;
  --plum-100: #EFDCE7;
  --ivory: #FAF6EF;
  --ivory-2: #F3ECE1;
  --surface: #FFFFFF;
  --ink: #23161E;
  --ink-2: #4B3B45;
  --muted: #85757E;
  --line: #ECE4DA;
  --line-2: #E2D8CC;
  --gold: #B8862B;
  --gold-400: #C9A25A;
  --gold-300: #F3CF7A;
  --gold-200: #D8BF8E;
  --gold-rgb: 184 134 43;

  --green: #17805A;  --green-bg: #E6F4EE;  --green-line: #BFE3D2;
  --amber: #B7740B;  --amber-bg: #FBF1DE;  --amber-line: #F0D9A8;
  --red: #B42F2A;    --red-bg: #FBE9E7;    --red-line: #F2C6C1;
  --grey-bg: #F1ECE6;

  --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(42, 10, 31, .05);
  --shadow: 0 1px 2px rgba(42, 10, 31, .04), 0 6px 18px -12px rgba(42, 10, 31, .12);
  --shadow-lg: 0 24px 60px -20px rgba(42, 10, 31, .35);
  --serif: 'Cormorant', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--ivory);
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01'; -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--plum); }
.num { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; min-width: 0; }
.brand-mark { width: 30px; height: 30px; flex: none; object-fit: contain; }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: -.2px; line-height: 1.1; color: var(--plum); }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.side .brand-sub { max-width: 160px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px; padding: 11px 18px; font-weight: 500; font-size: 15px;
  background: var(--surface); border-color: var(--line-2); color: var(--ink); transition: background .15s, border-color .15s, transform .05s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn:hover { border-color: #d3c6b7; }
.btn-primary { background: var(--plum); color: #fff; border-color: var(--plum); }
.btn-primary:hover { background: var(--plum-700); border-color: var(--plum-700); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgb(var(--plum-rgb) / .06); border-color: transparent; }
.btn-danger { color: var(--red); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 16px 22px; font-size: 17px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); flex: none; }
.icon-btn.on { color: var(--plum); background: var(--plum-50); border-color: var(--plum-100); }
.icon-btn-sm { width: 34px; height: 34px; border-radius: 10px; }
.icon-btn-sm svg.i { width: 17px; height: 17px; }
.show-t { display: none; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.input {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; outline: none; font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--plum); box-shadow: 0 0 0 4px rgb(var(--plum-rgb) / .1); }
.input-pin { letter-spacing: .5em; text-align: center; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2385757E' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--ivory-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; padding: 10px; border-radius: 9px; font-weight: 500; color: var(--muted); }
.seg button.on { background: #fff; color: var(--plum); box-shadow: var(--shadow-sm); }
.form-error { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-line); padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.card-h h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.1px; }
.card-b { padding: 12px 20px 20px; }
.eyebrow { font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- chips & status ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 400; white-space: nowrap; border: 1px solid transparent; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.plain::before { display: none; }
.st-INSIDE, .act-ENTER, .act-RETURN { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
.st-OUTSIDE, .act-EXIT { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.st-NOT_ARRIVED { color: var(--muted); background: var(--grey-bg); border-color: var(--line); }
.act-REJECT, .flag { color: var(--red); background: var(--red-bg); border-color: var(--red-line); }
.act-VOID { color: var(--ink-2); background: var(--grey-bg); border-color: var(--line); }
.flag::before { display: none; }

.conn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 400; background: #fff; border: 1px solid var(--line); }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }
.conn.off i { background: var(--red); box-shadow: 0 0 0 4px var(--red-bg); }
.conn.pending i { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-bg); }

/* ---------- login ---------- */
/* ---------- front page (sign-in) ---------- */
.login-wrap {
  min-height: 100%; display: grid; place-items: center;
  padding: max(40px, env(safe-area-inset-top)) 18px calc(32px + var(--safe-b));
  background:
    radial-gradient(900px 420px at 50% -120px, rgb(var(--plum-rgb) / .10), transparent 70%),
    radial-gradient(700px 360px at 100% 110%, rgb(var(--gold-rgb) / .10), transparent 70%),
    var(--ivory);
}
.login { width: 100%; max-width: 440px; display: grid; gap: 22px; }
/* Live-text lockup (crisp at any size; the raster logo's tagline was unreadable here). */
.login-brand { display: grid; justify-items: center; gap: 9px; padding: 0 0 2px; }
.lb-row { display: flex; align-items: center; gap: 11px; }
.lb-mark { width: 44px; height: 44px; flex: none; object-fit: contain; }
.lb-rule { width: 1px; height: 34px; background: linear-gradient(180deg, transparent, var(--gold-400) 25%, var(--gold-400) 75%, transparent); }
.lb-text { display: grid; justify-items: start; line-height: 1; }
.lb-the { font-size: 9px; font-weight: 400; letter-spacing: .34em; text-transform: uppercase; color: var(--plum); opacity: .8; margin-left: 1px; }
.lb-name { font-size: 28px; font-weight: 800; letter-spacing: -.035em; color: var(--plum); margin-top: 2px; }
.lb-tag { font-size: 9px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

.ev-card {
  position: relative; text-align: center; padding: 34px 24px 30px; border-radius: 26px;
  background: linear-gradient(180deg, #fff, #fffdf9); border: 1px solid #ead9b9;
  box-shadow: 0 1px 2px rgba(42, 10, 31, .04), 0 22px 50px -28px rgb(var(--plum-rgb) / .35);
}
.ev-card::before { content: ''; position: absolute; inset: 8px; border-radius: 20px; border: 1px solid rgb(var(--gold-rgb) / .28); pointer-events: none; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ornament i { height: 1px; width: 56px; background: linear-gradient(90deg, transparent, var(--gold-400)); }
.ornament i:last-child { background: linear-gradient(90deg, var(--gold-400), transparent); }
.ornament b { width: 7px; height: 7px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold-300), var(--gold)); }
.ev-card .ev-hero { margin: 18px 0; }

.login .signin { padding: 24px 24px 22px; border-radius: 15px; }
.signin .input { border-radius: 10px; padding: 11px 14px; }
.signin .input-pin { font-size: 20px; }
.signin .btn-lg { padding: 12px 18px; font-size: 15.5px; border-radius: 10px; }
.signin-h { margin-bottom: 18px; }
.signin-h h2 { font-family: var(--serif); font-size: 28px; font-weight: 700; margin: 0; line-height: 1.1; }
.signin-h p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.notice { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--amber-bg); border: 1px solid var(--amber-line); color: #6d4706; font-size: 13.5px; }
.notice a { color: inherit; font-weight: 400; }
.foot { text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.foot svg.i { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }

/* Event hero: shared by the front page and the Settings preview. */
.ev-hero { display: grid; justify-items: center; gap: 4px; }
.ev-title { font-size: 11px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--plum); }
.ev-ded { font-family: var(--serif); font-style: italic; font-size: 20px; font-weight: 500; color: var(--gold); margin-top: 12px; line-height: 1.2; }
.ev-name { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 8.4vw, 42px); line-height: 1.06; letter-spacing: -.3px; color: var(--plum-900); text-wrap: balance; max-width: 100%; }
.ev-title + .ev-name { margin-top: 12px; }
.ev-meta { position: relative; margin-top: 20px; padding-top: 18px; display: grid; gap: 6px; justify-items: center; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); width: 100%; max-width: 300px; }
.ev-meta::before { content: ''; position: absolute; top: 0; left: 50%; width: 40px; height: 1px; transform: translateX(-50%); background: var(--gold-200); }
.ev-meta > div { display: block; text-align: center; text-wrap: balance; max-width: 100%; }
.ev-meta .nw { white-space: nowrap; }
.ev-meta svg.i { width: 15px; height: 15px; color: var(--gold); vertical-align: -2.5px; margin-right: 5px; }

@media (min-width: 900px) {
  .login { max-width: 960px; grid-template-columns: 1.08fr 1fr; gap: 26px 28px; align-items: stretch; }
  .login-brand, .foot { grid-column: 1 / -1; }
  .lb-mark { width: 50px; height: 50px; }
  .lb-rule { height: 38px; }
  .lb-name { font-size: 31px; }
  .lb-tag { font-size: 9.5px; }
  .ev-card { display: grid; align-content: center; padding: 48px 36px; }
  .ev-card .ev-name { font-size: 46px; }
  .login .signin { padding: 30px 30px 26px; align-self: center; }
}

.ev-editor { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ev-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ev-preview { border-radius: 22px; padding: 34px 22px; background: radial-gradient(600px 240px at 50% -80px, rgb(var(--plum-rgb) / .10), transparent 70%), var(--ivory); border: 1px solid var(--line); min-height: 220px; display: grid; align-items: center; }
.ev-preview .ev-name { font-size: 32px; }
@media (max-width: 980px) { .ev-editor, .ev-row { grid-template-columns: 1fr; gap: 0 12px; } .ev-preview { margin-top: 8px; } }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: rgba(250, 246, 239, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-r { display: flex; align-items: center; gap: 8px; }

/* ---------- attendant ---------- */
.att { max-width: 520px; margin: 0 auto; padding: 22px 18px calc(30px + var(--safe-b)); }
.scan-home { max-width: 520px; }
.hello { margin: 22px 2px 28px; }
.hello-meta { margin: 8px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.hello-st { color: var(--ink-2); }
.hello-st::before { content: '·'; margin-right: 8px; color: var(--line-2); }
.hello h2 { font-family: var(--serif); font-size: 32px; font-weight: 500; margin: 0; line-height: 1.08; letter-spacing: -.3px; color: var(--ink); }
.hello h2 span { font-weight: 700; color: var(--plum); }

/* Scan stage: the one big action. A viewfinder motif, not a banner. */
.stage {
  position: relative; overflow: hidden; isolation: isolate; width: 100%; border: 0; border-radius: 22px; padding: 30px 22px 22px;
  display: grid; justify-items: center; text-align: center; color: #fff;
  background:
    radial-gradient(420px 200px at 50% -40px, rgba(255, 255, 255, .13), transparent 70%),
    radial-gradient(300px 160px at 50% 120%, rgb(var(--gold-rgb) / .16), transparent 70%),
    linear-gradient(165deg, var(--plum-600) 0%, var(--plum) 48%, var(--plum-800) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(42, 10, 31, .12), 0 22px 40px -26px rgb(var(--plum-rgb) / .75);
  transition: transform .15s ease, box-shadow .15s ease;
}
.stage::before { content: ''; position: absolute; inset: 7px; border-radius: 16px; border: 1px solid rgb(var(--gold-rgb) / .22); pointer-events: none; }
.stage:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(42, 10, 31, .12), 0 26px 46px -26px rgb(var(--plum-rgb) / .85); }
.stage:active { transform: scale(.987); }
.vf { position: relative; width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 18px; }
.vf > i { position: absolute; width: 20px; height: 20px; border: 2px solid #e8c478; }
.vf > i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.vf > i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.vf > i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.vf > i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.vf svg.i { width: 36px; height: 36px; stroke-width: 1.5; color: rgba(255, 255, 255, .92); }
.vf em { position: absolute; left: 10px; right: 10px; top: 14px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold-300), transparent); box-shadow: 0 0 12px rgb(var(--gold-rgb) / .7); animation: sweep 2.4s ease-in-out infinite; }
@keyframes sweep { 0%, 100% { transform: translateY(0); opacity: .2; } 50% { transform: translateY(54px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vf em { animation: none; top: 41px; } }
.stage-t { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -.1px; }
.stage-s { margin-top: 6px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .7); max-width: 250px; text-wrap: balance; }
.stage-cta { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px 10px 20px; border-radius: 999px; background: #fff; color: var(--plum); font-size: 14px; font-weight: 500; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4); }
.stage-cta svg.i { width: 16px; height: 16px; stroke-width: 2.2; }

.alt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.alt { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; transition: background .15s, border-color .15s, transform .05s; }
.alt svg.i { width: 17px; height: 17px; color: var(--plum); }
.alt:hover { border-color: #d3c6b7; background: #fffdfa; }
.alt:active { transform: scale(.985); background: var(--plum-50); }

/* Headcount */
.pulse { margin-top: 28px; padding: 18px 18px 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.pulse-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pulse .eyebrow { margin: 0; letter-spacing: .14em; }
.pulse-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 400; color: var(--green); }
.pulse-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); animation: pulse-live 2.4s ease-in-out infinite; }
@keyframes pulse-live { 50% { box-shadow: 0 0 0 5px rgba(23, 128, 90, .06); } }
.pulse-n { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 14px; color: var(--plum-900); }
.pulse-n b { font-size: 28px; font-weight: 650; letter-spacing: -.035em; line-height: 1; }
.pulse-n span { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: -.01em; }
.pulse-n em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 400; color: var(--plum); background: var(--plum-50); padding: 4px 9px; border-radius: 999px; white-space: nowrap; align-self: center; }
.pulse-bar { display: flex; gap: 2px; height: 6px; border-radius: 6px; background: var(--ivory-2); overflow: hidden; }
.pulse-bar i { display: block; height: 100%; border-radius: 6px; transition: width .5s ease; }
.pulse-bar .in { background: var(--green); }
.pulse-bar .out { background: #e0a73c; }
.pulse-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px -18px 0; border-top: 1px solid var(--line); background: #fdfbf8; }
.pulse-k > div { padding: 12px 12px 13px 18px; min-width: 0; display: grid; grid-template-rows: 1fr auto; align-items: start; }
.pulse-k > div + div { border-left: 1px solid var(--line); }
.pulse-k span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.pulse-k i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); flex: none; }
.pulse-k i.in { background: var(--green); }
.pulse-k i.out { background: #e0a73c; }
.pulse-k b { display: block; margin-top: 3px; font-size: 17px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
@media (max-width: 380px) { .pulse-k > div { padding-left: 12px; padding-right: 8px; } }

/* Wide screens: actions left, recent scans right. */
@media (min-width: 900px) {
  .att { max-width: 1000px; padding-top: 34px; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 32px; align-items: start; }
  .att .sh-side .section-t { margin-top: 74px; }
}

.section-t { display: flex; align-items: baseline; justify-content: space-between; margin: 36px 4px 12px; }
.section-t h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.05px; color: var(--ink); }
.section-t .muted { font-size: 12px; }

.list { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .serial { font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.row .side { display: flex; align-items: center; gap: 8px; flex: none; }
.row .line1 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.row .meta.wrap { white-space: normal; margin-top: 2px; }
.row .meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .grow { flex: 1; min-width: 0; }
.row .time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row.click { cursor: pointer; }
.row.click:hover { background: #fcfaf7; }
.empty { padding: 26px 18px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; }
.sheet-bg { position: fixed; inset: 0; background: rgba(35, 15, 28, .45); z-index: 49; animation: fade .15s ease; }
.sheet { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; background: var(--ivory); border-radius: 26px 26px 0 0; padding: 10px 20px calc(22px + var(--safe-b)); box-shadow: var(--shadow-lg); animation: up .18s ease; }
@media (min-width: 720px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 520px; border-radius: 26px; animation: fade .15s ease; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 14px; }
.sheet h2 { font-family: var(--serif); font-size: 28px; margin: 4px 0 4px; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* camera */
.cam { background: #0d0509; color: #fff; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 16px; padding-top: max(16px, env(safe-area-inset-top)); background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.cam-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); }
.cam-btn.on { background: #fff; color: var(--plum); }
.frame { position: absolute; z-index: 1; left: 50%; top: 46%; width: min(76vw, 340px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 26px; box-shadow: 0 0 0 200vmax rgba(10, 3, 8, .5); }
.frame::before, .frame::after { content: ''; position: absolute; inset: -2px; border-radius: 28px; padding: 3px; background: linear-gradient(#fff, #fff) top left / 44px 44px no-repeat, linear-gradient(#fff, #fff) top right / 44px 44px no-repeat, linear-gradient(#fff, #fff) bottom left / 44px 44px no-repeat, linear-gradient(#fff, #fff) bottom right / 44px 44px no-repeat; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.frame::after { display: none; }
.cam-bottom { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px 18px calc(22px + var(--safe-b)); text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.cam-hint { font-size: 16px; font-weight: 500; }
.cam-sub { font-size: 13px; opacity: .75; margin-top: 4px; }
.cam-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.cam-actions .btn { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); }

/* result */
.result { background: var(--ivory); overflow: auto; }

/* Opening splash */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; text-align: center; cursor: pointer;
  background: radial-gradient(800px 420px at 50% 0%, rgb(var(--plum-rgb) / .12), transparent 70%), radial-gradient(600px 300px at 50% 110%, rgb(var(--gold-rgb) / .14), transparent 70%), var(--ivory);
  transition: opacity .4s ease, transform .4s ease; }
.splash.out { opacity: 0; transform: scale(1.02); pointer-events: none; }
.splash-in { display: grid; justify-items: center; gap: 22px; animation: rise .6s ease both; }
.splash-logo { width: min(74vw, 300px); height: auto; }
.splash-ev { display: grid; justify-items: center; gap: 8px; min-height: 60px; }
.splash-name { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 6.5vw, 32px); line-height: 1.1; color: var(--plum-900); text-wrap: balance; max-width: 340px; }
.splash-bar { width: 120px; height: 3px; border-radius: 2px; background: var(--plum-100); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 40%; border-radius: 2px; background: linear-gradient(90deg, #d9a441, var(--plum)); animation: load 1.1s ease-in-out infinite; }
.splash-foot { position: absolute; bottom: calc(26px + var(--safe-b)); left: 0; right: 0; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* Result screen: verdict header, guest card, action bar pinned to the bottom. */
.rs { overflow: hidden; }
.rs-top { --tone: #157a55; --tone2: #0f5e41; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff;
  padding: max(18px, env(safe-area-inset-top)) 18px 40px; background: radial-gradient(400px 160px at 100% 0%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(160deg, var(--tone), var(--tone2)); }
.rs.warn .rs-top { --tone: #c3800f; --tone2: #94580a; }
.rs.bad .rs-top { --tone: #bf3832; --tone2: #8b211d; }
.rs-verdict { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rs-badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--tone); flex: none; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); }
.rs-badge svg { width: 24px; height: 24px; stroke-width: 2.6; }
.rs-verdict b { display: block; font-size: 19px; font-weight: 750; letter-spacing: -.1px; line-height: 1.15; }
.rs-verdict small { display: block; font-size: 12.5px; opacity: .82; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-close { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .18); color: #fff; display: grid; place-items: center; flex: none; }
.rs-body { flex: 1; overflow: auto; margin-top: -24px; padding: 0 16px 16px; }
.rs-card { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px 22px 20px; box-shadow: var(--shadow); }
.rs-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.rs-card .g-serial { font-size: clamp(44px, 13vw, 60px); overflow-wrap: anywhere; }
.rs-card .g-cat { font-size: 14px; line-height: 1.3; }
.rs-facts { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.rs-facts > div { display: flex; gap: 9px; align-items: flex-start; }
.rs-facts svg.i { width: 17px; height: 17px; color: var(--muted); margin-top: 1px; }
.rs-raw { font-weight: 700; font-size: 22px; margin-top: 6px; word-break: break-all; line-height: 1.25; }
.rs-actions { position: relative; padding: 14px 16px calc(14px + var(--safe-b)); background: rgba(250, 246, 239, .96); border-top: 1px solid var(--line); display: grid; gap: 4px; justify-items: center; }
.rs-actions > * { width: 100%; max-width: 560px; }
.rs-actions .big-action { margin-top: 0; }
.rs-actions .big-action[disabled] { opacity: .55; }
.rs-cancel { border: 0; background: transparent; padding: 12px; font-weight: 500; color: var(--muted); font-size: 15px; }
.rs-cancel:hover { color: var(--ink); }
.result-band { padding: 22px 22px 26px; padding-top: max(22px, env(safe-area-inset-top)); color: #fff; }
.result-band.ok { background: linear-gradient(160deg, #1b8d63, #136b4a); }
.result-band.warn { background: linear-gradient(160deg, #c98512, #9c6206); }
.result-band.bad { background: linear-gradient(160deg, #c23a33, #8f231f); }
.result-band .top { display: flex; justify-content: space-between; align-items: center; }
.verdict { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .14em; font-size: 14px; }
.verdict .tick { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.result-band .close { background: rgba(255, 255, 255, .18); color: #fff; border: 0; }
.result-body { max-width: 560px; width: 100%; margin: -14px auto 0; padding: 0 18px calc(24px + var(--safe-b)); }
.g-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow); }
.g-serial { font-family: var(--serif); font-weight: 700; font-size: 58px; line-height: 1; letter-spacing: .5px; font-variant-numeric: lining-nums tabular-nums; }
.g-cat { font-size: 14px; font-weight: 400; margin-top: 8px; color: var(--plum); }
.g-name { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 18px; }
.g-grid > div { background: #fcfaf7; padding: 12px 14px; }
.g-grid .k { font-size: 11.5px; color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; }
.g-grid .v { font-weight: 400; margin-top: 3px; font-variant-numeric: tabular-nums; }
.callout { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.callout.warn { background: var(--amber-bg); border: 1px solid var(--amber-line); color: #6d4706; }
.callout.bad { background: var(--red-bg); border: 1px solid var(--red-line); color: #7a1f1b; }
.callout.info { background: var(--plum-50); border: 1px solid var(--plum-100); color: var(--plum-900); }
.big-action { width: 100%; margin-top: 18px; border: 0; border-radius: 20px; padding: 20px; font-size: 18px; font-weight: 500; letter-spacing: .01em; color: #fff; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); }
.big-action svg { width: 24px; height: 24px; }
.big-action.ENTER { background: linear-gradient(160deg, #1b8d63, #136b4a); }
.big-action.EXIT { background: linear-gradient(160deg, #c98512, #9c6206); }
.big-action.RETURN { background: linear-gradient(160deg, var(--plum-600), var(--plum-800)); }
.big-action:active { transform: scale(.99); }
.sub-actions { display: flex; gap: 10px; margin-top: 12px; }
.sub-actions .btn { flex: 1; }

.done { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; text-align: center; color: #fff; animation: fade .12s ease; }
.done.ENTER, .done.RETURN { background: #157a55; }
.done.RETURN { background: var(--plum); }
.done.EXIT { background: #a96b08; }
.done .circle { width: 108px; height: 108px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .7); display: grid; place-items: center; margin: 0 auto 18px; }
.done .circle svg { width: 56px; height: 56px; stroke-width: 2.4; }
.done h2 { font-size: 26px; letter-spacing: .1em; margin: 0; }
.done p { font-family: var(--serif); font-size: 40px; font-weight: 700; margin: 6px 0 0; }

/* manual */
.manual-input { font-size: 28px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: 16px; font-variant-numeric: tabular-nums; }
.sugg { margin-top: 12px; }

.progress { height: 6px; border-radius: 3px; background: var(--ivory-2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--plum); border-radius: 3px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--plum-100); border-top-color: var(--plum); animation: spin .8s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); z-index: 80; background: var(--plum-900); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 400; font-size: 14px; box-shadow: var(--shadow-lg); max-width: 92vw; animation: up .18s ease; }

/* ---------- admin ---------- */
.adm { display: grid; grid-template-columns: 248px 1fr; min-height: 100%; }
aside.side { position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); background: #fbf8f3; display: flex; flex-direction: column; gap: 22px; }
.nav { display: grid; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; border: 0; background: transparent; color: var(--ink-2); font-weight: 500; text-align: left; font-size: 14.5px; }
.nav button:hover { background: rgb(var(--plum-rgb) / .05); }
.nav button.on { background: var(--plum); color: #fff; box-shadow: 0 8px 18px -10px rgb(var(--plum-rgb) / .8); }
.nav .badge { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.nav button.on .badge { background: #fff; color: var(--red); }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--plum-50); color: var(--plum); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.main { min-width: 0; }
.main-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 26px 32px 6px; flex-wrap: wrap; }
.main-h h1 { font-family: var(--serif); font-size: 38px; font-weight: 700; margin: 2px 0 0; line-height: 1.05; letter-spacing: -.2px; }
.main-b { padding: 18px 32px 40px; }
.clock { font-variant-numeric: tabular-nums; font-weight: 400; color: var(--ink-2); }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 18px 18px 16px; position: relative; overflow: hidden; }
.kpi .k { font-size: 12.5px; font-weight: 400; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi .k i { width: 8px; height: 8px; border-radius: 50%; }
.kpi .v { font-family: var(--serif); font-size: 46px; font-weight: 700; line-height: 1; margin-top: 12px; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.5px; }
.kpi .s { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.kpi.hero { background: linear-gradient(155deg, var(--plum-600), var(--plum) 50%, var(--plum-800)); color: #fff; border-color: transparent; }
.kpi.hero .k, .kpi.hero .s { color: rgba(255, 255, 255, .78); }
.presence { margin-top: 14px; padding: 18px 20px; }
.pbar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--grey-bg); margin-top: 12px; }
.pbar i { display: block; height: 100%; transition: width .4s ease; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.feed .row { padding: 12px 20px; }
.act-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.act-ico svg { width: 18px; height: 18px; }
.cat-row { padding: 11px 0; border-top: 1px solid var(--line); }
.cat-row:first-child { border-top: 0; }
.more-btn { width: 100%; margin-top: 6px; color: var(--plum); }
.cat-row .top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 8px; }
.cat-row .top b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-row .top span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stack { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--grey-bg); }
.stack i { height: 100%; }
.dev { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.dev:first-child { border-top: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search { position: relative; flex: 1; min-width: 220px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 42px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills button { border: 1px solid var(--line-2); background: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 13px; color: var(--ink-2); }
.pills button.on { background: var(--plum-900); border-color: var(--plum-900); color: #fff; }
.pills button b { font-weight: 500; opacity: .65; margin-left: 4px; font-variant-numeric: tabular-nums; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fcfaf7; position: sticky; top: 0; }
.t td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; }
.t tr.click:hover td { background: #fcfaf7; }
.t .serial { font-weight: 400; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.t-wrap { overflow: auto; border-radius: var(--r-lg); }
.voided td { opacity: .5; text-decoration: line-through; }
.voided td:last-child { text-decoration: none; }

.drawer-bg { position: fixed; inset: 0; z-index: 40; background: rgba(35, 15, 28, .35); animation: fade .15s ease; }
.drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--ivory); box-shadow: var(--shadow-lg); overflow: auto; animation: slide .18s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-h { padding: 22px 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
.drawer-b { padding: 20px 24px 40px; }
.timeline { position: relative; margin-top: 6px; }
.tl { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.tl::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .body { flex: 1; min-width: 0; padding-top: 6px; }
.tl .body b { font-weight: 400; }
.tl .body .meta { font-size: 13px; color: var(--muted); }

.exports { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.export { padding: 20px; display: grid; gap: 10px; }
.export .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--plum-50); color: var(--plum); }
.export b { font-size: 14px; }
.export p { margin: 0; color: var(--muted); font-size: 13.5px; }
.export .dl { justify-self: start; }

.join { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.join .qr svg { width: 180px; height: 180px; border-radius: 14px; border: 1px solid var(--line); }
.url { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 15px; font-weight: 500; background: var(--ivory-2); padding: 8px 12px; border-radius: 10px; display: inline-block; word-break: break-all; }
.steps { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; }
.steps li { margin: 4px 0; }

.tabbar { display: none; }
.topbar-admin { display: none !important; }

@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- tablet & phone: admin ---------- */
@media (max-width: 980px) {
  .adm { grid-template-columns: 1fr; }
  aside.side { display: none; }
  .topbar-admin { display: flex !important; }
  .topbar { padding: 9px 14px 9px 16px; gap: 10px; }
  .topbar-r { gap: 6px; }
  .topbar .brand-mark { width: 26px; height: 26px; }
  .topbar .brand-name { font-size: 14px; }
  .topbar .brand-sub { font-size: 11.5px; }
  .topbar .icon-btn { width: 34px; height: 34px; border-radius: 10px; }
  .topbar .icon-btn svg.i { width: 17px; height: 17px; }
  .topbar .conn { padding: 5px 10px; font-size: 12px; gap: 7px; }
  .topbar .conn i { width: 6px; height: 6px; box-shadow: 0 0 0 3px var(--green-bg); }
  .card-h h3, .presence h3 { font-size: 14px !important; }
  .main { overflow-x: hidden; }
  .main-h { padding: 20px 18px 0; }
  .main-h .eyebrow { display: none; }
  .main-h h1 { font-size: 23px; letter-spacing: 0; }
  .main-b { padding: 14px 16px calc(88px + var(--safe-b)); }
  .grid2 { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
  .card-h { padding: 14px 16px 2px; }
  .card-b { padding: 8px 16px 14px; }
  .feed .row { padding: 11px 16px; }
  .presence { margin-top: 12px; padding: 14px 16px; }
  .hide-sm { display: none; }

  /* Stats become one quiet panel instead of five big boxes. */
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
  .kpis > .kpi { border: 0; border-radius: 0; box-shadow: none; padding: 14px 16px 15px; }
  .kpi .k { font-size: 11.5px; font-weight: 400; letter-spacing: .01em; gap: 7px; }
  .kpi .k i { width: 6px; height: 6px; }
  .kpi .v { font-size: 25px; font-weight: 600; margin-top: 8px; letter-spacing: 0; }
  .kpi .s { font-size: 11px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kpi.hero, .kpi.lead { grid-column: span 2; }
  .kpi.hero { padding: 16px 18px 17px; display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 12px;
    background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .10), transparent 55%), linear-gradient(155deg, var(--plum-600), var(--plum) 55%, var(--plum-800)); }
  .kpi.hero .k { grid-column: 1 / -1; }
  .kpi.hero .v { font-size: 34px; margin-top: 10px; }
  .kpi.hero .s { justify-self: end; margin: 0 0 4px; font-size: 11.5px; }

  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
  .tabbar button { border: 0; background: transparent; display: grid; justify-items: center; gap: 2px; padding: 5px 0 3px; font-size: 9.5px; font-weight: 500; letter-spacing: .01em; color: var(--muted); position: relative; }
  .tabbar button svg.i { width: 17px; height: 17px; stroke-width: 1.8; }
  .tabbar button.on { color: var(--plum); }
  .tabbar button.on::before { content: ''; position: absolute; top: -6px; left: 50%; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: var(--plum); }
  .tabbar .badge { position: absolute; top: 2px; left: 56%; background: var(--red); color: #fff; font-size: 10px; padding: 0 5px; border-radius: 999px; }

  .toolbar { gap: 8px; margin-bottom: 10px; }
  .search { flex: 1 1 100%; min-width: 0; }
  .toolbar select.input { max-width: none !important; flex: 1 1 100%; }
  .toolbar .input { padding-top: 11px; padding-bottom: 11px; }
  .pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 12px !important; padding: 0 16px; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pills button { flex: none; padding: 7px 13px; }

  .exports { grid-template-columns: 1fr; gap: 10px; }
  .export { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ico b dl" "ico p dl"; column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 16px; }
  .export .ico { grid-area: ico; width: 40px; height: 40px; border-radius: 12px; }
  .export b { grid-area: b; font-size: 14px; }
  .export p { grid-area: p; font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .export .dl { grid-area: dl; width: 38px; height: 38px; padding: 0; border-radius: 11px; }
  .export .dl .lbl { display: none; }

  .join { grid-template-columns: 1fr; gap: 14px; }
  .join .qr svg { width: 150px; height: 150px; }
  .drawer-h { padding: 18px; }
  .drawer-b { padding: 16px 18px 32px; }
  .drawer .g-serial { font-size: 40px !important; }
}

/* ---------- phone: tables become stacked rows ---------- */
@media (max-width: 720px) {
  .t thead { display: none; }
  .t, .t tbody { display: block; }
  .t tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main side" "sub side"; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .t tr:last-child { border-bottom: 0; }
  .t tr.r2 { grid-template-areas: "main side" "wide wide"; row-gap: 8px; }
  .t td { display: block; padding: 0; border: 0; min-width: 0; }
  .t td.c-main { grid-area: main; overflow: hidden; text-overflow: ellipsis; }
  .t td.c-sub { grid-area: sub; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .t td.c-side { grid-area: side; justify-self: end; }
  .t td.c-wide { grid-area: wide; }
  .t td[colspan] { grid-column: 1 / -1; }
  .t td.hide-t, .t td.hide-sm { display: none; }
  .show-t { display: inline; }
  .t td.show-t { display: block; }
  .t tr.click:hover td { background: none; }
  .t tr.click:active { background: #fcfaf7; }
  .t .chip.flag { font-size: 11px; padding: 2px 8px; }
}

/* ---------- phone: attendant & general sizing ---------- */
@media (max-width: 560px) {
  .icon-btn { width: 36px; height: 36px; }
  .conn { padding: 5px 10px; font-size: 12px; }
  .att { padding: 14px 16px calc(24px + var(--safe-b)); }
  .hello { margin: 18px 2px 24px; }
  .hello h2 { font-size: 29px; }
  .stage { padding: 26px 18px 20px; }
  .stage-t { font-size: 24px; }
  .section-t { margin: 32px 4px 10px; }
  .row { padding: 11px 14px; gap: 11px; }
  .act-ico { width: 34px; height: 34px; }
  .result-band { padding: 18px 18px 24px; }
  .result-body { padding: 0 16px calc(20px + var(--safe-b)); }
  .g-card { padding: 18px; }
  .g-serial { font-size: 46px; }
  .g-grid > div { padding: 10px 12px; }
  .big-action { padding: 18px; font-size: 17px; border-radius: 16px; }
  .sheet { padding: 10px 18px calc(20px + var(--safe-b)); }
  .sheet h2 { font-size: 24px; }
}
@media print { aside.side, .tabbar, .topbar { display: none; } }

/* ================= Guest Access Management: admin sections ================= */
.nav-g { font-size: 10.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
.nav-g:first-child { padding-top: 0; }
aside.side { overflow-y: auto; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.more-grid button { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.more-grid button.on { border-color: var(--plum); color: var(--plum); background: var(--plum-50); }
.more-grid .badge { position: absolute; top: 6px; right: 8px; background: var(--red); color: #fff; font-size: 10px; padding: 0 6px; border-radius: 999px; }
.tb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.input-sm { padding: 8px 10px; font-size: 14px; border-radius: 10px; }
select.input-sm { padding-right: 30px; background-position: right 10px center; }
.seg-sm button { padding: 7px 8px; font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--plum); }
.link-card { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; }
.link-card:hover { border-color: var(--plum-100); }
.link-card > div { flex: 1; min-width: 0; }
.link-card p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.link-card .ico, .drop .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--plum-50); color: var(--plum); flex: none; }

/* bulk upload */
.upload-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.drop { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 34px 18px; border: 2px dashed var(--line-2); border-radius: 18px; background: #fcfaf7; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--plum); background: var(--plum-50); }
.drop b { font-size: 14px; }
.serial-eg { font-size: 13px; color: var(--ink-2); background: var(--ivory-2); border-radius: 12px; padding: 10px 12px; line-height: 1.6; }

/* attendants */
.pin-badge { display: grid; padding: 6px 14px; border-radius: 12px; background: var(--plum-900); color: #fff; text-align: center; }
.pin-badge span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; font-weight: 400; }
.pin-badge b { font-size: 20px; letter-spacing: .18em; }
.devs select { min-width: 150px; }
.dev-blocked td { opacity: .6; }

/* events */
.ev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ev-item { padding: 18px 20px; display: grid; gap: 12px; }
.ev-item.active { border-color: var(--plum); box-shadow: 0 0 0 3px var(--plum-50), var(--shadow); }
.ev-item-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ev-item-t { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.1; margin-top: 4px; color: var(--plum-900); }
.ev-item-m { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.ev-item-m span { display: inline-flex; align-items: center; gap: 5px; }
.ev-item-m svg.i { width: 15px; height: 15px; color: var(--gold); }
.ev-item-a { display: flex; gap: 8px; flex-wrap: wrap; }

/* card designer */
.dz { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.dz-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; flex-wrap: wrap; }
.dz-bar select { max-width: 260px; }
.dz-dirty { font-size: 12.5px; color: var(--amber); font-weight: 400; }
.dz-stage-wrap { margin-top: 12px; padding: 16px; border-radius: 20px; border: 1px solid var(--line); min-height: 220px; display: grid; place-items: center; overflow: auto;
  background: repeating-conic-gradient(#f1ebe3 0% 25%, #f8f4ee 0% 50%) 50% / 18px 18px; }
.dz-stage { position: relative; box-shadow: 0 18px 40px -18px rgba(42, 10, 31, .45), 0 0 0 1px rgba(42, 10, 31, .08); border-radius: 3px; touch-action: none; user-select: none; }
.dz-stage canvas { display: block; border-radius: 3px; }
.dz-ov { position: absolute; inset: 0; }
.dz-el { position: absolute; cursor: move; outline: 1px dashed transparent; outline-offset: 0; }
.dz-stage:hover .dz-el { outline-color: rgb(var(--plum-rgb) / .35); }
.dz-el.sel { outline: 2px solid #2f7cf6 !important; z-index: 2; }
.dz-h { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 3px; background: #fff; border: 2px solid #2f7cf6; box-shadow: 0 1px 3px rgb(0 0 0 / .18); touch-action: none; z-index: 3; }
.dz-h::before { content: ""; position: absolute; inset: -9px; } /* bigger touch target */
.dz-h-nw { left: 0; top: 0; cursor: nwse-resize; } .dz-h-n { left: 50%; top: 0; cursor: ns-resize; } .dz-h-ne { left: 100%; top: 0; cursor: nesw-resize; }
.dz-h-e { left: 100%; top: 50%; cursor: ew-resize; } .dz-h-se { left: 100%; top: 100%; cursor: nwse-resize; } .dz-h-s { left: 50%; top: 100%; cursor: ns-resize; }
.dz-h-sw { left: 0; top: 100%; cursor: nesw-resize; } .dz-h-w { left: 0; top: 50%; cursor: ew-resize; }
.dz-h-n, .dz-h-s { width: 18px; height: 8px; margin: -4px 0 0 -9px; border-radius: 4px; }
.dz-h-e, .dz-h-w { width: 8px; height: 18px; margin: -9px 0 0 -4px; border-radius: 4px; }
.dz-guide { position: absolute; pointer-events: none; background: #e5367b; }
.dz-guide.v { top: 0; bottom: 0; width: 1px; }
.dz-guide.h { left: 0; right: 0; height: 1px; }
.dz-prev { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.dz-prev-t { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%; }
.dz-tip { font-size: 12.5px; margin: 10px 2px 0; }
.dz-panel { display: grid; gap: 12px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding-bottom: 4px; }
.dz-sec { padding: 14px 16px; }
.dz-sec h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dz-sec .field { margin-bottom: 10px; gap: 4px; }
.dz-sec .field label { font-size: 12px; }
.dz-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dz-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dz-4 .input { padding: 7px 6px; }
.dz-bg { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.color-in { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; font-size: 12.5px; font-weight: 400; font-variant-numeric: tabular-nums; }
.color-in input { width: 28px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; }
.dz-add { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dz-add button { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: #fcfaf7; font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.dz-add button:hover { border-color: var(--plum); color: var(--plum); }
.dz-layers { display: grid; gap: 2px; margin-top: 12px; max-height: 190px; overflow-y: auto; }
.dz-layers button { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; text-align: left; color: var(--ink-2); }
.dz-layers button svg.i { width: 16px; height: 16px; color: var(--muted); }
.dz-layers button.on { background: var(--plum-50); color: var(--plum); font-weight: 500; }
.dz-layers span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-checks { display: flex; gap: 18px; margin-bottom: 10px; }
.dz-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.dz-acts .btn { padding: 6px 10px; }
.dz-danger { padding: 6px 10px; box-shadow: none; background: transparent; border-color: transparent; }
.dz-danger:empty { display: none; }

/* generator */
.gen { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.gen-main { display: grid; gap: 14px; }
.gen-side { display: grid; gap: 14px; position: sticky; top: 16px; }
.gen-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gen-tpls button { display: grid; justify-items: center; gap: 6px; padding: 12px 10px; border-radius: 14px; border: 1px solid var(--line); background: #fcfaf7; text-align: center; }
.gen-tpls button.on { border-color: var(--plum); background: var(--plum-50); box-shadow: 0 0 0 3px var(--plum-50); }
.gen-tpls canvas { border-radius: 3px; box-shadow: 0 4px 12px -6px rgba(42, 10, 31, .4); max-width: 100%; }
.gen-tpls span { font-size: 13px; font-weight: 400; }
.gen-tpls small { font-size: 11.5px; color: var(--muted); }
.gen-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 14px; }
.gen-cats .check { font-size: 13.5px; }
.gen-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt { display: grid; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #fcfaf7; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt b { font-size: 14px; }
.opt span { font-size: 12.5px; color: var(--muted); }
.opt.on { border-color: var(--plum); background: var(--plum-50); box-shadow: 0 0 0 3px var(--plum-50); }
.gen-preview canvas { display: block; margin: 0 auto; border-radius: 3px; box-shadow: 0 14px 30px -16px rgba(42, 10, 31, .5); max-width: 100%; }
.gen-prog { margin-top: 14px; }
.gen-prog-t { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
textarea.input { resize: vertical; font-size: 14px; }

@media (max-width: 1180px) {
  .dz, .gen { grid-template-columns: minmax(0, 1fr); }
  .dz-panel, .gen-side { position: static; max-height: none; }
  .dz-panel { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 980px) {
  .upload-grid { grid-template-columns: minmax(0, 1fr); }
  .gen-opts { grid-template-columns: 1fr; }
  .tb-actions { flex: 1 1 100%; }
  .tb-actions .btn { flex: 1; }
  .ev-list { grid-template-columns: 1fr; }
  .devs select { min-width: 0; }
}

/* ================= Guests screen ================= */
/* Quiet, roomy list: categories become headings, status is a soft dot, colour only where something happened. */
.gv { --gv-cols: minmax(0, 1fr) 160px minmax(150px, 240px); max-width: 1180px; }
.gv.gv-named { --gv-cols: minmax(110px, 170px) minmax(0, 1fr) 160px minmax(150px, 240px); }

.gv-bar { display: flex; align-items: center; gap: 12px; margin: 6px 0 30px; }
.gv-search { flex: 1 1 auto; max-width: 440px; min-width: 0; }
.gv-search svg { left: 16px; width: 17px; height: 17px; color: var(--muted); }
.gv .gv-search .input { height: 46px; padding: 0 16px 0 44px; border-radius: 999px; border-color: var(--line); background: #fff; font-size: 14.5px; box-shadow: var(--shadow-sm); }
.gv input[type=search] { -webkit-appearance: none; appearance: none; }
.gv-cat { flex: 0 1 230px; min-width: 0; }
.gv-cat .cs { min-width: 0; }
.gv-cat .input, .gv-cat .cs-btn { height: 46px; padding-top: 0; padding-bottom: 0; padding-left: 18px; border-radius: 999px; border-color: var(--line); background-color: #fff; font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.gv-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: none; }
.gv-ghost { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.gv-ghost svg.i { width: 17px; height: 17px; color: var(--muted); transition: color .15s; }
.gv-ghost:hover { background: var(--plum-50); color: var(--plum); }
.gv-ghost:hover svg.i { color: var(--plum); }
.gv-add { height: 46px; padding: 0 22px 0 18px; border-radius: 999px; margin-left: 8px; gap: 8px; font-size: 14px; box-shadow: 0 8px 18px -14px rgb(var(--plum-rgb) / .8); }
.gv-add svg.i { width: 17px; height: 17px; }

/* Status: understated underline tabs. */
.gv-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin-bottom: 40px; overflow-x: auto; scrollbar-width: none; }
.gv-tabs::-webkit-scrollbar { display: none; }
.gv-tabs button { position: relative; flex: none; display: inline-flex; align-items: baseline; gap: 8px; padding: 0 0 14px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; transition: color .15s; }
.gv-tabs .gt-s { display: none; }
.gv-tabs button b { font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); opacity: .75; }
.gv-tabs button:hover { color: var(--ink); }
.gv-tabs button.on { color: var(--plum-900); font-weight: 500; }
.gv-tabs button.on b { color: var(--plum); opacity: 1; }
.gv-tabs button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--plum); }

.gv-row { display: grid; grid-template-columns: var(--gv-cols); column-gap: 24px; align-items: center; }

.gv-list { display: grid; gap: 36px; }
.gv-grp header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 4px 12px; }
.gv-grp h4 { margin: 0; font-size: 14px; font-weight: 650; letter-spacing: -.01em; color: var(--plum-900); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-grp header span { flex: none; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gv-grp header span { display: inline-flex; align-items: center; gap: 8px; }
.gv-grp header em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; color: var(--green); font-weight: 400; }
.gv-grp header em::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2.5px var(--green-bg); }
.gv-rows { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 2px rgba(42, 10, 31, .03), 0 18px 40px -32px rgba(42, 10, 31, .25); overflow: hidden; }

.gv-row { padding: 18px 28px; cursor: pointer; transition: background .15s; outline: none; }
.gv-row + .gv-row { border-top: 1px solid #F3EDE5; }
.gv-row:hover, .gv-row:focus-visible { background: #FCF9F5; }
.gv-row:focus-visible { box-shadow: inset 3px 0 0 var(--plum); }
.gv-serial { font-size: 14px; font-weight: 400; letter-spacing: .03em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.gv-name { font-size: 14px; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-meta { text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-st { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.gv-st i { width: 7px; height: 7px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .7; }
.gv-st.gv-INSIDE { color: var(--green); font-weight: 400; }
.gv-st.gv-INSIDE i { background: currentColor; opacity: 1; box-shadow: 0 0 0 4px var(--green-bg); }
.gv-st.gv-OUTSIDE { color: var(--amber); font-weight: 400; }
.gv-st.gv-OUTSIDE i { background: currentColor; opacity: 1; box-shadow: 0 0 0 4px var(--amber-bg); }

.gv-empty { display: grid; justify-items: center; gap: 6px; padding: 64px 20px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.gv-empty svg.i { width: 22px; height: 22px; color: var(--muted); margin-bottom: 6px; }
.gv-empty b { font-size: 14px; font-weight: 400; color: var(--ink); }
.gv-empty span { font-size: 13.5px; color: var(--muted); }
.gv-more { text-align: center; margin-top: 36px; }
.gv-more .btn { border-radius: 999px; padding: 11px 22px; font-size: 14px; }
.gv-more:empty { display: none; }


/* Tablet & phone: two quiet lines per row, nothing else. */
@media (max-width: 980px) {
  /* phone: search + category side by side, compact */
  .gv-bar { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; margin: 4px 0 22px; }
  .gv-search { max-width: none; }
  .gv-search svg { left: 13px; width: 16px; height: 16px; }
  .gv .gv-search .input, .gv-cat .input, .gv-cat .cs-btn { height: 40px; font-size: 16px; box-shadow: none; }
  .gv .gv-search .input { padding: 0 12px 0 36px; }
  .gv-cat .input { padding-left: 14px; padding-right: 30px; background-position: right 12px center; text-overflow: ellipsis; }
  .gv-cat .cs-btn { font-size: 14.5px; padding-left: 14px; }
  .gv-actions { grid-column: 1 / -1; margin: 0; }
  .gv-ghost { display: none; } /* Upload & export live in More → Bulk upload / Reports */
  .gv-add { margin: 0; padding: 0 18px 0 15px; }
  .gv-long { display: none; }
  /* Phone: four equal tabs that always fit — count on top, label below, no sideways scrolling. */
  /* phone: one-line segmented control, short labels, never scrolls sideways */
  .gv-tabs { display: flex; gap: 2px; margin: 0 0 26px; padding: 3px; overflow: visible; border: 0; border-radius: 13px; background: var(--ivory-2); }
  .gv-tabs button { flex: 1 1 auto; flex-direction: row; justify-content: center; align-items: baseline; gap: 5px; min-width: 0; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
  .gv-tabs button::after { display: none; }
  .gv-tabs .gt-l { display: none; }
  .gv-tabs .gt-s { display: inline; }
  .gv-tabs button b { font-size: 11.5px; font-weight: 500; color: var(--muted); opacity: 1; }
  .gv-tabs button.on { background: #fff; color: var(--plum-900); font-weight: 500; box-shadow: 0 1px 2px rgba(42, 10, 31, .08), 0 2px 8px -4px rgba(42, 10, 31, .12); }
  .gv-tabs button.on b { color: var(--plum); }
  .gv-list { gap: 28px; }
  .gv-grp header { display: grid; gap: 3px; padding: 0 4px 10px; }
  .gv-grp h4 { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gv-grp header span { font-size: 12px; }
  .gv-rows { border-radius: 18px; }
  .gv-row, .gv:not(.gv-named) .gv-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "serial st" "name st"; row-gap: 3px; column-gap: 14px; padding: 17px 20px; }
  .gv-row + .gv-row { border-top: 0; box-shadow: inset 0 1px 0 #F3EDE5; }
  .gv-serial { grid-area: serial; font-size: 14px; }
  .gv-name { grid-area: name; font-size: 13px; color: var(--muted); }
  .gv-name:empty { display: none; }
  .gv-st { grid-area: st; font-size: 13px; gap: 8px; }
  .gv-meta { display: none; }
  .gv-row:active { background: #FCF9F5; }
  .gv-more { margin-top: 28px; }
}

/* ================= Overview: phone polish ================= */
.feed .row .side { gap: 6px; }
.presence .legend i { border-radius: 50%; width: 8px; height: 8px; }
@media (max-width: 980px) {
  .card { border-radius: 16px; }
  .card-h { padding: 13px 16px 4px; min-height: 0; }
  .card-h h3 { font-size: 13.5px !important; font-weight: 650; display: flex; align-items: center; gap: 6px; }
  .card-h h3 svg.i { width: 16px; height: 16px; }
  .card-h .muted { font-size: 11.5px !important; }
  .card-h .btn-sm { padding: 4px 8px; font-size: 12.5px; color: var(--plum); }
  .card-b { padding: 6px 16px 12px; }

  /* At a glance: slim bar, small legend. */
  .presence { padding: 13px 16px 14px; }
  .presence > div:first-child { row-gap: 2px; }
  .presence > div:first-child .muted { font-size: 11.5px !important; }
  .pbar { height: 8px; border-radius: 6px; margin-top: 10px; }
  .legend { gap: 6px 14px; margin-top: 9px; font-size: 12px; }

  /* Live activity: compact rows, the latest few only (View all has the rest). */
  .feed > div:last-child { padding-top: 2px !important; }
  .feed .row { padding: 9px 16px; gap: 10px; }
  .feed .row:nth-child(n+7) { display: none; }
  .row .serial { font-size: 13.5px; }
  .row .meta { font-size: 11.5px; }
  .act-ico { width: 30px; height: 30px; border-radius: 9px; }
  .act-ico svg { width: 15px; height: 15px; }
  .row .chip { font-size: 10.5px; padding: 2px 8px; gap: 5px; }
  .row .chip::before { width: 5px; height: 5px; }
  .feed .empty { padding: 18px 16px; font-size: 13px; }

  /* By category & devices. */
  .cat-row { padding: 8px 0; }
  .cat-row .top { font-size: 12.5px; margin-bottom: 6px; }
  .stack { height: 5px; border-radius: 3px; }
  .more-btn { margin-top: 4px; font-size: 12.5px; color: var(--plum); padding: 4px 0; }
  .dev { gap: 10px; padding: 8px 0; }
  .dev .avatar { width: 26px !important; height: 26px !important; font-size: 10.5px !important; }
  .dev .grow > div:first-child { font-size: 13px !important; }
  .dev .grow > div:last-child { font-size: 11.5px !important; }
  .dev .num { font-size: 13px; }
}
.offline-note { margin: 0 0 12px !important; font-size: 13px; }
.offline-note svg.i { width: 17px; height: 17px; margin-top: 1px; }

/* ================= Admin header + overview rhythm (phones) ================= */
.icon-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.icon-ghost:hover { background: rgb(var(--plum-rgb) / .06); color: var(--plum); }
@media (max-width: 980px) {
  .topbar-admin { padding: 10px 10px 10px 16px; }
  .topbar-admin .topbar-r { gap: 2px; }
  .topbar-admin .conn { background: transparent; border: 0; padding: 4px 6px; font-size: 12px; font-weight: 400; color: var(--muted); }
  .topbar-admin .conn:not(.off):not(.pending) { color: var(--green); }
  .topbar-admin .icon-btn { width: 36px; height: 36px; }

  .main-h { padding: 28px 18px 2px; }
  .main-b { padding-top: 16px; }
  .kpis + .presence, .presence { margin-top: 18px; }
  .grid2 { gap: 18px; margin-top: 18px; }
  .grid2 > div { gap: 18px !important; }
  .offline-note { margin-bottom: 18px !important; }
}

/* ================= Overview live feed: quiet rows ================= */
.frow { display: flex; align-items: flex-start; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line); }
.frow:first-child { border-top: 0; }
.frow.click { cursor: pointer; }
.frow.click:hover { background: #fcfaf7; }
.frow.voided { opacity: .5; }
.fdot { width: 7px; height: 7px; border-radius: 50%; flex: none; margin-top: 7px; background: var(--muted); }
.fdot.aw-ENTER, .fdot.aw-RETURN { background: var(--green); }
.fdot.aw-EXIT { background: var(--amber); }
.fdot.aw-REJECT { background: var(--red); }
.fmain { flex: 1; min-width: 0; }
.fl1 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fl1 .serial { font-weight: 400; font-size: 14px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ftime { font-size: 12px; color: var(--muted); flex: none; }
.fl2 { font-size: 12.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl2 .aw-ENTER, .fl2 .aw-RETURN { color: var(--green); font-weight: 400; }
.fl2 .aw-EXIT { color: var(--amber); font-weight: 400; }
.fl2 .aw-REJECT { color: var(--red); font-weight: 400; }
@media (max-width: 980px) {
  .frow { padding: 10px 16px; gap: 11px; }
  .feed .frow:nth-child(n+7) { display: none; }
  .fl1 .serial { font-size: 13.5px; }
  .fl2 { font-size: 12px; }
}

/* ---------- people & personal PINs (Attendants view) ---------- */
.link-btn { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--plum); font-weight: 500; font-size: 13.5px; padding: 4px 8px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(var(--plum-rgb) / .3); }
.people { margin-bottom: 14px; }
.people .card-h { align-items: flex-start; flex-wrap: wrap; padding-bottom: 12px; }
.pp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.people .card-h .pp-actions .btn-sm { padding: 7px 12px; font-size: 13px; color: var(--ink); }
.people .card-h .pp-actions .btn-primary { color: #fff; }
.pp-name { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.pp-role { font-size: 11px; padding: 2px 8px; margin-left: 4px; vertical-align: 1px; }
.pp-pin { letter-spacing: .12em; font-weight: 400; color: var(--ink); }
.pins-on .pp-pin { color: var(--plum); }
.pp-empty { padding: 8px 20px 18px; }
.pp-empty b { font-size: 14px; }
.pp-empty p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; max-width: 640px; }
.pp-shared { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fcfaf7; border-radius: 0 0 var(--r-lg) var(--r-lg); font-size: 14px; }
.pp-shared .muted { font-size: 12.5px; margin-top: 2px; }
.pin-inline { font-weight: 400; letter-spacing: .1em; background: var(--ivory-2); padding: 1px 8px; border-radius: 6px; margin-left: 4px; }
.pin-big { font-size: 20px; letter-spacing: .14em; color: var(--plum); }

.switch { position: relative; flex: none; width: 46px; height: 28px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .15s; pointer-events: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked + i { background: var(--plum); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 4px rgb(var(--plum-rgb) / .15); }

.g-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-bottom: 10px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; overflow: hidden; }
.stepper button { border: 0; background: none; width: 40px; height: 46px; font-size: 20px; color: var(--plum); }
.stepper input { width: 46px; border: 0; border-radius: 0; text-align: center; padding: 0; box-shadow: none !important; }

@media (max-width: 720px) {
  .pp-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .people .card-h .pp-actions .btn-sm { justify-content: flex-start; padding: 9px 12px; }
  .pp-actions .btn-primary { order: -1; }
  .pp-actions [data-pp=gen] { order: -1; }
  .pp-shared { padding: 14px 16px; }
}

/* Printable PIN cards: A4, 2 × 4 cut-out cards. Only shown while printing. */
#print-sheet { display: none; }
@media print {
  @page { size: A4; margin: 10mm; }
  body.printing > *:not(#print-sheet) { display: none !important; }
  body.printing { background: #fff; }
  body.printing #print-sheet { display: block; }
  .pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
  .pc { break-inside: avoid; border: 1px dashed #b9aab3; border-radius: 4mm; padding: 5mm 6mm; height: 64mm; display: flex; flex-direction: column; color: #23161E; font-family: var(--sans); }
  .pc-top { display: flex; align-items: center; gap: 3mm; padding-bottom: 2.5mm; border-bottom: 1px solid #ece4da; }
  .pc-top img { width: 8mm; height: 8mm; object-fit: contain; }
  .pc-ev { font-size: 8.5pt; font-weight: 700; color: var(--plum); letter-spacing: .04em; text-transform: uppercase; }
  .pc-hon { font-family: var(--serif); font-size: 9pt; font-style: italic; color: #85757E; }
  .pc-name { font-family: var(--serif); font-size: 17pt; font-weight: 700; margin-top: 3mm; line-height: 1.1; }
  .pc-gate { font-size: 9pt; color: var(--plum); font-weight: 600; }
  .pc-pin { display: flex; align-items: baseline; gap: 3mm; margin-top: 2.5mm; }
  .pc-pin span { font-size: 8pt; text-transform: uppercase; letter-spacing: .1em; color: #85757E; font-weight: 700; }
  .pc-pin b { font-size: 20pt; letter-spacing: .18em; font-variant-numeric: tabular-nums; }
  .pc-how { display: flex; gap: 3mm; margin-top: auto; font-size: 7.5pt; color: #4B3B45; align-items: flex-end; }
  .pc-how ol { margin: 1mm 0 0; padding-left: 4mm; }
  .pc-qr svg { width: 17mm; height: 17mm; display: block; }
  .pc-url { font-family: ui-monospace, Consolas, monospace; font-weight: 600; word-break: break-all; }
}

/* Live feed v2: one calm line per movement (dot · serial · movement · time). */
.feed .frow { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto 44px; align-items: center; column-gap: 12px; padding: 9px 20px; border-top: 0; }
.feed .frow .fdot { width: 6px; height: 6px; margin: 0; }
.fser { font-size: 13.5px; font-weight: 400; letter-spacing: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.fwhat { font-size: 12.5px; font-weight: 400; }
.fwhat.aw-ENTER, .fwhat.aw-RETURN { color: var(--green); }
.fwhat.aw-EXIT { color: var(--amber); }
.fwhat.aw-REJECT { color: var(--red); }
.feed .ftime { font-size: 12px; text-align: right; color: var(--muted); }
.feed > div:last-child { padding: 4px 0 10px !important; }
@media (max-width: 980px) { .feed .frow { padding: 8px 16px; column-gap: 11px; } }

/* Overview: more air between sections. */
.presence, .kpis + .presence { margin-top: 22px; }
.grid2 { gap: 22px; margin-top: 22px; }
.grid2 > div { gap: 22px !important; }
@media (max-width: 980px) {
  .presence, .kpis + .presence { margin-top: 26px; }
  .grid2 { gap: 26px; margin-top: 26px; }
  .grid2 > div { gap: 26px !important; }
  .offline-note { margin-bottom: 22px !important; }
}

/* ================= Desktop admin: calmer scale ================= */
@media (min-width: 981px) {
  .adm { grid-template-columns: 224px 1fr; }
  aside.side { padding: 20px 14px; gap: 18px; }
  .nav button { padding: 8px 12px; font-size: 13.5px; gap: 11px; border-radius: 10px; }
  .nav button svg.i { width: 17px; height: 17px; }
  .nav-g { font-size: 10px; padding: 14px 12px 5px; }
  .me { padding: 8px; }
  .me .avatar { width: 30px; height: 30px; font-size: 12px; }

  .main-h, .main-b { max-width: 1280px; }
  .main-h { padding: 30px 40px 4px; }
  .main-h h1 { font-size: 30px; }
  .main-h .eyebrow { font-size: 10.5px; }
  .clock { font-size: 13px; color: var(--muted); font-weight: 400; }
  .main-b { padding: 22px 40px 48px; }

  .kpis { gap: 16px; }
  .kpi { padding: 16px 18px; }
  .kpi .k { font-size: 12px; font-weight: 400; }
  .kpi .k i { width: 6px; height: 6px; }
  .kpi .v { font-size: 34px; font-weight: 600; margin-top: 10px; letter-spacing: 0; }
  .kpi .s { font-size: 12px; margin-top: 5px; }

  .card-h { padding: 16px 20px 6px; }
  .card-h h3, .presence h3 { font-size: 14px !important; font-weight: 650; }
  .card-h .muted, .presence .muted { font-size: 12px !important; }
  .card-h .btn-sm { font-size: 12.5px; color: var(--plum); padding: 5px 10px; }
  .card-b { padding: 8px 20px 16px; }
  .presence { padding: 16px 20px 18px; }
  .pbar { height: 8px; border-radius: 6px; }
  .legend { font-size: 12.5px; gap: 16px; }

  .cat-row { padding: 9px 0; }
  .cat-row .top { font-size: 13px; margin-bottom: 7px; }
  .cat-row .top b { font-weight: 400; }
  .stack { height: 5px; border-radius: 3px; }
  .more-btn { font-size: 12.5px; color: var(--plum); }
  .dev { padding: 9px 0; gap: 10px; }
  .dev .avatar { width: 28px !important; height: 28px !important; font-size: 11px !important; }
  .dev .grow > div:first-child { font-size: 13px !important; }
  .dev .grow > div:last-child { font-size: 12px !important; }
}

/* ================= Categories page ================= */
.back-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; margin: 8px 0 22px; font-size: 13px; font-weight: 500; color: var(--plum); }
.back-link svg.i { width: 15px; height: 15px; transform: rotate(180deg); }
.more-btn svg.i { width: 14px; height: 14px; margin-left: 2px; }
.cat-toolbar .cs { flex: 0 0 190px; min-width: 0; }
.cat-toolbar .cs-btn { font-size: 13px !important; font-weight: 500; color: var(--ink-2); }
.toolbar.cat-toolbar { margin-bottom: 22px; }
.cat-sum { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--muted); margin: 0 4px 14px; }
.cat-sum b { color: var(--ink); font-weight: 400; margin-right: 4px; }
.cat-sum .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); margin: 0 10px; }
/* Each category is its own card, with breathing room between them. */
.cat-list.card { display: grid; gap: 10px; background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.crow { --bg: #fff; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); background: var(--bg); padding: 14px 18px; transition: background .15s ease, border-color .15s ease; }
.crow:hover { border-color: var(--line-2); }
.crow:hover { --bg: #fcf9f5; }
.cring { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--green) 0 var(--in), #E4A93C var(--in) var(--out), var(--ivory-2) var(--out) 100%); }
.cring::before { content: ''; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--bg); transition: background .15s ease; }
.cring b { position: relative; font-size: 11.5px; font-weight: 400; color: var(--ink); letter-spacing: -.02em; }
.cring b i { font-style: normal; font-size: 9px; font-weight: 400; color: var(--muted); margin-left: 1px; }
.crow.idle .cring b { color: var(--muted); font-weight: 400; }
.crow.done .cring b { color: var(--green); }
.cmain { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cmain b { font-size: 14px; font-weight: 400; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.cmain > span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmain em { font-style: normal; color: var(--amber); }
.crow.done .cmain > span { color: var(--green); font-weight: 400; }
.ccount { flex: none; font-size: 14px; font-weight: 400; color: var(--ink); white-space: nowrap; }
.ccount i { font-style: normal; font-weight: 400; font-size: 13px; color: var(--muted); }
.crow.idle .ccount { color: var(--muted); font-weight: 400; }
.cat-more { text-align: center; margin-top: 16px; }
@media (max-width: 980px) {
  .cat-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .cat-toolbar .search { min-width: 0; }
  .toolbar.cat-toolbar .cs { flex: none !important; width: 150px; max-width: 150px !important; }
  .crow { padding: 13px 16px; gap: 12px; }
}
@media (max-width: 380px) { .cring { width: 38px; height: 38px; } .cmain b { font-size: 14px; } }
@media (min-width: 981px) {
  .cat-toolbar .search { max-width: 460px; }
  .cat-list.card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-list .empty { grid-column: 1 / -1; }
}

/* ================= At a glance ================= */
.glance .gl-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.glance .gl-h h3 { margin: 0; }
.gl-pct { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.gl-pct b { color: var(--ink); font-weight: 400; }
.glance .pbar { height: 6px; border-radius: 4px; margin-top: 12px; }
.gl-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.gl-cols > div { display: grid; gap: 3px; padding: 0 12px; border-left: 1px solid var(--line); min-width: 0; }
.gl-cols > div:first-child { padding-left: 0; border-left: 0; }
.gl-k { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-k i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.gl-cols b { font-size: 17px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.gl-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--red); }
@media (max-width: 980px) {
  .gl-cols > div { padding: 0 10px; }
  .gl-cols b { font-size: 16px; }
}
/* At a glance: labels never cut off; they wrap and the numbers stay aligned. */
.gl-cols > div { grid-template-rows: 1fr auto; align-items: start; }
.gl-k { white-space: normal; overflow: visible; text-overflow: clip; align-items: flex-start; line-height: 1.25; }
.gl-k i { margin-top: 4px; }
.gl-cols b { align-self: end; }
@media (max-width: 980px) {
  .gl-cols > div { padding: 0 8px; }
  .gl-cols > div:first-child { padding-left: 0; }
  .gl-k { font-size: 11px; gap: 5px; }
}

/* ================= Attendant: recent scans (calm rows) ================= */
.rrow { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); }
.rrow:first-child { border-top: 0; }
.rrow .fdot { width: 7px; height: 7px; margin: 0; }
.rrow.undone { opacity: .55; }
.rrow.undone .rr-ser { text-decoration: line-through; }
.rr-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.rr-ser { font-size: 14px; font-weight: 400; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.rr-cat { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-end { display: grid; justify-items: end; gap: 1px; flex: none; }
.rr-what { font-size: 12.5px; font-weight: 400; }
.rr-what.aw-ENTER, .rr-what.aw-RETURN { color: var(--green); }
.rr-what.aw-EXIT { color: var(--amber); }
.rr-what.aw-VOID { color: var(--muted); }
.rr-time { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.rr-pend { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px var(--amber-bg); }
.rr-undo { flex: none; width: 32px; height: 32px; margin-right: -4px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--muted); display: grid; place-items: center; }
.rr-undo svg.i { width: 15px; height: 15px; }
.rr-undo:active { background: var(--plum-50); color: var(--plum); }

/* ---------- attendant: section tabs + read-only overview pages ---------- */
.att { padding-bottom: calc(92px + var(--safe-b)); }
.att.att-page { display: block; max-width: 760px; }
.att-h { margin: 18px 2px 22px; }
.att-h h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin: 0; line-height: 1.08; letter-spacing: -.2px; color: var(--ink); }
.att-h .hello-meta { margin-top: 6px; }
.att-page .kpis { margin-bottom: 14px; }
.att-page .crow { cursor: default; }
.att-page .crow:hover { --bg: #fff; }
.att-page .frow.click, .att-page .row.click { cursor: default; }
.att-tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 5px 8px calc(5px + var(--safe-b)); }
.att-tabs button { flex: 1; max-width: 140px; border: 0; background: transparent; display: grid; justify-items: center; gap: 2px; padding: 5px 0 3px; font-size: 9.5px; font-weight: 500; letter-spacing: .02em; color: var(--muted); position: relative; border-radius: 12px; }
.att-tabs button svg.i { width: 17px; height: 17px; stroke-width: 1.8; }
.att-tabs button.on { color: var(--plum); }
.att-tabs button.on::before { content: ''; position: absolute; top: -5px; left: 50%; width: 20px; height: 2px; margin-left: -10px; border-radius: 2px; background: var(--plum); }
.att-tabs .badge { position: absolute; top: 1px; left: calc(50% + 6px); min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 9px; font-weight: 400; line-height: 15px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.att-tabs .badge[hidden] { display: none; }
@media print { .att-tabs { display: none; } }

/* ---------- compact toolbars: search + filters ---------- */
.toolbar .input, .toolbar .cs-btn { height: 38px; padding-top: 0; padding-bottom: 0; border-radius: 11px; }
.toolbar .btn { height: 40px; padding: 0 14px; border-radius: 11px; font-size: 14px; }
.toolbar .btn svg.i { width: 17px; height: 17px; }
.search svg { left: 13px; width: 17px; height: 17px; }
.search .input { padding-left: 38px; }
@media (min-width: 981px) { .toolbar .input, .toolbar .cs-btn { font-size: 14.5px; } }

/* ---------- branded dropdowns (select.js) ---------- */
.cs { position: relative; display: block; min-width: 0; }
.toolbar .cs { flex: 0 1 240px; min-width: 170px; }
.cs-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }
.cs-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; color: var(--ink); font-family: inherit; font-weight: 500; line-height: 1.3; padding-right: 12px; }
.cs-btn:disabled { opacity: .55; cursor: not-allowed; }
.cs-btn:focus-visible, .cs-btn.cs-open { border-color: var(--plum); box-shadow: 0 0 0 4px rgb(var(--plum-rgb) / .1); outline: none; }
.cs-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-val.cs-ph { color: var(--ink-2); }
.cs-chev { flex: none; color: var(--muted); transition: transform .18s ease, color .18s; }
.cs-btn.cs-open .cs-chev { transform: rotate(180deg); color: var(--plum); }
.cs-pop { position: fixed; z-index: 90; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 2px 6px rgba(42, 10, 31, .06), 0 20px 44px -18px rgba(42, 10, 31, .38); overflow: hidden; animation: cs-in .14s ease; }
.cs-pop.cs-up { animation-name: cs-in-up; }
@keyframes cs-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes cs-in-up { from { opacity: 0; transform: translateY(4px); } }
.cs-find { padding: 8px; border-bottom: 1px solid var(--line); flex: none; }
.cs-find input { width: 100%; border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 10px; font: inherit; font-size: 14px; outline: none; background: var(--ivory); }
.cs-find input:focus { border-color: var(--plum); background: #fff; }
.cs-list { overflow: auto; padding: 6px; overscroll-behavior: contain; }
.cs-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--ink); cursor: pointer; }
.cs-opt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-opt.cs-ph { color: var(--ink-2); }
.cs-opt.cs-act { background: var(--plum-50); }
.cs-opt.cs-on { color: var(--plum); font-weight: 400; }
.cs-opt svg { flex: none; color: var(--plum); }
.cs-opt.cs-dis { opacity: .45; cursor: default; }
.cs-grp { padding: 10px 10px 4px; font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cs-hide { display: none !important; }
@media (max-width: 980px) {
  .toolbar .cs { flex: 1 1 100%; max-width: none !important; }
  .g-toolbar .cs { min-width: 0; }
  .g-toolbar .cs-btn { font-size: 14px; color: var(--ink-2); }
  .g-toolbar .tb-actions .btn { height: 40px; min-width: 40px; }
  .g-toolbar .tb-actions .btn:not(.btn-primary) { width: 40px; }
  .cs-opt { padding: 11px 10px; font-size: 14px; }
}
@media (max-width: 980px) { .cs-find input { font-size: 16px; } } /* stops iOS zooming in on focus */

/* attendant: roomier rhythm between sections */
.att-h { margin: 22px 2px 30px; }
.att-page .kpis { margin-bottom: 0; }
.att-page .presence, .att-page .kpis + .presence { margin-top: 36px; }
.att-page .grid2 { gap: 36px; margin-top: 36px; }
.att-page .grid2 > div { gap: 36px !important; }
.att-page .callout + .kpis, .att-page .offline-note { margin-bottom: 28px; }
.att-page .toolbar.cat-toolbar { margin-bottom: 24px; }
.att-page .cat-sum { margin-bottom: 14px; }
.att .pulse { margin-top: 36px; }
.att .section-t { margin-top: 44px; }

/* ================= messages: attendant <-> admin ================= */
.btn-danger-solid { background: var(--red); border-color: var(--red); color: #fff; padding: 13px 18px; border-radius: 12px; font-weight: 500; }
.btn-danger-solid:hover { background: #9d2723; border-color: #9d2723; }
.btn-danger-solid svg.i { width: 18px; height: 18px; }

/* Attendant top bar: always-reachable "Alert" */
.alert-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border-radius: 11px; border: 1px solid var(--red-line); background: var(--red-bg); color: var(--red); font-size: 13px; font-weight: 500; flex: none; }
.alert-btn svg.i { width: 17px; height: 17px; }
.alert-btn:active { transform: scale(.97); }
@media (max-width: 380px) { .alert-btn span { display: none; } .alert-btn { padding: 0 9px; } }

/* Alert sheet */
.alert-sheet .as-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.alert-sheet .as-h h2 { margin: 0; }
.alert-sheet .as-h p { margin: 2px 0 0; font-size: 13.5px; }
.as-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--red-bg); color: var(--red); flex: none; }
.as-ico svg.i { width: 22px; height: 22px; }
.as-who { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--ivory-2); font-size: 13.5px; color: var(--ink-2); margin-bottom: 16px; }
.as-who svg.i { width: 16px; height: 16px; color: var(--muted); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chips button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 8px 13px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.topic-chips button.on { border-color: var(--red); background: var(--red-bg); color: var(--red); font-weight: 500; }
.alert-sheet textarea { resize: none; font-size: 15px; }

/* Attendant Messages page */
.alert-cta { position: relative; width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 14px 14px 14px; border-radius: 18px; border: 1px solid var(--line); background: #fff; color: var(--ink); margin-bottom: 20px; cursor: pointer; overflow: hidden;
  box-shadow: 0 1px 2px rgba(42, 10, 31, .03), 0 14px 30px -24px rgba(180, 47, 42, .45); transition: border-color .15s, box-shadow .15s, transform .08s; }
.alert-cta::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.alert-cta:hover { border-color: var(--red-line); }
.alert-cta:active { transform: scale(.99); }
.alert-cta .ac-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--red); background: linear-gradient(160deg, #fff4f2, var(--red-bg)); box-shadow: inset 0 0 0 1px var(--red-line); }
.alert-cta .ac-ico svg.i { width: 21px; height: 21px; }
.alert-cta .ac-t { flex: 1; min-width: 0; }
.alert-cta b { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.alert-cta small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.alert-cta .ac-go { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--red-bg); color: var(--red); }
.alert-cta .ac-go svg.i { width: 15px; height: 15px; }

/* Conversation (shared) */
.convo-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.convo-h { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.convo-h b { display: block; font-size: 14px; font-weight: 400; }
.convo-h small { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.convo-h small svg.i { width: 13px; height: 13px; }
.convo-h small .on { color: var(--green); font-weight: 400; }
.convo-h .avatar svg.i { width: 17px; height: 17px; }
.th-back { display: none; }
.convo { display: flex; flex-direction: column; gap: 8px; padding: 16px; overflow-y: auto; height: min(52vh, 460px); background: linear-gradient(180deg, #fdfbf8, #fff); }
.convo-empty { margin: auto; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 28px 16px; color: var(--muted); font-size: 13.5px; max-width: 280px; }
.convo-empty svg.i { width: 26px; height: 26px; color: var(--line-2); margin-bottom: 6px; }
.convo-empty b { color: var(--ink); font-size: 14px; }
.day-sep { text-align: center; font-size: 11.5px; color: var(--muted); margin: 4px 0; }
.day-sep span { background: var(--ivory-2); padding: 3px 10px; border-radius: 999px; }
.bub { display: block; max-width: 82%; padding: 10px 13px 8px; border-radius: 16px; font-size: 14px; line-height: 1.4; align-self: flex-start; background: var(--ivory-2); color: var(--ink); border-bottom-left-radius: 5px; overflow-wrap: anywhere; }
.bub.b-mine { align-self: flex-end; background: var(--plum); color: #fff; border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
.bub-text { white-space: pre-wrap; }
.bub-topic { font-weight: 400; }
.bub-meta { font-size: 11px; opacity: .65; margin-top: 4px; }
.bub-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.bub-tag svg.i { width: 13px; height: 13px; }
.bub.b-urgent { background: var(--red-bg); color: var(--ink); border: 1px solid var(--red-line); }
.bub.b-urgent .bub-tag { color: var(--red); }
.bub.b-urgent.b-mine { background: #fff; border-color: var(--red-line); color: var(--ink); }
.bub.b-urgent.b-resolved { background: #fff; border-color: var(--line-2); }
.bub.b-urgent.b-resolved .bub-tag { color: var(--green); }
.bub-res { display: flex; align-items: center; gap: 5px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--green); font-weight: 400; }
.bub-res svg.i { width: 14px; height: 14px; }
.bub-act { margin-top: 8px; background: #fff; }
.bub-act svg.i { width: 15px; height: 15px; }

.composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.composer textarea, .alert-sheet textarea { font: inherit; }
.composer textarea { flex: 1; resize: none; min-height: 40px; max-height: 120px; padding: 9px 12px; border-radius: 12px; font-size: 15px; line-height: 1.4; }
.send-btn { width: 40px; height: 40px; flex: none; border: 0; border-radius: 12px; background: var(--plum); color: #fff; display: grid; place-items: center; }
.send-btn svg.i { width: 18px; height: 18px; }
.send-btn:disabled { opacity: .5; }

/* Admin inbox */
.msg-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
.msg-layout .convo { height: min(60vh, 560px); }
.threads-h { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; font-size: 12.5px; }
.threads { overflow: hidden; }
.th { width: 100%; display: flex; align-items: flex-start; gap: 11px; text-align: left; padding: 13px 14px; border: 0; border-top: 1px solid var(--line); background: #fff; }
.th:first-child { border-top: 0; }
.th:hover { background: #fcfaf7; }
.th.on { background: var(--plum-50); }
.th-b { flex: 1; min-width: 0; display: grid; gap: 2px; }
.th-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.th-top b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-top span { font-size: 11.5px; color: var(--muted); flex: none; }
.th-gate { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); }
.th-gate svg.i { width: 12px; height: 12px; color: var(--gold); }
.th-alert { margin-left: 4px; padding: 1px 7px; font-size: 10.5px; color: var(--red); background: var(--red-bg); border-color: var(--red-line); }
.th-last { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th.unread .th-top b, .th.unread .th-last { color: var(--ink); font-weight: 400; }
.th-un { align-self: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--plum); color: #fff; font-size: 11px; font-weight: 400; line-height: 20px; text-align: center; }
@media (max-width: 860px) {
  .msg-layout { grid-template-columns: 1fr; }
  .msg-layout.has-open .threads-col { display: none; }
  .msg-layout:not(.has-open) .convo-card { display: none; }
  .th-back { display: grid; margin-right: -2px; }
}

/* Admin: unhandled alert bar */
#urgent-bar:empty { display: none; }
.urgent-bar { display: flex; align-items: center; gap: 10px; width: calc(100% - 64px); margin: 18px 32px 0; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--red-line); background: var(--red-bg); color: var(--ink); text-align: left; font-size: 13.5px; }
.ub-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; box-shadow: 0 0 0 0 rgba(180, 47, 42, .5); animation: ubpulse 1.6s ease-out infinite; }
@keyframes ubpulse { 70% { box-shadow: 0 0 0 9px rgba(180, 47, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(180, 47, 42, 0); } }
@media (prefers-reduced-motion: reduce) { .ub-dot { animation: none; } }
.ub-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ub-t b { color: var(--red); }
.ub-n { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ub-go { display: inline-flex; align-items: center; gap: 2px; font-weight: 500; color: var(--red); white-space: nowrap; }
.ub-go svg.i { width: 15px; height: 15px; }
@media (max-width: 860px) { .urgent-bar { width: calc(100% - 36px); margin: 14px 18px 0; } .ub-n { display: none; } }
@media (min-width: 1400px) { .urgent-bar { max-width: 1200px; } }
.mbadge { background: var(--plum) !important; }
.tabbar [data-more] .badge + .badge, .tabbar [data-more] .badge ~ .mbadge { display: none; }

/* Attendant read-only Guests / Activity */
.att-back { margin: 14px 0 -6px; }
.att-page tr.click { cursor: pointer; }
.att-page .convo { height: min(50vh, 440px); }

/* ---------- urgent alert cards (messages) ---------- */
.acard { --ac: var(--red); display: flex; flex-direction: column; gap: 5px; align-self: flex-start; width: min(340px, 86%);
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--ac); border-radius: 10px; padding: 11px 14px 12px; }
.acard.acard-mine { align-self: flex-end; }
.acard.resolved { --ac: var(--green); }
.acard-h { display: flex; align-items: center; gap: 6px; }
.acard-ico { display: grid; color: var(--ac); }
.acard-ico svg.i { width: 14px; height: 14px; }
.acard-tag { flex: 1; font-size: 10.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--ac); }
.acard-time { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.acard-topic { font-size: 14px; font-weight: 400; color: var(--ink); line-height: 1.35; }
.acard-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.acard-meta { font-size: 12px; color: var(--muted); }
.acard-wait { display: inline-flex; align-items: center; gap: 5px; color: var(--amber); font-weight: 400; }
.acard-wait i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse-dot 1.4s ease-in-out infinite; }
.acard-btn { align-self: flex-start; margin-top: 5px; height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13px; gap: 6px; background: var(--red); border-color: var(--red); color: #fff; }
.acard-btn:hover { background: #9c2722; border-color: #9c2722; }
.acard-btn svg.i { width: 15px; height: 15px; }
@keyframes pulse-dot { 50% { opacity: .35; } }

/* ---------- categories: calmer, more breathing room ---------- */
.cat-list.card { gap: 14px; }
.cat-list .crow { padding: 18px 20px; gap: 16px; box-shadow: none; border-radius: 12px; }
.cat-list .cring { width: 38px; height: 38px; }
.cat-list .cring::before { inset: 3px; }
.cat-list .cring b { font-size: 10.5px; }
.cat-list .cmain { gap: 5px; }
.cat-list .cmain b { font-size: 14px; font-weight: 400; line-height: 1.35; }
.cat-list .cmain > span { font-size: 12.5px; }
.cat-list .ccount { font-size: 14px; font-weight: 400; }
.cat-list .ccount i { font-size: 12.5px; }
@media (min-width: 981px) { .cat-list.card { gap: 16px; } }

/* very small phones: keep the guest status strip on one line */
@media (max-width: 370px) {
  .gv-tabs button { padding: 8px 6px; font-size: 12px; gap: 4px; }
  .gv-tabs button b { font-size: 11px; }
}

/* ================= Alerts both ways ================= */
.convo-who { flex: 1; min-width: 0; }
.convo-who b, .convo-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px 0 11px; border-radius: 999px; border: 1px solid var(--red-line); background: var(--red-bg); color: var(--red); font: inherit; font-size: 13px; font-weight: 400; cursor: pointer; transition: background .15s, transform .08s; }
.alert-pill svg.i { width: 16px; height: 16px; }
.alert-pill:hover { background: #f8dcd8; }
.alert-pill:active { transform: scale(.97); }
.alert-sheet .as-h { position: relative; padding-right: 44px; }
.as-x { position: absolute; top: 0; right: 0; width: 36px; height: 36px; border-radius: 50%; border-color: var(--line); color: var(--muted); }
.as-x:hover { color: var(--ink); }
.as-cancel { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; }
.as-cancel:hover { color: var(--ink); }

.ping-wrap { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px 20px calc(24px + var(--safe-b));
  background: radial-gradient(120% 70% at 50% 0%, rgba(180, 47, 42, .30), transparent 60%), rgba(42, 10, 31, .72); backdrop-filter: blur(6px); animation: fade .2s ease; }
.ping { width: min(420px, 100%); background: #fff; border-radius: 28px; padding: 30px 24px 18px; text-align: center; box-shadow: var(--shadow-lg); animation: up .25s ease; }
.ping-ring { position: relative; width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; }
.ping-ring::before, .ping-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--red); opacity: .18; animation: ping-pulse 1.6s ease-out infinite; }
.ping-ring::after { animation-delay: .8s; }
.ping-ring span { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(180, 47, 42, .8); }
.ping-ring svg.i { width: 28px; height: 28px; }
@keyframes ping-pulse { from { transform: scale(.8); opacity: .35; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ping-ring::before, .ping-ring::after { animation: none; } }
.ping-tag { font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.ping h2 { margin: 8px 0 0; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.ping-text { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.ping-time { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.ping-actions { margin-top: 24px; display: grid; gap: 2px; }
.ping-ok { background: var(--red); border-color: var(--red); color: #fff; }
.ping-ok:hover { background: #9c2722; border-color: #9c2722; }
.ping-reply { padding: 12px; border: 0; background: transparent; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--muted); cursor: pointer; }

.pin-hint { display: flex; align-items: center; gap: 8px; margin: -4px 0 16px; font-size: 12.5px; color: var(--muted); }
.pin-hint svg.i { width: 14px; height: 14px; flex: none; }
.pin-hint.hidden { display: none; }
.gate-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.gate-chips button { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.gate-chips button.on { background: var(--plum); border-color: var(--plum); color: #fff; }
.field-hint { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* ---------- guests view, phones: search gets the room, Category fits its label, softer corners ---------- */
@media (max-width: 980px) {
  .gv-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .gv .gv-search .input, .gv-cat .input, .gv-cat .cs-btn { height: 42px; border-radius: 11px; }
  .gv-cat .cs-btn { min-width: 124px; max-width: 46vw; gap: 8px; padding-right: 12px; }
  .gv-tabs { border-radius: 11px; }
  .gv-tabs button { border-radius: 8px; }
}

/* Status tab counts: full number on desktop, short form (118K, 2.4M) on phones so 6+ digit counts fit. */
.gv-tabs .gt-c { display: none; }
@media (max-width: 980px) {
  .gv-tabs .gt-n { display: none; }
  .gv-tabs .gt-c { display: inline; }
}

/* Messages: tighter, more tailored corners (cards 12 · bubbles 12 with a 4px tail · controls 10). */
.convo-card, .threads, .msg-layout .card { border-radius: 12px; }
.bub { border-radius: 12px; border-bottom-left-radius: 4px; }
.bub.b-mine { border-bottom-left-radius: 12px; border-bottom-right-radius: 4px; }
.composer textarea, .send-btn, .alert-pill, .topic-chips button, .as-who { border-radius: 10px; }
.as-ico { border-radius: 10px; }
.acard { border-radius: 8px; }
.ping { border-radius: 16px; }
.ping-ok { border-radius: 10px; }

/* Guests view: slightly smaller search + category text. The typed search text stays 16px on phones
   (iOS zooms into inputs below 16px), so only the placeholder shrinks there. */
.gv .gv-search .input { font-size: 14px; }
.gv-cat .cs-btn { font-size: 13.5px; }
@media (max-width: 980px) {
  .gv .gv-search .input { font-size: 16px; }
  .gv .gv-search .input::placeholder { font-size: 14px; }
  .gv-cat .cs-btn { font-size: 13.5px; }
}

/* ---------- Guests: category groups as single cards, pill filters on phone ---------- */
.gv .gv-grp { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(42, 10, 31, .03), 0 18px 40px -32px rgba(42, 10, 31, .25); }
.gv .gv-grp header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 20px; background: #fcf9f5; border-bottom: 1px solid var(--line); }
.gv .gv-grp h4 { flex: 1; min-width: 0; margin: 0; font-size: 13.5px; font-weight: 650; letter-spacing: -.005em; line-height: 1.35; color: var(--ink); white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.gv .gv-n { flex: none; display: inline-flex; align-items: baseline; gap: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.gv .gv-n b { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.gv .gv-n i { font-style: normal; }
.gv .gv-n.live { color: var(--green); }
.gv .gv-n.live b { color: var(--green); }
.gv .gv-n.live::before { content: ''; align-self: center; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2.5px var(--green-bg); }
.gv .gv-rows { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
@media (max-width: 980px) {
  .gv .gv-grp { border-radius: 14px; }
  .gv .gv-grp header { padding: 12px 18px; }
  .gv-list { gap: 18px; }
  .gv-tabs { display: flex; gap: 6px; padding: 0; margin: 0 0 22px; background: none; border: 0; border-radius: 0; }
  .gv-tabs button { flex: 1 1 auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 500; color: var(--ink-2); box-shadow: none; transition: background .15s, color .15s, border-color .15s; }
  .gv-tabs button b { font-size: 11.5px; font-weight: 500; color: var(--muted); }
  .gv-tabs button.on { background: var(--plum); border-color: var(--plum); color: #fff; font-weight: 500; box-shadow: 0 6px 14px -8px rgb(var(--plum-rgb) / .7); }
  .gv-tabs button.on b { color: rgba(255, 255, 255, .72); }
}
@media (max-width: 370px) { .gv-tabs { gap: 4px; } .gv-tabs button { padding: 7px 7px; } }

/* Sheets with a close (×) beside the title */
.sheet-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-h h2 { margin: 0 0 6px; }
.sheet-x { flex: none; width: 36px; height: 36px; border-radius: 50%; border-color: var(--line); color: var(--muted); margin-top: -2px; }
.sheet-x:hover { color: var(--ink); }
.sheet-x svg.i { width: 17px; height: 17px; }
.manual-go { margin-top: 14px; height: 48px; font-size: 15px; border-radius: 12px; }

/* attendant overview: quick way back to scanning (closes the page) */
.ov-scan { margin: 36px 0 0; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.ov-scan-h { display: grid; gap: 2px; margin: 0 2px 14px; }
.ov-scan-h b { font-size: 14px; font-weight: 400; color: var(--ink); }
.ov-scan-h span { font-size: 12.5px; color: var(--muted); }
.ov-scan-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ov-scan-btns .btn { min-width: 0; height: 44px; padding: 0 10px; border-radius: 11px; justify-content: center; gap: 7px; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; }
@media (max-width: 360px) { .ov-scan { padding: 16px 14px; } .ov-scan-btns .btn { font-size: 13px; gap: 5px; padding: 0 8px; } .ov-scan-btns .btn svg.i { width: 15px; height: 15px; } }
.ov-scan-btns .btn svg.i { width: 17px; height: 17px; }

/* ---------- activity: day-grouped feed ---------- */
.av { max-width: 1080px; }
.av-bar { display: flex; align-items: center; gap: 10px; margin: 4px 0 26px; }
.av-search { flex: 1 1 auto; max-width: 440px; min-width: 0; }
.av-search svg { left: 14px; width: 17px; height: 17px; color: var(--muted); }
.av .av-search .input { height: 44px; padding: 0 14px 0 42px; border-radius: 12px; border-color: var(--line); font-size: 14px; }
.av input[type=search] { -webkit-appearance: none; appearance: none; }
.av-who { flex: 0 1 220px; min-width: 0; }
.av-who .cs-btn { height: 44px; padding: 0 12px 0 14px; border-radius: 12px; border-color: var(--line); font-size: 13.5px; color: var(--ink-2); }

.av-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 34px; overflow-x: auto; scrollbar-width: none; }
.av-tabs::-webkit-scrollbar { display: none; }
.av-tabs button { position: relative; flex: none; display: inline-flex; align-items: baseline; gap: 7px; padding: 0 0 13px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; transition: color .15s; }
.av-tabs button b { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); opacity: .75; }
.av-tabs button:hover { color: var(--ink); }
.av-tabs button.on { color: var(--plum-900); font-weight: 500; }
.av-tabs button.on b { color: var(--plum); opacity: 1; }
.av-tabs button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--plum); }

.av-list { display: grid; gap: 32px; }
.av-grp header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px 12px; }
.av-grp h4 { margin: 0; display: flex; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 650; color: var(--plum-900); }
.av-grp h4 span { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.av-grp small { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.av-rows { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.av-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(120px, 200px) auto; align-items: center; column-gap: 18px; padding: 16px 22px; outline: none; transition: background .15s; }
.av-row + .av-row { border-top: 1px solid #F3EDE5; }
.av-row.click { cursor: pointer; }
.av-row.click:hover, .av-row:focus-visible { background: #FCF9F5; }
.av-row:focus-visible { box-shadow: inset 3px 0 0 var(--plum); }
.av-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grey-bg); color: var(--ink-2); }
.av-ico svg.i { width: 16px; height: 16px; }
.av-ico.av-ENTER, .av-ico.av-RETURN { background: var(--green-bg); color: var(--green); }
.av-ico.av-EXIT { background: var(--amber-bg); color: var(--amber); }
.av-ico.av-REJECT { background: var(--red-bg); color: var(--red); }
.av-main { min-width: 0; display: grid; gap: 3px; }
.av-main b { font-size: 14px; font-weight: 400; color: var(--ink); letter-spacing: .02em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-main > span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.av-flags em { font-style: normal; font-size: 11px; font-weight: 400; color: var(--red); background: var(--red-bg); padding: 2px 8px; border-radius: 6px; }
.av-by { min-width: 0; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-by i { font-style: normal; color: var(--muted); }
.av-by i::before { content: ' · '; }
.av-side { display: grid; justify-items: end; gap: 3px; text-align: right; }
.av-act { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.av-act.av-ENTER, .av-act.av-RETURN { color: var(--green); }
.av-act.av-EXIT { color: var(--amber); }
.av-act.av-REJECT { color: var(--red); }
.av-time { font-size: 12px; color: var(--muted); }
.av-row.voided { opacity: .5; }
.av-row.voided .av-main b { text-decoration: line-through; }
.av-empty { display: grid; justify-items: center; gap: 6px; padding: 60px 20px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.av-empty svg.i { width: 22px; height: 22px; color: var(--muted); margin-bottom: 6px; }
.av-empty b { font-size: 14px; font-weight: 400; color: var(--ink); }
.av-empty span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 980px) {
  .av-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 2px 0 22px; }
  .av-search { max-width: none; }
  .av-search svg { left: 13px; width: 16px; height: 16px; }
  .av .av-search .input { height: 42px; padding-left: 38px; border-radius: 11px; font-size: 16px; }
  .av .av-search .input::placeholder { font-size: 14px; }
  .av-who .cs-btn { height: 42px; min-width: 120px; max-width: 44vw; border-radius: 11px; }
  .av-tabs { margin-bottom: 24px; }
  .av-tabs button { padding-bottom: 12px; }
  .av-list { gap: 26px; }
}

/* Activity, phones: two quiet lines per row (serial + time / dot, movement, category). */
.av-act-m { display: none; }
@media (max-width: 980px) {
  .av-tabs { gap: 20px; }
  .av-tabs button { font-size: 13px; }
  .av-tabs button b { font-size: 11.5px; }
  .av-grp header { padding: 0 2px 10px; }
  .av-grp h4 span { display: none; }
  .av-grp small { font-size: 12px; }
  .av-rows { border-radius: 14px; }
  .av-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding: 15px 18px; column-gap: 12px; }
  .av-row + .av-row { border-top-color: #F5F0E9; }
  .av-ico, .av-by, .av-act { display: none; }
  .av-main { gap: 4px; }
  .av-main b { font-size: 14px; letter-spacing: 0; }
  .av-main > span { font-size: 13px; }
  .av-act-m { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink-2); }
  .av-act-m::after { content: '·'; margin: 0 6px 0 0; color: var(--line-2); font-weight: 400; }
  .av-act-m i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
  .av-act-m.av-ENTER, .av-act-m.av-RETURN { color: var(--green); }
  .av-act-m.av-EXIT { color: var(--amber); }
  .av-act-m.av-REJECT { color: var(--red); }
  .av-side { padding-top: 1px; }
  .av-time { font-size: 13px; }
}

/* ---------- attendant alerts: your flagged scans ---------- */
.sa-tabs { display: flex; gap: 6px; margin: 0 0 18px; }
.sa-tabs button { flex: 1 1 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.sa-tabs button b { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.sa-tabs button.on { background: var(--plum); border-color: var(--plum); color: #fff; font-weight: 500; box-shadow: 0 6px 14px -8px rgb(var(--plum-rgb) / .7); }
.sa-tabs button.on b { color: rgba(255, 255, 255, .72); }
.sa-list { display: grid; gap: 12px; }
.sa-row { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 12px; padding: 14px 16px 15px; }
.sa-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sa-tag { font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.sa-time { font-size: 12px; color: var(--muted); }
.sa-ser { margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--ink); letter-spacing: .01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.sa-ser span { font-size: 12.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.sa-what { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.sa-fix { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--ivory); font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.sa-fix b { color: var(--ink); font-weight: 400; }
.sa-empty { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 22px; text-align: center; display: grid; justify-items: center; gap: 6px; }
.sa-empty b { font-size: 14px; color: var(--ink); }
.sa-empty p { margin: 0; max-width: 340px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.sa-ok { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green-bg); color: var(--green); margin-bottom: 6px; }
.sa-ok svg.i { width: 20px; height: 20px; }
.rrow.flagged { box-shadow: inset 3px 0 0 var(--red); }
.rr-flag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 400; color: var(--red); }
.rr-flag svg.i { width: 12px; height: 12px; }
.flag-sheet { padding: 4px 4px 2px; }
.fs-top { display: flex; align-items: center; gap: 12px; }
.fs-ico { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--red-bg); color: var(--red); }
.fs-ico svg.i { width: 22px; height: 22px; }
.fs-eye { font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.flag-sheet h2 { margin: 2px 0 0; font-size: 20px; font-weight: 650; letter-spacing: -.2px; color: var(--ink); font-family: var(--sans); }
.fs-scan { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fs-scan b { font-size: 14px; font-weight: 400; letter-spacing: .01em; }
.fs-scan span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.fs-what { margin: 12px 2px 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.fs-fix { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--ivory); }
.fs-fix b { font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.fs-fix p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.fs-more { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }
.fs-btns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; margin-top: 18px; }
.fs-btns .btn { height: 46px; border-radius: 11px; justify-content: center; font-weight: 500; }

/* Activity filters: movements + issues. Desktop = one underline row; phones = segmented control + issue chips. */
.at-core, .at-issues { display: contents; }
.av-tabs .at-s, .av-tabs .at-i { display: none; }
@media (max-width: 980px) {
  .av-tabs { display: flex; flex-direction: column; align-items: stretch; gap: 12px; border: 0; margin-bottom: 26px; overflow: visible; }
  .at-core { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 3px; background: var(--ivory-2); border: 1px solid var(--line); border-radius: 12px; }
  .at-core button { justify-content: center; align-items: center; gap: 5px; min-width: 0; height: 36px; padding: 0 4px; border-radius: 9px; font-size: 13px; color: var(--muted); }
  .at-core .at-l { display: none; }
  .at-core .at-s { display: inline; }
  .at-core button b { font-size: 12px; }
  .at-core button.on { background: #fff; color: var(--plum-900); box-shadow: 0 1px 2px rgba(42, 10, 31, .08), 0 2px 8px -4px rgba(42, 10, 31, .15); }
  .av-tabs button.on::after { display: none; }
  .at-issues { display: flex; gap: 8px; }
  .at-issues button { align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 12.5px; color: var(--muted); }
  .at-issues .at-i { display: grid; }
  .at-issues .at-i svg.i { width: 13px; height: 13px; }
  .at-issues button b { font-size: 11.5px; }
  .at-issues button.has { color: var(--red); border-color: var(--red-line); background: var(--red-bg); }
  .at-issues button.has b { color: var(--red); opacity: 1; }
  .at-issues button.on { background: var(--red); border-color: var(--red); color: #fff; }
  .at-issues button.on b { color: #fff; }
}
.sa-intro { margin: 0 2px 16px; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* scan home: link through to the overview, under Recent scans */
.sh-ov { width: 100%; margin-top: 28px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; box-shadow: var(--shadow-sm); transition: background .15s ease; }
.sh-ov:hover { background: #fcf9f5; }
.sh-ov:active { background: var(--plum-50); }
.sh-ov-ico { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--plum-50); color: var(--plum); }
.sh-ov-ico svg.i { width: 18px; height: 18px; }
.sh-ov-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sh-ov-t b { font-size: 14px; font-weight: 400; color: var(--ink); }
.sh-ov-t span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-ov-go { flex: none; color: var(--muted); display: grid; }
.sh-ov-go svg.i { width: 17px; height: 17px; }

/* guests (admin): toolbar count + icon actions on phone; compact add/edit sheet buttons */
.gv-count { display: none; }
.ge-acts { margin-top: 18px; }
.ge-acts .btn { height: 44px; padding: 0 16px; font-size: 14.5px; font-weight: 500; border-radius: 11px; justify-content: center; gap: 7px; }
.ge-acts .btn svg.i { width: 16px; height: 16px; }
@media (max-width: 980px) {
  .gv-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin: 2px 0 0; }
  .gv-count { display: block; margin-right: auto; padding-left: 4px; font-size: 12.5px; font-weight: 400; color: var(--muted); }
  .gv-ghost { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink-2); }
  .gv-ghost span { display: none; }
  .gv-ghost svg.i { width: 17px; height: 17px; color: var(--ink-2); }
  .gv-ghost:active { background: var(--plum-50); }
  .gv-add { width: 40px; height: 40px; padding: 0; margin: 0; border-radius: 11px; justify-content: center; box-shadow: 0 6px 14px -8px rgb(var(--plum-rgb) / .7); }
  .gv-add > span { display: none; }
  .gv-add svg.i { width: 18px; height: 18px; margin: 0; }
}

/* attendant footer: Alerts tab signals unread alerts */
.att-tabs button.has-new { color: var(--red); }
.att-tabs button.has-new svg.i { transform-origin: 50% 10%; animation: bell-ring 2.6s ease-in-out infinite; }
.att-tabs button.has-new .badge { animation: badge-pulse 2.6s ease-out infinite; }
@keyframes bell-ring { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(14deg); } 78% { transform: rotate(-12deg); } 82% { transform: rotate(9deg); } 86% { transform: rotate(-6deg); } 90% { transform: rotate(3deg); } }
@keyframes badge-pulse { 0% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(180, 47, 42, .45); } 60%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 9px rgba(180, 47, 42, 0); } }
@media (prefers-reduced-motion: reduce) { .att-tabs button.has-new svg.i, .att-tabs button.has-new .badge { animation: none; } }
/* opt-in for phone notifications */
.notif-ask { width: 100%; display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 14px; border: 1px dashed var(--plum-100); border-radius: 12px; background: var(--plum-50); color: var(--plum); text-align: left; }
.notif-ask > svg.i { width: 18px; height: 18px; flex: none; }
.notif-ask > span { display: grid; gap: 1px; min-width: 0; }
.notif-ask b { font-size: 13.5px; font-weight: 400; color: var(--plum-900); }
.notif-ask > span > span { font-size: 12px; color: var(--ink-2); }

/* ---------- admin "More" menu sheet ---------- */
.mm-sheet { padding: 8px 16px calc(18px + var(--safe-b)); background: var(--ivory); }
.mm-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 20px; }
.mm-head .avatar { width: 42px; height: 42px; font-size: 14px; flex: none; }
.mm-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mm-who b { font-size: 14px; font-weight: 400; color: var(--ink); }
.mm-who span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-x { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--ivory-2); color: var(--ink-2); cursor: pointer; }
.mm-x svg.i { width: 17px; height: 17px; }
.mm-grp { margin-bottom: 18px; }
.mm-grp h6 { margin: 0 0 8px; padding: 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mm-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mm-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 14px; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; transition: background .15s; }
.mm-item + .mm-item { box-shadow: inset 0 1px 0 #F3EDE5; }
.mm-item:active, .mm-item:hover { background: #FCF9F5; }
.mm-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--plum-50); color: var(--plum); }
.mm-ico svg.i { width: 17px; height: 17px; }
.mm-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mm-txt b { font-size: 14px; font-weight: 400; color: var(--ink); }
.mm-txt span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-chev { display: grid; color: var(--line-2); }
.mm-chev svg.i { width: 16px; height: 16px; }
.mm-badge { flex: none; min-width: 22px; height: 22px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 400; font-variant-numeric: tabular-nums; }
.mm-item.on { background: var(--plum-50); }
.mm-item.on .mm-ico { background: var(--plum); color: #fff; }
.mm-item.on .mm-txt b { color: var(--plum); }
.mm-out { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin-top: 4px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--red); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.mm-out svg.i { width: 16px; height: 16px; }
@media (min-width: 720px) { .mm-sheet { width: 440px; } }
.notif-ios { cursor: default; }

/* ---------- sign-in: just the sign-in, done beautifully ---------- */
.login { gap: 26px; max-width: 400px; }
.login .signin { position: relative; padding: 28px 24px 22px; border-radius: 18px; border-color: #eadfcd; box-shadow: 0 1px 2px rgba(42, 10, 31, .04), 0 26px 60px -34px rgb(var(--plum-rgb) / .4); }
.login .signin::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, transparent, var(--gold-400), transparent); }
.signin-h { margin-bottom: 22px; text-align: center; }
.si-eye { font-size: 10.5px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.signin-h h2 { font-size: 32px; font-weight: 600; color: var(--plum-900); letter-spacing: -.3px; }
.signin-h p { margin: 6px auto 0; max-width: 290px; font-size: 13.5px; line-height: 1.5; }
.login .field > label[for="f-pin"] { text-align: center; display: block; }
.login .input-pin { height: 54px; font-size: 22px; letter-spacing: .6em; text-indent: .6em; border-radius: 12px; background: #fffdfa; }
.login .btn-lg { height: 50px; border-radius: 12px; font-size: 15.5px; font-weight: 500; box-shadow: 0 10px 22px -14px rgb(var(--plum-rgb) / .8); }
.login .link-btn { display: block; margin: 14px auto 0; }
.login .foot { font-size: 12px; }
.login .foot svg.i { color: var(--gold); }

/* ---------- welcome: confirms the event after sign-in ---------- */
.welcome { position: fixed; inset: 0; z-index: 90; overflow-y: auto; display: grid; place-items: center; padding: max(64px, calc(env(safe-area-inset-top) + 36px)) 18px calc(28px + var(--safe-b));
  background: radial-gradient(900px 420px at 50% -120px, rgb(var(--plum-rgb) / .12), transparent 70%), radial-gradient(700px 360px at 100% 110%, rgb(var(--gold-rgb) / .12), transparent 70%), var(--ivory);
  opacity: 0; transition: opacity .22s ease; }
.welcome.in { opacity: 1; }
.wl-in { width: 100%; max-width: 420px; display: grid; gap: 22px; transform: translateY(8px); transition: transform .3s ease; }
.welcome.in .wl-in { transform: none; }
.wl-hi { text-align: center; display: grid; gap: 4px; }
.wl-eye { font-size: 10.5px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.wl-hi h1 { margin: 10px 0 0; font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1.05; color: var(--ink); }
.wl-hi h1 em { font-style: normal; font-weight: 700; color: var(--plum); }
.wl-hi p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.wl-card .ev-hero { margin: 18px 0; }
.wl-go { height: 52px; border-radius: 13px; justify-content: center; gap: 8px; font-size: 16px; font-weight: 500; box-shadow: 0 12px 26px -14px rgb(var(--plum-rgb) / .85); }
.wl-go svg.i { width: 17px; height: 17px; }
.wl-not { margin: -6px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.wl-not .link-btn { display: inline; margin: 0; font-size: 12.5px; }
.login-wrap { min-height: 100vh; min-height: 100dvh; }
.login .pin-hint { justify-content: center; text-align: center; margin: 2px 0 18px; font-size: 12px; }
.login #f-shared { font-size: 12.5px; font-weight: 400; color: var(--muted); text-decoration: none; border: 0; }
.login #f-shared:hover, .login #f-shared:focus-visible { color: var(--plum); }

/* ================= Admin pages kit (pg-*): Bulk upload · Card designer · Generate · Attendants · Reports · Events · Settings ================= */
/* Same language as Guests / Categories / More menu: small section headings, white grouped cards, roomy rows, soft status dots. */
.pg { display: grid; gap: 36px; max-width: 1080px; min-width: 0; }
.pg > * { min-width: 0; }
.pg-lede { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 2px; }
.pg-lede p { margin: 0; max-width: 620px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.pg-sec { display: grid; gap: 12px; min-width: 0; align-content: start; }
.pg-sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 4px; min-width: 0; }
.pg-sec-h > div:first-child { min-width: 0; }
.pg-sec-h h3 { margin: 0; font-size: 14px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.pg-sec-h p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.pg-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.pg-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; box-shadow: 0 1px 2px rgba(42, 10, 31, .03), 0 18px 40px -32px rgba(42, 10, 31, .25); }
.pg-pad { padding: 24px 26px; }
.pg-loading { padding: 52px 20px; }
.pg-foot { padding: 14px 22px; background: #fcf9f5; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.pg-foot b { color: var(--ink-2); font-weight: 400; }
.pg-label { display: block; margin-bottom: 8px; font-size: 10.5px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pg-p { margin: 0 0 14px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.pg-note { margin: 2px 4px 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.pg-2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.pg-stack { display: grid; gap: 36px; min-width: 0; }

/* rows */
.pg-row { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; padding: 16px 22px; border: 0; background: none; font: inherit; color: inherit; text-align: left; text-decoration: none; }
.pg-row + .pg-row, .pg-empty + .pg-row { border-top: 1px solid #F3EDE5; }
.pg-row.click { cursor: pointer; transition: background .15s; outline: none; }
.pg-row.click:hover, .pg-row.click:focus-visible { background: #FCF9F5; }
.pg-row.click:focus-visible { box-shadow: inset 3px 0 0 var(--plum); }
.pg-row-band { background: #fcf9f5; }
.pg-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--plum-50); color: var(--plum); }
.pg-ico svg.i { width: 17px; height: 17px; }
.pg-row .avatar { width: 36px; height: 36px; font-size: 12.5px; }
.pg-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pg-txt > b { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; font-size: 14px; font-weight: 400; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.pg-txt > span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-txt > span.wrap { white-space: normal; line-height: 1.5; }
.pg-txt em { font-style: normal; }
.t-bad { color: var(--red); }
.t-warn { color: var(--amber); }
.pg-end { flex: none; display: flex; align-items: center; gap: 12px; }
.pg-chev { flex: none; display: grid; color: var(--line-2); }
.pg-chev svg.i { width: 16px; height: 16px; }
.pg-tag { display: inline-flex; padding: 1px 8px; border-radius: 999px; background: var(--plum-50); color: var(--plum); font-size: 11px; font-weight: 400; }
.pp-you { font-size: 12px; font-weight: 400; color: var(--muted); }
.pg-st { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.pg-st i { width: 7px; height: 7px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .7; }
.pg-st.on { color: var(--green); font-weight: 400; }
.pg-st.on i { background: currentColor; opacity: 1; box-shadow: 0 0 0 4px var(--green-bg); }
.pg-st.bad { color: var(--red); font-weight: 400; }
.pg-st.bad i { background: currentColor; opacity: 1; box-shadow: 0 0 0 4px var(--red-bg); }
.is-off .avatar, .is-off .pg-txt { opacity: .55; }

/* buttons */
.pg-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.pg-btn svg.i { width: 17px; height: 17px; color: var(--muted); transition: color .15s; }
.pg-btn:hover { background: var(--plum-50); color: var(--plum); }
.pg-btn:hover svg.i { color: var(--plum); }
.pg-btn-q { color: var(--muted); font-weight: 500; }
.pg-cta { height: 42px; padding: 0 20px 0 16px; border-radius: 999px; gap: 8px; font-size: 13.5px; box-shadow: 0 8px 18px -14px rgb(var(--plum-rgb) / .8); }
.pg-cta svg.i { width: 17px; height: 17px; }
.pg-act { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.pg-act svg.i { width: 17px; height: 17px; }
.pg-act:hover, a.pg-row:hover .pg-act { background: var(--plum-50); color: var(--plum); }
.pg-act-bad:hover { background: var(--red-bg); color: var(--red); }

/* empty states */
.pg-empty { display: grid; justify-items: center; gap: 6px; padding: 48px 24px; text-align: center; }
.pg-empty svg.i { width: 22px; height: 22px; color: var(--muted); margin-bottom: 6px; }
.pg-empty b { font-size: 14px; font-weight: 400; color: var(--ink); }
.pg-empty span { max-width: 460px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.pg-empty .pg-cta { margin-top: 12px; }

/* fields inside these pages */
.pg .field { margin-bottom: 16px; }
.pg .field label { font-size: 12.5px; font-weight: 400; color: var(--ink-2); }
.pg .input:not(textarea):not(.input-sm) { height: 44px; padding-top: 0; padding-bottom: 0; border-radius: 11px; font-size: 14.5px; }
.pg .input-sm { height: 40px; padding-top: 0; padding-bottom: 0; border-radius: 10px; font-size: 14px; }
.pg textarea.input { border-radius: 11px; font-family: inherit; line-height: 1.5; }
.pg .seg { border-radius: 12px; }
.pg .seg button { padding: 9px 10px; font-size: 13.5px; }
.pg-form-acts { display: flex; margin-top: 4px; }
.pg-form-acts .btn { height: 44px; padding: 0 22px; border-radius: 11px; font-size: 14px; }

/* stats strip (Reports) */
.pg-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: #F3EDE5; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(42, 10, 31, .03), 0 18px 40px -32px rgba(42, 10, 31, .25); }
.pg-stat { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 20px 22px; background: #fff; }
.pg-stat .k { font-size: 12px; font-weight: 400; color: var(--muted); }
.pg-stat .v { margin-top: 6px; font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.05; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.pg-stat .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-stat:first-child { background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .10), transparent 55%), linear-gradient(155deg, var(--plum-600), var(--plum) 55%, var(--plum-800)); }
.pg-stat:first-child .k, .pg-stat:first-child .s { color: rgba(255, 255, 255, .76); }
.pg-stat:first-child .v { color: #fff; }

/* two-column row grid (Reports exports) */
.pg-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #F3EDE5; }
.pg-cols > .pg-row { background: #fff; border-top: 0 !important; }
.pg-cols > .pg-row.click:hover { background: #FCF9F5; }
.pg-cols > :last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Reports: attendance by category */
.rp-row { gap: 20px; }
.rp-in { color: var(--green); }
.rp-out { color: var(--amber); }
.rp-bar { flex: 0 1 220px; height: 6px; border-radius: 3px; background: var(--ivory-2); overflow: hidden; }
.rp-bar i { display: block; height: 100%; border-radius: 3px; background: var(--plum); }
.rp-n { flex: none; min-width: 88px; text-align: right; font-size: 14px; font-weight: 400; color: var(--ink); white-space: nowrap; }
.rp-n i { font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.rp-p { flex: none; width: 44px; text-align: right; font-size: 13px; font-weight: 400; color: var(--muted); }

/* Settings */
.pg .ev-editor { gap: 32px; }
.pg .ev-preview { border-radius: 14px; min-height: 240px; }
.st-join { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 22px; align-items: start; }
.st-join + .st-join { border-top: 1px solid #F3EDE5; }
.st-join .qr svg { display: block; width: 148px; height: 148px; border-radius: 12px; border: 1px solid var(--line); }
.st-join .url { margin: 0 0 12px; padding: 7px 11px; font-size: 13.5px; }
.pg-steps { display: grid; gap: 4px; margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.st-pin .pg-txt { cursor: default; }
.pg .st-pin input { width: 120px; flex: none; text-align: center; letter-spacing: .14em; font-weight: 400; }
.st-pin .btn { height: 40px; padding: 0 18px; border-radius: 10px; }

/* Bulk upload */
.pg .drop { gap: 6px; padding: 40px 20px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: #fcf9f5; }
.pg .drop:hover, .pg .drop.over { border-color: var(--plum); background: var(--plum-50); }
.pg .drop .ico { width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.pg .drop b { font-size: 14px; font-weight: 400; }
.pg .drop .muted { font-size: 13px; }
.pg .drop u { color: var(--plum); text-decoration-color: rgb(var(--plum-rgb) / .35); text-underline-offset: 3px; }
.up-cols { display: grid; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.up-cols > span { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.up-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.up-cols i { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px; background: rgb(var(--plum-rgb) / .07); font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--plum); white-space: nowrap; }
.up-cols i::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .55; }
.up-cols em { font-style: normal; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* Section header "See all" link: quiet, stays on the heading's line. */
.pg-sec-h:has(> .pg-more) { flex-wrap: nowrap; align-items: flex-end; }
.pg-more { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 6px 0 10px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 13px; font-weight: 500; color: var(--plum); white-space: nowrap; cursor: pointer; }
.pg-more:hover { background: rgb(var(--plum-rgb) / .07); }
.pg-more svg.i { width: 15px; height: 15px; }
.up-2 #up-mode { margin-bottom: 18px; }
.pg .serial-eg { padding: 11px 13px; border: 1px solid #F3EDE5; border-radius: 11px; background: #fcf9f5; font-size: 12.5px; }
.pg .up-fields .field:last-child { margin-bottom: 14px; }

/* Attendants */
.people { margin-bottom: 0; }
.pg-acts.pp-actions { width: auto; display: flex; }
.pg-acts.pp-actions > * { order: 0 !important; }
.pp-row .pp-pin { letter-spacing: .12em; font-weight: 400; color: var(--ink-2); }
.pins-on .pp-row .pp-pin { color: var(--plum); }
.dv-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 150px 190px 36px; grid-template-areas: "av who st acc more"; gap: 16px; }
.dv-row > .avatar { grid-area: av; }
.dv-who { grid-area: who; }
.dv-st { grid-area: st; }
.dv-acc { grid-area: acc; min-width: 0; }
.dv-more { grid-area: more; display: flex; justify-content: flex-end; }
.devs select { min-width: 0; }
.dv-acc .cs-btn { background-color: #fff; font-size: 13.5px; }
.dv-all { font-size: 12.5px; color: var(--muted); }

/* Events */
.evc-b { padding: 28px 30px 24px; background: radial-gradient(600px 220px at 100% -60px, rgb(var(--plum-rgb) / .07), transparent 70%), #fff; }
.evc-k { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.evc-k .pg-label { margin: 0; }
.evc-t { margin-top: 10px; font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.08; letter-spacing: -.2px; color: var(--plum-900); overflow-wrap: anywhere; }
.evc-h { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.evc-m { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.evc-m span { display: inline-flex; align-items: center; gap: 6px; }
.evc-m svg.i { width: 15px; height: 15px; color: var(--gold); }
.evc-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 10px 30px; border-top: 1px solid var(--line); background: #fcf9f5; }
.evc-n { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 13px; color: var(--muted); }
.evc-n b { margin-right: 2px; font-size: 14px; font-weight: 400; color: var(--ink); }
.ev-hon { font-weight: 400; color: var(--muted); }
.ev-row-a { gap: 4px; }
.ev-go { height: 36px; padding: 0 14px; gap: 6px; border-radius: 999px; border-color: var(--plum-100); background: #fff; color: var(--plum); font-size: 13px; }
.ev-go:hover { background: var(--plum-50); border-color: var(--plum-100); }
.ev-go svg.i { width: 15px; height: 15px; }
.ev-old .pg-ico { background: var(--ivory-2); color: var(--muted); }

/* Card designer: calm toolbar, soft stage, quieter panels */
.dz { gap: 28px; }
.dz-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0; border: 0; background: none; box-shadow: none; }
.dz-pick { flex: 0 1 280px; min-width: 0; }
.dz-bar select { max-width: none; }
.dz-pick .input, .dz-pick .cs-btn { height: 42px; padding-top: 0; padding-bottom: 0; padding-left: 16px; border-radius: 999px; border-color: var(--line); background-color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-sm); }
.dz-bar-r { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.dz-dirty { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-size: 12.5px; font-weight: 400; color: var(--amber); }
.dz-dirty:not(:empty)::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--amber-bg); }
.dz-stage-wrap { margin-top: 16px; padding: 36px; min-height: 260px; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(circle, rgba(42, 10, 31, .09) 1px, transparent 1.3px) 0 0 / 16px 16px, #fbf8f3; }
.dz-prev { display: flex; align-items: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.dz-pv { display: flex; align-items: center; gap: 2px; min-width: 0; max-width: 100%; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.dz-pv .pg-act { width: 32px; height: 32px; border-radius: 999px; }
.dz-prev-t { min-width: 0; max-width: 280px; padding: 0 8px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-gen { margin-left: auto; color: var(--plum); }
.dz-gen svg.i { color: var(--plum); }
.dz-tip { margin: 12px 4px 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.dz-panel { gap: 14px; top: 20px; }
.dz-sec { padding: 18px 20px; border-radius: 16px; box-shadow: 0 1px 2px rgba(42, 10, 31, .03), 0 18px 40px -32px rgba(42, 10, 31, .25); }
.dz-sec h4 { margin: 0 0 14px; font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.dz-sec .field { margin-bottom: 12px; }
.dz-sec .field label { font-size: 12px; font-weight: 400; color: var(--muted); }
.dz-sec .input-sm { height: 38px; padding-top: 0; padding-bottom: 0; border-radius: 10px; font-size: 13.5px; }
.dz-4 .input { padding: 0 6px; }
.dz-sec .btn-sm, .color-in { height: 38px; border-radius: 10px; }
.dz-add { gap: 8px; }
.dz-add button { gap: 6px; padding: 12px 4px 10px; border-radius: 12px; border-color: var(--line); background: #fff; font-size: 11.5px; color: var(--ink-2); transition: background .15s, border-color .15s, color .15s; }
.dz-add button svg.i { width: 18px; height: 18px; color: var(--plum); }
.dz-add button:hover { background: var(--plum-50); border-color: var(--plum-100); color: var(--plum); }
.dz-layers { gap: 2px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #F3EDE5; }
.dz-layers button { padding: 8px 10px; border-radius: 9px; }
.dz-layers button:hover { background: #fcf9f5; }
.dz-layers button.on:hover { background: var(--plum-50); }
.dz-acts .btn { height: 34px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; }
.dz-sec.dz-danger { padding: 2px 6px; border: 0; background: none; box-shadow: none; }

/* Generate leads (cards): numbered steps, list-style choices, preview + summary on the side */
.gen.pg { max-width: 1180px; gap: 28px; }
.gen-main { gap: 36px; }
.gen-side { gap: 0; top: 20px; }
.gen-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gen-n { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--plum-50); color: var(--plum); font-size: 12.5px; font-weight: 400; font-variant-numeric: tabular-nums; }
.gen-tpls { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gen-tpls button { gap: 8px; padding: 16px 12px 12px; border-radius: 14px; border-color: #F3EDE5; background: #fcf9f5; transition: border-color .15s, background .15s; }
.gen-tpls button:hover { border-color: var(--line-2); }
.gen-tpls button.on { border-color: var(--plum); background: var(--plum-50); box-shadow: 0 0 0 3px rgb(var(--plum-rgb) / .08); }
.gen-tpls span { font-size: 13.5px; font-weight: 400; }
.gen-all, .gen-cat { display: flex; align-items: center; gap: 12px; min-width: 0; cursor: pointer; font-size: 13.5px; color: var(--ink); }
.gen-all { padding: 14px 22px; border-bottom: 1px solid var(--line); background: #fcf9f5; font-weight: 400; }
.gen-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 6px 0; max-height: 380px; overflow-y: auto; }
.gen-cats .pg-empty { grid-column: 1 / -1; }
.gen-cat { padding: 11px 22px; transition: background .15s; }
.gen-cat:hover { background: #fcf9f5; }
.gen-cat span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gen-all em, .gen-cat em { margin-left: auto; padding-left: 8px; font-style: normal; font-size: 12.5px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.gen-all input, .gen-cat input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--plum); }
.gen-ser label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 8px; font-size: 12.5px; font-weight: 400; color: var(--ink-2); }
.gen-ser label span { font-size: 12px; font-weight: 400; color: var(--muted); }
.gen-ser textarea { min-height: 64px; background: #fff; font-size: 14px; }
.gen-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 22px; border: 0; border-radius: 0; background: #fff; box-shadow: none; transition: background .15s; }
.opt + .opt { border-top: 1px solid #F3EDE5; }
.opt:hover { background: #fcf9f5; }
.opt.on { background: var(--plum-50); box-shadow: inset 3px 0 0 var(--plum); }
.opt .opt-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--ivory-2); color: var(--muted); transition: background .15s, color .15s; }
.opt .opt-ico svg.i { width: 17px; height: 17px; }
.opt.on .opt-ico { background: var(--plum); color: #fff; }
.opt .opt-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.opt .opt-t b { font-size: 14px; font-weight: 400; color: var(--ink); }
.opt .opt-t span { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.opt-dot { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; transition: border .15s; }
.opt.on .opt-dot { border: 5px solid var(--plum); }
.opt input:focus-visible ~ .opt-dot { box-shadow: 0 0 0 4px rgb(var(--plum-rgb) / .15); }
.gen-set { gap: 12px; }
.gen-set .field { margin: 0; }
.gen-set .input-sm, .gen-set .cs-btn { background-color: #fff; }
.gen-stage { display: grid; place-items: center; min-height: 180px; padding: 26px 22px; border-bottom: 1px solid var(--line); background: radial-gradient(circle, rgba(42, 10, 31, .08) 1px, transparent 1.3px) 0 0 / 16px 16px, #fbf8f3; }
.gen-preview canvas { margin: 0; }
.gen-sum { display: grid; gap: 2px; padding: 18px 22px 4px; }
.gen-sum b { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.gen-sum span { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.gen-go { padding: 14px 22px 20px; }
.gen-go .btn { height: 48px; border-radius: 12px; font-size: 15px; box-shadow: 0 10px 22px -14px rgb(var(--plum-rgb) / .8); }

/* ---- tablet & phone ---- */
@media (max-width: 980px) {
  .pg { gap: 28px; }
  .pg-lede { flex-wrap: wrap; gap: 12px; }
  .pg-lede p { flex: 1 1 220px; font-size: 13px; }
  .pg-sec { gap: 10px; }
  .pg-sec-h { flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 0 2px; }
  .pg-acts { margin-left: auto; gap: 6px; }
  .pg-box, .pg-stats { border-radius: 14px; }
  .pg-pad { padding: 18px; }
  .pg-row { padding: 14px 16px; gap: 12px; }
  .pg-foot { padding: 12px 16px; }
  .pg-2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pg-stack { gap: 28px; }
  .pg-btn { height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
  .pg-btn svg.i { color: var(--ink-2); }
  .pg-btn-q { border-color: transparent; background: transparent; }
  .pg-acts .pg-btn { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .pg-acts .pg-btn span { display: none; }
  .pg-cta { height: 40px; padding: 0 16px 0 13px; border-radius: 11px; box-shadow: 0 6px 14px -8px rgb(var(--plum-rgb) / .7); }
  .pg input.input, .pg textarea.input { font-size: 16px; } /* stops iOS zooming in on focus */

  .pg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-stat { padding: 14px 16px 15px; }
  .pg-stat:first-child { grid-column: span 2; }
  .pg-stat .k { font-size: 11.5px; }
  .pg-stat .v { margin-top: 4px; font-size: 26px; }
  .pg-stat .s { font-size: 11px; }
  .pg-cols { grid-template-columns: minmax(0, 1fr); }
  .pg-cols > :last-child:nth-child(odd) { grid-column: auto; }
  .rp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "txt n" "bar p"; gap: 10px 14px; }
  .rp-row .pg-txt { grid-area: txt; }
  .rp-bar { grid-area: bar; align-self: center; }
  .rp-n { grid-area: n; min-width: 0; }
  .rp-p { grid-area: p; width: auto; font-size: 12px; }

  .st-join { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .st-join .qr svg { width: 132px; height: 132px; }
  .pg .drop { padding: 30px 16px; }

  .dv-row { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 160px) 36px; grid-template-areas: "av who who more" ". st acc acc"; gap: 10px 12px; }
  .dv-st { align-self: center; }

  .evc-b { padding: 20px 18px 18px; }
  .evc-t { font-size: 27px; }
  .evc-f { padding: 10px 10px 10px 18px; }
  .ev-row-i { flex-wrap: wrap; }
  .ev-row-a { width: 100%; padding-left: 48px; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }

  .dz-pick { flex: 1 1 100%; }
  .dz-stage-wrap { padding: 16px; min-height: 200px; }
  .dz-pv { flex: 1 1 100%; }
  .dz-prev-t { flex: 1; max-width: none; text-align: center; }
  .dz-gen { margin-left: auto; }

  .gen-cats { grid-template-columns: minmax(0, 1fr); max-height: 320px; }
  .gen-all, .gen-cat { padding-left: 16px; padding-right: 16px; }
  .opt { padding: 14px 16px; }
  .gen-sum { padding: 16px 16px 4px; }
  .gen-go { padding: 12px 16px 16px; }
}
@media (max-width: 560px) {
  .st-pin { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px 12px; }
  .st-pin .pg-txt { grid-column: 2 / -1; }
  .pg .st-pin input { grid-column: 2; width: 100%; }
  .rp-n { font-size: 13.5px; }
}
@media (max-width: 380px) {
  .pg-stat .v { font-size: 23px; }
  .dv-row { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 132px) 32px; }
}

/* pg-* phone fixes: Phones row on two clean lines, standalone header buttons right-aligned, card designs two per row */
.pg-sec-h > .pg-btn { margin-left: auto; }
@media (max-width: 980px) {
  .dv-row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "av who st" ". acc more"; gap: 10px 12px; }
  .dv-st { justify-self: end; }
  .dv-acc .cs { width: 100%; }
  .gen-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gen-tpls button { padding: 12px 8px 10px; }
}
@media (max-width: 380px) { .dv-row { grid-template-columns: 36px minmax(0, 1fr) auto; } }
.dv-acc, .dv-st { display: block; }

/* ---- Event colours (Settings → Event & front page) */
.ev-col { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.ev-col input[type=color] { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; flex: none; }
.ev-col input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.ev-col input[type=color]::-webkit-color-swatch { border: 1px solid rgba(42, 10, 31, .12); border-radius: 10px; }
.ev-col input[type=color]::-moz-color-swatch { border: 1px solid rgba(42, 10, 31, .12); border-radius: 10px; }
.ev-col span { display: grid; line-height: 1.25; }
.ev-col b { font-size: 13.5px; font-weight: 400; color: var(--ink); }
.ev-col i { font-style: normal; font-size: 12px; color: var(--muted); }
.ev-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ev-pre { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.ev-pre:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.ev-pre i { width: 18px; height: 18px; border-radius: 50%; }
.ev-pre i + i { margin-left: -5px; box-shadow: 0 0 0 2px var(--surface); }
@media (max-width: 980px) { .ev-col + .ev-col { margin-top: 8px; } }
/* Phones row (phone): status + options on line 1, access dropdown across line 2 */
@media (max-width: 980px) {
  .dv-row, .dv-row:is(*) { grid-template-columns: 36px minmax(0, 1fr) auto 36px; grid-template-areas: "av who st more" ". acc acc acc"; }
  .dv-acc .cs { max-width: 260px; }
}
/* ================= Multi-event sign-in ================= */
.pin-kb { margin: 8px auto 0; display: block; font-size: 12.5px; }
.signup-cta { margin-bottom: -6px; }
.signup-cta .link-btn { font-size: inherit; }
.pin-reveal { margin: 4px 0 20px; padding: 18px; border-radius: 12px; background: var(--plum-50); color: var(--plum-900); font-size: 30px; font-weight: 700; letter-spacing: .28em; text-align: center; }
.pp-email { margin-top: 2px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-unv { color: var(--amber); font-weight: 600; }
/* Single-card login screens (sign-up, email code, new PIN): one centred column on every width */
.login.login-solo { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
.login.login-solo .signin { align-self: start; }
@media (min-width: 900px) { .login.login-solo .signin { padding: 34px 36px 30px; } }
/* Multi-event: events list */
.pg-txt em.ev-live { color: var(--green); font-weight: 600; }
.ev-go svg.i { margin: 0 -3px 0 2px; }

/* ================= App: server switch on the sign-in screen (Android app only) ================= */
.srv-foot { display: flex; align-items: center; justify-content: center; gap: 6px; }
.srv-foot svg.i { width: 15px; height: 15px; }
.srv-box { margin-top: 4px; padding: 16px; display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.srv-box p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.srv-acts { display: flex; gap: 8px; }
.srv-acts .btn { flex: 1; }

/* ================= Events: Run at the venue (hub) ================= */
.pg-box.venue { padding: 20px; display: grid; gap: 16px; }
.venue-intro { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.venue-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.venue-opt { display: grid; gap: 6px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--ivory); }
.venue-opt b { font-size: 14px; font-weight: 600; color: var(--ink); }
.venue-opt > span:last-child { font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.venue-opt code { font-size: 12px; color: var(--plum); }
.venue-code { display: grid; gap: 10px; }
.venue-code textarea { min-height: 76px; font-size: 12px; font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.venue-code p { margin: 0; font-size: 12px; color: var(--muted); }
.venue-acts { display: flex; }
@media (max-width: 640px) { .venue-opts { grid-template-columns: 1fr; } }
.srv-or { margin: 6px 0 0 !important; font-size: 12px !important; color: var(--muted) !important; }

/* ============================================================ Tables (seating) */
/* Scan result: the table, large enough to read at arm's length. */
.rs-table { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: rgb(var(--plum-rgb) / .07); color: var(--plum); }
.rs-table svg.i { width: 20px; height: 20px; flex: none; }
.rs-table span { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.rs-table b { margin-left: auto; font-family: var(--sans); font-size: 26px; font-weight: 650; font-variant-numeric: lining-nums tabular-nums; line-height: 1; }

/* Tables page */
.tb-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-tools { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
.tb-tools .search { flex: 1 1 220px; min-width: 0; }
.tb-chips { display: flex; gap: 6px; }
.tb-chips button { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.tb-chips button.on { background: var(--plum); border-color: var(--plum); color: #fff; }
.tb-hits { margin-bottom: 12px; }
.tb-where { font-size: 13px; color: var(--plum); font-weight: 500; white-space: nowrap; }
.tb-ico { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--plum); font-variant-numeric: lining-nums; letter-spacing: -.01em; }
.tb-row .pg-txt { flex: 1 1 auto; }
.tb-bar { flex: 0 1 180px; height: 7px; border-radius: 999px; background: var(--line); display: flex; overflow: hidden; }
.tb-bar i { display: block; height: 100%; }
.tb-bar i.in { background: var(--green); }
.tb-bar i.out { background: var(--amber); }
.tb-bar i.exp { background: rgb(var(--plum-rgb) / .22); }
.tb-full { font-style: normal; color: var(--plum); font-weight: 500; }
.tb-over { font-style: normal; color: var(--red); font-weight: 500; }
.tb-log .tb-lrow, .tb-log.pg-box .tb-lrow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 22px; font-size: 13.5px; color: var(--ink-2); }
.tb-lrow + .tb-lrow { border-top: 1px solid var(--line); }
.tb-lmeta { flex: none; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.drawer .tb-log .tb-lrow { padding: 10px 0; }
.gv-tb { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; background: rgb(var(--plum-rgb) / .07); color: var(--plum); font-size: 12px; font-weight: 500; }

/* Sheets */
.tb-sheet-acts { margin: 0 0 14px; }
.tb-glist { display: grid; max-height: min(52vh, 460px); overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.tb-g { display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: default; }
label.tb-g { cursor: pointer; }
.tb-g + .tb-g { border-top: 1px solid var(--line); }
.tb-g input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--plum); flex: none; }
.tb-gtxt { display: grid; flex: 1; min-width: 0; }
.tb-gtxt b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-gtxt span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-glist .pg-empty { padding: 22px 14px; }
.tb-tools-sheet select { flex: 0 1 180px; }
.tb-check { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.tb-check input { width: 17px; height: 17px; accent-color: var(--plum); }
.tb-seatline { display: flex; gap: 14px; align-items: center; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.tb-seatline .link-btn { margin-left: auto; }
.tb-assign .sub-actions { margin-top: 14px; }
.tb-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 50vh; overflow: auto; }
.tb-pick button { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; text-align: left; cursor: pointer; }
.tb-pick button b { font-size: 14px; font-weight: 600; }
.tb-pick button span { font-size: 12.5px; color: var(--muted); }
.tb-pick button.on { border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); background: rgb(var(--plum-rgb) / .05); }
.tb-pick button.full span { color: var(--red); }
.tb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 640px) {
  .tb-bar { display: none; }
  .tb-log .tb-lrow { flex-direction: column; gap: 2px; padding: 12px 16px; }
}

/* Printed table lists */
.tl-print { font-family: Inter, system-ui, sans-serif; color: #111; }
.tl-ph { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 1.5px solid #111; }
.tl-ev { font-size: 18px; font-weight: 650; }
.tl-hon, .tl-date { font-size: 11px; color: #555; }
.tl-t { break-inside: avoid; margin: 0 0 18px; }
.tl-t h2 { display: flex; justify-content: space-between; font-size: 14px; font-weight: 650; margin: 0 0 6px; }
.tl-t h2 span { font-size: 11px; font-weight: 400; color: #555; }
.tl-t table { width: 100%; border-collapse: collapse; font-size: 11px; }
.tl-t th { text-align: left; font-weight: 600; border-bottom: 1px solid #999; padding: 4px 6px; }
.tl-t td { border-bottom: 1px solid #ddd; padding: 4px 6px; }
.tl-t td:first-child, .tl-t th:first-child { width: 26px; color: #777; }
.tl-s { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }

/* admin header (phone): quiet Live status (dot + word, no pill); the brand takes the free width */
.topbar-admin { padding-top: 12px; padding-bottom: 12px; }
.topbar-admin .brand { flex: 1 1 auto; min-width: 0; gap: 10px; }
.topbar-admin .brand > div { min-width: 0; }
.topbar-admin .brand-name { line-height: 1.2; }
.topbar-admin .brand-sub { max-width: none; margin-top: 2px; line-height: 1.3; }
.topbar-admin .topbar-r { flex: none; }
.topbar-admin .conn i { width: 6px; height: 6px; box-shadow: 0 0 0 3px var(--green-bg); }
.topbar-admin .conn.off { color: var(--red); }
.topbar-admin .conn.off i { box-shadow: 0 0 0 3px var(--red-bg); }
.topbar-admin .conn.pending { color: var(--amber); }
.topbar-admin .conn.pending i { box-shadow: 0 0 0 3px var(--amber-bg); }

/* ============================================================ Sign-in: very narrow screens */
/* Below ~360px (small phones, side panels) the card, its padding and the PIN spacing shrink with the screen,
   so the email placeholder and all six PIN digits stay visible. Wider screens are unchanged. */
@media (max-width: 380px) {
  .login-wrap { padding-left: clamp(8px, 3.5vw, 18px); padding-right: clamp(8px, 3.5vw, 18px); }
  .login .signin { padding: 24px clamp(12px, 5vw, 24px) 20px; }
  .signin-h h2 { font-size: clamp(24px, 8.6vw, 32px); }
  .signin .input { padding-left: 10px; padding-right: 10px; font-size: clamp(13px, 4.2vw, 15px); }
  .login .input-pin { font-size: clamp(17px, 6vw, 22px); letter-spacing: min(.6em, 3vw); text-indent: min(.6em, 3vw); padding-left: 4px; padding-right: 4px; }
  .lb-tag { letter-spacing: min(.24em, .9vw); white-space: normal; text-align: center; }
}
/* Desktop: the two-column sign-in is for "event card + sign-in". With no event card (cloud admin sign-in),
   the sign-in card takes one centred column instead of being squeezed into the left half. */
@media (min-width: 900px) {
  .login:not(:has(.ev-card)) { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .login:not(:has(.ev-card)) .signin { align-self: start; }
}

/* guests (admin, phone): breathing room between search, the action row and the status pills */
@media (max-width: 980px) {
  .gv-bar:has(.gv-actions) { row-gap: 14px; margin-bottom: 34px; }
  .gv-actions { margin: 0; }
}

/* bulk upload: lists found in a .zip */
.zb-list { max-height: 46vh; overflow: auto; }
.zb-list .row { gap: 10px; padding: 10px 2px; }
.zb-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--plum-50); color: var(--plum); flex: none; }
.zb-ico svg.i { width: 15px; height: 15px; }
.zb-n { font-size: 13.5px; font-weight: 400; color: var(--ink); }
.zb-st { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zb-st em { font-style: normal; }
.t-ok { color: var(--green); font-weight: 400; }
.zb-note { font-size: 12.5px; margin: 12px 0 0; }

/* card designer toolbar (phone): picker + round New on one row, the two saves side by side below */
@media (max-width: 760px) {
  .dz-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
  .dz-bar .dz-pick { grid-column: 1; flex: none; }
  .dz-bar #dz-new { grid-column: 2; width: 42px; height: 42px; padding: 0; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); }
  .dz-bar #dz-new span { display: none; }
  .dz-bar #dz-new svg.i { width: 18px; height: 18px; margin: 0; }
  .dz-bar .dz-dirty { grid-column: 1 / -1; padding: 0 4px; }
  .dz-bar .dz-dirty:empty { display: none; }
  .dz-bar-r { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 0; }
  .dz-bar-r .pg-btn, .dz-bar-r .pg-cta { height: 42px; padding: 0 12px; justify-content: center; border-radius: 12px; font-size: 13.5px; }
  .dz-bar-r .pg-btn { border: 1px solid var(--line); background: #fff; }
  .dz-bar-r .pg-btn svg.i { width: 16px; height: 16px; }
}

/* generate: designs grouped by shape */
.gen-groups { display: grid; gap: 22px; }
.gen-gh { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 10px; }
.gen-gh b { font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gen-gh span { font-size: 11.5px; font-weight: 400; color: var(--muted); opacity: .7; font-variant-numeric: tabular-nums; }
.gen-group + .gen-group { padding-top: 20px; border-top: 1px solid #F3EDE5; }
.gen-tpls span { line-height: 1.3; }
.gen-wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; }
.gen-wide button { justify-items: stretch; text-align: left; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: 16px 16px 12px; }
.gen-wide canvas { grid-column: 1 / -1; width: 100% !important; height: auto !important; margin-bottom: 4px; }
.gen-wide small { text-align: right; }

/* attendants: empty state + shared staff PIN in its own card */
.pp-empty { padding: 36px 22px 30px; gap: 8px; }
.pp-empty-ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; border-radius: 14px; background: var(--plum-50); }
.pp-empty .pp-empty-ico svg.i { width: 21px; height: 21px; margin: 0; color: var(--plum); }
.pp-empty > span:not(.pp-empty-ico) { font-size: 13px; }
.pp-empty-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.pp-empty-acts .pg-cta { margin: 0; }
.pp-empty-acts .pg-cta svg.i, .pp-ghost svg.i { width: 16px; height: 16px; margin: 0; color: currentColor; }
.pp-ghost { height: 42px; border: 1px solid var(--line); background: #fff; }
.sp-box { margin-top: 14px; padding: 18px 18px 16px; }
.sp-top { display: flex; align-items: flex-start; gap: 12px; }
.sp-ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--plum-50); color: var(--plum); }
.sp-ico svg.i { width: 17px; height: 17px; }
.sp-t { flex: 1; min-width: 0; display: grid; gap: 3px; padding-top: 1px; }
.sp-t b { font-size: 14px; font-weight: 400; color: var(--ink); }
.sp-t span { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.sp-top .switch { flex: none; margin-top: 4px; }
.sp-pin { display: flex; align-items: center; gap: 6px; margin: 14px 0 0 50px; }
.sp-pin b { display: grid; place-items: center; width: 34px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory); font-size: 18px; font-weight: 700; color: var(--plum-900); }
.sp-pin span { margin-left: 8px; font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.sp-box.is-off .sp-pin b { color: var(--muted); background: var(--grey-bg); text-decoration: line-through; text-decoration-color: rgba(42, 10, 31, .25); }
.sp-box.is-off .sp-pin span { color: var(--muted); }
@media (max-width: 420px) { .sp-pin { margin-left: 0; } }
.pp-empty .pp-empty-acts span { max-width: none; font-size: 13.5px; color: inherit; }
.pp-ghost { color: var(--ink-2); }

/* event hero: keep a long honoree name centred like the rest of the card (Settings preview, welcome) */
.ev-name { text-align: center; }
.ev-preview .ev-name { font-size: clamp(26px, 7vw, 32px); }
.ev-preview .ev-ded { font-size: 18px; }

/* events: calmer active-event card on phone */
@media (max-width: 760px) {
  .evc-b { padding: 20px 18px 18px; }
  .evc-t { margin-top: 12px; font-size: 26px; }
  .evc-h { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
  .evc-m { margin-top: 14px; font-size: 12.5px; }
  .evc-m span { min-width: 0; max-width: 100%; }
  .evc-f { padding: 10px 10px 10px 18px; }
  .evc-n { flex-wrap: nowrap; gap: 14px; font-size: 12.5px; }
  .evc-n b { font-size: 13.5px; }
  .evc-f .pg-btn { height: 36px; padding: 0 12px; gap: 6px; font-size: 13px; border: 1px solid var(--line); background: #fff; }
  .evc-f .pg-btn svg.i { width: 15px; height: 15px; }
}

/* Camera sheets (unavailable / secure link): compact buttons that never run off-screen, close (×) in the header */
.cam-p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; }
.cam-acts { gap: 8px; margin-top: 0; }
.cam-acts .btn { min-width: 0; height: 44px; padding: 0 12px; border-radius: 11px; font-size: 14px; font-weight: 500; gap: 7px; }
.cam-acts .btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cam-acts .btn svg.i { width: 17px; height: 17px; }
.cam-col { flex-direction: column; }

/* card designer: "Show on card" switches */
.dz-show { display: grid; margin: 2px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.dz-sw { display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
.dz-sw + .dz-sw { border-top: 1px solid #F3EDE5; }
.dz-sw-i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--ivory-2); color: var(--ink-2); }
.dz-sw-i svg.i { width: 14px; height: 14px; }
.dz-sw.req .dz-sw-i { background: var(--plum-50); color: var(--plum); }
.dz-sw-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 400; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-sw-t em { font-style: normal; font-size: 10.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); opacity: .75; }
.dz-sw .switch { flex: none; transform: scale(.86); transform-origin: right center; }
.dz-sw .switch input:disabled + i { opacity: .55; cursor: not-allowed; }
.dz-add-x { display: flex; gap: 8px; margin-bottom: 10px; }
.dz-mark { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 12px; padding: 12px 14px; border: 1px dashed rgb(var(--plum-rgb) / .35); border-radius: 12px; background: var(--plum-50); color: var(--plum); text-align: left; cursor: pointer; }
.dz-mark svg.i { width: 20px; height: 20px; flex: none; }
.dz-mark span { display: grid; gap: 2px; }
.dz-mark b { font-size: 13.5px; font-weight: 400; }
.dz-mark i { font-style: normal; font-size: 12px; color: var(--ink-2); }

/* marking spaces on uploaded artwork */
.dz-place { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--plum); color: #fff; box-shadow: 0 10px 24px -16px rgb(var(--plum-rgb) / .9); }
.dz-place-n { font-size: 10.5px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-300); }
.dz-place b { flex: 1 1 180px; font-size: 13.5px; font-weight: 400; }
.dz-place-a { display: flex; gap: 6px; margin-left: auto; }
.dz-place .pg-btn { height: 32px; padding: 0 12px; font-size: 12.5px; color: #fff; background: rgba(255, 255, 255, .14); }
.dz-place .pg-btn:hover { background: rgba(255, 255, 255, .24); }
.dz-stage.placing .dz-ov { cursor: crosshair; }
.dz-stage.placing .dz-el { pointer-events: none; opacity: .5; }
.dz-draw { position: absolute; border: 2px solid var(--plum); border-radius: 4px; background: rgb(var(--plum-rgb) / .16); box-shadow: 0 0 0 9999px rgba(42, 10, 31, .18); pointer-events: none; }

/* new design: two choices */
.dz-newopts { display: grid; gap: 10px; margin-top: 6px; }
.dz-newopts button { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; }
.dz-newopts button:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.dz-newopts button > span:last-child { display: grid; gap: 4px; }
.dz-newopts b { font-size: 14px; font-weight: 400; color: var(--ink); }
.dz-newopts i { font-style: normal; font-size: 13px; line-height: 1.45; color: var(--muted); }
.dz-no-i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--plum-50); color: var(--plum); }
.dz-no-i svg.i { width: 19px; height: 19px; }

/* generate (phone): one design per row, preview beside the name */
@media (max-width: 760px) {
  .gen-tpls:not(.gen-wide) { grid-template-columns: 1fr !important; gap: 10px; }
  .gen-tpls:not(.gen-wide) button { grid-template-columns: 118px minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; align-items: center; column-gap: 16px; row-gap: 2px; padding: 12px 14px; text-align: left; }
  .gen-tpls:not(.gen-wide) canvas { grid-row: 1 / 3; width: 118px !important; height: auto !important; }
  .gen-tpls:not(.gen-wide) span { align-self: end; font-size: 14px; }
  .gen-tpls:not(.gen-wide) small { align-self: start; }
}

/* admin header (phone): quiet Live status (dot + word, no pill); the brand takes the free width */
.topbar-admin { padding-top: 12px; padding-bottom: 12px; }
.topbar-admin .brand { flex: 1 1 auto; min-width: 0; gap: 10px; }
.topbar-admin .brand > div { min-width: 0; }
.topbar-admin .brand-name { line-height: 1.2; }
.topbar-admin .brand-sub { max-width: none; margin-top: 2px; line-height: 1.3; }
.topbar-admin .topbar-r { flex: none; }
.topbar-admin .conn i { width: 6px; height: 6px; box-shadow: 0 0 0 3px var(--green-bg); }
.topbar-admin .conn.off { color: var(--red); }
.topbar-admin .conn.off i { box-shadow: 0 0 0 3px var(--red-bg); }
.topbar-admin .conn.pending { color: var(--amber); }
.topbar-admin .conn.pending i { box-shadow: 0 0 0 3px var(--amber-bg); }

/* attendants → phones (phone): name gets the full width; status + access share the second line */
@media (max-width: 760px) {
  .dv-row, .dv-row:is(*), .dv-row:is(*):is(*) { grid-template-columns: 36px auto minmax(0, 1fr) 36px; grid-template-areas: "av who who more" ". st acc acc"; gap: 10px 12px; align-items: center; }
  .dv-row .dv-who { min-width: 0; }
  .dv-row .dv-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dv-row .dv-who > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dv-row .dv-st { justify-self: start; white-space: nowrap; font-size: 12.5px; }
  .dv-row .dv-acc { justify-self: stretch; }
  .dv-row .dv-acc .cs, .dv-row .dv-acc select { width: 100%; max-width: none; }
  .dv-row .dv-all { display: block; text-align: right; }
}

/* guests (phone): more air between category groups and below the status pills */
@media (max-width: 760px) {
  .gv .gv-list { gap: 30px; margin-top: 6px; }
}

/* Guests (phone): more breathing room under the All / In / Out / Not yet pills */
@media (max-width: 980px) { .gv .gv-tabs { margin-bottom: 34px; } }

/* every sheet: a close (×) button in the top-right corner */
.sheet { position: fixed; }
.sheet-xa { position: absolute; top: 14px; right: 14px; z-index: 2; background: #fff; border: 1px solid var(--line); }
.sheet:has(.sheet-xa) > h2:first-of-type { padding-right: 44px; }

/* staff PIN cards: exactly ID-card size, landscape (85.6 × 54 mm), 8 per A4 */
@media print {
  .pc-grid { grid-template-columns: repeat(2, 85.6mm); grid-auto-rows: 54mm; gap: 6mm 8mm; justify-content: center; }
  .pc { width: 85.6mm; height: 54mm; padding: 3.5mm 4.5mm; border-radius: 3.2mm; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); column-gap: 3mm; overflow: hidden; }
  .pc-top { grid-column: 1 / -1; padding-bottom: 2mm; gap: 2.5mm; }
  .pc-top img { width: 6mm; height: 6mm; }
  .pc-ev { font-size: 7pt; }
  .pc-hon { font-size: 7.5pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 66mm; }
  .pc-l { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding-top: 1mm; }
  .pc-name { margin-top: 0; font-size: 14pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pc-gate { font-size: 8pt; margin-top: .5mm; }
  .pc-pin { margin-top: 2mm; gap: 2mm; }
  .pc-pin span { font-size: 6.5pt; }
  .pc-pin b { font-size: 17pt; letter-spacing: .14em; }
  .pc-how { margin: 0; padding-top: 1.5mm; flex-direction: column; align-items: center; justify-content: center; gap: 1mm; max-width: 30mm; font-size: 5.6pt; text-align: center; }
  .pc-how:has(.pc-qr) ol { display: none; }
  .pc-how:not(:has(.pc-qr)) { max-width: 36mm; text-align: left; align-items: flex-start; }
  .pc-how ol { margin: .5mm 0 0; padding-left: 3mm; }
  .pc-how b { font-size: 6pt; }
  .pc-qr svg { width: 19mm; height: 19mm; }
  .pc-how:has(.pc-qr) > div:last-child::after { content: 'Join the event Wi-Fi, scan, then type your PIN.'; display: block; margin-top: .6mm; color: #85757E; }
}

/* Guests: lighter, smaller serial numbers (category headings unchanged) */
.gv .gv-serial { font-size: 13.5px; font-weight: 400; letter-spacing: .02em; color: var(--ink-2); }
@media (max-width: 980px) { .gv .gv-serial { font-size: 13.5px; } }

/* events: end / reopen the active event */
.evc-end { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 18px; border-top: 1px solid var(--line); background: #fff; }
.evc-end-i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--grey-bg); color: var(--ink-2); }
.evc-end-i svg.i { width: 16px; height: 16px; }
.evc-end-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.evc-end-t b { font-size: 13.5px; font-weight: 400; color: var(--ink); }
.evc-end-t span { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.evc-end-b { flex: none; height: 36px; padding: 0 14px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.evc-end-b.danger { color: var(--red); border-color: var(--red-line); }
.evc-end-b.danger:hover { background: var(--red-bg); }
.evc-end.is-ended { background: var(--red-bg); }
.evc-end.is-ended .evc-end-i { background: #fff; color: var(--red); }
.evc-end.is-ended .evc-end-t b { color: var(--red); }

/* attendant sign-in on a computer: a gentle "use your phone" note */
.si-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--plum-50); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.si-note svg.i { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--plum); }
.si-note b { color: var(--ink); font-weight: 400; }

/* admin pages (pg-* kit): more breathing room between and inside sections */
.pg { gap: 48px; }
.pg-sec { gap: 16px; }
.pg-2 { gap: 36px; }
.pg-pad { padding: 28px 30px; }
.pg-row { padding-top: 18px; padding-bottom: 18px; }
.pg-lede { margin-bottom: 4px; }
@media (max-width: 760px) {
  .pg { gap: 40px; }
  .pg-sec { gap: 14px; }
  .pg-2 { gap: 40px; }
  .pg-pad { padding: 22px 20px; }
  .pg-row { padding-top: 16px; padding-bottom: 16px; }
}

/* Card designer toolbar (phone): one calm row, same height and shape: design ▾ · new · copy · Save */
@media (max-width: 980px) {
  .dz-bar, .dz-bar:is(*) { display: grid; grid-template-columns: minmax(0, 1fr) 40px 40px auto; gap: 6px; align-items: center; }
  .dz-bar .dz-pick { grid-column: 1; grid-row: 1; }
  .dz-bar .dz-pick .input, .dz-bar .dz-pick .cs-btn { height: 40px; padding-left: 14px; font-size: 13.5px; box-shadow: none; }
  .dz-bar-r, .dz-bar-r:is(*) { display: contents; }
  .dz-bar #dz-new, .dz-bar #dz-copy { grid-row: 1; width: 40px; height: 40px; padding: 0; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; box-shadow: none; }
  .dz-bar #dz-new { grid-column: 2; }
  .dz-bar #dz-copy { grid-column: 3; }
  .dz-bar #dz-new span, .dz-bar #dz-copy span { display: none; }
  .dz-bar #dz-new svg.i, .dz-bar #dz-copy svg.i { width: 17px; height: 17px; margin: 0; color: var(--ink-2); }
  .dz-bar #dz-save { grid-column: 4; grid-row: 1; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; box-shadow: 0 6px 14px -8px rgb(var(--plum-rgb) / .7); }
  .dz-bar .dz-long { display: none; }
  .dz-bar .dz-dirty { grid-column: 1 / -1; grid-row: 2; padding: 0 6px; margin-top: -2px; font-size: 12px; }
  .dz-bar .dz-dirty:empty { display: none; }
}

/* ================= Type hierarchy & section rhythm (app-wide) =================
   Only headings carry weight. Body, rows, labels and values are regular (400) and
   sit at 14px or below; controls stay at 500. Headings step up so they always
   out-size the text beneath them. Sections get more air between them. */
b, strong { font-weight: inherit; }
.pg-sec-h h3, .section-t h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -.015em; }
.pg-sec-h p { margin-top: 4px; }
.card-h h3, .presence h3 { font-size: 16px !important; font-weight: 650; }
.gv-grp h4, .gv .gv-grp h4, .av-grp h4 { font-size: 15.5px; font-weight: 650; }
.ov-scan-h b { font-size: 16px; font-weight: 650; }

/* section spacing */
.pg { gap: 56px; }
.pg-sec { gap: 14px; }
.section-t { margin-top: 48px; }
.pulse { margin-top: 36px; }
.ov-scan { margin-top: 48px; }
.gv-list { gap: 48px; }
.gv-more { margin-top: 36px; }
.sh-ov { margin-top: 36px; }
.presence, .kpis + .presence { margin-top: 32px; }
.grid2 { gap: 32px; margin-top: 32px; }
.grid2 > div { gap: 32px !important; }
@media (max-width: 980px) {
  .pg { gap: 44px; }
  .section-t { margin-top: 40px; }
  .ov-scan { margin-top: 40px; }
  .gv-list { gap: 40px; }
  .presence, .kpis + .presence { margin-top: 26px; }
  .grid2 { gap: 26px; margin-top: 26px; }
  .grid2 > div { gap: 26px !important; }
}

/* ===== Card designer: calmer, more spacious (toolbar, preview, show-on-card, field panel) ===== */
/* preview: guest shown as two quiet lines between the arrows; links below, no boxes */
.dz-prev, .dz-prev:is(*) { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 12px; margin-top: 18px; }
.dz-pv, .dz-pv:is(*) { grid-column: 1 / -1; display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 8px; padding: 0; border: 0; background: none; box-shadow: none; }
.dz-pv .pg-act { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink-2); }
.dz-prev-t, .dz-prev-t:is(*) { display: grid; gap: 1px; max-width: none; padding: 0; text-align: center; white-space: normal; }
.dz-prev-t b { font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.dz-prev-t span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-prev #dz-pv-long, .dz-prev .dz-gen { height: 36px; padding: 0 4px; border: 0; background: none; box-shadow: none; font-size: 13px; font-weight: 500; }
.dz-prev #dz-pv-long { justify-self: start; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.dz-prev .dz-gen { justify-self: end; gap: 4px; color: var(--plum); margin: 0; }
.dz-prev .dz-gen svg.i { width: 15px; height: 15px; }
.dz-tip { margin-top: 18px; }

/* show on card: tap a name to edit it */
.dz-show { margin: 4px 0 16px; border-radius: 14px; }
.dz-sw { gap: 12px; padding: 10px 12px 10px 14px; }
.dz-sw-t, .dz-sw-t:is(*) { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 400; color: var(--ink); text-align: left; cursor: pointer; }
.dz-sw-t.off { color: var(--muted); cursor: default; }
.dz-sw-t.on { color: var(--plum); font-weight: 500; }
.dz-sw:has(.dz-sw-t.on) { background: var(--plum-50); }
.dz-sw-t em { font-size: 10px; letter-spacing: .06em; opacity: .6; }
.dz-add-x, .dz-add-x:is(*) { display: flex; gap: 8px; margin: 0; }
.dz-add-x button, .dz-add-x button:is(*) { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 10px; border: 1px dashed var(--line-2); border-radius: 999px; background: none; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.dz-add-x button svg.i { width: 14px; height: 14px; color: var(--plum); }
.dz-add-x button:hover { border-style: solid; border-color: var(--plum-100); background: var(--plum-50); color: var(--plum); }
.dz-layers, .dz-layers:is(*) { max-height: none; margin-top: 12px; padding-top: 0; border-top: 0; }
.dz-layers:empty { display: none; }

/* field panel */
.dz-sec .seg-sm button { padding: 6px 8px; font-size: 12.5px; }
.dz-checks, .dz-checks:is(*) { display: flex; gap: 8px; margin: 2px 0 16px; }
.dz-tog { position: relative; cursor: pointer; }
.dz-tog input { position: absolute; opacity: 0; pointer-events: none; }
.dz-tog span { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 500; color: var(--ink-2); transition: background .15s, border-color .15s, color .15s; }
.dz-tog input:checked + span { border-color: var(--plum); background: var(--plum-50); color: var(--plum); }
.dz-tog input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 2px; }
.dz-pos { margin: 4px 0 16px; border-top: 1px solid #F3EDE5; }
.dz-pos summary { display: flex; align-items: center; gap: 6px; padding: 14px 0 4px; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; list-style: none; }
.dz-pos summary::-webkit-details-marker { display: none; }
.dz-pos summary::after { content: ''; width: 7px; height: 7px; margin-left: auto; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.dz-pos[open] summary::after { transform: rotate(-135deg); }
.dz-pos summary span { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.dz-pos .dz-4 { margin-top: 10px; }
.dz-acts, .dz-acts:is(*) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 40px 40px; gap: 6px; padding-top: 14px; border-top: 1px solid #F3EDE5; }
.dz-act { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.dz-act:hover { background: #fcf9f5; border-color: var(--line-2); }
.dz-act svg.i { width: 16px; height: 16px; }
.dz-act.danger { color: var(--red); border-color: var(--red-line); }
.dz-act.danger:hover { background: var(--red-bg); }

/* toolbar (phone): design picker on its own line; New · Save as copy as quiet links; Save on the right */
@media (max-width: 760px) {
  .dz-bar, .dz-bar:is(*) { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "pick pick pick" "new copy save" "dirty dirty dirty"; gap: 10px 4px; align-items: center; }
  .dz-bar .dz-pick, .dz-bar .dz-pick:is(*) { grid-area: pick; }
  .dz-bar .dz-pick .input, .dz-bar .dz-pick .cs-btn { height: 46px; padding-left: 18px; font-size: 14px; font-weight: 500; }
  .dz-bar-r, .dz-bar-r:is(*) { display: contents; }
  .dz-bar #dz-new, .dz-bar #dz-copy, .dz-bar #dz-new:is(*), .dz-bar #dz-copy:is(*) { grid-row: auto; width: auto; height: 38px; padding: 0 10px 0 6px; gap: 6px; border: 0; border-radius: 10px; background: none; box-shadow: none; font-size: 13px; font-weight: 500; color: var(--ink-2); }
  .dz-bar #dz-new { grid-area: new; }
  .dz-bar #dz-copy { grid-area: copy; }
  .dz-bar #dz-new span, .dz-bar #dz-copy span { display: inline; }
  .dz-bar #dz-new svg.i, .dz-bar #dz-copy svg.i { width: 16px; height: 16px; color: var(--plum); }
  .dz-bar #dz-save, .dz-bar #dz-save:is(*) { grid-area: save; justify-self: end; height: 40px; padding: 0 22px; font-size: 13.5px; font-weight: 500; }
  .dz-bar .dz-long { display: inline; }
  .dz-bar .dz-dirty { grid-area: dirty; margin: -4px 0 0; }
  .dz-stage-wrap { margin-top: 18px; }
  .dz-panel { gap: 18px; }
  .dz-sec { padding: 20px 18px; }
}
@media (max-width: 760px) { .dz-bar .dz-long, .dz-bar .dz-long:is(*) { display: none; } }

/* designer preview actions: two balanced soft buttons */
.dz-prev, .dz-prev:is(*) { grid-template-columns: 1fr 1fr; }
.dz-prev #dz-pv-long, .dz-prev .dz-gen, .dz-prev #dz-pv-long:is(*), .dz-prev .dz-gen:is(*) { justify-self: stretch; justify-content: center; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13px; font-weight: 500; text-decoration: none; }
.dz-prev #dz-pv-long { color: var(--ink-2); }
.dz-prev .dz-gen, .dz-prev .dz-gen:is(*) { border-color: transparent; background: var(--plum-50); color: var(--plum); }
.dz-prev .dz-gen:hover { background: var(--plum-100); }
.dz-prev #dz-pv-long:hover { background: #fcf9f5; border-color: var(--line-2); }

/* designer: room under the page title; preview + actions grouped in one soft card; tips as a quiet list */
.main-h:has(+ * .dz), .main:has(.dz) .main-h { margin-bottom: 10px; }
.dz { padding-top: 8px; }
.dz-prev, .dz-prev:is(*) { margin-top: 20px; padding: 14px; gap: 14px 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(42, 10, 31, .03), 0 18px 40px -34px rgba(42, 10, 31, .3); }
.dz-pv .pg-act, .dz-pv .pg-act:is(*) { width: 38px; height: 38px; border: 0; background: var(--ivory); }
.dz-pv .pg-act:hover { background: var(--ivory-2); }
.dz-prev #dz-pv-long, .dz-prev .dz-gen, .dz-prev #dz-pv-long:is(*), .dz-prev .dz-gen:is(*) { height: 40px; border-radius: 11px; }
.dz-prev #dz-pv-long, .dz-prev #dz-pv-long:is(*) { background: var(--ivory); border-color: transparent; }
.dz-tips, .dz-tips:is(*) { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 22px 0 0; padding: 0 4px; }
.dz-tips li { display: grid; gap: 2px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.dz-tips b { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
@media (max-width: 760px) { .dz-panel { margin-top: 28px; } }
.dz-prev, .dz-prev:is(*) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dz-prev > * { min-width: 0; }
.dz-prev #dz-pv-long span, .dz-prev .dz-gen span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-tips, .dz-tips:is(*) { align-items: start; }
.dz-tips li { align-content: start; }

/* ================= Page title breathing room + Generate cards steps ================= */
@media (max-width: 980px) {
  .main-h { padding-bottom: 16px; }
}
/* Step header: solid numbered badge beside the title, the action stays on the same row as a compact pill */
.gen-h { align-items: flex-start; gap: 12px; }
.gen-n { width: 24px; height: 24px; margin-top: 1px; background: var(--plum); color: #fff; font-size: 12px; box-shadow: 0 0 0 4px rgb(var(--plum-rgb) / .1); }
.gen-h h3 { line-height: 1.25; }
.pg-sec-h:has(> .gen-h) { flex-wrap: nowrap; align-items: center; }
.pg-sec-h:has(> .gen-h) > .pg-btn { flex: none; }
@media (max-width: 980px) {
  .pg-sec-h:has(> .gen-h) > .pg-btn { height: 34px; padding: 0 12px; gap: 6px; font-size: 13px; border-radius: 999px; }
  .pg-sec-h:has(> .gen-h) > .pg-btn svg.i { width: 16px; height: 16px; }
}
/* serials box: quieter placeholder (the typed text stays 16px so phones don't zoom) */
.gen-ser textarea::placeholder { font-size: 13px; line-height: 1.5; color: var(--muted); opacity: .85; }
/* Generate cards: same section rhythm as other pages (sections live inside .gen-main, not .pg) */
.gen-main { gap: 56px; }
.gen.pg { gap: 40px; }
@media (max-width: 980px) {
  .gen-main { gap: 48px; }
  .gen.pg { gap: 48px; }
}

/* ================= Page titles, People & PINs header, compact sheet forms ================= */
/* More room between the page title and the first section, at every size. */
.main-h { padding-bottom: 20px; }
@media (max-width: 980px) { .main-h { padding-bottom: 24px; } }

/* People & PINs on phones: title and event name first, then one tidy row of labelled buttons. */
@media (max-width: 980px) {
  .pg-sec-h:has(> .pp-actions) { flex-direction: column; align-items: stretch; gap: 14px; }
  .pg-sec-h:has(> .pp-actions) p { white-space: normal; overflow: visible; }
  /* One light row of pills: Add person · Add by gate, then PINs and Print as round icon buttons on the right. */
  .pg-acts.pp-actions { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .pg-acts.pp-actions .pg-btn, .pg-acts.pp-actions .pg-cta { width: auto; min-width: 0; height: 36px; padding: 0 14px 0 12px; gap: 6px; justify-content: center; border-radius: 999px; font-size: 13.5px; font-weight: 500; letter-spacing: 0; }
  .pg-acts.pp-actions .pg-cta { order: -2 !important; box-shadow: none; }
  .pg-acts.pp-actions .pg-cta span { font-weight: 500; }
  .pg-acts.pp-actions [data-pp=gen] { order: -1 !important; }
  .pg-acts.pp-actions .pg-btn { background: #fff; border: 1px solid rgb(var(--plum-rgb) / .14); color: var(--ink); box-shadow: none; }
  .pg-acts.pp-actions .pg-btn svg.i { color: var(--plum); }
  .pg-acts.pp-actions .pg-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pg-acts.pp-actions .pg-btn .pp-l { display: none; }
  .pg-acts.pp-actions .pg-btn .pp-s { display: inline; }
  .pg-acts.pp-actions [data-pp=reveal], .pg-acts.pp-actions [data-pp=print] { width: 36px; padding: 0; }
  .pg-acts.pp-actions [data-pp=reveal] { margin-left: auto; }
  .pg-acts.pp-actions [data-pp=reveal] span, .pg-acts.pp-actions [data-pp=print] span { display: none !important; }
  .pg-acts.pp-actions svg.i { width: 16px; height: 16px; flex: none; }
}
.pp-actions .pp-s { display: none; }

/* Forms in sheets (Add person, Generate, New event …): quieter fields and buttons. */
.sheet .input { padding: 11px 13px; border-radius: 11px; font-size: 14.5px; }
.sheet .input::placeholder { font-size: 13.5px; }
.sheet .sub-actions { gap: 8px; }
.sheet .sub-actions .btn-lg { height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14.5px; font-weight: 500; }
/* Typed text stays 16px on phones: anything smaller makes iPhones zoom the page in on tap. */
@media (max-width: 980px) { .sheet .input { font-size: 16px; } .sheet .input::placeholder { font-size: 14px; } }

/* ================= Events: event card, calmer & more premium =================
   One white card, hairline inset dividers (no striped bands), serif dedication,
   stats as small figure/label pairs, and an "End event" row that stacks on phones. */
.evc-b { padding: 28px 30px 22px; }
.evc-h { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.3; color: var(--gold); }
.evc-m { margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.evc-f { margin: 0 30px; padding: 16px 0; background: transparent; border-top: 1px solid var(--line); }
.evc-n { gap: 28px; }
.evc-n span { display: grid; gap: 1px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.evc-n b { margin: 0; font-size: 20px; line-height: 1.15; letter-spacing: 0; text-transform: none; color: var(--ink); }
.evc-f .pg-btn { height: 36px; padding: 0 14px; gap: 6px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.evc-end { margin: 0 30px; padding: 16px 0 20px; background: transparent; gap: 14px; }
.evc-end-i { width: 32px; height: 32px; border-radius: 50%; }
.evc-end-t b { font-size: 14px; }
.evc-end-t span { font-size: 12.5px; }
.evc-end-b { border-radius: 999px; }
.evc-end.is-ended { margin: 0; padding: 16px 30px 20px; }
@media (max-width: 980px) {
  .evc-b { padding: 22px 20px 18px; }
  .evc-t { margin-top: 12px; font-size: 27px; }
  .evc-h { font-size: 17px; }
  .evc-m { font-size: 12.5px; }
  .evc-f { margin: 0 20px; padding: 14px 0; }
  .evc-n { gap: 24px; }
  .evc-n b { font-size: 18px; }
  .evc-f .pg-btn { height: 34px; padding: 0 12px; }
  /* End-event: icon + text on top, full-width button below */
  .evc-end { margin: 0 20px; padding: 16px 0 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px 12px; }
  .evc-end-i { grid-row: 1; margin-top: 1px; }
  .evc-end-b { grid-column: 1 / -1; width: 100%; height: 40px; margin-top: 12px; justify-content: center; }
  .evc-end.is-ended { margin: 0; padding: 16px 20px 18px; }
}

/* ================= Scan result: slim verdict bar, compact card, two-button footer ================= */
.rs-top { padding: max(14px, env(safe-area-inset-top)) 16px 34px; gap: 10px; }
.rs-verdict { gap: 10px; }
.rs-badge { width: 30px; height: 30px; background: rgba(255, 255, 255, .2); color: #fff; box-shadow: none; }
.rs-badge svg { width: 16px; height: 16px; stroke-width: 2.8; }
.rs-verdict b { font-size: 15.5px; font-weight: 650; letter-spacing: -.005em; line-height: 1.2; }
.rs-verdict small { font-size: 12px; opacity: .75; margin-top: 1px; }
.rs-close { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.rs-close svg { width: 16px; height: 16px; }
.rs-body { margin-top: -20px; padding: 0 14px 14px; }
.rs-card { border-radius: 18px; padding: 18px 18px 16px; border-color: rgb(var(--plum-rgb) / .06); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 28px -18px rgba(0, 0, 0, .25); }
.rs-row { margin-bottom: 12px; }
.rs-card .g-serial { font-size: clamp(32px, 9.5vw, 42px); letter-spacing: 0; }
.rs-card .g-cat { margin-top: 6px; font-size: 13.5px; line-height: 1.4; }
.rs-card .g-name { font-size: 13px; }
.rs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.rs-facts > div { display: block; min-width: 0; }
.rs-facts > div + div { padding-left: 14px; border-left: 1px solid var(--line); margin-left: 0; }
.rs-facts > div:first-child { padding-right: 14px; }
.rs-facts dt { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rs-facts dd { margin: 3px 0 0; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: lining-nums tabular-nums; }
.rs-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 9px 11px; border-radius: 10px; background: rgb(var(--plum-rgb) / .045); font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.rs-note svg.i { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--plum); }
.rs-note.warn { background: var(--amber-bg); color: #6d4706; }
.rs-note.warn svg.i { color: #b0700c; }
.rs-actions { padding: 12px 14px calc(12px + var(--safe-b)); gap: 8px; }
.rs-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px; }
.rs-btns .big-action, .rs-btns .rs-cancel { height: 46px; margin: 0; padding: 0 14px; border-radius: 13px; font-size: 14.5px; font-weight: 500; }
.rs-btns .big-action { gap: 8px; box-shadow: none; }
.rs-btns .big-action svg { width: 17px; height: 17px; }
.rs-btns .big-action span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-btns .big-action.ENTER { background: #157a55; }
.rs-btns .big-action.EXIT { background: #b8750e; }
.rs-btns .big-action.RETURN { background: var(--plum); }
.rs-btns .rs-cancel { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.rs-btns .rs-cancel:hover { color: var(--ink); background: #fff; }
.rs-actions .callout { margin: 0 !important; font-size: 12.5px; padding: 9px 11px; border-radius: 10px; }

/* ================= Events: event card v2 — "ticket" style =================
   Plum header with a gold hairline frame (echoes the access card), a two-up stats
   strip, then two equal actions and a quiet footnote. CSS-only: .evc-f/.evc-end are
   flattened with display: contents so their children sit on the card's grid. */
.evc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; background: #fff; }
.evc-b { grid-column: 1 / -1; grid-row: 1; position: relative; padding: 26px 26px 28px; color: var(--ivory);
  background: radial-gradient(420px 200px at 100% 0%, rgb(var(--gold-rgb) / .18), transparent 70%), linear-gradient(160deg, var(--plum), var(--plum-800)); }
.evc-b::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgb(var(--gold-rgb) / .35); border-radius: 12px; pointer-events: none; }
.evc-k .pg-label { color: var(--gold-300); opacity: .9; }
.evc-k .pg-st { height: 24px; padding: 0 10px; gap: 6px; border-radius: 999px; font-size: 12px; color: var(--ivory); background: rgb(255 255 255 / .12); }
.evc-k .pg-st i { width: 6px; height: 6px; background: var(--green-line); box-shadow: 0 0 0 3px rgb(255 255 255 / .12); opacity: 1; }
.evc-k .pg-st.bad i { background: var(--red-line); }
.evc-t { margin-top: 14px; color: var(--ivory); }
.evc-h { margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.3; color: var(--gold-300); }
.evc-m { margin-top: 16px; color: rgb(255 255 255 / .78); }
.evc-m span { align-items: flex-start; }
.evc-m svg.i { margin-top: 2px; color: var(--gold-300); }

.evc-f, .evc-end { display: contents; }
.evc-n { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--line); }
.evc-n span { display: grid; gap: 2px; padding: 18px 26px; font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.evc-n span + span { border-left: 1px solid var(--line); }
.evc-n b { margin: 0; font-family: var(--serif); font-size: 32px; line-height: 1; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; color: var(--plum-900); }

.evc-f > .pg-btn, .evc-end-b { grid-row: 3; height: 44px; justify-content: center; gap: 8px; border-radius: 12px; font-size: 14px; border: 1px solid var(--line); background: #fff; }
.evc-f > .pg-btn { grid-column: 1; margin: 18px 6px 0 22px; color: var(--ink); }
.evc-end-b { grid-column: 2; margin: 18px 22px 0 6px; width: auto; }
.evc-end-b.danger { color: var(--red); border-color: var(--red-line); }
.evc-end-b:not(.danger) { color: var(--plum); border-color: rgb(var(--plum-rgb) / .3); }
.evc-end-i { display: none; }
.evc-end-t { grid-column: 1 / -1; grid-row: 4; padding: 12px 22px 20px; text-align: center; gap: 2px; }
.evc-end:not(.is-ended) .evc-end-t b { display: none; }
.evc-end-t span { font-size: 12px; color: var(--muted); }
.evc-end.is-ended .evc-end-t b { font-size: 13px; color: var(--red); }

@media (min-width: 981px) {
  .evc-b { padding: 32px 36px 34px; }
  .evc-n span { padding: 20px 36px; }
  .evc-f > .pg-btn { margin-left: 30px; }
  .evc-end-b { margin-right: 30px; }
}
@media (max-width: 980px) {
  .evc-b { padding: 24px 22px 26px; }
  .evc-t { font-size: 28px; }
  .evc-h { font-size: 17px; }
  .evc-n span { padding: 16px 22px; }
  .evc-n b { font-size: 28px; }
  .evc-f > .pg-btn { margin: 16px 5px 0 18px; height: 42px; padding: 0 10px; }
  .evc-end-b { margin: 16px 18px 0 5px; height: 42px; padding: 0 10px; width: auto; }
  .evc-end-t { padding: 12px 18px 18px; }
}
@media (min-width: 981px) { .evc { max-width: 760px; } }

/* ================= Recent scans: icon tile, two-line text, Undo chip under the time ================= */
.rrow { gap: 12px; padding: 12px 14px; align-items: center; }
.rr-ico { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--plum-50); color: var(--muted); }
.rr-ico svg.i { width: 16px; height: 16px; }
.rr-ico.aw-ENTER, .rr-ico.aw-RETURN { background: var(--green-bg); color: var(--green); }
.rr-ico.aw-EXIT { background: var(--amber-bg); color: var(--amber); }
.rr-ico.aw-REJECT { background: var(--red-bg); color: var(--red); }
.rr-ico.aw-VOID { background: rgb(var(--plum-rgb) / .05); color: var(--muted); }
.rr-main { gap: 2px; }
.rr-ser { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink); line-height: 1.25; font-variant-numeric: lining-nums proportional-nums; font-feature-settings: normal; }
.rr-sub { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11px; line-height: 1.3; color: var(--muted); }
.rr-sub .rr-what { flex: none; font-size: 11px; font-weight: 500; }
.rr-sep { flex: none; font-style: normal; opacity: .6; }
.rr-sub .rr-cat { min-width: 0; font-size: 10.5px; }
.rr-sub .rr-flag { min-width: 0; font-size: 11px; }
.rr-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; min-height: 34px; }
.rr-time { font-size: 12px; }
.rr-undo { width: auto; height: 24px; margin: 0; padding: 0 9px 0 7px; gap: 4px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid rgb(var(--plum-rgb) / .14); background: #fff; color: var(--plum); font: inherit; font-size: 11.5px; font-weight: 500; }
.rr-undo svg.i { width: 12px; height: 12px; }
.rrow.undone { opacity: .6; }

/* ================= Flagged scans: attendant cards, admin list, pop-up sheet ================= */
.sa-list { gap: 10px; }
.sa-row { border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 1px 2px rgb(var(--plum-rgb) / .04); }
.sa-head { display: flex; align-items: center; gap: 12px; }
.sa-ico, .fl-ico { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--red-bg); color: var(--red); }
.sa-ico svg.i, .fl-ico svg.i { width: 16px; height: 16px; }
.sa-hd { min-width: 0; display: grid; gap: 2px; }
.sa-hd > b { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.sa-hd > span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-hd .sa-ser { margin: 0; display: inline; font-size: 12px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.sa-row .sa-what { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.sa-row .sa-fix { margin: 10px 0 0; padding: 10px 12px; border-radius: 11px; background: rgb(var(--plum-rgb) / .045); }
.sa-fix b { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }
.sa-fix p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }

.fl-list .fl-row { align-items: flex-start; gap: 12px; padding: 13px 16px; }
.fl-list .fl-row:first-child { border-top: 0; }
.fl-l1 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fl-ser { min-width: 0; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-time { flex: none; font-size: 12px; color: var(--muted); }
.fl-l2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.fl-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; background: var(--red-bg); font-size: 11px; font-weight: 500; color: var(--red); }
.fl-meta { font-size: 12px; color: var(--muted); }
.fl-what { margin-top: 5px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }

.fs-ico { width: 40px; height: 40px; border-radius: 12px; }
.fs-ico svg.i { width: 19px; height: 19px; }
.flag-sheet h2 { font-size: 18px; }
.fs-scan { margin-top: 16px; padding: 11px 14px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgb(var(--plum-rgb) / .04); }
.fs-scan b { font-weight: 500; }
.fs-what { font-size: 13.5px; }
.fs-fix { background: rgb(var(--plum-rgb) / .045); border-radius: 12px; }
.fs-fix b { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; color: var(--plum); }
.fs-fix p { font-size: 13px; }
.fs-btns .btn { height: 44px; border-radius: 12px; font-size: 14px; }

/* People & PINs subtitle: event name wraps neatly, counts on their own quiet line. */
.pg-sec-h p.pp-ev { margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; overflow-wrap: anywhere; }
.pg-sec-h p.pp-count { margin-top: 2px; font-size: 12px; color: var(--muted); opacity: .85; font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 400px) {
  .pg-acts.pp-actions { gap: 6px; }
  .pg-acts.pp-actions .pg-btn, .pg-acts.pp-actions .pg-cta { height: 34px; padding: 0 11px 0 9px; gap: 5px; font-size: 13px; }
  .pg-acts.pp-actions [data-pp=reveal], .pg-acts.pp-actions [data-pp=print] { width: 34px; padding: 0; }
  .pg-acts.pp-actions svg.i { width: 15px; height: 15px; }
}

/* sign-in is a single column at every width (the old event card beside it is gone) */
.login, .login:is(*) { grid-template-columns: minmax(0, 1fr); }
/* computer → attendant side: "Continue as <admin>" above the PIN form */
.si-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 16px; font-size: 12px; color: var(--muted); }
.si-or::before, .si-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
/* admin console → attendant side */
.main-h-r { display: flex; align-items: center; gap: 18px; }
@media (max-width: 980px) { .main-h-r, .main-h-r:is(*) { display: none; } }
.att-link { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; color: var(--plum); text-decoration: none; }
.att-link:hover { background: rgb(var(--plum-rgb) / .06); }
.att-link svg.i { width: 15px; height: 15px; }
.mm-out.mm-att { color: var(--plum); text-decoration: none; }

/* top bars clear the phone's status bar (the page draws under it: viewport-fit=cover) */
.topbar, .topbar:is(*) { padding-top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* top bar: more room above (status bar + breathing space) */
.topbar, .topbar:is(*) { padding-top: calc(env(safe-area-inset-top, 0px) + 22px); }

/* narrow phones: nothing in the designer or the design picker may be wider than the screen */
@media (max-width: 1180px) { .dz-panel { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); } }
.dz-panel > *, .dz-show, .dz-sw { min-width: 0; }
.gen-groups, .gen-group, .gen-tpls, .gen-tpls > button { min-width: 0; }
.gen-wide, .gen-tpls.gen-wide { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)) !important; }
.gen-tpls canvas { max-width: 100%; height: auto !important; }
.dz-sw-t, .dz-sw-t:is(*) { flex-wrap: wrap; row-gap: 0; white-space: normal; }
.dz-sw-t em { flex: none; }

/* sign-in step 2 (shared staff PIN): the PIN is confirmed, then name + gate */
.si-ok { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 10px 12px 10px 14px; border-radius: 12px; background: var(--green-bg); color: var(--green); font-size: 13.5px; font-weight: 500; }
.si-ok svg.i { width: 16px; height: 16px; flex: none; }
.si-ok span { flex: 1; }
.si-ok .link-btn { margin: 0; padding: 4px 6px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 380px) {
  .gen-tpls:not(.gen-wide) button { grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; }
  .gen-tpls:not(.gen-wide) canvas { width: 96px !important; }
}

/* phone: settings rows keep their full description (two lines) and a compact action */
@media (max-width: 760px) {
  .pg-txt > span:not(.wrap) { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.45; }
  .pg-end .pg-btn, .pg-end .pg-cta { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
  .pg-sec-h .tb-acts { width: 100%; }
  .tb-acts .pg-btn { flex: 1; justify-content: center; }
}
/* design picker: quiet labels (type rule: not bold), sizes in muted small text */
.gen-tpls button span { font-weight: 400; }
.gen-tpls button small { font-weight: 400; color: var(--muted); }

/* ============================================================ Labels & alerts, watchlist, tags, group cards, invitations (guestx.js)
   Label colours come from the event's own label settings (--lc on the element); everything else uses brand vars. */
.gx-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 500; color: var(--lc); background: color-mix(in srgb, var(--lc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--lc) 28%, transparent); white-space: nowrap; }
.gx-chip svg.i { width: 12px; height: 12px; }
.gx-tag { display: inline-flex; padding: 2px 8px; border-radius: 99px; font-size: 12px; color: var(--ink-2); background: var(--grey-bg); }
.gx-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gx-note { margin-top: 12px; }
.gx-alert { margin: -4px 0 14px; padding: 14px 16px; border-radius: 16px; color: #fff; background: var(--lc); box-shadow: 0 8px 22px color-mix(in srgb, var(--lc) 35%, transparent); animation: gx-pulse 1.2s ease-out 2; }
.gx-alert-h { display: flex; align-items: center; gap: 10px; }
.gx-alert-h svg.i { width: 24px; height: 24px; flex: none; }
.gx-alert-h b { font-size: 18px; font-weight: 650; letter-spacing: .01em; }
.gx-alert ul { margin: 8px 0 0; padding-left: 34px; font-size: 14px; line-height: 1.45; }
.gx-alert.watch { background: var(--red); box-shadow: 0 8px 22px rgb(0 0 0 / .18); }
@keyframes gx-pulse { 0% { transform: scale(.98); } 40% { transform: scale(1.015); } 100% { transform: scale(1); } }
.overlay.rs.gx-vip .rs-top, .overlay.rs.gx-watch .rs-top { box-shadow: inset 0 -3px 0 var(--gold); }
.overlay.rs.gx-watch .rs-top { box-shadow: inset 0 -3px 0 var(--red); }
.gx-staff-edit { display: flex; gap: 14px; margin-top: 14px; }
.gx-staff-edit .link-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.gx-staff-edit svg.i { width: 15px; height: 15px; }

/* group cards on the scan screen */
.gx-count { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.gx-count > div { padding: 10px 8px; border-radius: 14px; background: rgb(var(--plum-rgb) / .05); text-align: center; }
.gx-count b { display: block; font-size: 26px; font-weight: 650; color: var(--plum); line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.gx-count span { font-size: 12px; color: var(--muted); }
.gx-members { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.gx-members summary { cursor: pointer; color: var(--plum); font-weight: 500; }
.gx-members div { margin-top: 6px; line-height: 1.5; }
.gx-seg { display: flex; margin-bottom: 10px; }
.gx-seg button { flex: 1; }
.gx-stepper { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 10px; }
.gx-stepper > button { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 24px; color: var(--plum); }
.gx-stepper > div { text-align: center; min-width: 120px; }
.gx-stepper b { display: block; font-size: 34px; font-weight: 650; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.gx-stepper span { font-size: 12.5px; color: var(--muted); }
.gx-who { margin-bottom: 10px; }

/* guest drawer, editor, people */
.gx-drawer { margin-top: 14px; }
.gx-drawer .g-grid { margin-top: 12px; }
.gx-drawer-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gx-log { display: flex; flex-direction: column; }
.gx-log-r { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 9px 14px; font-size: 13px; border-top: 1px solid var(--line); }
.gx-log-r:first-child { border-top: 0; }
.gx-log-r > span:first-child { color: var(--muted); }
.gx-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.gx-pk { position: relative; cursor: pointer; }
.gx-pk input { position: absolute; opacity: 0; pointer-events: none; }
.gx-pk span { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 500; border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.gx-pk span svg.i { width: 13px; height: 13px; }
.gx-pk input:checked + span { color: #fff; background: var(--lc); border-color: var(--lc); }
.gx-pk input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 2px; }
.gx-ed-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .gx-ed-2 { grid-template-columns: 1fr; } }
.gx-perms { display: flex; flex-direction: column; gap: 4px; }
.gx-perm { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; }
.gx-perm input { margin-top: 3px; accent-color: var(--plum); }
.gx-perm b { display: block; font-size: 14px; font-weight: 500; }
.gx-perm small { display: block; font-size: 12.5px; color: var(--muted); }

/* bulk labels sheet */
.gx-tri { display: flex; flex-wrap: wrap; gap: 6px; }
.gx-tb { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 500; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.gx-tb svg.i { width: 13px; height: 13px; }
.gx-tb small { font-size: 11px; opacity: .8; }
.gx-tb.add { color: #fff; background: var(--lc); border-color: var(--lc); }
.gx-tb.mixed { border-color: var(--lc); color: var(--lc); border-style: dashed; }
.gx-tb.remove { text-decoration: line-through; color: var(--muted); background: var(--grey-bg); }

/* labels & alerts admin */
.sheet.gx-sheet-wide { max-width: 640px; }

/* guests list markers */
.gx-rowx { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; vertical-align: 1px; }
.gx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lc); display: inline-block; }
.gx-adm { font-size: 11px; font-weight: 500; color: var(--plum); background: rgb(var(--plum-rgb) / .08); padding: 0 6px; border-radius: 99px; }

/* watchlist & invitations */
.gx-wtabs { margin-bottom: 10px; }
.gx-wrow .pg-txt .gx-meta { margin-top: 6px; }
.gx-wrow .pg-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.gx-wsum { margin-top: 18px; }
.gx-mode { display: flex; }
.gx-mode button { flex: 1; }
.gx-inv-form { padding: 16px; }
.gx-inv-form textarea.input { min-height: 74px; resize: vertical; }
.gx-inv-go { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gx-inv-go .muted { font-size: 13px; }
.gx-inv .pg-end { display: flex; align-items: center; gap: 8px; }
.gx-prog { height: 6px; border-radius: 99px; background: var(--grey-bg); overflow: hidden; margin: 12px 0 6px; }
.gx-prog i { display: block; height: 100%; background: var(--plum); transition: width .3s; }
#iv-prog .callout { margin-top: 12px; }
.gx-tools { margin-top: 28px; }

/* Labels & alerts sheet: pg-style sections, regular-weight text at 13–14px, room between sections */
.gx-la-intro { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 52ch; }
.gx-la { display: flex; flex-direction: column; gap: 40px; margin: 32px 0 30px; }
.gx-labels { display: flex; flex-direction: column; gap: 12px; }
.gx-lab { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.gx-lab-h { display: flex; gap: 10px; align-items: center; }
.gx-lab-h .input { flex: 1; min-width: 0; }
.gx-lab-h input[type=color] { width: 36px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; flex: none; cursor: pointer; }
.gx-lab-del { flex: none; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); }
.gx-lab-del svg.i { width: 16px; height: 16px; }
.gx-lab-o, .gx-seen { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; font-weight: 400; color: var(--ink-2); align-items: center; }
.gx-lab-o label, .gx-seen label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.gx-lab-o input, .gx-seen input { accent-color: var(--plum); margin: 0; }
.gx-seen { padding-top: 10px; border-top: 1px solid var(--line); }
.gx-seen > span { color: var(--muted); font-size: 12.5px; }
.gx-seen em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.gx-la-add { align-self: flex-start; }
.gx-la .field { margin: 0; }
.gx-la .gx-perm { padding: 0; }
.gx-wtabs[hidden] { display: none; }

/* Label change log: who/what on top, the change, then by · when (stacked, quiet) */
.gx-log-r { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; font-size: 13px; }
.gx-log-w { color: var(--ink); font-size: 13.5px; }
.gx-log-w small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.gx-log-n { color: var(--ink-2); line-height: 1.45; }
.gx-log-m { color: var(--muted); font-size: 12px; }
/* Invitations: quieter message box and a normal-size send button */
#iv-msg { font-size: 13.5px; line-height: 1.5; min-height: 84px; }
#iv-msg::placeholder { font-size: 13px; }
.gx-inv-go { margin-top: 4px; }
.gx-inv-go .btn { height: 38px; padding: 0 14px; border-radius: 11px; font-size: 13.5px; font-weight: 500; gap: 7px; }
.gx-inv-go .btn svg.i { width: 15px; height: 15px; }
/* Labels sheet: smaller inputs */
.gx-la .input, .gx-lab .input { height: 38px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.gx-la .input::placeholder { font-size: 13px; }
/* Watchlist label filter: quiet pills */
.gx-wtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.gx-wtabs button { height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 500; cursor: pointer; }
.gx-wtabs button .num { color: var(--muted); margin-left: 3px; font-weight: 400; }
.gx-wtabs button.on { background: var(--plum); border-color: var(--plum); color: #fff; }
.gx-wtabs button.on .num { color: rgb(255 255 255 / .75); }

/* ============================================================ Calm pass (hp-2c, 2026-12-04)
   Guest drawer: a quiet key/value list instead of boxed cells; empty facts are hidden. */
.g-list { margin: 0; padding: 0; border-top: 1px solid var(--line); }
.g-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 2px; border-bottom: 1px solid var(--line); min-height: 44px; }
.g-list dt { font-size: 13px; font-weight: 400; color: var(--muted); flex: none; }
.g-list dd { margin: 0; font-size: 13.5px; font-weight: 400; color: var(--ink); text-align: right; display: flex; align-items: center; gap: 12px; justify-content: flex-end; flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: lining-nums tabular-nums; }
.g-list dd .chip { font-size: 12.5px; }
.g-list .link-btn { font-size: 13px; font-weight: 500; }
.gx-drawer { margin-top: 18px; }
.gx-drawer .g-list { margin-top: 14px; }
.drawer .g-cat { font-size: 13.5px; line-height: 1.45; }

/* Tables & Watchlist: more air between a section's parts and between sections */
#tb-page, .gx-watch { gap: 64px; }
#tb-page .pg-sec, .gx-watch .pg-sec { gap: 20px; }
#tb-page .tb-tools { margin: 0; }
#tb-page .tb-hits { margin: 0; }
.gx-watch .gx-wtabs { margin: 2px 0 4px; }
.gx-wtabs button { height: 30px; padding: 0 12px; font-size: 12.5px; }
.gx-wrow .pg-txt b { font-size: 14px; font-weight: 500; }
.gx-wrow .pg-txt > span { font-size: 12.5px; }
.gx-wrow .pg-txt .gx-meta { margin-top: 10px; }
.gx-wrow .chip { font-size: 12px; }
@media (max-width: 640px) {
  #tb-page, .gx-watch { gap: 52px; }
  #tb-page .pg-sec, .gx-watch .pg-sec { gap: 16px; }
}

/* Recent changes (tables) and label changes: smaller, quieter type on every screen */
.tb-log .tb-lrow, .tb-log.pg-box .tb-lrow { font-size: 12.5px; line-height: 1.5; padding-top: 13px; padding-bottom: 13px; }
.tb-lrow b { font-weight: 500; }
.tb-lmeta { font-size: 11.5px; }
.gx-log-r { font-size: 12px; padding: 13px 16px; }
.gx-log-w { font-size: 12.5px; }
.gx-log-w small { font-size: 11px; }
.gx-log-n { font-size: 12px; }
.gx-log-m { font-size: 11px; }

/* Invitations list: smaller text and share buttons; WhatsApp next to Share */
#iv-list .pg-row { padding-top: 13px; padding-bottom: 13px; }
#iv-list .pg-txt b { font-size: 13.5px; font-weight: 500; }
#iv-list .pg-txt > span { font-size: 12px; }
#iv-list .pg-end small { font-size: 11.5px; }
.gx-share { display: inline-flex; gap: 6px; }
#iv-list .icon-btn { width: 32px; height: 32px; border-radius: 10px; }
#iv-list .icon-btn svg.i { width: 15px; height: 15px; }
.gx-wa svg.i { color: var(--green); }

/* Tables header on phones: room between the title, the add buttons, the search and the filters; smaller buttons */
#tb-page .pg-sec-h { row-gap: 16px; }
.tb-acts .pg-btn { height: 34px; padding: 0 12px; font-size: 12.5px; gap: 6px; }
.tb-acts .pg-btn svg.i { width: 15px; height: 15px; }
#tb-page .tb-tools { gap: 14px; }
.tb-chips button { padding: 6px 12px; font-size: 12.5px; }
@media (max-width: 640px) {
  #tb-page .pg-sec-h .tb-acts { margin-top: 4px; }
  #tb-page .tb-tools .search { flex-basis: 100%; }
}

/* Add / edit table sheets: compact fields and buttons */
#tbm .field, #tbf .field { margin-bottom: 12px; }
#tbm label, #tbf label { font-size: 12.5px; }
#tbm .input, #tbf .input { padding: 9px 12px; font-size: 13.5px; border-radius: 10px; }
#tbm .sub-actions .btn, #tbf .sub-actions .btn { padding: 10px 14px; font-size: 13.5px; border-radius: 11px; }
#tbm #tm-eg { font-size: 12.5px !important; }

/* Guest drawer: the Table "Change" link lines up with its value; smaller action buttons */
.g-list .link-btn { display: inline; margin: 0; padding: 0; }
.gx-drawer-acts .pg-btn { height: 34px; padding: 0 12px; font-size: 12.5px; gap: 6px; }
.gx-drawer-acts .pg-btn svg.i { width: 15px; height: 15px; }

/* Tables: clear space between the add buttons, the search box, the filters and the list */
#tb-page .pg-sec-h + .tb-tools, #tb-page .pg-sec-h + .pg-box { margin-top: 12px; }
#tb-page .tb-tools { row-gap: 20px; margin-bottom: 12px; }
@media (max-width: 640px) {
  #tb-page .pg-sec-h .tb-acts { margin-top: 10px; }
  #tb-page .pg-sec-h + .tb-tools { margin-top: 16px; }
}

/* Table list rows: smaller type and badge */
.tb-row { padding-top: 14px; padding-bottom: 14px; }
.tb-row .pg-txt b { font-size: 13.5px; font-weight: 500; }
.tb-row .pg-txt > span { font-size: 12px; }
.tb-row .tb-ico { width: 32px; height: 32px; border-radius: 9px; font-size: 11.5px; }
.tb-row .rp-n { font-size: 13px; min-width: 64px; }
.tb-row .rp-n i { font-size: 11.5px; }
