/* Doors · FINDBL family styling
   Same bones as findbl: near-black, paper text, Comfortaa lowercase display, Work Sans body,
   JetBrains Mono labels. Doors swaps the findbl lime for its own door blue, and keeps the lime
   for the one moment that matters at a door: someone is in. */
:root {
  --ink: #0D0D0D;
  --ink-2: #141414;
  --ink-3: #1B1B1B;
  --ink-4: #242424;
  --paper: #F2F2EF;
  --paper-dim: rgba(242, 242, 239, 0.68);
  --dust: #8C8C86;
  --line: rgba(242, 242, 239, 0.12);
  --line-2: rgba(242, 242, 239, 0.22);
  --door: #5FB0FF;
  --door-deep: #2F6FED;
  --door-ink: #06192E;
  --in: #C6F135;
  --in-ink: #172000;
  --warn: #F5D547;
  --bad: #E6656F;
  --radius: 14px;
  --radius-lg: 22px;
  --display: 'Comfortaa', ui-rounded, system-ui, sans-serif;
  --body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden;
}
body.locked { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img, svg { display: block; }
::selection { background: var(--door); color: var(--door-ink); }
:focus-visible { outline: 2px solid var(--door); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; text-transform: lowercase; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
.kicker, .mono, .section-label { font-family: var(--mono); }
.kicker { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--door); margin-bottom: 10px; font-weight: 500; }
.small { font-size: 12.5px; }
.mono.small { color: var(--dust); letter-spacing: 0.02em; }
.muted { color: var(--paper-dim); }
.sub { color: var(--paper-dim); margin-top: 8px; }
.center { text-align: center; }
.push { margin-left: auto; }
.i { width: 18px; height: 18px; flex: none; }

/* --------------------------------------------------------------- logo */
.logo { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.logo .word { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.03em; color: var(--paper); }
.logo .oo { color: var(--door); }
.logo .by { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dust); }
.logo.sm .word { font-size: 21px; }
.logo.sm .by { font-size: 9.5px; }

/* ------------------------------------------------------------ buttons */
.btn {
  --b: var(--door); --t: var(--door-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--b);
  background: var(--b); color: var(--t); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.btn:hover { background: #82C2FF; border-color: #82C2FF; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.sm { min-height: 38px; padding: 0 15px; font-size: 14px; }
.btn.xs { min-height: 34px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn.xs .i { width: 15px; height: 15px; }
.btn.lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--paper); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--paper-dim); background: rgba(242, 242, 239, 0.05); }
.btn.in { --b: var(--in); --t: var(--in-ink); }
.btn.in:hover { background: #D4F75E; border-color: #D4F75E; }
.btn.danger-ghost { background: transparent; color: var(--bad); border-color: rgba(230, 101, 111, 0.4); }
.btn.danger-ghost:hover { background: rgba(230, 101, 111, 0.1); border-color: var(--bad); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--paper-dim); }
.icon-btn:hover { background: var(--ink-4); color: var(--paper); }
.linkish { color: var(--door); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(95, 176, 255, 0.4); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.linkish:hover { text-decoration-color: var(--door); }

/* ---------------------------------------------------------------- chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; background: var(--ink-4); color: var(--paper-dim); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; text-transform: none; }
.chip.open { background: rgba(95, 176, 255, 0.14); color: var(--door); }
.chip.full { background: rgba(245, 213, 71, 0.14); color: var(--warn); }
.chip.closed { background: var(--ink-4); color: var(--dust); }
.chip.in, .chip.live { background: rgba(198, 241, 53, 0.14); color: var(--in); }
.live i, .chip.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--in); display: inline-block; animation: pulse 1.8s ease-in-out infinite; }
.live { display: inline-flex; align-items: center; gap: 6px; }
@keyframes pulse { 50% { opacity: .35; } }

/* ------------------------------------------------------------------ bars */
.bar { position: relative; height: 6px; border-radius: 999px; background: var(--ink-4); overflow: hidden; margin: 12px 0 8px; }
.bar span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: rgba(95, 176, 255, 0.55); transition: width .4s ease; }
.bar span.in { background: var(--in); }
.bar.big { height: 10px; margin: 0 0 18px; }

/* ----------------------------------------------------------- mode banner */
.mode-banner { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 16px; font-family: var(--mono); font-size: 11.5px; color: var(--warn); background: rgba(245, 213, 71, 0.07); border-bottom: 1px solid rgba(245, 213, 71, 0.15); text-align: center; }
.mode-banner .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); flex: none; }

