/* WX Portal – the session page after the customer's reference (docs/09).
   Colours and fonts come from --wx-* custom properties set by Appearance: --wx-primary (dark card,
   headings), --wx-accent (pills, register button, highlighted title words), --wx-bg (page),
   --wx-font / --wx-font-heading. Nothing is inherited from the theme.

   Spacing system (docs/09 "Avstånd"): one scale of tokens (--wx-space-*), applied as gap on flex/grid
   columns – never as margins on our classes (the theme resets margins, it never touches gap).
   Margins exist only for running text inside .wx-prose (flow rule) and for the one deliberate
   overlap of the info card over the hero. Rhythm: eyebrow → heading xs · heading → text md ·
   paragraph → paragraph 1.1em · group → group lg · date line → its sub line xs · section → section 2xl
   (xl on phones) · card → card sm · button → what follows lg · card padding lg (md on phones). */

.wx-session {
  --wx-space-2xs: 4px;
  --wx-space-xs: 8px;
  --wx-space-sm: 12px;
  --wx-space-md: 20px;
  --wx-space-lg: 32px;
  --wx-space-xl: 48px;
  --wx-space-2xl: 72px;
  --wx-space-3xl: 104px;
  --wx-flow: 1.1em;
  --wx-max: 1120px;
  --wx-narrow: 640px;
  --wx-gutter: 24px;
  --wx-hero-overlay: rgba(20, 12, 10, .55);
  --wx-hero-fade: rgba(28, 16, 14, 1);
  --wx-card-radius: 20px;
  --wx-card-pad: var(--wx-space-lg);
  --wx-section-gap: var(--wx-space-2xl);
  --wx-hero-overlap: var(--wx-space-xl);
  --wx-accent-soft: color-mix(in srgb, var(--wx-accent) 18%, var(--wx-bg));
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  row-gap: var(--wx-section-gap);
  color: var(--wx-text);
  background: var(--wx-bg);
  font-family: var(--wx-font, system-ui, sans-serif);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}
.wx-session *, .wx-session *::before, .wx-session *::after { box-sizing: border-box; }
.wx-session [hidden] { display: none !important; }
.wx-session :focus-visible { outline: 3px solid var(--wx-accent); outline-offset: 2px; }
/* Our own reset of the theme's typography on plain elements. */
.wx-session p, .wx-session li, .wx-session label, .wx-session input, .wx-session button, .wx-session a, .wx-session span, .wx-session time, .wx-session small { letter-spacing: 0; text-transform: none; font-style: normal; font-family: inherit; }
.wx-session p { margin: 0; }
.wx-session h1, .wx-session h2, .wx-session h3 { font-family: var(--wx-font-heading, var(--wx-font, serif)); font-weight: 500; letter-spacing: 0; text-transform: none; font-style: normal; color: inherit; margin: 0; }
/* Dark surfaces (hero, stage, form card): text inherits the surface colour instead of the theme's p/h colours. */
.wx-session .wx-hero :where(h1, h2, p, span, small, b, li, time), .wx-session .wx-form-card :where(h2, h3, p, span, small, label, li, b, time), .wx-session .wx-stage :where(p, span, small, b) { color: inherit; }

