/* TRCOP: the site look (spec 03, re-skinned by spec 52) and the fixed Player layout (spec 04).
   52: a layered-grey dark look with one vivid course-red accent and pill buttons (the video frame and the room window stay square).
   Only the Home list and the session panel scroll. */
:root {
  color-scheme: dark;
  --bg: #121212; --head: #0A0A0A; --panel: #181818; --raise: #242424; --ink: #FFFFFF; --ink-2: #B3B3B3; --divider: #2A2A2A; --field-edge: #727272;
  --panel-0: rgba(24, 24, 24, 0);   /* 43a: --panel at no opacity; a gradient to plain `transparent` goes through black in Safari */
  --band: #000000; --band-ink: #FFFFFF; --band-ink-2: #BFBFBF;
  --band-accent: #E6E8EA; --on-band-accent: #121417;   /* 40b S1: for the always-black band; high contrast overrides */
  --accent: #D01A1D; --on-accent: #FFFFFF; --accent-hover: #E5262A; --err: #F15E6C; --on-err: #000000; --focus: #7DB7FF; --ok: #1DB954;
  --on-ok: #000000;   /* the ink on a --ok fill (pressed Done buttons); Light puts white */
  --track: #5C5C5C;   /* CAB: 3.1:1 on black (the spec 52 #4D4D4D was 2.5:1, under the 3:1 non-text guide) */
  /* 52: saturated status pairs (never pastel); each text/fill pair is at least 4.5:1. The high-contrast themes put their own pairs back (display.css). */
  --st-green: #1DB954; --on-st-green: #000000; --st-amber: #F59B23; --on-st-amber: #000000; --st-red: #D01A1D; --on-st-red: #FFFFFF; --st-grey: #535353; --on-st-grey: #FFFFFF;
  --shadow: 0 8px 24px rgba(0, 0, 0, .5);
  --wash: linear-gradient(to bottom, rgba(208, 26, 29, .35), rgba(18, 18, 18, 0) 320px);   /* 52b: one soft course-red wash at the top of Home; none in light and high contrast */
  /* the loaded course's colour (content courseColour, set by main.js as --course-c); neutral when there is none. Course things only (38h) */
  --course: var(--course-c, var(--accent)); --on-course: var(--on-course-c, var(--on-accent)); --course-thin: var(--course-thin-c, var(--ink));
  --font: "Poppins", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: 20px; --tap: 56px;
}
/* 45b: the (c) sign is drawn by the system font, never by the embedded Poppins subset. Safari drew that glyph as an empty circle.
   Same family name and weights, only U+00A9, so every (c) on every page and in every dialog takes it with no markup change.
   It comes after fonts.css (which defines Poppins), so it wins for that one character; if no local face is found Poppins is still used. */
@font-face { font-family: "Poppins"; font-weight: 300; src: local("Helvetica Neue"), local("Arial"), local("Segoe UI"), local("Liberation Sans"); unicode-range: U+00A9; }
@font-face { font-family: "Poppins"; font-weight: 500; src: local("Helvetica Neue Medium"), local("Helvetica Neue"), local("Arial"), local("Segoe UI"), local("Liberation Sans"); unicode-range: U+00A9; }
* { box-sizing: border-box; }
/* 52c: pills for buttons, 8px for cards, dialogs and rows, 6px for tabs and inputs. The video frame, the stage and the room window stay square
   (they are not listed). The triangles and bars drawn with borders (.ico-*) are not buttons, so they stay sharp. */
button, .big-red, .btn-red, .outline, .btn-white, .pl-show { border-radius: 999px; }
.dialog, .display-panel, .settings-panel, .scr-menu, .boot-msg, .rows li, .home-card, .gate-card, input, select, textarea { border-radius: 8px; }
input, select, textarea, #tabs .tab { border-radius: 6px; }
#tabs .tab { border-radius: 6px 6px 0 0; }
.rows .r-open, .rows .r-tick { border-radius: 8px; }
.rows .r-tick { border-radius: 999px; }
html { font-size: 20px; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-flex-direction: column; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 300; font-size: 1rem; line-height: 1.45;
}
h1, h2, h3, strong, .lbl-500 { font-weight: 500; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* Focus: 3px --focus (a light blue on dark), 3px white on black, offset 2px. */
:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
#band :focus, .home-band :focus, #playlist :focus, .on-black :focus { outline-color: #FFFFFF; }
.motion button, .motion .track .fill { -webkit-transition: background-color .15s, color .15s; transition: background-color .15s, color .15s; }

/* ---------- header (fixed) ---------- */
#site-head {
  -webkit-flex: none; flex: none; position: relative; z-index: 50; min-height: 56px;   /* 37 F: its Screens menu must paint over the sidebar in Safari */
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  padding: 0 20px; background: var(--head); border-bottom: 1px solid var(--divider);
}
#site-head > * { margin-right: 16px; }
.logo-home { background: transparent; border: 0; padding: 0; -webkit-flex: none; flex: none; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.wordmark { font-weight: 500; font-size: 28px; color: var(--ink); white-space: nowrap; }
/* D-047: the app's own name, black on white in Light and inverted in the dark themes. Red stays for course content. */
.strap {
  background: var(--ink); color: var(--head); font-weight: 600; font-size: 1.2rem; line-height: 1.2;
  padding: 6px 12px; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap;
}
.strap:empty { display: none; }
/* the tagline is 44 characters (D-072): smaller in the header, and free to wrap on the sign-in card and the small-screen note */
#site-head .strap { font-size: .9rem; letter-spacing: .06em; }
.gate-card .strap, #small-screen .strap { white-space: normal; }
/* A long app name (up to 60 characters) ends in "..." instead of pushing the bar past 1024 px (27, 26 CAB nit 1) */
#site-head .logo-home { -webkit-flex: 0 1 auto; flex: 0 1 auto; min-width: 0; max-width: 56vw; }
#site-head .strap { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.strap-line { -webkit-flex: 0 3 auto; flex: 0 3 auto; min-width: 0; font-size: .7rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-gap { -webkit-flex: 1 1 0; flex: 1 1 0; min-width: 0; margin-right: 0 !important; }
/* 59a: the session title sits in a box in the accent colour (each theme's own accent / on-accent pair keeps AA); not shown on Home (the h1 is hidden) */
#p-title { -webkit-flex: 0 1 auto; flex: 0 1 auto; min-width: 0; margin: 0 16px 0 0; padding: 4px 12px; background: var(--accent); color: var(--on-accent); border-radius: 6px; font-size: .9rem; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#p-title[hidden] { display: none; }
#screens-slot { position: relative; -webkit-flex: none; flex: none; }
#display-slot { margin-right: 0 !important; -webkit-flex: none; flex: none; }

.boot-msg { margin: 40px 20px; padding: 24px; border: 3px solid var(--ink); font-size: 1.2rem; font-weight: 500; background: var(--panel); color: var(--ink); }

/* ---------- buttons ---------- */
.big-red {
  background: var(--accent); color: var(--on-accent); border: 0; font-weight: 500; font-size: 24px;
  min-height: var(--tap); padding: 8px 28px;
}
.big-red:hover, .btn-red:hover { background: var(--accent-hover, var(--accent)); }
.motion .big-red:hover, .motion .btn-red:hover { -webkit-transform: scale(1.03); transform: scale(1.03); }
.outline {
  background: transparent; color: var(--band-ink); border: 1px solid var(--band-ink-2); font-weight: 500;
  min-height: var(--tap); padding: 8px 24px; font-size: 0.95rem;
}
.outline:hover { border-color: var(--band-ink); background: var(--raise); }
.ico { display: inline-block; vertical-align: middle; }
.ico-play { width: 0; height: 0; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent currentColor; margin-right: 10px; }
.ico-pause { width: 18px; height: 22px; border-left: 6px solid currentColor; border-right: 6px solid currentColor; margin-right: 10px; }
.btn-white { background: var(--panel); color: var(--ink); border: 2px solid var(--ink); font-weight: 500; min-height: 48px; padding: 8px 18px; font-size: 0.9rem; }
.btn-red { background: var(--accent); color: var(--on-accent); border: 0; font-weight: 500; min-height: 48px; padding: 8px 28px; font-size: 24px; }

/* ---------- Home ---------- */
#home {
  -webkit-flex: 1; flex: 1; min-height: 0;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
}
.home-band {
  -webkit-flex: none; flex: none; background: var(--band); color: var(--band-ink);
  display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center;
  padding: 16px 20px;
}
.band-gap { display: none; }   /* 60a: Settings pushes itself right with margin-left:auto, so the spacer is not needed */
#home-facilitator { -webkit-flex: none; flex: none; padding: 8px 20px; font-size: 20px; color: var(--ink-2); border-bottom: 1px solid var(--divider); }
#home-facilitator button { background: transparent; border: 0; text-decoration: underline; min-height: 44px; padding: 0 8px; color: var(--ink); font-size: 20px; }
#home-list { -webkit-flex: 1; flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0; padding: 0 20px; }
/* 14 px since 18 (the credit footer below it is 14 px too); spec 26 changes the words */
/* 60c: the footer facts moved into Settings > About this laptop; Home keeps only a calm amber line when a check found a problem */
.home-warn { -webkit-flex: none; flex: none; margin: 8px 20px 0; padding: 8px 12px; border-radius: 8px; background: var(--st-amber); color: var(--on-st-amber); font-size: .75rem; line-height: 1.4; }
.home-warn[hidden] { display: none; }

/* ---------- rows (Home list and Playlist share the builder) ---------- */
.rows { list-style: none; }
.rows li { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; border-bottom: 1px solid var(--divider); }
.rows .r-open {
  -webkit-flex: 1; flex: 1; min-width: 0; text-align: left; background: transparent; border: 0;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  min-height: 64px; padding: 8px 8px; font-weight: 300;
}
.rows .r-n { -webkit-flex: none; flex: none; width: 2.2em; font-weight: 500; }
.rows .r-title { -webkit-flex: 1; flex: 1; min-width: 0; }
.rows .r-dur { -webkit-flex: none; flex: none; margin-left: 12px; font-size: 0.85rem; color: var(--ink-2); }
.rows .r-tick {
  -webkit-flex: none; flex: none; min-width: 44px; height: 44px; margin-left: 8px; padding: 0 8px;
  background: transparent; border: 2px solid var(--ink-2); font-weight: 500; font-size: 0.8rem; white-space: nowrap;
}
/* 52: a pressed Done is a filled green pill in every row (Home, the dark sidebar, the current row): --ok is #1DB954 in the dark base, #1B7A45 in Light, and each
   high-contrast theme's own green; black text on the light greens, white on Light's and light high contrast's darker green (all above 4.5:1). */