/* ------------------------------------------------------------ app shell */
.topbar { display: flex; align-items: center; gap: 28px; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(13, 13, 13, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { text-decoration: none; }
.topnav { display: flex; gap: 4px; }
.topnav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--paper-dim); font-weight: 500; font-size: 15px; }
.topnav a:hover { color: var(--paper); }
.topnav a.on { background: var(--ink-3); color: var(--paper); }
.who { margin-left: auto; display: flex; align-items: center; gap: 14px; min-width: 0; }
.who-name { font-family: var(--mono); font-size: 12px; color: var(--dust); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.page { width: 100%; max-width: 1120px; margin: 0 auto; padding: 34px clamp(16px, 4vw, 40px) 80px; min-height: calc(100vh - 140px); }
.app-foot { display: flex; justify-content: space-between; padding: 22px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--dust); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--paper-dim); text-decoration: none; font-size: 14px; margin-bottom: 18px; }
.back:hover { color: var(--paper); }
.back .i { width: 16px; height: 16px; }
.section-label { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dust); margin: 34px 0 14px; font-weight: 500; }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 30px); }
.card.narrow { max-width: 720px; }
.card h2 { margin-bottom: 12px; }
.center-page { min-height: 70vh; display: grid; place-items: center; padding: 24px 16px; }
.empty { text-align: center; max-width: 520px; margin: 0 auto; display: grid; gap: 12px; justify-items: center; }
.empty.card { max-width: none; padding: 48px 24px; }
.empty p { color: var(--paper-dim); }
.empty.slim { padding: 40px 16px; }
.empty .cta-row { justify-content: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ink-4); border-top-color: var(--door); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------- forms */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 7px; font-size: 14px; font-weight: 500; color: var(--paper-dim); }
.form input:not([type=checkbox]), .form select, .form textarea, .toolbar select, .link-row input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 400; transition: border-color .15s ease;
}
.form textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus, .toolbar select:focus, .search:focus-within { outline: none; border-color: var(--door); }
.form input::placeholder, .form textarea::placeholder { color: rgba(242, 242, 239, 0.32); }
input[type=date], input[type=time], input[type=datetime-local] { color-scheme: dark; }
.hint { font-size: 12.5px; color: var(--dust); font-weight: 400; }
.grid2, .grid3 { display: grid; gap: 16px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form .check { display: flex; align-items: flex-start; gap: 10px; color: var(--paper-dim); font-weight: 400; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--door); flex: none; margin-top: 1px; }
.form-error { color: var(--bad); font-size: 14px; background: rgba(230, 101, 111, 0.08); border: 1px solid rgba(230, 101, 111, 0.25); padding: 10px 14px; border-radius: 10px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.alt { font-size: 14px; color: var(--paper-dim); text-align: center; }
.alt a { color: var(--door); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------- dashboard */
.nights { display: grid; gap: 12px; }
.night { display: grid; grid-template-columns: 76px minmax(0, 1fr) 32px; gap: 20px; align-items: center; padding: 18px 22px; border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--line); text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.night:hover { border-color: var(--line-2); background: var(--ink-3); }
.night.is-live { border-color: rgba(198, 241, 53, 0.35); }
.night-date { display: grid; justify-items: center; padding: 10px 0; border-radius: 14px; background: var(--ink); border: 1px solid var(--line); line-height: 1; }
.night-date .d { font-family: var(--display); font-weight: 700; font-size: 30px; }
.night-date .m { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--door); margin-top: 6px; }
.night-date .w { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--dust); margin-top: 4px; }
.night-main h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.night-main > p:first-of-type { color: var(--paper-dim); font-size: 14.5px; margin-top: 4px; }
.night-main .bar { max-width: 420px; }
.night .go { color: var(--dust); transition: transform .18s ease, color .18s ease; }
.night:hover .go { color: var(--door); transform: translateX(3px); }
.nights.past .night { opacity: .78; }

