/* WeAreLive — one stylesheet for the public site, event pages and the organiser editor.
   Light tokens on :root, dark via prefers-color-scheme or [data-theme=dark]. Event layouts use container
   queries on .canvas so the editor preview (canvas beside the sidebar) lays out exactly like the real page. */

:root {
  --accent: #3d7cff; --accent-ink: #fff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Display", "Inter", "Segoe UI Variable Display", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-sm: 10px; --r: 14px; --r-lg: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --live: #ff3b30; --ok: #30a46c; --warn: #e79d13; --danger: #e5484d; --replay: #7c5cff;

  --bg: #f6f6f4; --bg-elev: #ffffff; --surface: #ffffff; --surface-2: #f2f2ef; --surface-3: #e8e8e4;
  --ink: #0d0f12; --ink-2: #3a3f47; --muted: #6a707a; --faint: #9ba1a9;
  --line: rgba(13, 15, 18, .08); --line-2: rgba(13, 15, 18, .14); --line-3: rgba(13, 15, 18, .24);
  --field: #ffffff;
  --shadow-sm: 0 1px 2px rgba(13, 15, 18, .05);
  --shadow: 0 1px 2px rgba(13, 15, 18, .04), 0 10px 28px -10px rgba(13, 15, 18, .16);
  --shadow-lg: 0 30px 70px -24px rgba(13, 15, 18, .3);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 45%, transparent);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0b0d; --bg-elev: #101215; --surface: #15171b; --surface-2: #1c1f24; --surface-3: #262a30;
    --ink: #f3f4f6; --ink-2: #c7cbd1; --muted: #8b929c; --faint: #5d646e;
    --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .12); --line-3: rgba(255, 255, 255, .22);
    --field: #0f1114;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 14px 34px -12px rgba(0, 0, 0, .7);
    --shadow-lg: 0 34px 90px -24px rgba(0, 0, 0, .85);
    --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0b0d; --bg-elev: #101215; --surface: #15171b; --surface-2: #1c1f24; --surface-3: #262a30;
  --ink: #f3f4f6; --ink-2: #c7cbd1; --muted: #8b929c; --faint: #5d646e;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .12); --line-3: rgba(255, 255, 255, .22);
  --field: #0f1114;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 14px 34px -12px rgba(0, 0, 0, .7);
  --shadow-lg: 0 34px 90px -24px rgba(0, 0, 0, .85);
  --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); letter-spacing: -.003em }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.022em; line-height: 1.15; margin: 0; font-weight: 650 }
p { margin: 0 }
a { color: inherit }
img { max-width: 100%; display: block }
code { font-family: var(--mono) }
.i { flex: none; display: inline-block; vertical-align: middle }
[hidden] { display: none !important }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 999px; text-decoration: none }
.skip:focus { left: 8px }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
::selection { background: var(--accent-soft) }
button, input, select, textarea { font: inherit; color: inherit }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 40px; padding: 0 1.05rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--font); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .1s, filter .15s }
.btn:hover { border-color: var(--line-3); background: var(--surface-2) }
.btn:active { transform: translateY(1px) }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 20px -8px color-mix(in srgb, var(--accent) 80%, transparent) }
.btn.primary:hover { filter: brightness(1.08) }
.btn.ghost { background: transparent }
.btn.ghost:hover { background: var(--surface-2) }
.btn.sm { height: 34px; padding: 0 .85rem; font-size: 13px }
.btn.lg { height: 50px; padding: 0 1.5rem; font-size: 15.5px }
.btn.wide { width: 100% }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: transparent }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent) }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; transition: background .15s, color .15s }
.icon-btn:hover { background: var(--surface-2); color: var(--ink) }
.icon-btn.sm { width: 30px; height: 30px }
.icon-btn.sm .i { width: 16px; height: 16px }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer }
button.link { background: none; border: 0; padding: 8px 12px; color: var(--ink-2); font-weight: 550; font-size: 14px; cursor: pointer; border-radius: 999px }
button.link:hover { background: var(--surface-2) }

/* theme toggle: sun in dark mode (switch to light), moon in light mode */
[data-theme-toggle] .i:nth-of-type(1) { display: none }
:root[data-theme="dark"] [data-theme-toggle] .i:nth-of-type(1) { display: inline-block }
:root[data-theme="dark"] [data-theme-toggle] .i:nth-of-type(2) { display: none }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-theme-toggle] .i:nth-of-type(1) { display: inline-block }
  :root:not([data-theme="light"]) [data-theme-toggle] .i:nth-of-type(2) { display: none }
}

input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea {
  width: 100%; min-height: 40px; padding: .6rem .75rem; font-size: 14px; color: var(--ink); background: var(--field);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); outline: none; transition: border-color .15s, box-shadow .15s
}
input:not([type=checkbox]):not([type=radio]):not([type=color]):hover, select:hover, textarea:hover { border-color: var(--line-3) }
input:focus, select:focus, textarea:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft) }
textarea { resize: vertical; line-height: 1.5 }
select { appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238b929c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center }
::placeholder { color: var(--faint) }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0 }
input[type=color] { width: 44px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer }

.fld { display: grid; gap: 6px; min-width: 0 }
.fld > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2) }
.fld small, .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; line-height: 1.45 }
.fld > span small { margin-left: 4px }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.check { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-2) }
.stack { display: grid; gap: 14px }
.form-err { color: var(--danger); font-size: 13px; font-weight: 550 }
.err { color: var(--danger); font-size: 13px }
.empty { color: var(--muted); font-size: 14px }
.notice { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; padding: 8px 12px; border-radius: 10px; font-size: 13px; color: var(--ink-2); background: color-mix(in srgb, var(--warn) 14%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent) }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); font: 650 11px/1 var(--font) }
.count:empty { display: none }
.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); font: 650 10.5px/1 var(--font); letter-spacing: .06em; text-transform: uppercase }
.pill-published, .pill.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok) }
.pill-draft, .pill.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn) }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--muted) }
.chip.on { border-color: var(--accent); color: var(--ink); background: var(--accent-soft) }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line) }
.seg button, .seg label > span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: 600 13px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s }
.seg button:hover, .seg label > span:hover { color: var(--ink) }
.seg button[aria-pressed="true"], .seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line) }
.seg label { position: relative; flex: 1; display: flex }
.seg input { position: absolute; opacity: 0; pointer-events: none }
.seg input:focus-visible + span { outline: 2px solid var(--accent) }
.seg-radio { display: flex; width: 100% }
.seg-radio label > span { width: 100% }

/* toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px) }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 550; box-shadow: var(--shadow-lg); animation: toast-in .35s var(--ease) both }
.toast.error { background: var(--danger); color: #fff }
.toast.ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none }
.toast.out { animation: toast-out .3s var(--ease) both }
.toast-sticky { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 120 }
.toast-sticky code { font-weight: 700; letter-spacing: .04em }
.toast .icon-btn { color: inherit }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.98) } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px) } }

/* ---------- public site ---------- */
.site { --accent: #f52950; min-height: 100vh; display: flex; flex-direction: column }
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 24px; background: rgba(16, 18, 22, .96); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid rgba(255, 255, 255, .12) }
.brand { display: flex; flex: none; align-items: center; text-decoration: none }
.brand-logo { display: block; width: 196px; height: auto }
.site-nav { display: flex; align-items: center; gap: 4px; min-width: 0 }
.site-nav a:not(.btn) { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: #e1e3e7; font-weight: 550; font-size: 14px; white-space: nowrap }
.site-nav a:not(.btn):hover { background: rgba(255, 255, 255, .1); color: #fff }
.site-nav .icon-btn, .site-nav button.link { color: #e1e3e7; white-space: nowrap }
.site-nav .icon-btn:hover, .site-nav button.link:hover { background: rgba(255, 255, 255, .1); color: #fff }
.site-nav form { display: inline }
.site-main { flex: 1; width: 100% }
.site-main > section { max-width: 1120px; margin: 0 auto; padding: 0 24px }
.site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 32px 24px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line) }
.site-footer a { color: inherit; text-decoration: none }
.site-footer a:hover { color: var(--ink) }

.hero { position: relative; text-align: center; padding: 96px 24px 40px !important; isolation: isolate }
.hero::before { content: ""; position: absolute; inset: -80px 0 auto; height: 520px; z-index: -1; background: radial-gradient(40% 60% at 50% 30%, var(--accent-soft), transparent 70%); pointer-events: none }
.eyebrow-pill { display: inline-flex; gap: 8px; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm) }
.eyebrow-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse-red 1.8s infinite }
.hero h1 { font-size: clamp(44px, 8vw, 92px); font-weight: 750; letter-spacing: -.048em; line-height: .96; margin: 24px auto 18px; max-width: 12ch }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 42ch; margin: 0 auto }
.join { display: flex; gap: 6px; max-width: 540px; margin: 34px auto 0; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow) }
.join input { border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 999px !important; padding-left: 18px !important; font-size: 15px !important }
.join .btn { height: 44px; flex: none }
.hero .flash-inline { margin: 16px auto 0; max-width: 540px }
/* Home "secure your address" CTA: fixed host prefix, typed-in placeholder from app.js. */
.claim { display: flex; gap: 6px; max-width: 620px; margin: 34px auto 0; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent); transition: box-shadow .2s var(--ease) }
.claim:focus-within { box-shadow: var(--shadow), 0 0 0 6px color-mix(in srgb, var(--accent) 28%, transparent) }
.claim-field { flex: 1; min-width: 0; display: flex; align-items: center; padding-left: 20px; font-size: 17px; cursor: text }
.claim-host { flex: none; color: var(--muted); font-weight: 550; letter-spacing: -.01em }
.claim-field input { flex: 1; min-width: 0; height: 52px; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 8px 0 1px !important; font: 650 17px/1 var(--font) !important; color: var(--ink); letter-spacing: -.01em }
.claim-field input::placeholder { color: var(--accent); opacity: .75 }
.claim .btn { height: 52px; flex: none; padding: 0 1.4rem; font-size: 15.5px }
.claim .btn .i { width: 16px; height: 16px }
.claim-status { min-height: 22px; margin: 12px auto 0; font-size: 14px; color: var(--muted) }
.claim-status.ok { color: var(--ok) }
.claim-status.bad { color: var(--danger) }
.claim-alt { font-size: 14px; color: var(--muted) }
.claim-alt a { color: var(--ink); font-weight: 600 }
.join-block { max-width: 540px; margin: 56px auto 0; padding-top: 36px; border-top: 1px solid var(--line) }
.join-block h2 { font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: -.01em }
.join-block .join { margin-top: 14px; box-shadow: var(--shadow-sm) }
@media (max-width: 560px) {
  .claim { flex-direction: column; border-radius: 22px }
  .claim-field { padding-left: 14px; font-size: 16px }
  .claim-field input { font-size: 16px !important }
  .claim .btn { width: 100% }
}
.flash-inline { padding: 10px 14px; border-radius: 12px; font-size: 14px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent) }
.flash-inline.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent) }

.showcase { max-width: 1040px !important; margin: 32px auto 0 !important }
.mock { border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1600px) rotateX(4deg); transform-origin: top }
.mock-bar { height: 40px; display: flex; gap: 7px; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line) }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3) }
.mock-bar span { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-weight: 550 }
.mock-body { display: grid; grid-template-columns: 1.75fr 1fr }
.mock-stage { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; color: #fff; overflow: hidden; background: radial-gradient(60% 80% at 15% 10%, color-mix(in srgb, var(--accent) 65%, transparent), transparent 60%), radial-gradient(55% 70% at 95% 95%, color-mix(in srgb, var(--replay) 55%, transparent), transparent 60%), #07080a }
.mock-stage .live-chip { position: absolute; top: 14px; left: 14px }
.mock-play { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(10px) }
.mock-play .i { width: 24px; height: 24px; fill: #fff; stroke: none }
.mock-title { position: absolute; left: 18px; bottom: 16px; text-align: left; font: 650 clamp(14px, 2vw, 20px)/1.2 var(--font-display); letter-spacing: -.02em }
.mock-rail { border-left: 1px solid var(--line); padding: 16px; display: grid; gap: 10px; align-content: start; text-align: left }
.mock-rail b { font-size: 13px }
.mock-q { display: grid; gap: 5px; padding: 10px; border-radius: 10px; background: var(--surface-2) }
.mock-q i { height: 6px; border-radius: 3px; background: var(--line-2) }
.mock-q i:first-child { width: 36% }
.mock-q i:last-child { width: 82% }
.mock-poll { display: grid; gap: 6px }
.mock-poll span { height: 26px; border-radius: 8px; border: 1px solid var(--line-2); position: relative; overflow: hidden }
.mock-poll span::before { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--accent-soft) }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 1040px !important; margin: 88px auto !important }
.feature { padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface) }
.feature .fi { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px }
.feature h2 { font-size: 17px; margin-bottom: 6px }
.feature p { color: var(--muted); font-size: 14.5px }
.cta { text-align: center; padding-bottom: 96px !important }
.cta h2 { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -.03em; margin-bottom: 18px }
.cta .row-c { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap }
@media (max-width: 700px) { .mock-body { grid-template-columns: 1fr } .mock-rail { display: none } .mock { transform: none } }

.narrow { max-width: 440px !important; margin: 64px auto; padding: 32px !important; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow) }
.narrow h1 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 6px }
.narrow > p { color: var(--muted) }
.narrow form { margin-top: 22px }
.narrow .alt { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center }
.narrow .alt a { color: var(--ink); font-weight: 600 }

/* ---------- auth pages (sign in / register) ---------- */
/* A live-event photo sits fixed behind the whole page; the card is centred in the space between
   header and footer so it never hugs the top of the viewport. Both pseudo-elements are fixed and
   negatively stacked, so they escape .auth and cover the viewport whatever the page height. */