/* Containers: every column is a grid with a gap. */
.wx-page { width: 100%; max-width: var(--wx-narrow); margin: 0 auto; padding: 0 var(--wx-gutter); display: grid; row-gap: var(--wx-section-gap); }
.wx-page--top { margin-top: 0; }
.wx-page--top.wx-page--overlap { margin-top: calc(-1 * (var(--wx-section-gap) + var(--wx-hero-overlap))); } /* The only negative margin: the info card overlaps the hero by --wx-hero-overlap – only while the card renders (upcoming/open). */
.wx-hero--stage + .wx-page--top { margin-top: 0; } /* On the stage (intro/live/ended/recording) nothing overlaps the player; the crew row and cards sit a section gap below. */
.wx-group { display: grid; row-gap: var(--wx-space-lg); }
.wx-section__head { display: grid; row-gap: var(--wx-space-xs); justify-items: center; }
.wx-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wx-accent { color: var(--wx-accent); font-style: italic; font-weight: 400; }
.wx-session .wx-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--wx-accent); text-align: center; }
.wx-session .wx-h2 { font-size: clamp(28px, 3vw, 34px); line-height: 1.2; text-align: center; color: var(--wx-primary); text-wrap: balance; }
.wx-rule { display: block; width: 56px; height: 1px; background: var(--wx-accent); opacity: .8; }
.wx-pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--wx-accent); animation: wx-pulse 1.4s ease-in-out infinite; }
.wx-pulse--white { background: #fff; width: 7px; height: 7px; }
@keyframes wx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- Hero (= the player) -------------------------------------------------------------- */
.wx-hero { position: relative; isolation: isolate; color: #fff; background: var(--wx-primary); overflow: hidden; }
.wx-hero__bg { position: absolute; inset: 0; z-index: -3; background-position: center; background-size: cover; background-repeat: no-repeat; transition: opacity .6s ease; }
.wx-hero--plain .wx-hero__bg { background: linear-gradient(180deg, color-mix(in srgb, var(--wx-primary) 85%, #000) 0%, color-mix(in srgb, var(--wx-primary) 60%, #000) 100%); }
.wx-hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity .6s ease; pointer-events: none; }
.wx-hero__video--off { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .wx-hero__video { display: none; } }
.wx-hero__fade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(20,12,10,.25) 0%, var(--wx-hero-overlay) 45%, var(--wx-hero-fade) 100%); transition: opacity .6s ease; }
/* The hero is its content plus air (3xl above and below, never taller than that); only with the info card
   below does the bottom padding reserve the card's overlap plus a section gap (.wx-hero--overlap). */
.wx-hero__inner { position: relative; max-width: 760px; margin: 0 auto; padding: var(--wx-space-3xl) var(--wx-gutter); display: grid; justify-items: center; align-content: center; row-gap: var(--wx-space-lg); text-align: center; }
.wx-hero--overlap .wx-hero__inner { padding-bottom: calc(var(--wx-hero-overlap) + var(--wx-section-gap)); }
.wx-hero__head { display: grid; justify-items: center; row-gap: var(--wx-space-md); }
.wx-hero__text { display: grid; justify-items: center; row-gap: var(--wx-space-xs); }
.wx-hero__rule { display: block; width: 56px; height: 1px; background: rgba(255,255,255,.5); }
.wx-hero__title { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.08; font-weight: 400; color: #fff; text-wrap: balance; max-width: 16ch; }
.wx-session .wx-hero__title .wx-accent { color: var(--wx-accent); }
.wx-session .wx-hero__sub { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; color: rgba(255,255,255,.88); max-width: 48ch; }
.wx-session .wx-hero__lead { font-size: clamp(14px, 1.3vw, 16px); line-height: 1.55; color: rgba(255,255,255,.82); max-width: 52ch; }
.wx-countdown { display: flex; gap: clamp(28px, 5vw, 52px); }
.wx-countdown__unit { display: grid; justify-items: center; row-gap: var(--wx-space-xs); }
.wx-session .wx-countdown__unit b { font-family: var(--wx-font-heading, var(--wx-font, serif)); font-weight: 400; font-size: clamp(30px, 3.2vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.wx-session .wx-countdown__unit small { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.wx-session .wx-hero__soon { display: inline-flex; align-items: center; gap: var(--wx-space-xs); font-size: 18px; font-weight: 600; letter-spacing: .04em; }
.wx-session .wx-hero__cancelled { font-size: 18px; font-weight: 600; }
.wx-hero__pills { display: grid; justify-items: center; row-gap: var(--wx-space-sm); }
.wx-session .wx-pill { display: inline-flex; align-items: center; gap: var(--wx-space-xs); min-height: 34px; padding: 0 22px; border-radius: 999px; background: var(--wx-accent); color: var(--wx-accent-contrast); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; text-align: center; }
.wx-pill--action { cursor: pointer; }
.wx-pill--action:hover { filter: brightness(1.06); }
.wx-session .wx-pill--done { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.wx-session .wx-hero__hint { font-size: 15px; color: rgba(255,255,255,.85); }

/* Stage: dark hero with the 16:9 frame (intro / live / ended / recording); phones take over the screen, see below */
.wx-hero--stage { background: var(--wx-stage-bg, #0f172a); transition: background .6s ease; }
.wx-hero--stage .wx-hero__bg, .wx-hero--stage .wx-hero__video, .wx-hero--stage .wx-hero__fade { opacity: 0; }
.wx-stage { position: relative; padding: var(--wx-space-lg) var(--wx-gutter) var(--wx-space-md); display: grid; justify-items: center; row-gap: var(--wx-space-sm); animation: wx-fade-in .6s ease; }
@keyframes wx-fade-in { from { opacity: 0; } to { opacity: 1; } }
.wx-stage__frame { position: relative; width: 100%; max-width: min(1200px, calc((100svh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; isolation: isolate; }
.wx-session .wx-stage__title { font-size: 15px; color: rgba(255,255,255,.8); text-align: center; }
.wx-stage__title .wx-accent { color: var(--wx-accent); }
.wx-stage__intro { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: var(--wx-stage-bg, #0f172a); overflow: hidden; transition: opacity .6s ease; }
.wx-stage__intro--fading { opacity: 0; pointer-events: none; }
.wx-stage__intro-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wx-stage__intro-text { position: absolute; left: 0; right: 0; bottom: var(--wx-space-md); padding: 0 var(--wx-space-md); text-align: center; font-size: 15px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.wx-stage__unmute { position: relative; z-index: 1; }
.wx-stage__daily { position: absolute; inset: 0; z-index: 2; background: var(--wx-stage-bg, #0f172a); }
.wx-stage__daily iframe { display: block; width: 100%; height: 100%; border: 0; }
.wx-stage__live { position: absolute; top: 56px; left: var(--wx-space-md); z-index: 6; display: flex; align-items: center; gap: var(--wx-space-xs); pointer-events: none; font-variant-numeric: tabular-nums; }
.wx-stage__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 700; }
.wx-stage__timer { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; }
.wx-stage__video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; z-index: 2; }
.wx-stage__ended { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; text-align: center; row-gap: var(--wx-space-xs); padding: var(--wx-space-md); background: rgba(0,0,0,.6); }
.wx-stage__ended-title { font-family: var(--wx-font-heading, var(--wx-font, serif)); font-size: clamp(24px, 3vw, 32px); color: #fff; }
.wx-session .wx-stage__ended-sub { font-size: 15px; color: rgba(255,255,255,.8); }
.wx-session .wx-stage__waiting { position: absolute; left: 0; right: 0; bottom: var(--wx-space-md); z-index: 4; text-align: center; font-size: 15px; color: rgba(255,255,255,.85); padding: 0 var(--wx-space-md); }
.wx-stage__fs { position: absolute; right: var(--wx-space-md); bottom: var(--wx-space-md); z-index: 6; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; }
.wx-stage__fs:hover { background: rgba(0,0,0,.65); }
/* Producer view (call object mode): camera preview with the mixer panel underneath. */
.wx-producer { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--wx-stage-bg, #0f172a); }
/* The producer sees the room as a video meeting: the speaker large, the others in a strip, self small in the corner. */
.wx-producer__stage { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.wx-producer__strip { display: flex; gap: 6px; padding: 6px; overflow-x: auto; }
.wx-producer__strip:empty { display: none; }
.wx-producer__tile { position: relative; background: #000; border-radius: 6px; overflow: hidden; }
.wx-producer__strip .wx-producer__tile { flex: 0 0 160px; aspect-ratio: 16 / 9; }
.wx-producer__main { position: relative; min-height: 0; display: grid; grid-row: 2; }
.wx-producer__main .wx-producer__tile { width: 100%; height: 100%; border-radius: 0; }
.wx-producer__tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wx-producer__tile.is-novideo { display: grid; place-items: center; background: #1e293b; }
.wx-producer__tile.is-novideo video { display: none; }
.wx-producer__name { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; }
.wx-producer__tile.is-muted .wx-producer__name::before { content: "🔇 "; }
.wx-producer__tile.is-novideo .wx-producer__name { position: static; font-size: 14px; background: transparent; }
.wx-producer__self { position: absolute; right: 10px; bottom: 10px; width: 160px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,.4); background: #000; z-index: 3; }
.wx-producer__preview { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.wx-producer__self canvas.wx-producer__preview { object-fit: contain; }
.wx-producer__preview.is-mirrored { transform: scaleX(-1); }
.wx-session .wx-producer__empty { place-self: center; margin: 0; color: rgba(255,255,255,.7); font-size: 14px; }
/* 0.25.6: the big picture is the scene; both on stage stand side by side, and the label says it is not live yet. */
.wx-producer__main.is-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px; }
.wx-session .wx-producer__badge { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: var(--wx-space-xs); margin: 0; pointer-events: none; }
.wx-session .wx-producer__badge[hidden] { display: none; }
.wx-producer__badge-label, .wx-producer__badge-note { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.3; } /* 0.25.9: no text under 13 px in the studio (docs/12, test:visual). */
.wx-producer__badge-label { background: #f59e0b; color: #1f2937; }
.wx-producer__badge-note { background: rgba(0,0,0,.65); color: #fff; }
/* 0.25.7: a viewer who came in without touching the page – silent until she taps. */
.wx-session .wx-viewer__unmute { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; white-space: nowrap; }
.wx-session .wx-viewer__unmute[hidden] { display: none; }
.wx-producer__panel { padding: var(--wx-space-sm) var(--wx-space-md); display: grid; row-gap: var(--wx-space-xs); color: #fff; background: rgba(0,0,0,.65); max-height: 48%; overflow: auto; }
.wx-producer__meter { height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.wx-producer__meter span { display: block; height: 100%; width: 0; background: #22c55e; transition: width .08s linear; }
.wx-producer__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wx-space-xs); font-size: 13px; }
.wx-session .wx-producer__row label { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); font-size: 13px; }
.wx-session .wx-producer select { max-width: 190px; font-size: 13px; padding: 4px 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.4); color: #fff; }
.wx-session .wx-producer .wx-button { color: #fff; border-color: rgba(255,255,255,.5); }
.wx-session .wx-producer .wx-button[aria-pressed="true"] { background: #dc2626; border-color: #dc2626; }
.wx-session .wx-producer__status { font-size: 12px; color: rgba(255,255,255,.75); }
.wx-session .wx-producer__status.is-warning { color: #fca5a5; font-weight: 600; }
.wx-session .wx-producer__alert { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wx-space-xs); margin: 0; padding: 6px 10px; border-radius: 8px; background: rgba(220,38,38,.25); color: #fecaca; font-size: 13px; font-weight: 600; }
.wx-session .wx-producer__alert[hidden] { display: none; }
.wx-session .wx-producer select.is-attention { outline: 2px solid #f59e0b; outline-offset: 1px; }
/* Crew are in the room: the intro layer never shows for them, whatever the script state. */
.wx-crew .wx-stage__intro { display: none !important; }
/* In the room: the viewers (hidden in Daily) as the crew sees them, hands first. */
.wx-room { display: grid; row-gap: var(--wx-space-xs); flex-basis: 100%; }
.wx-room__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wx-space-xs); }
.wx-session .wx-room__search { font-size: 13px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--wx-border); background: #fff; color: var(--wx-text); max-width: 180px; }
.wx-session .wx-room__list { list-style: none; margin: 0; padding: 0; display: grid; row-gap: var(--wx-space-2xs); max-height: 220px; overflow: auto; }
.wx-session .wx-room__item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wx-space-xs); font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--wx-border); }
.wx-session .wx-room__item--hand { background: #fff7e6; border-radius: 6px; padding: 4px 8px; }
.wx-session .wx-room__name { font-weight: 600; }
.wx-session .wx-room__meta { color: var(--wx-muted); }
.wx-session .wx-room__hand { font-size: 14px; }
.wx-session .wx-room__stage { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #dc2626; }
.wx-session .wx-room__empty { font-size: 13px; color: var(--wx-muted); }
.wx-producer .wx-room { color: #fff; }
.wx-producer .wx-room__head strong { font-size: 13px; }
.wx-session .wx-producer .wx-room__search { background: rgba(0,0,0,.4); color: #fff; border-color: rgba(255,255,255,.35); }
.wx-session .wx-producer .wx-room__item { border-color: rgba(255,255,255,.15); }
.wx-session .wx-producer .wx-room__item--hand { background: rgba(245,158,11,.25); }
.wx-session .wx-producer .wx-room__meta { color: rgba(255,255,255,.7); }
.wx-session .wx-producer .wx-room__list { max-height: 120px; }
.wx-hero--takeover + .wx-page--top .wx-controls .wx-room { color: #fff; }
.wx-hero--takeover + .wx-page--top .wx-controls .wx-room__list { max-height: 110px; }
/* Live 0.11: our own viewer (call object). The grid is the stage's layout, nothing else. */
.wx-viewer { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--wx-stage-bg, #0f172a); }
.wx-viewer[hidden] { display: none; }
.wx-viewer__grid { display: grid; gap: 4px; min-height: 0; grid-template-columns: 1fr; }
.wx-viewer__grid[data-layout="2"] { grid-template-columns: 1fr 1fr; }
.wx-viewer__grid[data-layout="3"] { grid-template-columns: 1fr 1fr 1fr; }
.wx-viewer__grid[data-layout="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.wx-viewer__tile { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #0f172a; opacity: 1; transition: opacity .3s ease; }
.wx-viewer__tile.is-entering, .wx-viewer__tile.is-leaving { opacity: 0; }
.wx-viewer__tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.wx-viewer__tile.has-video video { opacity: 1; }
.wx-viewer__tile.is-local video { transform: scaleX(-1); }
.wx-viewer__still { position: absolute; inset: 0; background: #0f172a center / cover no-repeat; opacity: 1; transition: opacity .3s ease; }
.wx-viewer__tile.has-video .wx-viewer__still { opacity: 0; }
.wx-viewer__name { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 3px 9px; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; font-weight: 600; }
.wx-viewer__reconnect { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; font-weight: 600; }
.wx-viewer__reconnect[hidden] { display: none; }
.wx-viewer__spinner { width: 12px; height: 12px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: wx-spin .8s linear infinite; }
.wx-viewer__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 12px; background: rgba(0,0,0,.65); color: #fff; font-variant-numeric: tabular-nums; transition: opacity .3s ease, transform .3s ease; }
.wx-viewer__bar [data-wx-viewer-hand], .wx-viewer__bar [data-wx-viewer-chat] { flex: 1 1 140px; min-height: 48px; font-size: 15px; border-radius: 12px; }
.wx-viewer__bar [data-wx-viewer-chat][aria-pressed="true"] { background: var(--wx-crew-accent, var(--wx-accent)); border-color: transparent; color: #fff; }
.wx-viewer__bar [data-wx-viewer-cam], .wx-viewer__bar [data-wx-viewer-mic] { display: none !important; }
.wx-viewer--bar-hidden .wx-viewer__bar { opacity: 0; transform: translateY(100%); pointer-events: none; }
.wx-viewer__spacer { flex: 1 1 auto; }
.wx-session .wx-viewer__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 0 10px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.wx-session .wx-viewer__btn[aria-pressed="true"] { background: #f59e0b; border-color: #f59e0b; color: #1f2937; }
.wx-session .wx-viewer__btn[data-wx-viewer-mute][aria-pressed="true"] { background: #fff; color: #0f172a; border-color: #fff; }
.wx-session .wx-viewer__btn[data-wx-viewer-mute][aria-pressed="true"] .wx-viewer__wave { display: none; }
.wx-session .wx-viewer__volume { width: 90px; accent-color: #fff; }
.wx-stage--takeover .wx-viewer__grid { gap: 2px; }
@media (max-width: 767px) and (orientation: portrait) {
  .wx-viewer__grid[data-layout="2"], .wx-viewer__grid[data-layout="3"], .wx-viewer__grid[data-layout="4"] { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: minmax(0, 1fr); }
  .wx-session .wx-viewer__volume { display: none; }
  .wx-session .wx-viewer__btn--text { padding: 0 8px; font-size: 12px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .wx-viewer { grid-template-rows: minmax(0, 1fr); }
  .wx-viewer__bar { position: absolute; left: 0; right: 0; bottom: 0; }
}
/* Chat (Live 0.11 B): dark inside the own viewer, light in the production row. */
.wx-viewer__main { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.wx-viewer--chat .wx-viewer__main { grid-template-columns: minmax(0, 1fr) 320px; }
.wx-viewer__chat { display: grid; min-height: 0; background: rgba(0,0,0,.5); border-left: 1px solid rgba(255,255,255,.15); }
.wx-viewer__chat[hidden] { display: none; }
.wx-chat { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; max-height: 100%; }
.wx-session .wx-chat__list { list-style: none; margin: 0; padding: 8px 10px; overflow: auto; display: grid; align-content: end; row-gap: 6px; font-size: 13px; min-height: 0; }
.wx-session .wx-chat__item { display: flex; align-items: flex-end; gap: 8px; max-width: 86%; }
.wx-session .wx-chat__item--own { align-self: flex-end; flex-direction: row-reverse; }
.wx-session .wx-chat__bubble { display: block; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: rgba(255,255,255,.08); }
.wx-session .wx-chat__item--own .wx-chat__bubble { border-radius: 14px 14px 4px 14px; background: rgba(255,255,255,.16); }
.wx-session .wx-chat__item--crew .wx-chat__bubble { background: color-mix(in srgb, var(--wx-crew-accent, var(--wx-accent)) 22%, transparent); border: 1px solid color-mix(in srgb, var(--wx-crew-accent, var(--wx-accent)) 50%, transparent); }
.wx-session .wx-chat__meta { display: block; font-size: 13px; color: #cbd5e1; margin-bottom: 2px; }
.wx-session .wx-chat__item--crew .wx-chat__meta { color: #f3b8c8; font-weight: 700; }
.wx-session .wx-chat__text { font-size: 15px; }
.wx-session .wx-chat__item--hidden .wx-chat__bubble { opacity: .55; text-decoration: line-through; }
.wx-session .wx-chat__empty { color: #cbd5e1; font-size: 13px; }
.wx-session .wx-chat__notice { margin: 0; color: #cbd5e1; font-size: 13px; } /* Spacing comes from the panel's gap (docs/09). */
.wx-session .wx-chat__notice[hidden] { display: none; }
.wx-session .wx-chat__hide { flex: 0 0 auto; min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: 13px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.wx-session .wx-chat__item:hover .wx-chat__hide, .wx-session .wx-chat__item.show-actions .wx-chat__hide, .wx-session .wx-chat__item--hidden .wx-chat__hide { opacity: 1; }
.wx-session .wx-chat__new { position: sticky; bottom: 4px; align-self: center; padding: 6px 12px; border-radius: 999px; border: 0; background: var(--wx-crew-accent, var(--wx-accent)); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.wx-session .wx-chat__new[hidden] { display: none; }
.wx-controls__row--chat .wx-chat__bubble { background: rgba(0,0,0,.05); }
.wx-controls__row--chat .wx-chat__item--own .wx-chat__bubble { background: rgba(0,0,0,.1); }
.wx-controls__row--chat .wx-chat__meta { color: var(--wx-muted); }
.wx-controls__row--chat .wx-chat__hide { color: var(--wx-text); border-color: var(--wx-border); }
.wx-chat__form { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid rgba(255,255,255,.15); }
.wx-session .wx-chat__input { flex: 1 1 auto; min-width: 0; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.4); color: #fff; font-size: 14px; }
.wx-viewer .wx-chat { color: #fff; }
.wx-session .wx-viewer .wx-chat .wx-button { color: #fff; border-color: rgba(255,255,255,.5); }
.wx-controls__row--chat { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--wx-space-xs); align-items: start; }
.wx-controls__row--chat[hidden] { display: none; }
.wx-controls__row--chat .wx-chat { max-height: 260px; border: 1px solid var(--wx-border); border-radius: 8px; background: #fff; }
.wx-controls__row--chat .wx-chat__list { max-height: 200px; }
.wx-session .wx-controls__row--chat .wx-chat__input { background: #fff; color: var(--wx-text); border-color: var(--wx-border); }
.wx-session .wx-controls__row--chat .wx-chat__empty { color: var(--wx-muted); }
.wx-controls__row--chat .wx-chat__form { border-top-color: var(--wx-border); }
.wx-viewer__badge { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: #f59e0b; color: #1f2937; font-size: 11px; line-height: 18px; text-align: center; }
.wx-viewer__badge[hidden] { display: none; }
@media (max-width: 767px) and (orientation: portrait) {
  .wx-viewer--chat .wx-viewer__main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(160px, 38%); }
  .wx-viewer__chat { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
}
@media (max-height: 480px) and (orientation: landscape) {
  .wx-viewer--chat .wx-viewer__main { grid-template-columns: minmax(0, 1fr) 260px; }
}
/* Live 0.27 – the studio: the host's and the producer's own view (call object), after the Riverside studio
   (references/studio/) and rule 14 (docs/12): a calm, near-black stage with the pictures as rounded tiles, one control
   dock at the bottom (the state button as a pill, then round icon buttons with a label underneath), and the
   participants, the chat, the music and the technical block on a white card to the right (a white sheet at the bottom
   on phones). Figtree, pill buttons, hairlines, no shadow except what floats (the More menu, the open sheet). Only
   placement and look: every hook live.js and the tests use is where it was. Spacing with --wx-space-* only (docs/09). */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  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;
}
/* Tokens: the studio's own dark scale, and the rule 14 values the white card uses (same as assets/account/account.css).
   The font file is only fetched when a crew page shows the studio; viewers never ask for it. */
.wx-session.wx-crew {
  --wx-studio-bg: #111214;
  --wx-studio-tile: #1c1d21;
  --wx-studio-raised: #2a2b30;
  --wx-studio-raised-hover: #37383e;
  --wx-studio-text: #f5f5f5;
  --wx-studio-muted: #b8b8bd;      /* 9.4:1 on the stage */
  --wx-studio-live: #dc2626;
  --wx-studio-side: 360px;         /* the white card on wide screens */
  --wx-studio-head: 44px;          /* the scene line above the pictures */
  --wx-studio-icon: 22px;          /* icon in a round button: 22 + 2 × 12 = 46 px */
  --wx-ui-surface: #FFFFFF;
  --wx-ui-subtle: #F7F7F7;
  --wx-ui-hover: #F7F7F7;
  --wx-ui-active: #EDEDED;
  --wx-ui-border: #E5E5E5;
  --wx-ui-field-border: #D5D5D5;
  --wx-ui-text: #0D0D0D;
  --wx-ui-muted: #6B6B6B;
  --wx-ui-ink: #0D0D0D;
  --wx-ui-ink-hover: #2E2E2E;
  --wx-ui-ink-contrast: #FFFFFF;
  --wx-ui-danger: #B91C1C;
  --wx-ui-danger-bg: #FEF2F2;
  --wx-ui-radius-card: 12px;
  --wx-ui-radius: 8px;
  --wx-ui-radius-dialog: 16px;
  --wx-ui-radius-pill: 999px;
  --wx-ui-font: "Figtree", -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wx-session.wx-crew .wx-stage { font-family: var(--wx-ui-font); }
.wx-session.wx-crew .wx-stage--takeover, .wx-session.wx-crew .wx-stage--takeover .wx-stage__frame:has(> .wx-producer:not([hidden])) { background: var(--wx-studio-bg); }
.wx-session.wx-crew .wx-stage--takeover:has(> .wx-stage__frame > .wx-producer:not([hidden])) { padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0); } /* Edge to edge: the phone rule for .wx-stage (gutter) comes later in this file and would win over the takeover's own padding. */

/* Phones first: grid-areas video · quick · scene · glance · sheet · action (the dock is only a box on wide screens). */
.wx-session .wx-crew { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr) auto auto; grid-template-areas: "video" "quick" "scene" "glance" "sheet" "action"; background: var(--wx-studio-bg); color: var(--wx-studio-text); font-family: var(--wx-ui-font); font-size: 15px; line-height: 1.4; }
.wx-crew__dock { display: contents; }
.wx-crew__video { grid-area: video; position: relative; min-height: 0; background: #000; aspect-ratio: 16 / 9; min-height: 26vh; min-height: 26dvh; max-height: 38vh; max-height: 38dvh; }
.wx-crew__video .wx-producer__stage { position: absolute; inset: 0; }
.wx-session .wx-crew .wx-producer__strip { gap: var(--wx-space-xs); padding: var(--wx-space-xs); }
.wx-session .wx-crew .wx-producer__tile { background: var(--wx-studio-tile); border-radius: var(--wx-ui-radius); }
.wx-session .wx-crew .wx-producer__main .wx-producer__tile { border-radius: 0; }
.wx-session .wx-crew .wx-producer__tile--screen { background: #000; }
.wx-producer__tile--screen video { object-fit: contain; background: #000; }
.wx-producer__strip .wx-producer__tile--screen { flex-basis: 200px; }
/* Name labels: a quiet pill bottom left; a muted microphone is a small red icon, not an emoji. */
.wx-session .wx-crew .wx-producer__name { left: var(--wx-space-xs); bottom: var(--wx-space-xs); display: inline-flex; align-items: center; gap: var(--wx-space-2xs); max-width: calc(100% - 2 * var(--wx-space-xs)); padding: var(--wx-space-2xs) var(--wx-space-sm); border-radius: var(--wx-ui-radius-pill); background: rgba(17,18,20,.62); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-session .wx-crew .wx-producer__tile.is-muted .wx-producer__name::before { content: ""; flex: none; width: 14px; height: 14px; background: #fca5a5; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M9 9v2a3 3 0 0 0 5.1 2.1M15 9.3V6a3 3 0 0 0-5.7-1.3M19 11a7 7 0 0 1-1.2 3.9M5 11a7 7 0 0 0 11.2 5.6M12 18v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M9 9v2a3 3 0 0 0 5.1 2.1M15 9.3V6a3 3 0 0 0-5.7-1.3M19 11a7 7 0 0 1-1.2 3.9M5 11a7 7 0 0 0 11.2 5.6M12 18v3'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Camera off: a round silhouette above the name, centred on the tile. */
.wx-session .wx-crew .wx-producer__tile.is-novideo { display: grid; place-content: center; justify-items: center; row-gap: var(--wx-space-xs); }
.wx-session .wx-crew .wx-producer__tile.is-novideo::before { content: ""; width: 64px; height: 64px; border-radius: 50%; background: var(--wx-studio-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8b8bd'%3E%3Ccircle cx='12' cy='9' r='4'/%3E%3Cpath d='M4 21c.6-4 3.8-6.5 8-6.5s7.4 2.5 8 6.5z'/%3E%3C/svg%3E") center / 60% no-repeat; }
.wx-session .wx-crew .wx-producer__strip .wx-producer__tile.is-novideo::before { width: 32px; height: 32px; }
.wx-session .wx-crew .wx-producer__tile.is-novideo .wx-producer__name { position: static; max-width: 100%; padding: 0 var(--wx-space-xs); background: transparent; font-size: 14px; }
.wx-session .wx-crew .wx-producer__self { right: var(--wx-space-xs); bottom: var(--wx-space-xs); width: 112px; border-radius: var(--wx-ui-radius); border: 2px solid var(--wx-studio-bg); }
.wx-session .wx-crew .wx-producer__empty { color: var(--wx-studio-muted); font-size: 15px; }

/* The round buttons: icon in a 46 px circle, the word underneath (Riverside's Mic · Cam · Share). */
.wx-crew__quick { grid-area: quick; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wx-space-xs); padding: var(--wx-space-sm) var(--wx-space-sm) var(--wx-space-2xs); }
.wx-crew__quick.has-share { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wx-session .wx-crew__btn { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: var(--wx-space-2xs); min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: var(--wx-ui-radius); background: transparent; color: var(--wx-studio-muted); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center; cursor: pointer; }
.wx-session .wx-crew__btn[hidden] { display: none; }
.wx-session .wx-crew__btn svg { box-sizing: content-box; flex: none; width: var(--wx-studio-icon); height: var(--wx-studio-icon); padding: var(--wx-space-sm); border-radius: 50%; background: var(--wx-studio-raised); color: var(--wx-studio-text); transition: background-color .15s ease, color .15s ease; }
.wx-session .wx-crew__btn:hover svg { background: var(--wx-studio-raised-hover); }
.wx-session .wx-crew__btn.is-off svg, .wx-session .wx-crew__btn.is-off:hover svg { background: var(--wx-studio-live); color: #fff; }
.wx-session .wx-crew__btn[data-wx-crew-share].is-on svg { background: var(--wx-crew-accent, var(--wx-accent)); color: #fff; }
.wx-session .wx-crew__btn[aria-expanded="true"] svg { background: var(--wx-studio-text); color: var(--wx-studio-bg); }
.wx-session .wx-crew__btn:disabled { cursor: default; opacity: .6; }
/* More: a white menu that floats (rule 14's one shadow), with the state buttons that are not next. */
.wx-crew__more { position: absolute; right: var(--wx-space-sm); bottom: calc(var(--wx-space-2xl) + var(--wx-space-2xs)); z-index: 9; min-width: 240px; padding: var(--wx-space-xs); border-radius: var(--wx-ui-radius-dialog); background: var(--wx-ui-surface); color: var(--wx-ui-text); box-shadow: 0 12px 32px rgba(0,0,0,.4); display: grid; gap: var(--wx-space-2xs); }
.wx-crew__more[hidden] { display: none; }
.wx-session .wx-crew__more .wx-button, .wx-session .wx-crew__more-item { display: block; width: 100%; min-height: 44px; padding: 0 var(--wx-space-sm); border-radius: var(--wx-ui-radius); border: 0; background: transparent; color: var(--wx-ui-text); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.wx-session .wx-crew__more .wx-button:hover, .wx-session .wx-crew__more-item:hover { background: var(--wx-ui-hover); filter: none; }
.wx-session .wx-crew__more .wx-button[data-wx-set-state="ended"] { color: var(--wx-ui-danger); }
.wx-session .wx-crew__more .wx-button[hidden] { display: none; }

/* The scene: "In frame now" (with REC) and the three modes as a segmented pill; the active one white. */
.wx-crew__scene { grid-area: scene; min-width: 0; padding: var(--wx-space-xs) var(--wx-space-sm) 0; }
.wx-session .wx-crew .wx-controls__row--scene { display: grid; justify-items: stretch; row-gap: var(--wx-space-xs); }
.wx-session .wx-crew .wx-controls__now { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wx-space-xs); min-width: 0; font-size: 15px; font-weight: 600; color: var(--wx-studio-text); }
.wx-session .wx-crew .wx-controls__rec { display: inline-flex; height: 24px; padding: 0 var(--wx-space-xs); border-radius: var(--wx-ui-radius-pill); font-size: 13px; line-height: 24px; }
.wx-session .wx-crew .wx-controls__scene-line { display: block; width: 100%; }
.wx-session .wx-crew .wx-controls__scene-line .wx-controls__label { display: none; }
.wx-session .wx-crew .wx-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wx-space-2xs); width: 100%; padding: var(--wx-space-2xs); border: 0; border-radius: var(--wx-ui-radius-pill); background: var(--wx-studio-tile); overflow: visible; }
.wx-session .wx-crew .wx-seg__btn { min-height: 40px; padding: 0 var(--wx-space-sm); border: 0; border-radius: var(--wx-ui-radius-pill); background: transparent; color: var(--wx-studio-muted); font-size: 14px; font-weight: 600; }
.wx-session .wx-crew .wx-seg__btn + .wx-seg__btn { border-left: 0; }
.wx-session .wx-crew .wx-seg__btn:hover:not(:disabled) { color: var(--wx-studio-text); }
.wx-session .wx-crew .wx-seg__btn[aria-pressed="true"] { background: var(--wx-studio-text); color: var(--wx-studio-bg); }
.wx-session .wx-crew .wx-seg__btn:disabled { opacity: .4; }
.wx-session .wx-crew .wx-controls__transition { color: #fbbf24; }

/* Phones: two chat lines and the participant count as buttons between the controls and the sheet. */
.wx-crew__glance { grid-area: glance; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--wx-space-xs); padding: var(--wx-space-sm); min-height: 0; overflow: hidden; }
.wx-session .wx-crew__glance-btn { display: grid; align-content: start; gap: var(--wx-space-2xs); min-height: 44px; padding: var(--wx-space-sm); border: 0; border-radius: var(--wx-ui-radius-card); background: var(--wx-studio-tile); color: var(--wx-studio-muted); font: inherit; font-size: 14px; text-align: left; cursor: pointer; overflow: hidden; }
.wx-session .wx-crew__glance-btn--room { font-weight: 600; color: var(--wx-studio-text); }
.wx-crew__glance-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-crew__glance-line b { color: var(--wx-studio-text); font-weight: 600; }

/* The sheet: white, the handle closed at the bottom on phones; open it covers 78 % with the tabs as pills. */
.wx-crew__sheet { grid-area: sheet; display: grid; grid-template-rows: auto; min-width: 0; background: var(--wx-ui-surface); color: var(--wx-ui-text); border-radius: var(--wx-ui-radius-dialog) var(--wx-ui-radius-dialog) 0 0; }
.wx-session .wx-crew__handle { display: flex; flex-direction: column; align-items: center; gap: var(--wx-space-xs); width: 100%; min-height: 44px; padding: var(--wx-space-xs) var(--wx-space-sm) var(--wx-space-2xs); border: 0; background: transparent; color: var(--wx-ui-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.wx-crew__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--wx-ui-field-border); }
.wx-crew__handle-text { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-crew__tabs, .wx-crew__panel { display: none; }
.wx-crew__sheet.is-open { grid-area: auto; position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; max-height: 78%; grid-template-rows: auto auto minmax(0, 1fr); box-shadow: 0 -12px 32px rgba(0,0,0,.45); }
.wx-crew__sheet.is-open .wx-crew__tabs { display: flex; gap: var(--wx-space-xs); padding: 0 var(--wx-space-sm) var(--wx-space-xs); overflow-x: auto; }
.wx-crew__sheet.is-open .wx-crew__panel:not([hidden]) { display: grid; align-content: start; gap: var(--wx-space-sm); min-height: 0; overflow: auto; padding: var(--wx-space-xs) var(--wx-space-sm) var(--wx-space-sm); }
.wx-session .wx-crew__tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--wx-space-2xs); min-height: 40px; padding: 0 var(--wx-space-md); border-radius: var(--wx-ui-radius-pill); border: 1px solid var(--wx-ui-border); background: transparent; color: var(--wx-ui-text); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.wx-session .wx-crew__tab:hover { background: var(--wx-ui-hover); }
.wx-session .wx-crew__tab[aria-selected="true"] { border-color: transparent; background: var(--wx-accent-soft); font-weight: 700; }
.wx-session .wx-crew__tab span { color: var(--wx-ui-muted); font-weight: 600; }
.wx-session .wx-crew__tab span[data-wx-crew-count-chat] { display: inline-block; min-width: 22px; padding: 0 var(--wx-space-2xs); border-radius: var(--wx-ui-radius-pill); background: var(--wx-crew-accent, var(--wx-accent)); color: #fff; font-size: 13px; line-height: 22px; text-align: center; }
.wx-session .wx-crew__tab span[data-wx-crew-count-chat][hidden] { display: none; }

/* The state button: the one primary – black on the white bottom on phones, white on the dark dock on wide screens;
   "Go live" carries a red dot, "End broadcast" is red. */
.wx-crew__action { grid-area: action; padding: var(--wx-space-xs) var(--wx-space-sm) var(--wx-space-sm); background: var(--wx-ui-surface); }
.wx-session .wx-crew__action .wx-button { display: none; }
.wx-session .wx-crew__action .wx-button.wx-crew__primary { display: flex; align-items: center; justify-content: center; gap: var(--wx-space-xs); width: 100%; min-height: 52px; padding: 0 var(--wx-space-md); border-radius: var(--wx-ui-radius-pill); border: 0; background: var(--wx-ui-ink); color: var(--wx-ui-ink-contrast); font: inherit; font-size: 16px; font-weight: 700; white-space: nowrap; filter: none; }
.wx-session .wx-crew__action .wx-button.wx-crew__primary:hover { background: var(--wx-ui-ink-hover); }
.wx-session .wx-crew__action .wx-button.wx-crew__primary[data-wx-set-state="live"]::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--wx-studio-live); }
.wx-session .wx-crew__action .wx-button.wx-crew__primary[data-wx-set-state="ended"] { background: var(--wx-ui-danger); }
.wx-session .wx-crew__action .wx-button.wx-crew__primary[data-wx-set-state="ended"]:hover { background: #991b1b; }
.wx-session .wx-crew__action .wx-button.wx-crew__primary:disabled { opacity: .6; }

/* The panels on the white card: rows with hairlines, rule 14 type (labels 15/600, meta 14), pill fields and buttons. */
.wx-session .wx-crew .wx-crew__panel .wx-button { min-height: 40px; padding: 0 var(--wx-space-md); border-radius: var(--wx-ui-radius-pill); border: 1px solid var(--wx-ui-field-border); background: var(--wx-ui-surface); color: var(--wx-ui-text); font-size: 14px; font-weight: 600; }
.wx-session .wx-crew .wx-crew__panel .wx-button:hover { background: var(--wx-ui-hover); }
.wx-session .wx-crew .wx-room { row-gap: var(--wx-space-sm); color: var(--wx-ui-text); }
.wx-session .wx-crew .wx-room__head .wx-controls__label { display: none; }
.wx-session .wx-crew .wx-room__search { flex: 1 1 100%; width: 100%; max-width: none; min-height: 44px; padding: 0 var(--wx-space-md); border-radius: var(--wx-ui-radius-pill); border: 1px solid var(--wx-ui-field-border); background: var(--wx-ui-surface); color: var(--wx-ui-text); font-size: 16px; }
.wx-session .wx-crew .wx-room__search:focus-visible { outline: 0; border: 2px solid var(--wx-accent); }
.wx-session .wx-crew .wx-room__list { max-height: none; row-gap: 0; }
.wx-session .wx-crew .wx-room__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name button" "meta button"; column-gap: var(--wx-space-sm); row-gap: var(--wx-space-2xs); padding: var(--wx-space-sm) var(--wx-space-xs); border: 0; border-bottom: 1px solid var(--wx-ui-border); border-radius: 0; background: transparent; font-size: 15px; }
.wx-session .wx-crew .wx-room__item:last-child { border-bottom: 0; }
.wx-session .wx-crew .wx-room__item--hand { border-radius: var(--wx-ui-radius); border-bottom-color: transparent; background: #FFF7E6; }
.wx-session .wx-crew .wx-room__item--stage { border-radius: var(--wx-ui-radius); border-bottom-color: transparent; background: var(--wx-accent-soft); }
.wx-session .wx-crew .wx-room__name { grid-area: name; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--wx-ui-text); }
.wx-session .wx-crew .wx-room__meta { grid-area: meta; color: var(--wx-ui-muted); font-size: 14px; }
.wx-session .wx-crew .wx-room__hand, .wx-session .wx-crew .wx-room__stage { grid-area: meta; justify-self: start; margin-left: 0; font-size: 13px; }
.wx-session .wx-crew .wx-room__item .wx-button { grid-area: button; align-self: center; white-space: nowrap; }
.wx-session .wx-crew .wx-room__item .wx-button.wx-room__admit { border-color: var(--wx-ui-ink); background: var(--wx-ui-ink); color: var(--wx-ui-ink-contrast); }
.wx-session .wx-crew .wx-room__item .wx-button.wx-room__admit:hover { background: var(--wx-ui-ink-hover); }
.wx-session .wx-crew .wx-room__item .wx-button:disabled { opacity: .4; }
.wx-session .wx-crew .wx-room__empty { padding: var(--wx-space-sm) 0; color: var(--wx-ui-muted); font-size: 14px; }
/* Chat: others left in a neutral bubble, own and crew right/tinted with the accent, the field and Send as pills. */
.wx-session .wx-crew .wx-crew__panel[data-wx-crew-panel="chat"] { grid-template-rows: minmax(0, 1fr); }
/* 0.25.9: "Close the chat for viewers" (0.25) comes first in the panel: its own row, as a pill, and the chat gets the rest. */
.wx-session .wx-crew .wx-crew__panel[data-wx-crew-panel="chat"]:has(> .wx-chat__close) { grid-template-rows: auto minmax(0, 1fr); }
.wx-session .wx-crew .wx-crew__panel .wx-chat__close { align-self: start; justify-self: start; height: auto; }
.wx-session .wx-crew .wx-controls__row--chat { display: block; min-height: 0; height: 100%; }
.wx-session .wx-crew .wx-controls__row--chat .wx-controls__label { display: none; }
.wx-session .wx-crew .wx-controls__row--chat .wx-chat { height: 100%; max-height: none; border: 0; border-radius: 0; background: transparent; color: var(--wx-ui-text); }
.wx-session .wx-crew .wx-chat__list { max-height: none; padding: 0 0 var(--wx-space-sm); row-gap: var(--wx-space-sm); font-size: 15px; }
.wx-session .wx-crew .wx-chat__item { max-width: 90%; gap: var(--wx-space-xs); }
.wx-session .wx-crew .wx-chat__bubble { display: grid; row-gap: var(--wx-space-2xs); padding: var(--wx-space-xs) var(--wx-space-sm); border: 1px solid transparent; border-radius: 18px 18px 18px 6px; background: var(--wx-ui-subtle); }
.wx-session .wx-crew .wx-chat__item--own .wx-chat__bubble { border-radius: 18px 18px 6px 18px; }
.wx-session .wx-crew .wx-chat__item--own .wx-chat__bubble, .wx-session .wx-crew .wx-chat__item--crew .wx-chat__bubble { background: var(--wx-accent-soft); border-color: color-mix(in srgb, var(--wx-accent) 35%, transparent); }
.wx-session .wx-crew .wx-chat__meta { margin: 0; color: var(--wx-ui-muted); font-size: 13px; font-weight: 600; }
.wx-session .wx-crew .wx-chat__item--crew .wx-chat__meta { color: var(--wx-ui-text); font-weight: 700; }
.wx-session .wx-crew .wx-chat__text { color: var(--wx-ui-text); font-size: 15px; line-height: 1.45; }
.wx-session .wx-crew .wx-chat__hide { min-height: 32px; padding: 0 var(--wx-space-sm); border-color: var(--wx-ui-field-border); background: var(--wx-ui-surface); color: var(--wx-ui-text); font-size: 13px; font-weight: 600; }
.wx-session .wx-crew .wx-chat__empty, .wx-session .wx-crew .wx-chat__notice { color: var(--wx-ui-muted); font-size: 14px; }
.wx-session .wx-crew .wx-chat__new { background: var(--wx-ui-ink); color: var(--wx-ui-ink-contrast); }
.wx-session .wx-crew .wx-controls__row--chat .wx-chat__form { gap: var(--wx-space-xs); padding: var(--wx-space-sm) 0 0; border-top: 1px solid var(--wx-ui-border); }
.wx-session .wx-crew .wx-controls__row--chat .wx-chat__input { min-height: 44px; padding: 0 var(--wx-space-md); border-radius: var(--wx-ui-radius-pill); border: 1px solid var(--wx-ui-field-border); background: var(--wx-ui-surface); color: var(--wx-ui-text); font-size: 16px; }
.wx-session .wx-crew .wx-controls__row--chat .wx-chat__input:focus-visible { outline: 0; border: 2px solid var(--wx-accent); }
.wx-session .wx-crew .wx-controls__row--chat .wx-chat__form .wx-button { min-height: 44px; border-color: var(--wx-ui-ink); background: var(--wx-ui-ink); color: var(--wx-ui-ink-contrast); }
.wx-session .wx-crew .wx-controls__row--chat .wx-chat__form .wx-button:hover { background: var(--wx-ui-ink-hover); }
/* Music: a black round play/pause, From the start as a secondary pill, the volume, the time. */
.wx-session .wx-crew .wx-controls__row[data-wx-music] { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "play title" "play restart" "volume volume" "status status"; align-items: center; gap: var(--wx-space-xs) var(--wx-space-sm); }
.wx-session .wx-crew .wx-controls__row[data-wx-music][hidden] { display: none; }
.wx-session .wx-crew .wx-controls__row[data-wx-music] .wx-controls__label { grid-area: title; color: var(--wx-ui-text); font-size: 15px; font-weight: 600; }
.wx-session .wx-crew .wx-controls__row[data-wx-music] [data-wx-music-play], .wx-session .wx-crew .wx-controls__row[data-wx-music] [data-wx-music-pause] { grid-area: play; display: grid; place-items: center; width: 56px; height: 56px; min-height: 56px; padding: 0; border-radius: 50%; border: 0; background: var(--wx-ui-ink); color: var(--wx-ui-ink-contrast); font-size: 0; }
.wx-session .wx-crew .wx-controls__row[data-wx-music] [data-wx-music-play]:hover, .wx-session .wx-crew .wx-controls__row[data-wx-music] [data-wx-music-pause]:hover { background: var(--wx-ui-ink-hover); }
.wx-session .wx-crew .wx-controls__row[data-wx-music] [data-wx-music-play]::before { content: ""; display: block; width: 0; height: 0; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.wx-session .wx-crew .wx-controls__row[data-wx-music] [data-wx-music-pause]::before { content: ""; display: block; width: 16px; height: 20px; border-left: 5px solid #fff; border-right: 5px solid #fff; box-sizing: border-box; }
.wx-session .wx-crew .wx-controls__row[data-wx-music] [data-wx-music-restart] { grid-area: restart; justify-self: start; }
.wx-session .wx-crew .wx-controls__row[data-wx-music] .wx-controls__volume { grid-area: volume; display: flex; align-items: center; gap: var(--wx-space-sm); color: var(--wx-ui-muted); font-size: 14px; }
.wx-session .wx-crew .wx-controls__row[data-wx-music] .wx-controls__volume input { flex: 1 1 auto; width: auto; accent-color: var(--wx-ui-ink); }
.wx-session .wx-crew .wx-controls__row[data-wx-music] .wx-controls__hint { grid-area: status; color: var(--wx-ui-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.wx-session .wx-crew .wx-producer__check { display: flex; align-items: center; gap: var(--wx-space-sm); min-height: 44px; color: var(--wx-ui-text); font-size: 15px; }
.wx-session .wx-crew .wx-producer__check input { width: 20px; height: 20px; accent-color: var(--wx-ui-ink); }
/* Technical: the level meter, the two device lists as fields, the status line and the red alert. */
.wx-session .wx-crew .wx-producer__meter { height: 6px; border-radius: 3px; background: var(--wx-ui-active); }
.wx-session .wx-crew .wx-producer__row { gap: var(--wx-space-sm); }
.wx-session .wx-crew .wx-producer__row label { display: grid; gap: var(--wx-space-2xs); width: 100%; color: var(--wx-ui-text); font-size: 15px; font-weight: 600; }
.wx-session .wx-crew .wx-producer__row select { width: 100%; max-width: none; min-height: 48px; padding: 0 var(--wx-space-sm); border-radius: var(--wx-ui-radius); border: 1px solid var(--wx-ui-field-border); background: var(--wx-ui-surface); color: var(--wx-ui-text); font-size: 16px; font-weight: 400; }
.wx-session .wx-crew .wx-producer__status { color: var(--wx-ui-muted); font-size: 14px; }
.wx-session .wx-crew .wx-producer__status.is-warning { color: var(--wx-ui-danger); }
.wx-session .wx-crew .wx-producer__alert { padding: var(--wx-space-xs) var(--wx-space-sm); border-radius: var(--wx-ui-radius); background: var(--wx-ui-danger-bg); color: var(--wx-ui-danger); font-size: 14px; }

/* Landscape phone: the picture fills, the controls float over it and hide after 3 s (live.js). */
.wx-session .wx-crew--landscape { grid-template-rows: minmax(0, 1fr); grid-template-areas: "video"; }
.wx-session .wx-crew--landscape .wx-crew__video { aspect-ratio: auto; max-height: none; }
.wx-crew--landscape .wx-crew__quick, .wx-crew--landscape .wx-crew__scene, .wx-crew--landscape .wx-crew__action, .wx-crew--landscape .wx-crew__sheet { grid-area: auto; }
.wx-crew--landscape .wx-crew__overlay { display: flex; }
.wx-crew--landscape .wx-crew__quick, .wx-crew--landscape .wx-crew__scene, .wx-crew--landscape .wx-crew__action { position: absolute; z-index: 5; transition: opacity .3s ease; }
.wx-crew--landscape .wx-crew__quick { left: var(--wx-space-sm); bottom: var(--wx-space-xs); grid-template-columns: repeat(3, auto); padding: 0; }
.wx-crew--landscape .wx-crew__quick.has-share { grid-template-columns: repeat(4, auto); }
.wx-crew--landscape .wx-crew__btn span { display: none; }
.wx-session .wx-crew--landscape .wx-producer__self { bottom: 70px; }
.wx-crew--landscape .wx-producer__main .wx-producer__name { bottom: 70px; }
.wx-stage--takeover:not(.wx-stage--bar-hidden) .wx-crew__overlay-live { display: none; }
.wx-crew--landscape .wx-crew__scene { left: 50%; bottom: var(--wx-space-xs); width: 300px; padding: 0; transform: translateX(-50%); }
.wx-crew--landscape .wx-crew__scene .wx-controls__now { display: none; }
.wx-crew--landscape .wx-crew__action { right: var(--wx-space-sm); bottom: var(--wx-space-xs); width: auto; padding: 0; background: transparent; }
.wx-session .wx-crew--landscape .wx-crew__action .wx-button.wx-crew__primary { min-height: 44px; font-size: 14px; }
.wx-session .wx-crew--landscape .wx-crew__action .wx-button.wx-crew__primary:not([data-wx-set-state="ended"]) { background: #fff; color: var(--wx-ui-ink); }
.wx-crew--landscape .wx-crew__glance { display: none; }
.wx-crew--landscape .wx-crew__sheet:not(.is-open) { position: absolute; right: var(--wx-space-sm); top: var(--wx-space-xs); z-index: 5; border-radius: var(--wx-ui-radius-pill); background: rgba(17,18,20,.62); }
.wx-session .wx-crew--landscape .wx-crew__sheet:not(.is-open) .wx-crew__handle { flex-direction: row; min-height: 40px; padding: 0 var(--wx-space-sm); color: #fff; }
.wx-crew--landscape .wx-crew__sheet:not(.is-open) .wx-crew__grip { display: none; }
.wx-crew__overlay { position: absolute; left: 0; right: 0; top: 0; display: none; align-items: center; gap: var(--wx-space-sm); padding: var(--wx-space-xs) var(--wx-space-sm); background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); z-index: 4; pointer-events: none; }
.wx-crew__overlay-now { font-size: 15px; font-weight: 700; color: #fff; }
.wx-crew--landscape.wx-crew--hidden .wx-crew__quick, .wx-crew--landscape.wx-crew--hidden .wx-crew__scene, .wx-crew--landscape.wx-crew--hidden .wx-crew__action, .wx-crew--landscape.wx-crew--hidden .wx-crew__overlay, .wx-crew--landscape.wx-crew--hidden .wx-crew__sheet:not(.is-open) { opacity: 0; pointer-events: none; }

/* Tablets and wider (not taken over): the frame drops 16:9 and becomes the studio, near-black edge to edge. */
@media (min-width: 768px) {
  .wx-session.wx-crew .wx-hero--stage:has(.wx-stage:not(.wx-stage--takeover) > .wx-stage__frame > .wx-producer:not([hidden])) { background: var(--wx-studio-bg); }
  .wx-session.wx-crew .wx-stage:not(.wx-stage--takeover) > .wx-stage__frame:has(> .wx-producer:not([hidden])) { max-width: 1680px; height: max(600px, calc(100svh - 96px)); aspect-ratio: auto; border-radius: 0; background: var(--wx-studio-bg); }
  .wx-session.wx-crew .wx-stage:not(.wx-stage--takeover) > .wx-stage__frame:has(> .wx-producer:not([hidden])):is(:fullscreen, :-webkit-full-screen) { height: 100%; max-width: none; }
  /* Until the side card fits (900 px) the view is the phone's column: full screen top right of the pictures, not on the state button. */
  .wx-session.wx-crew .wx-stage:not(.wx-stage--takeover) > .wx-stage__frame:has(> .wx-producer:not([hidden])) .wx-stage__fs { top: var(--wx-space-sm); right: var(--wx-space-sm); bottom: auto; }
}
/* Wide screens: head · pictures · dock on the left, the white card on the right (Riverside's side panel). */
@media (min-width: 900px) {
  .wx-session .wx-crew:not(.wx-crew--phone) { grid-template-columns: minmax(0, 1fr) var(--wx-studio-side); grid-template-rows: var(--wx-studio-head) minmax(0, 1fr) auto; grid-template-areas: "head side" "video side" "dock side"; gap: var(--wx-space-sm) var(--wx-space-md); padding: var(--wx-space-md); }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__video { aspect-ratio: auto; min-height: 0; max-height: none; background: transparent; }
  /* The pictures: the big one on top, the others as a filmstrip under it, your own small in the top right corner. */
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-producer__stage { grid-template-rows: minmax(0, 1fr) auto; row-gap: var(--wx-space-sm); }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-producer__main { grid-row: 1; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-producer__strip { grid-row: 2; padding: 0; gap: var(--wx-space-sm); }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-producer__strip .wx-producer__tile { flex: 0 0 192px; border-radius: var(--wx-ui-radius-card); }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-producer__main .wx-producer__tile { border-radius: var(--wx-ui-radius-dialog); }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-producer__main { border-radius: var(--wx-ui-radius-dialog); background: var(--wx-studio-tile); }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-producer__name { left: var(--wx-space-sm); bottom: var(--wx-space-sm); font-size: 14px; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-producer__tile.is-novideo .wx-producer__name { font-size: 15px; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-producer__self { top: var(--wx-space-sm); right: var(--wx-space-sm); bottom: auto; width: 224px; border-radius: var(--wx-ui-radius-card); }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-producer__self .wx-producer__name { left: var(--wx-space-xs); bottom: var(--wx-space-xs); font-size: 13px; }
  /* Head: "In frame now" left, the modes right; room on the far right for the full screen button (in the frame). */
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__scene { grid-area: head; display: flex; align-items: center; padding: 0 calc(40px + var(--wx-space-sm)) 0 0; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-controls__row--scene { display: flex; flex: 1 1 auto; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: var(--wx-space-md); min-width: 0; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-controls__row--scene[hidden] { display: none; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-controls__now { flex-wrap: nowrap; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-controls__scene-line { flex: none; width: auto; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-seg { grid-template-columns: repeat(3, auto); width: auto; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-seg__btn { min-height: 36px; padding: 0 var(--wx-space-md); }
  /* Dock: the state pill, then the round buttons; More opens upwards from its right edge. */
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__dock { grid-area: dock; position: relative; display: flex; align-items: flex-start; justify-self: center; gap: var(--wx-space-md); }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__action { display: flex; padding: 0; background: transparent; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__action .wx-button.wx-crew__primary { width: auto; min-height: 46px; padding: 0 var(--wx-space-md); font-size: 15px; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__action .wx-button.wx-crew__primary:not([data-wx-set-state="ended"]) { background: #fff; color: var(--wx-ui-ink); }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__action .wx-button.wx-crew__primary:not([data-wx-set-state="ended"]):hover { background: var(--wx-ui-active); }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__quick { display: flex; gap: var(--wx-space-xs); padding: 0; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__btn { width: 80px; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__more { right: 0; bottom: calc(100% + var(--wx-space-xs)); }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__glance { display: none; }
  /* The white card: tabs, the chosen panel (scrolls), and the music under a hairline (always there, no tab). */
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__sheet { grid-area: side; position: static; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--wx-space-md); min-height: 0; max-height: none; padding: var(--wx-space-md); border-radius: var(--wx-ui-radius-dialog); box-shadow: none; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__handle { display: none; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__tabs { display: flex; flex-wrap: wrap; gap: var(--wx-space-xs); padding: 0; overflow: visible; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__tab--music { display: none; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__panel { display: none; grid-row: 2; align-content: start; gap: var(--wx-space-sm); min-height: 0; padding: 0; overflow: auto; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__panel:not([hidden]) { display: grid; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__panel--music { display: grid !important; grid-row: 3; padding-top: var(--wx-space-md); border-top: 1px solid var(--wx-ui-border); overflow: visible; }
  /* What live.js shows in the frame over the view: LIVE / Backstage on the big picture, full screen at the head's end,
     the toast above the dock. */
  .wx-session.wx-crew .wx-stage:not(.wx-stage--takeover) > .wx-stage__frame:has(> .wx-producer:not([hidden])) :is(.wx-stage__live, .wx-stage__backstage) { top: calc(var(--wx-space-md) + var(--wx-studio-head) + var(--wx-space-sm) + var(--wx-space-sm)); left: calc(var(--wx-space-md) + var(--wx-space-sm)); }
  .wx-session.wx-crew .wx-stage:not(.wx-stage--takeover) > .wx-stage__frame:has(> .wx-producer:not([hidden])) .wx-stage__badge { padding: var(--wx-space-2xs) var(--wx-space-sm); font-size: 13px; }
  .wx-session.wx-crew .wx-stage:not(.wx-stage--takeover) > .wx-stage__frame:has(> .wx-producer:not([hidden])) .wx-stage__timer { padding: var(--wx-space-2xs) var(--wx-space-sm); background: rgba(17,18,20,.62); font-size: 13px; font-variant-numeric: tabular-nums; }
  .wx-session.wx-crew .wx-stage:not(.wx-stage--takeover) > .wx-stage__frame:has(> .wx-producer:not([hidden])) .wx-stage__backstage { padding: var(--wx-space-2xs) var(--wx-space-sm); font-size: 13px; }
  .wx-session.wx-crew .wx-stage:not(.wx-stage--takeover) > .wx-stage__frame:has(> .wx-producer:not([hidden])) .wx-stage__fs { top: calc(var(--wx-space-md) + (var(--wx-studio-head) - 40px) / 2); right: calc(var(--wx-space-md) + var(--wx-studio-side) + var(--wx-space-md)); bottom: auto; background: var(--wx-studio-raised); }
  .wx-session.wx-crew .wx-stage:not(.wx-stage--takeover) > .wx-stage__frame:has(> .wx-producer:not([hidden])) .wx-stage__fs:hover { background: var(--wx-studio-raised-hover); }
  .wx-session.wx-crew .wx-stage:not(.wx-stage--takeover) > .wx-stage__frame:has(> .wx-producer:not([hidden])) .wx-stage__toast { left: calc((100% - var(--wx-studio-side) - var(--wx-space-md)) / 2); bottom: calc(var(--wx-space-md) + 96px); }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .wx-session.wx-crew { --wx-studio-side: 320px; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__btn { width: 68px; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-producer__self { width: 176px; }
  .wx-session .wx-crew:not(.wx-crew--phone) .wx-crew__tab { padding: 0 var(--wx-space-sm); }
}
/* The crew's top bar on phones: no cross (Leave sits in More). */
/* Hand up, guest on stage, backstage. */
.wx-session .wx-stage__hand { position: absolute; right: var(--wx-space-md); top: 56px; z-index: 6; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.45); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.wx-session .wx-stage__hand[aria-pressed="true"], .wx-session .wx-stage__bar-btn[data-wx-bar-hand][aria-pressed="true"] { background: #f59e0b; color: #1f2937; border-color: #f59e0b; }
.wx-stage--takeover .wx-stage__hand { display: none; }
.wx-stage--pbar .wx-stage__hand { right: calc(var(--wx-space-md) + 208px); } /* Prebuilt's participants strip (about 200 px) sits at the right edge while a guest is on stage. */
.wx-session .wx-stage__onstage { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 9; display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: #14532d; color: #fff; text-align: left; }
.wx-session .wx-stage__onstage-title { margin: 0; font-size: 18px; font-weight: 700; }
.wx-session .wx-stage__onstage-sub { margin: 0; font-size: 15px; color: #dcfce7; }
.wx-session .wx-stage__onstage-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wx-session .wx-stage__onstage-btn { min-height: 52px; border-radius: 12px; border: 2px solid #fff; background: transparent; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.wx-session .wx-stage__onstage-btn[aria-pressed="true"] { background: #fff; color: #14532d; }
.wx-session .wx-stage__onstage-live { margin: 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.wx-session .wx-stage__onstage-live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #4ade80; }
.wx-session .wx-stage__onstage-close { position: absolute; right: 8px; top: 6px; border: 0; background: transparent; color: #fff; font-size: 22px; min-width: 44px; min-height: 44px; cursor: pointer; }
@media (min-width: 768px) { .wx-session .wx-stage__onstage { left: 50%; right: auto; width: 420px; transform: translateX(-50%); } }
.wx-session .wx-stage__backstage { position: absolute; top: 56px; left: var(--wx-space-md); z-index: 6; padding: 4px 10px; border-radius: 999px; background: #f59e0b; color: #1f2937; font-size: 12px; font-weight: 700; }
.wx-session .wx-stage__bar-backstage { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: #f59e0b; color: #1f2937; font-size: 11px; font-weight: 700; white-space: nowrap; }
.wx-stage__bar-backstage[hidden] { display: none; }
.wx-stage__toast { position: absolute; left: 50%; bottom: var(--wx-space-md); transform: translateX(-50%); z-index: 7; padding: var(--wx-space-xs) 14px; border-radius: 999px; background: rgba(0,0,0,.8); color: #fff; font-size: 14px; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.wx-stage__fallback { position: absolute; inset: 0; z-index: 9; display: grid; place-content: center; justify-items: center; row-gap: var(--wx-space-md); padding: var(--wx-space-lg); text-align: center; background: var(--wx-stage-bg, #0f172a); }
.wx-session .wx-stage__fallback-title { color: #fff; font-size: 18px; font-weight: 600; max-width: 28ch; }
.wx-session .wx-stage__fallback .wx-button { color: #fff; border-color: rgba(255,255,255,.5); }
.wx-session .wx-stage__fallback-reason { margin: 0; font-size: 11px; color: rgba(255,255,255,.65); word-break: break-word; }
.wx-session .wx-stage__fallback-try { color: rgba(255,255,255,.65); font-size: 14px; font-weight: 400; text-decoration: underline; margin-top: var(--wx-space-xs); }
.wx-session .wx-stage__fallback .wx-button--primary { background: var(--wx-accent); border-color: var(--wx-accent); color: var(--wx-accent-contrast); }
.wx-debug { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; max-height: 55vh; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #111; color: #e5e7eb; font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; border-top: 2px solid #f59e0b; }
.wx-debug__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; background: #1f2937; }
.wx-debug pre { margin: 0; padding: 10px 12px; overflow: auto; white-space: pre-wrap; word-break: break-word; -webkit-user-select: text; user-select: text; }
.wx-session.wx-crew .wx-stage--takeover .wx-stage__toast { top: 56px; bottom: auto; }
.wx-stage__toast--wrap { white-space: normal; text-align: center; line-height: 1.4; border-radius: 16px; max-width: min(100% - 32px, 480px); }
.wx-stage__frame:fullscreen, .wx-stage__frame:-webkit-full-screen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; max-width: none; }

/* Mobile live view (0.10.0): under 768 px (or 480 px high) intro / live / a playing recording take over the screen.
   The stage is fixed over the page (100dvh, no 16:9), a thin bar on top (title, LIVE + timer, full screen, close)
   and the frame below gets everything else so Prebuilt's tray fits (it needs about 360×500). live.js sets the
   classes, locks body scroll (html.wx-takeover) and, for crew, pins the production row to the bottom. */
.wx-stage__bar { display: flex; align-items: center; column-gap: var(--wx-space-2xs); min-width: 0; overflow: hidden; min-height: 48px; padding: 0 var(--wx-space-2xs) 0 var(--wx-space-sm); color: #fff; }
.wx-stage__bar[hidden] { display: none; }
.wx-session .wx-stage__bar-title { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-stage__bar-title .wx-accent { color: var(--wx-accent); }
.wx-stage__bar-live { display: inline-flex; align-items: center; column-gap: var(--wx-space-2xs); flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.wx-stage__bar-live[hidden] { display: none; }
.wx-session .wx-stage__bar-btn { flex: 0 0 auto; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: #fff; cursor: pointer; }
.wx-session .wx-stage__bar-btn:hover { background: rgba(255,255,255,.14); }
.wx-session .wx-stage__bar-btn[hidden] { display: none; }
.wx-stage--takeover { position: fixed; inset: 0; z-index: 100000; width: auto; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; border: 0; overflow: hidden; color: #fff; padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); row-gap: 0; justify-items: stretch; background: var(--wx-stage-bg, #0f172a); animation: none; }
.wx-stage--takeover.wx-stage--crew { height: auto; bottom: var(--wx-crew-bar, 60px); }
.wx-stage--takeover .wx-stage__frame { width: 100%; max-width: none; height: auto; min-width: 0; min-height: 0; align-self: stretch; aspect-ratio: auto; border-radius: 0; }
.wx-stage--takeover .wx-stage__title, .wx-stage--takeover .wx-stage__live, .wx-stage--takeover .wx-stage__fs { display: none; }
/* Intro image on a phone: the whole 16:9 image (never clipped text) on a blurred copy of itself. */
.wx-stage--takeover .wx-stage__intro::before { content: ""; position: absolute; inset: -32px; background: var(--wx-intro-img) center / cover no-repeat var(--wx-stage-bg, #0f172a); filter: blur(28px) brightness(.5); }
.wx-stage--takeover .wx-stage__intro .wx-stage__intro-image { object-fit: contain; }
.wx-stage--takeover:fullscreen, .wx-stage--takeover:-webkit-full-screen { height: 100%; }
/* Landscape phones: the bar hides after 3 s (live.js), a small handle brings it back. */
.wx-stage--bar-hidden { grid-template-rows: minmax(0, 1fr); }
.wx-stage--bar-hidden .wx-stage__bar { display: none; }
.wx-session .wx-stage__peek { position: absolute; top: var(--wx-space-2xs); right: var(--wx-space-2xs); z-index: 8; width: 36px; height: 28px; border: 0; padding: 0; border-radius: 8px; background: rgba(0,0,0,.45); color: #fff; display: none; place-items: center; cursor: pointer; }
.wx-stage--bar-hidden .wx-stage__peek { display: grid; }
.wx-stage--takeover::backdrop { background: transparent; } /* popover top layer: our stage is the backdrop */
html.wx-takeover { overflow: hidden !important; } /* !important: themes set html overflow with their own rules */
html.wx-takeover body { position: fixed !important; left: 0; right: 0; width: 100%; overflow: hidden !important; }

/* ---- Crew controls ----------------------------------------------------------------------- */
.wx-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wx-space-xs); }
.wx-session .wx-controls__rec { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 28px; border-radius: 6px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 700; }
.wx-controls__rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: wx-pulse 1.4s ease-in-out infinite; }
.wx-controls__hint { font-size: 14px; color: var(--wx-muted); }
.wx-controls__hint:empty { display: none; }
.wx-controls__row { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: var(--wx-space-xs); }
.wx-controls__row[hidden] { display: none; }
.wx-session .wx-controls__label { font-size: 13px; font-weight: 600; color: var(--wx-muted); }
.wx-controls__chips { display: inline-flex; flex-wrap: wrap; gap: var(--wx-space-xs); }
.wx-session .wx-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--wx-border); background: transparent; color: var(--wx-text); font-size: 13px; font-weight: 600; cursor: pointer; }
.wx-session .wx-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wx-border); }
.wx-session .wx-chip--on { border-color: var(--wx-accent); }
.wx-session .wx-chip--on::before { background: #dc2626; }
.wx-session .wx-chip--busy { opacity: .6; pointer-events: none; }
.wx-session .wx-button--small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.wx-controls__volume { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--wx-muted); }
.wx-controls__volume input { width: 110px; accent-color: var(--wx-accent); }
/* Scene: one line that says who is in frame, under it three segment buttons (the active one filled). */
.wx-controls__row--scene { display: grid; row-gap: var(--wx-space-2xs); justify-items: center; }
.wx-controls__row--scene[hidden] { display: none; }
.wx-controls__scene-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--wx-space-xs); }
.wx-session .wx-controls__now { margin: 0; font-size: 15px; font-weight: 700; color: var(--wx-primary); }
.wx-seg { display: inline-flex; border-radius: 999px; overflow: hidden; border: 1px solid var(--wx-accent); }
.wx-session .wx-seg__btn { min-height: 32px; padding: 0 16px; border: 0; background: transparent; color: var(--wx-accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.wx-session .wx-seg__btn + .wx-seg__btn { border-left: 1px solid var(--wx-accent); }
.wx-session .wx-seg__btn[aria-pressed="true"] { background: var(--wx-accent); color: var(--wx-accent-contrast, #fff); }
.wx-session .wx-seg__btn:disabled { opacity: .45; cursor: default; }
.wx-seg--busy { opacity: .75; pointer-events: none; }
@keyframes wx-spin { to { transform: rotate(360deg); } }
.wx-session .is-busy::after { content: ""; display: inline-block; width: 11px; height: 11px; margin-left: 6px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: wx-spin .8s linear infinite; vertical-align: -1px; }
.wx-hero--takeover + .wx-page--top .wx-controls .wx-controls__now { color: #fff; }
.wx-hero--takeover + .wx-page--top .wx-controls .wx-seg { border-color: rgba(255,255,255,.7); }
.wx-hero--takeover + .wx-page--top .wx-controls .wx-seg__btn { color: #fff; border-color: rgba(255,255,255,.7); }
.wx-hero--takeover + .wx-page--top .wx-controls .wx-seg__btn[aria-pressed="true"] { background: var(--wx-accent); color: var(--wx-accent-contrast, #fff); }
.wx-hero--takeover + .wx-page--top .wx-controls .wx-controls__volume span { display: none; }
.wx-hero--takeover + .wx-page--top .wx-controls .wx-controls__label, .wx-hero--takeover + .wx-page--top .wx-controls .wx-chip { color: #fff; }
.wx-hero--takeover + .wx-page--top .wx-controls { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: auto; max-width: none; max-height: none; margin: 0; border: 0; overflow: visible; color: inherit; z-index: 100001; justify-content: center; padding: var(--wx-space-xs) var(--wx-space-sm) calc(var(--wx-space-xs) + env(safe-area-inset-bottom, 0)); background: var(--wx-stage-bg, #0f172a); border-top: 1px solid rgba(255,255,255,.15); }
.wx-hero--takeover + .wx-page--top .wx-controls .wx-controls__hint { display: none; }
.wx-hero--takeover + .wx-page--top .wx-controls::backdrop { background: transparent; }

/* ---- Register group: info card, dark form card, attendees -------------------------------- */
.wx-register-group { display: grid; row-gap: var(--wx-space-lg); }
.wx-info { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); background: #fffdf9; color: var(--wx-text); border-radius: var(--wx-card-radius); box-shadow: 0 14px 40px rgba(0,0,0,.12); overflow: hidden; }
.wx-session--intro .wx-info, .wx-session--live .wx-info, .wx-session--ended .wx-info, .wx-session--recording .wx-info { display: none; }
.wx-info__col { display: grid; align-content: start; justify-items: center; row-gap: var(--wx-space-xs); padding: var(--wx-card-pad) var(--wx-space-sm); text-align: center; border-left: 1px solid var(--wx-border); }
.wx-info__col:first-child { border-left: 0; }
.wx-info__icon { color: var(--wx-accent); }
.wx-session .wx-info__label { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--wx-muted); }
.wx-info__value { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--wx-primary); }
.wx-info__sub { font-size: 13px; color: var(--wx-muted); }

/* Form card (dark, primary colour): eyebrow → heading xs, heading → fields md, field → field sm, button → terms lg. */
.wx-form-card { padding: var(--wx-card-pad); border-radius: var(--wx-card-radius); background: var(--wx-primary); color: var(--wx-primary-contrast); box-shadow: 0 14px 40px rgba(0,0,0,.14); }
.wx-register-card, .wx-register-form-wrap, .wx-session .wx-form, .wx-confirmed { display: grid; row-gap: var(--wx-space-md); }
.wx-register-card { row-gap: var(--wx-space-xs); }
.wx-session .wx-form-card__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--wx-accent); text-align: center; }
.wx-session .wx-form-card__title { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; text-align: center; color: inherit; text-wrap: balance; }
.wx-form-card__note { font-size: 14px; text-align: center; opacity: .9; }
.wx-form-card__terms { font-size: 12px; text-align: center; color: inherit; opacity: .7; }
.wx-form-card__terms a { color: inherit; text-decoration: underline; }
.wx-session .wx-form { border: 0; border-radius: 0; padding: 0; max-width: none; background: none; box-shadow: none; }
.wx-form__fields { display: grid; row-gap: var(--wx-space-sm); }
.wx-session .wx-field { margin: 0; }
.wx-session .wx-field input[type="text"], .wx-session .wx-field input[type="email"] { width: 100%; height: 52px; padding: 0 18px; border: 0; border-radius: 999px; font: inherit; font-size: 16px; background: #fffdf9; color: #2a2826; }
.wx-session .wx-field input::placeholder { color: #7a7470; }
.wx-session .wx-field input:focus-visible { outline: 3px solid var(--wx-accent); outline-offset: 1px; }
.wx-session .wx-field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wx-form__after { display: grid; row-gap: var(--wx-space-lg); }
.wx-register-blocked { display: grid; row-gap: var(--wx-space-sm); }
.wx-form-card .wx-message { font-size: 14px; text-align: center; }
.wx-message--error { color: #ffd4cf; }
.wx-form-card .wx-message--error { color: #ffd4cf; }

/* Buttons */
.wx-session .wx-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--wx-space-xs); min-height: 44px; padding: 0 20px; border: 1px solid var(--wx-border); border-radius: 999px; background: transparent; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--wx-text); text-decoration: none; cursor: pointer; box-shadow: none; text-align: center; }
.wx-session .wx-button:hover { background: var(--wx-bg-soft); }
.wx-session .wx-button--primary { border-color: var(--wx-primary); background: var(--wx-primary); color: var(--wx-primary-contrast); }
.wx-session .wx-button--primary:hover { background: var(--wx-primary); filter: brightness(1.1); }
.wx-session .wx-button--accent { border-color: var(--wx-accent); background: var(--wx-accent); color: var(--wx-accent-contrast); min-height: 52px; font-size: 16px; }
.wx-session .wx-button--accent:hover { background: var(--wx-accent); filter: brightness(1.06); }
.wx-session .wx-button--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.wx-session .wx-button--block { display: flex; width: 100%; }
.wx-session .wx-button[disabled] { opacity: .6; cursor: not-allowed; }
.wx-session .wx-button--done[disabled] { opacity: 1; cursor: default; }
.wx-session .wx-form-card .wx-button:not(.wx-button--accent) { border-color: rgba(255,255,255,.35); color: inherit; }
.wx-session .wx-form-card .wx-button:not(.wx-button--accent):hover { background: rgba(255,255,255,.1); }
.wx-session .wx-text-link, .wx-session .wx-link-button { background: none; border: 0; padding: 0; min-height: 0; border-radius: 0; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--wx-accent); text-decoration: none; cursor: pointer; display: inline; }
.wx-session .wx-text-link:hover, .wx-session .wx-link-button:hover { text-decoration: underline; }
.wx-session .wx-link-button { font-size: 13px; font-weight: 400; opacity: .8; color: inherit; }
.wx-session .wx-form-card .wx-link-button { color: inherit; opacity: .7; }
.wx-hero .wx-button--primary { border-color: var(--wx-accent); background: var(--wx-accent); color: var(--wx-accent-contrast); }

/* Confirmed state inside the form card: head (check + title/text) → button lg → links lg → newsletter lg → cancel lg. */
.wx-confirmed { row-gap: var(--wx-space-lg); }
.wx-confirmed__head { display: flex; gap: var(--wx-space-sm); align-items: flex-start; }
.wx-confirmed__body { display: grid; row-gap: var(--wx-space-xs); }
.wx-confirmed__check { flex: none; width: 24px; height: 24px; color: var(--wx-accent); margin-top: 2px; }
.wx-confirmed__title { font-family: var(--wx-font-heading, var(--wx-font, serif)); font-size: 24px; line-height: 1.25; }
.wx-confirmed__text { font-size: 14px; opacity: .85; }
.wx-confirmed__text:empty { display: none; }
.wx-confirmed__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--wx-space-xs); }
.wx-confirmed__dot { opacity: .6; }
.wx-confirmed__cancel { text-align: center; }
.wx-newsletter { padding-top: var(--wx-space-md); border-top: 1px solid rgba(255,255,255,.2); display: grid; row-gap: var(--wx-space-sm); justify-items: center; text-align: center; }
.wx-newsletter__text { font-size: 15px; font-weight: 600; }

/* Recording card inside the dark card */
.wx-session .wx-form-card .wx-card { background: none; border: 0; padding: 0; box-shadow: none; color: inherit; display: grid; row-gap: var(--wx-space-md); }
.wx-recording-card .wx-card__title { font-size: clamp(22px, 2.4vw, 28px); text-align: center; color: inherit; }
.wx-recording-card .wx-card__note { font-size: 14px; text-align: center; opacity: .9; }
.wx-recording-card .wx-card__footnote { font-size: 13px; text-align: center; opacity: .8; }
.wx-recording-card [data-wx-recording-pending], .wx-recording-card .wx-notify { display: grid; row-gap: var(--wx-space-sm); }

/* Social proof */
.wx-social { display: flex; align-items: center; justify-content: center; gap: var(--wx-space-sm); font-size: 14px; color: var(--wx-muted); }
.wx-social__avatars { display: flex; }
.wx-social__avatar { position: relative; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--wx-accent-soft); border: 2px solid var(--wx-bg); color: var(--wx-text); font-size: 11px; font-weight: 600; line-height: 24px; text-align: center; margin-left: -8px; }
.wx-social__avatar:first-child { margin-left: 0; }
.wx-social__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- About: heading group (md) → prose; prose is the one place with margins (flow rule) --- */
.wx-about { display: grid; row-gap: var(--wx-space-md); }
.wx-about .wx-section__head { row-gap: var(--wx-space-sm); }
.wx-prose { text-align: center; }
/* Flow rule: our own p-reset (.wx-session p) must not win over it, hence the .wx-session prefix. */
.wx-session .wx-prose > :where(*) { margin: 0; }
.wx-session .wx-prose > * + * { margin-block-start: var(--wx-flow); }
.wx-prose ul, .wx-prose ol { text-align: left; display: inline-block; padding-left: 22px; }
.wx-prose h2, .wx-prose h3 { font-size: 24px; line-height: 1.3; color: var(--wx-primary); }
.wx-session .wx-prose > h2 + *, .wx-session .wx-prose > h3 + * { margin-block-start: var(--wx-space-sm); }
.wx-prose strong { font-weight: 600; }
/* Pull-quote: the quote mark is a block of its own above the text (never overlapping), the quote is centred in the heading colour. */
.wx-session .wx-prose > blockquote, .wx-session .wx-prose > .wp-block-quote { margin-block: var(--wx-space-lg); }
.wx-prose blockquote, .wx-prose .wp-block-quote { padding: 0; border: 0; display: grid; justify-items: center; row-gap: var(--wx-space-md); font-family: var(--wx-font-heading, var(--wx-font, serif)); font-style: italic; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.3; color: var(--wx-primary); text-align: center; }
.wx-quote-mark { display: block; width: 36px; height: 30px; background: var(--wx-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9.5 6C7 6 5 8 5 10.5c0 2.2 1.6 4 3.7 4.4-.4 1.3-1.4 2.3-2.7 2.8v1.8c3.4-.6 6-3.5 6-7V10.5C12 8 10.9 6 9.5 6zm9 0C16 6 14 8 14 10.5c0 2.2 1.6 4 3.7 4.4-.4 1.3-1.4 2.3-2.7 2.8v1.8c3.4-.6 6-3.5 6-7V10.5C21 8 19.9 6 18.5 6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9.5 6C7 6 5 8 5 10.5c0 2.2 1.6 4 3.7 4.4-.4 1.3-1.4 2.3-2.7 2.8v1.8c3.4-.6 6-3.5 6-7V10.5C12 8 10.9 6 9.5 6zm9 0C16 6 14 8 14 10.5c0 2.2 1.6 4 3.7 4.4-.4 1.3-1.4 2.3-2.7 2.8v1.8c3.4-.6 6-3.5 6-7V10.5C21 8 19.9 6 18.5 6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.wx-session .wx-prose blockquote p, .wx-session .wx-prose .wp-block-quote p { margin: 0; font-family: inherit; font-style: inherit; font-size: inherit; line-height: inherit; color: inherit; }
.wx-prose blockquote cite, .wx-prose .wp-block-quote cite { display: block; font-family: var(--wx-font); font-style: normal; font-size: 14px; color: var(--wx-muted); }

/* ---- Takeaways band: head → list lg, card → card sm, card title → text md -------------------- */
.wx-talk { padding: var(--wx-space-xl) 0; background: var(--wx-bg-soft); }
.wx-talk .wx-page { row-gap: var(--wx-space-lg); }
.wx-talk__list { list-style: none; margin: 0; padding: 0; display: grid; row-gap: var(--wx-space-sm); }
.wx-talk__item { display: flex; gap: var(--wx-space-md); align-items: flex-start; padding: var(--wx-space-md) var(--wx-space-md); border-radius: 16px; background: #fffdf9; color: var(--wx-text); box-shadow: 0 6px 20px rgba(0,0,0,.06); font-size: 16px; line-height: 1.5; }
.wx-talk__item:not(.wx-talk__item--titled) { align-items: center; }
.wx-session .wx-talk__num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--wx-accent); color: var(--wx-accent-contrast); font-family: var(--wx-font-heading, var(--wx-font, serif)); font-size: 16px; }
.wx-talk__body { display: grid; row-gap: var(--wx-space-md); min-width: 0; }
.wx-session .wx-talk__title { display: block; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--wx-primary); line-height: 1.4; }

/* ---- Teaser seal (decorative, never looks clickable): seal → text lg, heading → text md ------- */
.wx-teaser { text-align: center; }
.wx-teaser .wx-page { row-gap: var(--wx-space-lg); justify-items: center; }
.wx-teaser .wx-section__head { row-gap: var(--wx-space-md); }
.wx-seal { position: relative; display: block; width: 112px; height: 112px; pointer-events: none; user-select: none; }
.wx-seal svg { display: block; width: 100%; height: 100%; }
.wx-seal__wax { fill: var(--wx-accent); }
.wx-seal__rim { stroke: var(--wx-accent); opacity: .9; }
.wx-seal__ring { stroke: #d9b36a; opacity: .9; }
.wx-seal__star { fill: rgba(255,255,255,.92); }
.wx-seal__emboss { fill: rgba(0,0,0,.18); }
.wx-seal__shimmer { position: absolute; inset: 6px; border-radius: 50%; overflow: hidden; background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 65%); background-size: 300% 100%; background-position: 120% 0; mix-blend-mode: screen; animation: wx-seal-shimmer 9s ease-in-out infinite; }
@keyframes wx-seal-shimmer { 0%, 70% { background-position: 120% 0; } 85% { background-position: -20% 0; } 100% { background-position: -20% 0; } }
.wx-session .wx-teaser__title { font-size: clamp(24px, 2.6vw, 30px); }
.wx-session .wx-teaser__text { font-size: 17px; line-height: 1.65; color: var(--wx-text); max-width: 46ch; }

/* ---- Host card: avatar → text md, eyebrow → name xs, name → bio md -------------------------------- */
.wx-host { padding: var(--wx-card-pad); border-radius: var(--wx-card-radius); background: #fffdf9; box-shadow: 0 6px 24px rgba(0,0,0,.06); display: grid; justify-items: center; text-align: center; row-gap: var(--wx-space-md); }
.wx-host__avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: center top; border: 4px solid var(--wx-accent-soft); box-shadow: 0 10px 30px rgba(0,0,0,.10); }
.wx-host__text { display: grid; justify-items: center; row-gap: var(--wx-space-xs); }
.wx-session .wx-host__name { font-family: var(--wx-font-heading, var(--wx-font, serif)); font-size: 26px; line-height: 1.2; color: var(--wx-primary); }
.wx-host__bio { font-size: 14px; color: var(--wx-muted); max-width: 44ch; }

/* ---- Closing section: groups lg apart (body, date line, button, tagline) --------------------------- */
.wx-closing { text-align: center; display: grid; justify-items: center; row-gap: var(--wx-space-lg); }
.wx-closing__body { display: grid; justify-items: center; row-gap: var(--wx-space-md); }
.wx-closing__paragraphs { display: grid; justify-items: center; row-gap: var(--wx-flow); }
.wx-session .wx-closing__text { font-size: 17px; line-height: 1.65; max-width: 48ch; }
.wx-session .wx-closing__when { display: grid; row-gap: var(--wx-space-xs); font-size: 16px; line-height: 1.6; color: var(--wx-text); }
.wx-session .wx-closing__when span { display: block; color: var(--wx-muted); }
.wx-session .wx-closing__when strong { display: block; }
.wx-session .wx-closing__tagline { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--wx-muted); }
.wx-session .wx-pill--dark { background: var(--wx-primary); color: var(--wx-primary-contrast); border: 0; }
.wx-bottom-cta { text-align: center; }

/* ---- Sticky bar, notices, footer ------------------------------------------------------------------ */
.wx-session .wx-sticky { position: fixed; left: var(--wx-space-md); right: var(--wx-space-md); bottom: var(--wx-space-md); z-index: 50; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; background: var(--wx-primary); color: var(--wx-primary-contrast); font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
@media (min-width: 900px) { .wx-sticky { display: none !important; } }
.wx-session .wx-notice { font-size: 14px; }
.wx-message { font-size: 14px; }
.wx-foot { padding: 0 var(--wx-gutter) var(--wx-space-lg); text-align: center; font-size: 12px; color: var(--wx-muted); }

/* ---- Mobile ---------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) { .wx-session * { transition: none !important; animation: none !important; } }
@media (max-width: 599px) {
  .wx-session { --wx-gutter: 16px; --wx-space-2xl: 50px; --wx-space-3xl: 73px; --wx-section-gap: var(--wx-space-xl); --wx-card-pad: var(--wx-space-md); --wx-hero-overlap: 34px; padding-bottom: var(--wx-space-2xl); }
  .wx-hero:not(.wx-hero--stage) { display: grid; align-content: center; min-height: 0; max-height: none; }
  .wx-hero__inner { width: 100%; padding-top: var(--wx-space-3xl); row-gap: var(--wx-space-md); }
  .wx-hero__fade { background: linear-gradient(to bottom, rgba(20,12,10,.05) 0%, rgba(20,12,10,.35) 40%, var(--wx-hero-overlay) 65%, var(--wx-hero-fade) 100%); }
  .wx-hero__title { font-size: clamp(32px, 9.5vw, 40px); max-width: none; }
  .wx-hero__sub { font-size: 16px; }
  .wx-session .wx-hero__lead { font-size: 15px; }
  .wx-countdown { gap: 22px; }
  .wx-countdown__unit b { font-size: 30px; }
  .wx-info__col { padding: var(--wx-space-md) 6px; }
  .wx-info__value { font-size: 14px; }
  .wx-info__sub { font-size: 12px; }
  .wx-register-group { row-gap: var(--wx-space-md); }
  .wx-stage { padding: var(--wx-space-md) var(--wx-gutter); }
  .wx-stage__frame { border-radius: 12px; }
  .wx-stage__live { top: 10px; left: 10px; }
  .wx-stage__hand { top: 10px; right: 10px; }
  .wx-stage__backstage { top: 10px; left: 10px; }
  /* Airy reading on phones: 17 px / 1.65, ~34 characters per line, room between the many short paragraphs. */
  .wx-session .wx-prose, .wx-session .wx-prose p, .wx-session .wx-prose li { font-size: 17px; line-height: 1.65; }
  .wx-prose { max-width: 34ch; margin-left: auto; margin-right: auto; }
  .wx-session .wx-talk__text, .wx-session .wx-closing__text, .wx-session .wx-teaser__text { font-size: 17px; line-height: 1.65; }
  .wx-talk { padding: var(--wx-space-xl) 0; }
  .wx-talk__item { padding: var(--wx-space-md); }
  .wx-talk__list { row-gap: var(--wx-space-sm); }
  .wx-host__avatar { width: 136px; height: 136px; }
  .wx-session .wx-button--lg, .wx-session .wx-closing__cta .wx-button, .wx-session .wx-bottom-cta .wx-button { width: 100%; min-height: 52px; }
  .wx-closing__cta, .wx-bottom-cta { width: 100%; }
}
@media (max-width: 1024px) and (orientation: landscape) {
  .wx-hero--stage[data-state="live"] .wx-stage__frame { max-width: calc((100svh - 60px) * 16 / 9); } /* Inline 16:9 on tablets in landscape. */
  .wx-hero--stage[data-state="live"] .wx-stage--takeover .wx-stage__frame { max-width: none; } /* Phones: the takeover owns the whole width. */
}

/* 0.11.1.2 – screen share. Own viewer: the screen fills the frame (letterboxed, never cropped), the sharer's camera
   sits in the top-right corner and the rest of the stage in a small row underneath; a phone drops the row. */
.wx-viewer__grid[data-screen] { position: relative; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) auto; }
.wx-viewer__grid[data-screen] .wx-viewer__tile[data-pos="screen"] { grid-column: 1 / -1; grid-row: 1; background: #000; }
.wx-viewer__grid[data-screen] .wx-viewer__tile[data-pos="screen"] video { object-fit: contain; }
.wx-viewer__grid[data-screen] .wx-viewer__tile[data-pos="screen"] .wx-viewer__still { background-image: none !important; background-color: #000; }
.wx-viewer__grid[data-screen] .wx-viewer__tile[data-pos="pip"] { position: absolute; top: 12px; right: 12px; z-index: 3; width: 22%; aspect-ratio: 16 / 9; border-radius: 6px; border: 1px solid rgba(255,255,255,.4); box-shadow: 0 4px 16px rgba(0,0,0,.5); }
.wx-viewer__grid[data-screen] .wx-viewer__tile[data-pos="strip"] { grid-row: 2; aspect-ratio: 16 / 9; border-radius: 6px; }
@media (max-width: 767px) {
  .wx-viewer__grid[data-screen] { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); grid-auto-rows: 0; }
  .wx-viewer__grid[data-screen] .wx-viewer__tile[data-pos="strip"] { display: none; }
  .wx-viewer__grid[data-screen] .wx-viewer__tile[data-pos="pip"] { width: 30%; top: 8px; right: 8px; }
}
/* 0.25.11: iPhone's full-screen video (live.js fsMirror) – in the page all along, never seen there. */
.wx-session .wx-viewer__fsmirror { position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