.rows .r-tick[aria-pressed="true"],
.rows-dark .r-tick[aria-pressed="true"],
.rows li.current .r-tick[aria-pressed="true"],
#playlist .r-tick[aria-pressed="true"],
#playlist li.current .r-tick[aria-pressed="true"] { background: #1DB954; background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.rows-dark li { border-bottom-color: #333333; }
.rows-dark .r-dur { color: var(--band-ink-2); }
.rows-dark .r-tick { border-color: var(--band-ink-2); color: var(--band-ink); }
/* 52c: Home's session rows are cards: --panel, --raise on hover, no divider line, 8px radius, 12px gap */
.rows-light li { background: var(--panel); border-bottom: 0; margin: 0 0 12px; }
.rows-light li:hover { background: var(--raise); }
#home { background-image: var(--wash); background-repeat: no-repeat; background-size: 100% 320px; }
.rows li.current { background: var(--accent); color: var(--on-accent); }
.rows li.current .r-dur, .rows li.current .r-tick { color: var(--on-accent); border-color: var(--on-accent); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout (18): header 56 px, the player fills, one footer; only #session-panel and the sidebar scroll ---------- */
#player { position: relative; -webkit-flex: 1; flex: 1; min-height: 0; display: -webkit-flex; display: flex; }
.p-grid { -webkit-flex: 1; flex: 1; min-height: 0; min-width: 0; display: -webkit-flex; display: flex; }
.p-left { -webkit-flex: 1 1 0; flex: 1 1 0; min-width: 0; min-height: 0; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
#band { -webkit-flex: none; flex: none; background: var(--band); color: var(--band-ink); padding: 0; }
#viewer { position: relative; width: 100%; height: 285px; height: var(--stage-h, 285px); background: #000; overflow: hidden; }
#media { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #000; -o-object-fit: contain; object-fit: contain; }
#viewer.no-picture #media { visibility: hidden; }
/* 45c: nothing clicks the picture, and nothing may select it. Safari (macOS Live Text) puts its own round button at the bottom right of a
   paused frame and, once it is clicked, an outlined box at the bottom left. Neither is ours; this asks Safari to leave the frame alone. */
#media { pointer-events: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* web build (29): the YouTube frame fills the stage; the local <video> is hidden there */
.yt-host { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #000; }
.yt-frame { display: block; width: 100%; height: 100%; border: 0; }
#audio-card {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0; padding: 24px 32px;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  text-align: center; font-size: 2.4rem; font-weight: 500; line-height: 1.2; color: #FFFFFF;
}
#msg {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0; padding: 24px; z-index: 5;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  text-align: center; background: rgba(0, 0, 0, .86); color: #FFFFFF; font-size: 1.2rem; font-weight: 500;
}
#msg p { margin: 0 0 16px; max-width: 34em; }
#msg .msg-actions button { margin: 6px; }
/* the grip (F2): 14 px tall; the 44 px hit area is a ::before reaching 15 px above and below */
#grip { position: relative; height: 14px; background: #000000; cursor: row-resize; -ms-touch-action: none; touch-action: none; }
#grip:before { content: ""; position: absolute; left: 0; right: 0; top: -15px; bottom: -15px; }
#grip:after { content: ""; position: absolute; left: 50%; top: 5px; width: 40px; height: 4px; margin-left: -20px; background: #767676; }
#grip:hover:after, #grip:focus:after { background: #FFFFFF; }
#grip:focus { outline-offset: -3px; }
#viewer.presenting + #grip { display: none; }
html.dragging, html.dragging * { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: row-resize !important; }
html.dragging #media { pointer-events: none; }

#tab-row {
  -webkit-flex: none; flex: none; height: 48px; padding: 0 20px; background: var(--panel); border-bottom: 1px solid var(--divider);
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
}
#tabs { -webkit-flex: 1; flex: 1; min-width: 0; overflow: hidden; }
/* 53: day, date and time, right-aligned next to Sessions; tab text size, muted, steady digits, one line. Not focusable, read by nobody (aria-hidden). */
/* 59b: a station-board clock. Every character is its own fixed-width cell, so no digit ever moves its neighbour. Widths are in em of the clock's own size. */
.tab-clock { -webkit-flex: none; flex: none; display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; margin-left: 12px; margin-right: 16px; font-size: 1rem; line-height: 1.5; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tab-clock .tc { -webkit-flex: none; flex: none; display: inline-block; box-sizing: border-box; text-align: center; overflow: visible; }
.tab-clock .tc-l, .tab-clock .tc-n, .tab-clock .tc-sp { font-size: .75em; color: var(--ink-2); text-transform: uppercase; }
.tab-clock .tc-l { width: .95em; }
.tab-clock .tc-n { width: .7em; }
.tab-clock .tc-sp { width: .4em; }
.tab-clock .tc-sep { width: .5em; color: var(--ink-2); }
.tab-clock .tc-t { position: relative; width: 1.05em; height: 1.45em; line-height: 1.45em; margin-right: 2px; background: #1A1A1A; border: 1px solid #2E2E2E; border-radius: 3px; color: #F5B700; font-weight: 500; letter-spacing: -.03em; }
.tab-clock .tc-t::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: rgba(0, 0, 0, .5); }
.tab-clock .tc-c { width: .4em; color: #F5B700; font-weight: 500; margin-right: 2px; }
.motion .tab-clock .tc-f0 { -webkit-animation: tc-flip0 120ms linear; animation: tc-flip0 120ms linear; }
.motion .tab-clock .tc-f1 { -webkit-animation: tc-flip1 120ms linear; animation: tc-flip1 120ms linear; }
@-webkit-keyframes tc-flip0 { 0% { -webkit-transform: scaleY(1); } 50% { -webkit-transform: scaleY(0); } 100% { -webkit-transform: scaleY(1); } }
@keyframes tc-flip0 { 0% { transform: scaleY(1); } 50% { transform: scaleY(0); } 100% { transform: scaleY(1); } }
@-webkit-keyframes tc-flip1 { 0% { -webkit-transform: scaleY(1); } 50% { -webkit-transform: scaleY(0); } 100% { -webkit-transform: scaleY(1); } }
@keyframes tc-flip1 { 0% { transform: scaleY(1); } 50% { transform: scaleY(0); } 100% { transform: scaleY(1); } }
.tab-clock[hidden] { display: none; }
.pl-show { margin-left: auto; min-height: 44px; padding: 0 16px; background: transparent; color: var(--ink); border: 2px solid var(--ink); font-weight: 500; font-size: .7rem; }

/* the Sessions sidebar (320 px, black, scrolls itself) */
#playlist { position: relative; z-index: 0; -webkit-flex: 0 0 320px; flex: 0 0 320px; width: 320px; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--band); color: var(--band-ink); }
.pl-head {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 1; height: 48px; padding: 0 8px 0 16px; background: var(--band);
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; border-bottom: 1px solid #333333;
}
#playlist h2 { margin: 0 12px 0 0; font-size: .8rem; font-weight: 500; color: #FFFFFF; }
#pl-count { -webkit-flex: 1; flex: 1; min-width: 0; font-size: .7rem; color: #BFBFBF; }
/* 52a: a full outlined pill on all four sides, 36 px tall and centred in the 48 px header, so the border and the focus ring are never clipped */
#pl-hide { height: 36px; min-height: 36px; padding: 0 14px; background: transparent; border: 1px solid var(--band-ink-2); border-radius: 999px; color: #FFFFFF; font-size: .7rem; font-weight: 500; white-space: nowrap; }
#pl-hide:hover { border-color: #FFFFFF; background: #242424; }
#pl-hide:focus { outline-offset: -3px; }
.ico-arrow { display: inline-block; vertical-align: middle; width: 0; height: 0; margin-left: 6px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
#playlist ol { margin: 0; padding: 0 0 12px; }
#playlist .r-open { min-height: 44px; font-size: .8rem; padding-left: 16px; }
#playlist .r-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#playlist .r-dur { display: none; }
#playlist .r-tick { margin-right: 12px; }
.r-now { display: none; }
#playlist li.current { background: transparent; color: var(--band-ink); -webkit-box-shadow: inset 4px 0 0 var(--course); box-shadow: inset 4px 0 0 var(--course); }
#playlist li.current .r-tick { color: var(--band-ink); border-color: var(--band-ink-2); }
#playlist li.current .r-now { display: inline-block; -webkit-flex: none; flex: none; margin-left: 8px; padding: 0 8px; background: var(--band-accent); color: var(--on-band-accent); font-size: .7rem; font-weight: 500; line-height: 1.5; }
#player.no-sidebar #playlist { display: none; }
#player.sidebar-over #playlist { display: block; position: absolute; top: 0; right: 0; bottom: 0; z-index: 20; }

#session-panel { -webkit-flex: 1; flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--panel); color: var(--ink); padding: 20px 28px 40px; }

/* ---------- session panel (06): one white column, sizes in rem (html = 20px) so Text size (13) scales them ---------- */
#session-panel { font-size: 1rem; line-height: 1.55; }
#session-panel > :first-child { margin-top: 0; }
.pn-verse { margin: 4px 0 28px; padding: 4px 0 4px 22px; border-left: 6px solid var(--course-thin); }
.pn-verse-text { margin: 0 0 10px; font-size: 1.4rem; font-weight: 300; line-height: 1.4; }
.pn-cite { margin: 0; color: var(--ink-2); font-size: 1rem; }
.pn-credit { margin: 6px 0 0; color: var(--ink-2); font-size: .7rem; line-height: 1.45; }   /* 14px (31) */
#session-panel .pn-h2 { font-size: 1.4rem; font-weight: 500; margin: 32px 0 12px; line-height: 1.25; }
#session-panel .pn-h3 { font-size: 1.05rem; font-weight: 500; margin: 22px 0 8px; line-height: 1.3; }
.pn-p { margin: 0 0 12px; max-width: 46em; }
.pn-ul, .pn-ol { margin: 0 0 14px; padding-left: 1.4em; max-width: 46em; }
.pn-ul li, .pn-ol li { margin-bottom: 6px; }
.pn-ol { font-size: 1rem; }
.pn-hw { margin: 8px 0 16px; }
.pn-hw-label { margin: 0 0 8px; font-size: 1.05rem; font-weight: 500; }
a.pn-hw-btn { display: inline-block; text-decoration: none; line-height: 1.2; padding: 12px 22px; }
.pn-note, .pn-empty { color: var(--ink-2); margin: 8px 0 0; }

/* ---------- Tabs (19): one big panel ; the tab row is 48 px (18) ---------- */
#tabs { display: -webkit-flex; display: flex; -webkit-align-items: stretch; align-items: stretch; height: 48px; overflow-x: auto; }
#tabs .tab {
  -webkit-flex: none; flex: none; height: 48px; padding: 0 16px; background: transparent; border: 0; border-bottom: 4px solid transparent;
  color: var(--ink-2); font-size: 1rem; font-weight: 500; font-family: inherit; white-space: nowrap; cursor: pointer;
}
#tabs .tab:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--ink-2); }
#tabs .tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
#tabs .tab:focus { outline: 3px solid var(--focus); outline-offset: -3px; }
/* ---------- 45a: the tab row sits under the top bar (Video, Verse, Guide, Chapters); one area below it ---------- */
/* Video tab: the player area fills it (stage, ribbon, bar). There is no panel and no grip, so the stage takes what is left. */
#player #band { -webkit-flex: 1 1 0; flex: 1 1 0; min-height: 0; position: relative; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
#player #band > * { -webkit-flex: none; flex: none; }
#player #band > #viewer, #player #band > #s2-card { -webkit-flex: 1 1 0; flex: 1 1 0; }
#player #band > #s2-card { height: auto; min-height: 160px; }
#player #grip { display: none; }
#player #session-panel { display: none; }
/* Verse, Guide, Chapters: the panel fills the area and the bar stays pinned under it. The video is moved off screen (not
   display:none), at its own size, so a playing film or YouTube frame never pauses, reloads or loses its place. */
#player.tab-text #session-panel { display: block; }
#player.tab-text #band { -webkit-order: 3; order: 3; -webkit-flex: none; flex: none; }
#player.tab-text #band > #viewer:not(.presenting), #player.tab-text #band > #s2-card, #player.tab-text #band > #ribbon {
  position: absolute; left: -200vw; top: 0; width: 100%;
}
#player.tab-text #band > #viewer:not(.presenting) { height: 285px; height: var(--stage-h, 285px); }
#player.tab-text #band > .yt-credit { display: none; }
/* no tabs (the old one column) */
#player.tabs-off #session-panel { display: block; }
#player.tabs-off #band { -webkit-flex: none; flex: none; }
.pn-wrap { max-width: 70ch; text-align: left; }
.pn-wrap .pn-p, .pn-wrap .pn-ul, .pn-wrap .pn-ol { max-width: none; }
.pn-note { font-size: .85rem; }
.pn-miss { margin: 6px 0 0; color: var(--ink-2); font-size: .7rem; }
.pn-miss[hidden] { display: none; }
/* "More below": a scrollbar that never hides (43c: no fade; the list just ends) */
#session-panel { scrollbar-width: auto; scrollbar-color: var(--ink-2) var(--divider); }
#session-panel::-webkit-scrollbar { width: 12px; height: 12px; }
#session-panel::-webkit-scrollbar-track { background: var(--divider); }
#session-panel::-webkit-scrollbar-thumb { background: var(--ink-2); border-radius: 6px; }
.ch-list { max-width: 70ch; }
.ch-row {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; width: 100%; min-height: 44px; padding: 6px 12px 6px 16px;
  background: transparent; border: 0; border-left: 4px solid transparent; color: var(--ink); font-family: inherit; font-size: 1rem; text-align: left; cursor: pointer;
}
.ch-row:hover { background: var(--divider); }
.ch-row[aria-current="true"] { border-left-color: var(--course-thin); font-weight: 500; }
.ch-time { -webkit-flex: none; flex: none; width: 4.5em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ch-title { -webkit-flex: 1; flex: 1; min-width: 0; }

/* ---------- Timer face (23): one huge calm number over the stage, inside #viewer so full screen shows it ---------- */
#timer-overlay.t-face {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 5; box-sizing: border-box; padding: 2vh 4vw;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center; text-align: center; background: #000000; color: #FFFFFF;
  font-family: var(--font); font-weight: 500; outline: none;
}
#timer-overlay.t-face[hidden] { display: none; }
#timer-overlay .t-num { font-size: 18vw; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
#timer-overlay .t-label { font-size: 3vw; line-height: 1.3; font-weight: 500; color: #BFBFBF; }
#timer-overlay .t-label[hidden], #timer-overlay .t-ctrls[hidden], #timer-overlay .t-back[hidden] { display: none; }
#timer-overlay.t-paused .t-num { opacity: .6; }
#timer-overlay.t-up .t-num { font-size: 12vw; }
@media (max-height: 800px) { #timer-overlay .t-num { font-size: 17vw; } #timer-overlay.t-up .t-num { font-size: 11vw; } }
/* her window: timer.js sets the digit and label sizes inline (45% and 8% of the stage height) */
#timer-overlay .t-ctrls { display: -webkit-flex; display: flex; margin-top: 2vh; opacity: 0; -webkit-transition: none; transition: none; }
#timer-overlay .t-ctrls.t-on, #timer-overlay .t-ctrls:focus-within { opacity: 1; }
.motion #timer-overlay .t-ctrls { -webkit-transition: opacity .15s ease; transition: opacity .15s ease; }
#timer-overlay .t-ctrls button {
  min-width: 60px; min-height: 60px; margin: 0 8px; padding: 0 14px; box-sizing: border-box; cursor: pointer;
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  background: transparent; color: #FFFFFF; border: 2px solid #FFFFFF; font-family: var(--font); font-size: 20px; font-weight: 500;
}
#timer-overlay .t-ctrls .t-ico { display: -webkit-inline-flex; display: inline-flex; margin-right: 8px; }
#timer-overlay .t-ctrls .t-ico[hidden] { display: none; }
#timer-overlay .t-back { min-height: 56px; margin-top: 3vh; padding: 0 28px; font-size: 22px; cursor: pointer; }
#viewer.presenting #timer-overlay:not(.t-ctrls-on):not(.t-up) { cursor: none; }
/* the theme's focus ring can be #0033CC in light high contrast, about 2.3:1 on the face's black: a white ring, as the bar's band has (23 CAB nit 4) */
#timer-overlay :focus { outline: 3px solid #FFFFFF; outline-offset: 2px; }
/* while the face is on her window the rest of the stage is quiet and can't be pressed (F18). Play, Full screen and Screens stay live. */
html.timer-stage #ribbon, html.timer-stage #progress, html.timer-stage #grip, html.timer-stage #btn-rewind, html.timer-stage #btn-back15,
html.timer-stage #btn-fwd15, html.timer-stage #btn-cc, html.timer-stage .vol-wrap, html.timer-stage #btn-timer, html.timer-stage #btn-cog,
html.timer-stage #tab-row, html.timer-stage #session-panel, html.timer-stage #playlist, html.timer-stage #logo-home { opacity: .35; }
html.timer-stage [inert] { pointer-events: none; }
html.motion.timer-stage #ribbon, html.motion.timer-stage #progress, html.motion.timer-stage #tab-row, html.motion.timer-stage #session-panel,
html.motion.timer-stage #playlist, html.motion.timer-stage #grip, html.motion.timer-stage #btn-timer, html.motion.timer-stage #btn-cog,
html.motion.timer-stage .vol-wrap { -webkit-transition: opacity .2s ease; transition: opacity .2s ease; }

/* ---------- Present (07): #viewer full screen; the controls move inside it and hide after 3 s idle ---------- */
#viewer.presenting { width: 100%; height: 100%; max-height: none; background: #000000; }
#viewer.presenting-fill { position: fixed; top: 0; left: 0; width: 100%; height: 100%; max-height: none; z-index: 10000; }
#viewer.presenting #controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; margin: 0;
  padding: 0; background: rgba(0, 0, 0, .9); color: #FFFFFF;
}
#viewer.presenting { cursor: none; }
#viewer.presenting.controls-on { cursor: auto; }
#viewer.presenting #controls { opacity: 0; pointer-events: none; }
#viewer.presenting.controls-on #controls { opacity: 1; pointer-events: auto; }
.motion #viewer.presenting #controls { -webkit-transition: opacity .2s ease; transition: opacity .2s ease; }
/* captions lift above the controls while they show (video, or Audio only with the big timer) */
#viewer.presenting.controls-on #cc-bar { bottom: 88px; }
.motion #viewer.presenting #cc-bar { -webkit-transition: bottom .15s ease; transition: bottom .15s ease; }
#viewer.presenting.controls-on.no-picture #cc-bar { bottom: auto; }
#present-hint {
  position: absolute; left: 2vw; top: 10vh; z-index: 7; max-width: 26vw; box-sizing: border-box;   /* left, under the timer chip (CAB S10): the logo has the right */
  background: #FFFFFF; color: #000000; padding: 8px 14px; font-size: 20px; font-weight: 500;
}
/* the logo watermark: the official file unchanged, on a small white tile, 60%, inside the top 10% */
#watermark { position: absolute; top: 2vh; right: 2vw; z-index: 4; pointer-events: none; background: #FFFFFF; padding: 6px; opacity: .6; line-height: 0; }
#watermark img { display: block; width: auto; height: 48px; height: max(32px, 6vh); max-height: 64px; }