.auth-bg { background: #07080a }
.auth-bg .site-main { display: grid }
.auth { display: grid; place-items: center; width: 100%; max-width: none !important; margin: 0 !important; padding: 40px 24px 48px !important }
.auth::before, .auth::after { content: ""; position: fixed; inset: -14px; z-index: -1; pointer-events: none }
.auth::before { background: #07080a url("/assets/brand/auth-stage.webp?v=1") center 40% / cover no-repeat; filter: blur(2px) saturate(1.1) }
.auth::after { background: radial-gradient(78% 62% at 50% 46%, rgba(7, 8, 10, .1), rgba(7, 8, 10, .66) 72%), linear-gradient(180deg, rgba(7, 8, 10, .58), rgba(7, 8, 10, .08) 30%, rgba(7, 8, 10, .72)) }
.auth-card { width: 100%; margin: 0 !important; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(26px); -webkit-backdrop-filter: saturate(1.4) blur(26px); border-color: var(--line-2); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06) }
.auth-beta { text-align: left !important; margin-top: 10px !important }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--faint); font-size: 12.5px }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2) }
.auth-bg .site-footer { color: rgba(255, 255, 255, .58); border-top-color: rgba(255, 255, 255, .12) }
.auth-bg .site-footer a:hover { color: #fff }
.prose { max-width: 720px !important; line-height: 1.7 }
.prose p { margin: 0 0 1em; color: var(--ink-2) }
.prose h1 { margin-bottom: 16px }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 44px 0 20px }
.page-head h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.035em }
.page-head p { color: var(--muted); margin-top: 6px }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 32px; color: var(--muted); font-size: 14px; font-weight: 550; text-decoration: none }
.back-link:hover { color: var(--ink) }
.panel-card { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin: 16px 0 }
.panel-card h2 { font-size: 17px; margin-bottom: 4px }
.create { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px; align-items: end }
.create .fld-org { grid-column: 1 / -1 }
@media (max-width: 760px) { .create { grid-template-columns: 1fr } }
.slugrow, .slug-in { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--field); overflow: hidden; transition: border-color .15s, box-shadow .15s }
.slugrow > span:first-child, .slug-in > span { padding-left: .75rem; color: var(--muted); font-size: 13.5px; white-space: nowrap }
.slugrow input, .slug-in input { border: 0 !important; box-shadow: none !important; padding-left: 2px !important; background: transparent !important }
.slugrow:focus-within, .slug-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.ev-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin: 28px 0 72px }
.ev-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s }
.ev-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2) }
.ev-card-link { display: block; text-decoration: none; color: inherit; flex: 1 }
.ev-thumb { position: relative; aspect-ratio: 16/9; background: radial-gradient(70% 90% at 15% 10%, color-mix(in srgb, var(--a, var(--accent)) 70%, transparent), transparent 60%), radial-gradient(60% 80% at 100% 100%, color-mix(in srgb, var(--a, var(--accent)) 35%, #000), transparent 70%), #0b0c0e; background-size: cover; background-position: center }
.ev-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .55)) }
.ev-thumb .live-chip { position: absolute; top: 12px; left: 12px; z-index: 1 }
.ev-thumb-title { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; font: 650 18px/1.2 var(--font-display); letter-spacing: -.02em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }
.ev-card-body { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 16px 4px; font-size: 13px; color: var(--muted) }
.ev-card-foot { display: flex; gap: 6px; padding: 10px 12px 14px }
.empty-state { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 64px 24px; border: 1px dashed var(--line-3); border-radius: 20px; color: var(--muted) }
.empty-state .fi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent) }
.toolbar-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 12px 0 }
.toolbar-row form { display: flex; gap: 8px; flex: 1; max-width: 460px }
table.list { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 14px; margin: 12px 0 }
table.list th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; text-align: left; padding: 12px 14px; background: var(--surface-2) }
table.list td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top }
table.list td small { color: var(--muted) }
@media (max-width: 760px) { table.list { display: block; overflow-x: auto } }
.pager { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 14px }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px }
/* Admin tabs. Without JS the tabs hide and every panel simply stacks, so the page still works. */
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 20px }
.admin-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 600 13.5px/1 var(--font); cursor: pointer; transition: background .15s, color .15s }
.admin-tabs button:hover { color: var(--ink) }
.admin-tabs button[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm) }
.admin-h { font-size: 17px; margin-bottom: 4px }
.js .admin-panel:not(.is-active) { display: none }
html:not(.js) .admin-tabs { display: none }
html:not(.js) .admin-panel + .admin-panel { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line) }
.tag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 650 10.5px/1.7 var(--font); text-transform: uppercase; letter-spacing: .05em; vertical-align: 1px }
/* Dialog modals: the element is the card, its ::backdrop is the dim. A click landing on the element
   itself (never on its children, which fill it) is a backdrop click and dismisses. */
.modal { width: min(880px, calc(100vw - 32px)); max-height: min(82vh, 760px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden }
.modal::backdrop { background: rgba(6, 8, 11, .62) }
.modal[open] { display: flex; flex-direction: column }
.modal-head { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line) }
.modal-head h2 { font-size: 18px; letter-spacing: -.02em }
.modal-head p { color: var(--muted); font-size: 13px; margin-top: 3px }
.modal-head .icon-btn { margin-left: auto; flex: none }
.modal-body { padding: 4px 20px 20px; overflow: auto; min-height: 0 }
.modal-body table.list { margin-top: 12px }
.row-tight { display: flex; gap: 6px; flex-wrap: wrap; align-items: center }
.row-tight > input, .row-tight > select { flex: 1 1 160px; width: auto }

/* ---------- event page ---------- */
.canvas { container: canvas / inline-size; --canvas-h: 100dvh; position: relative }
.ev { position: relative; min-height: var(--canvas-h); background: var(--bg); isolation: isolate; overflow-x: clip }
.ev[style*="--ambient"]::before { content: ""; position: absolute; inset: 0 0 auto; height: 140vh; z-index: -1; background: var(--ambient) center / cover no-repeat; filter: blur(70px) saturate(1.3); opacity: .22; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); pointer-events: none }

.ev-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; padding: 0 20px; background: color-mix(in srgb, var(--bg) 76%, transparent); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid var(--line) }
.ev-brand { min-width: 0; max-width: calc(100% - 64px); display: flex; align-items: center }
.ev-brand img { display: block; max-height: 48px; max-width: 100%; width: auto; height: auto; object-fit: contain }
.ev-brand-name { font: 650 15px/1.2 var(--font-display); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.ev-top-r { display: flex; align-items: center; gap: 6px; flex: none }
.icon-btn.glass { border-color: var(--line) }

.live-chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font: 700 10.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-2); white-space: nowrap }
.live-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55 }
.live-chip.live-live { background: var(--live); color: #fff; border-color: transparent; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--live) 80%, transparent) }
.live-chip.live-live i { background: #fff; opacity: 1; animation: pulse 1.6s infinite }
.live-chip.live-replay { background: var(--replay); color: #fff; border-color: transparent }
.live-chip.live-scheduled i { background: var(--warn); opacity: 1 }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7) } 70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0) } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0) } }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent) } 70% { box-shadow: 0 0 0 7px transparent } 100% { box-shadow: 0 0 0 0 transparent } }

.ev-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "info" "rail" "body" }
.ev-stage { grid-area: stage; position: relative; min-width: 0 }
.ev-info { grid-area: info; padding: 28px 20px 8px; min-width: 0 }
.ev-rail { grid-area: rail; display: grid; gap: 14px; align-content: start; padding: 16px 20px; min-width: 0 }
.ev-body { grid-area: body; padding: 8px 20px 56px; min-width: 0 }

.player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }
.poster { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: #07080a }
.poster-bg { position: absolute; inset: -4%; background: radial-gradient(55% 75% at 18% 12%, color-mix(in srgb, var(--accent) 62%, transparent), transparent 62%), radial-gradient(50% 70% at 92% 92%, color-mix(in srgb, var(--replay) 45%, transparent), transparent 62%), #07080a; background-size: cover; background-position: center; animation: drift 28s ease-in-out infinite alternate }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .6)) }
.poster-in { position: relative; z-index: 1; display: grid; gap: 14px; justify-items: center; padding: 24px }
.eyebrow { font: 700 11px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; opacity: .78 }
.poster-msg { font: 650 clamp(20px, 3.4cqw, 42px)/1.08 var(--font-display); letter-spacing: -.03em; max-width: 20ch; text-wrap: balance }
.countdown { display: flex; gap: 10px; margin-top: 6px }
.countdown span { display: grid; justify-items: center; min-width: clamp(54px, 7cqw, 76px); padding: 12px 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px) }
.countdown b { font: 600 clamp(20px, 2.8cqw, 34px)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em }
.countdown small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-top: 6px }
@keyframes drift { to { transform: scale(1.08) translate(-1%, -1%) } }
.stage-edit { display: none; position: absolute; bottom: 16px; right: 16px; z-index: 6; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(10, 11, 13, .55); color: #fff; font: 600 12.5px/1 var(--font); cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px) }
.stage-edit:hover { background: rgba(10, 11, 13, .75) }

.announce { display: flex; gap: 12px; align-items: center; padding: 12px 16px; margin-bottom: 20px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--ink); font-weight: 550; font-size: 14.5px }
.announce::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 4px var(--accent-soft) }
.ev-when { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 550; margin-bottom: 12px }
.ev-title { font-size: clamp(30px, 4.6cqw, 56px); font-weight: 720; letter-spacing: -.04em; line-height: 1.02; max-width: 22ch; text-wrap: balance }

