/* Viziblu design system
   Monochrome, editorial, generous whitespace. Light and dark theme (theme.js sets data-theme; no choice = system).
   Accents: signal pink only for the live state, red only for errors and destructive actions.
   --screen tokens are the always-dark video surfaces and stay the same in both themes. */

@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 600;
  src: url("/assets/fonts/albert-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 600;
  src: url("/assets/fonts/albert-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* color */
  --paper: #ffffff;
  --ink: #000000;
  --graphite: #5e5e5e;
  --line: #e4e4e4;
  --wash: #f5f5f3;
  --on-air: #ff2bd6;
  --on-air-text: #0c0c0e;
  --on-air-ink: #b3150d;
  --focus: #000000;
  --ink-hover: #262626;
  --control-line: #bdbdbd;
  --idle: #b5b5b5;
  --on-air-wash: #fff3f2;
  --stage-tile: #2a2a2a;
  --stage-tile-ink: #d8d8d8;
  --scrim: rgba(0, 0, 0, .4);
  --screen: #0c0c0e; --screen-text: #f4f4f2;
  --screen-ink: #ffffff;
  --screen-muted: #9a9aa0;
  --slide: #f4f4f2;
  --slide-ink: #0c0c0e;
  --logo: url("/assets/logo.svg");
  --logo-core: #0c0c0e; --logo-cy: #00c4e8; --logo-mg: #ff2bd6;
  color-scheme: light;

  /* type */
  --font: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --t-display: clamp(2.5rem, 5.4vw, 4.375rem);
  --t-section: clamp(2rem, 3.6vw, 2.75rem);
  --t-h1: clamp(2rem, 3.6vw, 2.75rem);
  --t-h2: 1.5rem;
  --t-body: 1rem;
  --t-small: .875rem;

  /* space */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --control: 48px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c0c0e; --ink: #f4f4f2; --graphite: #a3a3a0; --line: #26262a; --wash: #17171a;
    --on-air-ink: #ff6b61; --on-air-wash: #2a1211; --focus: #00f0ff; --ink-hover: #d9d9d6;
    --control-line: #4a4a50; --idle: #5a5a60; --stage-tile: #2a2a2e; --scrim: rgba(0, 0, 0, .6);
    --logo: url("/assets/logo-dark.svg");
    --logo-core: #ffffff; --logo-cy: #00f0ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c0c0e; --ink: #f4f4f2; --graphite: #a3a3a0; --line: #26262a; --wash: #17171a;
  --on-air-ink: #ff6b61; --on-air-wash: #2a1211; --focus: #00f0ff; --ink-hover: #d9d9d6;
  --control-line: #4a4a50; --idle: #5a5a60; --stage-tile: #2a2a2e; --scrim: rgba(0, 0, 0, .6);
  --logo: url("/assets/logo-dark.svg");
  --logo-core: #ffffff; --logo-cy: #00f0ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 400 var(--t-body)/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3, p { margin: 0; }
h1 { font-size: var(--t-h1); font-weight: 400; line-height: 1.05; letter-spacing: -.035em; }
h2 { font-size: var(--t-h2); font-weight: 400; line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: 1.0625rem; font-weight: 500; line-height: 1.3; }
.muted { color: var(--graphite); }
.small { font-size: var(--t-small); }

/* ---------- layout */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
main { flex: 1; }
.page { padding-top: var(--s7); padding-bottom: var(--s9); }
.page-narrow { max-width: 720px; }

/* ---------- header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 72px; }
.site-header .nav { margin-left: auto; }
.header-tools { display: flex; align-items: center; gap: var(--s2); flex: none; margin-left: auto; }
.nav + .header-tools { margin-left: 0; }
.wordmark { display: block; flex: none; width: 66px; height: 20px; background: var(--logo) left center / contain no-repeat; overflow: hidden; white-space: nowrap; text-indent: 150%; }
.wordmark.has-svg { background: none; text-indent: 0; overflow: visible; }
.logo-anim { display: block; width: 100%; height: 100%; overflow: visible; }
.logo-anim .c { fill: var(--logo-cy); } .logo-anim .m { fill: var(--logo-mg); } .logo-anim .k { fill: var(--logo-core); }
/* A short glitch burst every few seconds: the colour layers jump apart and a slice of the word shifts. */
.logo-anim .c { animation: logo-c 4.2s steps(1) infinite; }
.logo-anim .m { animation: logo-m 4.2s steps(1) infinite; }
.logo-anim .k { animation: logo-k 4.2s steps(1) infinite; }
@keyframes logo-c { 0%, 86%, 100% { transform: none; clip-path: none; } 88% { transform: translate(-136px, 20px); clip-path: inset(10% 0 52% 0); } 91% { transform: translate(150px, -13px); clip-path: inset(60% 0 6% 0); } 94% { transform: translate(-70px, 0); clip-path: none; } }
@keyframes logo-m { 0%, 86%, 100% { transform: none; clip-path: none; } 88% { transform: translate(124px, -20px); clip-path: inset(44% 0 26% 0); } 91% { transform: translate(-162px, 13px); clip-path: inset(4% 0 70% 0); } 94% { transform: translate(70px, 0); clip-path: none; } }
@keyframes logo-k { 0%, 87%, 100% { transform: none; clip-path: none; } 88% { transform: translate(140px, 0); clip-path: inset(38% 0 34% 0); } 90% { transform: translate(-90px, 0); clip-path: inset(70% 0 4% 0); } 92% { transform: none; clip-path: none; } }
.wordmark:hover .logo-anim g { animation-duration: .9s; }
@media (prefers-reduced-motion: reduce) { .logo-anim g { animation: none !important; } }
.logo-glitch { display: block; width: 100%; height: 100%; overflow: visible; }
.logo-glitch .c { fill: var(--logo-cy); } .logo-glitch .m { fill: var(--logo-mg); }
.logo-glitch .k, .logo-glitch .line { fill: var(--logo-core); } .logo-glitch .dot { fill: var(--logo-mg); }
.lang-select { flex: none; min-height: 44px; padding: 0 28px 0 12px; font: 500 .8125rem/1 var(--font); letter-spacing: .06em; color: var(--ink); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.4'/%3E%3C/svg%3E") right 10px center / 10px 6px no-repeat; border: 1px solid var(--line); border-radius: 999px; appearance: none; cursor: pointer; }
.lang-select:hover { background-color: var(--wash); }
.lang-select option { color: var(--ink); background: var(--paper); }
.theme-toggle, .account-link { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.theme-toggle:hover, .account-link:hover { background: var(--wash); }
.nav { display: flex; align-items: center; gap: var(--s5); font-size: var(--t-small); }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }
.nav .nav-short { display: none; }
.nav .who { color: var(--graphite); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct { position: relative; flex: none; }
.avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--wash); color: var(--ink); font: 500 .8125rem/1 var(--font); letter-spacing: .04em; text-decoration: none; overflow: hidden; cursor: pointer; }
.avatar[aria-expanded="true"] { border-color: var(--ink); }
.acct-menu { position: absolute; right: 0; top: calc(100% + var(--s2)); z-index: 40; min-width: 240px; max-width: calc(100vw - 32px); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, .14); padding: var(--s2) 0; display: grid; }
.acct-menu[hidden] { display: none; }
.acct-head { display: grid; gap: 2px; padding: var(--s2) var(--s4) var(--s3); border-bottom: 1px solid var(--line); margin-bottom: var(--s1); overflow-wrap: anywhere; }
.acct-head b { font-weight: 500; font-size: var(--t-small); }
.acct-head span { font-size: .8125rem; color: var(--graphite); }
.acct-menu a, .acct-out { display: flex; align-items: center; min-height: 44px; padding: 0 var(--s4); font: inherit; font-size: var(--t-small); color: var(--ink); text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; }
.acct-menu a:hover, .acct-out:hover, .acct-menu a:focus-visible, .acct-out:focus-visible { background: var(--wash); outline: none; }
.acct-out { border-top: 1px solid var(--line); margin-top: var(--s1); }
.avatar:hover { border-color: var(--ink); }
.avatar:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.avatar[aria-current="page"] { border-color: var(--ink); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.site-footer { border-top: 1px solid var(--line); padding: var(--s6) 0; font-size: var(--t-small); color: var(--graphite); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  /* Uppercase text: letter-spacing trails after the last letter and caps have no descenders,
     so the padding is nudged to centre the ink, not the text box. */
  min-height: 52px; padding: .14em 28px 0 calc(28px + .11em);
  font: 500 .875rem/1 var(--font); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--paper); background: var(--ink); border: 1.5px solid var(--ink); border-radius: 0; cursor: pointer;
}
/* Hover in the logo colours: the frame turns into a cyan to magenta gradient, the fill stays (proposal 3). */
.btn { transition: color .15s ease; }
.btn:hover { text-decoration: none; }
.btn:not(.btn-danger):not(:disabled):hover {
  border-color: transparent;
  background: linear-gradient(var(--ink), var(--ink)) padding-box, linear-gradient(90deg, var(--logo-cy), var(--logo-mg)) border-box;
}
/* Disabled: an outline in grey instead of a faded fill, the same for every button style. */
.btn:disabled, .btn.btn-outline:disabled, .btn.btn-danger:disabled { background: transparent; color: var(--graphite); border-color: var(--control-line); opacity: 1; cursor: not-allowed; }
.btn-outline { color: var(--ink); background: var(--paper); }
.btn.btn-outline:not(.btn-danger):not(:disabled):hover,
.btn.btn-invert:not(.btn-danger):not(:disabled):hover {
  background: linear-gradient(var(--paper), var(--paper)) padding-box, linear-gradient(90deg, var(--logo-cy), var(--logo-mg)) border-box;
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.btn-danger { color: var(--on-air-ink); background: var(--paper); border-color: var(--on-air-ink); }
.btn-danger:hover { background: var(--on-air-wash); }
.btn-small { min-height: 42px; padding: .14em var(--s4) 0 calc(var(--s4) + .11em); font-size: .75rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; cursor: pointer; }
/* Same hover as text links: the underline gets thicker. */
.link-btn:not(:disabled):hover { text-decoration-thickness: 2px; }
.back { display: inline-block; font-size: var(--t-small); margin-bottom: var(--s5); }

/* ---------- forms */
.field { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.field > label, .label { font-size: var(--t-small); font-weight: 500; }
.hint { font-size: var(--t-small); color: var(--graphite); }
.input {
  width: 100%; min-height: var(--control); padding: 0 var(--s4);
  font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--paper);
  border: 1px solid var(--control-line); border-radius: 0;
}
.input:hover { border-color: var(--ink); }
/* Safari and iOS draw select and search fields natively (rounded); the design is square everywhere. */
select.input, input.input[type=search] { -webkit-appearance: none; appearance: none; border-radius: 0; }
select.input { padding-right: 36px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 10px 6px; }
input.input[type=search]::-webkit-search-decoration { -webkit-appearance: none; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.input[aria-invalid="true"] { border-color: var(--on-air-ink); }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: flex; align-items: center; padding: 0 var(--s3); background: var(--wash); border: 1px solid var(--control-line); border-right: 0; color: var(--graphite); font-size: .9375rem; white-space: nowrap; }
.slug-status { font-size: var(--t-small); font-weight: 600; min-height: 1.4em; }
.slug-status[data-state="taken"] { color: var(--on-air-ink); }
.slug-status[data-state="checking"] { color: var(--graphite); font-weight: 400; }
.form-error { color: var(--on-air-ink); font-size: var(--t-small); }

/* ---------- copy fields */
.copy { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.copy-row { display: flex; gap: var(--s2); }
.copy-row .input { font-family: var(--mono); font-size: .875rem; background: var(--wash); border-color: var(--wash); min-width: 0; }
.copy-row .input:hover { border-color: var(--wash); }

/* ---------- live state */
.live { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--t-small); font-weight: 600; white-space: nowrap; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--idle); flex: none; }
.live[data-live="true"] { background: var(--on-air); color: var(--on-air-text); padding: 3px 10px; border-radius: 999px; }
.live[data-live="true"]::before { background: var(--on-air-text); animation: pulse 1.6s ease-in-out infinite; }
.live[data-live="false"] { color: var(--graphite); font-weight: 400; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live[data-live="true"]::before { animation: none; } }

/* ---------- player */
.player { position: relative; aspect-ratio: 16 / 9; background: var(--screen); outline: 1px solid var(--line); overflow: hidden; }
.player video { width: 100%; height: 100%; background: var(--screen); }
.player-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s5); color: var(--screen-muted); text-align: center; background: var(--screen); pointer-events: none; }
/* Countdown to the planned start, on the dark player */
.cd { display: grid; justify-items: center; gap: var(--s2); }
.cd-mark { width: clamp(28px, 5vw, 44px); height: auto; margin-bottom: var(--s2); }
.cd-label { font-size: var(--t-small); letter-spacing: .08em; text-transform: uppercase; }
.cd-time { color: var(--screen-text, #f4f4f2); font-size: clamp(2rem, 7vw, 4.5rem); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cd-units { display: flex; gap: clamp(1.25rem, 5vw, 3.25rem); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.cd-when { margin-top: var(--s2); font-size: var(--t-small); }

/* ---------- landing (main site): regular-weight headings, black chapter with numbered rows */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s8); align-items: start; padding-top: var(--s9); padding-bottom: var(--s8); }
.hero h1 { font-size: var(--t-display); line-height: 1.02; letter-spacing: -.04em; font-weight: 400; text-wrap: balance; }
.hero .side { display: grid; gap: var(--s6); justify-items: start; }
.hero .lede { font-size: 1.25rem; line-height: 1.5; max-width: 34ch; color: var(--graphite); }
.hero .actions { display: flex; gap: var(--s3); flex-wrap: wrap; }
.media { padding-bottom: var(--s9); }
.stage-img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.chapter-img { display: block; width: 100%; height: auto; margin-top: var(--s7); border: 1px solid var(--chapter-line); }
.section-h { font-size: var(--t-section); font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
.chapter { background: var(--ink); color: var(--paper); --chapter-muted: color-mix(in srgb, var(--paper) 62%, var(--ink)); --chapter-line: color-mix(in srgb, var(--paper) 22%, var(--ink)); padding: var(--s9) 0; }
.steps { list-style: none; margin: var(--s8) 0 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s5); align-items: baseline; padding: var(--s6) 0; border-top: 1px solid var(--chapter-line); }
.steps .n { font-size: 4rem; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.875rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.steps p { color: var(--chapter-muted); margin-top: var(--s2); max-width: 48ch; font-size: 1.0625rem; }
.section { padding-top: var(--s9); }
.section-p { margin-top: var(--s4); max-width: 60ch; font-size: 1.125rem; line-height: 1.55; color: var(--graphite); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--s5); margin-top: var(--s7); }
.facts > div { border: 1px solid var(--line); padding: var(--s6); display: grid; gap: var(--s3); align-content: start; }
.facts h3 { font-size: 1.25rem; }
.facts p { color: var(--graphite); }
/* Use cases: a 3 by 2 list of ruled rows */
.uses { list-style: none; margin: var(--s7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s6) var(--s7); }
.uses li { border-top: 1px solid var(--ink); padding-top: var(--s4); display: grid; gap: var(--s2); align-content: start; min-width: 0; }
.uses h3 { font-size: 1.375rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.uses p { color: var(--graphite); max-width: 42ch; }
/* Two ways to use Viziblu: light panel and inverted panel */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--s5); margin-top: var(--s7); }
.path { border: 1px solid var(--ink); padding: var(--s7) var(--s6); display: grid; gap: var(--s4); align-content: start; justify-items: start; min-width: 0; }
.path h3 { font-size: 1.875rem; font-weight: 400; letter-spacing: -.025em; line-height: 1.1; }
.path p { color: var(--graphite); max-width: 44ch; font-size: 1.0625rem; }
.path .btn { margin-top: var(--s3); }
.path-ink { background: var(--ink); color: var(--paper); }
.path-ink p { color: color-mix(in srgb, var(--paper) 70%, var(--ink)); }
.btn-invert { color: var(--ink); background: var(--paper); border-color: var(--paper); }
/* Professional production: dark chapter with a recording mark */
.production { margin-top: var(--s9); }
.production-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
.rec { display: flex; align-items: center; gap: var(--s2); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--chapter-muted); margin-bottom: var(--s4); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--on-air); animation: rec-blink 1.6s steps(1) infinite; }
@keyframes rec-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.production-text { display: grid; gap: var(--s4); justify-items: start; }
.production-text p { color: var(--chapter-muted); font-size: 1.125rem; max-width: 46ch; }
.production-text .production-close { color: var(--paper); }
.production-text .btn { margin-top: var(--s3); }
.contact { padding-bottom: var(--s9); display: grid; gap: var(--s5); }
.contact .lede { font-size: 1.25rem; max-width: 60ch; color: var(--graphite); }
.contact-label { color: var(--graphite); margin-bottom: calc(var(--s5) * -1 + var(--s1)); }
.contact-mail { font-size: var(--t-section); font-weight: 400; letter-spacing: -.035em; line-height: 1.1; }
.contact-mail a { text-decoration-thickness: 1px; text-underline-offset: .15em; overflow-wrap: anywhere; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.lede-small { color: var(--graphite); margin: var(--s4) 0 var(--s6); max-width: 52ch; }
/* Legal pages (privacy policy, terms): one narrow article */
.legal-updated { color: var(--graphite); font-size: var(--t-small); margin-top: calc(-1 * var(--s4)); }
.legal .lede-small { max-width: 64ch; font-size: 1.125rem; }
.legal section { margin-top: var(--s7); }
.legal h2 { font-size: 1.5rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; margin-bottom: var(--s3); }
.legal p, .legal li { color: var(--graphite); line-height: 1.6; margin-top: var(--s3); max-width: 64ch; }
.legal ul { padding-left: 1.2em; }
.table-wrap { overflow-x: auto; margin-top: var(--s4); }
.legal-table { border-collapse: collapse; width: 100%; font-size: var(--t-small); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: var(--s2) var(--s3) var(--s2) 0; border-bottom: 1px solid var(--line); }
.legal-table th { font-weight: 500; color: var(--ink); }
.legal-table td { color: var(--graphite); }
.legal-table td:first-child { font-family: var(--mono); color: var(--ink); white-space: nowrap; }

/* ---------- auth */
.auth { max-width: 420px; padding-top: var(--s8); padding-bottom: var(--s9); }
.auth h1 { margin-bottom: var(--s6); }
.auth .hint { margin-top: var(--s5); }
#code-sent { margin-bottom: var(--s5); }
.auth .form-error:not([hidden]) { margin-bottom: var(--s4); }
.auth-links { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s5); font-size: var(--t-small); }
.link-btn:disabled { color: var(--graphite); text-decoration: none; cursor: default; }
.code-input { font: 500 1.5rem/1 var(--mono); letter-spacing: .35em; }
.plan-note { margin-top: var(--s4); color: var(--graphite); font-size: var(--t-small); }
.auth-alt { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); color: var(--graphite); }
.auth-alt a { color: var(--ink); font-weight: 500; }