/* ------------------------------------------------------------ event page */
.event-head { align-items: flex-end; }
.event-head .kicker { color: var(--door); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 2px; min-width: 0; }
.stat .k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dust); }
.stat strong { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.stat .s { font-size: 13px; color: var(--paper-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.in strong { color: var(--in); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--paper-dim); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--paper); }
.tabs button.on { color: var(--paper); border-bottom-color: var(--door); }
.tabs .i { width: 17px; height: 17px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar select { width: auto; min-height: 42px; padding: 8px 12px; font-size: 14px; }
.toolbar .muted { font-size: 14px; max-width: 560px; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink); color: var(--dust); flex: 1 1 240px; max-width: 360px; transition: border-color .15s ease; }
.search input { border: 0; background: none; outline: none; min-width: 0; flex: 1; font-size: 15px; min-height: 40px; color: var(--paper); }
.search input::-webkit-search-cancel-button { filter: invert(.7); }

.rows { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); }
.rows-head, .g-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) 64px minmax(0, 1.1fr) auto; gap: 16px; align-items: center; padding: 12px 18px; }
.rows-head { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dust); border-bottom: 1px solid var(--line); padding-top: 14px; }
.g-row { border-bottom: 1px solid var(--line); min-height: 64px; }
.g-row:last-child { border-bottom: 0; }
.g-row:hover { background: var(--ink-3); }
.g-name { text-align: left; display: grid; gap: 2px; min-width: 0; padding: 4px 0; }
.g-name strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-name span { font-size: 13px; color: var(--dust); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-name:hover strong { color: var(--door); }
.g-party { font-size: 13px; color: var(--paper-dim); }
.g-status { font-size: 14px; color: var(--dust); }
.g-row.in .g-status b { color: var(--in); font-weight: 600; }
.g-row.part .g-status b { color: var(--warn); font-weight: 600; }
.g-act { display: flex; gap: 6px; justify-content: flex-end; }
.g-act .btn.ghost.xs { padding: 0 10px; }

.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.list-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.list-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.list-card header > div { min-width: 0; }
.list-card .sub { margin-top: 4px; font-size: 13.5px; }
.list-card.closed { background: var(--ink); }
.list-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 14px; }
.list-nums dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dust); }
.list-nums dd { font-family: var(--display); font-weight: 700; font-size: 22px; }
.list-nums small { font-size: 13px; color: var(--dust); font-weight: 600; }
.link-row { display: flex; gap: 6px; align-items: center; }
.link-row input { min-height: 38px; font-family: var(--mono); font-size: 12px; color: var(--paper-dim); padding: 6px 12px; min-width: 0; flex: 1; }
.list-card footer { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.door-setup { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.door-setup .card { display: grid; gap: 14px; }
.door-setup h2 { margin-bottom: 0; }
.pin-show { display: flex; align-items: center; gap: 16px; }
.pin-show strong { display: flex; gap: 6px; }
.pin-show i { font-style: normal; font-family: var(--mono); font-size: 28px; font-weight: 600; width: 46px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); border: 1px solid var(--line-2); color: var(--door); }
.qr { background: #fff; border-radius: 14px; padding: 8px; width: 100%; max-width: 220px; aspect-ratio: 1; }
.qr svg { width: 100%; height: 100%; }
.qr-card { justify-items: center; text-align: center; }
.pass-mini { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--ink); border: 1px solid var(--line); }
.pass-mini .qr { width: 92px; padding: 4px; border-radius: 10px; flex: none; }
.pass-mini > div:last-child { display: grid; gap: 2px; font-size: 14px; min-width: 0; }
.pass-mini strong { font-size: 17px; }

.settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }
.settings .card { display: grid; gap: 14px; }
.settings h2 { margin: 0; }

