/* iGuides Webinars design system, layered over Bootstrap 5.3. Shared with
   meet.iguides.ca, so the two products look alike.
   Every colour is a token. The brand ones are worked out on the server from what the
   tenant chose (BrandingService::tokens) and set in the page's head, so that text stays
   readable whatever they pick. The fallbacks below only apply if that block is missing. */

@font-face {
    font-family: 'Inter';
    src: url('vendor/inter/inter-latin-wght-normal.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    src: url('vendor/inter/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --brand-primary: #1a3a5c;
    --brand-on: #ffffff;
    --brand-strong: #162f4b;
    --brand-deep: #142c46;
    --brand-soft: #e9edf1;
    --brand-ink: #1a3a5c;
    --brand-ink-dark: #9cbee8;
    --brand-accent: #a85c16;
    --accent-ink: #a85c16;
    --accent-ink-dark: #e7a766;
    --brand-white-safe: #1a3a5c;
    --btn-bg: #1a3a5c;
    --btn-on: #ffffff;
    --btn-hover: #162f4b;
    --hero-bg: #1a3a5c;
    --hero-deep: #142c46;
    --hero-on: #ffffff;
    --side-bg: #ffffff;
    --side-ink: #101828;
    --side-ink-soft: #5b6579;
    --side-hover: #f2f4f7;
    --side-line: #e7eaf0;
    --side-active-bg: #e9edf1;
    --side-active-ink: #1a3a5c;
    --side-avatar: #1a3a5c;
    --side-avatar-on: #ffffff;
    --logo-h: 3.25rem;
    --canvas-ink: #101828;
    --canvas-ink-soft: #5b6579;
    --canvas-glow: #e9edf1;
    --canvas-link: #1a3a5c;
    --field-border: #d3d8e2;
    --hover: #f2f4f7;
    --field-scheme: light;
    --select-arrow: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --radius: 1rem;

    --radius-md: calc(var(--radius) * .7);
    --radius-sm: calc(var(--radius) * .5);
    --ink: #101828;
    --ink-soft: #5b6579;
    --line: #e7eaf0;
    --surface: #ffffff;
    --canvas: #f6f7f9;
    --live: #d92d3a;
    --ok: #15803d;
    --warn: #b45309;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
    --shadow-lift: 0 4px 8px rgba(16, 24, 40, .05), 0 16px 40px rgba(16, 24, 40, .12);
    --side-width: 15.5rem;

    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-bg: var(--canvas);
    --bs-body-color: var(--ink);
    --bs-secondary-color: var(--ink-soft);
    --bs-border-color: var(--line);
    --bs-border-radius: var(--radius-sm);
    --bs-border-radius-lg: var(--radius-md);
    --bs-border-radius-sm: calc(var(--radius) * .35);
}

/* The presenter studio. It keeps its own dark look whatever the brand is. */
[data-bs-theme='dark'] {
    --ink: #e9edf5;
    --ink-soft: #a3adbf;
    --line: #2a3346;
    --surface: #161c2b;
    --canvas: #0d1220;
    --canvas-ink: #e9edf5;
    --canvas-ink-soft: #a3adbf;
    --brand-soft: rgba(255, 255, 255, .06);
    --field-border: #3a4560;
    --hover: rgba(255, 255, 255, .08);
    --field-scheme: dark;
    --select-arrow: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --bs-body-bg: var(--canvas);
    --bs-body-color: var(--ink);
    --bs-secondary-color: var(--ink-soft);
    --bs-border-color: var(--line);
    --bs-tertiary-bg: #1d2537;
}

/* Anything marked hidden stays hidden, whatever layout a class gives it. */
[hidden] { display: none !important; }

body {
    background: var(--canvas);
    color: var(--canvas-ink);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'cv11', 'ss01';
}
main { min-height: 70vh; }
a { color: var(--canvas-link); text-underline-offset: .15em; }
a:hover { color: inherit; }
.panel a:not(.btn), .stat a:not(.btn), .card a:not(.btn), .modal-content a:not(.btn), .landing-form a:not(.btn), .room a:not(.btn) { color: var(--brand-ink); }
[data-bs-theme='dark'] a:not(.btn) { color: var(--brand-ink-dark); }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 650;
    letter-spacing: -.015em;
    color: inherit;
}
.page-title { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem); font-weight: 700; letter-spacing: -.025em; margin-bottom: .25rem; }
.page-sub { color: var(--canvas-ink-soft); margin-bottom: 1.75rem; max-width: 46rem; }
.shell-content > p.text-muted, .shell-content > .text-muted { color: var(--canvas-ink-soft) !important; }
.optional-note { color: var(--ink-soft); font-size: .8rem; font-weight: 400; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1.5rem; }
.section-label {
    font-size: .73rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
    color: var(--canvas-ink-soft); margin-bottom: .6rem;
}
.panel .section-label, .card .section-label { color: var(--ink-soft); }
/* Older views still use these two together for a section heading. */
h2.h6.text-muted { font-size: .73rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }

/* -- buttons ------------------------------------------------------------ */
.btn { font-weight: 550; border-radius: var(--radius-sm); transition: background-color .12s, border-color .12s, color .12s, transform .08s; }
.btn:active { transform: translateY(1px); }
.btn-primary {
    --bs-btn-color: var(--btn-on);
    --bs-btn-bg: var(--btn-bg);
    --bs-btn-border-color: var(--btn-bg);
    --bs-btn-hover-color: var(--btn-on);
    --bs-btn-hover-bg: var(--btn-hover);
    --bs-btn-hover-border-color: var(--btn-hover);
    --bs-btn-active-color: var(--btn-on);
    --bs-btn-active-bg: var(--btn-hover);
    --bs-btn-active-border-color: var(--btn-hover);
    --bs-btn-disabled-color: var(--btn-on);
    --bs-btn-disabled-bg: var(--btn-bg);
    --bs-btn-disabled-border-color: var(--btn-bg);
}
.btn-outline-primary {
    --bs-btn-color: var(--brand-ink);
    --bs-btn-border-color: var(--brand-ink);
    --bs-btn-hover-color: var(--btn-on);
    --bs-btn-hover-bg: var(--btn-bg);
    --bs-btn-hover-border-color: var(--btn-bg);
    --bs-btn-active-color: var(--btn-on);
    --bs-btn-active-bg: var(--btn-hover);
    --bs-btn-active-border-color: var(--btn-hover);
    --bs-btn-disabled-color: var(--brand-ink);
    --bs-btn-disabled-border-color: var(--brand-ink);
}
.btn-outline-secondary {
    --bs-btn-color: var(--ink);
    --bs-btn-bg: var(--surface);
    --bs-btn-border-color: var(--field-border);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-bg: var(--hover);
    --bs-btn-hover-border-color: var(--field-border);
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-bg: var(--hover);
    --bs-btn-active-border-color: var(--field-border);
}
[data-bs-theme='dark'] .btn-outline-primary {
    --bs-btn-color: var(--brand-ink-dark);
    --bs-btn-border-color: var(--brand-ink-dark);
    --bs-btn-disabled-color: var(--brand-ink-dark);
    --bs-btn-disabled-border-color: var(--brand-ink-dark);
}
[data-bs-theme='dark'] .btn-outline-secondary {
    --bs-btn-color: #cdd5e3;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #47536d;
    --bs-btn-hover-bg: #2a3346;
    --bs-btn-hover-border-color: #5a6885;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #2a3346;
    --bs-btn-active-border-color: #5a6885;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-color: #7f8aa0;
    --bs-btn-disabled-border-color: #333c52;
}
.btn-link { --bs-btn-color: var(--brand-ink); --bs-btn-hover-color: var(--brand-ink); }
[data-bs-theme='dark'] .btn-link { --bs-btn-color: var(--brand-ink-dark); --bs-btn-hover-color: #c4d9f3; }
.btn-golive {
    --bs-btn-bg: var(--live); --bs-btn-border-color: var(--live); --bs-btn-color: #fff;
    --bs-btn-hover-bg: #b91c2c; --bs-btn-hover-border-color: #b91c2c; --bs-btn-hover-color: #fff;
    --bs-btn-disabled-bg: var(--live); --bs-btn-disabled-border-color: var(--live); --bs-btn-disabled-color: #fff;
    font-weight: 650;
}
.bi { line-height: 1; vertical-align: -.1em; }

/* -- forms and surfaces ------------------------------------------------- */
.form-control, .form-select { background-color: var(--surface); border-color: var(--field-border); color: var(--ink); color-scheme: var(--field-scheme); }
.form-control::placeholder { color: var(--ink-soft); opacity: 1; }
.form-select { --bs-form-select-bg-img: var(--select-arrow); }
.form-control::file-selector-button { background-color: var(--hover); color: var(--ink); border-color: var(--field-border); }
.form-control:hover:not(:disabled):not([readonly])::file-selector-button { background-color: var(--hover); color: var(--ink); }
/* Solid, not see-through. A browser draws an open dropdown list on white when the
   select's background is translucent, while keeping its pale text, which can't be read. */
[data-bs-theme='dark'] .form-control, [data-bs-theme='dark'] .form-select { background-color: #1d2537; }
[data-bs-theme='dark'] .form-select option { background-color: #1d2537; color: #e9edf5; }
.form-control:focus, .form-select:focus {
    border-color: var(--brand-ink);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand-ink) 18%, transparent);
}
[data-bs-theme='dark'] .form-control:focus, [data-bs-theme='dark'] .form-select:focus {
    border-color: var(--brand-ink-dark);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand-ink-dark) 25%, transparent);
}
.form-control:disabled, .form-select:disabled, .form-control[readonly] { background-color: var(--hover); }
.form-check-input { background-color: var(--surface); border-color: var(--field-border); }
.form-check-input:checked { background-color: var(--brand-white-safe); border-color: var(--brand-white-safe); }
.form-label { font-weight: 550; font-size: .875rem; margin-bottom: .35rem; }
.form-text { color: var(--ink-soft); }
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); color: var(--ink); }
.list-group { --bs-list-group-bg: var(--surface); --bs-list-group-color: var(--ink); --bs-list-group-border-color: var(--line); --bs-list-group-action-hover-bg: var(--hover); --bs-list-group-action-hover-color: var(--ink); }
.table { --bs-table-bg: transparent; color: inherit; }
.table > :not(caption) > * > * { color: inherit; }
.table thead th { font-size: .75rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; border-bottom-color: var(--line); }
.table td { border-color: var(--line); }
.nav-tabs { --bs-nav-tabs-link-active-color: var(--ink); --bs-nav-tabs-link-active-bg: var(--surface); }
.alert { border-radius: var(--radius-sm); border: 0; }
.dropdown-menu { --bs-dropdown-bg: var(--surface); --bs-dropdown-color: var(--ink); --bs-dropdown-link-color: var(--ink); --bs-dropdown-link-hover-color: var(--ink); --bs-dropdown-link-hover-bg: var(--hover); border-radius: var(--radius-md); border-color: var(--line); box-shadow: var(--shadow-lift); padding: .35rem; }
.dropdown-item { border-radius: var(--radius-sm); padding: .45rem .7rem; font-size: .9rem; }
.modal-content { --bs-modal-bg: var(--surface); --bs-modal-color: var(--ink); color: var(--ink); border-radius: var(--radius); border: 0; box-shadow: var(--shadow-lift); }