/* ---------- dashboard list */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.events { list-style: none; margin: 0; padding: 0; }
.empty { padding: var(--s8) 0; max-width: 52ch; }
.empty p { color: var(--graphite); margin: var(--s3) 0 var(--s5); }

/* ---------- source picker */
.sources-field { border: 0; padding: 0; margin: 0 0 var(--s6); min-width: 0; }
.sources-field legend { padding: 0; margin-bottom: var(--s2); }
.page-narrow h1 { margin-bottom: var(--s6); }
.sources { display: grid; gap: var(--s2); }
.source-option { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; padding: var(--s4); border: 1px solid var(--control-line); cursor: pointer; }
.source-option:hover { border-color: var(--ink); }
.source-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.source-option:has(input:disabled) { cursor: not-allowed; color: var(--graphite); border-style: dashed; }
.source-option input { margin: 4px 0 0; accent-color: var(--ink); width: 18px; height: 18px; }
.source-option strong { display: block; font-weight: 500; }
.source-option small { display: block; color: var(--graphite); font-size: var(--t-small); }
.sources-field > .hint { display: block; margin: calc(-1 * var(--s1)) 0 var(--s3); }
.source-cat { grid-template-columns: auto auto minmax(0, 1fr); }
.src-ic { width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.src-help { margin-top: var(--s4); padding: var(--s4); background: var(--wash); display: grid; gap: var(--s1); justify-items: start; }
.src-help strong { font-weight: 500; }
.src-help p { color: var(--graphite); font-size: var(--t-small); margin: 0 0 var(--s2); }
.src-pick { max-width: 360px; margin-bottom: var(--s5); }
.src-pick[hidden] { display: none; }
/* compatibility catalog (dialog) */
dialog.catalog { max-width: 600px; max-height: min(720px, calc(100dvh - 32px)); padding: var(--s5); overflow: auto; }
.catalog-head { display: flex; gap: var(--s3); align-items: start; justify-content: space-between; margin-bottom: var(--s4); }
.catalog-head h2 { margin: 0; }
.catalog .chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0; }
.catalog .chip { min-height: 36px; padding: 0 var(--s3); border: 1px solid var(--control-line); background: var(--paper); color: var(--ink); font: var(--t-small)/1.2 var(--font); cursor: pointer; }
.catalog .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cat-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cat-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.cat-items b { font-weight: 500; }
.cat-items .tag { font-size: 12px; color: var(--graphite); align-self: center; text-align: right; }
.cat-items p { grid-column: 1 / -1; margin: 0; color: var(--graphite); font-size: var(--t-small); }
.cat-items li.limit b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--on-air); margin-left: var(--s2); vertical-align: middle; }
.cat-items .cat-empty { display: block; color: var(--graphite); font-size: var(--t-small); }
.cat-note { margin-top: var(--s3); }
@media (max-width: 560px) {
  dialog.catalog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; padding: var(--s4) max(16px, env(safe-area-inset-right, 0px)) var(--s4) max(16px, env(safe-area-inset-left, 0px)); }
}

/* ---------- event detail */
.event-head { display: grid; gap: var(--s3); padding-bottom: var(--s6); }
.event-head .meta { display: flex; gap: var(--s5); align-items: center; flex-wrap: wrap; font-size: var(--t-small); }
.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s8); padding-top: var(--s6); }
.cols h2 { margin-bottom: var(--s5); }
.share { margin-top: var(--s6); padding: var(--s5); background: var(--wash); }
/* Streaming from the browser (panel) */
.studio { padding-top: var(--s6); margin-top: var(--s6); border-top: 1px solid var(--line); display: grid; gap: var(--s4); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.studio-screen { background: var(--screen); aspect-ratio: 16 / 9; max-width: 100%; }
.studio-screen video { width: 100%; height: 100%; object-fit: contain; display: block; }
.studio-ctrl { display: grid; gap: var(--s3); }
.studio-ctrl .field { margin: 0; }
.studio .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.studio .seg label { padding: var(--s2) var(--s2); line-height: 1.2; }
.studio .seg label + label { border-left: 1px solid var(--ink); }
/* copies of the stream (restream.js) */
.rs-list { list-style: none; margin: var(--s4) 0 0; padding: 0; border-top: 1px solid var(--line); }
.rs-list:empty { display: none; }
.rs-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1) var(--s4); align-items: center; padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.rs-item b { font-weight: 500; overflow-wrap: anywhere; }
.rs-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); align-items: center; font-size: var(--t-small); color: var(--graphite); }
.rs-meta .link-btn { font-size: var(--t-small); min-height: 32px; }
.rs-state { grid-column: 1 / -1; display: flex; gap: var(--s2); align-items: flex-start; font-size: var(--t-small); }
.rs-state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; margin-top: .4em; flex: none; background: var(--idle); }
.rs-state[data-s="sending"]::before { background: var(--on-air); }
.rs-state[data-s="connecting"]::before { background: var(--on-air); opacity: .5; }
.rs-state[data-s="error"], .rs-state[data-s="dropped"] { color: var(--on-air-ink); }
.rs-state[data-s="error"]::before, .rs-state[data-s="dropped"]::before { background: var(--on-air-ink); }
.rs-switch { position: relative; width: 48px; height: 28px; border-radius: 14px; border: 0; padding: 0; background: var(--control-line); cursor: pointer; flex: none; }
.rs-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); transition: left .15s; }
.rs-switch[aria-checked="true"] { background: var(--ink); }
.rs-switch[aria-checked="true"]::after { left: 23px; }
.rs-switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .rs-switch::after { transition: none; } }
.rs-add { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.rs-form { margin-top: var(--s4); padding: var(--s5); background: var(--wash); display: grid; gap: var(--s3); max-width: 640px; }
.rs-form h3 { margin: 0; }
.rs-form .field { margin: 0; }
.rs-form .hint { margin: 0; }
.row-btns { display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (max-width: 860px) { .studio-grid { grid-template-columns: minmax(0, 1fr); } }

/* Sign-ups: viewer card and panel grid */
.signup-card { border: 1.5px solid var(--ink); padding: var(--s5); margin-top: var(--s4); display: grid; gap: var(--s3); }
.signup-card h2 { font-size: 1.25rem; font-weight: 400; letter-spacing: -.01em; }
.signup-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: var(--s3); align-items: end; }
.signup-form .field { margin: 0; }
.su-done { font-size: 1rem; }
.su-ics { margin-left: var(--s2); }
.signup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 140px)) auto; gap: var(--s3); align-items: end; margin: var(--s3) 0; }
.signup-grid .field { margin: 0; }
@media (max-width: 760px) { .signup-form, .signup-grid { grid-template-columns: minmax(0, 1fr); } }