/* ----------------------------------------------------------------- modal */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .18s ease; overflow-y: auto; }
.modal { width: 100%; max-width: 560px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 22px 24px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); animation: rise .22s cubic-bezier(.2, .8, .2, 1); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.modal-head h2 { font-size: 24px; overflow-wrap: anywhere; text-transform: none; }
.modal-body { display: grid; gap: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.sheet .modal-head h2 { font-size: 28px; }

/* ----------------------------------------------------------------- toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 200; background: var(--paper); color: var(--ink); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.good { background: var(--in); color: var(--in-ink); }
.toast.bad { background: var(--bad); color: #2A0509; }

/* ================================================================ LANDING */
.land-nav { display: flex; align-items: center; gap: 28px; padding: 18px clamp(16px, 5vw, 56px); max-width: 1280px; margin: 0 auto; }
.land-nav a:first-child { text-decoration: none; }
.land-nav nav { display: flex; gap: 26px; margin-left: auto; }
.land-nav nav a { text-decoration: none; color: var(--paper-dim); font-size: 15px; }
.land-nav nav a:hover { color: var(--paper); }
.is-landing main > section { max-width: 1280px; margin: 0 auto; padding-left: clamp(16px, 5vw, 56px); padding-right: clamp(16px, 5vw, 56px); }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(40px, 7vw, 90px); padding-bottom: clamp(60px, 8vw, 110px); }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 0.98; letter-spacing: -0.04em; }
.hero h1 em { font-style: normal; color: var(--door); }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--paper-dim); max-width: 540px; margin: 26px 0 32px; }
.fine { font-family: var(--mono); font-size: 12px; color: var(--dust); margin-top: 18px; }
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.phone { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 36px; padding: 22px 18px 18px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 8px var(--ink-3); }
.ph-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--dust); }
.ph-top .live { color: var(--in); }
.ph-title { font-family: var(--display); font-weight: 700; font-size: 22px; margin-top: 12px; letter-spacing: -0.02em; }
.ph-count { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.ph-count strong { font-family: var(--display); font-size: 46px; color: var(--in); letter-spacing: -0.04em; line-height: 1; }
.ph-count span { color: var(--dust); font-size: 13px; }
.phone .bar span { background: var(--in); }
.ph-search { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 12px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--dust); font-size: 14px; margin: 14px 0 10px; }
.ph-search b { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; background: var(--door); color: var(--door-ink); display: grid; place-items: center; }
.ph-search b .i { width: 17px; height: 17px; }
.ph-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line); margin-top: 6px; }
.ph-row strong { display: block; font-size: 14px; font-weight: 600; }
.ph-row span { font-size: 11.5px; color: var(--dust); }
.ph-row em { font-style: normal; font-family: var(--mono); font-size: 11px; padding: 5px 9px; border-radius: 999px; background: var(--in); color: var(--in-ink); white-space: nowrap; }
.ph-row.in em { background: rgba(198, 241, 53, 0.14); color: var(--in); }
.ph-row.part em { background: rgba(245, 213, 71, 0.14); color: var(--warn); }
.pass-float { position: absolute; left: -60px; bottom: -36px; display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); transform: rotate(-4deg); }
.pass-float .qr { width: 74px; padding: 0; border-radius: 8px; }
.pass-float > div:last-child { display: grid; gap: 2px; }
.pass-float .mono { font-size: 9.5px; letter-spacing: .1em; color: #5c5c58; }
.pass-float strong { font-family: var(--display); font-size: 17px; }
.pass-float span:last-child { font-size: 12px; color: #4c4c48; }

.how { padding-top: 70px; padding-bottom: 70px; border-top: 1px solid var(--line); }
.how h2, .pricing h2, .faq h2 { font-size: clamp(30px, 4.4vw, 54px); letter-spacing: -0.035em; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.steps li { padding: 26px 24px 8px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.steps li:last-child { border-right: 0; margin-right: 0; }
.steps .n { font-family: var(--mono); font-size: 12px; color: var(--door); }
.steps h3 { margin: 16px 0 10px; font-size: 21px; }
.steps p { color: var(--paper-dim); font-size: 15px; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0 !important; max-width: none !important; }
.feat { background: var(--ink); padding: 36px clamp(16px, 4vw, 48px); }
.feat .i { width: 26px; height: 26px; color: var(--door); }
.feat h3 { margin: 22px 0 8px; }
.feat p { color: var(--paper-dim); font-size: 15px; max-width: 360px; }
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 90px); align-items: center; padding-top: 100px; padding-bottom: 100px; }
.price-copy p:last-child { color: var(--paper-dim); font-size: 17px; margin-top: 22px; max-width: 500px; }
.price-card { background: var(--paper); color: var(--ink); border-radius: 28px; padding: 34px; }
.price { font-family: var(--display); font-weight: 700; font-size: 84px; letter-spacing: -0.05em; line-height: 1; display: flex; align-items: baseline; }
.price .cur { font-size: 40px; margin-right: 4px; }
.price .per { font-family: var(--body); font-size: 17px; font-weight: 500; letter-spacing: 0; color: #4c4c48; margin-left: 10px; }
.price-card .mono.small { color: #5c5c58; margin-top: 8px; }
.price-card ul { list-style: none; display: grid; gap: 12px; margin: 26px 0 30px; }
.price-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.price-card li .i { color: var(--door-deep); margin-top: 2px; }
.price-card .btn { --b: var(--ink); --t: var(--paper); }
.price-card .btn:hover { background: #262626; border-color: #262626; }
.faq { padding-bottom: 100px; max-width: 900px !important; }
.faq h2 { margin-bottom: 26px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 22px; color: var(--door); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--paper-dim); padding: 0 40px 24px 0; max-width: 700px; }
.land-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 30px clamp(16px, 5vw, 56px); border-top: 1px solid var(--line); color: var(--dust); font-size: 14px; }
.land-foot nav { display: flex; gap: 20px; margin-left: auto; }
.land-foot nav a { text-decoration: none; }
.land-foot nav a:hover { color: var(--paper); }

/* =================================================================== AUTH */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-side { background: var(--door); color: var(--door-ink); padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-side a { text-decoration: none; }
.auth-side .logo .word, .auth-side .logo .oo { color: var(--door-ink); }
.auth-side .logo .by { color: rgba(6, 25, 46, 0.6); }
.auth-side h2 { font-size: clamp(36px, 4.4vw, 62px); line-height: .98; letter-spacing: -0.04em; }
.auth-side p { margin-top: 18px; font-size: 17px; max-width: 400px; color: rgba(6, 25, 46, 0.78); }
.auth-side .mono.small { color: rgba(6, 25, 46, 0.6); letter-spacing: .1em; }
.auth-main { padding: clamp(28px, 6vw, 80px) clamp(16px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; max-width: 560px; width: 100%; margin: 0 auto; }
.auth-main h1 { font-size: clamp(34px, 4vw, 48px); }
.auth-main .sub { margin-bottom: 30px; }
.auth-logo { display: none; text-decoration: none; margin-bottom: 36px; }

/* ================================================================= PUBLIC */
.public { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 18px; padding: 32px 16px; }
.public-card { width: 100%; max-width: 480px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 6vw, 38px); display: grid; gap: 14px; }
.public-card h1 { font-size: clamp(34px, 8vw, 46px); overflow-wrap: anywhere; }
.public-card .kicker { margin-bottom: 0; }
.when { color: var(--paper-dim); font-size: 15.5px; }
.list-tag { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px; border-radius: 999px; background: rgba(95, 176, 255, 0.12); color: var(--door); font-size: 13.5px; font-weight: 500; }
.list-tag .i { width: 15px; height: 15px; }
.spots { font-family: var(--mono); font-size: 12.5px; color: var(--warn); }
.public .form { margin-top: 8px; }
.notice { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--ink-3); border: 1px solid var(--line-2); color: var(--paper-dim); }
.notice.good { background: rgba(198, 241, 53, 0.1); border-color: rgba(198, 241, 53, 0.3); color: var(--in); font-weight: 600; }
.notice.warn { background: rgba(245, 213, 71, 0.1); border-color: rgba(245, 213, 71, 0.3); color: var(--warn); }
.notice.bad { background: rgba(230, 101, 111, 0.16); border-color: rgba(230, 101, 111, 0.45); color: var(--bad); font-weight: 600; }
.scan-alarm { position: fixed; inset: 0; z-index: 300; pointer-events: none; background: var(--bad); opacity: 0; animation: alarm .9s ease-out; }
@keyframes alarm { 0% { opacity: .55; } 18% { opacity: .2; } 34% { opacity: .5; } 100% { opacity: 0; } }
.public-foot { font-family: var(--mono); font-size: 11.5px; color: var(--dust); text-align: center; }
.public-foot a { color: var(--door); }
.stepper-field { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; font-weight: 500; color: var(--paper-dim); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.stepper button { width: 46px; height: 46px; display: grid; place-items: center; color: var(--paper); }
.stepper button:hover { background: var(--ink-4); }
.stepper output { min-width: 34px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 20px; }
.stepper-field.big .stepper button { width: 58px; height: 58px; }
.stepper-field.big output { font-size: 28px; min-width: 46px; }
.pass { display: grid; justify-items: center; gap: 6px; padding: 26px 20px; border-radius: 22px; background: var(--paper); color: var(--ink); margin: 6px 0; }
.qr.big { max-width: 260px; padding: 0; margin-bottom: 10px; }
.pass-name { font-family: var(--display); font-size: 26px; text-align: center; overflow-wrap: anywhere; }
.pass-party { color: #4c4c48; font-size: 14.5px; }
.pass-code { font-family: var(--mono); font-size: 15px; letter-spacing: .1em; padding: 6px 12px; border-radius: 8px; background: #E4E4DF; margin-top: 6px; }
.pass .chip.in { background: var(--ink); margin-top: 8px; }

/* =================================================================== DOOR */
.door-pin { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 30px; padding: 32px 16px; text-align: center; }
.door-pin > div { display: grid; justify-items: center; gap: 10px; }
.door-pin .logo { margin-bottom: 18px; }
.door-pin form { width: 100%; max-width: 320px; display: grid; gap: 14px; }
.door-pin input { width: 100%; text-align: center; font-family: var(--mono); font-size: 40px; letter-spacing: .5em; padding: 14px 0 14px .5em; border-radius: 18px; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--paper); }
.door-pin input:focus { outline: none; border-color: var(--door); }
.door { max-width: 760px; margin: 0 auto; padding: 18px 16px calc(40px + env(safe-area-inset-bottom)); }
.door-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.door-top h1 { font-size: clamp(26px, 6vw, 38px); }
.door-top .kicker { margin-bottom: 6px; }
.door-top .live { color: var(--in); }
.door-top .muted { font-size: 14px; margin-top: 4px; }
.door-count { text-align: right; flex: none; }
.door-count strong { display: block; font-family: var(--display); font-size: clamp(44px, 11vw, 64px); line-height: 1; color: var(--in); letter-spacing: -0.04em; }
.door-count span { font-family: var(--mono); font-size: 11.5px; color: var(--dust); line-height: 1.4; display: block; margin-top: 4px; }
.door-tools { display: flex; gap: 10px; position: sticky; top: 0; z-index: 10; background: var(--ink); padding: 8px 0; }
.search.big { max-width: none; min-height: 56px; border-radius: 16px; flex: 1; }
.search.big input { font-size: 18px; min-height: 54px; }
.scan-btn { min-height: 56px; border-radius: 16px; padding: 0 20px; }
.scan-btn .i { width: 22px; height: 22px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); margin: 6px 0 14px; }
.seg button { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--paper-dim); }
.seg button.on { background: var(--ink-4); color: var(--paper); }
.door-rows { display: grid; gap: 8px; }
.d-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 14px 14px 14px 18px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); min-height: 68px; transition: background .15s ease, border-color .15s ease; }
.d-row:hover { border-color: var(--line-2); background: var(--ink-3); }
.d-main { display: grid; gap: 2px; min-width: 0; }
.d-main strong { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-main span { font-size: 13px; color: var(--dust); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-main em { font-style: normal; color: var(--warn); }
.d-party { font-size: 13px; color: var(--paper-dim); }
.d-state { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; background: var(--in); color: var(--in-ink); white-space: nowrap; }
.d-state .i { width: 16px; height: 16px; }
.d-row.in { background: var(--ink); }
.d-row.in .d-main strong { color: var(--paper-dim); }
.d-row.in .d-state { background: rgba(198, 241, 53, 0.12); color: var(--in); font-weight: 500; }
.d-row.part .d-state { background: rgba(245, 213, 71, 0.14); color: var(--warn); }
.door-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.door-note { padding: 12px 14px; border-radius: 12px; background: rgba(245, 213, 71, 0.08); color: var(--warn); font-weight: 500; }
.sheet-actions { display: grid; gap: 10px; margin-top: 8px; }
.sheet-actions .btn.lg { min-height: 60px; font-size: 18px; }

.scanner { position: fixed; inset: 0; z-index: 150; background: #000; display: grid; grid-template-rows: 1fr auto; }
.scanner video { width: 100%; height: 100%; object-fit: cover; grid-row: 1 / 3; grid-column: 1; }
.scanner .frame { grid-row: 1; grid-column: 1; align-self: center; justify-self: center; width: min(68vw, 300px); aspect-ratio: 1; border-radius: 28px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.45); border: 3px solid var(--door); pointer-events: none; }
.scan-ui { grid-row: 2; grid-column: 1; position: relative; display: grid; gap: 12px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); background: rgba(13, 13, 13, 0.92); }
#scanMsg { text-align: center; font-weight: 600; padding: 10px; border-radius: 12px; background: var(--ink-3); }
#scanMsg.bad { background: rgba(230, 101, 111, 0.18); color: var(--bad); }
#scanMsg.warn { background: rgba(245, 213, 71, 0.12); color: var(--warn); }
.code-form { display: flex; gap: 8px; }
.code-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink); font-family: var(--mono); font-size: 15px; text-transform: uppercase; }
.code-form input::placeholder { text-transform: none; color: var(--dust); }