.ev-sections { display: grid }
.blk { position: relative; padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px }
.ev-sections > .blk:first-child, [data-mode=view] .ev-sections > .blk.is-first-visible { border-top: 0 }
.blk-title { display: block; font-size: clamp(20px, 2.3cqw, 26px); letter-spacing: -.025em; margin-bottom: 20px }
.blk-prose { white-space: pre-line; font-size: 16.5px; line-height: 1.72; color: var(--ink-2); max-width: 68ch }

.list-agenda { list-style: none; margin: 0; padding: 6px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm) }
.ag { position: relative; display: grid; grid-template-columns: 64px 18px minmax(0, 1fr); gap: 0 14px; padding: 14px 0 }
.ag::before { content: ""; position: absolute; left: calc(64px + 14px + 8.5px); top: 0; bottom: 0; width: 1px; background: var(--line-2) }
.ag:first-child::before { top: 22px }
.ag:last-child::before { bottom: calc(100% - 22px) }
.ag:only-child::before { display: none }
.ag-time { grid-column: 1; grid-row: 1; display: block; font: 600 14px/1.5 var(--font); font-variant-numeric: tabular-nums; color: var(--ink); padding-top: 1px }
.ag-dot { grid-column: 2; grid-row: 1; position: relative; z-index: 1; width: 11px; height: 11px; margin: 6px auto 0; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--surface) }
.ag-main { grid-column: 3; grid-row: 1; display: grid; gap: 2px; min-width: 0 }
.ag-title { display: block; font-weight: 600; font-size: 15.5px; letter-spacing: -.01em }
.ag-detail { display: block; color: var(--muted); font-size: 14px }

.list-speakers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 32px 20px }
.sp { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 3px }
.sp-avatar { width: 116px; height: 116px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin-bottom: 12px; background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 35%, #000)); color: #fff; font: 600 34px/1 var(--font-display); letter-spacing: -.02em; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line-2), var(--shadow) }
.sp-avatar img { width: 100%; height: 100%; object-fit: cover }
.sp-name { display: block; font-weight: 650; font-size: 16px; letter-spacing: -.012em }
.sp-role { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4 }

.list-resources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px }
.list-resources li { position: relative }
.ln { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 15px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s var(--ease), box-shadow .15s }
a.ln:hover { border-color: var(--line-3); transform: translateY(-1px); box-shadow: var(--shadow) }
.ln-label { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis }
.ln-host { display: block; grid-column: 1; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.ln-go { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--muted) }

.rail-card { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line) }
.rc-head h2 { display: flex; align-items: center; gap: 8px; font: 650 14px/1 var(--font); letter-spacing: -.005em }
.polls .rc-head h2 .i { color: var(--live) }
.qlist { list-style: none; margin: 0; padding: 4px 16px; max-height: 360px; overflow: auto }
.qlist:empty { display: none }
.qlist li { padding: 12px 0; border-bottom: 1px solid var(--line); animation: toast-in .4s var(--ease) both }
.qlist li:last-child { border-bottom: 0 }
.qlist b { font-size: 12.5px; color: var(--muted); font-weight: 600 }
.qlist p { margin-top: 2px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere }
.qa .empty { padding: 18px 16px }
.qform { display: grid; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 50%, transparent) }
.qform textarea { resize: none; min-height: 64px }
.qform-row { display: flex; gap: 8px }
.qform-row input { flex: 1; min-width: 0 }
.qform .hint:empty { display: none }
.poll fieldset { border: 0; margin: 0; padding: 14px 16px 16px; display: grid; gap: 8px; min-width: 0 }
.poll + .poll fieldset { border-top: 1px solid var(--line) }
.poll legend { float: left; width: 100%; font-weight: 650; font-size: 15px; letter-spacing: -.01em; margin-bottom: 8px; padding: 0 }
.opt { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 550 14px/1.3 var(--font); text-align: left; cursor: pointer; overflow: hidden; isolation: isolate; transition: border-color .15s, background .15s }
button.opt:hover { border-color: var(--accent); background: var(--accent-soft) }
.opt.result { cursor: default }
.opt.result::before { content: ""; position: absolute; inset: 0; width: var(--pct, 0%); z-index: -1; background: var(--accent-soft); transition: width .7s var(--ease) }
.opt.mine { border-color: var(--accent) }
.opt.mine span::after { content: " ✓"; color: var(--accent); font-weight: 700 }
.opt b { font-variant-numeric: tabular-nums; font-weight: 650 }
.poll-note { font-size: 12.5px; color: var(--muted) }

.ev-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 28px 20px 40px; color: var(--faint); font-size: 12.5px; border-top: 1px solid var(--line) }
.ev-foot a { color: inherit }
.media-gate { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; background: #101318; color: #fff }
.media-gate strong { font: 650 clamp(18px, 3cqw, 26px)/1.2 var(--font-display) }
.media-gate p { max-width: 38ch; color: #c7cdd7; font-size: 13px }
.media-gate a { color: #dbe7ff; font-size: 12px }
.media-gate .btn { border-radius: 0 }
.preview-bar { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; align-items: center; padding: 9px 16px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 550 }
.preview-bar span { display: inline-flex; gap: 8px; align-items: center }

/* layouts */
@container canvas (min-width: 760px) {
  .ev-top { padding: 0 28px }
  .ev-brand img { max-height: 56px; max-width: min(520px, 100%) }
  .ev-info { padding: 44px 40px 8px }
  .ev-rail { padding: 20px 40px }
  .ev-body { padding: 8px 40px 72px }
  .layout-centered .ev-grid { max-width: 900px; margin: 0 auto; padding-top: 36px }
  .layout-centered .ev-stage { padding: 0 40px }
  .layout-centered .player { border-radius: 20px; box-shadow: var(--shadow-lg) }
  .layout-centered .ev-info { text-align: center; padding-top: 48px }
  .layout-centered .ev-title { margin: 0 auto }
  .layout-centered .ev-when { justify-content: center }
  .layout-centered .announce { text-align: left }
  .layout-centered .ev-rail { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) }
  .layout-fullscreen .ev-top { position: absolute; left: 0; right: 0; height: 76px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; pointer-events: none }
  .layout-fullscreen .ev-top > * { pointer-events: auto }
  .layout-fullscreen .ev-top .icon-btn { color: #fff; border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); backdrop-filter: blur(10px) }
  .layout-fullscreen .ev-top .live-chip:not(.live-live):not(.live-replay) { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .2); backdrop-filter: blur(10px) }
  .layout-fullscreen .player { aspect-ratio: auto; height: var(--canvas-h); min-height: 420px }
  .layout-fullscreen .poster-msg { font-size: clamp(28px, 4.4cqw, 60px) }
}
@container canvas (min-width: 960px) {
  .layout-fullscreen .ev-grid { grid-template-columns: minmax(0, 1fr) clamp(300px, 30cqw, 360px); grid-template-areas: "stage stage" "info rail" "body rail"; grid-template-rows: auto auto 1fr; column-gap: 56px; max-width: 1320px; margin: 0 auto; padding: 0 48px }
  .layout-fullscreen .ev-stage { margin-inline: calc((100% - 100cqw) / 2) }
  .layout-fullscreen .ev-info, .layout-fullscreen .ev-body { padding-left: 0; padding-right: 0 }
  .layout-fullscreen .ev-rail { padding: 44px 0 40px; position: sticky; top: 0; align-self: start; max-height: var(--canvas-h); overflow: auto }

  .layout-split .ev-grid { grid-template-columns: minmax(0, 1fr) clamp(320px, 30cqw, 400px); grid-template-areas: "stage rail" "info rail" "body rail"; grid-template-rows: auto auto 1fr }
  .layout-split .ev-rail { position: sticky; top: 60px; align-self: start; height: calc(var(--canvas-h) - 60px); padding: 0; gap: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--bg-elev) }
  .layout-split .rail-card { border: 0; border-radius: 0; box-shadow: none; background: transparent }
  .layout-split .polls { flex: none; max-height: 55%; overflow: auto; border-bottom: 1px solid var(--line) }
  .layout-split .qa { flex: 1 }
  .layout-split .qlist { flex: 1; max-height: none }
  .layout-split .qa .empty { flex: 1 }
  .layout-split .ev-info { padding-top: 32px }
}

/* registration */
.reg-shell { min-height: 100dvh; display: grid; place-items: center; padding: 40px 16px; position: relative; isolation: isolate }
.reg-shell::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(50% 50% at 50% 0%, var(--accent-soft), transparent 70%) }
.reg-card { width: min(460px, 100%); display: grid; gap: 16px }
.reg-card .rail-card { padding: 24px; gap: 14px }
.reg-head { text-align: center; display: grid; gap: 8px; justify-items: center; margin-bottom: 8px }
.reg-head img { max-height: 36px; width: auto }
.reg-head h1 { font-size: clamp(26px, 5vw, 34px); letter-spacing: -.035em }
.reg-card h2 { font-size: 17px }
.privacy { font-size: 12.5px; color: var(--muted) }