/* ---------- Keys panel (07) ---------- */
.keys-panel {
  position: fixed; z-index: 10035; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
  width: 660px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--panel); color: var(--ink); border: 1px solid var(--ink-2); padding: 22px 28px; font-size: 24px; line-height: 1.3;
}
.keys-panel h2 { margin: 0 0 10px; font-size: 28px; }
.keys-panel ul { list-style: none; margin: 0 0 12px; padding: 0; }
.keys-panel li { display: -webkit-flex; display: flex; padding: 5px 0; border-top: 1px solid #DDDDDD; }
.keys-panel .k-sub { margin: 10px 0 4px; font-size: 24px; font-weight: 500; }
.keys-panel .k-keys { -webkit-flex: none; flex: none; width: 8em; font-weight: 500; }
.keys-panel .k-foot { margin: 6px 0 16px; }
.keys-panel :focus { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Venue check (08): an overlay, white, square, 1px black border; red only as a fill with white text ---------- */
.venue-panel {
  position: fixed; z-index: 10036; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
  width: 720px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--panel); color: var(--ink); border: 1px solid var(--ink-2); padding: 22px 28px; font-size: 20px; line-height: 1.4;
}
.venue-panel h2 { margin: 0 0 14px; font-size: 28px; }
.venue-panel :focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.v-step { margin: 0 0 10px; font-size: 24px; font-weight: 500; }
.v-bar { height: 14px; border: 1px solid var(--ink-2); background: var(--bg); margin: 0 0 12px; }
.v-fill { height: 100%; width: 0; background: var(--accent); }
.motion .v-fill { -webkit-transition: width .2s linear; transition: width .2s linear; }
.v-hint { margin: 0 0 16px; color: var(--ink-2); }
.v-good { font-size: 24px; font-weight: 500; margin: 0 0 12px; }
.v-tick { display: inline-block; background: var(--ok); color: var(--bg); padding: 0 10px; }
.v-lines, .v-notes { list-style: none; margin: 0 0 12px; padding: 0; }
.v-lines li { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--divider); }
.v-problem { -webkit-flex: none; flex: none; background: var(--err); color: var(--on-err); font-size: 24px; font-weight: 500; line-height: 1.2; padding: 2px 10px; margin-right: 12px; }
.v-text { padding-top: 2px; }
.v-fix { font-weight: 500; margin: 0 0 12px; }
.v-notes li { padding: 4px 0 4px 14px; border-left: 4px solid var(--ink-2); margin-bottom: 6px; }
.v-folder { color: var(--ink-2); font-size: 20px; overflow-wrap: break-word; word-wrap: break-word; margin: 0 0 16px; }
.v-actions button { margin: 0 12px 8px 0; }
.outline-dark { background: var(--panel); color: var(--ink); border: 2px solid var(--ink); font-weight: 500; min-height: var(--tap); padding: 8px 18px; font-size: 20px; }

/* ---------- printed notes (06): only #print-all, black on white; Display settings never change it ---------- */
.print-all { display: none; }
@media print {
  @page { margin: 15mm; }
  html { color-scheme: light !important; }
  html, body { background: #FFFFFF !important; color: #000000 !important; height: auto !important; overflow: visible !important; }
  body { display: block !important; }
  body > * { display: none !important; }
  body > #print-all { display: block !important; }
  #print-all, #print-all * {
    font-family: "Poppins", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif !important;
    color: #000000 !important; background: transparent !important;
    letter-spacing: normal !important; word-spacing: normal !important; text-transform: none !important;
  }
  #print-all { font-size: 12pt; line-height: 1.4; font-weight: 300; }
  #print-all .pr-session + .pr-session { page-break-before: always; break-before: page; }
  #print-all .pr-title { font-size: 18pt; font-weight: 500; margin: 0 0 10pt; }
  #print-all h3 { font-size: 14pt; font-weight: 500; margin: 14pt 0 6pt; }
  #print-all h4 { font-size: 12pt; font-weight: 500; margin: 10pt 0 4pt; }
  #print-all h2, #print-all h3, #print-all h4 { page-break-after: avoid; break-after: avoid; page-break-inside: avoid; }
  #print-all li { page-break-inside: avoid; break-inside: avoid; margin-bottom: 3pt; }
  #print-all .pn-verse { border-left: 3pt solid #000000; padding-left: 10pt; margin: 0 0 12pt; }
  #print-all .pn-verse-text { font-size: 13pt; margin: 0 0 4pt; }
  #print-all .pn-cite { font-size: 10pt; margin: 0; }
  #print-all .pn-credit { font-size: 8pt; margin: 2pt 0 0; }
  #print-all .pn-p { margin: 0 0 6pt; }
  #print-all .pn-ul, #print-all .pn-ol { margin: 0 0 8pt; padding-left: 16pt; font-size: 12pt; }
  #print-all .pr-file { margin-top: 14pt; font-size: 10pt; }
}

