/* EventLead — GCC Gov HR & Youth Summit 2026
   Black and gold, following govhr-summit.com: deep black, gold leaf, Montserrat.
   Hot / warm / cold and the three badge types are the only other colours on screen. */
:root {
  --bg: #070707;
  --surface: #121110;
  --surface-2: #1a1815;
  --surface-3: #221f1a;
  --line: #2b261e;
  --line-strong: #4a3d27;
  --text: #f2ecdf;
  --text-2: #c4bba8;
  --text-3: #8f8778;
  --gold: #c9a35a;
  --gold-hi: #e3c27e;
  --gold-deep: #a8823d;
  --gold-grad: linear-gradient(180deg, #e2c27c 0%, #c9a35a 52%, #a07a36 100%);
  --gold-soft: rgba(201,163,90,.12);
  --on-gold: #140f06;

  --hot: #ef7a6e;   --hot-bg: rgba(239,122,110,.14);
  --warm: #eba45a;  --warm-bg: rgba(235,164,90,.14);
  --cold: #8eaef0;  --cold-bg: rgba(142,174,240,.14);
  --ok: #7cc795;    --ok-bg: rgba(124,199,149,.14);

  /* badge types */
  --speaker: #c4a2f5;  --speaker-bg: rgba(196,162,245,.14);
  --sponsor: #e3c27e;  --sponsor-bg: rgba(227,194,126,.14);
  --delegate: #7ec4dc; --delegate-bg: rgba(126,196,220,.14);

  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 64px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5;
  color: var(--text); background: var(--bg);
}
a { color: var(--gold-hi); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 1.6rem; font-weight: 300; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }
h1 strong { font-weight: 600; }
h2 { font-size: 1rem; font-weight: 600; letter-spacing: .04em; color: var(--text); }
p { margin: 0; }
.muted { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-radius: 4px; }

/* ---------- App shell ---------- */
.shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px; background: rgba(7,7,7,.92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.who { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--gold-grad); color: var(--on-gold); font-weight: 700; font-size: .8rem; letter-spacing: .03em;
}
.avatar.lg { width: 48px; height: 48px; font-size: .95rem; background: var(--surface-3); color: var(--gold-hi); border: 1px solid var(--line-strong); }
.who-text { display: none; line-height: 1.25; text-align: right; }
.who-text small { display: block; color: var(--text-3); }
.role-pill { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line-strong); padding: 3px 8px; border-radius: 99px; }

.main { padding: 20px 16px calc(var(--nav-h) + 28px); max-width: 980px; margin: 0 auto; }

/* Bottom nav (mobile). The scan button is the one loud element in the app. */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: 1fr 1fr 1.1fr 1fr 1fr;
  align-items: center; background: #0c0b0a; border-top: 1px solid var(--line);
}
.navlink {
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; color: var(--text-3);
  text-decoration: none; padding: 6px 0; background: none; border: 0; font-family: inherit; cursor: pointer; letter-spacing: .02em;
}
.navlink svg { width: 22px; height: 22px; }
.navlink.active { color: var(--gold-hi); font-weight: 600; }
.navscan {
  justify-self: center; width: 62px; height: 62px; margin-top: -26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-grad); color: var(--on-gold); text-decoration: none;
  box-shadow: 0 6px 22px rgba(201,163,90,.35), 0 0 0 5px #0c0b0a;
}
.navscan svg { width: 28px; height: 28px; }
.navscan:hover { filter: brightness(1.05); }
.sidenav { display: none; }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 248px 1fr; }
  .topbar { grid-column: 1 / -1; padding: 12px 28px; }
  .who-text { display: block; }
  .brand img { height: 48px; }
  .bottomnav { display: none; }
  .sidenav {
    display: flex; flex-direction: column; gap: 4px; padding: 24px 16px; border-right: 1px solid var(--line);
    background: #0b0a09; position: sticky; top: 73px; height: calc(100vh - 73px);
  }
  .sidenav .navlink { flex-direction: row; gap: 12px; font-size: .92rem; padding: 10px 12px; border-radius: var(--radius-sm); width: 100%; }
  .sidenav .navlink:hover { background: var(--surface); color: var(--text); }
  .sidenav .navlink.active { background: var(--gold-soft); }
  .sidenav .scan-cta { margin: 4px 0 16px; }
  .sidenav form { margin-top: auto; }
  .main { padding: 32px 36px 48px; margin: 0; max-width: 1060px; width: 100%; }
}

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font: 600 .9rem var(--font); cursor: pointer; letter-spacing: .04em;
  text-decoration: none; transition: filter .15s, background .15s;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 4px 18px rgba(201,163,90,.22); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-outline { background: transparent; color: var(--gold-hi); border-color: var(--gold-deep); }