.panel {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.5rem; color: var(--ink);
}
.panel + .panel { margin-top: 1.25rem; }
.panel-title { font-size: 1.02rem; font-weight: 650; margin-bottom: .25rem; }
.panel-sub { color: var(--ink-soft); font-size: .875rem; margin-bottom: 1.1rem; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; height: 100%; }
.stat-value { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.stat-label { color: var(--ink-soft); font-size: .8rem; font-weight: 550; }
.stat-note { font-size: .76rem; color: var(--ink-soft); }

.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--ink-soft); }
.empty-state .bi { font-size: 2rem; display: block; margin-bottom: .6rem; opacity: .6; }
.empty-state-title { font-weight: 650; color: var(--ink); margin-bottom: .25rem; }
.empty-note { color: var(--ink-soft); font-size: .9rem; margin: 0; }

.copy-field { display: flex; gap: .4rem; }
.copy-field input { font-size: .85rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-width: 0; }

/* -- status -------------------------------------------------------------- */
.status-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .2rem .65rem; border-radius: 99px;
    font-size: .75rem; font-weight: 600; white-space: nowrap;
    background: #eef0f4; color: #39435a;
}
[data-bs-theme='dark'] .status-pill { background: #27304a; color: #c8d0df; }
.status-pill.status-live { background: var(--live); color: #fff; }
.status-pill.status-live::before {
    content: ''; width: .45rem; height: .45rem; border-radius: 50%; background: #fff;
    animation: pulse 1.6s ease-in-out infinite;
}
.status-pill.status-green_room { background: #fdf0d5; color: #7a4a06; }
.status-pill.status-cancelled { background: #fbe4e6; color: #96202c; }
.status-pill.status-rec { background: transparent; color: #ff6b76; border: 1px solid #ff6b76; }
@keyframes pulse { 50% { opacity: .35; } }

/* -- the frame around every signed-in page ------------------------------- */
.shell { min-height: 100dvh; }
.side {
    display: flex; flex-direction: column;
    background: var(--side-bg); color: var(--side-ink); border-bottom: 1px solid var(--side-line);
}
.side-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; }
.side-toggle { flex: none; border: 1px solid var(--side-line); background: transparent; color: var(--side-ink); border-radius: var(--radius-sm); width: 2.5rem; height: 2.5rem; font-size: 1.25rem; }
.side-nav { list-style: none; margin: 0; padding: .25rem .75rem; display: flex; flex-direction: column; gap: .15rem; }
.side-group { font-size: .7rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--side-ink-soft); padding: 1rem .7rem .35rem; }
.side-link {
    display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: var(--radius-sm);
    color: var(--side-ink); font-weight: 500; font-size: .92rem; text-decoration: none;
}
.side-link .bi { font-size: 1.05rem; color: var(--side-ink-soft); }
.side-link:hover { background: var(--side-hover); color: var(--side-ink); }
.side-link.active { background: var(--side-active-bg); color: var(--side-active-ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand-accent); }
.side-link.active .bi { color: var(--side-active-ink); }
.side a:focus-visible, .side button:focus-visible { outline-color: var(--side-ink); }
.side-user { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-top: 1px solid var(--side-line); margin-top: .75rem; }
.side-user-name { flex: 1; min-width: 0; color: var(--side-ink); font-weight: 550; font-size: .875rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-name:hover { color: var(--side-ink); text-decoration: underline; }
.side-avatar {
    flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--side-avatar); color: var(--side-avatar-on); font-weight: 650; font-size: .8rem;
}
.side-signout { flex: none; background: none; border: 0; color: var(--side-ink-soft); padding: .35rem; border-radius: var(--radius-sm); font-size: 1.1rem; line-height: 1; }
.side-signout:hover { background: var(--side-hover); color: var(--side-ink); }

.shell-main { display: flex; flex-direction: column; min-height: 100dvh; min-width: 0; }
.shell-content { flex: 1; width: 100%; max-width: 76rem; margin-inline: auto; padding: 1.5rem 1rem 2.5rem; }
.site-foot { color: var(--canvas-ink-soft); font-size: .8rem; padding: 1rem; text-align: center; }
.site-foot a { color: inherit; }

@media (min-width: 992px) {
    .shell { display: grid; grid-template-columns: var(--side-width) minmax(0, 1fr); }
    .side { position: sticky; top: 0; height: 100dvh; border-bottom: 0; border-right: 1px solid var(--side-line); overflow-y: auto; }
    .side-top { padding: 1.15rem 1.1rem .75rem; }
    .side-toggle { display: none; }
    .side-menu { display: flex !important; flex-direction: column; flex: 1; height: auto !important; }
    .side-menu .side-user { margin-top: auto; }
    /* The accessibility button sits in the sidebar's corner, clear of Sign out. */
    .side-user { padding-bottom: 4.25rem; }
    .shell-content { padding: 2.25rem 2.25rem 3rem; }
}

/* -- the brand mark ------------------------------------------------------ */
.brandmark { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; max-width: 100%; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 1rem; }
.brandmark:hover { color: inherit; }
.side-top .brandmark { flex: 1; }
/* A set height, so a small logo file grows to fit. Too wide, and it scales down to fit instead. */
.brandmark-logo { display: block; height: var(--logo-h); width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.brandmark-logo.on-plate { background: #fff; padding: .25rem .45rem; border-radius: var(--radius-sm); }
.public-bar .brandmark-logo { height: min(var(--logo-h), 3.25rem); }
@media (max-width: 991.98px) { .side-top .brandmark-logo { height: min(var(--logo-h), 2.75rem); } }
.brandmark-icon {
    flex: none; width: 2rem; height: 2rem; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
    background: var(--brand-primary); color: var(--brand-on); font-size: 1.05rem;
}
.brandmark-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A logo inside a page's own bar, such as the attendee room. */
.brand-logo { height: 2rem; max-width: 12rem; object-fit: contain; display: block; }

/* -- pages with no sign-in ----------------------------------------------- */
.public-page {
    min-height: 100dvh; display: flex; flex-direction: column;
    background: radial-gradient(60rem 30rem at 50% -10rem, var(--canvas-glow), transparent 70%), var(--canvas);
}
.public-page > main { flex: 1; }
.public-bar { padding: 1rem 1.25rem; }
.public-main { width: 100%; max-width: 76rem; margin-inline: auto; padding: 1rem 1rem 2.5rem; }
.auth-shell { max-width: 25.5rem; margin: clamp(.5rem, 7vh, 4.5rem) auto 0; }
.auth-shell .panel, .auth-shell .card { padding: 1.9rem; box-shadow: var(--shadow-lift); border-color: transparent; }

/* -- branding settings --------------------------------------------------- */
.brand-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1100px) {
    .brand-grid { grid-template-columns: minmax(0, 1fr) 22rem; }
    .brand-aside { position: sticky; top: 1.5rem; }
}
.colour-field { display: flex; gap: .5rem; align-items: center; }
.colour-field input[type='color'] { flex: none; width: 2.75rem; height: 2.5rem; padding: .2rem; border: 1px solid var(--field-border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.logo-slot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.logo-slot-field { flex: 1 1 14rem; min-width: 0; }
.logo-frame {
    flex: none; width: 9rem; height: 4.5rem; border: 1px dashed var(--field-border); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; padding: .5rem; color: var(--ink-soft); font-size: .8rem; text-align: center;
}
.logo-frame.is-dark { background: #0b0f1a; color: #a7b0c2; border-color: #343c4e; }
.logo-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .5rem; }
.choice {
    position: relative; display: flex; align-items: center; gap: .55rem; padding: .6rem .7rem; font-size: .875rem; font-weight: 500;
    border: 1px solid var(--field-border); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface);
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand-ink); box-shadow: 0 0 0 1px var(--brand-ink); background: var(--brand-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand-ink); outline-offset: 2px; }

/* A small picture of a registration page and its waiting screen, in the colours they will use. */
.preview-page { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--canvas); font-size: .8rem; }
.preview-banner { padding: .9rem; color: var(--hero-on); background: linear-gradient(135deg, var(--hero-bg), var(--hero-deep)); }
.preview-banner-title { font-weight: 700; font-size: .95rem; letter-spacing: -.01em; }
.preview-body { padding: .7rem; }
.preview-card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem; }
.preview-line { height: .45rem; border-radius: 99px; background: var(--line); margin-bottom: .4rem; }
.preview-line.is-short { width: 60%; }
.preview-button { display: block; margin-top: .55rem; padding: .3rem; text-align: center; border-radius: var(--radius-sm); background: var(--btn-bg); color: var(--btn-on); font-weight: 650; }
.preview-link { color: var(--brand-ink); text-decoration: underline; }

/* -- toasts --------------------------------------------------------------- */
.toast-region {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 1090;
    display: flex; flex-direction: column; gap: .5rem; max-width: min(24rem, calc(100vw - 2rem));
}
.ui-toast {
    background: #101828; color: #fff; border-radius: var(--radius-md); padding: .7rem 1rem;
    font-size: .9rem; box-shadow: var(--shadow-lift); animation: toast-in .18s ease-out;
    border-left: 4px solid #6b7a95;
}
.ui-toast-error { border-left-color: #ff6b76; }
.ui-toast-success { border-left-color: #4ade80; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

/* -- slides ------------------------------------------------------------- */
/* A fixed 16:9 frame whose text scales with it, so a slide looks the same in a
   thumbnail and on a wall. The floors keep text readable on a phone, where the
   frame scrolls instead of shrinking the words. Slides are always white, so their
   brand colours use the shade that is readable on white. */
.slide-stage {
    position: relative; aspect-ratio: 16 / 9; container-type: inline-size;
    background: #fff; color: #1f2733; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: auto; width: 100%;
    box-shadow: var(--shadow);
}
.slide-stage-empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; color: #566076; }
.slide { position: relative; min-height: 100%; padding: max(14px, 4.5cqw); font-size: max(14px, 2.5cqw); overflow: hidden; }
.slide .text-muted { color: #566076 !important; }
.slide a:not(.btn) { color: var(--brand-white-safe); }
.slide-title { font-size: max(19px, 4.6cqw); font-weight: 700; letter-spacing: -.02em; margin-bottom: .55em; color: var(--brand-white-safe); }
.slide-heading { font-size: max(16px, 3.1cqw); margin: .75em 0 .35em; color: #1f2733; }
.slide-text { margin-bottom: .6em; }
.slide-bullets { padding-left: 1.2em; }
.slide-bullets li { margin-bottom: .35em; }
.slide-quote { border-left: .2em solid var(--brand-accent); padding-left: .8em; color: #566076; font-style: italic; }
.slide-code { background: #f3f5f9; color: #1f2733; padding: .8em; border-radius: .4em; font-size: .8em; overflow-x: auto; }
.slide-figure { margin: 0 0 .75em; }
.slide-figure img { max-width: 100%; height: auto; border-radius: .35em; }
/* Graphics on AI-drafted slides sit beside the points, which a picture stacked
   underneath would push out of the frame. Flow-root keeps the float inside. */
.slide-content .slide-body { display: flow-root; }
.slide-figure-side { float: right; width: 42%; margin: 0 0 .6em 1.2em; }
.slide-figure-side img { display: block; width: 100%; }
.slide-action { margin-top: 1em; }
.slide-empty { font-size: .9em; }
.ai-job-name { overflow-wrap: anywhere; min-width: 0; }

/* Imported pages are pictures of whole slides, so they fill the frame. The
   title stays for screen readers, since the picture already contains it. */
.slide-image { height: 100%; padding: 0; }
.slide-image .slide-title {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
}
.slide-image .slide-body, .slide-figure-full { height: 100%; margin: 0; }
.slide-figure-full img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; display: block; }

.slide-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 26cqw; text-align: center; gap: .3em;
    border: 2px dashed #cdd4df; border-radius: .6em; padding: 1em;
}
.slide-placeholder-label { font-size: 1.5em; font-weight: 700; color: var(--brand-white-safe); }
.slide-placeholder-note { color: #566076; }

/* -- protected viewer --------------------------------------------------- */
.deck-viewer { outline: none; }
.deck-slide { display: none; }
.deck-slide.is-current { display: block; }
.slide-protected { user-select: none; -webkit-user-select: none; }
.slide-protected img { pointer-events: none; }
.slide-protected a { user-select: auto; }
.slide-watermark {
    position: absolute; pointer-events: none; user-select: none;
    font-size: max(14px, 2.2cqw); font-weight: 600; letter-spacing: .04em;
    color: rgba(20, 30, 45, .13); white-space: nowrap;
}
.block-row .card-body { background: var(--surface); border-radius: var(--radius); }
#slide-list li { cursor: grab; }

/* -- video --------------------------------------------------------------- */
.rtc-stage {
    position: relative; aspect-ratio: 16 / 9; background: #0a0e18; border-radius: var(--radius);
    overflow: hidden; display: grid; gap: 3px; width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr)); grid-auto-rows: 1fr;
}
.rtc-tile { position: relative; background: #111827; overflow: hidden; min-height: 0; min-width: 0; }
.rtc-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rtc-tile--screen video { object-fit: contain; }
.rtc-tile.is-speaking { box-shadow: inset 0 0 0 2px #38bdf8; }
.rtc-tile--avatar { display: flex; align-items: center; justify-content: center; }
.rtc-avatar { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: #2a3550; color: #dbe3f0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.15rem; }
.rtc-name {
    position: absolute; left: .4rem; bottom: .4rem; background: rgba(8, 12, 22, .72); color: #fff;
    font-size: .72rem; padding: .1rem .45rem; border-radius: .3rem; max-width: 85%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rtc-stage.has-screen { display: block; }
.rtc-stage.has-screen .rtc-tile--screen { position: absolute; inset: 0; }
.rtc-stage.has-screen .rtc-tile:not(.rtc-tile--screen) {
    position: absolute; right: .5rem; width: 22%; aspect-ratio: 16 / 9;
    bottom: calc(.5rem + var(--pip, 0) * 24%); border-radius: .4rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); z-index: 2;
}
.rtc-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #93a0b6; font-size: .88rem; text-align: center; padding: 1rem; }
.rtc-audio-prompt {
    position: absolute; inset: 0; z-index: 5; margin: auto; width: max-content; height: max-content;
    box-shadow: var(--shadow-lift);
}
.video-frame { position: relative; }
#stream { aspect-ratio: 16 / 9; background: #0a0e18; display: block; width: 100%; border-radius: var(--radius); }

.mic-meter { height: .4rem; border-radius: 99px; background: #27304a; overflow: hidden; }
.mic-meter-fill { height: 100%; width: 0; background: #4ade80; transition: width .08s linear; }

/* -- presenter studio ---------------------------------------------------- */
.studio { display: flex; flex-direction: column; min-height: 100vh; }
.studio-bar {
    display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
    padding: .55rem .9rem; background: var(--surface); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 20;
}
.studio-bar-back { color: var(--ink-soft); font-size: 1.1rem; }
.studio-title { font-size: .98rem; font-weight: 650; margin: 0; max-width: 26rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-meters { display: flex; align-items: center; gap: 1rem; font-size: .86rem; color: var(--ink-soft); margin-left: auto; flex-wrap: wrap; }
.studio-meter strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.conn-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #4ade80; margin-right: .3rem; }
.conn-dot.is-bad { background: #ff6b76; animation: pulse 1s ease-in-out infinite; }
.studio-alert { background: #7a1f27; color: #fff; padding: .45rem .9rem; font-size: .88rem; text-align: center; }
.studio-rehearsal { background: #3b2f10; color: #fde9b3; padding: .35rem .9rem; font-size: .84rem; text-align: center; }

.studio-grid {
    flex: 1; display: grid; gap: .75rem; padding: .75rem; min-height: 0;
    grid-template-columns: minmax(0, 1fr) 19rem 23rem;
}
.studio-col { display: flex; flex-direction: column; gap: .75rem; min-width: 0; min-height: 0; }
/* Without slides the stage fills a wide column, and must leave room on screen for
   the buttons beneath it. */
.studio .rtc-stage { max-height: calc(100vh - 21rem); }
.studio-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; }
.studio-panel-title { font-size: .7rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .45rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
@media (min-width: 1280px) {
    .studio { height: 100vh; overflow: hidden; }
    .studio-grid { overflow: hidden; }
    .studio-col { overflow-y: auto; }
}
@media (max-width: 1279.98px) { .studio-grid { grid-template-columns: minmax(0, 1fr) 21rem; } .studio-col-engage { grid-column: 1 / -1; } }
@media (max-width: 767.98px) { .studio-grid { grid-template-columns: minmax(0, 1fr); } }

.studio-nav { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.studio-pos { font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--ink-soft); text-align: center; }
.studio-pos strong { color: var(--ink); }
.pace { font-size: .78rem; display: block; color: var(--ink-soft); }
.pace.is-behind { color: #fbbf24; }
.pace.is-ahead { color: #4ade80; }

.slide-strip { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .25rem; }
.slide-strip-item {
    flex: 0 0 auto; width: 7.2rem; text-align: left; background: var(--bs-tertiary-bg, #eef0f4); border: 1px solid var(--line);
    color: var(--ink); border-radius: .4rem; padding: .3rem .45rem; font-size: .72rem; line-height: 1.25;
}
.slide-strip-item:hover:not(:disabled) { border-color: #6c7a94; }
.slide-strip-item.is-current { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-on); }
.slide-strip-num { font-weight: 700; margin-right: .2rem; }
.slide-strip-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.notes-body { white-space: pre-wrap; line-height: 1.5; min-height: 6rem; font-size: var(--notes-size, 1rem); overflow-y: auto; }
.preflight { list-style: none; padding: 0; margin: 0; font-size: .86rem; }
.preflight li { display: flex; gap: .5rem; padding: .28rem 0; align-items: flex-start; }
.preflight .bi-check-circle-fill { color: #4ade80; }
.preflight .bi-exclamation-circle-fill { color: #fbbf24; }
.preflight .bi-circle { color: var(--ink-soft); }

.engage-panel { flex: 1; display: flex; flex-direction: column; min-height: 22rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.engage-panel .nav-tabs { padding: .35rem .5rem 0; flex-wrap: nowrap; }
.engage-panel .nav-link { padding: .35rem .6rem; font-size: .86rem; font-weight: 550; color: var(--ink-soft); white-space: nowrap; }
.engage-panel .nav-link.active { color: var(--ink); background: transparent; border-color: var(--line) var(--line) var(--surface); }
.engage-panel .tab-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.engage-panel .tab-pane { flex: 1; min-height: 0; flex-direction: column; padding: .6rem; display: none; }
.engage-panel .tab-pane.active { display: flex; }
.tab-count { display: inline-block; min-width: 1.1rem; padding: 0 .3rem; margin-left: .25rem; border-radius: 99px; background: var(--btn-bg); color: var(--btn-on); font-size: .68rem; line-height: 1.1rem; text-align: center; }
.tab-count:empty { display: none; }

/* -- engagement --------------------------------------------------------- */
.chat-list { flex: 1; min-height: 11rem; overflow-y: auto; font-size: .88rem; }
.chat-list:empty::before { content: 'No messages yet. Say hello.'; color: var(--ink-soft); }
.qa-list { flex: 1; min-height: 11rem; overflow-y: auto; }
.chat-row { padding: .22rem .1rem; overflow-wrap: anywhere; position: relative; border-radius: .3rem; }
.chat-author { font-weight: 650; color: var(--brand-ink); }
[data-bs-theme='dark'] .chat-author { color: var(--brand-ink-dark); }
.chat-staff::after { content: ' · host'; font-weight: 500; color: var(--accent-ink); }
[data-bs-theme='dark'] .chat-staff::after { color: var(--accent-ink-dark); }
.chat-body { overflow-wrap: anywhere; }
.chat-actions { display: none; position: absolute; right: 0; top: 0; background: var(--surface); border: 1px solid var(--line); border-radius: .3rem; }
.chat-row:hover .chat-actions, .chat-row:focus-within .chat-actions { display: inline-flex; }
.chat-actions button { font-size: .72rem; padding: .05rem .4rem; background: transparent; border: 0; color: var(--ink-soft); }
.chat-actions button:hover { color: var(--ink); }
.qa-row { padding: .55rem .1rem; border-bottom: 1px solid var(--line); }
.qa-row:last-child { border-bottom: 0; }
.qa-body { font-size: .9rem; overflow-wrap: anywhere; }
.qa-meta { font-size: .74rem; color: var(--ink-soft); }
.qa-actions { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: .35rem; }
.qa-actions .btn { font-size: .72rem; padding: .1rem .45rem; }
.qa-vote { min-width: 3.1rem; font-size: .8rem; }
.qa-onscreen { display: inline-block; background: #fde9b3; color: #6b4708; font-size: .68rem; font-weight: 650; padding: 0 .4rem; border-radius: .25rem; margin-right: .3rem; }

.poll-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow); }
.poll-question { font-weight: 650; margin-bottom: .6rem; }
.poll-option { display: block; width: 100%; text-align: left; margin-bottom: .35rem; }
.poll-option[aria-pressed='true'] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-on); }
.poll-bar { background: var(--bs-tertiary-bg, #e9ecf2); border-radius: .25rem; height: .55rem; overflow: hidden; }
.poll-bar-fill { background: var(--brand-white-safe); height: 100%; transition: width .4s ease; }
[data-bs-theme='dark'] .poll-bar-fill { background: var(--brand-ink-dark); }
.poll-meta { font-size: .76rem; color: var(--ink-soft); margin-top: .35rem; }

.reaction-bar { display: flex; gap: .3rem; }
.reaction-btn { font-size: 1.15rem; line-height: 1; padding: .35rem .55rem; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; transition: transform .12s ease; }
.reaction-btn:hover { transform: translateY(-1px); border-color: #8d98ac; }
.reaction-pop { transform: scale(1.2); }
.reaction-pulse { font-size: .85rem; color: var(--ink-soft); min-height: 1.3rem; }
.float-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 6; }
.float-react { position: absolute; bottom: 4%; font-size: 1.6rem; animation: float-up 2.6s ease-out forwards; }
@keyframes float-up { 0% { opacity: 0; transform: translateY(0) scale(.7); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70cqh) scale(1.15); } }

/* -- attendee room ------------------------------------------------------- */
.room { display: flex; flex-direction: column; min-height: 100vh; color: var(--ink); }
.room-bar { display: flex; align-items: center; gap: .75rem; padding: .55rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.room-title { font-size: 1rem; font-weight: 650; margin: 0; flex: 1 1 12rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-meta { font-size: .84rem; color: var(--ink-soft); white-space: nowrap; }
.room-alert { background: #7a1f27; color: #fff; padding: .35rem 1rem; font-size: .86rem; text-align: center; }
.room-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: 1rem; padding: 1rem; align-items: start; max-width: 1760px; width: 100%; margin-inline: auto; }
.room-main, .room-side { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
#video-dock-home:has(> [hidden]), #video-dock-home:empty { display: none; }
.room.is-theatre .room-grid { grid-template-columns: minmax(0, 1fr); }
.room.is-theatre .room-side { display: none; }
.room-stage { position: relative; container-type: inline-size; }
.room-stage:fullscreen { background: #000; display: flex; align-items: center; justify-content: center; }
.room-stage:fullscreen .slide-stage, .room-stage:fullscreen .rtc-stage { border-radius: 0; border: 0; max-height: 100vh; }
.room-tools { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.promoted-card { background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand-ink) 30%, var(--surface)); border-radius: var(--radius); padding: .8rem 1rem; }
.promoted-label { font-size: .7rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.promoted-body { font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.resource-link { display: flex; align-items: center; gap: .5rem; justify-content: center; }
.room-engage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; height: min(36rem, calc(100vh - 9rem)); }
.room-engage .nav-tabs { padding: .35rem .5rem 0; }
.room-engage .nav-link { padding: .35rem .7rem; font-size: .88rem; font-weight: 550; color: var(--ink-soft); }
.room-engage .nav-link.active { color: var(--ink); }
.room-engage .tab-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.room-engage .tab-pane { flex: 1; min-height: 0; flex-direction: column; padding: .6rem; display: none; }
.room-engage .tab-pane.active { display: flex; }

.waiting-card { aspect-ratio: 16 / 9; background: linear-gradient(145deg, var(--hero-bg), var(--hero-deep)); color: var(--hero-on); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: max(16px, 4cqw); overflow: auto; }
.waiting-kicker { font-size: max(12px, 1.5cqw); letter-spacing: .08em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.waiting-title { font-size: max(20px, 3.8cqw); font-weight: 700; letter-spacing: -.02em; color: inherit; margin: .4em 0; }
.waiting-count { font-size: max(26px, 6cqw); font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.waiting-note { font-size: max(13px, 1.5cqw); opacity: .9; margin-top: .4em; }
.waiting-card a:not(.btn) { color: inherit; }
.ended-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4cqw, 2.5rem); text-align: center; box-shadow: var(--shadow); }
.star-row { display: inline-flex; gap: .15rem; font-size: 1.7rem; }
.star-btn { background: none; border: 0; color: #c5ccd8; padding: 0 .1rem; line-height: 1; }
.star-btn.is-on { color: #f5a524; }
.caption-track {
    background: rgba(16, 20, 28, .92); color: #fff; padding: .6rem .8rem;
    border-radius: var(--radius-sm); font-size: 1rem; line-height: 1.45; min-height: 3.2rem;
    /* Caption text must survive a 200% zoom and long words. */
    overflow-wrap: anywhere;
}
/* On a phone everything stacks in the order people need it: the speaker, then
   the slide, then what they can act on, then the conversation. */
@media (max-width: 991.98px) {
    .room-grid { display: flex; flex-direction: column; align-items: stretch; padding: .6rem; gap: .6rem; }
    .room-main, .room-side, #video-dock-home { display: contents; }
    #video-dock { order: 1; }
    .room-stage { order: 2; }
    .room-tools { order: 3; }
    #caption-track { order: 4; }
    #promoted-card { order: 5; }
    #poll-panel { order: 6; }
    #resources { order: 7; }
    .room-engage { order: 8; height: 26rem; }
    #engagement-notice { order: 9; }
    #reaction-pulse { order: 10; }
}
@media (max-width: 576px) { .caption-track { font-size: .95rem; } }

/* -- public landing ------------------------------------------------------ */
/* The banner follows the brand. Its overlays use the banner's own text colour, so
   they read on a pale yellow banner as well as a navy one. */
.hero { background: linear-gradient(135deg, var(--hero-bg), var(--hero-deep)); color: var(--hero-on); padding: clamp(2.25rem, 6vw, 4.5rem) 0; }
.hero a:not(.btn) { color: inherit; }
.hero-kicker { display: inline-flex; align-items: center; gap: .4rem; background: color-mix(in srgb, currentColor 16%, transparent); padding: .25rem .75rem; border-radius: 99px; font-size: .84rem; font-weight: 550; }
.hero-title { color: inherit; font-size: clamp(1.8rem, 4.4vw, 3rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.12; margin: .9rem 0 .7rem; }
.hero-when { font-size: 1.05rem; opacity: .95; }
.hero-count { display: flex; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.count-unit { background: color-mix(in srgb, currentColor 14%, transparent); border-radius: var(--radius-sm); padding: .45rem .8rem; text-align: center; min-width: 4rem; }
.count-num { display: block; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.count-lab { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.landing-body { margin-top: clamp(-2.5rem, -3vw, -1rem); padding-bottom: 3rem; color: var(--canvas-ink); }
.landing-form { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 1.5rem; }
@media (min-width: 992px) { .landing-form { position: sticky; top: 1rem; } }
.takeaway-list { list-style: none; padding: 0; margin: 0; }
.takeaway-list li { display: flex; gap: .6rem; padding: .35rem 0; }
.takeaway-list .bi { color: var(--ok); margin-top: .15rem; }
.agenda-list { padding-left: 1.2rem; margin: 0; }
.agenda-list li { padding: .25rem 0; }
.speaker { display: flex; gap: .75rem; align-items: center; padding: .4rem 0; }
.speaker-avatar { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.speaker-name { font-weight: 650; }
.speaker-title { font-size: .86rem; color: var(--ink-soft); }

/* -- lists --------------------------------------------------------------- */
.session-row { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.session-row:last-child { border-bottom: 0; }
.session-date { flex: 0 0 3.4rem; text-align: center; background: var(--brand-soft); border-radius: var(--radius-sm); padding: .3rem 0; color: var(--brand-ink); }
.session-date-day { display: block; font-size: 1.2rem; font-weight: 700; line-height: 1.1; }
.session-date-mon { display: block; font-size: .66rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.session-main { flex: 1 1 14rem; min-width: 0; }
.session-name { font-weight: 650; color: var(--ink); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel a.session-name, .card a.session-name { color: var(--ink); }
.session-name:hover { text-decoration: underline; }
.session-meta { font-size: .82rem; color: var(--ink-soft); }
.session-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .55rem; padding: .4rem 0; align-items: flex-start; }
.checklist .bi-check-circle-fill { color: var(--ok); }
.checklist .bi-circle { color: #aab3c2; }

/* -- replay -------------------------------------------------------------- */
.chapter-list { max-height: 26rem; overflow-y: auto; }
.chapter-list .list-group-item.active {
    background: var(--btn-bg);
    border-color: var(--btn-bg);
    color: var(--btn-on);
}
.chapter-list .list-group-item.active .text-muted { color: inherit !important; opacity: .8; }
#replay { aspect-ratio: 16 / 9; background: #0a0e18; }

/* -- analytics ---------------------------------------------------------- */
.concurrency-chart {
    display: flex; align-items: flex-end; gap: 1px;
    height: 8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: .45rem; overflow-x: auto;
}
.concurrency-bar {
    flex: 1 0 3px; min-width: 3px;
    background: var(--brand-white-safe); border-radius: 2px 2px 0 0;
}

/* -- accessibility ------------------------------------------------------- */

/* Visible only once focused. The first tab stop on every page. */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 1080;
    padding: .6rem 1rem; background: var(--brand-primary); color: var(--brand-on);
    border-radius: 0 0 .35rem 0;
}
.skip-link:focus { left: 0; color: var(--brand-on); }
button.skip-link { border: 0; }

/* A visible focus indicator isn't optional: without it, keyboard navigation is blind. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--brand-ink);
    outline-offset: 2px;
}
.hero a:focus-visible, .hero button:focus-visible, .hero input:focus-visible,
.waiting-card a:focus-visible, .waiting-card button:focus-visible { outline-color: var(--hero-on); }
[data-bs-theme='dark'] a:focus-visible, [data-bs-theme='dark'] button:focus-visible, [data-bs-theme='dark'] input:focus-visible,
[data-bs-theme='dark'] select:focus-visible, [data-bs-theme='dark'] textarea:focus-visible {
    outline-color: #fbbf24;
}

/* Screen-reader-only text, for labels and table captions that would be
   redundant visually but are the only context a screen reader gets. */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Respect a stated preference for reduced motion. The poll bars and reaction
   pops are decorative; vestibular disorders are not. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .poll-bar-fill { transition: none; }
    .reaction-pop { transform: none; }
    .float-layer { display: none; }
}

/* The high-contrast choices in the accessibility menu clear background colours, but a
   gradient is an image, so it would stay under their text and make it unreadable. */
html[data-a11y-contrast] :is(.hero, .waiting-card, .public-page, .preview-banner) { background-image: none !important; }

/* Honour a forced-colours mode rather than fighting it. */
@media (forced-colors: active) {
    .poll-bar-fill { background: Highlight; }
    .chapter-list .list-group-item.active { border: 2px solid Highlight; }
    .status-pill, .choice { border: 1px solid CanvasText; }
    .slide-strip-item.is-current { border: 2px solid Highlight; }
    .side-link.active { border: 2px solid Highlight; }
    .hero { border: 1px solid CanvasText; }
}

/* Text must survive a 200% zoom without horizontal scrolling. */
.chat-list, .qa-list, .chapter-list { overflow-wrap: anywhere; }
