/* ============ Base tokens (host console) ============ */
:root {
  /* Platform = Headlight identity v2: black, white and one gray (#EBEBEB); grays between them are allowed, never a hue.
     Darker Grotesque 800 for display, Sora for everything else. Status colors below are functional UI states. */
  --bg: #ffffff; --panel: #ffffff; --panel-2: #ebebeb; --line: #e3e3e3; --line-2: #c9c9c9;
  --text: #000000; --muted: #5c5c5c; --faint: #8c8c8c;
  --accent: #000000; --accent-ink: #ffffff;
  --ok: #1f7a45; --warn: #9a5b00; --info: #1f5fa8; --bad: #b3261e; --violet: #6b4fb3;
  --radius: 2px; --radius-sm: 2px;
  --font: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Darker Grotesque", "Sora", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.boot { padding: 40px; color: var(--muted); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.hidden, [hidden] { display: none !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: 34px; } h2 { font-size: 24px; } h3 { font-size: 15px; font-weight: 700; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 700; }

/* ============ Controls ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); background: var(--panel-2);
  padding: 9px 14px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none; min-height: 40px; }
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 5px 10px; min-height: 32px; font-size: 13px; }
.btn.lg { padding: 14px 20px; min-height: 52px; font-size: 16px; }
.btn.block { width: 100%; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 6px; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); }

label.field { display: block; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.input, input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel],
input[type=datetime-local], input[type=search], input[type=color], select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 42px; outline: none; }
input[type=color] { padding: 4px; height: 42px; }
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid2 > *, .grid3 > * { min-width: 0; }
@media (max-width: 720px) { .grid2, .grid3 { grid-template-columns: 1fr !important; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card.tight { padding: 12px 14px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid currentColor; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-approved { color: var(--ok); } .s-requested { color: var(--warn); } .s-waitlist { color: var(--info); }
.s-invited { color: var(--violet); } .s-declined, .s-cancelled { color: var(--faint); }
.s-draft { color: var(--muted); } .s-published { color: var(--ok); } .s-closed { color: var(--faint); }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--accent); font-weight: 600; letter-spacing: .02em; }

/* ============ Toast / modal ============ */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; font-weight: 500; opacity: 0; pointer-events: none; transition: .2s; z-index: 1000; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--bad); color: #fff; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 500; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 720px) { .overlay { align-items: center; } }
.sheet { background: var(--panel); border: 1px solid var(--line); border-radius: 16px 16px 0 0; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; padding: 22px; }
@media (min-width: 720px) { .sheet { border-radius: 16px; } }
.drawer-overlay { align-items: stretch; justify-content: flex-end; }
.drawer { background: var(--panel); border-left: 1px solid var(--line); width: 100%; max-width: 480px; height: 100%; overflow: auto; padding: 22px; }

/* ============ Host shell ============ */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; }
.brandmark { text-decoration: none; display: flex; align-items: baseline; gap: 8px; color: var(--text); }
/* Headlight wordmark: Figtree 900, lowercase, as set in the identity documents. */
.brandmark .wordmark { font-family: "Figtree", var(--font); font-weight: 900; font-size: 21px; letter-spacing: -0.035em; line-height: 1; text-transform: lowercase; }
.org-select { width: auto; min-height: 36px; padding: 6px 10px; max-width: 220px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px 80px; }
.narrow { max-width: 460px; margin: 8vh auto; padding: 0 16px; }