/* ---------- organiser editor ---------- */
.is-manager { --mbar-h: 56px; --sb-w: 424px }
.mbar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--mbar-h); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 0 12px; background: var(--bg-elev); border-bottom: 1px solid var(--line) }
.mbar-l { display: flex; align-items: center; gap: 8px; min-width: 0 }
.mbar-title { display: grid; gap: 3px; min-width: 0 }
.mbar-title b { font-size: 14px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.mbar-sub { display: flex; gap: 8px; align-items: center; font-size: 12px; min-width: 0 }
.dirty { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap }
.dirty::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn) }
.mbar-r { display: flex; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0 }
.mbar-r form { display: contents }
.save-state { font-size: 12.5px; color: var(--muted); margin-right: 6px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px }
.save-state.saving::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-3); border-top-color: var(--accent); animation: spin .7s linear infinite }
.save-state.error { color: var(--danger) }
@keyframes spin { to { transform: rotate(360deg) } }
#publish-btn.is-clean { background: var(--surface-2); color: var(--muted); box-shadow: none; border-color: var(--line) }

.workspace { position: fixed; inset: var(--mbar-h) 0 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto }
.is-manager .canvas { --canvas-h: calc(100dvh - var(--mbar-h)); height: 100%; overflow: auto; overscroll-behavior: contain; scroll-behavior: smooth }
.sidebar { width: var(--sb-w); min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 76px; background: var(--bg-elev); border-left: 1px solid var(--line) }
.panels { overflow: auto; min-height: 0; overscroll-behavior: contain }
.panel { padding: 22px 20px 88px; display: grid; gap: 14px; align-content: start }
.js .panel:not(.is-active) { display: none }
html:not(.js) .panel + .panel { border-top: 1px solid var(--line) }
.panel-head h2 { font-size: 19px; letter-spacing: -.025em }
.panel-head p { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.45 }
.group { display: grid; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line) }
.sub { display: flex; align-items: center; gap: 8px; font: 650 11.5px/1 var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-top: 6px }
.panel > form > .sub:first-child, .group > .sub:first-child { margin-top: 0 }
.js .save-btn { display: none }
.rail { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; border-left: 1px solid var(--line); overflow: auto }
.rail button, .rail a { display: grid; justify-items: center; gap: 6px; padding: 11px 0 9px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font: 600 10.5px/1 var(--font); letter-spacing: .01em; cursor: pointer; text-decoration: none; transition: background .15s, color .15s }
.rail .i { width: 20px; height: 20px }
.rail button:hover, .rail a:hover { color: var(--ink); background: var(--surface-2) }
.rail button[aria-current="true"] { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line) }
.rail button[aria-current="true"] .i { color: var(--accent) }
.rail .rail-link { margin-top: auto }
html:not(.js) .rail button { display: none }

.sec-list { display: grid; gap: 8px }
.sec-list:not(:empty) + .sec-empty { display: none }
.sec-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s }
.sec-card.is-open { border-color: var(--line-3); box-shadow: var(--shadow) }
.sec-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.sec-head { display: flex; align-items: center; gap: 2px; padding: 6px }
.sec-open { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; border-radius: 10px }
.sec-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); flex: none }
.sec-card.is-open .sec-ico { background: var(--accent-soft); color: var(--accent) }
.sec-name { display: grid; min-width: 0; gap: 1px }
.sec-name b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.sec-name small { font-size: 11.5px; color: var(--muted) }
.hid-tag { display: none; font-style: normal }
.is-hidden .hid-tag { display: inline }
.is-hidden .sec-ico, .is-hidden .sec-name b { opacity: .5 }
.sec-ctl, .item-ctl { display: flex; gap: 1px }
.sec-ctl button, .item-ctl button, .blk-tools button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer }
.sec-ctl button:hover, .item-ctl button:hover, .blk-tools button:hover { background: var(--surface-2); color: var(--ink) }
.sec-ctl button.danger:hover, .item-ctl button.danger:hover, .blk-tools button.danger:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent) }
.sec-ctl .i, .item-ctl .i, .blk-tools .i { width: 16px; height: 16px }
[data-act="sec-hide"] .i:nth-of-type(2), [data-act="sec-hide"][aria-pressed="true"] .i:nth-of-type(1) { display: none }
[data-act="sec-hide"][aria-pressed="true"] .i:nth-of-type(2) { display: inline-block }
.sec-body { display: none; gap: 12px; padding: 6px 14px 16px }
.sec-card.is-open .sec-body, html:not(.js) .sec-body { display: grid }
.items { display: grid; gap: 8px }
.items:empty { display: none }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line) }
.item-row.item-speakers { grid-template-columns: 44px minmax(0, 1fr) auto }
.item-row .sp-avatar { width: 44px; height: 44px; margin: 0; font-size: 15px; box-shadow: none }
.item-fields { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px }
.item-speakers .item-fields, .item-resources .item-fields { grid-template-columns: 1fr }
.item-fields .wide { grid-column: 1 / -1 }
.item-fields input:not([type=checkbox]) { min-height: 34px; padding: .4rem .6rem; font-size: 13.5px; border-radius: 8px }
.item-ctl { flex-direction: column }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.add-tile { display: grid; gap: 3px; justify-items: start; text-align: left; padding: 12px; border-radius: 14px; border: 1px dashed var(--line-3); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s }
.add-tile:hover { border-style: solid; border-color: var(--accent); background: var(--accent-soft) }
.add-tile .i { color: var(--accent); margin-bottom: 6px }
.add-tile b { font-size: 13.5px }
.add-tile small { font-size: 12px; color: var(--muted); line-height: 1.35 }