/* Questions and polls (panel) */
.qa-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); margin-top: var(--s5); }
.qa-cols h3 { margin-bottom: var(--s3); }
.poll-form { display: grid; gap: var(--s3); margin-bottom: var(--s4); }
.poll-form .field { margin: 0; }
.row-actions { display: flex; gap: var(--s3); flex-wrap: wrap; font-size: var(--t-small); }
.plain-list li.org-poll { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1); justify-content: stretch; }

/* Offer button (panel and viewer page) and statistics */
.cta-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: var(--s3); align-items: end; margin: var(--s4) 0; }
.cta-form .field { margin: 0; }
.cta-bar { display: flex; justify-content: center; padding: var(--s4) 0 0; }
.cta-bar .btn { white-space: normal; text-align: center; max-width: 100%; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: var(--s4); margin: var(--s5) 0; }
.stats-grid div { border-top: 1px solid var(--ink); padding-top: var(--s2); display: grid; gap: var(--s1); }
.stats-grid dt { font-size: var(--t-small); color: var(--graphite); }
.stats-grid dd { margin: 0; font-size: 1.75rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats-chart { margin: 0 0 var(--s4); display: grid; gap: var(--s2); }
.stats-chart svg { width: 100%; height: 140px; display: block; border-bottom: 1px solid var(--line); }
.stats-chart .area { fill: color-mix(in srgb, var(--logo-cy) 18%, transparent); }
.stats-chart .line { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* How you stream: segmented switch, planned start, recording (variant C) */
.mode-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5) var(--s7); align-items: start; padding-top: var(--s6); }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); margin: 0; padding: 0; min-width: 0; }
.seg label { position: relative; display: grid; place-items: center; min-height: 48px; padding: 0 var(--s4); font-size: .9375rem; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--ink); color: var(--paper); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.slots { margin: 0; display: grid; gap: var(--s2); min-width: 0; }
.slots .label { font-weight: 500; }
.slots .inline-form { align-items: center; flex-wrap: wrap; }
.slots .input { max-width: 260px; }
.slot-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.slot-list li { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s2) 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.slot-list li.is-played span:first-child { color: var(--graphite); text-decoration: line-through; }
.recording { display: grid; gap: var(--s4); padding-top: var(--s6); margin-top: var(--s6); border-top: 1px solid var(--line); justify-items: start; }
.recording > * { max-width: 72ch; width: 100%; }
.rec-file { border: 1px solid var(--line); padding: var(--s4); display: grid; gap: var(--s3); }
.rec-file-top { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: space-between; align-items: baseline; min-width: 0; }
.rec-file-top strong { font-weight: 500; overflow-wrap: anywhere; }
.rec-bar { height: 6px; background: var(--wash); position: relative; overflow: hidden; }
.rec-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--logo-cy), var(--logo-mg)); transition: width .3s ease; }
.rec-status { font-size: var(--t-small); }
.drop { border: 1.5px dashed var(--line); padding: var(--s6) var(--s4); display: grid; justify-items: center; gap: var(--s2); text-align: center; cursor: pointer; }
.drop.is-over, .drop:focus-within { border-color: var(--ink); }
.rec-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.rec-actions:not(:has(button:not([hidden]))) { display: none; }
.note { font-size: var(--t-small); padding: var(--s3) var(--s4); background: var(--wash); border-left: 3px solid var(--logo-mg); }
.takeover { border: 1px solid var(--line); padding: var(--s4); }
.takeover summary { cursor: pointer; font-weight: 500; }
.takeover[open] summary { margin-bottom: var(--s3); }
.takeover > p { color: var(--graphite); margin-bottom: var(--s4); }
@media (prefers-reduced-motion: reduce) { .rec-bar i { transition: none; } }
.access { display: grid; gap: var(--s5); }
.access .sources-field { margin-bottom: 0; }
.textarea { min-height: 140px; padding: var(--s3) var(--s4); font-family: var(--mono); font-size: .875rem; resize: vertical; }
.access-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--s6); }
.access-lists h3 { margin-bottom: var(--s3); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; max-height: 360px; overflow-y: auto; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); overflow-wrap: anywhere; }
.plain-list li.is-hidden { opacity: .5; }
.plain-list .muted { flex: none; }
.share p { font-size: var(--t-small); color: var(--graphite); margin: var(--s2) 0 var(--s4); }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; background: var(--ink); border: 1px solid var(--ink); margin-bottom: var(--s5); }
.tab { min-height: 44px; padding: 0 var(--s3); font: 500 var(--t-small)/1.2 var(--font); color: var(--ink); background: var(--paper); border: 0; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.instructions ol { margin: 0; padding-left: 1.25rem; }
.instructions li { margin-bottom: var(--s3); padding-left: var(--s1); }
.instructions .req { margin-bottom: var(--s5); padding: var(--s4); border-left: 2px solid var(--ink); background: var(--wash); font-size: var(--t-small); }
.instructions .req ul { margin: var(--s2) 0 0; padding-left: 1.1rem; }
.instructions .notes { margin-top: var(--s5); font-size: var(--t-small); color: var(--graphite); }
.instructions .notes p + p { margin-top: var(--s2); }
.settings { margin-top: var(--s9); padding-top: var(--s6); border-top: 1px solid var(--ink); }
.settings-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5); align-items: center; padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.settings-row.single { grid-template-columns: 1fr; }
.settings-row.single .field { margin-bottom: 0; }
.settings-row p { font-size: var(--t-small); color: var(--graphite); margin-top: 2px; }
.inline-form { display: flex; gap: var(--s2); }

/* ---------- watch */
.watch { padding-top: var(--s6); padding-bottom: var(--s8); }
.watch h1 { margin-bottom: var(--s5); }
.watch .below { display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; margin-top: var(--s4); font-size: var(--t-small); color: var(--graphite); }
.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
.watch-grid:has(.chat:not([hidden])) { grid-template-columns: minmax(0, 1fr) 340px; }
.chat { display: flex; flex-direction: column; gap: var(--s3); border: 1px solid var(--line); padding: var(--s4); min-width: 0; max-height: min(70vh, 640px); }
.chat h2 { font-size: 1.125rem; }
.chat .pane { display: flex; flex-direction: column; gap: var(--s3); flex: 1; min-height: 0; }
.chat .pane[hidden] { display: none; }
.side-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); }
.side-tabs button { min-height: 40px; background: var(--paper); color: var(--ink); border: 0; font: inherit; font-size: .875rem; cursor: pointer; }
.side-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.side-tabs button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.side-tabs:not([hidden]) ~ .pane .pane-h { display: none; }
.poll-card { border: 1.5px solid var(--ink); padding: var(--s4); display: grid; gap: var(--s3); }
.poll-label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); display: flex; align-items: center; gap: var(--s2); }
.poll-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--logo-mg); }
.poll-card h2 { font-size: 1.0625rem; font-weight: 500; }
.poll-opts { display: grid; gap: var(--s2); }
.poll-opt { justify-content: flex-start; text-align: left; white-space: normal; text-transform: none; letter-spacing: 0; font-size: .9375rem; padding: var(--s2) var(--s3); }
.poll-result { position: relative; display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s2) var(--s3); font-size: .9375rem; isolation: isolate; border: 1px solid var(--line); }
.poll-result i { position: absolute; inset: 0 auto 0 0; z-index: -1; background: color-mix(in srgb, var(--logo-cy) 22%, transparent); }
.poll-result.is-mine { border-color: var(--ink); }
.poll-result b { font-weight: 500; font-variant-numeric: tabular-nums; }
.qa-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 160px; display: grid; align-content: start; gap: var(--s3); overflow-wrap: anywhere; }
.qa-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: start; }
.qa-list b { display: block; font-weight: 500; font-size: var(--t-small); }
.qa-list span { font-size: .9375rem; }
.qa-list .is-answered span { color: var(--graphite); }
.qa-up { min-width: 44px; min-height: 36px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: var(--t-small); font-variant-numeric: tabular-nums; cursor: pointer; }
.qa-up.is-mine { border-color: var(--ink); }
.qa-up:disabled { cursor: default; }
.chat-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 160px; display: grid; align-content: start; gap: var(--s3); overflow-wrap: anywhere; }
.chat-list b { display: block; font-weight: 500; font-size: var(--t-small); }
.chat-list span { font-size: .9375rem; }
.chat-empty { font-size: var(--t-small); }
.chat-form { display: grid; gap: var(--s2); }
.chat-form .input { min-height: 44px; }
.chat-row { display: flex; gap: var(--s2); }
.chat-row .input { min-width: 0; }
.gate { max-width: 440px; display: grid; gap: var(--s5); padding-bottom: var(--s8); }
.viewer-who { margin-top: var(--s5); font-size: var(--t-small); color: var(--graphite); }
@media (max-width: 860px) { .watch-grid:has(.chat:not([hidden])) { grid-template-columns: minmax(0, 1fr); } .chat { max-height: 480px; } }

/* ---------- alerts, users, account */
.alert { border: 1px solid var(--on-air-ink); background: var(--on-air-wash); color: var(--on-air-ink); padding: var(--s4) var(--s5); margin-bottom: var(--s6); }
.alert ul { margin: var(--s2) 0 0; padding-left: 1.1rem; color: var(--ink); }
.user-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.user-row .meta { font-size: var(--t-small); color: var(--graphite); margin-top: 2px; }
.user-row .actions { display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: flex-end; }
.secret-box { margin: var(--s5) 0; padding: var(--s5); background: var(--wash); }
.secret-box p { font-size: var(--t-small); color: var(--graphite); margin-bottom: var(--s3); }
.secret-box .copy-row + p { margin: var(--s3) 0 0; }
.section-title { margin: var(--s8) 0 var(--s5); }
#who { margin-top: calc(-1 * var(--s4)); }
.check { display: flex; gap: var(--s2); align-items: center; font-size: var(--t-small); margin-bottom: var(--s5); }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

/* ---------- toast + dialog */
.toast { position: fixed; left: 50%; bottom: var(--s6); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: var(--s3) var(--s5); font-size: var(--t-small); font-weight: 600; z-index: 10; }
dialog { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 0; padding: var(--s6); max-width: 460px; width: calc(100% - 32px); }
dialog::backdrop { background: var(--scrim); }
dialog h2 { margin-bottom: var(--s3); }
dialog p { color: var(--graphite); }
dialog .actions { display: flex; gap: var(--s2); justify-content: flex-end; margin-top: var(--s6); flex-wrap: wrap; }