/* ============================================================= RESPONSIVE */
/* ---------------------------------------------------------- list colours
   One colour per list (stored by name, see LIST_COLORS in store.js). Lime and yellow stay out:
   at the door they mean "inside" and "partly inside". */
.lc-blue { --lc: #5FB0FF; } .lc-violet { --lc: #A78BFA; } .lc-pink { --lc: #FF7EB6; } .lc-orange { --lc: #FF9A57; }
.lc-gold { --lc: #E2B54A; } .lc-teal { --lc: #3FD0C0; } .lc-white { --lc: #F2F2EF; } .lc-grey { --lc: #9A9A93; }
.chip.lc { background: color-mix(in srgb, var(--lc) 14%, transparent); color: var(--lc); }
.chip.lc i { width: 7px; height: 7px; border-radius: 50%; background: var(--lc); flex: none; }
.list-card { border-top: 3px solid var(--lc, var(--line)); }
.list-card h3 { display: flex; align-items: center; gap: 10px; }
.lc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lc); flex: none; }
.d-row { box-shadow: inset 4px 0 0 var(--lc, transparent); }
.d-main .ln { font-weight: 500; color: var(--lc, var(--dust)); }
.d-row.in .d-main .ln { opacity: .7; }
.swatches { border: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatches legend { font-weight: 500; margin-bottom: 8px; width: 100%; }
.swatches legend .hint { font-weight: 400; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch i { display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--lc); border: 3px solid var(--ink-2); box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow .15s ease, transform .15s ease; }
.swatch input:checked + i { box-shadow: 0 0 0 2px var(--paper); transform: scale(1.06); }
.swatch input:focus-visible + i { box-shadow: 0 0 0 2px var(--door); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------- live pill */
.sync-pill { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; min-height: 34px; border-radius: 999px; font-family: var(--mono); font-size: 12px; background: rgba(198, 241, 53, 0.1); color: var(--in); }
.sync-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--in); animation: pulse 1.8s ease-in-out infinite; }
.sync-pill[hidden] { display: none; }

