/* Dprod Event theme.
   The brand values (--brand, --btn, --on-btn, --side-*, --radius, --font, --display …)
   are printed in a <style> block by partials/brand-style.html.twig from the theme
   settings. Everything here is built from them, so a rebrand never touches this file.
   Order: tokens, base, buttons, forms, messages, auth pages, hub shell, panels,
   on demand, dashboard, dialogs, green room, certificate, print. */

/* ---------- Tokens ---------- */
:root {
  --brand-soft: color-mix(in oklab, var(--brand) 12%, transparent);
  --brand-line: color-mix(in oklab, var(--brand) 45%, var(--line));
  --ok: #1f7a4d;
  --ok-soft: color-mix(in oklab, #1f9e5f 12%, transparent);
  --warn: #9a5b00;
  --warn-soft: color-mix(in oklab, #e59a12 16%, transparent);
  --danger: #c22f35;

  --page: #f3f6fa;
  --card: #ffffff;
  --soft: #eef2f7;
  --text: #0f172a;
  --text-2: #3b4559;
  --muted: #5d687c;
  --line: #e2e8f0;
  --field: #ffffff;
  --link: var(--brand-ink);
  --shadow: 0 1px 2px rgb(15 23 42 / .05), 0 8px 24px rgb(15 23 42 / .07);
  --shadow-lg: 0 30px 80px -20px rgb(2 8 23 / .45);
  --hero: #0b1324;

  --top-h: 64px;
  color-scheme: light;
}
:root[data-scheme="dark"] {
  --page: #0a1120; --card: #111b2f; --soft: #0f182b; --text: #e8edf6; --text-2: #c3cddd; --muted: #97a3b8;
  --line: #22304a; --field: #0c1526; --link: var(--brand-bright); --ok: #4cc287; --warn: #f0b54a; --danger: #ff7a7f;
  --brand-soft: color-mix(in oklab, var(--brand) 20%, transparent);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-scheme="auto"] {
    --page: #0a1120; --card: #111b2f; --soft: #0f182b; --text: #e8edf6; --text-2: #c3cddd; --muted: #97a3b8;
    --line: #22304a; --field: #0c1526; --link: var(--brand-bright); --ok: #4cc287; --warn: #f0b54a; --danger: #ff7a7f;
    --brand-soft: color-mix(in oklab, var(--brand) 20%, transparent);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font); font-size: 1rem; line-height: 1.6;
  color: var(--text); background: var(--page);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--brand) 65%, transparent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--btn); color: var(--on-btn); padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }
.muted, .text-muted { color: var(--muted) !important; }
.small, small { font-size: .875rem; }
.kicker { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; display: flex; align-items: center; gap: .5rem; }
.prose > :last-child { margin-bottom: 0; }
.prose img { border-radius: var(--radius-sm); }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.prose th, .prose td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--card); --btn-fg: var(--text); --btn-line: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .97rem/1.1 var(--font); padding: .8rem 1.25rem; border-radius: var(--pill);
  border: 1px solid var(--btn-line); background: var(--btn-bg); color: var(--btn-fg);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { --btn-bg: var(--btn); --btn-fg: var(--on-btn); --btn-line: transparent; box-shadow: 0 8px 22px -10px color-mix(in oklab, var(--btn) 80%, transparent); }
.btn-primary:hover { filter: brightness(1.08) saturate(1.05); }
.btn-ghost, .btn-secondary { --btn-bg: transparent; }
.btn-ghost:hover, .btn-secondary:hover { --btn-bg: var(--soft); }
.btn-sm { padding: .55rem .95rem; font-size: .88rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.on-dark .btn-ghost, .btn-ghost.on-dark { --btn-line: rgb(255 255 255 / .25); --btn-fg: #fff; }
.on-dark .btn-ghost:hover, .btn-ghost.on-dark:hover { --btn-bg: rgb(255 255 255 / .08); }
/* Classes the On Demand chapter editor uses */
.btn-outline-primary, .btn-outline-secondary, .btn-outline-success, .btn-outline-danger { --btn-bg: transparent; }
.btn-outline-primary { --btn-fg: var(--link); --btn-line: var(--brand-line); }
.btn-outline-success { --btn-fg: var(--ok); --btn-line: color-mix(in oklab, var(--ok) 45%, var(--line)); }
.btn-outline-danger { --btn-fg: var(--danger); --btn-line: color-mix(in oklab, var(--danger) 45%, var(--line)); }
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-success:hover, .btn-outline-danger:hover { --btn-bg: var(--soft); }

/* Segmented buttons (stream, quality, sort) */
.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: var(--pill); background: var(--soft); border: 1px solid var(--line); gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 .84rem/1 var(--font); padding: .5rem .85rem; border-radius: var(--pill); cursor: pointer; }
.seg button.on, .seg button[aria-pressed="true"], .seg button.btn-success { background: var(--btn); color: var(--on-btn); }
.seg button:not(.on):not([aria-pressed="true"]):hover { color: var(--text); }
.seg-label { align-self: center; padding: 0 .5rem 0 .6rem; font-size: .8rem; color: var(--muted); font-weight: 600; }

/* ---------- Forms ---------- */
.de-form .form-field, .de-field { margin-bottom: 1.05rem; }
.de-form label, .de-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--text); }
.de-form .required, .required-mark { color: var(--danger); }
.de-input, .form-control,
.de-form input[type=text], .de-form input[type=email], .de-form input[type=tel], .de-form input[type=password],
.de-form input[type=number], .de-form input[type=url], .de-form input[type=date], .de-form select, .de-form textarea {
  display: block; width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--field); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .72rem .85rem; transition: border-color .15s, box-shadow .15s;
}
.form-control-sm { padding: .42rem .6rem; font-size: .9rem; }
.de-form textarea { min-height: 120px; resize: vertical; }
.de-input:focus, .form-control:focus, .de-form input:focus, .de-form select:focus, .de-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.de-input[readonly], .de-form input[readonly], .de-form input[disabled] { background: var(--soft); color: var(--muted); }
.is-invalid { border-color: var(--danger) !important; }
.de-form .form-description, .de-form .hint, .de-form .form-extra-wrapper { color: var(--muted); font-size: .86rem; margin-top: .3rem; }
.de-form .checkboxes, .de-form .radio { display: flex; flex-direction: column; gap: .45rem; }
.de-form .checkboxes label, .de-form .radio label, .de-form .form-input-wrapper label.inline,
.de-form .form-data[data-grav-field="checkbox"] label, .de-form .form-data[data-grav-field="toggle"] label { display: inline; font-weight: 400; }
.de-form input[type=checkbox], .de-form input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); vertical-align: -3px; margin-right: .45rem; }
.de-form-actions, .de-form .buttons { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.de-form button[type=reset], .de-form .button[type=reset] { --btn-bg: transparent; }
.de-form-errors, .form-errors, .de-form .form-errors { color: var(--danger); font-size: .88rem; margin-top: .3rem; }
.de-form .has-errors input, .de-form .has-errors textarea, .de-form .has-errors select { border-color: var(--danger); }
.honeypot, .de-form .form-honeypot { position: absolute !important; left: -9999px !important; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .de-input, .de-form .input-icon > .de-input { padding-left: 2.6rem; }
.check-row { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--text-2); }
.check-row input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
/* Two-factor secret and avatar fields from the login plugin */
.de-form .twofa-secret img { border-radius: var(--radius-sm); background: #fff; padding: 6px; }
.de-form .form-avatar img, .de-form .avatar img { border-radius: 50%; }

/* ---------- Messages and notices ---------- */
.messages { display: grid; gap: .6rem; margin-bottom: 1.25rem; }
.message, .notices, .alert {
  display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1.05rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 500; margin: 0 0 1rem;
}
.message p, .notices p, .alert p { margin: 0; }
.message > i { font-size: 1.15rem; line-height: 1.4; }
.notices::before { font-family: bootstrap-icons; font-size: 1.15rem; line-height: 1.4; content: "\F431"; color: var(--brand); }
.message-info i, .notices.info::before { color: var(--brand); }
.message-success i { color: var(--ok); }
.notices.success, .message-success, .alert-success { border-color: color-mix(in oklab, var(--ok) 45%, var(--line)); background: color-mix(in oklab, var(--ok) 8%, var(--card)); }
.notices.success::before { content: "\F26A"; color: var(--ok); }
.message-error, .notices.error, .alert-danger { border-color: color-mix(in oklab, var(--danger) 50%, var(--line)); background: color-mix(in oklab, var(--danger) 7%, var(--card)); }
.message-error i, .notices.error::before { content: "\F622"; color: var(--danger); }
.message-warning, .notices.warning, .alert-warning { border-color: color-mix(in oklab, var(--warn) 50%, var(--line)); background: color-mix(in oklab, var(--warn) 9%, var(--card)); }
.message-warning i, .notices.warning::before { content: "\F33A"; color: var(--warn); }
.text-warning { color: var(--warn) !important; }
.text-success { color: var(--ok) !important; }
.text-danger { color: var(--danger) !important; }

/* Small layout helpers the On Demand scripts use */
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }
.mt-1 { margin-top: .25rem !important; } .mt-2 { margin-top: .5rem !important; } .mt-3 { margin-top: 1rem !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .25rem !important; } .mb-3 { margin-bottom: 1rem !important; }
.ms-2 { margin-left: .5rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; } .px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }

/* ---------- Brand marks ---------- */
.brand-mark { display: inline-flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; min-width: 0; }
.brand-logo { display: block; height: 48px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.monogram {
  flex: none; width: 44px; height: 44px; border-radius: calc(var(--radius-sm) + 2px); display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), var(--accent)); color: #fff;
  font-family: var(--display); font-weight: var(--display-weight); font-size: 1.05rem; line-height: 1; letter-spacing: .02em;
  text-shadow: 0 1px 2px rgb(0 0 0 / .25);
}
.monogram-lg { width: 64px; height: 64px; font-size: 1.5rem; }
.brand-text strong { display: block; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.12rem; line-height: 1.2; }
.brand-text small { display: block; font-size: .8rem; opacity: .75; }

/* ---------- Sign-in and other public pages ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; isolation: isolate; position: relative; }
.auth-bg-gradient::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 100% 0%, color-mix(in oklab, var(--brand) 26%, transparent), transparent 70%), radial-gradient(50% 60% at 0% 100%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 70%), var(--page); }
.auth-bg-image::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--auth-bg) center / cover no-repeat, var(--page); }
.auth-bg-image::after { content: ""; position: fixed; inset: 0; z-index: -1; background: color-mix(in oklab, var(--page) 35%, transparent); }
.auth-shell { width: min(1040px, 100%); display: grid; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .auth-shell.has-aside { grid-template-columns: 1fr 1.05fr; } }
.auth-aside { display: none; position: relative; color: #fff; background: var(--hero); isolation: isolate; min-height: 560px; }
@media (min-width: 900px) { .auth-aside { display: flex; flex-direction: column; justify-content: space-between; padding: 40px; } }
.auth-aside::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 80% at 100% 0%, color-mix(in oklab, var(--brand) 70%, transparent), transparent 70%), radial-gradient(70% 70% at 0% 100%, color-mix(in oklab, var(--accent) 55%, transparent), transparent 70%); }
.auth-aside.has-image { padding: 0; }
.auth-aside.has-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-aside h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 .5rem; }
.auth-aside p { color: rgb(255 255 255 / .82); margin: 0; }
.auth-aside .brand-logo { height: 64px; }
.auth-main { padding: clamp(24px, 5vw, 48px); min-width: 0; }
.auth-main .brand-mark { margin-bottom: 1.6rem; }
.auth-main h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .4rem; }
.auth-intro { color: var(--text-2); margin-bottom: 1.4rem; }
.auth-intro > :last-child { margin-bottom: 0; }
.auth-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between; margin-top: 1.3rem; font-size: .93rem; }
.auth-links a { color: var(--link); font-weight: 600; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
/* Sign-in when registration is on Reg4Events: one main path, the password folded away */
.auth-note { margin: 1rem 0 0; text-align: center; font-size: .93rem; color: var(--text-2); }
.auth-note a { color: var(--link); font-weight: 600; text-decoration: none; }
.auth-note a:hover { text-decoration: underline; }
.auth-more { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.auth-more > summary { display: flex; align-items: center; gap: .5rem; width: fit-content; cursor: pointer; list-style: none; font-size: .93rem; font-weight: 600; color: var(--text-2); }
.auth-more > summary::-webkit-details-marker { display: none; }
.auth-more > summary:hover { color: var(--text); }
.auth-more > summary .bi { font-size: .8rem; transition: transform .15s; }
.auth-more[open] > summary .bi { transform: rotate(90deg); }
.auth-more__body { margin-top: 1.1rem; }
.auth-more__body .auth-links { margin-top: .9rem; }
.auth-help { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.auth-foot { margin-top: 1.2rem; text-align: center; font-size: .82rem; color: var(--muted); }
.auth-narrow { width: min(560px, 100%); }

/* ---------- Hub shell ---------- */
.hub { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1000px) { .hub { grid-template-columns: 268px minmax(0, 1fr); } }
.hub-side {
  background: var(--side-bg); color: var(--side-text);
  display: flex; flex-direction: column; padding: 18px 14px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
@media (max-width: 999px) {
  .hub-side { position: fixed; z-index: 70; left: 0; top: 0; bottom: 0; height: 100%; width: min(296px, 86vw); transform: translateX(-102%); transition: transform .25s ease; box-shadow: 0 0 40px rgb(0 0 0 / .35); }
  .hub-side.open { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hub-side { transition: none; } }
.hub-scrim { position: fixed; inset: 0; z-index: 65; background: rgb(3 8 18 / .5); }
/* Laptops and desktops: the menu can be hidden, and then slides in from the ☰ button like the phone menu */
.hub-brand { position: relative; }
.hub-menu-pin { display: none; position: absolute; top: 2px; right: 0; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--side-muted); font-size: 1.05rem; cursor: pointer; }
.hub-menu-pin:hover { background: color-mix(in oklab, var(--side-text) 10%, transparent); color: var(--side-text); }
@media (min-width: 1000px) {
  .hub-menu-pin { display: inline-grid; }
  html.menu-hidden .hub { grid-template-columns: minmax(0, 1fr); }
  html.menu-hidden .hub-side { position: fixed; z-index: 70; left: 0; top: 0; bottom: 0; height: 100%; width: 296px; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 0 0 40px rgb(0 0 0 / .35); }
  html.menu-hidden .hub-side.open { transform: none; }
  html.menu-hidden .hub-menu-btn { display: inline-grid; place-items: center; }
}
.hub-brand { padding: 4px 8px 16px; border-bottom: 1px solid var(--side-line); margin-bottom: 8px; color: var(--side-active-text); }
.hub-brand .brand-mark { display: flex; }
.hub-brand .brand-logo { height: 52px; }
.hub-brand .brand-text small { color: var(--side-muted); opacity: 1; }
.hub-nav { display: grid; gap: 2px; }
.hub-nav-label { margin: 14px 10px 6px; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--side-muted); }
.hub-nav a {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: var(--radius-sm);
  color: var(--side-text); text-decoration: none; font-size: .95rem; font-weight: 500; line-height: 1.3;
}
.hub-nav a i { font-size: 1.1rem; width: 1.2rem; text-align: center; color: var(--side-muted); flex: none; }
.hub-nav a:hover { background: color-mix(in oklab, var(--side-text) 8%, transparent); color: var(--side-active-text); }
.hub-nav a[aria-current="page"], .hub-nav a[aria-selected="true"] { background: var(--side-active); color: var(--side-active-text); }
.hub-nav a[aria-current="page"] i, .hub-nav a[aria-selected="true"] i { color: currentColor; }
.hub-nav small { display: block; font-size: .76rem; color: var(--side-muted); }
.nav-badge { margin-left: auto; font-size: .62rem; font-weight: 700; letter-spacing: .06em; background: var(--live); color: #fff; padding: 2px 6px; border-radius: 4px; }
.hub-side-foot { margin-top: auto; padding-top: 18px; display: grid; gap: .6rem; }
.hub-side-foot .btn { width: 100%; --btn-bg: transparent; --btn-line: color-mix(in oklab, var(--side-text) 22%, transparent); --btn-fg: var(--side-text); }
.hub-side-foot .btn:hover { --btn-bg: color-mix(in oklab, var(--side-text) 8%, transparent); }
.hub-side-foot p { margin: 0; font-size: .75rem; color: var(--side-muted); text-align: center; }

.hub-main { min-width: 0; display: flex; flex-direction: column; }
.hub-top {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: color-mix(in oklab, var(--card) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .hub-top { padding: 0 28px; } }
.hub-menu-btn { display: none; flex: none; width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 1.4rem; cursor: pointer; }
@media (max-width: 999px) { .hub-menu-btn { display: inline-grid; place-items: center; } }
.hub-top-title { min-width: 0; line-height: 1.25; }
.hub-top-title strong { display: block; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-top-title span { display: block; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.status-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: var(--pill); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .85rem; font-weight: 600; white-space: nowrap; }
/* Grey and still until a session in the programme is on (hub.js adds .is-live) */
.status-pill .live-dot { background: var(--muted); animation: none; }
.status-pill.is-live { border-color: color-mix(in oklab, var(--live) 40%, var(--line)); }
.status-pill.is-live .live-dot { background: var(--live); animation: pulse 1.8s infinite; }
.user-chip { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); font-weight: 500; font-size: .92rem; }
@media (max-width: 640px) { .user-chip-name, .hub-top-title span, .status-pill span.label { display: none; } }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 color-mix(in oklab, var(--live) 60%, transparent); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.hub-panels { padding: 22px 16px 64px; max-width: 1380px; width: 100%; }
@media (min-width: 640px) { .hub-panels { padding: 28px 28px 72px; } }
.panel { display: none; }
.panel.active { display: block; }
.no-js .panel { display: block; margin-bottom: 28px; }
.panel-title { margin-bottom: 1rem; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
@media (min-width: 640px) { .card { padding: 24px; } }
.card + .card { margin-top: 20px; }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1rem; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head h3 { font-family: var(--font); font-weight: 650; font-size: 1.02rem; }
.card-head p { margin: .3rem 0 0; }
.count { font-family: var(--font); font-size: .85rem; color: var(--muted); font-weight: 500; }
.note { font-size: .86rem; color: var(--muted); margin: .9rem 0 0; display: flex; gap: .45rem; align-items: flex-start; }
.note i { margin-top: .12rem; }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty i { font-size: 2rem; display: block; margin-bottom: .5rem; color: var(--brand); }
.grid-2 { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1100px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.grid-side { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1100px) { .grid-side { grid-template-columns: minmax(0, 1fr) 380px; } }
.grid-side > .card + .card, .grid-2 > .card + .card { margin-top: 0; }

/* Avatars and chips */
.avatar { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .9rem; background: linear-gradient(145deg, color-mix(in oklab, var(--brand) 80%, white), color-mix(in oklab, var(--brand) 70%, var(--accent))); letter-spacing: .02em; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { width: 26px; height: 26px; font-size: .62rem; }
.avatar-sm { width: 34px; height: 34px; font-size: .78rem; }
.avatar-lg { width: 88px; height: 88px; font-size: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: 3px 11px 3px 3px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--card); color: var(--text); font: 500 .86rem/1.2 var(--font); cursor: pointer; }
.chip:hover { border-color: var(--brand-line); }

/* ---------- Welcome ---------- */
.welcome-hero { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 1100px) { .welcome-hero.has-side { grid-template-columns: 1.55fr 1fr; } }
.hero-card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); color: #fff; background: var(--hero); }
.hero-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 100% 0%, color-mix(in oklab, var(--brand) 62%, transparent), transparent 70%), radial-gradient(55% 80% at 0% 100%, color-mix(in oklab, var(--accent) 45%, transparent), transparent 70%); }
.hero-card h1 { color: #fff; margin-bottom: .6rem; }
.hero-card .kicker { color: rgb(255 255 255 / .75); }
.hero-card .prose { color: rgb(255 255 255 / .88); max-width: 46em; }
.hero-card .prose a { color: #fff; }
.hero-card .prose strong { color: #fff; }
.hero-card .btn-row { margin-top: 1.4rem; }
.hero-card .btn-primary { box-shadow: 0 10px 26px -10px rgb(0 0 0 / .6); }
.hero-logo { height: 52px; width: auto; max-width: 100%; margin-bottom: 1.2rem; display: block; }
.now-card { display: flex; flex-direction: column; }
.now-card h2 { font-size: 1.35rem; margin-bottom: .3rem; }
.now-meta { color: var(--muted); margin: 0 0 1rem; }
.now-next { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.now-next span { display: block; font-size: .8rem; color: var(--muted); }
.countdown { display: flex; gap: 10px; margin: .4rem 0 1rem; }
.countdown div { flex: 1; text-align: center; padding: 10px 4px; border-radius: var(--radius-sm); background: var(--soft); }
.countdown b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tile { display: grid; gap: .2rem; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.tile i { font-size: 1.4rem; color: var(--link); margin-bottom: .5rem; }
.tile span { color: var(--muted); font-size: .9rem; }

/* ---------- Live ---------- */
.player { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #050a14; aspect-ratio: 16 / 9; }
.player iframe, .player video, .videoWrapper iframe, .videoWrapper video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #050a14; }
.player video { object-fit: contain; }
.player-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 24px; text-align: center; color: #c0cadb; }
.player-empty i { font-size: 2.4rem; color: color-mix(in oklab, var(--brand) 60%, white); }
.player-empty strong { color: #fff; font-size: 1.1rem; }
.live-now { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1rem; align-items: center; margin-top: 16px; }
.live-now .kicker { margin-bottom: .15rem; }
.live-now strong { font-size: 1.04rem; }
.live-now .chips { margin-top: 0; }
.badge-live { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .06em; background: var(--live); color: #fff; padding: 3px 8px; border-radius: 5px; }
.qa-card { display: flex; flex-direction: column; }
.qa-card iframe.slido { width: 100%; min-height: 560px; border: 0; border-radius: var(--radius-sm); background: #fff; }
@media (min-width: 1100px) { .qa-card { position: sticky; top: calc(var(--top-h) + 20px); } }

/* Live stream: as big as fits the window (never taller than the screen), and the Q&A
   can step aside: hidden (remembered on the device) or popped out into its own window */
#live-tab-pane .player, #live-tab-pane .live-bar { max-width: calc((100dvh - var(--top-h) - 190px) * 16 / 9); min-width: min(100%, 480px); margin-inline: auto; }

/* The site's own player buttons (live-player.js): under the picture, never over it
   (YouTube's rules); full screen takes the picture and the buttons together */
.live-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 10px; }
.live-bar[hidden], .live-bar [hidden] { display: none; }
.live-bar__gap { flex: 1; }
.btn-icon { padding: .55rem; min-width: 2.4rem; }
.live-bar .btn span:empty { display: none; }
.player [data-live-msg] { background: #050a14; }
.live-volume { width: 110px; accent-color: var(--btn); cursor: pointer; }
@media (hover: none) { .live-volume { display: none; } }
.live-quality { display: inline-flex; align-items: center; gap: .35rem; padding: 0 .3rem 0 .7rem; border-radius: var(--pill); border: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.live-quality[hidden] { display: none; }
.live-quality select { border: 0; background: transparent; color: var(--text); font: 600 .8rem/1 var(--font); padding: .5rem .2rem; cursor: pointer; }
.live-quality select:focus-visible { outline: 2px solid var(--btn); outline-offset: 2px; border-radius: 4px; }
.live-quality option { color: #111; }
.live-edge { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: var(--pill); border: 1px solid var(--line); background: transparent; color: var(--muted); font: 700 .74rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.live-edge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.live-edge:disabled { cursor: default; opacity: 1; }
.live-edge.is-behind { color: var(--text); cursor: pointer; }
.live-edge.is-behind::before { background: var(--muted); }
.live-edge.is-behind:hover { background: var(--soft); }
@media (max-width: 480px) { .live-edge:not(.is-behind) span { display: none; } .live-edge:not(.is-behind) { padding: .55rem; } }
.live-stage:fullscreen { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: #000;
  --text: #fff; --muted: #c0cadb; --line: rgba(255, 255, 255, .22); --soft: rgba(255, 255, 255, .1); --card: transparent; }
.live-stage:fullscreen .player { flex: 1; min-height: 0; max-width: none; width: 100%; aspect-ratio: auto; border-radius: 0; background: #000; }
.live-stage:fullscreen .live-bar { max-width: none; width: 100%; margin-top: 0; }
@media (min-width: 1100px) and (max-width: 1439px) { .live-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.qa-tools { display: flex; flex-wrap: wrap; gap: .4rem; margin-inline-start: auto; }
.qa-tools .btn { gap: .4rem; }
.qa-hide { display: none; }
@media (min-width: 1100px) {
  .qa-hide { display: inline-flex; }
  .live-grid.qa-slim { grid-template-columns: minmax(0, 1fr); }
  .live-grid.qa-slim .qa-card { position: static; }
  .live-grid.qa-hidden .qa-card > :not(.card-head) { display: none; }
  .live-grid.qa-hidden .qa-card .card-head { margin-bottom: 0; }
}
@media (max-width: 759px) { .qa-popout { display: none !important; } }

/* Green room: a card can be hidden (folded to its heading), and the clicker and the questions
   popped out; a column of only those narrows (.gr-side.is-compact, below) */
.gr-card.is-hidden > .gr-body, .gr-card.is-hidden > .gr-popped { display: none; }
.gr-card.is-hidden > .card-head { margin-bottom: 0; }
.gr-card.is-popped > .gr-body { display: none; }
.gr-popped { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .8rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); }
.gr-popped p { margin: 0; }

/* ---------- Programme ---------- */
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda-item { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 18px 12px; border-top: 1px solid var(--line); border-radius: var(--radius-sm); }
.agenda-item:first-child { border-top: 0; }
.agenda-item.no-time { grid-template-columns: 1fr; }
.agenda-item time { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--muted); padding-top: .1rem; }
.agenda-body { min-width: 0; }
.agenda-body > :first-child { margin-top: 0; }
.agenda-body p { margin: 0 0 .3rem; color: var(--text-2); }
.agenda-body p:first-child { color: var(--text); font-weight: 600; font-size: 1.05rem; }
.agenda-body h1, .agenda-body h2, .agenda-body h3, .agenda-body h4 { font-family: var(--font); font-weight: 650; font-size: 1.05rem; margin: 0 0 .25rem; }
.agenda-when { display: grid; justify-items: start; gap: .35rem; align-content: start; }
.tag-now { display: none; font-size: .64rem; font-weight: 700; letter-spacing: .06em; color: #fff; background: var(--live); padding: 2px 7px; border-radius: 4px; vertical-align: 2px; }
.agenda-item.is-now { background: var(--brand-soft); border-top-color: transparent; }
.agenda-item.is-now + .agenda-item { border-top-color: transparent; }
.agenda-item.is-now time { color: var(--text); }
.agenda-item.is-now .tag-now { display: inline-block; }
.agenda-day { font-family: var(--font); font-weight: 650; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .4rem; padding: 0 12px; }
/* Section headings in the programme (Morning, Afternoon…): a line above every one after the first */
.agenda + .agenda-day { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* ---------- Speakers ---------- */
.speaker-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.speaker { display: grid; justify-items: center; align-content: start; text-align: center; gap: .15rem; padding: 22px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.speaker:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.speaker .avatar { margin-bottom: .7rem; }
.speaker strong { font-size: 1rem; line-height: 1.3; }
.speaker span { font-size: .86rem; line-height: 1.35; color: var(--text-2); }
.speaker .link { color: var(--link); font-weight: 600; margin-top: .55rem; }
.bio { display: grid; gap: 22px; grid-template-columns: auto 1fr; align-items: start; }
@media (max-width: 560px) { .bio { grid-template-columns: 1fr; } }
.bio .avatar-lg { width: 120px; height: 120px; border-radius: var(--radius); }
.bio h2 { font-size: 1.6rem; margin-bottom: .2rem; }
.bio-sessions { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.bio-sessions time { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: .4rem; }

/* ---------- Posters ---------- */
.poster-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.poster-thumb { display: flex; flex-direction: column; text-align: left; padding: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.poster-thumb:hover { transform: translateY(-3px); border-color: var(--brand-line); box-shadow: var(--shadow); }
.poster-cover { aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(150deg, color-mix(in oklab, var(--brand) 22%, var(--card)), color-mix(in oklab, var(--accent) 14%, var(--card))); border-bottom: 1px solid var(--line); color: var(--link); position: relative; overflow: hidden; }
.poster-cover img { width: 100%; height: 100%; object-fit: cover; }
.poster-cover > i { font-size: 2.2rem; }
.poster-cover .poster-no { position: absolute; left: 12px; top: 10px; font-weight: 700; font-size: .8rem; color: var(--text-2); }
.poster-info { display: grid; gap: .15rem; padding: 14px 16px 16px; }
.poster-info strong { font-size: .98rem; line-height: 1.35; }
.poster-info span { font-size: .86rem; color: var(--muted); }
.poster-info em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--link); text-transform: uppercase; letter-spacing: .06em; margin-top: .3rem; }
.poster-view { display: grid; gap: 18px; }
.poster-view .poster-head h2 { margin-bottom: .2rem; }
.poster-media { display: grid; gap: 16px; }
@media (min-width: 900px) { .poster-media.has-qa { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.poster-media iframe.slido { width: 100%; min-height: 420px; border: 0; border-radius: var(--radius-sm); background: #fff; }
.poster-media img { border-radius: var(--radius-sm); display: block; }
.poster-main { min-width: 0; display: grid; gap: 12px; align-content: start; }
.poster-kind { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgb(3 8 18 / .65); color: #fff; font-size: .95rem; }

/* Poster audio talk */
.poster-audio { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); }
.poster-audio i { color: var(--brand); font-size: 1.2rem; }
.poster-audio audio { flex: 1; min-width: 0; width: 100%; height: 40px; }

/* Poster PDF: move around and zoom */
.pdfv { display: grid; gap: 8px; }
.pdfv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.pdfv-pages, .pdfv-zoom { display: inline-flex; align-items: center; gap: 4px; }
.pdfv-btn { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 .55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: none; }
.pdfv-btn:hover { background: var(--soft); }
.pdfv-text { display: inline-flex; gap: .35rem; font-weight: 600; }
.pdfv-open { margin-inline-start: auto; }
.pdfv-page, .pdfv-level { min-width: 3.4rem; text-align: center; font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.pdfv-stage { position: relative; height: min(68vh, 760px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #525659; cursor: grab; touch-action: none; overscroll-behavior: contain; }
.pdfv-stage.is-dragging { cursor: grabbing; }
.pdfv-stage:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pdfv-sheet { margin: 0 auto; background: #fff; box-shadow: 0 2px 12px rgb(0 0 0 / .35); }
.pdfv-sheet canvas { display: block; width: 100%; height: 100%; }
.pdfv-note { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; padding: 1rem; color: #e6e9ee; text-align: center; }
.pdfv-note a { color: #fff; }

/* Poster comments */
.poster-comments { min-width: 0; }
.poster-comments h3 { margin: 0 0 .6rem; font-size: 1rem; }
.poster-comments .dqa[data-theme] { --dqa-list-height: min(52vh, 560px); border: 0; padding: 0; background: transparent; }

/* ---------- On demand (dprod-vod player) ---------- */
.vod-chapterbar { position: relative; height: 10px; border-radius: 5px; margin-top: 12px; background: color-mix(in oklab, var(--muted) 28%, transparent); overflow: hidden; }
.vod-chapterbar-progress { position: absolute; top: 0; left: 0; height: 100%; width: 0; background: color-mix(in oklab, var(--brand) 55%, transparent); pointer-events: none; }
.vod-chapterbar-segment { position: absolute; top: 0; height: 100%; padding: 0; border: 0; border-left: 2px solid var(--card); background: transparent; cursor: pointer; }
.vod-chapterbar-segment:first-of-type { border-left: 0; }
.vod-chapterbar-segment:hover, .vod-chapterbar-segment.active { background: color-mix(in oklab, var(--brand) 35%, transparent); }
.vod-chapter-list { display: grid; gap: 3px; max-height: 620px; overflow-y: auto; }
.list-group-item { display: flex; gap: .8rem; width: 100%; text-align: left; padding: .65rem .8rem; border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--text); font: inherit; font-size: .94rem; line-height: 1.35; cursor: pointer; }
.list-group-item:hover { background: var(--soft); }
.list-group-item.active { background: var(--brand-soft); font-weight: 600; }
.vod-chapter-time { flex: 0 0 auto; min-width: 4.2em; font-variant-numeric: tabular-nums; color: var(--link) !important; font-weight: 600; }
.vod-editor { margin-top: 16px; border-top: 1px solid var(--line); padding-top: .6rem; }
.vod-editor > summary { cursor: pointer; font-weight: 600; }
.vod-editor-row { display: grid; grid-template-columns: 7em minmax(0, 1fr) auto auto auto; gap: .4rem; align-items: center; margin-bottom: .4rem; }
.vod-editor-time { font-variant-numeric: tabular-nums; }
@media (max-width: 767.98px) {
  .vod-editor-row { grid-template-columns: minmax(6em, 1fr) auto auto auto; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
  .vod-editor-row .vod-editor-title { grid-column: 1 / -1; grid-row: 2; }
}
#VodQuality { display: inline-flex; }

/* ---------- Resources ---------- */
.resource-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.resource { display: flex; gap: 14px; align-items: center; text-align: left; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font: inherit; cursor: pointer; min-width: 0; }
.resource:hover { border-color: var(--brand-line); }
.resource > span:last-child { min-width: 0; }
.resource strong { display: block; overflow-wrap: anywhere; }
.resource small { display: block; color: var(--muted); }
.icon-tile { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--link); font-size: 1.3rem; }

/* ---------- Account and ticket ---------- */
.account { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.account > div { min-width: 0; }
.account strong { display: block; font-size: 1.15rem; }
.account .muted { display: block; overflow-wrap: anywhere; }
.ticket { position: relative; border-radius: var(--radius); padding: 22px; color: #fff; background: linear-gradient(135deg, color-mix(in oklab, var(--brand) 85%, #0b1324), color-mix(in oklab, var(--accent) 80%, #0b1324)); display: grid; gap: .2rem; }
.ticket small { color: rgb(255 255 255 / .78); }
.ticket strong { font-size: 1.4rem; font-family: var(--display); font-weight: var(--display-weight); margin: .3rem 0; }
.ticket span { color: rgb(255 255 255 / .88); font-size: .92rem; }
.ticket-paid { position: absolute; right: 16px; top: 16px; background: #1f7a4d; font-size: .72rem !important; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border-radius: 6px; color: #fff !important; }
.facts { margin: 0 0 20px; display: grid; }
.facts div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.facts dt { color: var(--muted); font-size: .92rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 18px; }
.dash-head h2 { margin: 0 0 .25rem; font-size: 1.6rem; }
.dash-head p { margin: 0; }
.dash-section { margin: 30px 0 14px; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.dash-section h3 { margin: 0; font-size: 1.2rem; }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: .1rem; }
.kpi-label { font-size: .86rem; color: var(--muted); }
.kpi-value { font-size: 1.9rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-note { font-size: .8rem; color: var(--muted); }
.dash-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-bottom: 20px; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: 1fr 1fr; } .dash-grid .wide { grid-column: 1 / -1; } }
.dash-grid > .card + .card { margin-top: 0; }
.chart-card { margin: 0; }
.chart { position: relative; min-height: 120px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text, .chart .lbl { fill: var(--muted); font-size: 12px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .val { fill: var(--text); font-size: 12px; font-weight: 600; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .series-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .series-area { fill: var(--brand); fill-opacity: .12; }
.chart .mark { fill: var(--brand); }
.chart .dot { fill: var(--brand); stroke: var(--card); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .cross { stroke: var(--muted); stroke-width: 1; }
.chart-tip { position: absolute; pointer-events: none; z-index: 2; padding: 6px 10px; border-radius: 8px; background: var(--text); color: var(--card); font-size: .82rem; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); box-shadow: var(--shadow); }
.chart-tip b { font-variant-numeric: tabular-nums; }
.chart-table { margin-top: 12px; font-size: .88rem; }
.chart-table summary { cursor: pointer; color: var(--muted); }
.share-bar { display: inline-block; vertical-align: middle; width: 140px; height: 8px; margin-right: .5rem; border-radius: 4px; background: color-mix(in oklab, var(--muted) 20%, transparent); overflow: hidden; }
.share-bar > span { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.table-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.table-tools .de-input { max-width: 300px; padding: .5rem .8rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.data-table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.data-table th, .data-table td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table th { position: sticky; top: 0; background: var(--soft); font-weight: 600; font-size: .82rem; color: var(--text-2); }
.data-table th[data-sort] { cursor: pointer; user-select: none; }
.data-table th[data-sort]::after { content: " \2195"; color: var(--muted); font-size: .75rem; }
.data-table th[aria-sort="ascending"]::after { content: " \2191"; color: var(--text); }
.data-table th[aria-sort="descending"]::after { content: " \2193"; color: var(--text); }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr:hover td { background: color-mix(in oklab, var(--soft) 60%, transparent); }
.yes { color: var(--ok); } .no { color: var(--muted); }
.table-count { font-size: .85rem; color: var(--muted); }

/* ---------- Dialog ---------- */
.hub-dialog { width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: calc(var(--radius) + 4px); padding: 0; background: var(--card); color: var(--text); box-shadow: var(--shadow-lg); }
.hub-dialog.wide { width: min(1180px, calc(100vw - 32px)); }
.hub-dialog::backdrop { background: rgb(3 8 18 / .6); backdrop-filter: blur(3px); }
.leave-dialog { width: min(460px, calc(100vw - 32px)); }
.leave-dialog .dialog-body { padding: 24px; }
.leave-dialog h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.leave-dialog p { margin: 0 0 1.2rem; color: var(--muted); }
.dialog-body { padding: 28px; }
.dialog-close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); color: var(--text); cursor: pointer; font-size: 1rem; }
.dialog-close:hover { background: var(--line); }

/* ---------- Green room ---------- */
.studio-status:empty { display: none; }
.studio-status { margin-bottom: 18px; }
.studio-banner { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); font-weight: 600; }
.studio-banner i { font-size: 1.4rem; }
.studio-banner.size-1 { font-size: 2.2rem; } .studio-banner.size-3 { font-size: 1.45rem; } .studio-banner.size-4 { font-size: 1.15rem; } .studio-banner.size-6 { font-size: .95rem; }
.studio-banner.tone-primary { border-color: var(--brand-line); background: color-mix(in oklab, var(--brand) 10%, var(--card)); }
.studio-banner.tone-success { border-color: color-mix(in oklab, var(--ok) 45%, var(--line)); background: color-mix(in oklab, var(--ok) 10%, var(--card)); }
.studio-banner.tone-warning { border-color: color-mix(in oklab, var(--warn) 50%, var(--line)); background: color-mix(in oklab, var(--warn) 12%, var(--card)); }
.studio-banner.tone-danger { border-color: color-mix(in oklab, var(--danger) 55%, var(--line)); background: color-mix(in oklab, var(--danger) 12%, var(--card)); }
.studio-banner.tone-secondary { background: var(--soft); }
.studio-info { margin-top: .8rem; }
.studio-call { aspect-ratio: 16 / 10; min-height: 420px; }
.clicker-frame { width: 100%; min-height: 480px; border: 0; border-radius: var(--radius-sm); background: #fff; }
.clicker-frame.short { min-height: 300px; }

.page-greenroom .hub-panels { max-width: none; }
/* Green room. Phones and tablets: the studio, then the cards. Laptops and desktops:
   [left column] [the studio, with cards under it] [right column]. The studio fills the window's
   height (--gr-fill, from greenroom.js; the vMix picture letterboxes at 16:9 inside it). The side
   columns are as tall as the studio and scroll on their own; a column with no cards takes no
   room. Presenters drag a card by its title, or use its Move menu, to put it where they like. */
.gr-layout { display: flex; flex-direction: column; gap: 20px; }
.gr-studio { position: relative; order: -1; margin: 0; }
.gr-studio .card-head h1 { font-size: 1.35rem; margin: 0; }
.gr-studio .card-head p { margin: .15rem 0 0; font-size: .88rem; }
.gr-head-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.gr-zone { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.gr-zone > .card { margin: 0; }
.gr-zone.is-empty { display: none; }
.gr-move { padding-inline: .55rem; }
/* vMix Call's picture is 16:9 (its controls sit on it): the frame is the biggest 16:9 that fits, on the dark background */
.gr-studio .studio-call { container-type: size; }
.gr-studio .studio-call iframe { inset: 0; margin: auto; width: min(100cqw, 100cqh * 16 / 9); height: min(100cqh, 100cqw * 9 / 16); }
@media (min-width: 1100px) {
  .gr-layout { display: grid; gap: 0; align-items: start;
    grid-template-columns: [left] auto [lgap] var(--gr-lgap, 0px) [centre] minmax(480px, 1fr) [rgap] var(--gr-rgap, 0px) [right] auto; }
  .gr-layout.has-left { --gr-lgap: 20px; }
  .gr-layout.has-right { --gr-rgap: 20px; }
  .gr-studio { grid-column: centre; grid-row: 1; order: 0; display: flex; flex-direction: column;
    height: var(--gr-fill, calc(100dvh - var(--top-h) - 56px)); min-height: 440px; }
  .gr-studio .player { flex: 1; aspect-ratio: auto; height: auto; min-height: 240px; }
  .gr-side { grid-row: 1 / span 3; position: sticky; top: calc(var(--top-h) + 16px); max-height: max(440px, var(--gr-fill, calc(100dvh - var(--top-h) - 56px)));
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px; margin: -2px; }
  .gr-side[data-zone="left"] { grid-column: left; width: var(--gr-left, 360px); }
  .gr-side[data-zone="right"] { grid-column: right; width: var(--gr-side, 400px); }
  .gr-below { grid-column: centre; grid-row: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; margin-top: 20px; }
  /* Every card in a side column hidden or popped out: the column narrows to their titles (it stays
     where it is), so the studio gets most of the width; its resize handle goes until a card opens */
  .gr-side.is-compact { width: 250px; }
  .gr-side.is-compact > .gr-card { padding: 14px 16px; }
  .gr-side.is-compact > .gr-card > .card-head { gap: .5rem; }
  .gr-side.is-compact > .gr-card > .card-head h2 { font-size: 1.05rem; }
  .gr-layout:has(.gr-side[data-zone="left"].is-compact) .gr-resize[data-gr-resize="left"],
  .gr-layout:has(.gr-side[data-zone="right"].is-compact) .gr-resize[data-gr-resize="right"] { display: none; }
  /* The resize handles are the gaps either side of the studio */
  .gr-resize { position: relative; grid-row: 1; align-self: stretch; cursor: col-resize; z-index: 3; }
  .gr-resize[data-gr-resize="left"] { grid-column: lgap; }
  .gr-resize[data-gr-resize="right"] { grid-column: rgap; }
  .gr-layout:not(.has-left) .gr-resize[data-gr-resize="left"], .gr-layout:not(.has-right) .gr-resize[data-gr-resize="right"] { display: none; }
  .gr-resize::after { content: ""; position: absolute; left: 9px; top: 50%; width: 2px; height: 56px; margin-top: -28px; border-radius: 2px; background: var(--line); transition: background .15s, height .15s; }
  .gr-resize:hover::after, .gr-resize:focus-visible::after, .gr-resize.is-dragging::after { background: var(--brand); height: 96px; margin-top: -48px; }
  .gr-resize:focus-visible { outline: none; }
  /* Moving a card by its title */
  .gr-card > .card-head { cursor: grab; }
  .gr-card > .card-head :is(button, a, input, label, summary) { cursor: pointer; }
}
body.gr-dragging, body.gr-dragging * { cursor: grabbing !important; user-select: none; }
body.gr-dragging iframe { pointer-events: none; }
.gr-card.is-drag-source { opacity: .35; }
.gr-ghost { position: fixed; z-index: 1000; pointer-events: none; margin: 0; padding: 14px 18px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--brand-line); box-shadow: var(--shadow-lg); transform: rotate(1.2deg); opacity: .96; }
.gr-ghost h2 { margin: 0; font-size: 1.1rem; }
.gr-drop { min-height: 64px; border: 2px dashed var(--brand); border-radius: var(--radius); background: var(--brand-soft); }
/* While dragging: empty columns show as places to drop, and the studio means "under the studio" */
.gr-layout.is-dragging .gr-zone.is-empty { display: flex; min-height: 160px; align-items: stretch; justify-content: center; padding: 12px;
  border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: .9rem; text-align: center; }
.gr-layout.is-dragging .gr-zone.is-empty::before { content: attr(aria-label); align-self: center; }
.gr-layout.is-dragging .gr-zone.is-empty:has(.gr-drop)::before { display: none; }
.gr-layout.is-dragging .gr-zone.is-empty .gr-drop { flex: 1; }
.gr-layout.is-dragging .gr-side.is-empty { width: 240px; }
.gr-studio-drop { position: absolute; inset: auto 16px 16px; z-index: 5; display: none; padding: 18px; border: 2px dashed var(--brand); border-radius: var(--radius);
  background: color-mix(in oklab, var(--card) 88%, transparent); color: var(--text); font-weight: 600; text-align: center; }
.gr-layout.is-dragging .gr-studio-drop { display: block; }
.gr-studio-drop.is-over { background: var(--brand-soft); box-shadow: var(--shadow-lg); }
/* The Move menu */
.gr-menu { position: fixed; z-index: 1000; display: grid; min-width: 230px; padding: 6px; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.gr-menu[hidden] { display: none; }
.gr-menu button { display: flex; align-items: center; gap: .65rem; padding: .5rem .7rem; border: 0; border-radius: 6px; background: none; color: inherit;
  font: inherit; font-size: .9rem; text-align: start; cursor: pointer; }
.gr-menu button i { width: 1.1em; color: var(--muted); }
.gr-menu button:hover:not([disabled]), .gr-menu button:focus-visible { background: var(--soft); outline: none; }
.gr-menu button[aria-checked="true"] { color: var(--link); font-weight: 600; }
.gr-menu button[aria-checked="true"] i { color: var(--link); }
.gr-menu button[disabled] { opacity: .4; cursor: default; }
.gr-menu hr { margin: 4px 2px; border: 0; border-top: 1px solid var(--line); }
.gr-menu small { padding: .35rem .7rem .2rem; color: var(--muted); font-size: .76rem; }
@media (max-width: 1099px) { .gr-resize { display: none; } }
@media (min-width: 1000px) { .hub-brand { padding-right: 40px; } }
body.gr-resizing { cursor: col-resize; user-select: none; }
body.gr-resizing iframe { pointer-events: none; }
.clicker-wrap { height: 480px; min-height: 260px; max-height: 90vh; resize: vertical; overflow: hidden; border-radius: var(--radius-sm); }
.clicker-wrap.short { height: 300px; min-height: 200px; }
.clicker-wrap .clicker-frame { height: 100%; min-height: 0; }
/* Relayed clicker buttons (presenter slots: GlobalCue cues sent through the site, the Dprod
   Interspace Clicker plugin mounted in the card), in the theme's colours */
.gr-clicker-relay .ic-clicker__panel { background: transparent; color: var(--text); padding: 0; }
.gr-clicker-relay .ic-clicker__status { color: var(--muted); }
.gr-clicker-relay .ic-clicker__btn { background: var(--soft); color: var(--text); border-color: var(--line); font-family: inherit; font-weight: 600; }
.gr-clicker-relay .ic-clicker__btn:hover { background: color-mix(in oklab, var(--soft) 80%, var(--text)); }
.gr-clicker-relay .ic-clicker__btn--black { background: #0b0f17; color: #fff; border-color: #0b0f17; }
.gr-clicker-relay .ic-clicker__btn--black:hover { background: #1b2230; }
.gr-clicker-relay .ic-clicker__btn--ok { outline-color: var(--ok); }
.gr-clicker-relay .ic-clicker__btn--fail { outline-color: var(--danger); }
/* The clicker on its own (/presenter/clicker), in a small pop-out window */
.clicker-window { background: var(--page); }
.clicker-window-main { padding: 14px; }
.clicker-window-main h1 { font-size: 1.25rem; margin: 0; }
.clicker-window-main .card-head { margin-bottom: 12px; }
.gr-card .dqa-list { resize: vertical; min-height: 200px; max-height: var(--gr-qa-max, 85vh); }
.gr-card .dqa-chatlist { max-height: var(--gr-qa-max, 85vh); }
/* Presenters don't need the audience's reaction buttons, and a shorter box to ask leaves the questions more room */
.gr-card[data-gr-card="qa"] .dqa-react { display: none !important; }
.gr-card[data-gr-card="qa"] .dqa-askwrap textarea { min-height: 0; height: 3.4em; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checklist label { display: flex; gap: .7rem; align-items: flex-start; padding: 9px 8px; border-radius: var(--radius-sm); cursor: pointer; line-height: 1.4; }
.checklist label:hover { background: var(--soft); }
.checklist input { flex: none; width: 18px; height: 18px; margin-top: .1rem; accent-color: var(--brand); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
/* "How?" under a checklist item: a picture and a few lines */
.check-how { margin: -2px 8px 6px 34px; font-size: .88rem; }
.gr-done { display: none; margin-inline-start: .4rem; font-family: var(--font); font-size: .78rem; font-weight: 600; color: var(--ok); vertical-align: middle; white-space: nowrap; }
.gr-card.is-complete .gr-done { display: inline-flex; gap: .3rem; align-items: center; }
.check-link { display: inline-block; margin: -4px 8px 6px 34px; font-size: .88rem; font-weight: 600; }
.gr-card[data-gr-card="slides"] { scroll-margin-top: calc(var(--top-h, 64px) + 16px); }
.check-how summary { cursor: pointer; color: var(--link); font-weight: 600; width: fit-content; }
.check-how summary:hover { text-decoration: underline; }
.check-how img { display: block; width: 100%; height: auto; margin: .55rem 0 .5rem; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.check-how p { margin: 0 0 .45rem; color: var(--muted); line-height: 1.45; }
.check-how strong { color: var(--text); }

/* ---------- Cookie notice ---------- */
.cookie-notice { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 720px; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; padding: 14px 16px 14px 20px; border-radius: var(--radius); background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .92rem; }
.cookie-notice p { margin: 0; flex: 1 1 300px; }

/* ---------- Brand check page ---------- */
.swatches { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.swatch { border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; background: var(--card); }
.swatch > div { height: 76px; display: grid; place-items: center; font-weight: 700; }
.swatch p { margin: 0; padding: 8px 10px; font-size: .82rem; }
.swatch code { font-size: .8rem; }
.pass { color: var(--ok); font-weight: 600; } .fail { color: var(--danger); font-weight: 600; }
.logo-stage { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.logo-stage > div { border-radius: var(--radius-sm); padding: 24px; min-height: 120px; display: grid; place-items: center; border: 1px solid var(--line); }
.logo-stage .on-light { background: #fff; color: #0f172a; }
.logo-stage .on-dark { background: var(--side-bg); color: #fff; }

/* ---------- Certificate ---------- */
.certificate-page { background: var(--soft); min-height: 100vh; padding: 24px 16px; }
.certificate-actions { max-width: 1000px; margin: 0 auto 16px; display: flex; gap: .6rem; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.certificate {
  position: relative; max-width: 1000px; aspect-ratio: 297 / 210; margin: 0 auto; background: #fff; color: #0f172a; overflow: hidden;
  display: grid; place-content: center; text-align: center; padding: 6% 10%; box-shadow: var(--shadow-lg); isolation: isolate;
}
.certificate::before { content: ""; position: absolute; inset: 18px; border: 2px solid color-mix(in oklab, var(--brand) 60%, white); border-radius: 6px; z-index: -1; }
.certificate::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(50% 60% at 100% 0%, color-mix(in oklab, var(--brand) 16%, white), transparent 70%), radial-gradient(45% 55% at 0% 100%, color-mix(in oklab, var(--accent) 12%, white), transparent 70%); }
.certificate .cert-logo { height: clamp(40px, 7vw, 70px); width: auto; max-width: 60%; margin: 0 auto 4%; display: block; }
.certificate .cert-kicker { font-size: clamp(.7rem, 1.4vw, .95rem); letter-spacing: .18em; text-transform: uppercase; color: #4a5568; margin: 0 0 1.5%; }
.certificate h1 { color: #0f172a; font-size: clamp(1.5rem, 4.4vw, 3.1rem); margin: 0 0 3%; }
.certificate .cert-name { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(1.4rem, 4vw, 2.7rem); color: var(--brand-ink); border-bottom: 2px solid color-mix(in oklab, var(--brand) 35%, white); padding: 0 4% 1%; margin: 0 auto 2.5%; }
.certificate .cert-text { font-size: clamp(.85rem, 1.8vw, 1.2rem); color: #334155; margin: 0 0 1%; }
.certificate .cert-hours { font-weight: 600; color: #0f172a; }
.certificate .cert-sign { margin-top: 5%; font-size: clamp(.75rem, 1.4vw, .95rem); color: #4a5568; }
.certificate .cert-sign strong { display: block; color: #0f172a; border-top: 1px solid #94a3b8; padding-top: .4rem; min-width: 220px; }

/* ---------- Print ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; }
  .hub-side, .hub-top, .hub-scrim, .hub-dialog, .cookie-notice, .no-print, .card-head .btn, .card-head .seg { display: none !important; }
  .hub { display: block; }
  .panel { display: none !important; }
  .panel.print-me { display: block !important; animation: none; }
  .card { border: 0; padding: 0; }
  .agenda-item { break-inside: avoid; }
  .chip { border: 0; padding-left: 0; }
  .tag-now { display: none !important; }
  .agenda-item.is-now { background: none; }
  .certificate-page { padding: 0; background: #fff; }
  .certificate-actions { display: none; }
  .certificate { box-shadow: none; max-width: none; width: 100%; }
}

/* With the side panel showing, it carries the name; the form column doesn't repeat it. */
@media (min-width: 900px) { .auth-shell.has-aside .auth-main > .brand-mark { display: none; } }
.auth-aside > div p + p { margin-top: .35rem; }

/* Dprod Q&A widget: take the hub's colours, light and dark, so it matches whatever brand is set. */
.hub .dqa[data-theme], .hub-dialog .dqa[data-theme] {
  --dqa-bg: var(--card); --dqa-card: var(--soft); --dqa-text: var(--text); --dqa-muted: var(--muted);
  --dqa-border: var(--line); --dqa-input: var(--field); --dqa-ok: var(--ok); --dqa-warn: var(--warn); --dqa-bad: var(--danger);
  --dqa-radius: var(--radius-sm); --dqa-on-accent: var(--on-btn);
  font-family: var(--font);
}
.hub .dqa[data-theme], .hub-dialog .dqa[data-theme] { font: 15px/1.45 var(--font), "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji"; }
/* Beside the stream: the questions scroll in a fixed-height list above the box to ask, sized so the card fits the screen */
.qa-card .dqa[data-theme] { --dqa-list-height: clamp(240px, calc(100vh - var(--top-h) - 415px), 680px); }
@media (max-width: 1099px) { .qa-card .dqa[data-theme] { --dqa-list-height: min(60vh, 520px); } }
/* Inside a card the widget doesn't need its own box. */
.hub .card > .dqa[data-theme] { border: 0; padding: 0; background: transparent; }
@media (min-width: 1000px) { .hero-logo { display: none; } } /* the menu shows it */
.hub-side { scrollbar-width: thin; scrollbar-color: color-mix(in oklab, var(--side-text) 25%, transparent) transparent; }

/* Help centre */
.help-hero h2 { margin-bottom: .3rem; }
.help-search { position: relative; display: block; margin-top: 1rem; max-width: 640px; }
.help-search i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.help-search input {
  display: block; width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--field);
  border: 1px solid var(--line); border-radius: var(--pill); padding: .8rem 1rem .8rem 2.6rem;
}
.help-search input:focus { outline: none; border-color: var(--brand-line); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 22%, transparent); }
.help-results { margin-top: 1rem; }
.help-results ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.help-results a { display: grid; gap: .15rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.help-results a:hover { border-color: var(--brand-line); }
.help-results small { color: var(--muted); font-size: .8rem; }
.help-results span { color: var(--text-2); font-size: .9rem; }
.help-results mark { background: color-mix(in oklab, var(--brand) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 .1em; }
.help-sections { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: 20px; align-items: start; }
.help-centre > .card + .help-sections, .help-sections + .card { margin-top: 20px; }
.help-sections .card + .card { margin-top: 0; }
/* Masonry (js/help.js): small rows, each card spans as many as its height needs, so short cards don't leave gaps */
.help-sections.is-masonry { grid-auto-rows: 4px; row-gap: 0; margin-bottom: -20px; }
.help-sections.is-masonry > .card { margin-bottom: 20px; }
.help-section-head { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--text); margin-bottom: .8rem; }
.help-section-head strong { display: block; font-size: 1.05rem; }
.help-section-head small { display: block; color: var(--muted); font-size: .86rem; }
.help-section-head:hover strong { color: var(--link); }
.help-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.help-links a { display: block; padding: .42rem .6rem; border-radius: var(--radius-sm); color: var(--text-2); text-decoration: none; }
.help-links a:hover { background: var(--soft); color: var(--text); }
.help-links a[aria-current="page"] { background: var(--brand-soft); color: var(--link); font-weight: 600; }
.help-crumbs a { color: var(--muted); text-decoration: none; }
.help-crumbs a:hover { color: var(--link); }
.help-crumbs i { font-size: .7rem; }
.help-section-title { display: flex; gap: 16px; align-items: center; margin-bottom: 1.2rem; }
.help-section-title h1 { font-size: 1.7rem; margin: 0; }
.help-section-title p { margin: .2rem 0 0; }
.help-article-list { display: grid; gap: 10px; }
.help-article h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.help-article .lead { font-size: 1.08rem; margin-top: -.2rem; }
.help-article .prose { max-width: 46em; }
.prose h2 { font-size: 1.25rem; margin-top: 1.8rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.prose kbd { font: 600 .82em/1 var(--font); padding: .2em .45em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--soft); }
.prose blockquote { margin: 1rem 0; padding: .8rem 1rem; border-inline-start: 3px solid var(--brand-line); background: var(--soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose figure, .prose p > img:only-child { display: block; margin: 1rem 0; }
.prose img { border: 1px solid var(--line); }
.prose .callout { display: flex; gap: .7rem; padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--brand-soft); margin: 1rem 0; }
.prose .callout.warn { background: color-mix(in oklab, var(--warn) 16%, transparent); }
.prose .callout > i { color: var(--link); margin-top: .15rem; }
.prose .callout.warn > i { color: var(--warn); }
.prose .callout > div > :last-child { margin-bottom: 0; }
.help-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.help-pager .resource small { font-size: .78rem; }
.help-pager .is-next { justify-content: flex-end; text-align: right; }
.help-aside .card + .card { margin-top: 20px; }
@media (min-width: 1100px) { .help-aside { position: sticky; top: calc(var(--top-h) + 20px); } }
@media (max-width: 640px) { .help-pager { grid-template-columns: 1fr; } }

/* Light / dark switch */
.scheme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 1rem; flex: none;
}
.scheme-toggle:hover { border-color: var(--brand-line); }
.scheme-toggle [data-when] { display: none; }
:root[data-scheme-now="light"] .scheme-toggle [data-when="light"], :root[data-scheme-now="dark"] .scheme-toggle [data-when="dark"] { display: inline; }
:root:not([data-scheme-now]) .scheme-toggle [data-when="light"] { display: inline; }
.scheme-toggle.is-floating { position: absolute; top: 16px; right: 16px; z-index: 5; }
.auth-main { position: relative; }

/* Messages: dismiss, and fade out */
.message { position: relative; transition: opacity .3s, transform .3s; }
.message .message-close {
  margin-left: auto; flex: none; border: 0; background: none; color: var(--muted); cursor: pointer; padding: .1rem .2rem;
  border-radius: 6px; font-size: .85rem; line-height: 1.4;
}
.message .message-close:hover { color: var(--text); background: var(--soft); }
.message.is-closing { opacity: 0; transform: translateY(-4px); }

/* Reactions under the stream (moved there from the Q&A box) */
.stream-reactions:empty { display: none; }
.stream-reactions { margin-top: 14px; }
.stream-reactions .dqa { --dqa-bg: var(--card); --dqa-card: var(--soft); --dqa-border: var(--line); --dqa-text: var(--text); }

/* Certificate: progress towards it */
.resource.is-locked { cursor: default; opacity: .9; }
.resource.is-locked .icon-tile { background: var(--soft); color: var(--muted); }
.cert-progress { display: block; height: 6px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; margin: .55rem 0 .2rem; }
.cert-progress > span { display: block; height: 100%; background: var(--btn); border-radius: inherit; }
/* Presenters' device check */
.devcheck { display: grid; gap: 20px; }
.devcheck > .card + .card { margin-top: 0; }
.devcheck-summary { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.devcheck-summary li { display: grid; grid-template-columns: auto 1fr; gap: 0 .6rem; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); }
.devcheck-summary li i { grid-row: span 2; font-size: 1.25rem; color: var(--muted); }
.devcheck-summary li span { font-size: .8rem; color: var(--muted); }
.devcheck-summary li b { font-weight: 650; font-size: .95rem; }
.devcheck-summary li.is-ok { border-color: color-mix(in oklab, var(--ok) 45%, var(--line)); background: var(--ok-soft); }
.devcheck-summary li.is-ok i, .devcheck-summary li.is-ok b { color: var(--ok); }
.devcheck-summary li.is-warn { border-color: color-mix(in oklab, var(--warn) 45%, var(--line)); background: var(--warn-soft); }
.devcheck-summary li.is-warn i, .devcheck-summary li.is-warn b { color: var(--warn); }
.devcheck-summary li.is-bad { border-color: color-mix(in oklab, var(--danger) 45%, var(--line)); background: color-mix(in oklab, var(--danger) 9%, var(--card)); }
.devcheck-summary li.is-bad i, .devcheck-summary li.is-bad b { color: var(--danger); }
.devcheck-done { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid color-mix(in oklab, var(--ok) 45%, var(--line)); background: var(--ok-soft); outline: none; }
.devcheck-done[hidden] { display: none; }
.devcheck-done > i { font-size: 1.7rem; color: var(--ok); }
.devcheck-done > div { flex: 1 1 260px; display: grid; gap: .1rem; }
.devcheck-done strong { font-size: 1.05rem; color: var(--ok); }
.devcheck-done span { color: var(--text-2); font-size: .92rem; }
.devcheck-alert { display: flex; gap: .6rem; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid color-mix(in oklab, var(--danger) 45%, var(--line)); background: color-mix(in oklab, var(--danger) 9%, var(--card)); }
.devcheck-alert i { color: var(--danger); margin-top: .15rem; }
.devcheck-grid { display: grid; gap: 20px; align-items: start; }
.devcheck-grid > div > .card + .card { margin-top: 20px; }
@media (min-width: 980px) { .devcheck-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.devcheck-video video { transform: scaleX(-1); object-fit: cover; }
.devcheck-field { display: grid; gap: .3rem; margin: 14px 0 0; font-size: .86rem; color: var(--muted); }
.devcheck-field select { width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--field); color: var(--text); font: inherit; font-size: .95rem; }
.card-head + .devcheck-field { margin-top: 0; }
.devcheck-meter { position: relative; height: 14px; margin: 14px 0 6px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.devcheck-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--muted); transition: width .06s linear; }
.devcheck-meter.is-good span { background: var(--ok); }
.devcheck-meter.is-hot span { background: var(--danger); }
.devcheck-hint { margin: 0 0 12px; font-size: .9rem; }
.devcheck-ask { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 12px; font-weight: 600; }
.devcheck-tips { margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); font-size: .9rem; }
.devcheck-tips p { margin: 0 0 .3rem; }
.devcheck-tips ul, .devcheck-tips ol { margin: 0; padding-left: 1.2rem; }
.devcheck-tips li { margin: .3rem 0; }
.devcheck-tips li ul { margin-top: .25rem; list-style: disc; }
.devcheck-tips a { color: inherit; font-weight: 600; text-decoration: underline; }
.devcheck-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.devcheck-list li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.45; }
.devcheck-list li i { margin-top: .2rem; color: var(--muted); }
.devcheck-list li.is-ok i { color: var(--ok); }
.devcheck-list li.is-warn i { color: var(--warn); }
.devcheck-list li.is-bad i { color: var(--danger); }
.devcheck-rec { color: var(--danger); animation: devcheck-blink 1s steps(2) infinite; }
@keyframes devcheck-blink { 50% { opacity: .2; } }
.greenroom-check { margin-top: .75rem; }

/* device check: what it checks, and connection troubleshooting */
.devcheck-scope { margin: .5rem 0 0; }
.devcheck-scope a, .devcheck-trouble a { color: inherit; font-weight: 600; text-decoration: underline; }
.devcheck-trouble { margin-top: 20px; scroll-margin-top: 5rem; }
.devcheck-trouble > p { margin: 0 0 .5rem; }
.devcheck-trouble ol { margin: 0; padding-left: 1.2rem; }
.devcheck-trouble li { margin: .45rem 0; }
.devcheck-ports { overflow-x: auto; margin-top: .5rem; }
.devcheck-ports table { border-collapse: collapse; min-width: 22rem; font-size: .9rem; }
.devcheck-ports th, .devcheck-ports td { text-align: left; padding: .4rem .75rem .4rem 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.devcheck-ports th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.devcheck-ports td:nth-child(2) { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.devcheck-trouble > summary { cursor: pointer; list-style: none; margin-bottom: 0 !important; align-items: center; }
.devcheck-trouble > summary::-webkit-details-marker { display: none; }
.devcheck-trouble > summary h2 { font-size: 1.05rem; }
.devcheck-trouble > summary::after { content: ""; flex: none; width: .55rem; height: .55rem; margin-right: .3rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-25%) rotate(45deg); opacity: .7; }
.devcheck-trouble[open] > summary::after { transform: translateY(25%) rotate(-135deg); }
.devcheck-trouble[open] > summary { margin-bottom: .75rem !important; }

/* ---------- Event access (dprod-event-access) ---------- */
.event-closed { display: flex; gap: .8rem; align-items: flex-start; margin: 0 0 1.2rem; padding: .95rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid color-mix(in oklab, var(--warn) 45%, var(--line)); background: color-mix(in oklab, var(--warn) 9%, var(--card)); }
.event-closed > i { font-size: 1.3rem; line-height: 1.3; color: var(--warn); }
.event-closed strong { display: block; margin-bottom: .2rem; }
.event-closed p { margin: 0; }
.event-closed p + p { margin-top: .35rem; }
.event-access-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin-bottom: 20px; }
.event-access-state { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.event-access-state strong { display: block; font-size: 1.05rem; }
.event-access-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.event-access-card.tone-ok { border-color: color-mix(in oklab, var(--ok) 40%, var(--line)); }
.event-access-card.tone-ok .event-access-dot { background: var(--ok); }
.event-access-card.tone-bad { border-color: color-mix(in oklab, var(--danger) 40%, var(--line)); }
.event-access-card.tone-bad .event-access-dot { background: var(--danger); }
.event-access-card.tone-wait { border-color: color-mix(in oklab, var(--warn) 45%, var(--line)); }
.event-access-card.tone-wait .event-access-dot { background: var(--warn); }