/* ---------- responsive */
@media (max-width: 860px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-top: var(--s8); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 72px minmax(0, 1fr); }
  .steps .n { font-size: 2.25rem; }
  .steps h3 { font-size: 1.375rem; }
  .settings-row { grid-template-columns: 1fr; }
  .user-row { grid-template-columns: 1fr; }
  .user-row .actions { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .tabs { grid-auto-flow: row; grid-template-columns: 1fr; }
  .stage { aspect-ratio: 4 / 3; }
  .stage .on-air { top: var(--s4); left: var(--s4); }
  .stage .url { left: var(--s4); bottom: var(--s4); font-size: .75rem; }
  .stage .slide { inset: 18% 30% 18% 6%; padding: var(--s4); }
  .stage .speaker { right: var(--s4); bottom: 18%; width: 22%; }
  .section { padding-top: var(--s8); }
  .chapter { padding: var(--s8) 0; }
  .production-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .production { margin-top: var(--s8); }
  .path { padding: var(--s6) var(--s5); }
  .media { padding-bottom: var(--s8); }
  .nav .who { display: none; }
  .avatar { width: 40px; height: 40px; }
  .nav, .site-header .wrap { gap: var(--s3); }
  .wordmark { width: 60px; height: 18px; }
  .nav a { white-space: nowrap; }
  .nav a[href^="#"], .nav a[href*="/#"] { display: none; }
  /* Panel: logo and controls on the first row, account links on the second. */
  .site-header .wrap:has(.nav-panel) { flex-wrap: wrap; row-gap: 0; }
  .site-header .wrap:has(.nav-panel) .header-tools { order: 2; margin-left: auto; }
  .site-header .wrap:has(.nav-panel) .nav { order: 3; flex-basis: 100%; margin-left: 0; padding-bottom: var(--s3); gap: var(--s5); }
  .lang-select { padding: 0 24px 0 10px; background-position: right 8px center; }
  .theme-toggle, .account-link { width: 40px; height: 40px; }
  .copy-row { flex-wrap: wrap; }
  .copy-row .input { flex: 1 1 100%; }
  .copy-row .btn { flex: 1; }
  .inline-form { flex-direction: column; }
  .mode-bar { grid-template-columns: minmax(0, 1fr); }
  .cta-form { grid-template-columns: minmax(0, 1fr); }
  .qa-cols { grid-template-columns: minmax(0, 1fr); }
  .seg { display: grid; }
  .slots .input { max-width: none; }
  .page-head .btn { width: 100%; }
}

/* Embedded player (/embed/<slug> in a frame on another site): only the picture, the countdown and the offer button */
.embed body { background: var(--screen); }
.embed .site-header, .embed #title, .embed .below, .embed #chat, .embed .gate, .embed .skip { display: none !important; }
.embed main, .embed .wrap, .embed .page { max-width: none; margin: 0; padding: 0; }
.embed .watch-grid, .embed .watch-grid:has(.chat:not([hidden])) { display: block; }
.embed .player { outline: 0; }
.embed .cta-bar { position: absolute; left: 0; right: 0; bottom: 56px; padding: 0 var(--s4); pointer-events: none; }
.embed .cta-bar .btn { pointer-events: auto; color: var(--screen); background: var(--screen-text); border-color: var(--screen-text); }
.embed .cta-bar .btn:not(.btn-danger):not(:disabled):hover {
  background: linear-gradient(var(--screen-text), var(--screen-text)) padding-box, linear-gradient(90deg, var(--logo-cy), var(--logo-mg)) border-box;
}
.embed .watch-main { position: relative; }

/* Administration: overview, plan form, blocked badge */
.admin-overview { display: grid; gap: var(--s3); margin: var(--s5) 0 var(--s7); }
.admin-overview .stats-grid dd { font-size: 1.25rem; }
.admin-users-h { margin-bottom: var(--s4); }
.plan-form { display: grid; gap: var(--s2); margin-top: var(--s3); max-width: 520px; }
.plan-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.plan-nums .field { margin: 0; display: grid; gap: var(--s1); font-size: var(--t-small); }
.plan-form .btn { justify-self: start; }
.pill-blocked { display: inline-block; margin-top: var(--s1); padding: 2px 8px; font-size: .75rem; border: 1px solid var(--on-air-ink); color: var(--on-air-ink); }
@media (max-width: 600px) { .plan-nums { grid-template-columns: minmax(0, 1fr); } }

/* ---------- polls: QR code, poll on the player, host messages */
.qr { display: block; width: 100%; height: auto; }
.poll-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.poll-ends { font-size: .75rem; color: var(--graphite); font-variant-numeric: tabular-nums; }
.poll-phone { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--s3); align-items: center; background: var(--wash); padding: var(--s2); font-size: .8125rem; line-height: 1.4; }
.poll-phone b { display: block; font-weight: 500; }
.poll-phone span { color: var(--graphite); }
.poll-hide { min-height: 32px; border: 0; background: none; color: var(--graphite); font: inherit; font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0 var(--s1); }
.poll-hide[hidden] { display: none; }
/* Poll shown on the player (template 2.1): a card in the corner of the video; a sheet from the bottom on phones */
.player .poll-card { position: absolute; right: var(--s4); bottom: var(--s4); width: min(300px, calc(100% - 2 * var(--s4))); max-height: calc(100% - 2 * var(--s4)); overflow-y: auto; background: var(--paper); color: var(--ink); border: 0; box-shadow: 0 12px 32px rgba(0, 0, 0, .4); z-index: 2; }
.poll-reopen { position: absolute; right: var(--s4); bottom: var(--s4); z-index: 2; }
.poll-reopen[hidden] { display: none; }
@media (max-width: 860px) {
  .player .poll-card { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 70vh; padding: var(--s4) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 32px rgba(0, 0, 0, .35); }
  .player .poll-card .poll-opt { min-height: 52px; }
  .player .poll-phone { display: none; }
  .poll-phone { display: none; }
}
.chat-list li.is-host { background: var(--wash); padding: var(--s2) var(--s3); }
.chat-list li.is-host b[data-badge]::after { content: attr(data-badge); margin-left: var(--s2); font-size: .6875rem; font-weight: 500; padding: 1px 8px; border-radius: 99px; background: var(--logo-mg); color: var(--on-air-text); }
.chat:has(> .poll-card:not([hidden])) { max-height: min(92vh, 900px); }
.chat:has(> .poll-card:not([hidden])) .chat-list { min-height: 120px; }
.qa-list .earlier { display: block; font-size: .75rem; color: var(--graphite); }

/* ---------- voting from a phone (/v/<code>) */
.vote-page { min-height: 100vh; display: flex; flex-direction: column; }
.vote-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s4) max(var(--s5), env(safe-area-inset-right, 0px)) var(--s4) max(var(--s5), env(safe-area-inset-left, 0px)); font-size: var(--t-small); }
.vote { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: var(--s5) max(var(--s5), env(safe-area-inset-right, 0px)) var(--s7) max(var(--s5), env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: var(--s5); box-sizing: border-box; }
.vote h1 { font-size: 2.25rem; font-weight: 400; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; overflow-wrap: anywhere; }
.vote-enter { display: grid; gap: var(--s5); }
.vote-enter .field { margin: 0; }
.vote-enter .code-input { text-transform: uppercase; }
.vote-poll { display: grid; gap: var(--s4); }
.vote-opts { display: grid; gap: var(--s3); }
.vote-opt { min-height: 64px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); text-align: left; padding: var(--s3) var(--s5); font: inherit; font-size: 1.125rem; cursor: pointer; overflow-wrap: anywhere; }
.vote-opt:hover:not(:disabled) { background: var(--wash); }
.vote-opt:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vote-opt:disabled { opacity: .6; cursor: default; }
.vote-result { display: grid; gap: 6px; }
.vote-result-top { display: flex; justify-content: space-between; gap: var(--s3); font-size: 1.0625rem; overflow-wrap: anywhere; }
.vote-result-top b { font-weight: 500; font-variant-numeric: tabular-nums; }
.vote-result.is-mine .vote-result-top { font-weight: 500; }
.vote-bar { height: 12px; background: var(--wash); }
.vote-bar i { display: block; height: 100%; background: var(--ink); }
.vote-result.is-mine .vote-bar i { background: var(--logo-mg); }
.vote-saved { display: flex; align-items: center; gap: var(--s2); font-weight: 500; }
.vote-saved::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--logo-mg); flex: none; }
.vote-note { font-size: var(--t-small); background: var(--wash); padding: var(--s3) var(--s4); }
.vote-watch { margin-top: auto; }

/* ---------- presentation screen (/present/<slug>): templates light (1A), dark (1B), overlay (1C).
   Sizes are in em of a base that fits 16:9 at any window size (20 px at 1280 x 720). Always-light and always-dark
   tokens only, so the screen looks the same whatever the computer's theme. */