/* ----------------------------------------------------------- bulk select */
.rows.selecting .rows-head, .rows.selecting .g-row { grid-template-columns: 28px minmax(0, 2.2fr) minmax(0, 1.2fr) 64px minmax(0, 1.1fr) auto; }
.g-sel { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.g-sel input { width: 20px; height: 20px; accent-color: var(--door); cursor: pointer; }
.g-row.picked { background: rgba(95, 176, 255, 0.08); }
.bulk-bar { position: sticky; bottom: 14px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--ink-3); border: 1px solid var(--line-2); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); }
.bulk-bar[hidden] { display: none; }
.bulk-bar strong { font-size: 14px; font-weight: 600; margin-right: 4px; }
.bulk-bar select { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink); color: var(--paper); }
.bulk-bar .push { margin-left: auto; }
.btn[aria-pressed="true"] { border-color: var(--door); color: var(--door); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin-bottom: 30px; }
  .pass-float { left: -10px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2) { border-right: 0; margin-right: 0; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .door-setup { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-logo { display: block; }
  .land-nav nav { display: none; }
  .land-nav .btn { margin-left: auto; }
  .rows-head { display: none; }
  .g-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name act" "list act" "status act"; gap: 4px 12px; padding: 12px 14px; }
  .g-name { grid-area: name; }
  .g-list { grid-area: list; }
  .g-party { display: none; }
  .g-status { grid-area: status; font-size: 13px; }
  .g-act { grid-area: act; flex-direction: column-reverse; }
  .rows.selecting .g-row { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "sel name act" "sel list act" "sel status act"; }
  .rows.selecting .g-sel { grid-area: sel; }
  .rows.selecting .rows-head { display: flex; gap: 12px; padding: 12px 14px; }
  .rows.selecting .rows-head span { display: none; }
  .rows.selecting .rows-head::after { content: "Select all shown"; text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 13px; }
  .bulk-bar { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .bulk-bar strong { width: 100%; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 label:first-child { grid-column: 1 / -1; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
  .toolbar select { flex: 1; }
  .topbar { gap: 14px; }
  .who-name { display: none; }
  .night { grid-template-columns: 60px minmax(0, 1fr); padding: 16px; gap: 14px; }
  .night .go { display: none; }
  .night-date .d { font-size: 24px; }
  .steps, .feats { grid-template-columns: 1fr; }
  .steps li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .steps li:last-child { border-bottom: 0; }
  .land-foot nav { margin-left: 0; }
  .modal-wrap.sheet { place-items: end stretch; padding: 0; }
  .modal-wrap.sheet .modal { max-width: none; border-radius: 26px 26px 0 0; padding-bottom: calc(26px + env(safe-area-inset-bottom)); animation: up .26s cubic-bezier(.2, .8, .2, 1); }
  .page-head .btn { width: auto; }
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (max-width: 460px) {
  .topbar { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .topbar .logo .by { display: none; }
  .topnav a { padding: 8px 10px; font-size: 14px; }
  .who .btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
  .grid2 { grid-template-columns: 1fr; }
  .stat strong { font-size: 28px; }
  .stat { padding: 14px; }
  .pass-float { position: relative; left: 0; bottom: 0; margin: -28px auto 0; width: max-content; max-width: 100%; }
  .price { font-size: 68px; }
  .price-card { padding: 26px 22px; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; padding: 0 10px; }
  .scan-btn span { display: none; }
  .scan-btn { padding: 0 16px; }
  .d-party { display: none; }
  .door-top { flex-direction: column; gap: 8px; }
  .door-count { text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .door-count span br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