/* ---------- Dialogs ---------- */
#dialog-layer { position: fixed; z-index: 10040; left: 0; right: 0; top: 0; bottom: 0; background: rgba(0, 0, 0, .6); display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.dialog { background: var(--panel); color: var(--ink); border: 2px solid var(--ink); padding: 24px; width: 560px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow-y: auto; }
.dialog h2 { margin: 0 0 12px; font-size: 1.2rem; }
.dialog p { margin: 0 0 16px; }
.dialog .d-quick { font-size: 17px; }
.dialog .d-actions { margin-top: 16px; }
.dialog .credits p { font-size: .85rem; line-height: 1.45; }
.dialog .credits a { color: var(--ink); text-decoration: underline; }
.dialog .d-actions button { margin: 0 12px 8px 0; }
.dialog :focus { outline-color: var(--focus); }

/* ---------- captions (05): our own bar, inside #viewer so Present keeps it ---------- */
#cc-bar {
  position: absolute; left: 50%; bottom: 4%; z-index: 3; max-width: 92%; max-height: 50%; overflow: hidden;
  -webkit-transform: translateX(-50%); transform: translateX(-50%);
  background: #000000; color: #FFFFFF; font-family: var(--font); font-weight: 500; font-size: 44px; line-height: 1.25;
  padding: .12em .5em; text-align: center; white-space: pre-line;
}
#cc-bar:empty { display: none; }
/* 22: caption colours, by class only (the two tables in core.js). The default pair is the rule above: white on black. */
#cc-bar.cc-t-white, .cc-preview.cc-t-white { color: #FFFFFF; }
#cc-bar.cc-t-yellow, .cc-preview.cc-t-yellow { color: #FFE600; }
#cc-bar.cc-t-black, .cc-preview.cc-t-black { color: #000000; }
#cc-bar.cc-b-black, .cc-preview.cc-b-black { background: #000000; }
#cc-bar.cc-b-dark, .cc-preview.cc-b-dark { background: rgba(0, 0, 0, .6); }
#cc-bar.cc-b-white, .cc-preview.cc-b-white { background: #FFFFFF; }
#cc-bar.cc-b-none, .cc-preview.cc-b-none { background: transparent; text-shadow: 0 0 4px #000, 0 2px 2px #000; }
.cc-prev-box { height: 64px; background: #000000; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.cc-preview { font-family: var(--font); font-weight: 500; font-size: 28px; line-height: 1.25; padding: .12em .5em; }
.set-custom { border-top: 1px solid var(--divider); padding: 8px 16px 10px; }
.cc-fix-note { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.set-choice .c-opts button.c-fix { outline: 2px dashed var(--ink-2); outline-offset: -4px; }
.set-choice .c-opts button.c-fix:focus { outline: 3px solid var(--focus); }
#viewer.no-picture #audio-card { -webkit-align-items: flex-end; align-items: flex-end; bottom: 54%; }
#viewer.no-picture #cc-bar { bottom: auto; top: 50%; }

/* ---------- Holding screens (24): one black layer inside #viewer, shown through Present. One skeleton, one focal point ---------- */
/* Sizes are vw (a 1920 projector gets 1.5x); the px before each are the 1280 values and the fallback. All text is 26 px or more at 1280. */
#welcome {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 5; overflow: hidden; box-sizing: border-box;
  background: #000000; color: #FFFFFF; font-family: var(--font); font-weight: 500; text-align: center;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center;
  padding: 36px 5vw 0; padding: 2.8125vw 5vw 0; opacity: 0;
}
#welcome.w-in { opacity: 1; }
.motion #welcome { -webkit-transition: opacity 1s ease; transition: opacity 1s ease; }
#welcome:focus { outline: 0; }
#welcome :focus { outline: 3px solid #FFFFFF; outline-offset: 2px; }
#viewer.holding #cc-bar, #viewer.holding #watermark, #viewer.holding #msg, #viewer.holding #audio-card { visibility: hidden; }
/* a timer face that is back in #viewer (Welcome and End have no slot) waits unseen under the layer */
#viewer.holding > #timer-overlay { visibility: hidden; }
.w-top { -webkit-flex: none; flex: none; width: 100%; }
/* 37: the session heading, straight under the logo: red label + title, 54 px, at most 2 lines */
.w-head {
  margin: 16px auto 0; margin: 1.25vw auto 0; max-width: 90%; font-size: 54px; font-size: 4.22vw; font-weight: 600; line-height: 1.15;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.w-head[hidden] { display: none; }
.w-head .w-label { font-size: inherit; line-height: 1.15; }
.w-logo { display: inline-block; background: #FFFFFF; padding: 8px; padding: .625vw; line-height: 0; }
.w-logo img { display: block; width: auto; height: 48px; height: 3.75vw; }
.w-logo .w-wordmark { display: block; line-height: 1.2; color: #000000; font-size: 32px; font-size: 2.5vw; padding: 0 .8vw; }
.w-logo.w-no-logo { background: transparent; }
.w-logo.w-no-logo .w-wordmark { color: #FFFFFF; }
.w-esc { position: absolute; top: 24px; top: 1.875vw; right: 32px; right: 2.5vw; margin: 0; font-size: 20px; font-weight: 500; color: #BFBFBF; }
.w-esc[hidden] { display: none; }
/* the middle: the stack is centred, and where it is too tall it simply starts at the top (auto margins never go negative).
   The bottom padding keeps it clear of the red name block (bottom 56 px + about two lines). */
.w-main { -webkit-flex: 1; flex: 1; min-height: 0; width: 100%; box-sizing: border-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; padding: 12px 0 192px; padding: .9375vw 0 15vw; }
.w-stack { margin: auto 0; width: 100%; min-height: 0; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; }
.w-stack.w-s-welcome { -webkit-flex: 1; flex: 1; margin: 0; }
.w-focal { max-width: 80%; min-height: 0; margin: 0 auto; }
.w-s-welcome .w-focal { -webkit-flex: 1; flex: 1; width: 100%; max-width: 80%; position: relative; }
.w-title { margin: 0; font-size: 54px; font-size: 4.22vw; line-height: 1.15; }
.w-s-end .w-title { font-size: 78px; font-size: 6.1vw; line-height: 1.1; white-space: nowrap; }   /* 41: one line; welcome.js fitTitle steps the size down to fit */
.w-line { margin: 8px 0 0; margin: .625vw 0 0; font-size: 26px; font-size: 2.03vw; line-height: 1.3; color: #BFBFBF; }
.w-line[hidden], .w-next[hidden], .w-chips[hidden], .w-title[hidden], .w-verse[hidden] { display: none; }
.w-s-end .w-line { margin-top: 1.25vw; font-size: 30px; font-size: 2.34vw; }
.w-label {
  display: inline-block; vertical-align: middle; background: var(--course); color: var(--on-course); text-transform: uppercase;
  letter-spacing: .05em; font-size: 26px; font-size: 2.03vw; line-height: 1.2; padding: .1em .45em; margin-right: .5em;
}
.w-linetext, .w-nexttext { vertical-align: middle; }
.w-s-breakout .w-linetext { color: #BFBFBF; }
.w-next { margin-top: 2.2vw; font-size: 34px; font-size: 2.66vw; line-height: 1.3; }
.w-next .w-label { font-size: 26px; font-size: 2.03vw; }
.w-rule { width: 72px; width: 5.625vw; height: 4px; height: .3125vw; background: var(--course); margin: 0 auto 1.4vw; }
/* the verse: one blockquote at 2.8125vw (36 px) or smaller to fit, the reference at 2.03vw (26 px) under it */
.w-verse {
  position: absolute; left: 0; right: 0; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%);
  margin: 0; font-size: 36px; font-size: 2.8125vw; line-height: 1.3; opacity: 0;
}
.w-verse.w-in { opacity: 1; }
.w-verse.w-out { opacity: 0; }
.motion .w-verse { -webkit-transition: opacity .8s ease; transition: opacity .8s ease; }
.motion .w-verse.w-now { -webkit-transition: none; transition: none; }
.w-text { margin: 0; font-weight: 500; }
.w-cite { margin: .5em 0 0; font-size: 26px; font-size: 2.03vw; line-height: 1.3; color: #BFBFBF; font-weight: 500; }
/* the timer: chips (56 px), then 23's face moved into the slot */
.w-chips { display: -webkit-flex; display: flex; margin-top: 1.1vw; }
.w-chip {
  opacity: .35;   /* 37 C: quiet until hovered or focused, so Break stays the focus */
  min-width: 56px; min-height: 56px; margin: 0 .6vw; padding: 0 12px; background: #000000; color: #FFFFFF; cursor: pointer;
  border: 2px solid #FFFFFF; font-family: inherit; font-weight: 500; font-size: 26px; font-size: 2.03vw;
}
.w-chip:hover { opacity: 1; }
.w-chip:focus { opacity: 1; }
.motion .w-chip { -webkit-transition: opacity .2s ease; transition: opacity .2s ease; }
.w-slot { margin-top: .6vw; }
/* 47b: the stack's children never shrink (a shrunk title let the countdown draw over BREAK); the countdown shrinks first, by the window's height too */
.w-stack > * { -webkit-flex: none; flex: none; }
.w-slot #timer-overlay .t-num { font-size: 17vw; font-size: min(17vw, 22vh); }
.w-slot #timer-overlay.t-up .t-num { font-size: 11vw; font-size: min(11vw, 16vh); }
.w-slot #timer-overlay.t-face { position: static; z-index: auto; padding: 0; background: transparent; }
.w-slot #timer-overlay .t-ctrls { margin-top: 1vh; }
/* the red name block (F14): slides in at 1.5 s, holds 9 s, fades, and is gone for 9.4 s, on a 20 s loop */
.w-fac {
  position: absolute; left: 0; bottom: 56px; bottom: 4.375vw; margin: 0; max-width: 70vw; box-sizing: border-box; min-width: 0;
  padding: 16px 40px 16px 56px; padding: 1.25vw 3.125vw 1.25vw 4.375vw; text-align: left; background: var(--course); color: var(--on-course);
  font-size: 38px; font-size: 3vw; line-height: 1.25; font-weight: 500; overflow-wrap: break-word; word-wrap: break-word;
  /* 37 D (was the 27 line-clamp): two block lines, name then venue, each one line with "..." at the end, so the block is never more
     than 2 lines (2 x 3vw x 1.25 = 7.5vw, + 2.5vw padding + 4.375vw from the bottom = 14.375vw) and stays inside the 15vw the stack keeps clear. */
  overflow: hidden;
}
.w-fac-name, .w-fac-venue { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-fac[hidden] { display: none; }
.motion .w-fac { -webkit-animation: w-fac 20s ease-out 1.5s infinite both; animation: w-fac 20s ease-out 1.5s infinite both; }
@-webkit-keyframes w-fac { 0% { opacity: 0; -webkit-transform: translateX(-48px); } 4% { opacity: 1; -webkit-transform: none; } 49% { opacity: 1; } 53% { opacity: 0; } 100% { opacity: 0; } }
@keyframes w-fac { 0% { opacity: 0; transform: translateX(-48px); } 4% { opacity: 1; transform: none; } 49% { opacity: 1; } 53% { opacity: 0; } 100% { opacity: 0; } }
/* the corner (bottom-right): only the track's name and the speaker. It shows on a mouse move or focus and hides after 3 s idle (present.js) */
.w-corner {
  position: absolute; right: 24px; right: 1.875vw; bottom: 24px; bottom: 1.875vw;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  font-size: 26px; font-size: 2.03vw; opacity: 0; pointer-events: none;
}
#viewer.controls-on .w-corner { opacity: 1; pointer-events: auto; }
.w-corner:focus-within { opacity: 1; pointer-events: auto; }   /* its own rule: an old browser drops only this */
.motion .w-corner { -webkit-transition: opacity .2s ease; transition: opacity .2s ease; }
.w-music-label { color: #BFBFBF; font-weight: 300; margin-right: 12px; white-space: nowrap; font-size: 20px; font-size: 1.5625vw; -webkit-align-self: flex-end; align-self: flex-end; margin-bottom: 4px; margin-bottom: .3vw; }
/* 37 B: the volume panel rises above the speaker in the same 56 px column. The range is horizontal, turned -90deg inside a fixed box */
.w-vol {
  position: absolute; right: 0; bottom: 64px; width: 56px; box-sizing: border-box; padding: 8px 0; background: #000000;
  border: 2px solid #FFFFFF; text-align: center; color: #FFFFFF; font-size: 20px; line-height: 1.2;   /* fixed: "100%" must fit the 56 px panel at every size; 64 px clears the speaker */
}
.w-vol[hidden] { display: none; }
.motion .w-vol { -webkit-animation: w-vol .2s ease; animation: w-vol .2s ease; }
@-webkit-keyframes w-vol { from { opacity: 0; } to { opacity: 1; } }
@keyframes w-vol { from { opacity: 0; } to { opacity: 1; } }
.w-vol-box { position: relative; width: 40px; height: 200px; height: 15.6vw; margin: 0 auto; overflow: visible; }
.w-vol-range {
  position: absolute; left: 50%; top: 50%; width: 200px; width: 15.6vw; height: 40px; margin: -20px 0 0 -100px; margin: -20px 0 0 -7.8vw;
  -webkit-transform: rotate(-90deg); transform: rotate(-90deg); background: transparent; cursor: pointer;
}
.w-vol-read { margin-top: 4px; }
.w-music-btn { width: 56px; height: 56px; padding: 0; background: #000000; color: #FFFFFF; border: 2px solid #FFFFFF; line-height: 0; }
.w-music-btn svg { display: block; margin: auto; }
/* 38g: one speaker for on, one for off; the waves show in thirds of the level. A hidden wave keeps its place, so the icon never moves. */
.w-music-btn .w-ico-off { display: none; }
.w-music-btn[data-icon="off"] .w-ico-on { display: none; }
.w-music-btn[data-icon="off"] .w-ico-off { display: block; }
.w-music-btn[data-waves="0"] .w-wave { opacity: 0; visibility: hidden; }
.w-music-btn[data-waves="1"] .w-wave-2, .w-music-btn[data-waves="1"] .w-wave-3 { opacity: 0; visibility: hidden; }
.w-music-btn[data-waves="2"] .w-wave-3 { opacity: 0; visibility: hidden; }
.motion .w-wave { -webkit-transition: opacity .15s ease; transition: opacity .15s ease; }
.w-music-btn[aria-pressed="true"] { background: #FFFFFF; color: #000000; }

/* The facilitator form (15): plain white dialogs */
.fac-hint { font-size: 1rem; color: var(--ink-2); }
/* On a holding screen there is no bar at all, and no Exit button: Esc leaves, and the screen says so for 3 s. */
#viewer.holding #controls { display: none; }
@media print { #welcome { display: none !important; } }

/* ---------- Sign-in and weekly check (16): a centred card on theme variables, so Dark (13) works. rem, so text size applies ---------- */
#gate { -webkit-flex: 1; flex: 1; min-height: 0; overflow-y: auto; padding: 1.2rem 1rem; background: var(--panel); color: var(--ink); }
.gate-card { width: 34rem; max-width: 100%; margin: 0 auto; padding: 1.4rem 1.6rem; background: var(--panel); color: var(--ink); border: 1px solid var(--ink); text-align: center; }
.gate-brand { min-height: 120px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; margin-bottom: .8rem; }
.gate-brand img { height: 120px; width: auto; max-width: 100%; display: block; }
:root:not([data-theme="light"]) .gate-brand img { background: #E6E8EA; padding: 3px 6px; }   /* the course logo, unaltered, on a soft tile (38h) */
.vp-gate { margin: 0; font-size: 1rem; font-weight: 400; }
.vp-gate .vp-svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.gate-sub { margin: .5rem 0 1.2rem; font-size: 1rem; color: var(--ink-2); }
/* "Course loaded:" + the course's logo (D-092) */
.cl-logo { height: 28px; width: auto; vertical-align: middle; }
.gate-sub .cl-logo { height: 32px; }
.gate-row { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; margin: 0 0 .8rem; text-align: left; }
.gate-row label { -webkit-flex: none; flex: none; width: 6rem; font-weight: 500; }
.gate-in { -webkit-flex: 1; flex: 1; min-width: 10rem; min-height: var(--tap); padding: 8px 12px; font: inherit; background: var(--panel); color: var(--ink); border: 2px solid var(--ink); }
.gate-err { min-height: 1.5em; margin: 0 0 .8rem; font-weight: 500; color: var(--ink); }
.gate-err:not(:empty) { border-left: 6px solid var(--err); padding-left: .6rem; text-align: left; }
.gate-go { width: 100%; }
.gate-h { margin: 0 0 1rem; font-size: 24px; font-weight: 500; text-align: left; }
.gate-h:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.gate-bar { height: 14px; border: 1px solid var(--ink); background: var(--panel); margin: 1rem 0 .6rem; }
.gate-fill { height: 100%; width: 0; background: var(--accent); }
.motion .gate-fill { -webkit-transition: width .2s linear; transition: width .2s linear; }
.gate-actions { margin-top: 1rem; text-align: left; }
.gate-actions button { margin: 0 .8rem .5rem 0; }
.gate-skip { min-height: var(--tap); padding: 8px 16px; font-size: .9rem; background: transparent; color: var(--ink); border: 2px solid transparent; text-decoration: underline; font-weight: 300; }
.gate-fix { font-weight: 500; margin: 1rem 0 0; text-align: left; }
/* The startup checklist (25): one 44 px row each; a tick, a ring or a red square, the label, then the state on the right */
.ck-rows { list-style: none; margin: 0; padding: 0; text-align: left; }
.ck-row { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; min-height: 44px; border-top: 1px solid var(--divider); }
.ck-ico { -webkit-flex: none; flex: none; box-sizing: border-box; width: 24px; height: 24px; margin-right: 12px; border: 2px solid var(--ink-2); text-align: center; font-size: 17px; line-height: 20px; color: var(--ink); }
.ck-ico.ck-now { border-radius: 50%; border-color: var(--ink); }
.ck-ico.ck-ok { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.ck-ico.ck-bad { background: var(--err); border-color: var(--err); color: var(--on-err); }
.ck-ico.ck-grey { color: var(--ink-2); }
.motion .ck-ico.ck-ok { -webkit-animation: ck-pop .15s ease-out; animation: ck-pop .15s ease-out; }
@-webkit-keyframes ck-pop { from { -webkit-transform: scale(.6); transform: scale(.6); } to { -webkit-transform: scale(1); transform: scale(1); } }
@keyframes ck-pop { from { transform: scale(.6); } to { transform: scale(1); } }
.ck-label { -webkit-flex: 1; flex: 1; min-width: 0; font-size: 20px; }
.ck-state { -webkit-flex: none; flex: none; margin-left: 12px; font-size: 17px; color: var(--ink-2); }
.ck-problem .ck-state { color: var(--err); font-weight: 500; }
.ck-line { -webkit-flex: 0 0 100%; flex: 0 0 100%; margin: 0 0 8px 36px; font-weight: 500; }
.ck-note { margin: 0; font-size: 17px; color: var(--ink-2); text-align: left; }

/* ---------- Chapter ribbon (17): under the video, outside #viewer (so it is not in the full-screen element) ---------- */
.ribbon {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  height: 40px; padding: 0 16px; background: #000000; color: #FFFFFF; font-family: var(--font); overflow: hidden;
}
.ribbon .rb-count { -webkit-flex: none; flex: none; margin-right: 12px; padding: 2px 8px; background: var(--course); color: var(--on-course); font-size: 14px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.ribbon .rb-title { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; font-size: 18px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ribbon .rb-next { -webkit-flex: none; flex: none; margin-left: 16px; max-width: 45%; font-size: 14px; font-weight: 300; color: #BFBFBF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ribbon .rb-count:empty, .ribbon .rb-next:empty, .ribbon.rb-narrow .rb-next { display: none; }
.ribbon.rb-out .rb-count, .ribbon.rb-out .rb-title, .ribbon.rb-out .rb-next { opacity: 0; }
.ribbon.rb-in .rb-count, .ribbon.rb-in .rb-title, .ribbon.rb-in .rb-next { opacity: 1; }
.motion .ribbon.rb-out .rb-count, .motion .ribbon.rb-out .rb-title, .motion .ribbon.rb-out .rb-next { -webkit-transition: opacity .25s ease; transition: opacity .25s ease; }
.motion .ribbon.rb-in .rb-count, .motion .ribbon.rb-in .rb-title, .motion .ribbon.rb-in .rb-next { -webkit-transition: opacity .35s ease; transition: opacity .35s ease; }
/* Full-screen label: top-left, never in the caption zone (captions sit at the bottom). */
#ribbon-fs {
  position: absolute; z-index: 4; top: 2vh; left: 2vw; max-width: 60%; max-height: 2.6em; padding: 8px 14px; overflow: hidden;
  background: rgba(0, 0, 0, .7); color: #FFFFFF; font-family: var(--font); font-size: 28px; font-weight: 500; line-height: 1.25; pointer-events: none;
}
#viewer:not(.presenting) #ribbon-fs { display: none; }
#viewer.holding #ribbon-fs { display: none; }
/* 65m (Chris, 13 Nov): on Welcome, Break, Breakout and End the strip under the stage shows no chapter title and no "Next:". Hidden, not removed,
   so the stage keeps its height and nothing jumps when a holding screen comes and goes. */
/* 65m fix (Chris, 13 Nov: "the SCREENS still have the chapter title"): in full screen on the web the strip rides inside #viewer, in #fs-panel
   (present.js moveControls), so it is a child of the stage there, not a sibling. Both places are covered. */
#viewer.holding ~ #ribbon, #viewer.holding #ribbon { visibility: hidden; }
/* 65n (Chris, 13 Nov: "the music title + mute/volume are hiding behind a black block"): in full screen on the web the bar's panel kept its
   dark background over the holding screen's music corner, with nothing left in it. On a holding screen the whole panel goes. */
html.web #viewer.holding #fs-panel { display: none; }
#ribbon-fs.fs-fade { opacity: 0; }
.motion #ribbon-fs.fs-fade { -webkit-transition: opacity .2s ease; transition: opacity .2s ease; }
/* Ticks: a 2px black gap at each chapter start, above the fill and below the head. */
#progress .track .tick { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #000000; z-index: 1; pointer-events: none; }
#progress .track .fill { z-index: 0; }
#progress .track .head { z-index: 2; }

/* ---------- Footer (18): one credit line; wraps at XL text; never in full screen, never printed ---------- */
#site-foot { -webkit-flex: none; flex: none; min-height: 32px; padding: 6px 20px; font-size: 17px; font-weight: 400; line-height: 1.45; color: var(--ink-2); background: var(--panel); border-top: 1px solid var(--divider); }
#site-foot p { margin: 0; }
/* 38e: line 1 (name and maker) a little heavier and in the full ink; line 2 stays in the quiet ink */
#site-foot .foot-maker { font-weight: 500; color: var(--ink); }
#site-foot .foot-maker a { color: var(--ink); }
#site-foot .foot-build { font-weight: 400; color: var(--ink-2); white-space: nowrap; }   /* 65j: the build, in the quiet ink */
#site-foot a { color: var(--ink-2); text-decoration: underline; }   /* the maker link (38), and on the web Sign out (31) */
#site-foot a:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
/* CAB 17 C2: a seek fades in 75 ms (one more class than the 250/350 ms rules above, so these win) */
.motion .ribbon.rb-quick.rb-out .rb-count, .motion .ribbon.rb-quick.rb-out .rb-title, .motion .ribbon.rb-quick.rb-out .rb-next { -webkit-transition: opacity .075s ease; transition: opacity .075s ease; }
.motion .ribbon.rb-quick.rb-in .rb-count, .motion .ribbon.rb-quick.rb-in .rb-title, .motion .ribbon.rb-quick.rb-in .rb-next { -webkit-transition: opacity .075s ease; transition: opacity .075s ease; }

/* ---------- Control bar (20): one slim black bar under the ribbon, a scrubber above it, one red button ---------- */
#sound-note { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 6px 20px; background: #000000; color: #FFFFFF; border-top: 1px solid #333333; font-size: 17px; font-weight: 500; }
#sound-note button { margin-left: 16px; min-height: 40px; padding: 4px 16px; font-size: 17px; }
#controls { background: #000000; color: #FFFFFF; }
#progress { position: relative; height: 24px; padding: 0 8px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; cursor: pointer; -ms-touch-action: none; touch-action: none; }
#progress.inert { cursor: default; opacity: .6; }
#progress .track { position: relative; width: 100%; height: 6px; background: var(--track); }
#progress .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--band-accent); }
#progress .head { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; left: 0; background: #FFFFFF; }
#progress:hover .track, #progress:focus .track, html.dragging #progress .track { height: 10px; }
.motion #progress .track { -webkit-transition: height .12s ease; transition: height .12s ease; }
#progress:focus { outline-offset: -3px; }
.scrub-tip { position: absolute; bottom: 23px; left: 0; z-index: 8; max-width: 320px; padding: 4px 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: rgba(0, 0, 0, .9); color: #FFFFFF; font-size: 14px; font-weight: 500; line-height: 1.3; pointer-events: none; }
.bar-row { position: relative; height: 56px; padding: 0 8px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; background: #000000; }
.bar-row button { -webkit-flex: none; flex: none; min-width: 48px; height: 48px; min-height: 48px; margin: 0; padding: 0 10px; background: transparent; color: #FFFFFF; border: 0; font-size: 14px; font-weight: 500; display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.bar-row button:hover { background: #262626; }
.bar-row svg { -webkit-flex: none; flex: none; width: 26px; height: 26px; }
.bar-row .lbl:not(.sr-only) { margin-left: 6px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.bar-row .n15 { font-size: 13px; font-weight: 600; margin: 0 2px; }
.bar-row .big-red, .bar-row .big-red:hover { width: 56px; height: 56px; min-height: 56px; padding: 0; background: var(--band-accent); color: var(--on-band-accent); }
.bar-row .big-red:hover { background: #FFFFFF; }   /* 42b S4: a light hover on the black bar, not red */
.bar-row .big-red svg { width: 30px; height: 30px; }
#time { margin: 0 12px; white-space: nowrap; font-size: 20px; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.bar-gap { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 4px; }
#btn-cc .cc-on { display: none; margin-left: 6px; font-size: 14px; }
.bar-row #btn-cc[aria-pressed="true"] { background: #FFFFFF; color: #000000; }
#btn-cc[aria-pressed="true"] .cc-on { display: inline; }
#btn-cc[aria-disabled="true"] { opacity: .4; cursor: default; }
/* 39k + 46: the offline status button (web build only, made by offline-mode.js), in the control bar and in Home's top row. One state, one colour,
   always icon + words. Amber fills from the left as the download goes; green is full. White label on the unfilled part and a dark copy clipped to
   the filled part, so the words read on both halves (--ok and --bg change together; amber and grey are fixed pairs: 10.2:1 and 6.1:1).
   Red uses the theme's own error pair (--err / --on-err). Motion only where the page has it on (.motion), as elsewhere. */
.of-btn { position: relative; overflow: hidden; }
.of-btn .of-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ok); }
.of-btn .of-base, .of-btn .of-on { display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; position: relative; }
.of-btn .of-on { position: absolute; left: 0; right: 0; top: 0; bottom: 0; padding: 0 10px; color: var(--bg); pointer-events: none; }
.of-btn .of-ico { width: 26px; font-size: 24px; font-weight: 600; line-height: 1; text-align: center; }
.of-btn .of-fill[hidden], .of-btn .of-on[hidden] { display: none; }
.of-btn .lbl:not(.sr-only) { font-variant-numeric: tabular-nums; }
/* 46 S2: both buttons are as wide as the longest of their words, so changing state never moves the bar or the row */
.bar-row #btn-offline { min-width: 13.5em; }
.of-home { min-width: 12.5em; }   /* 60a: was 14em; the pill is 40px high now */
.of-btn.of-amber .of-fill { background: var(--st-amber); }
.of-btn.of-amber .of-on { color: var(--on-st-amber); }
.bar-row #btn-offline.of-red, .bar-row #btn-offline.of-red:hover { background: var(--st-red); color: var(--on-st-red); border-color: var(--st-red); }
.bar-row #btn-offline.of-grey, .bar-row #btn-offline.of-grey:hover { background: var(--st-grey); color: var(--on-st-grey); border-color: var(--st-grey); }
.bar-row #btn-offline.of-green { border-color: var(--ok); }
/* 60a: Home's band is a row of compact 40px pills (the Player's bar keeps its own sizes). One filled accent button; the rest are quiet:
   --raise fill and a --band-ink-2 edge (3:1 or better on the black band in every theme), text in --ink on --raise (AA in all four themes). */
.home-band { -webkit-align-items: flex-start; align-items: flex-start; padding: 12px 20px; }
.home-band > *, .home-band > .of-home-wrap { margin: 4px 8px 4px 0; }
.home-band > button, .home-band .of-home {
  min-height: 2rem; padding: 0 16px; font-size: .75rem; font-weight: 500; line-height: 1.3; border-radius: 999px; max-width: 100%;
  background: var(--raise); color: var(--ink); border: 1px solid var(--band-ink-2);
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.home-band > button:hover, .home-band .of-home:hover { background: var(--raise); border-color: var(--band-ink); }
.home-band > button[hidden] { display: none; }
/* CAB 60 M1: the two Fix states are amber on Home (same AA pair as the amber status); Save-for-offline and Offline-ready stay quiet */
.home-band .of-home.of-fix, .home-band .of-home.of-fix:hover { background: var(--st-amber); color: var(--on-st-amber); border-color: var(--st-amber); }
.home-band > .home-accent, .home-band > .home-accent:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.home-band > .home-accent:hover { background: var(--accent-hover, var(--accent)); }
:root[data-theme="light"] .home-band > .home-accent { border-color: var(--band-ink-2); }   /* the near-black fill needs an edge on the black band */
.home-band :focus { outline-offset: -3px; }   /* the ring stays inside the band, never clipped at its edge */
.home-band .ico-play { border-width: 9px 0 9px 15px; margin-right: 8px; }
.home-band .of-home .of-ico { width: 18px; font-size: 18px; }
.home-band .of-home .of-on { padding: 0 16px; }
.home-band > .set-btn { margin-left: auto; margin-right: 0; }
.home-band .set-btn svg { width: 18px; height: 18px; margin-right: 8px; }
@media (max-width: 559px) {   /* Settings is the gear alone on a narrow window (it keeps aria-label="Settings") */
  .home-band .set-btn .set-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .home-band .set-btn { padding: 0; width: 40px; }
  .home-band .set-btn svg { margin-right: 0; }
}
/* 60a + 49: the size-and-speed line sits in flow under the Save button, so a wrapped band never overlaps it (closes CAB 48 S3) */
html.web .of-home-wrap { display: -webkit-inline-flex; display: inline-flex; -webkit-flex-direction: column; flex-direction: column; vertical-align: top; max-width: 100%; }
html.web .of-home-line { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin-top: 2px; padding-left: 4px;
  font-size: .6rem; line-height: 1.3; color: var(--band-ink-2); font-variant-numeric: tabular-nums; pointer-events: none; }
html.web .of-home-line[hidden] { display: none; }
/* 39k item 8: this one label never hides in a compact bar (the others do). Its width is already in rowNeed(), so the row still fits. */
#band.bar-compact #btn-offline .lbl:not(.sr-only) { display: inline; }
/* 65k: too narrow even for the icons-only row: two rows. The gap becomes a full-width break, so play and the time stay on row 1 and
   Save for offline, Captions, volume, Timer, Full screen and Settings move to row 2. Nothing squeezes, nothing hides under the sessions list. */
#band.bar-wrap .bar-row { -webkit-flex-wrap: wrap; flex-wrap: wrap; height: auto; }
#band.bar-wrap .bar-gap { -webkit-flex: 0 0 100%; flex: 0 0 100%; height: 0; min-width: 0; }
#band.bar-wrap #time { -webkit-flex: none; flex: none; }
.motion .of-fill.of-move, .motion .oc-fill.of-move { -webkit-transition: width .4s ease; transition: width .4s ease; }
.motion .of-on.of-move { -webkit-transition: clip-path .4s ease, -webkit-clip-path .4s ease; transition: clip-path .4s ease, -webkit-clip-path .4s ease; }
@media (prefers-reduced-motion: reduce) { .of-move { -webkit-transition: none !important; transition: none !important; } }
/* 46b: the Online / Offline sign in the top bar: a small pill, not a button. Not in the room window (Present hides it from the page). */
.net-pill { -webkit-flex: none; flex: none; display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; padding: 1px 10px; border: 1px solid var(--ink-2); border-radius: 999px; font-size: .7rem; font-weight: 500; line-height: 1.4; color: var(--ink); white-space: nowrap; }
.net-pill .np-ico { margin-right: 6px; font-size: .7rem; }
.net-pill .np-ico { display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; }
.net-pill .np-svg { display: block; width: 14px; height: 14px; }
.net-pill.net-on .np-ico { color: var(--st-green); }   /* #1DB954 in the dark base (the :root token) */
.net-pill.net-off .np-ico { color: var(--st-amber); }   /* #F59B23 in the dark base */
.net-pill.net-off { border-width: 2px; padding: 0 9px; }
.net-pill[hidden], body.s2-body .net-pill { display: none; }
.vol-wrap { display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; }
#vol { width: 0; height: 48px; margin: 0; padding: 0; background: transparent; accent-color: #FFFFFF; }
.vol-wrap:hover #vol, .vol-wrap:focus-within #vol { width: 96px; margin: 0 8px 0 0; }
.motion #vol { -webkit-transition: width .12s ease; transition: width .12s ease; }
.timer-wrap { position: relative; display: -webkit-inline-flex; display: inline-flex; }
#timer-chips { position: absolute; left: 0; bottom: 100%; z-index: 9; margin-bottom: 4px; display: -webkit-flex; display: flex; background: #000000; border: 2px solid #FFFFFF; }
#timer-chips[hidden] { display: none; }
#timer-chips button { min-width: 48px; padding: 0 12px; }
#timer-chips button[aria-pressed="true"] { background: #FFFFFF; color: #000000; }
#timer-chips .chip-stop { background: var(--err); color: var(--on-err); }
#band.bar-compact .lbl:not(.sr-only), #band.bar-compact .cc-on { display: none; }

.motion #viewer.presenting #ribbon-fs { -webkit-transition: opacity .2s ease; transition: opacity .2s ease; }
html.scrubbing, html.scrubbing * { cursor: pointer !important; }
html.scrubbing #media { pointer-events: none; }
#viewer.presenting #sound-note { position: absolute; left: 0; right: 0; bottom: 88px; z-index: 6; }

/* ---------- Settings and Screens (21): the cog's slide-over and the header's Screens menu ---------- */
.set-btn {
  background: transparent; color: var(--band-ink); border: 2px solid var(--band-ink); font-weight: 500;
  min-height: var(--tap); padding: 8px 16px; font-size: 0.95rem;
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center;
}
.set-btn svg { margin-right: 8px; }
.bar-row #btn-cog { padding: 0 12px; }
.settings-panel {
  position: fixed; z-index: 10030; right: 0; width: 360px; max-width: 100vw; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--panel); color: var(--ink); border-left: 2px solid var(--ink); font-size: 17px;
}
.motion .settings-panel.set-in { -webkit-animation: set-slide .15s ease; animation: set-slide .15s ease; }
@-webkit-keyframes set-slide { from { -webkit-transform: translateX(100%); } to { -webkit-transform: translateX(0); } }
@keyframes set-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
.set-top { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; padding: 4px 8px 4px 16px; }
.set-top h2 { margin: 0; font-size: 21px; font-weight: 500; }
.set-close { width: 48px; height: 48px; padding: 0; background: transparent; border: 0; color: var(--ink); display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.set-head { margin: 0; padding: 14px 16px 4px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.set-row { display: block; width: 100%; min-height: 48px; padding: 8px 16px; text-align: left; background: var(--panel); border: 0; border-top: 1px solid var(--divider); color: var(--ink); font-size: 17px; font-weight: 300; }
.set-row[role="switch"] { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; -webkit-align-items: center; align-items: center; }
.set-row .state { font-weight: 500; margin-left: 12px; }
.set-row[aria-checked="true"] .state { color: var(--on-accent); background: var(--accent); padding: 2px 8px; }
.set-note { color: var(--ink-2); cursor: default; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.set-choice { border-top: 1px solid var(--divider); padding: 8px 16px 10px; font-size: 17px; }
.set-choice .c-label { display: block; margin-bottom: 6px; }
.set-choice .c-opts { display: -webkit-flex; display: flex; }
.set-choice .c-opts button { -webkit-flex: 1; flex: 1; min-height: 40px; background: var(--panel); border: 1px solid var(--ink); margin-right: -1px; font-size: 17px; font-weight: 500; color: var(--ink); }
.set-choice .c-opts button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.set-danger { color: var(--err); font-weight: 500; }
.set-hint { margin: 0; padding: 0 16px 10px; font-size: 14px; color: var(--ink-2); }
.settings-panel :focus { outline-color: var(--focus); outline-offset: -3px; }
.scr-btn {
  background: transparent; color: var(--ink); border: 2px solid var(--ink); height: 48px; padding: 0 12px; margin-right: 16px;
  font-size: 17px; font-weight: 500; display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center;
}
.scr-btn span { margin: 0 6px 0 8px; }
.scr-menu { position: absolute; z-index: 10030; top: 100%; right: 16px; margin-top: 6px; width: 260px; background: var(--panel); color: var(--ink); border: 2px solid var(--ink); }
.scr-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; width: 100%; height: 56px; padding: 0 16px; background: var(--panel); border: 0; color: var(--ink); font-size: 17px; font-weight: 500; text-align: left; }
.scr-row svg { -webkit-flex: none; flex: none; margin-right: 12px; }
.scr-row:hover { background: var(--divider); }
.scr-menu :focus { outline-color: var(--focus); outline-offset: -3px; }
/* CAB 20 S4: in full screen the captions sit above the sound note while it shows */
#viewer.presenting.has-note #cc-bar { bottom: 148px; }

/* ---------- Web (28): the "best on your laptop" card. Built by web/app/js/web.js; the rules ship in both builds, unused offline ---------- */
#small-screen { display: none; }
html.small-screen body > *:not(#small-screen) { display: none !important; }
html.small-screen #small-screen { display: block; max-width: 640px; margin: 0 auto; padding: 32px 20px; color: var(--ink); background: var(--panel); font-family: var(--font); }
html.small-screen body { background: var(--panel); }
#small-screen .strap { display: inline-block; margin: 0 0 24px; }
#small-screen .ss-title { margin: 0 0 16px; font-size: 28px; font-weight: 500; }
#small-screen .ss-text { margin: 0 0 16px; font-size: 20px; line-height: 1.5; }
#small-screen .ss-addr { font-weight: 500; overflow-wrap: anywhere; }
#small-screen .ss-mail { display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; min-height: 56px; margin: 8px 0 16px; padding: 0 24px; text-decoration: none; }
#small-screen .ss-hint { margin: 0; font-size: 17px; color: var(--ink-2); }

/* ---------- Second screen (34): the video window (body.s2-body) and the card that takes the stage's place on her laptop ---------- */
.scr-row.scr-div { border-top: 1px solid var(--divider); }
body.s2-body { display: block; margin: 0; background: #000000; color: #FFFFFF; }
/* the stage fills its own window; the cursor stays until 3 s after the last move, so [Full screen] can be pressed */
#viewer.on-s2 { cursor: auto; }
#viewer.on-s2.s2-idle { cursor: none; }
#s2-bar {
  position: absolute; top: 12px; left: 50%; z-index: 10001; max-width: 94%; display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; -webkit-flex-wrap: wrap; flex-wrap: wrap;
  -webkit-transform: translateX(-50%); transform: translateX(-50%);
  padding: 10px 16px; background: rgba(0, 0, 0, .9); border: 2px solid #FFFFFF; color: #FFFFFF; font-family: var(--font); font-size: 20px; font-weight: 500; line-height: 1.3;
}
#s2-bar .s2-bar-text { margin: 4px 16px 4px 0; text-align: center; }
#s2-bar .s2-fs {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; min-height: 60px; margin: 4px 0; padding: 0 20px;
  background: transparent; border: 2px solid #FFFFFF; color: #FFFFFF; font: inherit; cursor: pointer;
}
#s2-bar .s2-fs svg { width: 26px; height: 26px; margin-right: 10px; }
#s2-bar .s2-fs:hover, #s2-bar .s2-fs:focus { background: #FFFFFF; color: #000000; }
#s2-bar :focus { outline: 3px solid #FFFFFF; outline-offset: 2px; }
/* her laptop: words only, where the stage was (same height, so the grip still works) */
#s2-card {
  position: relative; width: 100%; height: 285px; height: var(--stage-h, 285px); overflow: hidden; background: #000000; color: #FFFFFF;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center; padding: 12px 24px; text-align: center;
}
#s2-card .s2-title { margin: 0; font-size: 20px; font-weight: 500; color: #FFFFFF; }
#s2-card .s2-status { margin: 6px 0 0; font-size: 17px; color: #BFBFBF; }
#s2-card .s2-extend { margin: 6px 0 0; font-size: 17px; color: #BFBFBF; max-width: 40em; }
#s2-card .s2-actions { margin-top: 12px; }
#s2-card .s2-btn { min-height: 48px; margin: 4px 8px; padding: 0 18px; background: transparent; border: 2px solid #FFFFFF; color: #FFFFFF; font-size: 17px; font-weight: 500; }
#s2-card .s2-btn:hover { background: #FFFFFF; color: #000000; }
#s2-card :focus { outline: 3px solid #FFFFFF; outline-offset: 2px; }

/* ---------- Web (30): playing by YouTube's rules. Nothing sits on the frame: the captions, messages, hint
   are in normal flow under it, and nothing has a z-index over it. The rules ship in both builds and match nothing offline ---------- */
html.web #viewer { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; height: auto; min-height: 285px; min-height: var(--stage-h, 285px); }
html.web #viewer.presenting { height: 100%; min-height: 0; cursor: auto; }
html.web #media { display: none; }
html.web .yt-host { position: relative; left: auto; top: auto; width: 100%; height: auto; -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 200px; min-height: 200px; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
html.web .yt-frame { -webkit-flex: 1 1 auto; flex: 1 1 auto; width: 100%; min-height: 200px; }
/* 40: the credit sits in the band under the ribbon, in flow, and never in full screen (it is outside #viewer) */
html.web .yt-credit { margin: 0; padding: 4px 16px; background: var(--band); color: var(--band-ink-2); font-size: 14px; line-height: 1.4; }
html.web #cc-bar, html.web #msg, html.web #present-hint {
  position: static; z-index: auto; -webkit-transform: none; transform: none; -webkit-flex: none; flex: none; box-sizing: border-box; width: 100%; max-width: none; max-height: none;
}
html.web #cc-bar { overflow: visible; }
/* 47a: while captions are on, the web caption strip keeps room for 2 lines at its own size, so a cue starting, ending or wrapping never moves
   the stage, ribbon or control bar (that shift was the judder). Set once by captions.js (cc-reserve), never per frame. */
html.web #cc-bar.cc-reserve, html.web #cc-bar.cc-reserve:empty { display: block; height: 2.74em; min-height: 2.74em; overflow: hidden; }
html.web #msg { padding: 12px 24px; background: #000000; }
html.web #msg p { margin: 0 0 8px; }
html.web #present-hint { text-align: center; }
html.web #watermark, html.web #audio-card { display: none !important; }
html.web #ribbon-fs { display: none; }
html.web #viewer.presenting #controls { position: static; z-index: auto; opacity: 1; pointer-events: auto; -webkit-flex: none; flex: none; background: transparent; }
html.web #viewer.presenting #sound-note { position: static; z-index: auto; }
/* 62 (and the real reason 58a never showed): the web rule above forced the bar and cursor on for good. They now follow .controls-on, which present.js
   drops after 3 s idle while playing. The bar keeps its place (opacity only), so the film never jumps. */
html.web #viewer.presenting:not(.controls-on), html.web #viewer.presenting:not(.controls-on) .fs-catch { cursor: none; }
/* 62a: the transparent catch layer over YouTube's frame (full screen only; present.js adds and removes it) */
.fs-catch { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 2; background: transparent; }
/* 62c (replaces 62b's slide): in full screen the ribbon, the sound note and the bar sit in ONE panel laid over the bottom of the film (present.js
   moves them in), so the film fills the screen and no row is left behind when the panel hides. Hidden = every part gone at once: no transform,
   so nothing slides over anything. Reduce motion (no .motion) = instant.
   Captions sit just above the panel while it shows (present.js sets --fs-panel-h), near the bottom once it is gone; clicks pass through to the film. */
html.web #viewer.presenting #fs-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: rgba(0, 0, 0, .72); }
html.web #viewer.presenting #fs-panel .ribbon, html.web #viewer.presenting #fs-panel #sound-note { background: transparent; }
/* 65b v2 (Safari, 12 Nov). Chris saw black blocks and slow drawing "in parts". Cause: the bar's own rules hid its buttons at once (visibility,
   no delay) while the panel's black background was still fading, and every child faded on its own, so Safari repainted dozens of pieces over
   the playing film. Now ONE thing hides: the panel. It is its own GPU layer for the whole of full screen (translate3d + will-change), so Safari
   slides and fades one finished picture. Its children never get an opacity, a visibility or a transition of their own: they go with it. */
html.web #viewer.presenting #fs-panel { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); will-change: transform, opacity; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
html.web #viewer.presenting:not(.controls-on) #fs-panel { opacity: 0; visibility: hidden; pointer-events: none; }
/* slide down and dissolve: hiding takes 0.7 s (Chris, 12 Nov: "not so fast"), coming back 0.3 s so a mouse move answers at once; visibility flips
   only after the fade. Reduce motion (no .motion) = instant, no slide */
.motion #viewer.presenting #fs-panel { -webkit-transition: opacity .3s ease-out, -webkit-transform .3s ease-out, visibility 0s; transition: opacity .3s ease-out, transform .3s ease-out, visibility 0s; }
.motion #viewer.presenting:not(.controls-on) #fs-panel { -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); -webkit-transition: opacity .7s ease-in-out, -webkit-transform .7s ease-in-out, visibility 0s linear .7s; transition: opacity .7s ease-in-out, transform .7s ease-in-out, visibility 0s linear .7s; }
/* 65f (Chris, 12 Nov): in full screen only, the chapter name shows top-left for 4 s as each chapter starts, and "Next: Session N – title" shows
   in the last 30 s (chapters.js). Over the film like the 62c panel, under it (5 < 6), never in the caption zone. Its own GPU layer, so Safari
   fades one finished picture. Windowed on the web it stays off (spec 30: nothing on the frame). */
html.web #viewer.presenting #ribbon-fs:not([hidden]) { display: block; z-index: 5; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); will-change: opacity; }
html.web.motion #viewer.presenting #ribbon-fs { -webkit-transition: opacity .5s ease; transition: opacity .5s ease; }
html.web #viewer.presenting #cc-bar { position: absolute; left: 0; bottom: 4%; z-index: 5; pointer-events: none; -webkit-transition: none; transition: none; }
html.web #viewer.presenting.controls-on #cc-bar { bottom: 160px; bottom: calc(var(--fs-panel-h, 152px) + 8px); }
html.web #viewer.presenting .ribbon { -webkit-flex: none; flex: none; }
/* 62c (express CAB amber): over the film the caption is a box round its words, centred, as in the laptop build; between cues it is gone, so no
   empty black strip lies over the film. The 2-line reserve (47a) is for the windowed band only: here the strip floats, so nothing can jump. */
html.web #viewer.presenting #cc-bar, html.web #viewer.presenting #cc-bar.cc-reserve { left: 0; right: 0; margin: 0 auto; width: -webkit-fit-content; width: -moz-fit-content; width: fit-content;
  max-width: 92%; height: auto; min-height: 0; -webkit-transform: none; transform: none; }
html.web #viewer.presenting #cc-bar:empty, html.web #viewer.presenting #cc-bar.cc-reserve:empty { display: none; }
/* the card on her laptop while the video is in its own window (34): on the web #msg sits inside it in normal flow, so a line with buttons must
   make the card grow, never be cut off. The stage height stays its minimum, so the grip still works */
html.web #s2-card { height: auto; min-height: 285px; min-height: var(--stage-h, 285px); overflow: visible; }
html.web #s2-card #msg { -webkit-align-self: stretch; align-self: stretch; margin-top: 12px; }
/* 65h: the update box (web, offline-mode.js), in the top bar in normal flow: no fixed position, no z-index, so it can never sit over YouTube's
   frame (spec 30), and outside #viewer, so full screen never shows it. One line, so the bar never changes height. Busy: the words only (upd-chip).
   Signed out: the amber pair. Not a dialog: nothing is blocked. */
html.web .upd-box { -webkit-flex: 0 1 auto; flex: 0 1 auto; min-width: 0; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  box-sizing: border-box; max-height: 44px; padding: 4px 12px; background: var(--raise); color: var(--ink); border: 2px solid var(--accent); border-radius: 8px;
  font-size: 17px; white-space: nowrap; overflow: hidden; }
html.web .upd-box[hidden] { display: none; }
html.web .upd-title { margin: 0; font-size: 17px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
html.web .upd-bar { -webkit-flex: none; flex: none; width: 120px; height: 10px; margin: 0 0 0 12px; border-radius: 5px; background: var(--track); overflow: hidden; }
html.web .upd-fill { height: 100%; width: 0%; background: var(--ok); }
html.web .upd-note { margin: 0 0 0 12px; font-size: 17px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
html.web .upd-btn { margin: 0 0 0 12px; }
html.web .upd-bar[hidden], html.web .upd-note[hidden], html.web .upd-btn[hidden] { display: none; }
html.web .upd-box.upd-chip { border-color: var(--divider); }
html.web .upd-box.upd-amber { background: var(--st-amber); color: var(--on-st-amber); border-color: var(--st-amber); }
html.web .upd-amber .upd-btn { color: var(--on-st-amber); border-color: var(--on-st-amber); background: transparent; }
/* 65d: a faint VENU PLAYR mark on the empty stage (decorative, aria-hidden, never pressed). Laptop copy: until the opened session first plays.
   Web: only while our own click-to-load card is up, never with YouTube's frame in the stage (spec 30). Never presenting, on screen2 or holding. */
#stage-mark { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: none; pointer-events: none; opacity: .06;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
#stage-mark svg { display: block; width: 40%; height: 40%; }
#viewer #stage-mark { color: #FFFFFF; }   /* on the black stage in every theme */
#viewer.stage-idle #stage-mark { display: -webkit-flex; display: flex; }
html.web #viewer.stage-idle #stage-mark { display: none; }
html.web #viewer.stage-idle:has(.yt-card):not(:has(.yt-frame)) #stage-mark { display: -webkit-flex; display: flex; }
#viewer.presenting #stage-mark, #viewer.on-s2 #stage-mark, #viewer.holding #stage-mark { display: none !important; }
/* the click-to-load card (compliance 5b): our own, never YouTube's thumbnail */
.yt-card { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-height: 200px; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; padding: 16px; text-align: center; background: #000000; color: #FFFFFF; font-family: var(--font); }
.yt-card-title { margin: 0 0 16px; font-size: 20px; font-weight: 500; color: #FFFFFF; }
.yt-card-play { width: 96px; height: 96px; margin: 0 0 16px; padding: 0; border: 0; border-radius: 50%; background: var(--band-accent); color: var(--on-band-accent); font-size: 36px; line-height: 1; cursor: pointer; }
.yt-card-play:focus { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.yt-card-note { margin: 0 0 4px; font-size: 17px; color: #BFBFBF; }
/* 55: the saved badge, left of the session name (web build only: offline-mode.js makes it). 16 px circle; --track is the ring's track, --accent its fill. */
html.web .r-badge { -webkit-flex: none; flex: none; box-sizing: border-box; display: block; width: 16px; height: 16px; margin: 0 8px 0 0; border-radius: 50%; position: relative; }
html.web .r-badge.b-saved { background: #1DB954; background: var(--ok); }
html.web .r-badge.b-saved::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #000000; border-width: 0 2px 2px 0; -webkit-transform: rotate(45deg); transform: rotate(45deg); }
html.web .r-badge.b-saving { background: conic-gradient(var(--accent) var(--pct, 0%), var(--track) 0);
  -webkit-mask: radial-gradient(farthest-side, rgba(0, 0, 0, 0) calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, rgba(0, 0, 0, 0) calc(100% - 3px), #000 calc(100% - 2px)); }
html.web .r-badge.b-queued { border: 2px solid var(--track); opacity: .6; }
html.web .rows li.current .r-badge.b-saving { background: conic-gradient(var(--on-accent) var(--pct, 0%), rgba(255, 255, 255, .35) 0); }
html.web .rows li.current .r-badge.b-queued { border-color: var(--on-accent); }
/* high contrast: the tick and its circle in the theme's --ok, the ring in its --accent */
html.web[data-contrast="high"] .r-badge.b-saved { background: transparent; box-shadow: inset 0 0 0 2px var(--ok); }
html.web[data-contrast="high"] .r-badge.b-saved::after { border-color: var(--ok); }
@-webkit-keyframes badge-in { from { -webkit-transform: scale(.4); transform: scale(.4); } to { -webkit-transform: scale(1); transform: scale(1); } }
@keyframes badge-in { from { transform: scale(.4); } to { transform: scale(1); } }
.motion .r-badge.b-saved { -webkit-animation: badge-in .15s ease-out; animation: badge-in .15s ease-out; }
/* 54: the calm card over the covered YouTube frame (web build). The room window reads no words: black with the course mark. */
/* no z-index (YouTube rule: nothing is laid over its frame): the card sits before the frame in the page and the covered frame is hidden */
html.web .yt-fb { position: absolute; left: 0; top: 0; right: 0; bottom: 0; box-sizing: border-box; }
html.web .yt-fb .yt-card-title { max-width: 32em; line-height: 1.4; }
html.web .yt-fb-room .yt-card-title, html.web .yt-fb-room .yt-card-note { visibility: hidden; }
html.web .yt-fb-mark { max-width: 40%; max-height: 40%; margin-top: 0; }
html.web .yt-fb-mark[hidden] { display: none; }
.home-note { margin: 8px 20px 0; font-size: 17px; color: var(--ink-2); }

/* ---------- Your details (27): the startup card and the Settings form share the fields; the carry code is .carry-* ---------- */
.det-card { text-align: left; }
.det-card .gate-h { margin-bottom: .6rem; }
.det-lead { margin: 0 0 12px; font-size: 17px; color: var(--ink-2); }
.det-check { color: var(--ink); font-weight: 500; border-left: 6px solid var(--accent); padding-left: .6rem; }
.det-field { margin: 0 0 14px; }
.det-label { display: block; margin: 0 0 4px; font-size: 20px; font-weight: 500; }
.det-input { box-sizing: border-box; width: 100%; height: 48px; padding: 8px 12px; font: inherit; font-size: 20px; color: var(--ink); background: var(--bg); border: 2px solid var(--field-edge); }
.det-actions { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; margin: 4px 0 8px; }
.det-actions > * { margin: 0 12px 8px 0; }
.det-link { min-height: 48px; padding: 8px 4px; font-size: 17px; background: transparent; border: 0; color: var(--ink); text-decoration: underline; }
.det-note { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.det-card :focus, .fac-form :focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.carry-buttons { margin: 4px 0 8px; }
.carry-buttons > button { margin: 0 12px 8px 0; }
.carry-box { margin: 8px 0 0; }
.carry-in { box-sizing: border-box; display: block; width: 100%; margin: 0 0 8px; padding: 8px 12px; font: 20px ui-monospace, Menlo, Consolas, monospace; color: var(--ink); background: var(--bg); border: 2px solid var(--field-edge); }
.carry-line { min-height: 1.4em; margin: 8px 0 0; font-size: 17px; font-weight: 500; color: var(--ink); }
.carry-code { margin: 8px 0; font: 24px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; color: var(--ink); }
.carry-row { white-space: pre; }
.carry-status { margin-left: 12px; font-size: 17px; }
.carry-hidden { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }

/* VENU PLAYR logo (D-094, D-106): the lime is gone. Charcoal tile (#1B1E22 to #101215, in the SVG), mark and wordmark #E6E8EA, tagline #A9AFB5,
   edge #343A40. The rules the SVGs carried in a <style> follow the app's own theme: dark is the base, Light is data-theme="light". */
:root { --vp-ink: #E6E8EA; --vp-tag: #A9AFB5; --vp-edge: #343A40; --vp-edge-o: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --vp-ink: #E6E8EA; --vp-tag: #A9AFB5; --vp-edge: #343A40; --vp-edge-o: 1; } }
:root[data-theme="dark"] { --vp-ink: #E6E8EA; --vp-tag: #A9AFB5; --vp-edge: #343A40; --vp-edge-o: 1; }
:root[data-theme="light"] { --vp-ink: #1A1A1A; --vp-tag: #4D4D4D; --vp-edge: #343A40; --vp-edge-o: 0; }
.vp-ink { fill: #E6E8EA; fill: var(--vp-ink); }
.vp-tag { fill: #A9AFB5; fill: var(--vp-tag); }
.vp-edge { stroke: #343A40; stroke: var(--vp-edge); opacity: 1; opacity: var(--vp-edge-o); }
.vp-nav { display: block; height: 32px; overflow: hidden; }
.vp-nav .vp-svg { display: block; height: 32px; width: auto; }
/* under 600 px only the icon shows: the box is as wide as the tile (96 of 556 units), and the word group is hidden */
@media (max-width: 599px) { .vp-nav { width: 32px; } .vp-nav .vp-ink { display: none; } }
/* 52c: shadows only on the dialog and pop-ups (last, so it never sits in front of a panel's own rule) */
.dialog, .scr-menu, .display-panel, .settings-panel { box-shadow: var(--shadow); }