.present-page { margin: 0; min-height: 100vh; font-size: min(1.5625vw, 2.778vh); --pr-bg: var(--slide); --pr-ink: var(--slide-ink); --pr-muted: color-mix(in srgb, var(--slide-ink) 64%, var(--slide)); --pr-line: color-mix(in srgb, var(--slide-ink) 12%, var(--slide)); --pr-track: color-mix(in srgb, var(--slide-ink) 6%, var(--slide)); --pr-fill: var(--slide-ink); background: var(--pr-bg); color: var(--pr-ink); overflow: hidden; }
.present-page[data-style="dark"] { --pr-bg: var(--screen); --pr-ink: var(--screen-text); --pr-muted: var(--screen-muted); --pr-line: color-mix(in srgb, var(--screen-text) 14%, var(--screen)); --pr-track: color-mix(in srgb, var(--screen-text) 9%, var(--screen)); --pr-fill: color-mix(in srgb, var(--screen-text) 28%, var(--screen)); }
.present-page[data-style="overlay"] { background: transparent; }
.present { box-sizing: border-box; height: 100vh; padding: 2em 3.2em; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1.6em; }
.present[hidden] { display: none; }
.pr-top { display: flex; align-items: center; gap: 1em; }
.pr-mark { width: 5em; height: 1.55em; background: url("/assets/logo.svg") left center / contain no-repeat; overflow: hidden; text-indent: 150%; white-space: nowrap; flex: none; }
.present-page[data-style="dark"] .pr-mark { background-image: url("/assets/logo-dark.svg"); }
.pr-event { margin-left: auto; font-size: .8em; color: var(--pr-muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pr-pill { display: inline-flex; align-items: center; gap: .4em; font-size: .7em; font-weight: 500; padding: .3em .8em; border-radius: 99px; background: var(--pr-track); color: var(--pr-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-pill[data-live="true"] { background: var(--on-air); color: var(--on-air-text); }
.pr-pill[data-live="true"]::before { content: ""; width: .4em; height: .4em; border-radius: 50%; background: currentColor; }
.pr-body { display: grid; grid-template-columns: 19em minmax(0, 1fr); gap: 4em; align-items: center; min-height: 0; }
.pr-join { display: grid; gap: 1em; }
.pr-qr { width: 15.8em; padding: .8em; background: var(--screen-ink); border: 1px solid var(--pr-line); }
.pr-scan { font-size: 1.1em; font-weight: 500; }
.pr-or { font-size: .8em; color: var(--pr-muted); }
.pr-code { font-size: 3.2em; font-weight: 500; letter-spacing: .08em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pr-poll { display: grid; gap: 1.8em; min-width: 0; }
.pr-q { font-size: 3em; font-weight: 400; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; overflow-wrap: anywhere; }
.pr-results { display: grid; gap: 1.1em; }
.pr-row { display: grid; gap: .4em; }
.pr-row-top { display: flex; justify-content: space-between; gap: 1em; font-size: 1.1em; overflow-wrap: anywhere; }
.pr-row-top b { font-weight: 400; font-variant-numeric: tabular-nums; }
.pr-row.is-top .pr-row-top { font-weight: 500; }
.pr-bar { height: .8em; background: var(--pr-track); }
.pr-bar i { display: block; height: 100%; background: var(--pr-fill); transition: width .6s ease; }
.pr-row.is-top .pr-bar i { background: var(--on-air); }
.pr-foot { display: flex; justify-content: space-between; gap: 2em; border-top: 1px solid var(--pr-line); padding-top: .8em; font-size: .8em; color: var(--pr-muted); }
.pr-votes { display: inline-flex; align-items: center; gap: .5em; }
.pr-votes:not(:empty)::before { content: ""; width: .4em; height: .4em; border-radius: 50%; background: var(--on-air); }
.pr-error { margin: 0; padding: 2em; font-size: 18px; color: var(--pr-ink); }
.present-page[data-empty="true"] .pr-results, .present-page[data-empty="true"] .pr-foot .pr-votes { display: none; }
/* 1B dark: results first and large, the code small in the corner */
.present-page[data-style="dark"] .pr-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 1.4em; align-items: start; }
.present-page[data-style="dark"] .pr-poll { grid-row: 1; }
.present-page[data-style="dark"] .pr-join { grid-row: 2; justify-self: end; grid-template-columns: auto auto; align-items: center; gap: 1em; }
.present-page[data-style="dark"] .pr-qr { grid-column: 2; width: 5.4em; padding: .3em; border: 0; }
.present-page[data-style="dark"] .pr-join-text { grid-column: 1; grid-row: 1; text-align: right; }
.present-page[data-style="dark"] .pr-scan { display: none; }
.present-page[data-style="dark"] .pr-code { font-size: 1.8em; }
.present-page[data-style="dark"] .pr-poll { gap: 1.2em; }
.present-page[data-style="dark"] .pr-q { font-size: 3.4em; letter-spacing: -.04em; line-height: 1; }
.present-page[data-style="dark"] .pr-results { gap: .7em; }
.present-page[data-style="dark"] .pr-row { position: relative; display: block; height: 2.6em; background: var(--pr-track); }
.present-page[data-style="dark"] .pr-bar { position: absolute; inset: 0; height: auto; background: none; }
.present-page[data-style="dark"] .pr-row-top { position: relative; height: 100%; align-items: center; padding: 0 1.2em; font-size: 1.3em; z-index: 1; }
.present-page[data-style="dark"] .pr-row.is-top .pr-row-top span { color: var(--on-air-text); }
/* 1C overlay: a bar on the bottom of the camera picture, nothing at all while there is no poll */
.present-page[data-style="overlay"] .present { padding: 0 2em 2em; grid-template-rows: minmax(0, 1fr) auto; }
.present-page[data-style="overlay"] .pr-top, .present-page[data-style="overlay"] .pr-foot { display: none; }
.present-page[data-style="overlay"] .pr-body { align-self: end; grid-template-columns: 8.4em minmax(0, 1fr) auto; gap: 1.6em; padding: 1em 1.4em 1em 1em; background: var(--slide); color: var(--slide-ink); box-shadow: 0 .9em 2em rgba(0, 0, 0, .35); }
.present-page[data-style="overlay"] .pr-join { display: contents; }
.present-page[data-style="overlay"] .pr-qr { grid-column: 1; grid-row: 1; width: 8.4em; padding: 0; border: 0; }
.present-page[data-style="overlay"] .pr-join-text { grid-column: 3; grid-row: 1; border-left: 1px solid var(--pr-line); padding-left: 1.4em; display: grid; gap: .2em; }
.present-page[data-style="overlay"] .pr-scan { display: none; }
.present-page[data-style="overlay"] .pr-code { font-size: 2.2em; }
.present-page[data-style="overlay"] .pr-poll { grid-column: 2; grid-row: 1; gap: .7em; }
.present-page[data-style="overlay"] .pr-q { font-size: 1.7em; }
.present-page[data-style="overlay"] .pr-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5em 1.4em; }
.present-page[data-style="overlay"] .pr-row-top { font-size: .8em; }
.present-page[data-style="overlay"] .pr-bar { height: .4em; }
.present-page[data-style="overlay"][data-empty="true"] .present { visibility: hidden; }
/* Many answers or a long question: smaller, so everything fits a 16:9 window */
.present-page[data-many="true"] .pr-q, .present-page[data-long="true"] .pr-q { font-size: 2.4em; }
.present-page[data-style="dark"][data-many="true"] .pr-q, .present-page[data-style="dark"][data-long="true"] .pr-q { font-size: 2.6em; }
.present-page[data-many="true"][data-long="true"] .pr-q { font-size: 2em; }
.present-page[data-style="dark"][data-many="true"][data-long="true"] .pr-q { font-size: 2.2em; }
.pr-results { align-content: start; }
.present-page[data-many="true"] .pr-results { gap: .55em; }
.present-page[data-many="true"] .pr-row { gap: .25em; }
.present-page[data-many="true"] .pr-row-top { font-size: .9em; }
.present-page[data-many="true"] .pr-bar { height: .55em; }
.present-page[data-style="dark"][data-many="true"] .pr-results { gap: .45em; }
.present-page[data-style="dark"][data-many="true"] .pr-row { height: 1.6em; }
.present-page[data-style="dark"][data-many="true"] .pr-row-top { font-size: 1.05em; }
.present-page[data-style="overlay"][data-long="true"] .pr-q, .present-page[data-style="overlay"][data-many="true"] .pr-q { font-size: 1.3em; }
@media (prefers-reduced-motion: reduce) { .pr-bar i { transition: none; } }

/* ---------- panel: polls with templates, presentation screen, recording timeline */
.poll-form .poll-opts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.poll-form .poll-btns { display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (max-width: 760px) { .poll-form .poll-opts-row { grid-template-columns: minmax(0, 1fr); } }
.qa-cols .poll-form .poll-opts-row { grid-template-columns: minmax(0, 1fr); }
.present-card { border: 1px solid var(--line); padding: var(--s4); display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.present-card .copy-row { margin: 0; }
.host-form { display: flex; gap: var(--s2); margin-bottom: var(--s5); }
.host-form .input { flex: 1; min-width: 0; }
.tl-track-box { overflow-x: auto; padding-bottom: var(--s2); }
.tl-track { position: relative; min-width: 640px; height: 116px; cursor: crosshair; }
.tl-bar { position: absolute; left: 0; right: 0; top: 46px; height: 36px; background: var(--screen); background-image: repeating-linear-gradient(90deg, var(--stage-tile) 0 2px, transparent 2px 10%); }
.tl-mark { position: absolute; top: 4px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--graphite); font: inherit; font-size: .75rem; font-variant-numeric: tabular-nums; cursor: pointer; min-width: 32px; }
.tl-mark i { width: 14px; height: 14px; box-sizing: border-box; flex: none; }
.tl-mark::after { content: ""; width: 2px; height: 44px; background: currentColor; }
.tl-mark:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tl-mark.is-on span { background: var(--ink); color: var(--paper); padding: 0 6px; font-weight: 600; }
.tl-mark.is-on i { outline: 3px solid var(--ink); outline-offset: 2px; }
.tl-k-message i { border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); }
.tl-k-message { color: var(--ink); }
.tl-k-poll i { background: var(--logo-mg); }
.tl-k-poll { color: var(--logo-mg); }
.tl-k-question i { border-radius: 50%; background: var(--logo-cy); }
.tl-k-question { color: var(--logo-cy); }
.tl-k-offer i { width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); margin: 1px 0; }
.tl-k-offer { color: var(--ink); }
.tl-mark span { color: var(--graphite); }
.tl-mark.is-near span { visibility: hidden; }
.tl-ticks { position: absolute; left: 0; right: 0; top: 90px; display: flex; justify-content: space-between; font-size: .75rem; color: var(--graphite); font-variant-numeric: tabular-nums; pointer-events: none; }
.tl-legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--t-small); color: var(--graphite); margin: var(--s2) 0 var(--s5); }
.tl-legend > span { display: inline-flex; align-items: center; gap: 6px; color: var(--graphite); }
.tl-legend i { width: 12px; height: 12px; box-sizing: border-box; display: inline-block; }
.tl-list { list-style: none; margin: 0 0 var(--s5); padding: 0; border-top: 1px solid var(--ink); }
.tl-list li { display: grid; grid-template-columns: 64px 180px minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.tl-list li.is-on { background: var(--wash); }
.tl-list .tl-at { font-weight: 500; font-variant-numeric: tabular-nums; }
.tl-list .tl-kind { font-size: var(--t-small); color: var(--graphite); }
.tl-list .tl-what { display: grid; min-width: 0; overflow-wrap: anywhere; }
.tl-list .tl-what small { font-size: var(--t-small); color: var(--graphite); }
@media (max-width: 760px) { .tl-list li { grid-template-columns: 56px minmax(0, 1fr); } .tl-list .tl-kind { grid-column: 2; grid-row: 1; } .tl-list .tl-what { grid-column: 1 / -1; } .tl-list .row-actions { grid-column: 1 / -1; } }
.tl-form { border: 1.5px solid var(--ink); padding: var(--s5); display: grid; gap: var(--s4); }
.tl-form .field { margin: 0; }
.tl-form-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s3); }
@media (max-width: 520px) { .tl-form-row { grid-template-columns: minmax(0, 1fr); } }
.tl-form [data-kind][hidden] { display: none; }

/* ---------- account page and the host card */
.acct-sec { scroll-margin-top: var(--s5); }
.acct-sub { font-size: 1.0625rem; font-weight: 500; margin: var(--s7) 0 var(--s4); }
.photo-row { display: flex; align-items: center; gap: var(--s5); margin-bottom: var(--s5); flex-wrap: wrap; }
.photo-big { width: 96px; height: 96px; border-radius: 50%; background: var(--wash); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.75rem; font-weight: 500; letter-spacing: .02em; overflow: hidden; flex: none; }
.photo-big img, .host-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-btns { display: grid; gap: var(--s2); justify-items: start; }
.photo-btns label.btn { cursor: pointer; }
.photo-btns:has(input:focus-visible) label.btn { outline: 2px solid var(--focus); outline-offset: 2px; }
.prof-part { max-width: 880px; }
.prof-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s5); }
.prof-form > .prof-wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .prof-form { grid-template-columns: minmax(0, 1fr); } }
.host-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s4); align-items: start; border: 1px solid var(--line); padding: var(--s4); margin-top: var(--s4); }
.host-card[hidden] { display: none; }
.host-pic { width: 64px; height: 64px; border-radius: 50%; background: var(--wash); display: grid; place-items: center; font-weight: 500; overflow: hidden; }
.host-body { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.host-body p { margin: 0; }
.host-label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); }
.host-name { font-weight: 500; }
.host-co { font-size: var(--t-small); color: var(--graphite); }
.host-bio { font-size: .9375rem; margin-top: var(--s2) !important; white-space: pre-line; }
.host-link { font-size: var(--t-small); margin-top: var(--s1); justify-self: start; }
.acct-page .btn { white-space: normal; text-align: center; max-width: 100%; }
.acct-page #p-bio { font-family: var(--font); }
.acct-page #consents .check { align-items: flex-start; }
.acct-page #consents .check input { margin-top: 2px; flex: none; }