.btn-outline:hover { background: var(--gold-soft); }
.btn-ghost { background: none; color: var(--text-2); min-height: 40px; padding: 0 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--text-2); letter-spacing: .02em; }
.input, textarea, select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: 1rem var(--font); color: var(--text); background: #0d0c0b;
}
.input::placeholder, textarea::placeholder { color: #5f594f; }
.input:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201,163,90,.18); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field { margin-bottom: 18px; }
.field-error { color: var(--hot); font-size: .85rem; margin-top: 6px; }
.field-help { color: var(--text-3); font-size: .78rem; margin-top: 6px; }

/* ---------- Messages ---------- */
.msgs { display: grid; gap: 8px; margin-bottom: 16px; }
.msg { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .88rem; background: var(--gold-soft); color: var(--text); border: 1px solid var(--line-strong); }
.msg.warning, .msg.error { background: var(--warm-bg); border-color: rgba(235,164,90,.35); }
.msg.success { background: var(--ok-bg); border-color: rgba(124,199,149,.35); }

/* ---------- Cards ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head a { font-size: .85rem; }

/* ---------- Dashboard ---------- */
.greet { margin-bottom: 20px; }
.greet p { color: var(--text-3); margin-top: 6px; font-size: .9rem; }
.scan-hero {
  display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); text-decoration: none;
  color: var(--text); margin-bottom: 16px; border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 100% 0%, rgba(227,194,126,.20), transparent 55%), linear-gradient(135deg, #1a1611, #0e0d0b);
}
.scan-hero .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--gold-grad); color: var(--on-gold); display: grid; place-items: center; flex: none; }
.scan-hero .ic svg { width: 30px; height: 30px; }
.scan-hero strong { display: block; font-size: 1.05rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-hi); }
.scan-hero span { font-size: .85rem; color: var(--text-2); }
.scan-hero .chev { margin-left: auto; width: 22px; height: 22px; color: var(--gold); }
.scan-hero:hover { border-color: var(--gold-deep); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  text-decoration: none; color: var(--text);
}
.stat:hover { border-color: var(--line-strong); }
.stat .k { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-2); letter-spacing: .03em; }
.stat .k svg { width: 18px; height: 18px; }
.stat .v { font-size: 2rem; font-weight: 600; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: .78rem; color: var(--text-3); }
.stat.total .k svg { color: var(--gold); }
.stat.hot .k svg { color: var(--hot); }
.stat.fav .k svg { color: var(--gold); }
.stat.fu .k svg { color: var(--cold); }
.stat.speaker .k svg { color: var(--speaker); }
.stat.sponsor .k svg { color: var(--sponsor); }
.stat.delegate .k svg { color: var(--delegate); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats.three { grid-template-columns: repeat(3, 1fr); } }