.layout-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.lp { position: relative; display: grid; gap: 3px; align-content: start; padding: 8px; border-radius: 14px; border: 1px solid var(--line-2); cursor: pointer; transition: border-color .15s, box-shadow .15s }
.lp:hover { border-color: var(--line-3) }
.lp input { position: absolute; opacity: 0; pointer-events: none }
.lp:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.lp:has(input:focus-visible) { outline: 2px solid var(--accent) }
.lp b { font-size: 12.5px; margin-top: 6px }
.lp small { font-size: 11px; color: var(--muted); line-height: 1.3 }
.lp-thumb { display: grid; aspect-ratio: 4 / 3; gap: 3px; padding: 5px; border-radius: 9px; background: var(--surface-2); overflow: hidden }
.lp-thumb i { border-radius: 3px; background: var(--line-3) }
.lp-thumb .v { grid-area: v; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 30%, #000)) }
.lp-thumb .r { grid-area: r } .lp-thumb .c { grid-area: c } .lp-thumb .c2 { grid-area: c2 }
.lp-fullscreen { grid-template: "v v" 1.5fr "c r" .6fr "c2 r" .6fr / 1.7fr 1fr; padding: 0 5px 5px }
.lp-fullscreen .v { margin: 0 -5px; border-radius: 0 }
.lp-centered { grid-template: "v" 1.3fr "c" .5fr "c2" .5fr / 1fr; padding: 6px 18% }
.lp-centered .r { display: none }
.lp-split { grid-template: "v r" 1.3fr "c r" .5fr "c2 r" .5fr / 1.7fr 1fr }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; align-items: center }
.sw { position: relative; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 0; background: var(--sw); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); transition: transform .15s }
.sw:hover { transform: scale(1.1) }
.sw.on { box-shadow: 0 0 0 2px var(--bg-elev), 0 0 0 4px var(--sw, var(--accent)) }
.sw-custom { overflow: hidden; background: conic-gradient(#ff3b30, #f5b400, #30a46c, #00adef, #3d7cff, #7c5cff, #e93d82, #ff3b30) }
.sw-custom input { position: absolute; inset: -10px; width: 48px; height: 48px; opacity: 0; cursor: pointer }
.providers { display: flex; gap: 6px; flex-wrap: wrap }

.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.st { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s }
.st:hover { border-color: var(--line-3) }
.st i { grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 50%; background: var(--faint) }
.st b { font-size: 13.5px }
.st small { font-size: 11.5px; color: var(--muted) }
.st[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) }
.st-live { grid-column: 1 / -1; order: -1; padding: 14px }
.st-live i { background: var(--live) }
.st-live b { font-size: 15px }
.st-live[aria-pressed="true"] { border-color: var(--live); box-shadow: 0 0 0 1px var(--live); background: color-mix(in srgb, var(--live) 10%, var(--surface)) }
.st-live[aria-pressed="true"] i { animation: pulse-red 1.6s infinite }
.st-scheduled i { background: var(--warn) } .st-replay i { background: var(--replay) } .st-ended i { background: var(--muted) }

.radio-cards { display: grid; gap: 8px }
.rc { position: relative; cursor: pointer }
.rc input { position: absolute; opacity: 0; pointer-events: none }
.rc > span { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1px 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s }
.rc > span .i { grid-row: 1 / 3; color: var(--muted) }
.rc b { font-size: 13.5px }
.rc small { font-size: 12px; color: var(--muted) }
.rc input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.rc input:checked + span .i { color: var(--accent) }
.rc input:focus-visible + span { outline: 2px solid var(--accent) }
.reg-fields { display: grid; gap: 6px }
.reg-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line) }
.reg-row .in-pos { width: 54px !important; flex: none }
.reg-row > input:not(.in-pos) { flex: 1 1 140px; width: auto }
.reg-row select { width: 104px; flex: none }
.reg-row input, .reg-row select { min-height: 34px !important; padding: .35rem .55rem !important; font-size: 13px !important }
.mini { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); padding: 0 4px }
.poll-admin { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.poll-admin:empty { display: none }
.poll-admin li { display: grid; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface) }
.poll-admin li > div { display: grid; gap: 3px }
.poll-admin b { font-size: 14px }
.poll-admin small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px }
.dotst { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none }
.dotst.st-active { background: var(--live) }
.dotst.st-closed { background: var(--warn) }
/* The Live panel carries one poll: whatever is on screen, or the next one ready to go. */
.poll-now { display: grid; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface) }
.poll-now > div { display: grid; gap: 3px; min-width: 0 }
.poll-now b { font-size: 14px }
.poll-now small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px }
.sub > .linkish { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 12px }
.new-poll summary { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-weight: 600; font-size: 13.5px; color: var(--accent); cursor: pointer; list-style: none }
.new-poll summary::-webkit-details-marker { display: none }
.new-poll[open] summary { margin-bottom: 10px }
.modq-list { display: grid; gap: 8px }
/* Empty waiting list: three dots breathing, replaced the moment a question lands. */
.qwait { display: flex; justify-content: center; gap: 7px; padding: 22px 0 24px }
.qwait span { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); opacity: .55; animation: qwait 1.5s var(--ease) infinite }
.qwait span:nth-child(2) { animation-delay: .18s }
.qwait span:nth-child(3) { animation-delay: .36s }
@keyframes qwait { 0%, 55%, 100% { transform: translateY(0); opacity: .4 } 25% { transform: translateY(-5px); opacity: .9 } }
.modq { display: grid; gap: 6px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface) }
.modq p { font-size: 14px }
.modq small { color: var(--muted); font-size: 12px }
.modq-approved { border-left: 3px solid var(--ok) }
.modq-archived { background: var(--surface-2); border-style: dashed }
.modq-archived p { color: var(--ink-2) }
/* Archived questions: collapsed by default at the foot of the Questions panel. */
.archived-group > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 2px 0 }
.archived-group > summary::-webkit-details-marker { display: none }
.archived-group > summary .sub { margin: 0 }
.archived-group > summary .i { margin-left: auto; color: var(--muted); transition: transform .15s var(--ease) }
.archived-group[open] > summary .i { transform: rotate(180deg) }
.archived-group > summary:hover .sub, .archived-group > summary:hover .i { color: var(--ink) }
.rail button { position: relative }
.rail-count { position: absolute; top: 5px; right: 9px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--live); color: #fff; font-size: 10.5px; box-shadow: 0 0 0 2px var(--bg-elev) }
.rail [hidden], .panel[hidden] { display: none }
.copy-row { display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line) }
.copy-row code { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.danger-zone .sub { color: var(--danger) }
.danger-zone form { display: flex }

/* edit affordances on the canvas */
.blk-tools, .add-item, .item-x, .add-bar { display: none }
[data-mode=edit] .blk { border-radius: 16px; outline: 1px dashed transparent; outline-offset: 8px; transition: outline-color .15s, opacity .2s }
[data-mode=edit] .blk:hover { outline-color: var(--line-3) }
[data-mode=edit] .blk.is-selected { outline: 2px solid var(--accent); outline-offset: 8px }
[data-mode=edit] .blk.is-hidden { opacity: .45 }
.js [data-mode=edit] .blk:hover > .blk-tools, .js [data-mode=edit] .blk.is-selected > .blk-tools { display: flex }
.blk-tools { position: absolute; top: 10px; right: 0; z-index: 8; align-items: center; gap: 1px; padding: 3px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--line-2); box-shadow: var(--shadow) }
.blk-kind { display: inline-flex; gap: 6px; align-items: center; padding: 0 10px 0 6px; margin-right: 2px; border-right: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted) }
.blk-kind .i { width: 14px; height: 14px }
[data-mode=edit] [data-bind] { border-radius: 6px; transition: background .15s, box-shadow .15s; cursor: text; outline: none }
[data-mode=edit] [data-bind]:hover { background: var(--accent-soft) }
[data-mode=edit] [data-bind]:focus { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-line) }
[data-mode=edit] [data-bind]:empty::before { content: attr(data-ph); color: var(--faint) }
[data-mode=edit] span[data-bind]:empty { min-width: 3ch }
.js [data-mode=edit] .add-item { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--line-3); background: transparent; color: var(--muted); font: 600 13px/1 var(--font); cursor: pointer }
.js [data-mode=edit] .add-item:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft) }
.item-x { position: absolute; top: 4px; right: -6px; z-index: 2; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-elev); color: var(--muted); cursor: pointer; box-shadow: var(--shadow-sm) }
.item-x .i { width: 14px; height: 14px }
.item-x:hover { color: var(--danger) }
.js [data-mode=edit] li:hover > .item-x { display: grid }
[data-mode=edit] .ag.is-empty, [data-mode=edit] .sp.is-empty { opacity: .8 }
.js [data-mode=edit] .add-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 28px; padding: 18px; border: 1px dashed var(--line-3); border-radius: 18px; color: var(--muted); font-size: 13px; font-weight: 600 }
.add-bar > span { display: inline-flex; gap: 6px; align-items: center; margin-right: 6px }
.add-bar button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 12.5px/1 var(--font); cursor: pointer }
.add-bar button:hover { border-color: var(--accent); color: var(--accent) }
.add-bar button .i { width: 15px; height: 15px }
.js [data-mode=edit] .stage-edit { display: inline-flex }
.blk.flash-in { animation: flash-in 1.2s var(--ease) }
@keyframes flash-in { 0% { background: var(--accent-soft) } 100% { background: transparent } }