/* ---------- Smart Chat on the viewer page: avatar, author, role and source icons, time; Info panel */
.ic { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
.chat-list li.msg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s2); align-items: start; }
.chat-list li.msg.is-host { background: none; padding: 0; }
.msg-av { width: 28px; height: 28px; border-radius: 50%; background: var(--wash); color: var(--graphite); display: grid; place-items: center; font-size: .6875rem; font-weight: 500; overflow: hidden; }
.msg-av.is-role { color: #ffffff; }
.msg-av .ic { width: 15px; height: 15px; }
.msg-av img { width: 100%; height: 100%; object-fit: cover; }
.msg-body { display: grid; gap: 1px; min-width: 0; }
.chat-list .msg-head { display: flex; align-items: center; gap: 5px; min-width: 0; }
.chat-list .msg-head b { display: inline; font-weight: 500; font-size: var(--t-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.msg-role { width: 13px; height: 13px; }
.msg-src { width: 13px; height: 13px; color: var(--graphite); }
.msg-head time { margin-left: auto; padding-left: var(--s2); font-size: .6875rem; color: var(--graphite); font-variant-numeric: tabular-nums; flex: none; }
.chat-list .msg-text { font-size: .9375rem; overflow-wrap: anywhere; }
.msg-text a { color: inherit; text-underline-offset: 2px; }
.chat-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.side-tabs:not([hidden]) ~ .pane .chat-top { justify-content: flex-end; }
.sc-info-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--graphite); cursor: pointer; padding: 0; }
.sc-info-btn[hidden] { display: none; }
.sc-info-btn:hover, .sc-info-btn[aria-expanded="true"] { color: var(--ink); background: var(--wash); }
.sc-info-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sc-info-btn .ic { width: 17px; height: 17px; }
.sc-legend { background: var(--wash); padding: var(--s3); font-size: .8125rem; line-height: 1.45; display: grid; gap: var(--s2); }
.sc-legend[hidden] { display: none; }
.sc-legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sc-legend-list li { display: flex; align-items: center; gap: var(--s2); }
.sc-legend-list .ic { width: 14px; height: 14px; color: var(--graphite); }
.sc-notice { font-size: .8125rem; line-height: 1.45; border: 1px solid var(--line); padding: var(--s2) var(--s3); }
.sc-notice[hidden] { display: none; }

/* ---------- Smart Chat in the panel */
.sc-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: var(--s4) 0 var(--s5); overflow-x: auto; scrollbar-width: thin; }
.sc-tabs button { flex: none; min-height: 44px; padding: 0 var(--s4); border: 0; border-bottom: 2px solid transparent; background: none; color: var(--graphite); font: inherit; font-size: var(--t-small); cursor: pointer; white-space: nowrap; }
.sc-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.sc-tabs button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.sc-panel[hidden] { display: none; }
.sc-panel h3 { font-size: 1.0625rem; font-weight: 500; margin: var(--s6) 0 var(--s3); }
.sc-ov { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s4); margin: 0 0 var(--s5); }
.sc-ov div, .sc-ov dt { font-size: var(--t-small); color: var(--graphite); }
.sc-ov dd { margin: 2px 0 0; font-size: 1.0625rem; overflow-wrap: anywhere; }
.sc-ov { grid-auto-flow: row; }
.sc-run { border: 1px solid var(--line); padding: var(--s4); margin-bottom: var(--s5); }
.sc-run h3 { margin-top: 0; }
.sc-run-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: flex-end; }
.sc-run-row .field { margin: 0; width: 140px; }
.sc-clock { font-variant-numeric: tabular-nums; font-size: 1.0625rem; padding-bottom: 10px; }
.sc-toolbar { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-bottom: var(--s4); }
.sc-toolbar .input { flex: 1 1 200px; min-width: 0; width: auto; }
.sc-toolbar .check { margin: 0; }
.sc-plist, .sc-alist { list-style: none; margin: 0 0 var(--s5); padding: 0; border-top: 1px solid var(--line); }
.sc-prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.sc-prow > li, .sc-prow .msg { list-style: none; }
.sc-prow.is-off { opacity: .6; }
.sc-alist li { padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.sc-alist .check { margin: 0; align-items: flex-start; }
.sc-alist .check input { margin-top: 3px; flex: none; }
.sc-alist small { display: block; color: var(--graphite); font-size: .8125rem; }
.sc-form { border: 1.5px solid var(--ink); padding: var(--s5); display: grid; gap: var(--s4); margin-bottom: var(--s5); }
.sc-form h3 { margin: 0; }
.sc-form .field, .tl-form .field { margin: 0; }
.sc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.sc-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
@media (max-width: 760px) { .sc-grid2, .sc-grid3 { grid-template-columns: minmax(0, 1fr); } }
.sc-color { padding: 4px; height: 44px; }
.sc-icons { border: 0; padding: 0; margin: 0; }
.sc-icons legend { font-size: var(--t-small); font-weight: 500; margin-bottom: var(--s2); }
.sc-icons > div { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); cursor: pointer; }
.sc-icon .ic { width: 18px; height: 18px; }
.sc-icon:has(input:checked) { border-color: var(--ink); background: var(--wash); outline: 1px solid var(--ink); }
.sc-icon:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.sc-avatar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.sc-preview { min-height: 0; border: 1px solid var(--line); padding: var(--s3); max-height: 320px; }
.sc-player { border: 1px solid var(--line); padding: var(--s4); margin-bottom: var(--s5); display: grid; gap: var(--s3); }
.sc-text { font-family: var(--font); }
.tl-k-chat i { border-radius: 50%; background: var(--logo-cy); }
.tl-k-chat { color: var(--logo-cy); }
.tl-mark.is-off i { opacity: .35; }
.tl-mark { touch-action: none; }
.tl-list li.is-off .tl-what > span { color: var(--graphite); text-decoration: line-through; }
.tl-kind .msg-src { vertical-align: -2px; }
.sc-bars { display: flex; align-items: flex-end; gap: 2px; height: 80px; border-bottom: 1px solid var(--line); margin-bottom: var(--s3); font-size: var(--t-small); color: var(--graphite); }
.sc-bars i { flex: 1; max-width: 14px; background: var(--logo-cy); }
.sc-history li { font-size: var(--t-small); }
.host-form select.input { flex: 0 1 180px; min-width: 0; }
.mod-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s6); }
@media (max-width: 860px) { .mod-grid { grid-template-columns: minmax(0, 1fr); } }
.mod-chat { max-height: 70vh; overflow-y: auto; border: 1px solid var(--line); padding: var(--s3); }
.mod-chat .is-hidden { opacity: .45; }
.mod-chat .row-actions { margin-top: 2px; }
.sc-inline { min-height: 0; overflow: visible; display: block; }
.sc-form .poll-btns, .tl-form .poll-btns { display: flex; flex-wrap: wrap; gap: var(--s2); }
.sc-form .check, .sc-panel > .check { margin: 0 0 var(--s2); }
.sc-ov > div { min-width: 0; }

/* sign-in page: hidden while an existing session is checked (theme.js, login.js) */
.vz-auth-check .auth { visibility: hidden; }

/* ---------- panel footer (every panel page, sign-in and /broadcast): always dark, like the screen surfaces */
.app-footer { background: var(--screen); color: var(--screen-text); --logo-core: #ffffff; --logo-cy: #00f0ff; }
.app-footer-split { height: 4px; background: linear-gradient(90deg, var(--logo-cy), var(--logo-mg)); }
.app-footer-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s4) var(--s7); align-items: center; padding-block: var(--s6); }
.app-footer-mark { display: block; width: 66px; height: 20px; background: url("/assets/logo-dark.svg") left center / contain no-repeat; overflow: hidden; white-space: nowrap; text-indent: 150%; }
.app-footer-mark.has-svg, .site-footer-mark.has-svg { background: none; text-indent: 0; overflow: visible; }
.site-footer-mark { display: block; flex: none; width: 66px; height: 20px; background: var(--logo) left center / contain no-repeat; overflow: hidden; white-space: nowrap; text-indent: 150%; }
.app-footer-nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.app-footer-nav a { color: var(--screen-text); text-decoration: none; font-size: var(--t-small); min-height: 32px; display: inline-flex; align-items: center; }
.app-footer-nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
.app-footer-nav a:focus-visible, .app-footer-mark:focus-visible { outline: 2px solid var(--logo-cy); outline-offset: 2px; }
.app-footer-copy { color: var(--screen-muted); font-size: .75rem; }
@media (max-width: 720px) { .app-footer-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- dashboard (/dashboard) */
.home h1 { margin-bottom: var(--s1); }
.home > .muted { margin-bottom: var(--s6); }
.home-loading { color: var(--graphite); padding: var(--s6) 0; }
.home-next, .home-first { border: 1.5px solid var(--ink); padding: var(--s5); display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.home-next h2, .home-first h2 { font-size: clamp(1.5rem, 3vw, 1.75rem); font-weight: 500; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.home-next p, .home-first p { margin: 0; }
.home-when { font-size: var(--t-small); color: var(--graphite); }
.home-none { border-style: dashed; }
.home-strip { list-style: none; margin: 0 0 var(--s7); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); font-size: var(--t-small); color: var(--graphite); }
.home-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s8); }
@media (max-width: 860px) { .home-cols { grid-template-columns: minmax(0, 1fr); gap: var(--s6); } }
.home-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.home-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.home-list a { color: var(--ink); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.home-list a:hover { text-decoration: underline; text-underline-offset: .2em; }
.home-list small { grid-column: 1 / -1; color: var(--graphite); font-size: var(--t-small); }
.home-list em { font-style: normal; color: var(--graphite); font-size: var(--t-small); white-space: nowrap; }
.home-list .home-empty { display: block; color: var(--graphite); font-size: var(--t-small); }
.home-feed { position: relative; padding-left: var(--s5) !important; }
.home-feed::before { content: ""; position: absolute; left: 0; top: calc(var(--s3) + .5em); width: 8px; height: 8px; border-radius: 50%; background: var(--idle); }
.home-feed-live::before { background: var(--on-air); }

/* ---------- account pages (/account/profile, /security, /plan, /notifications) */
.acct-tabs { display: flex; gap: var(--s5); border-bottom: 1px solid var(--line); margin: var(--s5) 0 var(--s6); overflow-x: auto; scrollbar-width: none; }
.acct-tabs a { padding: var(--s3) 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: .9375rem; }
.acct-tabs a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 500; }
.acct-tabs a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- help and contact page (viziblu.com/help/, site/help.js) */
.help-top { padding-block: var(--s7) var(--s6); }
.help-top h1 { margin-bottom: var(--s5); }
.help-search { display: flex; align-items: center; gap: var(--s3); max-width: 640px; min-height: 56px; padding: 0 var(--s4); border: 1.5px solid var(--ink); margin-bottom: var(--s6); }
.help-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.help-search input { flex: 1; min-width: 0; min-height: 52px; border: 0; outline: 0; background: none; color: var(--ink); font: 400 1.0625rem/1.2 var(--font); }
.help-search:focus-within { box-shadow: 0 0 0 2px var(--focus); }
.help-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 760px) { .help-tiles { grid-template-columns: minmax(0, 1fr); } }
.help-tile { display: grid; gap: var(--s1); padding: var(--s4); text-align: left; background: var(--paper); color: var(--ink); border: 0; font: inherit; cursor: pointer; min-height: 72px; }
.help-tile b { font-weight: 500; font-size: 1.0625rem; }
.help-tile span { color: var(--graphite); font-size: var(--t-small); }
.help-tile:hover { background: var(--wash); }
.help-tile[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--ink); }
.help-tile:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.help-list { padding-bottom: var(--s8); }
.help-group, .help-empty { max-width: 820px; }
.help-group-h { font-size: var(--t-small); font-weight: 500; color: var(--graphite); margin: var(--s6) 0 var(--s2); }
.help-group { border-top: 1px solid var(--ink); }
.help-group .help-group-h { margin-top: var(--s5); }
.help-q { border-bottom: 1px solid var(--line); }
.help-q summary { list-style: none; cursor: pointer; position: relative; padding: var(--s4) var(--s7) var(--s4) 0; font-weight: 500; min-height: 48px; }
.help-q summary::-webkit-details-marker { display: none; }
.help-q summary::after { content: "+"; position: absolute; right: var(--s1); top: var(--s3); font-size: 1.375rem; font-weight: 400; }
.help-q[open] summary::after { content: "\2212"; }
.help-q summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.help-a { padding-bottom: var(--s4); color: var(--graphite); max-width: 66ch; }
.help-a p { margin: 0 0 var(--s2); }
.help-a ul { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--s1); }
.help-empty { color: var(--graphite); padding: var(--s5) 0; }
.help-band { background: var(--screen); color: var(--screen-text); }
.help-band-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5) var(--s7); align-items: center; padding-block: var(--s7); }
@media (max-width: 760px) { .help-band-row { grid-template-columns: minmax(0, 1fr); } }
.help-band h2 { margin: 0 0 var(--s2); font-weight: 500; }
.help-band p { margin: 0; color: var(--screen-muted); max-width: 60ch; }
.help-band-btns { display: flex; flex-wrap: wrap; gap: var(--s2); }
.help-band .btn-invert { background: var(--screen-text); color: var(--screen); border-color: var(--screen-text); }
.help-band .btn-invert-outline { background: transparent; color: var(--screen-text); border: 1px solid var(--screen-text); }
.help-band .btn:focus-visible { outline: 2px solid var(--logo-cy); outline-offset: 2px; }