.mix { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-3); margin: 8px 0 12px; }
.mix span { display: block; height: 100%; }
.mix .h { background: var(--hot); } .mix .w { background: var(--warm); } .mix .c { background: var(--cold); } .mix .u { background: #3a352d; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Lead rows ---------- */
.lead-list { list-style: none; margin: 0; padding: 0; }
.lead-row { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.lead-row:last-child { border-bottom: 0; }
.lead-row .body { flex: 1; min-width: 0; text-decoration: none; color: inherit; display: grid; grid-template-columns: 48px minmax(0,1fr); column-gap: 12px; align-items: center; }
.lead-row .body > .avatar { grid-row: span 2; }
.lead-row .contact { display: none; }
.lead-row > .time { display: none; }
.lead-row .when { font-size: .74rem; color: var(--text-3); align-self: center; }
.lead-row .txt { min-width: 0; flex: 1; }
.lead-row .name { font-weight: 600; }
.lead-row .co { font-size: .85rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-row .tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.lead-row .time { font-size: .76rem; color: var(--text-3); white-space: nowrap; align-self: flex-start; padding-top: 2px; }
.star { background: none; border: 0; padding: 8px; cursor: pointer; color: #5a5348; border-radius: 50%; line-height: 0; }
.star svg { width: 22px; height: 22px; }
.star[aria-pressed="true"] { color: var(--gold); }
.star[aria-pressed="true"] svg { fill: currentColor; }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); letter-spacing: .02em; }
.tag.hot { background: var(--hot-bg); color: var(--hot); }
.tag.warm { background: var(--warm-bg); color: var(--warm); }
.tag.cold { background: var(--cold-bg); color: var(--cold); }
.tag.fu { background: var(--ok-bg); color: var(--ok); }
.tag.draft { background: transparent; border: 1px dashed #4d4536; color: var(--text-3); }
.tag.speaker { background: var(--speaker-bg); color: var(--speaker); }
.tag.sponsor { background: var(--sponsor-bg); color: var(--sponsor); }
.tag.delegate { background: var(--delegate-bg); color: var(--delegate); }

/* ---------- Lead list page ---------- */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.search { display: flex; gap: 8px; margin-bottom: 12px; }
.search .input { padding-left: 42px; background: #0d0c0b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%238f8778' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); font-size: .84rem;
  color: var(--text-2); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.chip.active { background: var(--gold-grad); border-color: transparent; color: var(--on-gold); font-weight: 600; }
.pager { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; font-size: .9rem; }
.empty { text-align: center; padding: 40px 16px; color: var(--text-2); }
.empty .btn { margin-top: 16px; }

@media (min-width: 900px) {
  .lead-row { padding: 12px 8px; }
  .lead-row .tags { margin-top: 0; }
  .lead-row > .time { display: block; }
  .lead-row .when { display: none; }
  .lead-row .body { grid-template-columns: 48px minmax(0,1.4fr) minmax(0,1fr) 200px; }
  .lead-row .body > .avatar { grid-row: auto; }
  .lead-row .contact { display: block; font-size: .85rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- Scan page ---------- */
.scan-wrap { max-width: 520px; margin: 0 auto; }
.viewfinder {
  position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #000; margin: 16px 0;
  border: 2px solid var(--gold); box-shadow: 0 0 0 6px rgba(201,163,90,.08), 0 20px 50px rgba(0,0,0,.6);
}
#reader { width: 100%; height: 100%; }
#reader video { width: 100% !important; height: 100% !important; object-fit: cover; }
.frame { position: absolute; inset: 14%; pointer-events: none; }
.frame::before, .frame::after, .frame span::before, .frame span::after {
  content: ""; position: absolute; width: 36px; height: 36px; border: 4px solid var(--gold-hi);
}
.frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.frame::after { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.frame span::before { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.frame span::after { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.scan-state {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; text-align: center; color: #fff; font-size: .88rem;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.cam-off { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--text-2); }
.cam-off .btn { margin-top: 14px; }
.scan-result { display: none; }
.scan-result.show { display: block; }
.scan-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hint { font-size: .85rem; color: var(--text-3); text-align: center; }
.hint label { display: inline; font-weight: 600; color: var(--gold-hi); cursor: pointer; text-decoration: underline; }
.success-flash { position: absolute; inset: 0; background: rgba(124,199,149,.3); opacity: 0; transition: opacity .2s; pointer-events: none; }
.success-flash.on { opacity: 1; }

/* ---------- Qualification ---------- */
.detail-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 340px 1fr; align-items: start; } .detail-grid .person { position: sticky; top: 100px; } }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); text-decoration: none; font-size: .88rem; margin-bottom: 12px; }
.back svg { width: 18px; height: 18px; }
.person-top { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.person-top h2 { font-size: 1.15rem; }
.person-top p { color: var(--text-2); font-size: .88rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 10px; align-items: center; font-size: .9rem; word-break: break-word; }
.facts svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.facts a { color: var(--text); text-decoration: none; }
.facts a:hover { text-decoration: underline; }
.scanned-at { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-3); }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; cursor: pointer;
  font-weight: 600; color: var(--text-2); background: #0d0c0b; border-right: 1px solid var(--line-strong);
}
.seg label:last-of-type { border-right: 0; }
.seg label svg { width: 17px; height: 17px; }
.seg input:focus-visible + label { outline: 2px solid var(--gold-hi); outline-offset: -3px; }
.seg input[value="hot"]:checked + label { background: var(--hot); color: #1a0b09; }
.seg input[value="warm"]:checked + label { background: var(--warm); color: #1a0f04; }
.seg input[value="cold"]:checked + label { background: var(--cold); color: #08101f; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.toggle-row label { margin: 0; color: var(--text); }
.toggle-row small { display: block; font-weight: 400; color: var(--text-3); }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #3a342b; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #f2ecdf; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

.savebar { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.savebar .btn { flex: 1; }
.autosave { font-size: .8rem; color: var(--text-3); display: flex; align-items: center; gap: 6px; min-height: 20px; margin-top: 10px; }
.autosave .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.autosave.saving .dot { background: var(--warm); }
.autosave.err .dot { background: var(--hot); }
@media (max-width: 899px) {
  .savebar { position: sticky; bottom: calc(var(--nav-h) + 8px); background: var(--bg); padding: 8px 0; }
}

/* ---------- Success ---------- */
.done { max-width: 460px; margin: 0 auto; text-align: center; }
.done h1 { font-size: 1.3rem; }
.tick { width: 84px; height: 84px; margin: 12px auto 16px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 0 0 6px rgba(201,163,90,.15), 0 0 0 7px var(--gold-deep); color: var(--on-gold); display: grid; place-items: center; }
.tick svg { width: 44px; height: 44px; }
.tick svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .45s .15s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .tick svg path { animation: none; stroke-dashoffset: 0; } }
.done .panel { text-align: left; margin: 20px 0; }
.done .actions { display: grid; gap: 10px; }

/* ---------- Auth (sign-in) ---------- */
.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; position: relative; overflow: hidden;
  background: #000;
}
/* Gold dust sweeping across the corner, echoing the summit website */
.auth::before {
  content: ""; position: absolute; inset: -10%; pointer-events: none; opacity: .9;
  background:
    radial-gradient(1.5px 1.5px at 72% 12%, #e3c27e 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 22%, #f2dca6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 69% 31%, #c9a35a 50%, transparent 51%),
    radial-gradient(1px 1px at 83% 38%, #e3c27e 50%, transparent 51%),
    radial-gradient(2px 2px at 76% 47%, #c9a35a 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 55%, #f2dca6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 81% 63%, #c9a35a 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 71%, #e3c27e 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 82%, #c9a35a 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 14% 18%, #a8823d 50%, transparent 51%),
    radial-gradient(ellipse 38% 70% at 84% 40%, rgba(201,163,90,.16), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 105%, rgba(201,163,90,.14), transparent 70%);
}
.auth-inner { width: 100%; max-width: 440px; position: relative; z-index: 1; }
.auth-panel {
  position: relative; padding: 30px 26px 28px; border-radius: 26px; background: rgba(14,13,11,.86);
  border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,.65), inset 0 1px 0 rgba(227,194,126,.08);
}
.auth-brand { text-align: center; margin-bottom: 14px; }
.auth-brand img { width: 220px; max-width: 74%; height: auto; }
.event-when { text-align: center; color: var(--text); font-size: .95rem; line-height: 1.45; margin-bottom: 4px; }
.event-when small { display: block; color: var(--text-2); font-size: .82rem; font-weight: 300; }
.auth-title { text-align: center; font-weight: 300; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-size: 1.05rem; margin: 18px 0 16px; }
.auth-title strong { font-weight: 600; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #0a0908; border: 1px solid var(--line-strong); border-radius: 99px; margin-bottom: 20px; }
.auth-tabs a { text-align: center; padding: 10px 8px; border-radius: 99px; text-decoration: none; color: var(--text-2); font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.auth-tabs a[aria-current="page"] { background: var(--gold-grad); color: var(--on-gold); }
.auth-card { color: var(--text); }
.auth-card h1 { font-size: 1.1rem; color: var(--text); text-transform: none; letter-spacing: .01em; font-weight: 600; }
.auth-card .lead { color: var(--text-2); margin: 6px 0 18px; font-size: .9rem; }
.code-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; padding-left: .5em; }
.auth-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: .86rem; }
.auth-foot form { margin: 0; }
.auth a { color: var(--gold-hi); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--gold-hi); font: inherit; cursor: pointer; text-decoration: underline; }
.notice { background: var(--warm-bg); color: #f3cf9f; padding: 10px 12px; border-radius: var(--radius-sm); font-size: .84rem; margin-bottom: 16px; }
.auth .msgs { margin-bottom: 14px; }
.powered { text-align: center; margin-top: 20px; font-size: .78rem; color: var(--text-3); }
.tagline { text-align: center; margin-top: 10px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- Send leads ---------- */
.send-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .send-grid { grid-template-columns: 1fr 320px; align-items: start; } }
.scope-list { display: grid; gap: 8px; margin-bottom: 18px; }
.scope { position: relative; }
.scope input { position: absolute; opacity: 0; }
.scope label {
  display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 14px 16px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #0d0c0b; font-weight: 600; color: var(--text);
}
.scope label span { font-size: 1.1rem; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.scope input:checked + label { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: var(--gold-soft); }
.scope input:focus-visible + label { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.to-me { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--gold-soft); margin-bottom: 18px; font-size: .9rem; }
.to-me svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.help { font-size: .8rem; color: var(--text-3); margin-top: 6px; }
.send-actions { display: grid; gap: 10px; }
.history { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.history li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; }
.history small { display: block; color: var(--text-3); }

/* ---------- Lead card (view + captured) ---------- */
.lead-card .person-top .grow { flex: 1; min-width: 0; }
.lead-card .person-top .star { align-self: flex-start; margin: -6px -6px 0 0; }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tag.lg { font-size: .82rem; padding: 6px 14px; }
.tag.lg svg { width: 15px; height: 15px; }
.tag.solid.hot { background: var(--hot); color: #1a0b09; }
.tag.solid.warm { background: var(--warm); color: #1a0f04; }
.tag.solid.cold { background: var(--cold); color: #08101f; }
.tag.fav { background: var(--gold-soft); color: var(--gold-hi); }
.tag.fav svg { fill: currentColor; }
.done.view { text-align: left; }
.done.view .lead-card { margin: 4px 0 16px; }
.notes-panel { margin-bottom: 20px; }
.notes-panel .panel-head { margin-bottom: 8px; }
.notes-text { white-space: normal; line-height: 1.6; }
.edit-link { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--gold-hi); text-decoration: none; }
.edit-link svg { width: 16px; height: 16px; }
.edit-link:hover { text-decoration: underline; }
.row-arrow { display: grid; place-items: center; width: 32px; height: 40px; color: var(--text-3); margin-right: -6px; }
.row-arrow svg { width: 20px; height: 20px; }
.lead-row:hover .row-arrow { color: var(--gold); }
.lead-row .star { padding: 8px 4px; }

.tick-wrap { position: relative; width: 140px; height: 120px; margin: 4px auto 8px; display: grid; place-items: center; }
.tick-wrap .tick { margin: 0; }
.spark { position: absolute; width: 12px; height: 4px; border-radius: 4px; background: var(--gold-hi); opacity: 0; animation: spark .5s .35s ease-out forwards; }
.spark.s1 { left: 12px; top: 40px; transform: rotate(20deg); }
.spark.s2 { left: 26px; top: 88px; transform: rotate(-35deg); background: var(--gold-deep); }
.spark.s3 { left: 38px; top: 12px; transform: rotate(40deg); }
.spark.s4 { right: 14px; top: 44px; transform: rotate(-20deg); }
.spark.s5 { right: 26px; top: 90px; transform: rotate(35deg); }
.spark.s6 { right: 38px; top: 10px; transform: rotate(-45deg); background: var(--gold-deep); }
@keyframes spark { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .spark { animation: none; opacity: 1; } }

img.avatar.photo { object-fit: cover; background: var(--surface-3); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.lead-card .person-top img.avatar.photo, .person .person-top img.avatar.photo { width: 64px; height: 64px; }

/* =====================================================================
   Event-staff attendance app
   ===================================================================== */
.day-banner {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px;
  background: var(--gold-soft); border: 1px solid var(--line-strong); font-size: .86rem; color: var(--text-2);
}
.day-banner strong { color: var(--gold-hi); letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; }
.day-banner.off { background: var(--warm-bg); border-color: rgba(235,164,90,.35); }
.day-banner.off strong { color: var(--warm); }

/* Count table: rows = Speakers / Sponsors / Delegates, columns = Day 1 / Day 2 / unique */
.count-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.count-table th, .count-table td { padding: 12px 8px; text-align: right; border-bottom: 1px solid var(--line); }
.count-table th { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.count-table th:first-child, .count-table td:first-child { text-align: left; }
.count-table td { font-size: 1.05rem; font-weight: 600; }
.count-table td small { display: block; font-size: .7rem; font-weight: 400; color: var(--text-3); }
.count-table td a { color: inherit; text-decoration: none; }
.count-table td a:hover { color: var(--gold-hi); }
.count-table tr.total td { border-bottom: 0; color: var(--gold-hi); }
.count-table .type { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.count-table .type i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.count-table .today { background: rgba(201,163,90,.06); }

.tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: #0a0908; border: 1px solid var(--line-strong); border-radius: 14px; margin-bottom: 12px; }
.tabbar a { text-align: center; padding: 10px 6px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-size: .86rem; font-weight: 600; line-height: 1.2; }
.tabbar a small { display: block; font-size: .7rem; font-weight: 400; color: var(--text-3); margin-top: 2px; }
.tabbar a[aria-current="page"] { background: var(--gold-grad); color: var(--on-gold); }
.tabbar a[aria-current="page"] small { color: rgba(20,15,6,.7); }
.tabbar.types a[aria-current="page"].speaker { background: var(--speaker); }
.tabbar.types a[aria-current="page"].delegate { background: var(--delegate); }
.tabbar .n { font-variant-numeric: tabular-nums; }

.att-list { list-style: none; margin: 0; padding: 0; }
.att-row, .att-head {
  display: grid; gap: 2px 12px; align-items: center;
  grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "name time" "co date";
}
.att-row { padding: 13px 4px; border-bottom: 1px solid var(--line); }
.att-row:last-child { border-bottom: 0; }
.att-row .name { grid-area: name; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-row .co { grid-area: co; font-size: .84rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-row .d { grid-area: date; text-align: right; font-size: .76rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.att-row .t { grid-area: time; text-align: right; font-weight: 600; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.att-row .x { font-size: .72rem; color: var(--text-3); font-weight: 400; margin-left: 6px; }
.att-head { display: none; }
@media (min-width: 760px) {
  .att-row, .att-head { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) 140px 90px; grid-template-areas: "name co date time"; }
  .att-head { display: grid; padding: 4px 4px 10px; border-bottom: 1px solid var(--line-strong); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
  .att-head span:nth-child(1) { grid-area: name; } .att-head span:nth-child(2) { grid-area: co; }
  .att-head span:nth-child(3) { grid-area: date; text-align: right; } .att-head span:nth-child(4) { grid-area: time; text-align: right; }
  .att-row .co { font-size: .9rem; }
  .att-row .d { font-size: .9rem; color: var(--text-2); }
}

/* Scan result card that pops over the camera */
.scan-pop {
  position: absolute; inset: auto 12px 12px 12px; padding: 16px; border-radius: 16px; z-index: 3;
  background: rgba(10,10,9,.96); border: 1px solid var(--line-strong); box-shadow: 0 12px 30px rgba(0,0,0,.6); z-index: 5;
  transform: translateY(16px); opacity: 0; transition: transform .2s, opacity .2s; pointer-events: none;
}
.scan-pop.show { transform: none; opacity: 1; pointer-events: auto; }
.scan-pop .status { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.scan-pop .status svg { width: 18px; height: 18px; }
.scan-pop.ok { border-color: rgba(124,199,149,.6); } .scan-pop.ok .status { color: var(--ok); }
.scan-pop.again { border-color: rgba(235,164,90,.6); } .scan-pop.again .status { color: var(--warm); }
.scan-pop.err { border-color: rgba(239,122,110,.6); } .scan-pop.err .status { color: var(--hot); }
.scan-pop .who-name { font-size: 1.25rem; font-weight: 600; margin-top: 6px; line-height: 1.2; }
.scan-pop .who-co { color: var(--text-2); font-size: .9rem; margin-top: 2px; }
.scan-pop .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: .82rem; color: var(--text-2); }
.live-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.live-counts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.live-counts b { display: block; font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.live-counts span { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.live-counts .speaker b { color: var(--speaker); } .live-counts .sponsor b { color: var(--sponsor); } .live-counts .delegate b { color: var(--delegate); }

.profile-card { display: flex; gap: 14px; align-items: center; }
.profile-card .avatar { width: 56px; height: 56px; font-size: 1.05rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .9rem; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.day-banner svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.day-banner.off svg { color: var(--warm); }