/* view mode: exactly what attendees see */
[data-mode=view] .blk.is-empty, [data-mode=view] .blk.is-hidden, [data-mode=view] li.is-empty,
[data-mode=view] .ev-title:empty, [data-mode=view] .blk-title:empty, [data-mode=view] [data-bind]:empty,
html[data-start-mode=view] .blk.is-empty, html[data-start-mode=view] .blk.is-hidden, html[data-start-mode=view] li.is-empty { display: none }
.is-manager[data-mode=view] .sidebar, html[data-start-mode=view] .is-manager .sidebar { display: none }

@media (max-width: 900px) {
  .is-manager { --sb-h: min(56dvh, 540px) }
  .mbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 0 8px }
  .mbar-title, .hide-sm, .save-state { display: none }
  .mode-seg { justify-self: center }
  .mode-seg button { padding: 0 10px }
  #publish-btn span { display: none }
  #publish-btn { width: 34px; padding: 0 }
  .workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto }
  .sidebar { width: auto; height: var(--sb-h); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); border-left: 0; border-top: 1px solid var(--line); box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, .35) }
  .rail { order: -1; flex-direction: row; border-left: 0; border-bottom: 1px solid var(--line); padding: 6px 8px }
  .rail button, .rail a { grid-auto-flow: column; padding: 8px 12px; font-size: 12px; white-space: nowrap }
  .rail .i { width: 16px; height: 16px }
  .rail-count { position: static; box-shadow: none }
  .rail .rail-link { margin: 0 0 0 auto }
  .is-manager .canvas { --canvas-h: calc(100dvh - var(--mbar-h) - var(--sb-h)) }
  .is-manager[data-mode=view] .canvas { --canvas-h: calc(100dvh - var(--mbar-h)) }
  .blk-tools { top: -14px }
}
@media (max-width: 520px) {
  .fld-row { grid-template-columns: 1fr }
  .layout-pick { grid-template-columns: 1fr 1fr 1fr }
  .countdown { gap: 6px }
  .site-header { padding: 0 16px }
  .brand-logo { width: 146px }
  .site-nav { overflow-x: auto; scrollbar-width: none }
  .site-nav::-webkit-scrollbar { display: none }
  .site-nav a:not(.btn), .site-nav button.link { padding-inline: 7px }
  .site-nav .btn { display: none }
  .site-main > section { padding: 0 16px }
  .narrow { margin: 24px 16px; padding: 24px !important }
  .auth { padding: 24px 16px 32px !important }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
}
.fld-l { font-size: 12.5px; font-weight: 600; color: var(--ink-2) }
.reg-head .icon-btn { position: absolute; top: 16px; right: 16px }
@container canvas (min-width: 960px) { .layout-split .qa .empty { display: grid; place-items: center; text-align: center } }
/* The header badge only appears once the event is on air; before then the poster already says "Starting soon". */
.ev-top .live-chip:not(.live-live):not(.live-replay) { display: none }

/* ---------- live panel: status dropdown, switches, banner row ---------- */
/* Live viewers: the count now and the peak, with two hours of history as a sparkline alongside. */
.vstat { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 4px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2) }
.vstat-figs { display: grid; gap: 4px; min-width: 0 }
.vstat-now { display: flex; align-items: baseline; gap: 7px }
.vstat-now b { font: 650 28px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.03em }
.vstat-now span { color: var(--muted); font-size: 12px }
.vstat-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 }
.vstat-meta div { display: flex; align-items: baseline; gap: 5px }
.vstat-meta dt { color: var(--muted); font-size: 11px }
.vstat-meta dd { margin: 0; font: 650 12px/1 var(--font); font-variant-numeric: tabular-nums }
.vchart { flex: 0 1 132px; display: grid; gap: 3px; justify-items: end }
.vchart > div { width: 100%; height: 38px }
.vchart small { color: var(--faint); font-size: 10px; letter-spacing: .04em }
.vspark { display: block; width: 100%; height: 100%; overflow: visible }
.vspark .fill { fill: var(--accent); opacity: .16 }
.vspark .line { fill: none; stroke: var(--accent); stroke-width: 1.5px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke }
.vspark .base { stroke: var(--line-2); stroke-width: 1px; vector-effect: non-scaling-stroke }

.statuspick { position: relative }
.status-trigger { display: none; width: 100%; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s }
.js .status-trigger { display: flex }
.status-trigger > span { flex: 1; display: grid; gap: 2px; min-width: 0 }
.status-trigger b { font-size: 16px; letter-spacing: -.015em }
.status-trigger small { font-size: 12px; color: var(--muted) }
.status-trigger > i { width: 12px; height: 12px; border-radius: 50%; background: var(--faint); flex: none }
.status-trigger:hover { border-color: var(--line-3) }
.status-trigger .i:last-child { color: var(--muted); transition: transform .2s var(--ease) }
.statuspick.open .status-trigger .i:last-child { transform: rotate(180deg) }
.status-trigger.st-live { border-color: var(--live); box-shadow: 0 0 0 1px var(--live); background: color-mix(in srgb, var(--live) 10%, var(--surface)) }
.status-trigger.st-live > i { background: var(--live); animation: pulse-red 1.6s infinite }
.status-trigger.st-scheduled > i { background: var(--warn) }
.status-trigger.st-replay > i { background: var(--replay) }
.status-trigger.st-ended > i, .status-trigger.st-unavailable > i { background: var(--muted) }
.status-menu { display: grid; gap: 6px }
.js .status-menu { display: none; position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; border-radius: 16px; background: var(--bg-elev); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: toast-in .16s var(--ease) both }
.js .statuspick.open .status-menu { display: grid }
.status-menu .st { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1px 10px; align-items: center; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); text-align: left; cursor: pointer }
.status-menu .st:hover { background: var(--surface-2) }
.status-menu .st > i { grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 50%; background: var(--faint) }
.status-menu .st b { font-size: 13.5px } .status-menu .st small { font-size: 11.5px; color: var(--muted) }
.status-menu .st .i { grid-row: 1 / 3; color: var(--accent); opacity: 0 }
.status-menu .st[aria-pressed="true"] .i { opacity: 1 }
.status-menu .st-live > i { background: var(--live) } .status-menu .st-scheduled > i { background: var(--warn) }
.status-menu .st-replay > i { background: var(--replay) }
html:not(.js) .status-menu .st { border: 1px solid var(--line-2) }

.toggle-row { display: flex; align-items: flex-start; gap: 16px; padding: 9px 0 }
.toggle-row > div { flex: 1; min-width: 0 }
.toggle-row b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600 }
/* What a setting does lives behind its info button: on hover, on keyboard focus, and on tap (the button
   takes focus), so it works without a pointer. The text stays in the DOM for aria-describedby. */