/* ---------- object pages (one system for every object: list, view, edit; "new" is a short dialog) */
.list-tools { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s6) 0 var(--s5); }
.list-tools .input { flex: 1 1 180px; min-width: 0; }
.list-tools input[type=search] { flex: 3 1 260px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.data-table th { text-align: left; font-weight: 500; font-size: .75rem; color: var(--graphite); padding: var(--s2) var(--s3) var(--s2) 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.data-table td { padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table .num { text-align: right; }
.data-table a { color: var(--ink); }
@media (max-width: 760px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  /* Phone: the first cell and the action share the top line, the other cells flow below as one wrapped line. */
  .data-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .data-table td { border: 0; padding: 0; width: auto; }
  .data-table td:first-child { flex: 1 1 calc(100% - 5rem); min-width: 0; }
  .data-table td:last-child { order: 1; text-align: right; }
  .data-table td:not(:first-child):not(:last-child) { order: 2; font-size: var(--t-small); color: var(--graphite); }
  .data-table td:not(:first-child):not(:last-child) a { color: var(--graphite); }
  .data-table td:empty { display: none; }
  .data-table .num { text-align: left; }
}
.au-who { display: flex; gap: var(--s3); align-items: center; text-decoration: none; min-width: 0; }
.au-who b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.au-who small { display: block; color: var(--graphite); font-size: var(--t-small); overflow-wrap: anywhere; }
.au-who:hover b { text-decoration: underline; text-underline-offset: .2em; }
.au-av, .au-photo { width: 38px; height: 38px; border-radius: 50%; background: var(--wash); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; font-size: .8125rem; font-weight: 500; }
.au-av img, .au-photo img { width: 100%; height: 100%; object-fit: cover; }
.au-photo { width: 84px; height: 84px; font-size: 1.5rem; }
.au-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); margin: 0; }
.au-tag { display: inline-flex; align-items: center; box-sizing: border-box; height: 24px; font-size: .75rem; line-height: 1; padding: 0 var(--s2); border: 1px solid var(--graphite); white-space: nowrap; }
.au-tag-admin { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.au-tag-blocked { color: var(--on-air-ink); border-color: var(--on-air-ink); }
.au-dialog { max-width: 460px; }
.au-dialog .field { margin: var(--s4) 0 0; }
/* New event: the viewer page address under the title (proposal 7), the slug in bold, an underlined "Change" link. */
.ne-addr { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: var(--s3) 0 0; font-size: var(--t-small); color: var(--graphite); }
.ne-addr[hidden] { display: none; }
.ne-url { min-width: 0; overflow-wrap: anywhere; }
.ne-slug { color: var(--ink); font-weight: 600; }
.ne-addr .link-btn { min-height: 24px; flex: none; color: var(--ink); }
.ne-addr .link-btn:hover { color: var(--ink); }
.au-head { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; margin-bottom: var(--s7); }
.au-head-txt { flex: 1 1 200px; min-width: 0; display: grid; gap: var(--s1); }
.au-head h1 { margin: 0; overflow-wrap: anywhere; }
.au-head p { margin: 0; }
.au-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 var(--s8); border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .au-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.au-stats div { display: flex; flex-direction: column-reverse; padding: var(--s3) var(--s3) var(--s3) 0; }
.au-stats dd { margin: 0; font-size: 1.25rem; font-weight: 500; }
.au-stats dt { color: var(--graphite); font-size: .75rem; }
.au-sec { border-top: 1px solid var(--ink); padding-top: var(--s5); margin-bottom: var(--s8); display: grid; gap: var(--s4); }
.au-sec h2 { font-size: 1.125rem; font-weight: 500; margin: 0 0 var(--s1); }
.au-sec .field, .au-sec .sources-field { margin: 0; }
.au-dl { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: var(--s2) var(--s4); margin: 0; }
@media (max-width: 600px) { .au-dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .au-dl dd { margin-bottom: var(--s2); } }
.au-dl dt { color: var(--graphite); font-size: var(--t-small); }
.au-dl dd { margin: 0; overflow-wrap: anywhere; }
.au-list li { display: grid; gap: 2px; padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.au-list small { color: var(--graphite); font-size: var(--t-small); }
.au-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s4); }
.au-limits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .au-grid, .au-limits { grid-template-columns: minmax(0, 1fr); } }
.au-photo-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.au-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s2); margin-bottom: var(--s8); }
.au-danger { border-top-color: var(--on-air-ink); }
.au-danger h2 { color: var(--on-air-ink); }

/* Event pages: view (/events/<slug>), live console (/live), edit (/edit) */
.au-head .row-btns { display: flex; flex-wrap: wrap; gap: var(--s2); }
.au-head .meta { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; font-size: var(--t-small); }
.au-dl a.ev-change { font-size: var(--t-small); white-space: nowrap; }
.au-page .copy { display: grid; gap: var(--s1); }
.au-page .share h3 { font-size: 1rem; font-weight: 500; margin: var(--s2) 0 0; }
.au-page .share p { margin: 0 0 var(--s2); color: var(--graphite); }
.au-page .settings-row h3 { font-size: 1rem; font-weight: 500; margin: 0; }
.au-page .settings-row p { margin: 0; color: var(--graphite); font-size: var(--t-small); }
.au-dialog .input-prefix { max-width: 100%; }
.data-table .au-who b { font-size: 1rem; }
/* Close button (×) of every popup: top right corner of the dialog; in the catalog it sits in the header row. */
dialog { position: fixed; }
dialog > h2:first-of-type, dialog > form > h2:first-child { padding-right: 40px; }
.dlg-x { position: absolute; top: var(--s3); right: var(--s3); width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.dlg-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dlg-x:hover { background: var(--wash); }
.dlg-x:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dlg-x-inline { position: static; flex: none; margin: -8px -8px 0 0; }
/* View and edit pages at full width (variant 3): sections in two columns, one column on narrow screens.
   The header, numbers, save buttons and the danger zone span both columns. A form inside can join the grid. */
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s7); align-items: start; }
.cols2 > .back, .cols2 > .form-error, .cols2 > .au-head, .cols2 > .au-stats, .cols2 > .au-actions, .cols2 > .au-danger, .cols2 > .span2 { grid-column: 1 / -1; }
.cols2 > .back { justify-self: start; }
.cols2 > .form-error:not([hidden]) { margin-bottom: var(--s5); }
.cols2 .au-sec { margin-bottom: var(--s7); }
form.cols-contents:not([hidden]) { display: contents; }
@media (max-width: 900px) { .cols2 { grid-template-columns: minmax(0, 1fr); } }
/* Account pages at full width: the parts of a page in two columns (one on narrow screens). */
.acct-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7); align-items: start; }
.acct-part { border-top: 1px solid var(--ink); padding-top: var(--s5); min-width: 0; }
.acct-part > .acct-sub { margin-top: 0; }
.acct-part.acct-danger { border-top-color: var(--on-air-ink); }
.acct-part.acct-danger > .acct-sub { color: var(--on-air-ink); }
.acct-aside { position: sticky; top: var(--s5); }
@media (max-width: 900px) { .acct-cols { grid-template-columns: minmax(0, 1fr); } .acct-aside { position: static; } }
.adm-live-h { font-size: 1.125rem; font-weight: 500; border-top: 1px solid var(--ink); padding-top: var(--s5); margin: var(--s7) 0 var(--s3); }
.acct-page > h1 { margin-bottom: var(--s2); }
.page > h1:first-child:not(:last-child) { margin-bottom: var(--s5); }
.acct-cols { margin-top: var(--s5); }
#ne-status:empty { display: none; }
.ev-addr { display: grid; gap: var(--s2); }
.ev-addr .ne-addr { margin: 0; }
#e-slug-status:empty { display: none; }
#e-slug[readonly] { background: var(--wash); color: var(--graphite); cursor: default; }
#e-slug[readonly]:hover, #e-slug[readonly]:focus { border-color: var(--control-line); box-shadow: none; }
/* Danger zone folded by default (a click on the title opens it), so a button is not hit by accident. */
details.dz-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); cursor: pointer; list-style: none; min-height: 44px; }
details.dz-fold > summary::-webkit-details-marker { display: none; }
details.dz-fold > summary h2 { margin: 0; }
details.dz-fold > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.dz-chev { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--on-air-ink); stroke-width: 1.8; transition: transform .15s ease; }
details.dz-fold[open] .dz-chev { transform: rotate(180deg); }
details.dz-fold:not([open]) { padding-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .dz-chev { transition: none; } }
details.au-sec { display: block; }
details.au-sec > :not(summary) { margin-top: var(--s4); }
.studio-perm { display: grid; gap: var(--s3); margin-bottom: var(--s4); }
.studio-perm .hint { margin: 0; }
/* Live console as a cockpit (design/live-console.html, variant 1): status bar on top, connecting on the left,
   the audience in tabs on the right. Smart Chat takes the full width; one column on narrow screens. */
.cockpit-head { padding-bottom: var(--s3); }
.cockpit-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); padding: var(--s3) var(--s4); border: 1px solid var(--line); margin-bottom: var(--s6); }
.cockpit-time { font-variant-numeric: tabular-nums; font-weight: 500; }
.cockpit-bar a#viewer-link { font-size: var(--t-small); overflow-wrap: anywhere; }
.cockpit-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--s2); }
.cockpit-bar.is-live { border-color: var(--logo-mg); }
.cockpit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.cockpit.wide { grid-template-columns: minmax(0, 1fr); }
.cockpit.wide .cockpit-side { order: -1; }
@media (max-width: 960px) { .cockpit { grid-template-columns: minmax(0, 1fr); } .cockpit-actions { margin-left: 0; } }
.cockpit-main { display: grid; gap: var(--s6); min-width: 0; }
.cockpit-main > section { margin: 0; }
.cockpit .cols { grid-template-columns: minmax(0, 1fr); gap: var(--s6); margin: 0; }
.cockpit-conn { border-top: 1px solid var(--ink); padding-top: var(--s3); }
.cockpit-conn > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); cursor: pointer; list-style: none; min-height: 44px; }
.cockpit-conn > summary::-webkit-details-marker { display: none; }
.cockpit-conn > summary h2 { margin: 0; font-size: 1.125rem; font-weight: 500; }
.cockpit-conn .dz-chev { stroke: var(--ink); }
.cockpit-conn[open] .dz-chev { transform: rotate(180deg); }
.cockpit-conn > .cols { margin-top: var(--s4); }
.cockpit-side { min-width: 0; border: 1px solid var(--line); padding: 0 var(--s4) var(--s4); }
.ck-tabs { display: flex; gap: var(--s5); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--s4)) var(--s4); padding: 0 var(--s4); }
.ck-tabs [role=tab] { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: var(--s3) 0; font: 500 .9375rem/1.2 var(--font); color: var(--graphite); cursor: pointer; white-space: nowrap; min-height: 44px; }
.ck-tabs [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--ink); }
.ck-tabs [role=tab]:hover { color: var(--ink); }
.ck-tabs [role=tab]:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ck-n { font-size: .75rem; color: var(--graphite); font-variant-numeric: tabular-nums; }
.ck-n:empty { display: none; }
.ck-panel { display: grid; gap: var(--s4); min-width: 0; }
.ck-panel h3 { font-size: 1rem; font-weight: 500; margin: 0; }
.ck-panel .sc-sec { margin: 0; padding: 0; border: 0; }
.ck-panel .sc-sec > h2 { display: none; }
.cockpit-conn #conn-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cockpit-conn .cols h2 { font-size: 1rem; font-weight: 500; margin: 0 0 var(--s3); }
.ck-qr { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }
.ck-qr-code { width: 120px; height: 120px; flex: none; background: #fff; padding: 8px; }
.ck-qr-code svg { width: 100%; height: 100%; display: block; }
.ck-qr .hint { flex: 1 1 160px; margin: 0; }
/* In the cockpit the left column is too narrow for the studio's two columns: preview above, controls below. */
.cockpit .studio-grid { grid-template-columns: minmax(0, 1fr); }
.cockpit .studio .seg label { min-width: 0; overflow-wrap: anywhere; }
.cockpit .mode-bar { padding-top: 0; }
.cockpit .studio { margin-top: 0; }

/* ---- event hub: one head and three tabs (Preparation, Live, After the event) */
.hub { margin-bottom: var(--s6); }
.hub h1 { margin: 0 0 var(--s4); overflow-wrap: anywhere; }
.hub .cockpit-bar { margin-bottom: 0; }
.hub-note { font-size: var(--t-small); color: var(--graphite); }
.hub-tabs { display: flex; gap: var(--s6); border-bottom: 1px solid var(--line); margin-top: var(--s5); overflow-x: auto; scrollbar-width: none; }
.hub-tabs a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--graphite); text-decoration: none; font-weight: 500; white-space: nowrap; }
.hub-tabs a:hover { color: var(--ink); }
.hub-tabs a[aria-current=page] { color: var(--ink); border-bottom-color: var(--ink); }
.hub-tabs a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hub-tabs a.is-live::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-air); animation: pulse 1.6s ease-in-out infinite; }