.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.event-card { text-decoration: none; display: block; transition: border-color .15s; }
.event-card:hover { border-color: var(--line-2); }
.event-card .cover { height: 110px; border-radius: 8px; background: var(--panel-2) center/cover; margin: -6px -6px 12px; }
.meter { height: 6px; background: var(--panel-2); border-radius: 9px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin: 18px 0 20px; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.subtabs button { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; cursor: pointer; font-size: 13px; color: var(--muted); }
.subtabs button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.subtabs b { font-weight: 700; margin-left: 4px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--panel); position: sticky; top: 0; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr { cursor: pointer; }
table.list tbody tr:hover { background: var(--panel); }
table.list td.chk, table.list th.chk { width: 36px; }
.bulkbar { position: sticky; bottom: 12px; margin-top: 12px; background: var(--text); color: var(--bg); border-radius: 12px; padding: 10px 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; z-index: 40; }
.bulkbar .btn { background: transparent; color: var(--bg); border-color: rgba(255,255,255,.35); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi .v { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.kpi .l { font-size: 12px; color: var(--muted); }
.chart svg { width: 100%; height: auto; display: block; }
.bars .bar-row { display: grid; grid-template-columns: 120px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; margin: 6px 0; }
.bars .bar-row .track { height: 10px; background: var(--panel-2); border-radius: 6px; overflow: hidden; }
.bars .bar-row .track i { display: block; height: 100%; background: var(--accent); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 6px 0 6px 16px; border-left: 2px solid var(--line-2); font-size: 13px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }

/* ============ Public (branded): the guest's invitation ============ */
/* Set like a printed invitation. No boxes: structure comes from type, space and hairlines, all on one ground (FS s.10).
   Dividers are 1 px at 14 % of the ink (--p-hair, --p-divider), lighter than FS s.11's 1.5 / 3 px rules, by Domo's choice
   on Oct 12. Labels are the body type, bold capitals at +200; dates, times and numbers are the display type. Only an
   owner that keeps its own colors puts the event in a panel (§3.4). */
.pub { --p-bg: #0f0e0d; --p-fg: #f4efe8; --p-accent: #e6d3b3; --p-font: "Inter"; --p-display: var(--p-font); --p-radius: 18px; --p-radius-sm: 8px;
  --p-rule: 1.5px; --p-hair: 1px;
  display: flow-root; min-height: 100vh; background: var(--p-bg); color: var(--p-fg); font-family: var(--p-font), system-ui, sans-serif; }
/* Tints of the ink, worked out again inside a panel so they follow the panel's own ink. */
.pub, .pub-event.carded { --p-soft: color-mix(in srgb, var(--p-fg) 64%, transparent); --p-faint: color-mix(in srgb, var(--p-fg) 42%, transparent);
  --p-line: color-mix(in srgb, var(--p-fg) 30%, transparent); --p-divider: color-mix(in srgb, var(--p-fg) 14%, transparent); }
.pub h1, .pub h2 { font-family: var(--p-display), var(--p-font), system-ui, sans-serif; font-weight: 800; letter-spacing: -0.015em; line-height: 1.02; text-wrap: balance; }
.pub h1 { font-size: clamp(40px, 10vw, 60px); margin: 34px 0 0; }
.pub h2 { font-size: clamp(32px, 7.6vw, 42px); margin: 0; }
.pub .muted { color: var(--p-soft); }
.pub a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.pub-label { font: 700 11px/1.45 var(--p-font), system-ui, sans-serif; text-transform: uppercase; letter-spacing: .2em; }
.pub-status { color: var(--p-accent); }
.pub-in { max-width: 600px; margin: 0 auto; padding: 0 24px 64px; text-align: center; }
.pub-event { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0 !important; }

/* Lockup without art: billing line, then the owner's logo, centered at the head of the page. */
.pub-lockup { padding-top: 40px; display: flex; flex-direction: column; align-items: center; }
.pub .host-line { justify-content: center; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.pub .host-line span { opacity: .6; }
.pub .host-line img { height: 28px !important; }
/* Billing line ("<logo> presents"): the host is the smallest line, logo cap height close to the label beside it. */
.pub .host-line.billing { gap: 7px; }
.pub .host-line.billing img { height: 13px !important; }
.pub .host-line.billing span { opacity: 1; font-weight: 700; letter-spacing: .16em; font-size: 11px; }
/* Big logo (owner brand, or an older event's mark): never stretched; tall logos are capped. */
.pub-mark { display: block; width: min(56%, 280px); height: auto; max-height: 180px; object-fit: contain; object-position: center; margin: 22px auto 0; }
.pub-title-art { display: block; width: min(88%, 500px); height: auto; max-height: 300px; object-fit: contain; object-position: center; margin: 36px auto 0; }
.pub .tagline { font-size: 17px; color: var(--p-soft); margin-top: 12px; }

/* Feature image: the column's width, 16:10, on the page ground with no frame. */
.pub-cover { width: 100%; aspect-ratio: 16 / 10; margin-top: 28px; background: transparent center / cover no-repeat; }
@media (min-width: 720px) { .pub-cover { margin-top: 44px; } }

/* When and where, between rules. */
.pub-details { margin: 40px 0 0; padding: 24px 0 26px; border-top: var(--p-hair) solid var(--p-divider); border-bottom: var(--p-hair) solid var(--p-divider); }
.pd-date, .pd-time { font-family: var(--p-display), var(--p-font), system-ui, sans-serif; font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; }
.pd-date { font-size: clamp(31px, 8vw, 42px); }
.pd-time { font-size: clamp(23px, 5.8vw, 30px); margin-top: 4px; }
.pd-where { margin-top: 20px; padding-top: 20px; position: relative; }
.pd-where::before { content: ""; position: absolute; top: 0; left: 50%; width: 44px; margin-left: -22px; border-top: var(--p-hair) solid var(--p-divider); }
.pd-venue { font: 700 12px/1.45 var(--p-font), system-ui, sans-serif; text-transform: uppercase; letter-spacing: .2em; }
.pd-addr { margin-top: 6px; font-size: 15px; }
.pd-note { margin-top: 6px; font-size: 13px; color: var(--p-soft); }
.pub .desc { white-space: pre-wrap; margin-top: 32px; font-size: 16px; line-height: 1.65; text-align: left; }
.pub-note { margin: 28px 0 0; font-size: 14px; color: var(--p-soft); }
.pub-note a { color: var(--p-fg); font-weight: 600; }

/* Blocks without boxes: a status, a heading, a line or two, the actions. */
.pub-block { margin-top: 44px; }
.pub-block > .pub-label + h2 { margin-top: 12px; }
.pub-block p { margin: 12px 0 0; }
.pub-block .btn.block { margin-top: 26px; }
.pub-block .btn-text { margin-top: 14px; }
.pub-fine { font-size: 12px; color: var(--p-faint); margin: 16px 0 0; }
.pub-more { margin: 30px 0 0; font-size: 13px; }
.pub-more a { color: var(--p-soft); }
.pub .foot { margin-top: 56px; font-size: 12px; color: var(--p-faint); text-align: center; }
.pub .foot a { color: var(--p-soft); }

/* Buttons: solid for the one thing to do, words for the rest. */
.pub .btn { border-radius: var(--p-radius-sm); background: transparent; border: var(--p-rule) solid var(--p-fg); color: var(--p-fg);
  font: 700 12px/1.2 var(--p-font), system-ui, sans-serif; text-transform: uppercase; letter-spacing: .18em; min-height: 52px; padding: 0 28px; }
.pub .btn.primary { background: var(--p-accent); color: var(--p-bg); border-color: var(--p-accent); }
.pub .btn.lg { min-height: 56px; padding: 0 36px; font-size: 12.5px; }
.pub .btn:hover { filter: brightness(1.06); }
.pub .btn-text { background: none; border: 0; padding: 8px 2px; cursor: pointer; color: var(--p-fg); font: 600 14px/1.4 var(--p-font), system-ui, sans-serif;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.pub .btn-text:hover { text-decoration-thickness: 2.5px; }
.pub-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 30px; margin-top: 22px; }

/* Form: fields are a label and a rule, no boxes. */
.pub-form { margin-top: 48px; text-align: left; }
.pub-form > * + * { margin-top: 22px; }
.pub-form-head { text-align: center; margin-bottom: 30px; }
.pub-form-head p { margin: 10px auto 0; max-width: 420px; font-size: 15px; }
.pub-form .btn.block { margin-top: 34px; }
.pub-form .pub-fine { text-align: center; }
.pub-form .grid2 { gap: 22px; }
.pub label.field > span, .pub .field-label { display: block; font: 700 10.5px/1.4 var(--p-font), system-ui, sans-serif; text-transform: uppercase; letter-spacing: .2em;
  color: var(--p-soft); margin: 0 0 2px; padding: 0; }
.pub fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.pub fieldset.field > legend { float: left; width: 100%; }
.pub fieldset.field > legend + * { clear: both; }
.pub input:not([type=checkbox]):not([type=radio]), .pub select, .pub textarea { background: transparent; color: var(--p-fg); border: 0;
  border-bottom: var(--p-hair) solid var(--p-line); border-radius: 0; padding: 10px 0 9px; min-height: 46px; font-size: 16px; }
.pub textarea { min-height: 96px; resize: vertical; }
.pub input:focus, .pub select:focus, .pub textarea:focus { border-bottom-color: var(--p-fg); outline: none; }
.pub input::placeholder, .pub textarea::placeholder { color: var(--p-faint); }
.pub input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--p-bg) inset; -webkit-text-fill-color: var(--p-fg); }
.pub select { appearance: none; -webkit-appearance: none; padding-right: 26px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 11px) 52%, calc(100% - 5px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.pub select option { color: #111; }
.pub .check { margin-top: 10px; }
.pub .check input { accent-color: var(--p-accent); }
/* A choice of a few words (plus-ones): the chosen one is underlined. */
.pub .choice { display: flex; flex-wrap: wrap; gap: 4px 26px; padding-top: 4px; }
.pub .pub-block fieldset.choice-field { margin-top: 26px; }
.pub-block .choice { justify-content: center; }
.pub .choice label { position: relative; cursor: pointer; }
.pub .choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pub .choice span { display: inline-block; padding: 8px 0 6px; font-size: 16px; font-weight: 600; color: var(--p-faint); border-bottom: var(--p-rule) solid transparent; }
.pub .choice input:checked + span { color: var(--p-fg); border-bottom-color: var(--p-fg); }
.pub .choice input:focus-visible + span { outline: 2px solid var(--p-fg); outline-offset: 4px; }

/* The event's own colors inside an owner brand that keeps its colors (asset spec §3.4): one panel, no edge. */
.pub-event.carded { background: var(--p-bg); color: var(--p-fg); border-radius: var(--p-radius); padding: 8px 24px 32px; margin-top: 28px; }
.pub-event.carded .pub-title-art, .pub-event.carded h1 { margin-top: 26px; }

/* Splash: the first screen when an event has portal art (asset spec §2.1). Phone art below 720 px. */
.pub-splash { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; justify-content: center;
  background: var(--p-bg) var(--art-d) center / cover no-repeat; }
.pub-splash.compact { min-height: 46vh; min-height: 46svh; }
@media (max-width: 720px) { .pub-splash { background-image: var(--art-p); } }
.pub-splash::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent 35%, var(--scrim-c) 100%); }
.pub-splash[data-text="light"] { --scrim-c: rgba(0,0,0,.45); --art-fg: var(--art-paper, #ffffff); }
.pub-splash[data-text="dark"] { --scrim-c: rgba(255,255,255,.55); --art-fg: var(--art-ink, #000000); }
.pub-splash[data-text="light"][data-scrim="strong"] { --scrim-c: rgba(0,0,0,.72); }
.pub-splash[data-text="dark"][data-scrim="strong"] { --scrim-c: rgba(255,255,255,.8); }
.pub-splash[data-scrim="none"]::before { display: none; }
.pub-splash-in { position: relative; width: 100%; max-width: 620px; padding: 24px 16px max(36px, env(safe-area-inset-bottom)); color: var(--art-fg);
  text-align: center; display: flex; flex-direction: column; align-items: center; }
.pub-splash-in .pub-mark { width: min(50%, 220px); max-height: 120px; margin-top: 14px; }
.pub-splash-in .pub-title-art { width: min(76%, 400px); max-height: 220px; margin: 16px auto 0; }
.pub-splash-title { font-family: var(--p-display), var(--p-font), system-ui, sans-serif; font-weight: 800; font-size: clamp(32px, 7.5vw, 52px);
  line-height: 1.02; letter-spacing: -0.02em; margin: 18px 0 0; }
.pub-splash-tagline { font-size: 16px; margin-top: 10px; opacity: .85; }
.pub-splash-when { font: 700 11px/1.45 var(--p-font), system-ui, sans-serif; text-transform: uppercase; letter-spacing: .2em; margin: 16px 0 20px; }
.pub-splash .btn.primary { min-width: 240px; }

/* Invite, ticket and status pages: the title art a little smaller, so the guest's part comes sooner. */
.pub.is-compact .pub-event > .pub-title-art { width: min(72%, 380px); max-height: 230px; margin-top: 30px; }
/* A quiet entrance: the lockup and the page rise into place once. */
@media (prefers-reduced-motion: no-preference) {
  .pub-splash-in, .pub-lockup, .pub-event { animation: pub-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .pub-event { animation-delay: .06s; }
}
@keyframes pub-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* The ticket: a pass that opens on a hairline; the dashed line is the stub's perforation. */
.pass { margin: 40px auto 0; max-width: 440px; padding: 24px 0 0; border-top: var(--p-hair) solid var(--p-divider); }
.pass + .pub-details { margin-top: 30px; }
.pass-name { margin-top: 12px; overflow-wrap: anywhere; }
.pass-admit { margin-top: 10px; display: flex; align-items: baseline; justify-content: center; gap: 10px; color: var(--p-soft); }
.pass-admit b { font-family: var(--p-display), var(--p-font), system-ui, sans-serif; font-weight: 800; font-size: 24px; line-height: 1; color: var(--p-fg); }
.pass-perf { height: var(--p-hair); margin: 24px 0 26px; background: repeating-linear-gradient(90deg, var(--p-divider) 0 7px, transparent 7px 13px); }
/* The code: drawn on the page in the frame's ink (a light plate on dark grounds), framed by four corner marks, not a box. */
.qr { --c: var(--p-fg); --l: 22px; --w: 1.5px; position: relative; display: inline-block; padding: 14px; line-height: 0; }
.qr::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-repeat: no-repeat;
  background-image: linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c));
  background-size: var(--l) var(--w), var(--w) var(--l), var(--l) var(--w), var(--w) var(--l), var(--l) var(--w), var(--w) var(--l), var(--l) var(--w), var(--w) var(--l);
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%; }
.qr svg { display: block; width: 228px; height: 228px; }
.pass-hint { margin-top: 16px; color: var(--p-soft); }

/* ============ Door ============ */
.door { min-height: 100vh; }
.door-head { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px; }
.door-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.door-counts .c { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.door-counts .c b { display: block; font-size: 22px; line-height: 1.1; }
.door-counts .c span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.door-list { padding: 8px 16px 120px; }
.door-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.door-row .nm { font-weight: 600; font-size: 16px; }
.door-row.in .nm { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.door-actions { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); display: grid; grid-template-columns: 2fr 1fr; gap: 10px; z-index: 30; }
.result { text-align: center; padding: 10px 0; }
.result .big { font-size: 64px; line-height: 1; }
.result.ok { color: var(--ok); } .result.warn { color: var(--warn); } .result.bad { color: var(--bad); }
.result h2 { color: var(--text); font-size: 26px; margin-top: 10px; }
.scanner { position: fixed; inset: 0; background: #000; z-index: 600; display: flex; flex-direction: column; }
.scanner video { flex: 1; width: 100%; object-fit: cover; min-height: 0; }
.scanner .frame { position: absolute; top: 50%; left: 50%; width: 64vw; max-width: 300px; aspect-ratio: 1; transform: translate(-50%, -60%); border: 3px solid var(--accent); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; }
.scanner .bar { padding: 16px; display: flex; justify-content: center; background: #000; }
.stepper { display: inline-flex; align-items: center; gap: 14px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 20px; cursor: pointer; }
.stepper b { font-size: 22px; min-width: 24px; text-align: center; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.copybox { display: flex; gap: 8px; }
.copybox input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.preview-mail { background: #fff; color: #1a1a1a; border-radius: 10px; padding: 16px; white-space: pre-wrap; font-size: 14px; }

/* ============ Branding additions ============ */
.brandmark-product { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.img-field .lbl { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.img-row { display: flex; gap: 12px; align-items: flex-start; }
.img-prev { flex: none; width: 150px; height: 94px; border-radius: 8px; border: 1px dashed var(--line-2); background: var(--panel-2) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--faint); }
.img-prev.logo { width: 110px; height: 70px; background-size: contain; background-color: #0000000a;
  background-image: linear-gradient(45deg, #0000000a 25%, transparent 25%, transparent 75%, #0000000a 75%), linear-gradient(45deg, #0000000a 25%, transparent 25%, transparent 75%, #0000000a 75%);
  background-position: 0 0, 8px 8px; background-size: 16px 16px; }
.img-prev.logo[style*="url"] { background-size: contain; background-position: center; }
.img-prev.header { height: 60px; }
@media (max-width: 520px) { .img-row { flex-direction: column; } .img-prev { width: 100%; } }
.mail-frame { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
/* Honeypot field on the public RSVP form: off-screen for people, still in the form for bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Brand kits on the Team page */
.kit-row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.kit-logo { width: 72px; height: 36px; flex: none; border-radius: 4px; background: var(--panel-2) center / contain no-repeat; }