.infowrap { display: inline-flex; flex: none }
.info { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--faint); cursor: help; transition: color .15s }
.info .i { width: 15px; height: 15px }
.info:hover, .info:focus-visible { color: var(--accent) }
.toggle-row { position: relative }
.tip { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 6px); padding: 10px 12px; border-radius: 12px;
  background: var(--ink); color: var(--bg-elev); font: 400 12.5px/1.45 var(--font); text-transform: none; letter-spacing: 0;
  box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(-3px); transition: opacity .14s var(--ease), transform .14s var(--ease), visibility .14s }
.info:hover + .tip, .info:focus + .tip { visibility: visible; opacity: 1; transform: none }
.toggle-row:last-of-type .tip { top: auto; bottom: calc(100% - 6px) }
.switch { position: relative; flex: none; width: 46px; height: 27px; margin-top: 2px; padding: 0; border: 0; border-radius: 999px; background: var(--surface-3); cursor: pointer; transition: background .2s var(--ease) }
.switch span { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--faint); transition: transform .2s var(--ease), background .2s }
.switch[aria-checked="true"] { background: color-mix(in srgb, var(--accent) 35%, var(--surface-3)) }
.switch[aria-checked="true"] span { transform: translateX(19px); background: var(--accent) }
.switch:disabled { opacity: .6; cursor: default }
.ann-actions { display: flex; justify-content: space-between; gap: 8px }

/* upload button inside a URL field */
.up-field { position: relative; display: block }
.item-fields > .up-field { display: block }
.up-field input { padding-right: 44px !important }
.up-btn { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--muted); cursor: pointer; transition: color .15s, background .15s }
.up-btn:hover { color: var(--accent); background: var(--accent-soft) }
.up-btn .i { width: 15px; height: 15px; grid-area: 1 / 1 }
.up-btn .i:nth-of-type(2), .up-btn .up-pct { display: none }
.up-btn.busy { background: conic-gradient(var(--accent) calc(var(--p, 0) * 1%), var(--surface-3) 0); color: var(--ink); cursor: default }
.up-btn.busy::after { content: ""; position: absolute; inset: 3px; border-radius: 6px; background: var(--surface) }
.up-btn.busy .i { display: none }
.up-btn.busy .up-pct { display: block; position: relative; z-index: 1; font: 650 9px/1 var(--font); font-variant-numeric: tabular-nums }
.up-btn.done { color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent) }
.up-btn.done .i:nth-of-type(1) { display: none }
.up-btn.done .i:nth-of-type(2) { display: block }
.up-prev { display: none }
.up-field.has-prev { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 88px 8px 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface) }
.up-field.has-prev > input { position: absolute; width: 1px; height: 1px; padding: 0 !important; opacity: 0; pointer-events: none }
.up-field.has-prev .up-prev { display: contents }
.up-prev img { width: 72px; height: 48px; flex: none; object-fit: contain; border-radius: 6px; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface-3) 0 50%) 0 0 / 12px 12px }
.up-meta { display: grid; gap: 2px; min-width: 0; justify-items: start }
.up-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink) }
.up-edit { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px }
.up-edit:hover { color: var(--accent) }
.up-rm { position: absolute; top: 50%; right: 41px; transform: translateY(-50%); width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer }
.up-rm:hover { color: var(--danger, #d33); background: color-mix(in srgb, var(--danger, #d33) 14%, transparent) }
.item-fields .up-field input { padding-right: 38px !important }
.item-fields .up-btn { width: 26px; height: 26px; right: 4px }

/* up-voting questions */
.qlist li { position: relative; padding-right: 54px }
.qvote { position: absolute; top: 10px; right: 0; display: inline-flex; flex-direction: column; align-items: center; gap: 1px; min-width: 42px; padding: 5px 6px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--muted); font: 650 12px/1 var(--font); cursor: pointer; transition: border-color .15s, color .15s, background .15s }
.qvote:hover { border-color: var(--accent); color: var(--accent) }
.qvote.voted, .qvote[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); cursor: default }
.qvote .i { width: 13px; height: 13px }
.status-menu .st > i { grid-column: 1 }
.status-menu .st b { grid-column: 2; grid-row: 1; text-align: left }
.status-menu .st small { grid-column: 2; grid-row: 2; text-align: left }
.status-menu .st .i { grid-column: 3; grid-row: 1 / 3 }
.mbar-title { align-content: center }
.legal-page .btn, .legal-page .icon-btn, .legal-page button.link { border-radius: 0 }
.legal-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto 88px }
.legal-hero { padding: clamp(56px, 8vw, 112px) 0 42px; border-bottom: 1px solid var(--line-2) }
.legal-kicker { margin-bottom: 18px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase }
.legal-hero h1 { max-width: 16ch; font-size: clamp(42px, 7vw, 78px); font-weight: 650; letter-spacing: -.055em }
.legal-hero > p:not(.legal-kicker) { max-width: 60ch; margin-top: 20px; color: var(--ink-2); font-size: clamp(17px, 2vw, 21px); line-height: 1.45 }
.legal-date { display: block; margin-top: 24px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em }
.legal-layout { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); padding-top: 44px }
.legal-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 24px; align-self: start; border-left: 1px solid var(--line-2) }
.legal-nav a { padding: 9px 15px; color: var(--muted); font-size: 13px; text-decoration: none; border-left: 2px solid transparent; margin-left: -1px }
.legal-nav a:hover, .legal-nav a:focus-visible { color: var(--ink); border-left-color: var(--accent); background: var(--accent-soft) }
.legal-content { max-width: 760px }
.legal-content section { padding: 0 0 34px; margin: 0 0 36px; border-bottom: 1px solid var(--line) }
.legal-content section:last-child { border-bottom: 0 }
.legal-content h2 { margin-bottom: 17px; font-size: clamp(23px, 3vw, 30px); font-weight: 640; letter-spacing: -.035em; scroll-margin-top: 24px }
.legal-content p, .legal-content li { color: var(--ink-2); font-size: 15px; line-height: 1.75 }
.legal-content p + p, .legal-content ul + p { margin-top: 15px }
.legal-content ul { display: grid; gap: 10px; padding-left: 21px }
.legal-content a { color: var(--accent); text-underline-offset: 3px }
.legal-content strong { color: var(--ink); font-weight: 680 }
.legal-table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line-2) }
.legal-content table { width: 100%; border-collapse: collapse; font-size: 13px }
.legal-content th, .legal-content td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line) }
.legal-content thead th { background: var(--surface-2); color: var(--ink); font-weight: 700 }
.legal-content tbody tr:last-child th, .legal-content tbody tr:last-child td { border-bottom: 0 }
.legal-content tbody th { white-space: nowrap }
.media-choice { margin: 20px 0; padding: 22px; border: 1px solid var(--line-2); background: var(--surface) }
.media-choice [data-media-status] { font-weight: 680; color: var(--ink) }
.media-choice__buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px }
.legal-action { padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 0; background: var(--surface-2); color: var(--ink); font: 650 13px/1.3 var(--font); cursor: pointer }
.legal-action:hover, .legal-action:focus-visible { border-color: var(--accent) }
.legal-action[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink) }
@media (max-width: 700px) {
  .legal-shell { width: min(100% - 32px, 600px) }
  .legal-hero { padding-top: 54px }
  .legal-layout { display: block; padding-top: 25px }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 0; margin-bottom: 36px; border-left: 0; border-bottom: 1px solid var(--line-2) }
  .legal-nav a { margin: 0; padding: 8px 10px; border: 0; border-bottom: 2px solid transparent }
  .legal-nav a:hover, .legal-nav a:focus-visible { border-left: 0; border-bottom-color: var(--accent) }
}