/* Preparation: progress and the checklist of steps */
.hub-ready { border: 1px solid var(--line); padding: var(--s4) var(--s5); margin-bottom: var(--s5); display: grid; gap: var(--s2); }
.hub-ready-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s2) var(--s4); }
.hub-prog { height: 4px; background: var(--wash); }
.hub-prog i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s ease; }
.hub-steps { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.step { border: 1px solid var(--line); }
.step[open] { border-color: var(--control-line); }
.step-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding: var(--s4) var(--s5); cursor: pointer; list-style: none; }
.step-head::-webkit-details-marker { display: none; }
.step-head:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.step-head:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.step-num { width: 32px; height: 32px; display: grid; place-items: center; border: 1.5px solid var(--control-line); color: var(--graphite); font-weight: 600; font-variant-numeric: tabular-nums; }
.step.is-done .step-num { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.step-txt { display: grid; gap: 2px; min-width: 0; }
.step-txt h2 { font-size: 1.0625rem; font-weight: 500; margin: 0; }
.step-sum { font-size: var(--t-small); color: var(--graphite); overflow-wrap: anywhere; }
.step .step-head .dz-chev { transition: transform .2s ease; }
.step[open] > .step-head .dz-chev { transform: rotate(180deg); }
.step-body { padding: var(--s2) var(--s5) var(--s6); display: grid; gap: var(--s5); border-top: 1px solid var(--line); padding-top: var(--s5); }
.step-body.cols2 { row-gap: var(--s5); }
.step-body h3 { font-size: 1rem; font-weight: 500; margin: 0 0 var(--s3); }
.step-body > section, .step-body.cols2 > section { display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.step-body .field, .step-body .check { margin: 0; }
.step-pair { align-items: start; row-gap: var(--s5); }
.step-checks { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); }
.step-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.step-link { display: grid; gap: 2px; padding: var(--s4); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.step-link span { font-size: var(--t-small); color: var(--graphite); }
.step-link:hover { border-color: var(--ink); }
.step-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.step-body .au-danger { margin: var(--s3) 0 0; }
.hub-save { position: sticky; bottom: 0; background: var(--paper); padding-block: var(--s3); border-top: 1px solid var(--line); z-index: 3; }
@media (max-width: 720px) {
  .step-head { padding: var(--s3) var(--s4); gap: var(--s3); }
  .step-body { padding-left: var(--s4); padding-right: var(--s4); }
  .step-links { grid-template-columns: minmax(0, 1fr); }
  .step-body.cols2 { grid-template-columns: minmax(0, 1fr); }
}

/* Live: owner preview and the layers card */
.pv { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.pv-player .player-overlay { pointer-events: none; }
.ov-card { border: 1px solid var(--line); padding: var(--s4) var(--s5); display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.ov-card h2 { font-size: 1.0625rem; font-weight: 500; margin: 0; }
.ov-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s2) var(--s4); align-items: center; padding-top: var(--s3); border-top: 1px solid var(--line); }
.ov-row .hint { margin: 0; }
.ov-sw { display: flex; align-items: center; gap: var(--s3); font-size: var(--t-small); font-weight: 500; cursor: pointer; min-height: 44px; }
.ov-sw input { appearance: none; -webkit-appearance: none; flex: none; width: 36px; height: 20px; margin: 0; border: 1.5px solid var(--control-line); border-radius: 999px; position: relative; cursor: pointer; background: var(--paper); transition: background .15s, border-color .15s; }
.ov-sw input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--control-line); transition: transform .15s, background .15s; }
.ov-sw input:checked { background: var(--on-air); border-color: var(--on-air); }
.ov-sw input:checked::after { transform: translateX(16px); background: var(--on-air-text); }
.ov-sw input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ov-sw input:disabled { opacity: .45; cursor: not-allowed; }
.ov-sw-on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-air); }
.ov-q { font-size: var(--t-small); overflow-wrap: anywhere; }
#org-questions li.is-on-screen { border-left: 3px solid var(--on-air); padding-left: var(--s3); }
@media (max-width: 720px) { .ov-row { grid-template-columns: minmax(0, 1fr); } .ov-card { padding: var(--s4); } }

/* Layers over the video (viewer page and owner preview); sizes follow the player width */
.player { container-type: inline-size; }
.ov-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto; gap: 2cqw; padding: 0 3cqw 3cqw; font-family: var(--font); font-size: clamp(11px, 2.1cqw, 26px); line-height: 1.25; }
.ov-banner { grid-column: 1 / -1; grid-row: 1; margin: 0 -3cqw; padding: .55em 3cqw; background: var(--on-air); color: var(--on-air-text); font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.ov-question { grid-column: 1; grid-row: 2; align-self: end; justify-self: start; max-width: 75%; background: var(--slide); color: var(--slide-ink); padding: .8em 1em; border-left: .3em solid var(--logo-cy); display: grid; gap: .3em; }
.ov-question strong { font-size: 1.15em; font-weight: 600; overflow-wrap: anywhere; }
.ov-question span { font-size: .8em; opacity: .75; }
.ov-qr { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; width: clamp(64px, 14cqw, 180px); padding: .4em; background: var(--slide); }
.ov-qr svg, .ov-qr img, .ov-qr canvas { display: block; width: 100%; height: auto; }
.ov-cta { grid-column: 2; grid-row: 3; align-self: end; justify-self: end; background: var(--slide); color: var(--slide-ink); padding: .5em .9em; font-weight: 600; font-size: .85em; }
.step .dz-chev { stroke: var(--ink); }
.pv-player .player-overlay { font-size: var(--t-small); }
.cockpit-side .host-form { flex-wrap: wrap; }
.cockpit-side .host-form select.input { flex: 1 1 100%; }
.step-body-in { display: grid; gap: var(--s5); min-width: 0; }
.kind-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .kind-cards { grid-template-columns: minmax(0, 1fr); } }
.step-body .recording { border: 0; padding: 0; margin: 0; }
.hub-kind { margin: 0 0 var(--s5); }
.step.is-optional .step-num { border-style: dashed; }
.prep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.prep-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--s2); align-items: center; }
#banner-list .prep-row { grid-template-columns: minmax(0, 1fr) auto; }
.ov-group { display: grid; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line); }
.ov-group h3 { font-size: var(--t-small); font-weight: 600; margin: 0; }
.ov-group .hint { margin: 0; }
.ov-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ov-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2) var(--s4); }
.ov-list li.muted { font-size: var(--t-small); }
.ov-list .ov-sw span { font-weight: 400; overflow-wrap: anywhere; }
.ov-add .input { flex: 1; min-width: 0; }
@media (max-width: 720px) { .prep-row, #banner-list .prep-row { grid-template-columns: minmax(0, 1fr) auto; } .prep-row input[data-f=url] { grid-column: 1; } }
@media (max-width: 720px) { #offer-list .prep-row { padding-bottom: var(--s3); border-bottom: 1px solid var(--line); } }

/* ---------- date and time picker (app.js dateTime): a day and a time button, the choice opens under them, a sheet on phones */
.dt { display: flex; flex-wrap: wrap; gap: var(--s2); flex: 1 1 auto; min-width: 0; }
.dt-btn { display: inline-flex; align-items: center; gap: var(--s3); flex: 0 1 210px; min-width: 0; min-height: var(--control); padding: 0 var(--s4); font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--control-line); border-radius: 0; cursor: pointer; text-align: left; font-variant-numeric: tabular-nums; }
.dt-btn:hover, .dt-btn[aria-expanded="true"] { border-color: var(--ink); }
.dt-btn[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--ink); }
.dt-btn[aria-invalid="true"] { border-color: var(--on-air-ink); }
.dt-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dt-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dt-btn .dt-chev { width: 14px; height: 14px; margin-left: auto; color: var(--graphite); }
.dt-btn span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-btn.is-empty span { color: var(--graphite); }
.dt > .btn { flex: 0 0 auto; }
.field > .dt .dt-btn { flex: 1 1 150px; }
.dt-pop { flex: 0 0 100%; min-width: 0; }
.dt-panel { width: max-content; max-width: 100%; padding: var(--s4); background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 14%, transparent); }
.dt-head { display: none; }
.dt-x { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; margin: -10px -10px 0 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.dt-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dt-x:hover { background: var(--wash); }
.dt-scrim { display: none; }
.dt-cal { width: 288px; max-width: 100%; }
.dt-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s2); }
.dt-cal-head b { font-weight: 600; text-transform: capitalize; }
.dt-ic { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; }
.dt-ic:hover:not(:disabled) { border-color: var(--line); }
.dt-ic:disabled { opacity: .3; cursor: default; }
.dt-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dt-wd, .dt-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.dt-wd span { text-align: center; font-size: .75rem; font-weight: 600; color: var(--graphite); padding: var(--s1) 0 var(--s2); }
.dt-d { position: relative; aspect-ratio: 1; min-height: 40px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .9375rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.dt-d:hover:not(:disabled):not(.is-on) { background: var(--wash); }
.dt-d:disabled { color: var(--graphite); opacity: .4; cursor: default; }
.dt-d.is-today { font-weight: 700; box-shadow: inset 0 0 0 1px var(--ink); }
.dt-d.is-on { background: var(--ink); color: var(--paper); font-weight: 700; }
.dt-d.has-live::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--on-air); }
.dt-d:focus-visible, .dt-t:focus-visible, .dt-ic:focus-visible, .dt-x:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.dt-times { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 320px; max-width: 100%; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.dt-t { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: .9375rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.dt-t:hover:not(:disabled):not(.is-on) { border-color: var(--ink); }
.dt-t:disabled { opacity: .3; cursor: default; }
.dt-t.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; }
.dt-t.has-live::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--on-air); }
@media (max-width: 599px) {
  .dt > .btn { flex: 1 1 100%; }
  .dt-btn { flex: 1 1 130px; gap: var(--s2); padding: 0 var(--s3); }
  .dt-btn .dt-chev { display: none; }
  .dt-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 20; background: var(--scrim); }
  .dt-pop:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; }
  .dt-panel { width: 100%; max-height: 85dvh; overflow-y: auto; border-width: 1.5px 0 0; box-shadow: none; padding: var(--s3) max(var(--s4), env(safe-area-inset-right, 0px)) calc(var(--s4) + env(safe-area-inset-bottom, 0px)) max(var(--s4), env(safe-area-inset-left, 0px)); }
  .dt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s2); }
  .dt-head b { font-size: 1.0625rem; }
  .dt-cal, .dt-times { width: 100%; }
  .dt-times { max-height: 50dvh; }
}
.hub-save .hub-unsaved { display: inline-flex; align-items: center; gap: var(--s2); margin-right: auto; font-size: var(--t-small); font-weight: 500; }
.hub-save .hub-unsaved::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-air); }
.field-err { margin: 0; }
.prep-row > .field-err { grid-column: 1 / -1; }

/* ---------- smooth scrolling and the "back to top" button (theme.js) */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 0 6px 20px color-mix(in srgb, var(--ink) 14%, transparent); }
.to-top:hover { border-color: var(--ink); }
.to-top:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (max-width: 600px) { .hub-save .hub-unsaved { flex-basis: 100%; } }

/* ---------- polls and Smart Chat: set up in Preparation, run in the Live tab */
.step-body > .sc-sec { display: block; }
.prep-polls, .step-body > .sc-sec { grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); padding-top: var(--s5); min-width: 0; }
.prep-polls .org-polls { margin-bottom: var(--s5); }
.prep-polls .poll-form { max-width: 760px; }
.prep-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.quick-add { margin-top: var(--s5); border-top: 1px solid var(--line); }
.quick-add > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; font-weight: 500; list-style: none; }
.quick-add > summary::-webkit-details-marker { display: none; }
.quick-add > summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.quick-add[open] > summary::after { content: "\2212"; }
.quick-add > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
