/* KoinPresent: the shell and screens, after the eleven reference images.
   Warm ivory surfaces, forest-green navigation, muted gold for the main
   action and the selection, sage for healthy, charcoal for production, red
   only for danger and ON AIR. Manrope for headings and figures, Inter for the
   rest (system fonts until they are bundled). */
:root {
  --bg: #f6f3ec; --card: #ffffff; --card-2: #faf8f3; --line: #e7e2d6; --line-2: #efebe2;
  --ink: #142019; --ink-2: #5d6a62; --ink-3: #8b958f;
  --side: #0f3a2b; --side-2: #1a4a38; --side-ink: #e9efe9; --side-ink-2: #a9bcb0;
  --deep: #10261d; --gold: #ebbb55; --gold-2: #f5cd72; --gold-ink: #241a05; --gold-soft: #fbefd2;
  --sage: #2f7d4f; --sage-soft: #e1f2e6; --blue: #2c5ea8; --blue-soft: #e4eefb;
  --red: #c4362b; --red-soft: #fbe6e3; --plum: #6b4fb8; --plum-soft: #efe9fb;
  --charcoal: #171c19; --charcoal-2: #20271f;
  --f-head: 'Manrope', 'Segoe UI', system-ui, sans-serif; --f-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --r: 16px; --r-sm: 11px; --shadow: 0 1px 2px rgba(16, 38, 29, .05), 0 6px 18px rgba(16, 38, 29, .05);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1512; --card: #161d19; --card-2: #1b241f; --line: #28332c; --line-2: #222b25;
  --ink: #e8eee9; --ink-2: #a3b1a8; --ink-3: #7c8a82; --deep: #e8eee9;
  --side: #0b241b; --side-2: #143628; --gold-soft: #3a2e12; --sage-soft: #163222; --blue-soft: #16253b; --red-soft: #3b1714; --plum-soft: #241c3b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); }
h1, h2, h3, b, .kpi b { font-family: var(--f-head); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
i[data-lucide], svg.lucide { width: 18px; height: 18px; flex: 0 0 auto; }
.muted { color: var(--ink-3); } .small { font-size: 13px; } .pad { padding: 14px; }

/* ── the shell ───────────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 4px 6px 16px; }
.logo b { font-size: 22px; letter-spacing: -.01em; }
.logo-img { width: 44px; height: 44px; border-radius: 50%; }
.product { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.04); margin-bottom: 14px; }
.product > i, .product > svg { width: 44px; height: 44px; padding: 10px; border-radius: 11px; background: var(--gold); color: var(--gold-ink); }
.product b { display: block; font-size: 16px; } .product small { color: var(--side-ink-2); }
.nav-group { padding: 6px 0 8px; border-top: 1px solid rgba(255,255,255,.08); }
.nav-group:first-child { border-top: 0; }
.nav-h { margin: 2px 0; padding: 6px 10px; width: 100%; display: flex; align-items: center; justify-content: space-between; border: 0; background: transparent; cursor: pointer; border-radius: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--side-ink-2); }
.nav-h:hover { color: var(--side-ink); background: rgba(255,255,255,.04); }
.nav-h svg { width: 15px; height: 15px; transition: transform .15s; }
.nav-group.folded .nav-h svg { transform: rotate(-90deg); }
.nav-group.folded .nav-items { display: none; }
.nav-a { display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 11px; text-decoration: none; font-weight: 500; color: var(--side-ink); border-left: 3px solid transparent; }
.nav-a:hover { background: rgba(255,255,255,.06); }
.nav-a.on { background: var(--side-2); border-left-color: var(--gold); font-weight: 700; }
.nav-a svg { width: 21px; height: 21px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--card-2); position: sticky; top: 0; z-index: 5; }
.crumb { margin: 0 auto 0 0; color: var(--ink-2); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb b { color: var(--ink); }
.search { display: flex; align-items: center; gap: 8px; width: min(380px, 34vw); border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 8px 12px; }
.search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; }
kbd { font: 600 12px var(--f-body); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink-2); background: var(--card-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.pill.who { cursor: default; }
.pill.power { color: var(--red); border-color: #f2c1bb; background: var(--red-soft); padding: 8px 10px; }
.view { padding: 24px 28px 48px; min-width: 0; outline: 0; }
.loading { padding: 40px 0; }

/* ── heads ───────────────────────────────────────────────────────────── */
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.head-t { display: flex; align-items: center; gap: 18px; }
/* Icon tiles as the other KoinOS workspaces draw them: the page mark in forest
   green and gold, the card icons in a soft green tint. */
.head-ic svg { width: 56px; height: 56px; padding: 14px; border-radius: 14px; background: var(--side); color: var(--gold); }
:root[data-theme="dark"] .head-ic svg { background: #143628; }
.head h1 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.lead { margin: 6px 0 0; color: var(--ink-2); font-size: 17px; }
.head-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── buttons, chips, fields ──────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 11px; padding: 9px 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: #cfc8b8; }
.btn.primary, .btn.gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 700; }
.btn.primary:hover, .btn.gold:hover { background: var(--gold-2); }
.btn.lg { padding: 14px 22px; font-size: 16px; border-radius: 12px; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger-ghost { color: var(--red); border-color: #f0c7c1; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.ic-btn { border: 0; background: transparent; cursor: pointer; padding: 3px 6px; border-radius: 7px; color: var(--ink-2); }
.ic-btn:hover { background: var(--line-2); } .ic-btn.danger { color: var(--red); } .ic-btn:disabled { opacity: .35; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip.st-scheduled { background: var(--blue-soft); color: var(--blue); }
.chip.st-ready, .chip.st-live { background: var(--sage-soft); color: var(--sage); }
.chip.st-archived { background: var(--line-2); color: var(--ink-3); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--gold-soft); color: #8a5d00; }
.tag.church, .tag.utility { background: var(--sage-soft); color: var(--sage); } .tag.conference, .tag.business { background: var(--blue-soft); color: var(--blue); }
.tag.public { background: var(--plum-soft); color: var(--plum); } .tag.scripture { background: var(--gold-soft); color: #8a5d00; } .tag.custom { background: var(--line-2); color: var(--ink-2); }
.f { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.f input, .f select, .f textarea, .filters input, .filters select, select, .toolbar input { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px 11px; font-size: 14px; color: var(--ink); font-weight: 500; }
.f textarea { resize: vertical; font-family: var(--f-body); }
.f input[type="range"] { padding: 0; accent-color: var(--gold); }
.f input[type="color"] { padding: 2px; height: 40px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.stack { display: grid; gap: 14px; } .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--card); padding: 8px 14px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.seg button.on { background: var(--gold); color: var(--gold-ink); }
.notice { padding: 11px 14px; border-radius: 11px; font-size: 14px; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.notice.bad { background: var(--red-soft); color: #8d2018; } .notice.warn { background: #fdf1d9; color: #6b4a00; } .notice.info { background: var(--blue-soft); color: #234a85; } .notice.good { background: var(--sage-soft); color: #205a37; }
.notice .fix { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ── cards and KPIs ──────────────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-h h2, h2.sect { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.card-h a { font-size: 14px; font-weight: 600; color: var(--ink); }
h2.sect { margin: 26px 0 12px; }
.card.empty { text-align: center; padding: 40px 24px; } .card.empty h2 { margin: 0 0 8px; } .card.empty p { color: var(--ink-2); max-width: 560px; margin: 0 auto 16px; }
.card.note { margin-top: 18px; background: var(--card-2); box-shadow: none; } .card.note p { margin: 0; color: var(--ink-2); }
.empty-in { display: flex; gap: 12px; align-items: center; color: var(--ink-2); padding: 18px 6px; } .empty-in svg { width: 28px; height: 28px; color: var(--ink-3); } .empty-in p { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.kpi { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.kpi-ic svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--sage-soft); color: var(--sage); }
:root[data-theme="dark"] .kpi-ic svg { color: #6cc196; }
.kpi-b { min-width: 0; flex: 1; } .kpi p { margin: 0; color: var(--ink-2); font-size: 15px; } .kpi b { display: block; font-size: 28px; line-height: 1.2; } .kpi small { color: var(--ink-3); }
.bar { display: block; height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin: 6px 0; } .bar > span { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.bar.big { height: 12px; }

/* ── Home ────────────────────────────────────────────────────────────── */
.grid-home { display: grid; grid-template-columns: 1.35fr 1.1fr 1fr; gap: 16px; margin-bottom: 16px; }
.svcs { display: grid; gap: 4px; }
.svc { display: grid; grid-template-columns: 58px 96px 1fr auto; gap: 14px; align-items: center; padding: 8px; border-radius: 12px; text-decoration: none; }
.svc:hover, .rdeck:hover { background: var(--card-2); }
.svc-date { text-align: center; background: var(--card-2); border: 1px solid var(--line); border-radius: 11px; padding: 6px 0; }
.svc-date small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); } .svc-date b { font-size: 22px; }
.svc-thumb, .rdeck-thumb, .thumb { display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--line-2); }
.svc-thumb img, .rdeck-thumb img, .thumb img, .deck-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-none { display: grid; place-items: center; height: 100%; color: var(--ink-3); }
.svc-main, .row-main { min-width: 0; display: grid; gap: 2px; }
.svc-main b, .row-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-main small { display: flex; align-items: center; gap: 6px; color: var(--ink-2); flex-wrap: wrap; } .svc-main small svg { width: 15px; height: 15px; }
.sep { width: 10px; }
.rdecks { display: grid; gap: 4px; } .rdeck { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; padding: 6px; border-radius: 12px; text-decoration: none; }
.rdeck small { color: var(--ink-2); }
.quick { display: grid; gap: 8px; }
.quick button { display: flex; gap: 14px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 11px 14px; cursor: pointer; }
.quick button:hover { background: var(--card-2); } .quick button svg { width: 22px; height: 22px; }
.quick button.q-gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.quick b { display: block; } .quick small { color: inherit; opacity: .78; }
.stor { display: flex; align-items: baseline; gap: 6px; margin: 0 0 6px; } .stor b { font-size: 22px; } .stor span { margin-left: auto; font-weight: 700; }
.legend { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; } .legend li { display: flex; align-items: center; gap: 10px; } .legend b { margin-left: auto; font-size: 14px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; } .dot.gold { background: var(--gold); } .dot.green { background: var(--side); }
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .acts li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--sage-soft); color: var(--sage); }

/* ── Presentations ───────────────────────────────────────────────────── */
.tabbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; margin-bottom: 16px; box-shadow: var(--shadow); }
.tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; border-radius: 10px; padding: 9px 14px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.tab:hover { background: var(--card-2); } .tab.on { background: var(--gold-soft); color: var(--ink); border: 1px solid #f0d699; }
.tab.dark.on { background: var(--deep); color: #fff; border-color: var(--deep); }
.tab .n { font-size: 12px; background: var(--line-2); color: var(--ink-2); border-radius: 999px; padding: 1px 8px; }
.tab.dark.on .n { background: rgba(255,255,255,.18); color: #fff; }
.tabbar .spacer { flex: 1; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.with-side { display: grid; grid-template-columns: 250px 1fr; gap: 16px; align-items: start; }
.with-side.three { grid-template-columns: 230px 1fr 330px; }
.side-panel { display: grid; gap: 16px; }
.side-panel .card { padding: 14px; }
.side-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--card); margin-bottom: 12px; }
.side-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; }
.folders { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.folders button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 8px 10px; border-radius: 9px; cursor: pointer; color: var(--ink); text-align: left; }
.folders button:hover { background: var(--card-2); } .folders button.on { background: var(--gold-soft); font-weight: 700; }
.folders .n { margin-left: auto; color: var(--ink-3); font-size: 13px; }
.lbl { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.deck { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.deck-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--line-2); }
.deck-badge { position: absolute; top: 10px; left: 10px; } .deck-badge .chip { box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.deck-badge .chip.st-draft { background: rgba(255,255,255,.9); color: var(--ink); }
.deck-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 7px; }
.deck-menu { position: absolute; top: 8px; right: 8px; }
.deck-menu > button { border: 0; border-radius: 8px; background: rgba(0,0,0,.45); color: #fff; padding: 4px 6px; cursor: pointer; }
.menu { position: absolute; right: 0; top: 34px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.16); padding: 6px; min-width: 170px; z-index: 4; display: grid; }
.menu button { border: 0; background: transparent; text-align: left; padding: 9px 12px; border-radius: 8px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.menu button:hover { background: var(--card-2); } .menu button.danger { color: var(--red); }
.deck-body { padding: 12px 14px 14px; display: grid; gap: 4px; flex: 1; }
.deck-body > a { text-decoration: none; } .deck-body b { font-size: 16px; }
.deck-body small { display: flex; align-items: center; gap: 6px; color: var(--ink-2); } .deck-body small svg { width: 15px; height: 15px; }
.deck-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.sort { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 0 0 0 12px; color: var(--ink-2); font-size: 14px; }
.sort select { border: 0; background: transparent; padding: 8px; font-weight: 600; }
/* Grid or list, as the mockup offers beside the sort. */
.tab-tools { display: flex; align-items: center; margin-left: auto; }
/* Folders: made with +, renamed or removed from their menu, filled by dragging. */
.pop-wrap { position: relative; }
.lbl-row { display: flex; align-items: center; justify-content: space-between; }
.icon-btn { border: 0; background: transparent; color: var(--ink-2); border-radius: 8px; padding: 4px; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--card-2); color: var(--ink); } .icon-btn svg { width: 16px; height: 16px; }
.folders li { display: flex; align-items: center; } .folders li > button:first-child { flex: 1; min-width: 0; }
.folders .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folders .fmenu { opacity: 0; width: auto; flex: none; padding: 6px; }
.folders .fname { flex: 1; min-width: 0; text-align: left; } .folders li:hover .fmenu, .folders .fmenu:focus-visible { opacity: 1; }
.folders .menu { top: 32px; }
.folders button.drop { background: var(--gold-soft); box-shadow: inset 0 0 0 2px var(--gold); }
.dragging .folders button[data-drop] { outline: 1px dashed var(--line); }
[data-drag] { cursor: grab; } [data-drag]:active { cursor: grabbing; }
.head-act .pop-wrap .menu { top: 52px; min-width: 260px; }
.viewtog { display: flex; gap: 4px; margin-left: 8px; }
.viewtog button { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 10px; padding: 7px 9px; cursor: pointer; display: grid; place-items: center; }
.viewtog button.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.side-lbl { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.type-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.type-tags .tag { border: 0; cursor: pointer; font-size: 13px; padding: 5px 12px; display: inline-flex; gap: 8px; }
.type-tags .tag .n { opacity: .75; } .type-tags .tag.on { box-shadow: 0 0 0 2px currentColor; }
.deck-list { padding: 4px 0; }
.deck-row { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto auto auto 36px; gap: 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.deck-row:last-child { border-bottom: 0; }
.deck-row-thumb { display: block; width: 96px; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--card-2); }
.deck-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deck-row-thumb .thumb-none { display: grid; place-items: center; height: 100%; color: var(--ink-3); }
.deck-row-main { text-decoration: none; min-width: 0; } .deck-row-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-row-main small { display: flex; align-items: center; gap: 6px; color: var(--ink-2); flex-wrap: wrap; } .deck-row-main small svg { width: 15px; height: 15px; }
.deck-row .deck-menu { position: relative; top: auto; right: auto; } .deck-row .deck-menu > button { background: transparent; color: var(--ink-2); }
@media (max-width: 860px) { .deck-row { grid-template-columns: 80px minmax(0, 1fr) 36px; } .deck-row-thumb { width: 80px; } .deck-row > .tag, .deck-row > .chip, .deck-row-n { display: none; } }

/* ── Media ───────────────────────────────────────────────────────────── */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .side-search { margin: 0; flex: 1; min-width: 220px; }
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.m-item { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--card); cursor: pointer; text-align: left; padding: 0; display: flex; flex-direction: column; }
.m-item.on { outline: 2.5px solid var(--gold); border-color: var(--gold); }
.m-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.m-item .m-b { padding: 9px 11px 11px; display: grid; gap: 4px; } .m-item small { color: var(--ink-2); font-size: 12.5px; }
.m-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.detail img, .preview-stage { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; display: block; object-fit: cover; }
.detail h3 { margin: 12px 0 4px; font-size: 20px; }
.meta { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 9px; font-size: 14px; }
.meta li { display: grid; grid-template-columns: 22px 92px 1fr; gap: 8px; align-items: center; color: var(--ink-2); } .meta li span:last-child { color: var(--ink); }
.ok-dot { display: inline-flex; align-items: center; gap: 6px; } .ok-dot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }

/* ── Templates ───────────────────────────────────────────────────────── */
.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tpl { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; display: block; }
.tpl.on { outline: 2.5px solid var(--gold); border-color: var(--gold); }
.tpl-stage { aspect-ratio: 16 / 9; position: relative; }
.tpl-body { padding: 10px 12px 12px; display: grid; gap: 6px; } .tpl-body b { font-size: 16px; }
.tp-tabs { display: flex; border-bottom: 1px solid var(--line); margin: 14px 0 12px; }
.tp-tabs button { flex: 1; border: 0; background: transparent; padding: 10px; cursor: pointer; font-weight: 600; color: var(--ink-2); border-bottom: 2.5px solid transparent; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.tp-tabs button.on { color: var(--ink); border-bottom-color: var(--gold); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; } .swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; }
.swatch.on { outline: 3px solid var(--gold); outline-offset: 2px; }
.bg-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bg-strip button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.bg-strip button.on { border-color: var(--gold); } .bg-strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* ── the slide stage (render.js) ─────────────────────────────────────── */
.kp-stage { position: relative; overflow: hidden; background: #0c100e; aspect-ratio: 16 / 9; width: 100%; container-type: inline-size; }
.kp-layer { position: absolute; }
.kp-background { inset: 0; } .kp-background img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kp-overlay { position: absolute; inset: 0; }
.kp-text { width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; word-wrap: break-word; }
.kp-ref { margin-top: .6em; text-transform: uppercase; font-family: var(--f-head); font-weight: 600; opacity: .9; }
.kp-rule { display: block; width: 14%; height: 4px; background: var(--gold); margin: .45em auto 0; border-radius: 2px; }
.kp-hidden { opacity: .25 !important; outline: 1px dashed rgba(255,255,255,.5); }
.kp-missing { background: repeating-linear-gradient(45deg, #2a2f2c 0 14px, #333935 14px 28px); display: grid; place-items: center; }
.kp-missing-note { color: #f3d48a; font: 700 14px var(--f-body); background: rgba(0,0,0,.5); padding: 6px 10px; border-radius: 8px; }
.kp-selected { outline: 2px dashed var(--gold); outline-offset: 4px; }
.ed-canvas .kp-layer:not(.kp-background) { cursor: pointer; }

/* ── the editor ──────────────────────────────────────────────────────── */
.ed-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ed-title { display: grid; margin-right: auto; } .ed-title b { font-size: 22px; } .ed-title small { color: var(--ink-2); }
.save-state { font-size: 13px; font-weight: 600; color: var(--sage); } .save-state.saving { color: var(--ink-2); } .save-state.error { color: var(--red); }
.ed { display: grid; grid-template-columns: 210px minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.ed-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; gap: 10px; max-height: calc(100vh - 170px); overflow: auto; }
.ed-item { border-radius: 11px; padding: 6px; border: 1.5px solid transparent; }
.ed-item.on { border-color: var(--gold); background: var(--gold-soft); }
.ed-thumb { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.ed-n { position: absolute; z-index: 2; top: 4px; left: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.ed-mini { display: block; border-radius: 7px; overflow: hidden; }
.ed-item-foot { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-top: 4px; } .ed-item-foot small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.ed-add { display: grid; gap: 6px; position: sticky; bottom: 0; background: var(--card); padding-top: 6px; }
.ed-canvas-wrap { background: var(--charcoal); border-radius: var(--r); padding: 16px; }
.ed-canvas { border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.ed-layers { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-top: 10px; }
.layer-tog { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; }
.layer-tog input { accent-color: var(--sage); width: 17px; height: 17px; }
.ed-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; max-height: calc(100vh - 170px); overflow: auto; }
.bg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bg-pick { padding: 0; border: 2.5px solid transparent; border-radius: 9px; overflow: hidden; cursor: pointer; background: none; }
.bg-pick.on { border-color: var(--gold); } .bg-pick img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* ── dialogs, toasts, sign-in ────────────────────────────────────────── */
.dlg-back { position: fixed; inset: 0; background: rgba(8, 20, 14, .5); display: grid; place-items: center; padding: 16px; z-index: 50; }
.dlg { background: var(--card); border: 1px solid var(--line); border-radius: 18px; width: min(560px, 100%); padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.3); max-height: calc(100vh - 32px); overflow: auto; }
.dlg.wide { width: min(1000px, 100%); }
.dlg h2 { margin: 0 0 14px; font-size: 21px; } .dlg-body { display: grid; gap: 14px; } .dlg-body p { margin: 0; color: var(--ink-2); }
.dlg-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 18px; } .dlg-foot .muted { margin-right: auto; }
.toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 60; }
.toast { background: var(--deep); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.25); max-width: 420px; font-weight: 600; }
:root[data-theme="dark"] .toast { background: #24342b; }
.toast.bad { background: var(--red); } .toast.info { background: var(--blue); }
.solo { min-height: 100vh; display: grid; place-items: center; padding: 18px; background: radial-gradient(1000px 500px at 50% -10%, #1d5a42, var(--side)); }
.solo-card { width: min(440px, 100%); background: var(--card); border-radius: 20px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.solo-card h1 { margin: 10px 0 4px; font-size: 28px; }
.brand { display: flex; align-items: center; gap: 10px; } .brand b { font-size: 18px; }
.solo-card .btn.primary { width: 100%; min-height: 46px; }

/* ── narrow screens ──────────────────────────────────────────────────── */
@media (max-width: 860px), (max-width: 896px) { .grid-home { grid-template-columns: 1fr 1fr; } .with-side.three { grid-template-columns: 220px 1fr; } .with-side.three > :last-child { grid-column: 1 / -1; } }
@media (max-width: 860px) { .ed { grid-template-columns: 1fr; } .ed-list { max-height: none; grid-auto-flow: column; grid-auto-columns: 170px; overflow-x: auto; } .kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; } .side { position: static; height: auto; }
  .side nav { display: flex; overflow-x: auto; gap: 4px; } .nav-group { display: contents; } .nav-h { display: none; }
  .search { display: none; } .grid-home, .with-side, .with-side.three { grid-template-columns: 1fr; } .kpis { grid-template-columns: 1fr; }
  .view { padding: 16px; } .two { grid-template-columns: 1fr; }
}

/* ── Song Bank ───────────────────────────────────────────────────────── */
.songs-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.song-list { padding: 14px; max-height: calc(100vh - 200px); overflow: auto; }
.song-list .tabs { margin: 10px 0; }
.song-rows { display: grid; gap: 2px; }
.song-row { display: grid; grid-template-columns: 52px 1fr 34px 62px; gap: 10px; align-items: center; border: 0; background: transparent; padding: 6px; border-radius: 11px; cursor: pointer; text-align: left; }
.song-row.head { cursor: default; font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; padding: 4px 6px; }
.song-row:not(.head):hover { background: var(--card-2); } .song-row.on { background: var(--gold-soft); }
.song-thumb { width: 52px; height: 40px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--line-2); color: var(--ink-3); }
.song-thumb img { width: 100%; height: 100%; object-fit: cover; } .song-thumb.lg { width: 96px; height: 72px; border-radius: 11px; }
.key-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--red-soft); color: var(--red); }
.song-edit { padding: 18px; }
.song-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.song-title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.song-title input { border: 0; background: transparent; font: 800 24px var(--f-head); color: var(--ink); padding: 2px 0; border-bottom: 1.5px dashed transparent; }
.song-title input:focus { border-bottom-color: var(--gold); outline: 0; } .song-title small { color: var(--ink-2); }
.star svg { width: 24px; height: 24px; } .star.on svg { color: var(--gold); fill: var(--gold); }
.song-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; margin-bottom: 10px; }
.song-fields .f { grid-template-columns: minmax(0, 1fr); } .song-fields .f > input, .song-fields .f > select { width: 100%; min-width: 0; }
.unit { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.unit input { border: 0 !important; flex: 1; min-width: 0; } .unit em { font-style: normal; padding: 0 10px; color: var(--ink-3); font-weight: 600; font-size: 13px; }
.tags-edit { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 7px; background: var(--card); }
.tags-edit input { border: 0; outline: 0; background: transparent; min-width: 120px; flex: 1; font-size: 14px; }
.tag .x { border: 0; background: none; cursor: pointer; color: inherit; font-weight: 800; padding: 0 0 0 2px; }
.sections { display: grid; gap: 12px; margin: 10px 0 14px; }
.section { border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px; background: var(--card-2); }
.section-h { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.section-h select { font-weight: 700; border-radius: 999px; padding: 4px 10px; border: 0; }
.sec-verse .section-h select { background: var(--sage-soft); color: var(--sage); } .sec-chorus .section-h select { background: var(--blue-soft); color: var(--blue); }
.sec-bridge .section-h select { background: var(--plum-soft); color: var(--plum); } .section-h select { background: var(--gold-soft); color: #8a5d00; }
.section-h input { border: 1px solid transparent; background: transparent; font-weight: 600; padding: 4px 6px; border-radius: 8px; flex: 1; min-width: 80px; }
.section-h input:focus { border-color: var(--line); background: var(--card); }
.sec-act { margin-left: auto; display: flex; gap: 2px; }
.section textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: 15px/1.55 var(--f-body); background: var(--card); color: var(--ink); resize: vertical; }
.song-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.song-foot .muted { margin-right: auto; }
.song-side { display: grid; gap: 16px; }
.pager { display: inline-flex; align-items: center; gap: 4px; }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .qa .btn.gold { grid-column: 1 / -1; }
.all-slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.all-slide { border-radius: 8px; overflow: hidden; }

/* ── Bible ───────────────────────────────────────────────────────────── */
.bible-bar { display: grid; grid-template-columns: 1.3fr .55fr .55fr 1fr 1fr 2fr; gap: 12px; align-items: end; margin-bottom: 14px; }
.bible-search { display: flex; gap: 8px; align-items: center; } .bible-search .side-search { margin: 0; flex: 1; }
.bible-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.verses { max-height: calc(100vh - 240px); overflow: auto; }
.verse-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.verse { display: grid; grid-template-columns: 26px 1fr; gap: 8px; width: 100%; text-align: left; border: 1.5px solid transparent; background: transparent; border-radius: 11px; padding: 9px 10px; cursor: pointer; line-height: 1.45; color: var(--ink); }
.verse:hover { background: var(--card-2); } .verse.on { background: var(--gold-soft); border-color: #efcf86; } .verse.hit .vn { color: var(--blue); }
.vn { font-weight: 800; color: var(--ink-2); font-family: var(--f-head); }
.bible-mid, .bible-right { display: grid; gap: 16px; }
.verse-edit { min-height: 140px; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; font-size: 30px; line-height: 1.35; background: var(--card); outline: 0; margin-top: 10px; }
.verse-edit:focus { border-color: var(--gold); }
.verse-ref { margin: 10px 0 2px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-family: var(--f-head); font-weight: 600; }
.bg-strip.wide { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); max-height: 230px; overflow: auto; }
.bg-strip.wide small { display: block; font-size: 11.5px; color: var(--ink-2); padding: 3px 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.look-row { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1.2fr; gap: 12px; align-items: end; margin-top: 12px; }
@media (max-width: 860px), (max-width: 980px) { .songs-grid, .bible-grid { grid-template-columns: 300px minmax(0, 1fr); } .song-side, .bible-right { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .bible-bar { grid-template-columns: 1fr 1fr 1fr 1fr; } .bible-search { grid-column: 1 / -1; } }
@media (max-width: 860px) { .songs-grid, .bible-grid { grid-template-columns: 1fr; } .song-fields, .look-row { grid-template-columns: 1fr 1fr; } .bible-bar { grid-template-columns: 1fr 1fr; } }

/* ── Live Console (stage 3): a dark operational view, as the mockup draws it ── */
.link { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; font-size: inherit; }
.kp-mark { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-family: var(--f-head); font-weight: 800; text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.kp-count { justify-content: center; text-align: center; color: #fff; font-family: var(--f-head); font-weight: 800; font-variant-numeric: tabular-nums; }
.kp-count-label { font-weight: 600; opacity: .9; }
.kp-source { position: absolute; inset: 0; display: grid; place-items: center; color: #e9efe9; background: rgba(20,28,24,.75); font-family: var(--f-body); font-weight: 600; text-transform: capitalize; }
.kp-layer video, .kp-layer > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; overflow: hidden; }
.pg > div { position: absolute; inset: 0; }
.pg .pg-buf, .pg .pg-src { aspect-ratio: auto; height: 100%; background: transparent; }
.pg .pg-src { z-index: 3; pointer-events: none; }
.pg .pg-src .out-ask { pointer-events: auto; }
.pg .pg-black { background: #000; z-index: 4; opacity: 0; pointer-events: none; }
.pg .pg-idle { z-index: 5; display: grid; place-items: center; color: #8b958f; font: 600 clamp(12px, 2.2vw, 28px) var(--f-body); }
.pg .pg-idle[hidden] { display: none; }
.lc-probe { position: fixed; left: -4000px; top: 0; width: 960px; height: 540px; }

.lc { --lc-bg: #0d1511; --lc-card: #131d18; --lc-line: #24322b; --lc-ink: #e9efe9; --lc-ink-2: #a7b5ac; display: grid; gap: 14px; margin: -24px -28px -48px; padding: 18px 22px 28px; background: var(--lc-bg); color: var(--lc-ink); min-height: calc(100vh - 66px); }
.lc .card { background: var(--lc-card); border-color: var(--lc-line); box-shadow: none; color: var(--lc-ink); padding: 14px 16px; }
.lc .muted { color: var(--lc-ink-2); }
.lc .btn { background: #1b2822; border-color: #2e3e36; color: var(--lc-ink); }
.lc .btn:hover { border-color: #4a5d53; }
.lc .btn.gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.lc .btn.ghost-gold { background: transparent; border-color: #3d5a4a; color: var(--lc-ink); }
.lc .ic-btn { color: var(--lc-ink-2); }
.lc .ic-btn:hover { background: #1f2c26; }
.lc select, .lc textarea, .lc input:not([type="checkbox"]):not([type="range"]) { background: #0f1814; border: 1px solid #2e3e36; color: var(--lc-ink); border-radius: 9px; padding: 7px 9px; font: inherit; font-size: 14px; }
.lc .notice.info { background: #16253b; color: #c6d9f5; }
.lc .notice.warn { background: #3a2e12; color: #f5dd9e; }
.lc-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lc-h h2, .lc-cap { margin: 0; font: 800 13px var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--lc-ink); display: flex; align-items: center; gap: 6px; }
.lc-cap svg { width: 15px; height: 15px; color: var(--lc-ink-2); }
.lc .sp { flex: 1; }
.lc .chip { background: #1f2c26; color: var(--lc-ink-2); }
.lc .chip.st-live { background: #12351f; color: #6fdc8c; }
.lc .chip.st-scheduled { background: #16253b; color: #9fc1f2; }
.lc .chip.dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3ccf63; }
.lc-head { display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: center; background: var(--card) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.lc-head .chip { background: var(--line-2); color: var(--ink-2); }
.lc-head .chip.st-live { background: var(--sage-soft); color: var(--sage); }
.lc-head .chip.st-scheduled { background: var(--blue-soft); color: var(--blue); }
.lc-head .btn { background: var(--card); border-color: var(--line); color: var(--ink); }
.lc-thumb { width: 124px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #0c100e; }
.lc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-t h1 { margin: 0 0 6px; font: 800 28px var(--f-head); letter-spacing: -.01em; }
.lc-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--ink-2); font-size: 15px; }
.lc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lc-meta svg { width: 17px; height: 17px; }
.mode-box { display: flex; align-items: center; gap: 14px; border-radius: 12px; padding: 12px 22px; min-width: 230px; }
.mode-box svg { width: 40px; height: 40px; }
.mode-box b { display: block; font: 800 26px var(--f-head); letter-spacing: .02em; text-transform: uppercase; }
.mode-box small { font: 600 18px var(--f-body); display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.mode-box.air { background: #b3261e; color: #fff; }
.mode-box.air .dot { width: 12px; height: 12px; border-radius: 50%; background: #ff8a80; animation: kp-pulse 1.4s infinite; }
.mode-box.rehearse { background: #f6dd9c; color: #4b3500; }
.mode-box.preview { background: var(--line-2); color: var(--ink-2); }
@keyframes kp-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .mode-box.air .dot { animation: none; } }
.lc-act { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.lc-head .btn.air { background: #b3261e; border-color: #b3261e; color: #fff; }
.lc-head .btn.end { background: #fdeceb; border-color: #f2c2bd; color: #b3261e; }
.lc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 14px; align-items: start; }
.lc-left, .lc-right { display: grid; gap: 14px; min-width: 0; }
.lc-program { border-radius: 10px; overflow: hidden; background: #000; display: flex; justify-content: center; }
/* The picture keeps 16:9 (it is what the room sees) and its height leaves the
   controls on screen at 1080p. */
.lc-169 { width: min(100%, max(480px, calc((100vh - 540px) * 16 / 9))); }
.lc-169:fullscreen { background: #000; display: grid; place-items: center; }
.lc-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.hl-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.hl { display: flex; gap: 10px; align-items: center; min-width: 0; }
.hl + .hl { border-left: 1px solid var(--lc-line); padding-left: 10px; }
.hl-ic svg { width: 28px; height: 28px; color: var(--lc-ink-2); }
.hl b { display: block; font-size: 14px; }
.hl small { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.hl small .dot { width: 9px; height: 9px; border-radius: 50%; }
.hl small.ok { color: #6fdc8c; }
.hl small.ok .dot { background: #3ccf63; }
.hl small.off { color: var(--lc-ink-2); }
.hl small.off .dot { background: #56645c; }
.lc .link { color: #9fc1f2; font-size: 13px; }
.op { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.op b { display: block; }
.op small { color: var(--lc-ink-2); font-size: 13px; }
.op .btn { margin-left: auto; }
.av { width: 40px; height: 40px; border-radius: 50%; background: #e9efe9; color: #142019; display: grid; place-items: center; font-weight: 800; flex: none; }
.lc-layers { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lay-row { display: flex; gap: 8px 22px; flex-wrap: wrap; align-items: center; flex: 1; }
.lay { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 600; font-size: 14px; position: relative; }
.lay + .lay { border-left: 1px solid var(--lc-line); padding-left: 22px; }
.lay svg { width: 20px; height: 20px; }
.lay.absent span { opacity: .6; }
.lay input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lay .sw { width: 38px; height: 22px; border-radius: 999px; background: #3a4740; position: relative; transition: background .15s; }
.lay .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.lay input:checked + .sw { background: #2f9e55; }
.lay input:checked + .sw::after { transform: translateX(16px); }
.lay input:focus-visible + .sw { outline: 2px solid var(--gold); outline-offset: 2px; }
.lay input:disabled + .sw { opacity: .5; }
.qs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qs input[name="ref"] { width: 150px; }
.qs select[name="tr"] { width: 130px; flex: none; }
.qs-out { flex: 1; min-width: 120px; }
.qs-th { width: 96px; border-radius: 6px; overflow: hidden; }
.lc-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 184px; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.pl { position: relative; text-align: left; background: #18241e; border: 2px solid transparent; border-radius: 10px; padding: 8px; color: var(--lc-ink); cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; scroll-snap-align: start; font: inherit; }
.pl:hover { border-color: #3d5a4a; }
.pl:focus-visible { outline: 2px solid var(--gold); }
.pl.on { border-color: var(--gold); background: #1f2a1d; }
.pl.cued { border-style: dashed; border-color: #9fc1f2; }
.pl-n { font-weight: 800; padding-top: 2px; }
.pl-th { border-radius: 6px; overflow: hidden; }
.pl-d { grid-column: 1 / -1; font-size: 12px; color: var(--lc-ink-2); display: flex; justify-content: space-between; margin-top: -2px; }
.pl-d em { font-style: normal; color: #9fc1f2; }
.pl b { grid-column: 1 / -1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl small { grid-column: 1 / -1; font-size: 12.5px; color: var(--lc-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #0f1814; border-radius: 10px; padding: 4px; margin-bottom: 10px; }
.tabs2 button { border: 0; background: transparent; color: var(--lc-ink); padding: 8px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.tabs2 button.on { background: var(--gold); color: var(--gold-ink); }
.cn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cn-pair.next .cn-card:last-child, .cn-pair.current .cn-card:first-child { outline: 2px solid rgba(235,187,85,.55); outline-offset: 3px; border-radius: 8px; }
.cn-card b { display: block; margin-top: 6px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-card small { color: var(--lc-ink-2); font-size: 12.5px; }
.cn-th { border-radius: 8px; overflow: hidden; }
.cn-th.empty { aspect-ratio: 16 / 9; display: grid; place-items: center; background: #0f1814; color: var(--lc-ink-2); font-size: 13px; }
.cn-cue { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.cn-cue span { flex: 1; }
.tt { display: flex; gap: 4px; flex-wrap: wrap; margin: 10px 0 8px; align-items: center; }
.tt button { border: 1px solid #2e3e36; background: #1b2822; color: var(--lc-ink); border-radius: 8px; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; }
.tt button.on { background: #2e3e36; border-color: var(--gold); }
.tt button svg { width: 17px; height: 17px; }
.tt button:disabled { opacity: .45; }
.tt-sep { width: 1px; height: 22px; background: var(--lc-line); margin: 0 4px; }
.lc-text textarea { width: 100%; box-sizing: border-box; font-size: 17px; line-height: 1.45; resize: vertical; }
.tt-count { text-align: right; margin: 4px 0 8px; }
.btn.block { width: 100%; }
.center { text-align: center; }
.cues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.cues button { display: grid; justify-items: center; gap: 3px; padding: 10px 6px; border-radius: 10px; border: 1px solid #2e3e36; background: #1b2822; color: var(--lc-ink); cursor: pointer; font: 600 14px var(--f-body); }
.cues button svg { width: 22px; height: 22px; }
.cues button small { font-size: 11px; font-variant-numeric: tabular-nums; }
.cues button.gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.cues button.on { background: #2e3e36; border-color: var(--gold); }
.cues button.on.warn { background: #4a1d19; border-color: #e0695f; color: #ffd3cf; }
.cues button:disabled { opacity: .45; cursor: not-allowed; }
.cues button:focus-visible { outline: 2px solid var(--gold); }
.fade { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 12px; font-weight: 600; }
.fade input { accent-color: var(--gold); }
.warn-t { color: #f5dd9e; margin: 8px 0 0; }
.lc-src { border-color: rgba(235,187,85,.55) !important; }
.srcs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.srcs button { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border: 1px solid #2e3e36; background: #1b2822; color: var(--lc-ink); border-radius: 9px; cursor: pointer; font: 600 11px var(--f-body); text-align: center; }
.srcs button svg { width: 20px; height: 20px; }
.srcs button:disabled { opacity: .45; }
.src-on { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.src-on li { display: flex; align-items: center; gap: 8px; background: #18241e; border-radius: 8px; padding: 6px 10px; font-size: 13.5px; }
.src-on li svg { width: 16px; height: 16px; }
.src-on li span { flex: 1; }
.src-on .x { border: 0; background: none; color: var(--lc-ink-2); cursor: pointer; font-size: 18px; }
.pick { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pick li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.pick-th { width: 88px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; display: block; background: #0c100e; }
.pick-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .lc-grid { grid-template-columns: 1fr; } .lc-head { grid-template-columns: auto 1fr; } .lc-row { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .lc { margin: -16px; padding: 12px; } .lc-head { grid-template-columns: 1fr; } .hl-row { grid-template-columns: 1fr; } .hl + .hl { border-left: 0; padding-left: 0; } .srcs { grid-template-columns: repeat(4, 1fr); } .pick li { grid-template-columns: 1fr auto; } .pick-th { display: none; } }

/* ── Output windows: the slide and nothing else ─────────────────────── */
html.kp-output-doc, html.kp-output-doc body { margin: 0; background: #000; height: 100%; overflow: hidden; }
body.kp-nocursor, body.kp-nocursor * { cursor: none !important; }
.out { height: 100vh; width: 100vw; display: grid; place-items: center; background: #000; color: #e9efe9; font-family: var(--f-body); }
.out-audience .out-169 { width: min(100vw, calc(100vh * 16 / 9)); }
.out-ask { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 22px; border-radius: 12px; border: 0; background: var(--gold); color: var(--gold-ink); font: 700 16px var(--f-body); cursor: pointer; }
.out-stage, .out-confidence { display: grid; grid-template-rows: auto 1fr auto; place-items: stretch; padding: 2vh 3vw; box-sizing: border-box; gap: 2vh; background: #0b0f0d; }
.st-top { display: flex; gap: 3vw; align-items: baseline; font-size: 3.2vh; color: #a7b5ac; font-variant-numeric: tabular-nums; }
.st-top b { color: #fff; font-size: 5vh; }
.st-top .air { color: #ff6b5f; font-weight: 800; }
.st-top .rehearse { color: #f5cd72; font-weight: 800; }
.st-top [data-timer] { margin-left: auto; }
.st-now { font: 700 7.5vh/1.25 var(--f-head); color: #fff; display: grid; align-content: center; overflow: hidden; }
.st-next { font-size: 4vh; color: #a7b5ac; border-top: 1px solid #24322b; padding-top: 1.5vh; }
.st-next small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: 2.4vh; color: #f5cd72; }
.st-msg { font: 700 4.5vh var(--f-head); background: #b3261e; color: #fff; padding: 1.5vh 2vw; border-radius: 1vh; }
.cf-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2vw; min-height: 0; }
.cf-grid small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: 2.2vh; color: #f5cd72; margin: 0 0 1vh; }
.out-confidence { display: flex; flex-direction: column; } .out-confidence .cf-grid { flex: 1; }
.cf-msg { margin: 0; padding: 1.4vh 2vw; border-radius: 1.2vh; background: #f5cd72; color: #241a05; font: 800 3.6vh/1.25 var(--f-head); text-align: center; }
.cf-notes { font-size: 3vh; line-height: 1.4; color: #e9efe9; white-space: pre-wrap; overflow: auto; margin-top: 1vh; }
.tt select { padding: 5px 6px !important; font-size: 13px !important; }

/* ── Stage 4: shared pieces ─────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr.muted td { color: var(--ink-3); }
.tbl.keys td:first-child { width: 46%; }
kbd { font: 600 12.5px var(--f-body); background: var(--card-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; }
.steps { margin: 6px 0 10px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.tag.ok { background: var(--sage-soft); color: var(--sage); } .tag.bad { background: var(--red-soft); color: var(--red); }
.kp-safe { position: absolute; border: 1.5px dashed rgba(255, 255, 255, .55); border-radius: 4px; pointer-events: none; z-index: 20; }
.out-gone { color: #8b958f; font: 600 18px var(--f-body); text-align: center; padding: 24px; }

/* ── Outputs ─────────────────────────────────────────────────────────── */
.out-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.os { display: flex; gap: 12px; align-items: center; padding: 14px; }
.os-ic svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--sage-soft); color: var(--sage); }
:root[data-theme="dark"] .os-ic svg { color: #6cc196; }
.os b { font-size: 14.5px; } .os small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 3px; } .os .chip { font-size: 11.5px; padding: 2px 8px; }
.out-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.oc { display: grid; gap: 10px; align-content: start; }
.oc-h { display: flex; align-items: center; gap: 10px; } .oc-h h2 { margin: 0; font-size: 18px; font-weight: 800; } .oc-h .sp { flex: 1; }
.oc-prev { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #0c100e; }
.mini-stage { height: 100%; padding: 6%; display: grid; align-content: space-between; background: #0b0f0d; color: #fff; font-family: var(--f-head); }
.mini-stage b { font-size: clamp(13px, 1.5vw, 22px); line-height: 1.3; } .mini-stage small { color: #a7b5ac; font-size: 13px; }
.mini-stage.none { place-items: center; color: #8b958f; font-weight: 600; }
.oc-f { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .oc-f > span { display: grid; } .oc-f small { color: var(--ink-3); font-size: 12px; } .oc-f b { font-size: 14px; } .oc-f .btn { margin-left: auto; } .oc-f .sp { flex: 1; }
.oc-win { aspect-ratio: 16 / 9; border-radius: 10px; background: #1b2620; color: #e9efe9; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; padding: 16px; }
.oc-win svg { width: 40px; height: 40px; } .oc-win small { color: #a7b5ac; max-width: 300px; }
.linkbox { display: flex; gap: 8px; } .linkbox input { flex: 1; min-width: 0; font: 13px ui-monospace, Consolas, monospace; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-2); color: var(--ink); }
.solo-card.rec { max-width: 460px; } .rec-state { font: 700 18px var(--f-head); margin: 16px 0; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); animation: kp-pulse 1.4s infinite; }
@media (max-width: 860px), (max-width: 910px) { .out-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); } .out-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .out-sum, .out-grid { grid-template-columns: 1fr; } }

/* ── Team ────────────────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; margin-bottom: 16px; align-items: start; }
.team-side { display: grid; gap: 16px; }
.team-grid .card-h form { min-width: 240px; }
.who { display: flex; align-items: center; gap: 10px; } .who b { display: block; } .who small { color: var(--ink-3); font-size: 12.5px; }
.av.sm { width: 34px; height: 34px; font-size: 13px; background: var(--gold-soft); color: var(--ink); } .av.sm.on { box-shadow: 0 0 0 2px var(--sage); }
.role-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--line-2); color: var(--ink-2); }
.role-chip.tenant-owner { background: var(--gold-soft); color: #7a5a10; } .role-chip.tenant-admin { background: var(--blue-soft); color: var(--blue); }
.role-chip.present-operator { background: var(--sage-soft); color: var(--sage); } .role-chip.present-editor { background: var(--plum-soft); color: var(--plum); }
.st { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); } .st i { width: 8px; height: 8px; border-radius: 50%; background: #b9c1bc; } .st.on { color: var(--sage); } .st.on i { background: #3ccf63; }
.inv { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.inv li { display: flex; align-items: center; gap: 10px; } .inv li > span:nth-child(2) { flex: 1; min-width: 0; } .inv b { display: block; overflow: hidden; text-overflow: ellipsis; } .inv small { color: var(--ink-3); font-size: 12.5px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; } .rules li { display: flex; gap: 10px; } .rules svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); } .rules b { display: block; font-size: 14px; } .rules small { color: var(--ink-3); font-size: 12.5px; }
.act { list-style: none; margin: 0; padding: 0; } .act li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
fieldset.roles { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; } fieldset.roles legend { font-weight: 700; font-size: 13px; padding: 0 4px; }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; } }

/* ── Settings ────────────────────────────────────────────────────────── */
.set-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.set-grid .card { display: grid; gap: 10px; align-content: start; }
.set-grid .card-h { margin-bottom: 0; }
.set-grid .f select, .set-grid .f input:not([type="color"]) { width: 100%; box-sizing: border-box; }
.bg-prev, .safe-prev { position: relative; border-radius: 10px; overflow: hidden; }
.safe-box { position: absolute; border: 2px dashed rgba(255,255,255,.85); border-radius: 4px; display: grid; place-items: center; }
.safe-box span { background: var(--sage); color: #fff; font: 700 11px var(--f-body); padding: 3px 8px; border-radius: 4px; letter-spacing: .05em; text-transform: uppercase; }
.qa2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tr-credit { margin: 6px 0 0; font-size: 11px; line-height: 1.35; color: var(--ink-3); } .tr-credit:empty { display: none; }
@media (max-width: 860px) { .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .set-grid { grid-template-columns: 1fr; } }

/* ── Media Library uploads ───────────────────────────────────────────── */
.m-item video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #0c100e; }
.m-ic { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--card-2); color: var(--ink-3); } .m-ic svg { width: 36px; height: 36px; }
.m-prev { width: 100%; border-radius: 12px; display: block; background: #0c100e; } video.m-prev { aspect-ratio: 16 / 9; } audio.m-prev { background: none; }
.m-prev.none { aspect-ratio: 16 / 9; display: grid; place-items: center; color: #a7b5ac; font-size: 13px; text-align: center; padding: 12px; }
.m-prev.pic { position: relative; cursor: crosshair; overflow: hidden; } .m-prev.pic img { width: 100%; display: block; }
.focal { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.45); pointer-events: none; }
.view.drop { outline: 3px dashed var(--gold); outline-offset: -10px; }

/* ── Console: the message to the stage ──────────────────────────────── */
.stage-msg { display: flex; gap: 6px; margin-top: 12px; } .stage-msg input { flex: 1; min-width: 0; }

/* ── Stage 5: Ultra Suite ───────────────────────────────────────────── */
.ux { display: grid; gap: 14px; }
.ux-head { display: grid; grid-template-columns: auto 1fr minmax(280px, 380px) auto; gap: 16px; align-items: center; }
.ux-thumb { width: 116px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; display: block; background: #0c100e; } .ux-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ux-t h1 { margin: 0 0 4px; font: 800 32px var(--f-head); letter-spacing: -.01em; } .ux-t .lead { margin: 0; }
.ux-session { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 10px 14px; margin: 0; }
.ux-session b { display: block; } .ux-session small { color: var(--ink-2); font-size: 12.5px; } .ux-session select { grid-column: 1 / -1; width: 100%; }
.dot-st { width: 10px; height: 10px; border-radius: 50%; background: #b9c1bc; } .dot-st.air { background: #3ccf63; } .dot-st.reh { background: #f5cd72; }
[data-air] { display: flex; gap: 10px; align-items: center; }
.ux-air { display: flex; gap: 12px; align-items: center; border-radius: 12px; padding: 10px 18px; min-width: 200px; }
.ux-air svg { width: 34px; height: 34px; } .ux-air b { display: block; font: 800 22px var(--f-head); text-transform: uppercase; } .ux-air small { display: flex; gap: 6px; align-items: center; font: 600 16px var(--f-body); font-variant-numeric: tabular-nums; }
.ux-air.on { background: #b3261e; color: #fff; } .ux-air.on .dot { width: 10px; height: 10px; border-radius: 50%; background: #ff8a80; animation: kp-pulse 1.4s infinite; }
.ux-air.reh { background: #f6dd9c; color: #4b3500; } .ux-air.off { background: var(--line-2); color: var(--ink-2); } .ux-air.off b { font-size: 17px; text-transform: none; }
.btn.end { background: #fdeceb; border-color: #f2c2bd; color: #b3261e; }
.ux-tabs { display: flex; gap: 4px; overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.ux-tabs button { display: inline-flex; gap: 7px; align-items: center; border: 0; background: transparent; padding: 9px 13px; border-radius: 10px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.ux-tabs button svg { width: 17px; height: 17px; } .ux-tabs button:hover { background: var(--card-2); } .ux-tabs button.on { background: var(--gold); color: var(--gold-ink); }
.ux-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.ux-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.card.dk { background: #131d18; border-color: #24322b; color: #e9efe9; }
.ux-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; } .ux-h h2 { margin: 0; font: 800 17px var(--f-head); } .ux-h .sp { flex: 1; } .ux-h svg { width: 20px; height: 20px; }
.card.dk .chip { background: #1f2c26; color: #a7b5ac; } .card.dk .chip.st-live { background: #12351f; color: #6fdc8c; } .card.dk .chip.st-scheduled { background: #16253b; color: #9fc1f2; }
.card.dk .chip.dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3ccf63; } .card.dk small, .card.dk .muted { color: #a7b5ac; }
.ux-mon [data-prev], .ux-mon [data-pgmv] { border-radius: 8px; overflow: hidden; }
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .route li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.route li > span:nth-child(2) { flex: 1; } .route b { display: block; font-size: 14px; } .route small { color: var(--ink-3); font-size: 12.5px; } .route svg { width: 22px; height: 22px; color: var(--ink-2); }
.lay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .lay-list li { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; background: var(--card-2); }
.lay-list li > span:nth-child(3) { flex: 1; min-width: 0; } .lay-list b { display: block; font-size: 14px; } .lay-list small { color: var(--ink-3); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lay-list .n { font-weight: 800; width: 16px; } .lthumb { width: 34px; height: 24px; border-radius: 5px; background: #0f3a2b; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.lay-list.ed li.on { outline: 2px solid var(--gold); } .lay-list.ed .lname { flex: 1; min-width: 0; text-align: left; border: 0; background: none; cursor: pointer; padding: 0; color: inherit; } .lay-list.ed .lo { font-size: 12px; color: var(--ink-3); }
.look-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.lk { border: 2px solid transparent; background: none; padding: 0; border-radius: 10px; cursor: pointer; text-align: center; color: inherit; } .lk.on { border-color: var(--gold); } .lk:disabled { cursor: default; }
.lk-th { display: block; border-radius: 8px; overflow: hidden; } .lk small { display: block; font-weight: 600; font-size: 12.5px; padding: 4px 0; } .lk.big b { display: block; padding: 6px 0; font-size: 14px; }
.ux-side2 { display: grid; gap: 14px; }
.ux-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; margin-bottom: 14px; align-items: start; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.look-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-top: 12px; } .look-form .qa { grid-column: 1 / -1; } .look-form .f select, .look-form .f input:not([type="color"]):not([type="range"]) { width: 100%; box-sizing: border-box; }
[data-lprev] { border-radius: 10px; }
.cue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cue-list li { display: grid; grid-template-columns: 20px 72px minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line-2); }
.cue-list li.on { border-color: var(--gold); background: var(--gold-soft); } .cue-list .n { font-weight: 800; } .cth { border-radius: 6px; overflow: hidden; }
.cue-list .ct b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cue-list .ct small { color: var(--ink-3); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cue-list .dur { width: 64px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; font-variant-numeric: tabular-nums; }
.cue-list .mode { border: 1px solid var(--line); background: var(--card); border-radius: 7px; padding: 4px 10px; font-weight: 700; font-size: 12.5px; cursor: pointer; } .cue-list .mode.auto { background: var(--sage-soft); color: var(--sage); border-color: #b9dcc4; } .cue-list .mode:disabled { cursor: default; }
.cue-list .play svg { width: 18px; height: 18px; }
.auto-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .auto-list li { display: flex; gap: 10px; align-items: center; font-size: 14px; } .auto-list li > span { flex: 1; } .auto-list svg { width: 16px; height: 16px; color: var(--ink-3); }
.sw2 { position: relative; display: inline-block; } .sw2 input { position: absolute; opacity: 0; } .sw2 i { display: block; width: 34px; height: 20px; border-radius: 999px; background: #c9d0cb; position: relative; }
.sw2 i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; } .sw2 input:checked + i { background: #2f9e55; } .sw2 input:checked + i::after { transform: translateX(14px); } .sw2 input:focus-visible + i { outline: 2px solid var(--gold); }
.tbl input, .tbl select { padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--ink); max-width: 100%; }
.obs-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin: 10px 0; }
.bc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.bc-tiles > div { background: var(--card-2); border-radius: 10px; padding: 8px 10px; } .bc-tiles small { display: block; color: var(--ink-3); font-size: 12px; } .bc-tiles b { font-size: 16px; font-variant-numeric: tabular-nums; }
.live-t { color: var(--red); } .h-good { color: var(--sage); } .h-struggling, .h-reconnecting { color: var(--red); } .h-off { color: var(--ink-3); }
.scenes { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; } .scenes button { border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 7px 12px; cursor: pointer; font-weight: 600; } .scenes button.on { background: #b3261e; border-color: #b3261e; color: #fff; }
.pf-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .pf-tiles > div { display: grid; justify-items: center; gap: 2px; background: var(--card-2); border-radius: 10px; padding: 8px; }
.pf-tiles svg { width: 18px; height: 18px; color: var(--ink-2); } .pf-tiles b { font-size: 18px; } .pf-tiles small { color: var(--ink-3); font-size: 12px; }
.pf-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; } .pf-list li { display: grid; grid-template-columns: minmax(140px, 220px) 1fr auto; gap: 10px; padding: 8px 10px; border-radius: 9px; background: var(--card-2); font-size: 14px; }
.pf-list li.bad { background: var(--red-soft); } .pf-list li.warn { background: #fdf1d9; }
.rc { display: flex; gap: 14px; align-items: center; } .rc b { display: block; } .rc small { color: var(--ink-3); font-size: 12.5px; }
.qr { width: 112px; flex: none; background: #fff; border-radius: 8px; padding: 4px; } .qr svg { width: 100%; height: auto; display: block; }
.intg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 10px; } .intg { display: grid; gap: 8px; align-content: start; } .intg .ux-h { margin: 0; }
.rep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .rep-list button { width: 100%; text-align: left; border: 1px solid var(--line-2); background: var(--card); border-radius: 9px; padding: 8px 10px; cursor: pointer; color: inherit; }
.rep-list button.on { border-color: var(--gold); background: var(--gold-soft); } .rep-list b, .rep-list small { display: block; } .rep-list small { color: var(--ink-3); font-size: 12.5px; }
.card.dk .rep-list button { background: #18241e; border-color: #24322b; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .bars li { display: grid; grid-template-columns: minmax(120px, 200px) 1fr 60px; gap: 10px; align-items: center; font-size: 14px; }
.bars i { display: block; height: 12px; border-radius: 6px; background: var(--gold); } .bars b { text-align: right; font-variant-numeric: tabular-nums; }
.home-live { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .home-live li { display: flex; gap: 10px; align-items: center; } .home-live li > span:nth-child(2) { flex: 1; } .home-live b, .home-live small { display: block; } .home-live small { color: var(--ink-3); font-size: 12.5px; }

/* Layer Editor */
.le { display: grid; grid-template-columns: 190px minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.le-sl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 70vh; overflow: auto; }
.le-sl button { width: 100%; display: grid; grid-template-columns: 18px 1fr; gap: 4px 6px; border: 2px solid transparent; background: none; border-radius: 8px; padding: 4px; cursor: pointer; text-align: left; color: inherit; }
.le-sl button.on { border-color: var(--gold); } .le-sl .th { border-radius: 5px; overflow: hidden; } .le-sl small { grid-column: 1 / -1; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.le-canvas { border-radius: 8px; touch-action: none; } .le-canvas .kp-layer:not(.kp-background) { cursor: pointer; }
.le-side { display: grid; gap: 14px; } .add-menu { position: relative; } .add-menu summary { list-style: none; } .add-menu summary::-webkit-details-marker { display: none; }
.add-menu > div { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: grid; min-width: 170px; }
.add-menu > div button { display: flex; gap: 8px; align-items: center; border: 0; background: none; padding: 8px; border-radius: 7px; cursor: pointer; text-align: left; } .add-menu > div button:hover { background: var(--card-2); } .add-menu svg { width: 16px; height: 16px; }
.le-props { display: grid; gap: 8px; } .xywh { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .le-props .f input:not([type="color"]):not([type="range"]), .le-props .f select, .le-props textarea { width: 100%; box-sizing: border-box; }
.bx { position: absolute; z-index: 25; outline: 2px solid var(--gold); background: rgba(235, 187, 85, .08); cursor: move; touch-action: none; }
.bx:focus-visible { outline-width: 3px; } .bx-h { position: absolute; width: 12px; height: 12px; background: #fff; border: 2px solid var(--gold); border-radius: 3px; }
.bx-h.nw { left: -7px; top: -7px; cursor: nwse-resize; } .bx-h.ne { right: -7px; top: -7px; cursor: nesw-resize; } .bx-h.sw { left: -7px; bottom: -7px; cursor: nesw-resize; } .bx-h.se { right: -7px; bottom: -7px; cursor: nwse-resize; }

/* Stage layouts: the builder, the outputs, the console */
.sb { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 14px; align-items: start; }
.sb-canvas { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; touch-action: none; }
.sb-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; } .sb-list button { width: 100%; text-align: left; border: 1px solid var(--line-2); background: var(--card); border-radius: 8px; padding: 6px 9px; cursor: pointer; color: inherit; } .sb-list button.on { border-color: var(--gold); }
.stage-canvas { position: relative; overflow: hidden; }
.st-el { position: absolute; overflow: hidden; font-family: var(--f-head); font-weight: 700; line-height: 1.2; display: flex; flex-direction: column; }
.st-el small { font: 700 .42em var(--f-body); text-transform: uppercase; letter-spacing: .1em; color: #f5cd72; } .st-el .st-body { white-space: pre-wrap; overflow: hidden; }
.st-el.st-clock, .st-el.st-timer, .st-el.st-countdown, .st-el.st-position { font-variant-numeric: tabular-nums; }
.st-el.st-mode.air { color: #ff6b5f !important; } .st-el.st-mode.rehearse { color: #f5cd72 !important; }
.st-el.st-message .st-body { background: #b3261e; color: #fff; border-radius: .25em; padding: .1em .4em; }
.sb-canvas .st-el { outline: 1px dashed rgba(255,255,255,.18); cursor: pointer; }
.out-stage { display: grid; place-items: center; background: #000; padding: 0; } .out-stage .st-169 { width: min(100vw, calc(100vh * 16 / 9)); aspect-ratio: 16 / 9; }
.looks-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; } .looks-row select { width: 100%; }

/* The phone remote */
.rm { max-width: 520px; margin: 0 auto; padding: 14px; display: grid; gap: 12px; font-family: var(--f-body); }
.rm-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .rm-h b { font: 800 18px var(--f-head); }
.rm-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; } .rm-pair small { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; } .rm-169 { border-radius: 8px; overflow: hidden; }
.rm-words { margin: 0; font-weight: 600; min-height: 1.3em; }
.rm-big { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.rm-big button, .rm-row button { display: grid; justify-items: center; gap: 4px; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 22px 8px; font: 700 16px var(--f-body); color: var(--ink); cursor: pointer; }
.rm-big button svg { width: 34px; height: 34px; } .rm-big button.gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.rm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .rm-row button { padding: 14px 6px; font-size: 13px; } .rm-row button.on { background: #4a1d19; border-color: #e0695f; color: #ffd3cf; }
.rm button:disabled { opacity: .45; } .rm-msg { display: flex; gap: 8px; } .rm-msg input { flex: 1; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 860px), (max-width: 910px) { .ux-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .le { grid-template-columns: 160px minmax(0, 1fr); } .le-side { grid-column: 1 / -1; } .sb { grid-template-columns: 1fr; } .intg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ux-head { grid-template-columns: 1fr; } .ux-grid, .ux-two, .le, .intg-grid { grid-template-columns: 1fr; } .obs-form { grid-template-columns: 1fr; } .look-form { grid-template-columns: 1fr; } }
@media print { .side, .top, .ux-tabs, [data-air], .ux-session select, .btn { display: none !important; } }
/* The layer list and its panel stay inside their column, one layer a row. */
.lay-list { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; }
.le-side { grid-template-columns: minmax(0, 1fr); } .le-side > div { min-width: 0; } .lay-list.ed li { gap: 4px; padding: 4px 6px; }
.pill.lang { display: inline-flex; align-items: center; gap: 6px; padding-right: 6px; } .pill.lang svg { width: 17px; height: 17px; } .pill.lang select { border: 0; background: transparent; font: inherit; font-weight: 600; color: inherit; cursor: pointer; padding: 2px; }

/* ── one screen, no page scroll ──────────────────────────────────────────
   On a laptop or wider the app is exactly the window: the sidebar and the
   top bar stay put and each screen fills what is left, its long lists
   scrolling inside their own cards. A narrow window keeps the page flow. */
@media (min-width: 861px) {
  .app { zoom: var(--z, 1); height: calc(100vh / var(--z, 1)); min-height: 0; overflow: hidden; }
  .side { height: calc(100vh / var(--z, 1)); }
  .main { height: calc(100vh / var(--z, 1)); min-height: 0; position: relative; }
  .top { position: relative; flex: none; }
  .view { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; padding: 18px 24px 18px; }
  .view > * { flex: none; }
  .head { margin-bottom: 14px; } .head h1 { font-size: 34px; } .lead { font-size: 15px; margin-top: 4px; }
  .kpis { margin-bottom: 14px; } .kpi { padding: 14px 16px; } .kpi b { font-size: 24px; }
  .card { padding: 16px; } .card-h { margin-bottom: 10px; } .card-h h2, h2.sect { font-size: 18px; }
  /* Home: the two rows of cards share what is left; each card scrolls its own list. */
  .view > .grid-home { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); margin-bottom: 14px; }
  .view > .grid-home.bottom { margin-bottom: 0; }
  .grid-home > .card { min-height: 0; overflow: hidden; }
  .view > .grid-home:not(.bottom) { flex-grow: 1.3; }
  .quick { gap: 6px; } .quick button { padding: 7px 12px; gap: 12px; } .quick button svg { width: 19px; height: 19px; } .quick small { font-size: 12px; }
  /* Outputs: six cards in two rows fill the middle; previews take what is left. */
  .view > .out-sum { margin-bottom: 10px; } .os { padding: 10px 12px; }
  .view > .notice { margin: 0 0 10px; padding: 7px 12px; font-size: 13px; }
  .view > .out-grid { flex: 1 1 0; min-height: 0; margin: 0 0 12px; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .oc { min-height: 0; overflow: hidden; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; padding: 12px 14px; align-content: stretch; }
  .oc-h h2 { font-size: 16px; }
  .oc-prev, .oc-win { aspect-ratio: auto; min-height: 0; height: 100%; }
  .oc-win { padding: 10px; } .oc-win svg { width: 30px; height: 30px; }
  .oc .steps { font-size: 12.5px; gap: 3px; margin: 0; } .oc > p { margin: 0; font-size: 13px; }
  .oc:has(.steps) { grid-template-rows: auto auto auto auto; align-content: start; }
  /* Side-panel screens (Presentations, Media): the columns fill the height. */
  .view > .tabbar { margin-bottom: 12px; padding: 6px; }
  .view > .with-side { flex: 1 1 0; min-height: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); }
  .with-side > * { min-height: 0; }
  .with-side > div:not(.side-panel) { display: flex; flex-direction: column; min-height: 0; }
  .with-side > div > .toolbar { flex: none; margin-bottom: 10px; }
  .with-side > div > .media, .with-side > div > .decks, .with-side > div > .deck-list, .with-side > div > .tpls { flex: 1 1 0; min-height: 0; overflow: hidden; align-content: start; grid-auto-rows: max-content; }
  .media > *, .decks > *, .tpls > * { min-height: max-content; }
  .tpls { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } .tpl-body { padding: 7px 10px 9px; gap: 4px; } .tpl-body b { font-size: 14.5px; }
  .with-side > aside.card { overflow: hidden; min-height: 0; padding: 12px 14px; }
  .side-panel { min-height: 0; overflow: hidden; align-content: start; }
  .detail { overflow: hidden; }
  .media { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .m-item .m-b { padding: 7px 9px 9px; gap: 3px; }
  .detail h3 { margin: 10px 0 2px; font-size: 18px; } .meta { gap: 6px; font-size: 13px; margin-top: 8px; }
  .detail .qa { margin-top: 10px; }
  /* Song Bank: list (paged), the song (its sections scroll, as in the mockup), the side. */
  .view > .songs-grid { flex: 1 1 0; min-height: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); gap: 14px; }
  .song-list { max-height: none; overflow: hidden; display: flex; flex-direction: column; padding: 12px; }
  .song-list .tabs { margin: 8px 0; } .song-list > [data-list] { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  .song-list .song-rows { flex: 1 1 0; min-height: 0; overflow: hidden; align-content: start; grid-auto-rows: max-content; }
  .song-row { padding: 4px 6px; } .song-thumb { width: 46px; height: 34px; }
  .song-edit { padding: 14px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .song-edit > * { flex: none; }
  .song-head { margin-bottom: 10px; } .song-thumb.lg { width: 76px; height: 56px; } .song-title input { font-size: 20px; }
  .song-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
  .song-fields .f, .song-edit > .f { font-size: 12.5px; } .song-fields input, .song-fields select { padding: 6px 8px; }
  .tags-edit { padding: 4px 6px; }
  .song-edit > .sections { flex: 1 1 0; min-height: 0; overflow: hidden; margin: 10px 0 0; gap: 8px; align-content: start; grid-auto-rows: max-content; }
  .song-edit > .fit-pager { padding: 4px 0 6px; }
  .section { padding: 8px 10px; } .section-h { margin-bottom: 6px; } .section textarea { font-size: 14px; padding: 7px 9px; }
  .song-foot { padding-top: 8px; }
  .song-side { min-height: 0; overflow: hidden; gap: 12px; align-content: start; }
  .song-side .card { padding: 12px 14px; } .song-side .qa .btn { padding: 7px 10px; font-size: 13px; }
  /* Bible: verses paged on the left; the editor and the preview fill their columns. */
  .view > .bible-bar { margin-bottom: 12px; padding: 10px 14px; }
  .view > .bible-grid { flex: 1 1 0; min-height: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); gap: 14px; }
  .verses { max-height: none; overflow: hidden; display: flex; flex-direction: column; padding: 12px 14px; }
  .verses > * { flex: none; } .verses .verse-list { flex: 1 1 0; min-height: 0; overflow: hidden; align-content: start; grid-auto-rows: max-content; margin-top: 6px; }
  .verse { padding: 5px 6px; font-size: 14px; }
  .bible-mid, .bible-right { min-height: 0; overflow: hidden; gap: 12px; grid-template-rows: minmax(0, 1fr) auto; }
  [data-edit] { display: flex; flex-direction: column; } [data-edit] > * { flex: none; }
  [data-edit] > .verse-edit { flex: 1 1 0; min-height: 48px; overflow: auto; }
  .look-row { margin-top: 8px; gap: 10px; }
  .bible-right { grid-template-rows: none; align-content: start; }
  .bible-mid > .card, .bible-right > .card { padding: 12px 14px; min-height: 0; overflow: hidden; }
  .verse-edit { min-height: 0; padding: 8px 12px; font-size: 19px; }
  .bg-strip.wide { max-height: none; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); grid-auto-rows: max-content; }
  [data-look] { display: flex; flex-direction: column; } [data-look] > * { flex: none; }
  [data-look] > .bg-strip.wide { flex: none; height: 84px; overflow: hidden; }
  [data-look] > .fit-pager { padding-top: 4px; }
  .acts { gap: 6px; } .acts li { grid-template-columns: 34px 1fr auto; } .acts .av { width: 32px; height: 32px; font-size: 12px; }
}
/* The next screen is drawn underneath, invisibly, until it is ready. */
.view.incoming { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; pointer-events: none; z-index: -1; }
.view.busy { opacity: .55; transition: opacity .2s; pointer-events: none; }
.out-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.out-bar-t { flex: 1; min-width: 0; display: grid; } .out-bar-t small { color: var(--ink-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links-dlg { max-height: 60vh; overflow: auto; }
[hidden] { display: none !important; }
/* ‹ 1 of 3 ›: a list shown a page at a time. */
.fit-pager { flex: none; display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 10px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.fit-pager button { border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 5px 8px; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.fit-pager button:disabled { opacity: .4; cursor: default; } .fit-pager svg { width: 16px; height: 16px; }
/* A one-row picker, paged like the mockups' arrows. */
.bg-strip.one-row { height: 50px; overflow: hidden; grid-auto-rows: max-content; }
@media (min-width: 861px) {
  .with-side > aside.card > p.muted.small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 6px !important; }
  .with-side > aside.card .btn { white-space: nowrap; }
  .with-side > aside.card .preview-stage { max-height: 34vh; }
}
/* Ultra Suite: one-line head, slim tabs, and the dashboard in three rows that fill the window. */
@media (min-width: 861px) {
  .view > .ux { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
  .ux > * { flex: none; }
  .ux-head { grid-template-columns: auto minmax(0, 1fr) minmax(240px, 340px) auto; gap: 14px; }
  .ux-thumb { width: 84px; } .ux-t h1 { font-size: 26px; white-space: nowrap; } .ux-t .lead { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ux-session { padding: 7px 12px; } .ux-air { padding: 7px 14px; min-width: 0; } .ux-air svg { width: 26px; height: 26px; } [data-air] { display: flex; gap: 10px; align-items: center; }
  .ux-tabs { scrollbar-width: none; padding: 4px; } .ux-tabs::-webkit-scrollbar { display: none; }
  .ux-tabs button { padding: 7px 10px; font-size: 13.5px; gap: 6px; } .ux-tabs button svg { width: 15px; height: 15px; }
  .ux > [data-pane] { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  .ux-grid { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1.3fr) minmax(0, .75fr) minmax(0, 1.1fr); align-items: stretch; gap: 12px; }
  .ux-grid > .card { min-height: 0; overflow: hidden; padding: 10px 12px; display: flex; flex-direction: column; }
  .ux-grid > .card > * { flex: none; }
  .ux-grid .ux-h { margin-bottom: 6px; } .ux-grid .ux-h h2 { font-size: 15px; }
  .ux-mon > [data-prev], .ux-mon > [data-pgmv] { flex: 1 1 0; min-height: 0; display: flex; justify-content: center; }
  .ux-mon .pg { height: 100%; width: auto; max-width: 100%; }
  .ux-grid [data-cues] { } .ux-grid [data-cues] > .cue-list { flex: 1 1 0; min-height: 0; overflow: hidden; grid-auto-rows: max-content; align-content: start; gap: 4px; }
  .ux-grid .cue-list li { padding: 3px 6px; grid-template-columns: 18px 56px minmax(0, 1fr) auto auto auto; }
  .ux-grid .route { gap: 2px; } .ux-grid .route li { padding: 3px 0; }
  .ux-grid .look-strip { grid-auto-columns: 96px; }
  .ux-side2 { gap: 10px; }
}
@media (min-width: 861px) {
  .ux-side2 p.muted, .ux-grid > .card > p.muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 6px; }
}
/* Team: members and the side column, then activity and the live-control rules, all in one window. */
@media (min-width: 861px) {
  .view > .team-grid { flex: 1 1 0; min-height: 0; margin-bottom: 0; align-items: stretch; grid-template-rows: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; }
  .team-grid > .card, .team-side { min-height: 0; overflow: hidden; }
  .team-grid > .card { display: flex; flex-direction: column; padding: 12px 14px; } .team-grid > .card > * { flex: none; }
  .team-side { grid-template-rows: auto minmax(0, 1fr); gap: 14px; } .team-side > .card { min-height: 0; overflow: hidden; padding: 12px 14px; }
  .tbl-fit { flex: 1 1 0 !important; min-height: 0; overflow: hidden; }
  .tbl-fit .tbl td, .tbl-fit .tbl th { padding-top: 5px; padding-bottom: 5px; }
  .team-act > [data-act] { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  .team-act .act { flex: 1 1 0; min-height: 0; overflow: hidden; } .act li { padding: 6px 0; font-size: 14px; }
  .rules { gap: 8px; } .rules small { font-size: 12.5px; }
  .inv { gap: 6px; }
}
@media (min-width: 861px) {
  .team-rules .rules li > span { min-width: 0; } .team-rules .rules b, .team-rules .rules small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .team-rules .rules b { font-size: 13.5px; } .team-rules .rules svg { width: 17px; height: 17px; }
}
/* Settings: four columns, two rows, labels beside their controls as in the mockup. */
@media (min-width: 861px) {
  .view > .set-grid { flex: 1 1 0; min-height: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
  .set-grid .card { min-height: 0; overflow: hidden; padding: 12px 14px; gap: 7px; }
  .set-grid .card:last-child { grid-column: span 2; }
  .set-grid .card-h h2 { font-size: 16px; }
  .set-grid .f { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 8px; font-size: 12.5px; }
  .set-grid .f select, .set-grid .f input:not([type="color"]) { padding: 6px 8px; font-size: 13px; }
  .set-grid .f input[type="color"] { height: 30px; }
  .set-grid p.muted.small { margin: 0; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .set-grid .bg-prev, .set-grid .safe-prev { height: 92px; width: auto; aspect-ratio: 16 / 9; align-self: center; justify-self: center; }
  .set-grid .chk { font-size: 13px; }
  .set-grid .keys tbody { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .set-grid .keys tr { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line-2); } .set-grid .keys td { padding: 5px 0; border: 0; font-size: 13px; }
}
/* The slide editor: the list pages, the canvas takes the middle, the inspector fits its tab. */
@media (min-width: 861px) {
  .view > .ed-bar { margin-bottom: 10px; }
  .view > .ed { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; gap: 14px; }
  .ed-list { max-height: none; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 8px; }
  .ed-list > [data-list] { flex: 1 1 0; min-height: 0; overflow: hidden; display: grid; gap: 6px; align-content: start; grid-auto-rows: max-content; }
  .ed-list > .fit-pager { padding-top: 0; } .ed-add { position: static; flex: none; padding-top: 0; }
  .ed-item { padding: 4px; } .ed-item-foot { margin-top: 2px; }
  .ed-center { min-height: 0; overflow: hidden; }
  .ed-side { max-height: none; overflow: hidden; display: flex; flex-direction: column; padding: 8px; }
  .ed-side > [data-panel] { flex: 1 1 0; min-height: 0; overflow: hidden; }
  .ed-side .stack { gap: 6px; padding: 8px 4px; } .ed-side .f { gap: 3px; font-size: 12px; }
  .ed-side .f input:not([type="range"]):not([type="color"]), .ed-side .f select, .ed-side textarea { padding: 5px 8px; font-size: 13px; }
  .ed-side .f input[type="color"] { height: 30px; } .ed-side textarea { min-height: 0; }
  .ed-side .seg button { padding: 5px 8px; }
}
@media (min-width: 861px) {
  .ed-side .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; } .ed-side .f select, .ed-side .f input { width: 100%; min-width: 0; box-sizing: border-box; }
}
@media (min-width: 861px) {
  .grid-home > .card { display: flex; flex-direction: column; } .grid-home > .card > * { flex: none; }
  .grid-home > .card > .acts, .grid-home > .card > .svcs, .grid-home > .card > .rdecks { flex: 1 1 0; min-height: 0; overflow: hidden; align-content: start; grid-auto-rows: max-content; }
  .grid-home > .card > .fit-pager { padding-top: 4px; }
  .side-panel { display: flex; flex-direction: column; gap: 12px; } .side-panel > .card { flex: none; }
  .side-panel > .card:has(.m-tags) { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  .side-panel > .card > .m-tags { flex: 1 1 0; min-height: 0; overflow: hidden; align-content: flex-start; }
}
@media (min-width: 861px) {
  .ed-side [data-panel] > .stack { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; } .ed-side [data-panel] > .stack > * { flex: none; }
  .ed-side [data-panel] .bg-grid { flex: 1 1 0; min-height: 0; overflow: hidden; align-content: start; grid-auto-rows: max-content; }
}
@media (min-width: 861px) {
  .bible-right .qa { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .bible-right .qa .btn { flex-direction: column; gap: 3px; padding: 6px 4px; font-size: 11.5px; line-height: 1.2; white-space: normal; text-align: center; grid-column: auto; }
  .bible-right .qa .btn svg { width: 16px; height: 16px; }
  .bible-right > .card > p.muted { margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .bible-right .card-h { margin-bottom: 6px; }
}
@media (min-width: 861px) {
  .bible-right { gap: 10px; } .bible-right > .card { padding: 9px 12px; }
  .bible-right > .card > p.muted { -webkit-line-clamp: 1; font-size: 12px; }
  .bible-right .notice { padding: 6px 9px; font-size: 12px; margin: 6px 0 0; gap: 4px 8px; } .bible-right .notice .btn { padding: 3px 8px; font-size: 12px; }
  .bible-right .card-h h2 { font-size: 15px; }
}
@media (min-width: 861px) {
  .ux-grid { grid-template-rows: minmax(0, 1.25fr) minmax(0, .6fr) minmax(0, 1.25fr); }
  .ux-side2 .qr { width: 64px; padding: 3px; } .ux-side2 .ux-h { margin-bottom: 4px; }
  .ux-grid .route li { padding: 2px 0; } .ux-grid .route svg { width: 18px; height: 18px; } .ux-grid .route b { font-size: 13px; } .ux-grid .route small { font-size: 11.5px; }
}
@media (min-width: 861px) {
  .ux > [data-pane] > .ux-two { flex: 1 1 0; min-height: 0; margin-bottom: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .ux-two > .card { min-height: 0; overflow: hidden; }
  .ux-two > .card:has(> .look-form) { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 10px 14px; align-content: start; }
  .ux-two > .card:has(> .look-form) > .ux-h { grid-column: 1 / -1; margin-bottom: 0; }
  .ux-two > .card:has(> .look-form) > [data-lprev] { align-self: start; }
  .ux-two .look-form { margin-top: 0; grid-template-columns: 1fr; gap: 6px; align-content: start; }
  .ux-two .look-form .f { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 8px; font-size: 12.5px; }
  .ux-two .look-form .f input:not([type="color"]):not([type="range"]), .ux-two .look-form .f select { padding: 5px 8px; font-size: 13px; width: 100%; box-sizing: border-box; }
  .ux-grid [data-looks] .look-strip { grid-auto-columns: 88px; }
}
@media (min-width: 861px) {
  .ux-two .look-form { grid-template-columns: 1fr 1fr; } .ux-two .look-form > .f, .ux-two .look-form > .qa, .ux-two .look-form > p, .ux-two .look-form > div { grid-column: 1 / -1; }
  .ux-two .look-form .chk { font-size: 12.5px; }
}
@media (min-width: 861px) {
  .ux-two .look-form .f { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); font-size: 12px; line-height: 1.2; }
  .ux-two .look-form { gap: 5px 10px; }
  .ux > [data-pane] > .card { flex: none; padding: 8px 14px; margin-top: 10px; } .ux > [data-pane] > .card .ux-h { margin-bottom: 2px; }
  .ux > [data-pane] > .card > p.muted { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 861px) {
  .ux-two .look-form .f input:not([type="color"]):not([type="range"]), .ux-two .look-form .f select { padding: 3px 7px; }
  .ux-two .look-form .f input[type="color"] { height: 24px; } .ux-two .look-form .qa .btn { padding: 5px 10px; }
  .ux-grid [data-looks] .look-strip { grid-auto-columns: 76px; padding-bottom: 0; } .ux-grid [data-looks] .look-strip b, .ux-grid [data-looks] .look-strip small { font-size: 11.5px; }
}
/* The Live Console: the program picture takes what is left; every other panel is compact, as in the mockup. */
@media (min-width: 861px) {
  .view > .lc { flex: 1 1 0; min-height: 0; margin: -18px -24px -18px; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
  .lc > * { flex: none; } .lc > .lc-grid { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; gap: 10px; grid-template-columns: minmax(0, 1fr) 380px; }
  .lc .card { padding: 9px 12px; } .lc-h { margin-bottom: 6px; } .lc-h h2, .lc-cap { font-size: 12px; }
  .lc-head { gap: 14px; padding: 8px 14px !important; } .lc-thumb { width: 92px; } .lc-t h1 { font-size: 22px; margin-bottom: 2px; } .lc-meta { font-size: 13px; gap: 4px 14px; }
  .lc-left, .lc-right { min-height: 0; display: flex; flex-direction: column; gap: 10px; } .lc-left > *, .lc-right > * { flex: none; }
  .lc-left > .lc-out { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; } .lc-out > * { flex: none; }
  .lc-out > .lc-program { flex: 1 1 0; min-height: 0; }
  .lc-169 { width: auto; height: 100%; aspect-ratio: 16 / 9; max-width: 100%; }
  .lc-row { gap: 10px; } .hl-ic svg { width: 22px; height: 22px; }
  .lc-strip { grid-auto-columns: 150px; gap: 8px; padding-bottom: 0; }
  .pl { padding: 6px; } .pl small { font-size: 11.5px; }
  .lc-right > .lc-text textarea { font-size: 14px; line-height: 1.35; resize: none; }
  .tt button { width: 28px; height: 28px; }
  .cues { gap: 6px; } .cues button { padding: 6px 4px; font-size: 12.5px; gap: 2px; } .cues button svg { width: 18px; height: 18px; }
  .srcs { gap: 5px; } .srcs button { padding: 5px 2px; font-size: 10.5px; } .srcs button svg { width: 17px; height: 17px; }
}
@media (min-width: 861px) {
  .lc .tabs2 { margin-bottom: 6px; padding: 3px; } .lc .tabs2 button { padding: 4px; font-size: 13px; }
  .lc .cn-pair { gap: 8px; } .lc .cn-card b { margin-top: 3px; font-size: 12.5px; } .lc .cn-card small { font-size: 11px; }
  .lc .tt { flex-wrap: nowrap; margin: 6px 0 5px; gap: 3px; } .lc .tt button { width: 26px; height: 26px; } .lc .tt button svg { width: 15px; height: 15px; } .lc .tt-sep { margin: 0 2px; }
  .lc .tt select { padding: 3px 4px !important; font-size: 12px !important; min-width: 0; }
  .lc .tt-count { margin: 2px 0 5px; font-size: 11.5px; }
  .lc .btn.block { padding: 6px 10px; }
  .lc .fade { margin-top: 6px; gap: 8px; font-size: 13px; } .lc .fade select { padding: 3px 6px; }
  .lc .looks-row { margin-top: 6px; } .lc .looks-row .f { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; font-size: 12px; } .lc .looks-row select { padding: 3px 6px; font-size: 12.5px; }
  .lc [data-auto] { margin: 4px 0 0; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lc [data-auto]:empty { display: none; }
  .lc .stage-msg { margin-top: 6px; } .lc .stage-msg input { padding: 4px 8px; } .lc .stage-msg .btn { padding: 4px 10px; }
  .lc .srcs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .lc .lc-health, .lc .lc-op { padding: 8px 12px; }
}
@media (min-width: 861px) {
  .lc .cues { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; } .lc .cues button { font-size: 11px; padding: 5px 2px; line-height: 1.1; } .lc .cues button svg { width: 16px; height: 16px; }
  .lc .lc-cap { margin-bottom: 4px; } .lc .srcs button { padding: 4px 1px; line-height: 1.1; }
  .lc .cn-card small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lc .lc-cn .cn-th { max-height: 84px; } .lc .lc-cn .cn-th > * { max-height: 84px; }
}
@media (min-width: 861px) {
  .view { overflow-x: hidden; }
  .lc .mode-box { padding: 6px 14px; gap: 10px; } .lc .mode-box b { font-size: 18px; } .lc .mode-box small { font-size: 12px; } .lc .mode-box svg { width: 24px; height: 24px; }
  .lc .lc-act .btn { padding: 7px 12px; }
  .lc .lc-strip { scrollbar-width: thin; }
  .lc .lc-quick { padding: 6px 12px; } .lc .lc-layers { padding: 6px 12px; }
}
/* On a phone the menu is one row: no groups to fold. */
@media (max-width: 860px) { .nav-items, .nav-group.folded .nav-items { display: contents; } }
/* Live Console: a hairline scrollbar under the playlist, smaller Current and
   Next pictures, and the Live Text box takes the room they leave. */
.lc .lc-strip { scrollbar-width: thin; scrollbar-color: #3d5a4a transparent; }
.lc .lc-strip::-webkit-scrollbar { height: 4px; } .lc .lc-strip::-webkit-scrollbar-thumb { background: #3d5a4a; border-radius: 4px; } .lc .lc-strip::-webkit-scrollbar-track { background: transparent; }
@media (min-width: 861px) {
  .lc .lc-cn .cn-pair { grid-template-columns: 1fr 1fr; }
  .lc .lc-cn .cn-th, .lc .lc-cn .cn-th > * { max-height: 58px; }
  .lc .lc-cn .cn-th { aspect-ratio: 16 / 9; height: 58px; width: auto; max-width: 100%; }
  .lc .lc-cn .cn-card b { font-size: 12px; } .lc .lc-cn .cn-card small { display: none; }
  .lc-right > .lc-text { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; } .lc-right > .lc-text > * { flex: none; }
  .lc-right > .lc-text textarea { flex: 1 1 0; min-height: 70px; font-size: 15px; }
}
/* Home: the three columns at 3 : 2.2 : 1.7, a smaller date tile, two lines per service. */
.grid-home { grid-template-columns: 3fr 2.2fr 1.7fr; }
.svc { grid-template-columns: 44px 84px minmax(0, 1fr) auto; gap: 10px; padding: 6px; }
.svc-date { padding: 3px 0; border-radius: 9px; } .svc-date small { font-size: 10.5px; } .svc-date b { font-size: 17px; line-height: 1.1; }
.svc-main small { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.svc-main small > * { flex: none; }
/* Presentations: four cards a row beside the folders, the mockup's text order. */
@media (min-width: 861px) {
  .with-side > div > .decks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .deck-body { padding: 8px 10px 10px; gap: 3px; } .deck-body b { font-size: 14.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .deck-body small { font-size: 12.5px; white-space: nowrap; overflow: hidden; } .deck-foot { margin-top: 4px; } .deck-foot small { font-size: 11.5px; }
}
.deck-body small .bar { width: 1px; height: 12px; background: var(--line); margin: 0 6px; flex: none; }
.deck-foot { gap: 8px; } .deck-foot small.muted { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.deck-foot .deck-present { flex: none; padding: 3px; } .deck-foot .deck-present svg { width: 18px; height: 18px; }
/* Presentations: a smaller type in the folders panel, as in the mockup. */
@media (min-width: 861px) {
  .side-panel .folders button { font-size: 13px; padding: 6px 8px; gap: 8px; } .side-panel .folders button svg { width: 16px; height: 16px; }
  .side-panel .folders .n { font-size: 12px; }
  .side-panel .side-search input { font-size: 13px; } .side-panel .lbl { font-size: 11px; }
  .side-panel .type-tags .tag { font-size: 12px; padding: 4px 10px; }
  .side-panel p.muted.small { font-size: 12px; }
}
/* Folder counts line up on the right; the folder menu sits over the count on hover instead of pushing it left. */
.folders li { position: relative; }
.folders .n { margin-left: auto; min-width: 2.2em; text-align: right; font-variant-numeric: tabular-nums; }
.folders .fmenu { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); background: var(--card); }
.folders li:hover .fmenu, .folders .fmenu:focus-visible { background: var(--card-2); }
.folders li:has(.fmenu:hover) .n, .folders li:hover > button:first-child .n { visibility: hidden; }
/* Live Text: a second row of style tools, and the safe area editor over the picture. */
.lc .tt2 { margin-top: 0; }
.lc .tt-col { width: 28px; height: 26px; border: 1px solid #2e3e36; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #1b2822; cursor: pointer; }
.lc .tt-col input { width: 36px; height: 36px; border: 0; padding: 0; background: none; cursor: pointer; }
.lc .tt .sw { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); border: 1px solid #3d5a4a; padding: 0; }
.lc .tt .sw.on { box-shadow: 0 0 0 2px var(--gold); }
.lc .tt select[data-panel] { max-width: 92px; } .lc .tt select[data-lh] { max-width: 56px; }
.lc .ic-btn.on { color: var(--gold); }
.lc-169 { position: relative; }
.safe-edit { position: absolute; z-index: 8; border: 2px dashed rgba(235,187,85,.95); box-shadow: 0 0 0 9999px rgba(0,0,0,.28); pointer-events: none; }
.safe-edit .sh { position: absolute; pointer-events: auto; background: var(--gold); border-radius: 4px; }
.safe-edit .sh:focus-visible { outline: 2px solid #fff; }
.safe-edit .sh-top, .safe-edit .sh-bottom { left: 50%; width: 42px; height: 8px; margin-left: -21px; cursor: ns-resize; }
.safe-edit .sh-top { top: -5px; } .safe-edit .sh-bottom { bottom: -5px; }
.safe-edit .sh-left, .safe-edit .sh-right { top: 50%; width: 8px; height: 42px; margin-top: -21px; cursor: ew-resize; }
.safe-edit .sh-left { left: -5px; } .safe-edit .sh-right { right: -5px; }
.safe-edit .safe-tag { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.safe-edit .safe-act { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 6px; pointer-events: auto; }
.safe-edit .safe-act .btn { padding: 3px 9px; font-size: 12px; }
/* The shared text tools: alignment and colour, each one button with a dropdown. */
.dd { display: inline-flex; position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; cursor: pointer; }
.dd-btn svg { width: 17px; height: 17px; } .dd-btn svg:last-child { width: 12px; height: 12px; opacity: .7; }
.dd-btn[aria-expanded="true"] { border-color: var(--gold); }
.dd-btn:disabled { opacity: .45; cursor: default; }
.dd-a { display: inline-grid; justify-items: center; font: 800 15px var(--f-head); line-height: 1; padding: 0 2px; }
.dd-a i { display: block; width: 16px; height: 4px; border-radius: 2px; margin-top: 2px; border: 1px solid rgba(0,0,0,.25); }
.lc .dd-btn { background: #1b2822; border-color: #2e3e36; color: var(--lc-ink); height: 26px; }
.dd-pop { position: fixed; z-index: 60; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.22); padding: 8px; display: grid; gap: 6px; }
.dd-pop[hidden] { display: none; }
.dd .dd-pop:not([hidden]) { position: absolute; top: calc(100% + 4px); left: 0; }
.dd-row { display: flex; gap: 4px; } .dd-row + .dd-row { border-top: 1px solid var(--line-2); padding-top: 6px; }
.dd-row button { width: 34px; height: 30px; display: grid; place-items: center; border: 1px solid transparent; background: transparent; border-radius: 8px; cursor: pointer; color: var(--ink); }
.dd-row button:hover { background: var(--card-2); } .dd-row button.on { background: var(--gold-soft); border-color: var(--gold); }
.dd-row button svg { width: 18px; height: 18px; }
.dd-sw { display: grid; grid-template-columns: repeat(5, 24px); gap: 6px; }
.dd-sw button { width: 24px; height: 24px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(0,0,0,.2); cursor: pointer; padding: 0; }
.dd-sw button.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--gold); }
.dd-custom { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); border-top: 1px solid var(--line-2); padding-top: 6px; }
.dd-custom input { width: 34px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }
.dd-more { min-width: 210px; }
.dd-more > button { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; background: transparent; padding: 6px 8px; border-radius: 8px; cursor: pointer; color: var(--ink); font: inherit; font-size: 13.5px; text-align: left; }
.dd-more > button:hover { background: var(--card-2); } .dd-more > button.on { background: var(--gold-soft); } .dd-more > button svg { width: 17px; height: 17px; }
.dd-more > label { display: grid; gap: 3px; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 2px 8px; } .dd-more select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.tool-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .lbl-s { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.lc .tt { flex-wrap: nowrap; }
@media (min-width: 861px) { .lc-right > .lc-text textarea { min-height: 110px; } }
/* Ultra Suite's Layer Editor: slides paged, the canvas in the middle, a compact properties form. */
@media (min-width: 861px) {
  .ux > [data-pane] > .le { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; gap: 12px; }
  .le > .card { min-height: 0; overflow: hidden; padding: 10px 12px; }
  .le-slides { display: flex; flex-direction: column; } .le-slides > * { flex: none; }
  .le-slides > .le-sl { flex: 1 1 0; min-height: 0; max-height: none; overflow: hidden; align-content: start; grid-auto-rows: max-content; }
  .le-side { display: flex; flex-direction: column; gap: 10px; } .le-side > [data-list] { flex: none; } .le-side > [data-props] { flex: 1 1 0; min-height: 0; overflow: hidden; }
  .le-props { gap: 6px; } .le-props .ux-h { margin-bottom: 0; }
  .le-props .xywh { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .le-props .f { font-size: 12px; gap: 2px; } .le-props .f input:not([type="color"]):not([type="range"]), .le-props .f select, .le-props textarea { padding: 4px 6px; font-size: 13px; }
  .le-props .f .dd-btn { height: 28px; }
  .lay-list.ed { gap: 3px; } .lay-list.ed li { padding: 3px 6px; }
}
/* Ultra Suite's Stage Builder: the boxes in two columns, a box's settings in one row. */
@media (min-width: 861px) {
  .ux > [data-pane] > .sb { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .sb > .card { min-height: 0; overflow: hidden; padding: 10px 12px; }
  .sb .sb-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; } .sb .sb-list button { padding: 5px 8px; font-size: 12.5px; }
  .sb .le-props { grid-template-columns: minmax(0, 1.3fr) auto auto; align-items: end; gap: 6px 10px; } .sb .le-props > .btn { grid-column: 1 / -1; justify-self: start; }
  .sb .le-props .f { font-size: 11.5px; } .sb > .card > .f { font-size: 12px; } .sb > .card > .f select { padding: 4px 6px; }
}
/* Song Bank's hymn library: the words read-only, the songs already added ticked. */
.hymn-title { font: 800 20px var(--f-head); display: block; }
.hymn-lines { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.song-thumb.have { background: var(--sage-soft); color: var(--sage); }
@media (min-width: 861px) { .song-list .tabs { flex-wrap: nowrap; gap: 2px; } .song-list .tabs .tab { padding: 5px 8px; font-size: 12.5px; white-space: nowrap; } }
@media (min-width: 861px) {
  .song-list .tabs .tab { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .song-row.head > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
}
/* Songbook import: the example, and the list of songs found. */
.book-help summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.book-help pre { background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; white-space: pre-wrap; margin: 6px 0 0; }
.book-list { display: grid; gap: 4px; max-height: 50vh; overflow: auto; }
.book-list .chk { display: flex; gap: 8px; align-items: center; padding: 4px 2px; border-bottom: 1px solid var(--line-2); }
.book-list b { display: block; font-size: 14px; } .book-list small { color: var(--ink-3); font-size: 12px; }
/* The passage picker: books as tiles coloured by the part of the Bible, then chapters, then verses. */
.bp-open { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: space-between; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 11px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.bp-open span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bp-open svg { width: 16px; height: 16px; color: var(--ink-2); }
.bp-back { z-index: 70; }
.bp { width: min(560px, 94vw); background: var(--card); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.3); display: flex; flex-direction: column; max-height: 92vh; overflow: hidden; }
.bp-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--side); color: var(--side-ink); }
.bp-tabs { display: flex; gap: 4px; } .bp-tabs button { border: 0; background: transparent; color: var(--side-ink-2); font: 700 13px var(--f-body); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.bp-tabs button.on { background: rgba(255,255,255,.12); color: #fff; }
.bp-now { margin-left: auto; font-weight: 700; font-size: 14px; color: #fff; }
.bp-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; padding: 8px; overflow: auto; }
.bp-grid.bp-chapter, .bp-grid.bp-verse { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
.bp-t { border: 0; background: transparent; border-radius: 8px; padding: 12px 0; font: 600 17px var(--f-body); cursor: pointer; }
.bp-t:hover, .bp-t:focus-visible { background: var(--card-2); }
.bp-t.ot1 { color: #1a7fb5; } .bp-t.ot2 { color: #2c8a3c; } .bp-t.nt { color: #c4473b; } .bp-t.other { color: var(--ink-2); } .bp-t.n { color: var(--ink); padding: 9px 0; font-size: 15px; }
.bp-t.on { background: #f07a3a; color: #fff; }
:root[data-theme="dark"] .bp-t.ot1 { color: #36c2f2; } :root[data-theme="dark"] .bp-t.ot2 { color: #58d158; } :root[data-theme="dark"] .bp-t.nt { color: #ff7066; }
.bp-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }

/* ── Dropdowns in the KoinOS theme ────────────────────────────────────────
   Customizable selects (appearance: base-select): the list that opens is
   drawn by the page, so it takes the theme's card, line, gold selection and
   dark mode instead of the operating system's grey menu. A browser without
   them keeps its own menu; nothing else changes. */
@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select; }
  select { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; cursor: pointer; min-width: 0; white-space: nowrap; }
  select:disabled { cursor: default; opacity: .6; }
  select::picker-icon { color: var(--ink-3); transition: rotate .15s ease; }
  select:open::picker-icon { rotate: 180deg; }
  ::picker(select) {
    border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink);
    box-shadow: 0 14px 34px rgba(16, 38, 29, .18); padding: 5px; margin-block: 4px; max-height: min(380px, 62vh);
  }
  option { padding: 7px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; gap: 8px; }
  option::checkmark { color: var(--gold-ink); }
  option:hover, option:focus-visible { background: var(--gold-soft); outline: 0; }
  option:checked { background: var(--gold); color: var(--gold-ink); font-weight: 650; }
  option:disabled { opacity: .5; }
  optgroup { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 6px 4px 2px; }
  optgroup option { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 14px; }
  /* The Live Console is dark whatever the theme. */
  .lc select::picker(select) { background: #0f1814; border-color: #2e3e36; color: var(--lc-ink); }
  .lc option:hover, .lc option:focus-visible { background: #1f2d26; }
  .lc option:checked { background: var(--gold); color: var(--gold-ink); }
  .lc optgroup option { color: var(--lc-ink); }
  :root[data-theme="dark"] ::picker(select) { box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
}

/* ── The calendar (datepick.js) ─────────────────────────────────────────── */
.dp-wrap { position: relative; display: flex; align-items: center; min-width: 0; }
.dp-wrap > input { flex: 1; min-width: 0; padding-right: 38px !important; }
.dp-wrap > input::-webkit-calendar-picker-indicator { display: none; }
.dp-btn { position: absolute; right: 5px; top: 50%; translate: 0 -50%; border: 0; background: transparent; color: var(--ink-2); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.dp-btn:hover { background: var(--gold-soft); color: var(--gold-ink); }
.dp-btn svg { width: 17px; height: 17px; }
.dp-pop { position: fixed; inset: auto; margin: 0; z-index: 80; width: 292px; height: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink);
  box-shadow: 0 16px 40px rgba(16, 38, 29, .2); padding: 12px; font-size: 14px; overflow: visible; }
:root[data-theme="dark"] .dp-pop { box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-head b { font-size: 15px; text-transform: capitalize; }
.dp-nav { border: 1px solid var(--line); background: var(--card-2); color: var(--ink); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; }
.dp-nav:hover { background: var(--gold-soft); }
.dp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.dp-wd { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; padding: 4px 0; }
.dp-d { border: 0; background: transparent; color: var(--ink); height: 34px; border-radius: 9px; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.dp-d:hover { background: var(--gold-soft); }
.dp-d.dp-out { color: var(--ink-3); font-weight: 500; }
.dp-d.today { box-shadow: inset 0 0 0 1.5px var(--sage); color: var(--sage); }
.dp-d.on { background: var(--gold); color: var(--gold-ink); box-shadow: none; }
.dp-time { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.dp-time span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; margin-right: auto; }
.dp-time svg { width: 16px; height: 16px; }
.dp-time select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.dp-foot { display: flex; gap: 6px; margin-top: 10px; } .dp-foot .sp { flex: 1; }

/* ── "Add new…" in a dropdown (addnew.js) ───────────────────────────────── */
.an-pop { position: fixed; inset: auto; margin: 0; width: 260px; height: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink);
  box-shadow: 0 16px 40px rgba(16, 38, 29, .2); padding: 12px; display: grid; gap: 6px; overflow: visible; }
:root[data-theme="dark"] .an-pop { box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.an-pop input { width: 100%; box-sizing: border-box; }
.an-err { margin: 0; color: var(--red); font-size: 12.5px; min-height: 0; } .an-err:empty { display: none; }
.an-foot { display: flex; justify-content: flex-end; gap: 6px; }

/* ── The slide, large (slidepop.js) ─────────────────────────────────────── */
.spop { width: min(1180px, 94vw); max-height: 94vh; background: var(--card); color: var(--ink); border-radius: 18px; padding: 16px 18px; display: grid; gap: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: auto; }
.sp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .sp-head h2 { margin: 0 8px 0 0; font-size: 19px; }
.sp-gap { flex: 1; }
.sp-slots { display: inline-flex; gap: 4px; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.sp-slots:empty { display: none; }
.sp-slots button { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.sp-slots button.on { background: var(--gold); color: var(--gold-ink); }
.sp-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-tools .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sp-tools .seg .ic-btn { border-radius: 0; border: 0; width: 34px; height: 34px; }
.sp-tools .seg .ic-btn.on { background: var(--gold); color: var(--gold-ink); }
.sp-stage-wrap { display: grid; place-items: center; }
.sp-stage { position: relative; width: min(100%, calc((94vh - 190px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.sp-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 32px; }
.sp-foot [data-safeact] { display: inline-flex; align-items: center; gap: 8px; }
.warn-t { color: var(--red) !important; }
.preview-stage[data-popstage] { cursor: zoom-in; }

/* ── Outputs: summary cards, previews drawn as their screens ───────────── */
.os-t { display: grid; gap: 3px; min-width: 0; justify-items: start; }
.os-t b { max-width: 100%; line-height: 1.25; }
.os-st { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.os-st.on { color: var(--sage); font-weight: 700; } .os-st.on::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.out-notice { display: flex; align-items: center; gap: 8px; } .out-notice span { flex: 1; } .out-notice select { padding: 4px 8px; }
.mini-stage-c { width: 100%; height: 100%; }
.mini-cf { position: relative; height: 100%; display: grid; grid-template-columns: 1.55fr 1fr; gap: 6px; padding: 6px; background: #0b0f0d; box-sizing: border-box; }
.mini-cf .pgbox { aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; align-self: start; }
.mc-side { display: grid; align-content: start; gap: 4px; min-width: 0; }
.mc-side small { color: #f5cd72; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.mc-notes { margin: 0; color: #c9d3cc; font-size: 10px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mc-msg { margin: 0; padding: 2px 5px; border-radius: 4px; background: #f5cd72; color: #241a05; font: 800 10px/1.3 var(--f-head); text-align: center; }

/* ── Output windows placed on a display (screens.js) ───────────────────── */
.out-fill { position: fixed; left: 50%; bottom: 8vh; translate: -50% 0; z-index: 30; padding: 16px 26px; border: 0; border-radius: 14px; background: var(--gold); color: var(--gold-ink); font: 800 18px var(--f-head); cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.ow-list { display: grid; gap: 10px; }
.ow-row { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.ow-row select { width: 100%; }
.ow-ask { display: flex; align-items: center; gap: 10px; } .ow-ask span { flex: 1; }

/* ── Output windows in the KoinPresent theme ───────────────────────────────
   The room's screen stays the slide, edge to edge. Around it, and on the
   stage and confidence screens, the house colours: deep forest, gold for
   what needs attention, red only for On Air. */
.out { background: #050a08; }
.out-audience .pg { background: #050a08; }
/* Waiting: the KoinPresent card, not grey words on black. */
.out .pg-idle { display: grid; place-content: center; justify-items: center; gap: 2.2vh; text-align: center;
  background: radial-gradient(ellipse at 50% 38%, #1a4a38 0%, #0f3a2b 38%, #0b1a14 78%); color: #e9efe9;
  font: 600 clamp(14px, 2.4vh, 30px)/1.4 var(--f-head); letter-spacing: .02em; }
.out .pg-idle::before { content: ''; width: clamp(48px, 11vh, 120px); aspect-ratio: 1; border-radius: 22%;
  background: url('/koinos-logo.webp') center / contain no-repeat; box-shadow: 0 1.6vh 4vh rgba(0, 0, 0, .35); }
.out-gone { max-width: 560px; margin: 0 auto; padding: 4vh 4vw; border-radius: 2vh; background: #12241b; border: 1px solid #1f3a2d; color: #e9efe9; font: 600 clamp(15px, 2.4vh, 24px)/1.45 var(--f-head); }
.out-ask, .out-fill { font-family: var(--f-head); }

/* Stage and confidence: one surface, cards on it. */
.out-stage, .out-confidence { background: radial-gradient(ellipse at 50% 0%, #11281e 0%, #0b1a14 60%); font-family: var(--f-head); }
.st-top { align-items: center; gap: 2.4vw; padding: 1.4vh 2vw; border-radius: 1.6vh; background: rgba(18, 36, 27, .9); border: 1px solid #1f3a2d; color: #a9bcb0; font-weight: 600; }
.st-top b { font-weight: 800; letter-spacing: .02em; }
.st-top [data-mode]:empty { display: none; }
.st-top .air, .st-top .rehearse { padding: .25em .9em; border-radius: 999px; font-size: .8em; letter-spacing: .08em; text-transform: uppercase; }
.st-top .air { background: #c4362b; color: #fff; }
.st-top .rehearse { background: var(--gold); color: var(--gold-ink); }
.cf-grid > div { display: flex; flex-direction: column; min-height: 0; padding: 1.6vh; border-radius: 1.6vh; background: rgba(18, 36, 27, .9); border: 1px solid #1f3a2d; }
.cf-grid small { color: var(--gold-2); font-weight: 800; }
.cf-grid .out-169 { border-radius: 1vh; overflow: hidden; box-shadow: 0 .8vh 2.4vh rgba(0, 0, 0, .35); }
.cf-notes { flex: 1; padding: 1.2vh 1.4vw; border-radius: 1vh; background: rgba(5, 10, 8, .45); font-family: var(--f-body); }
.cf-msg { box-shadow: 0 .8vh 2.4vh rgba(0, 0, 0, .35); }

/* The stage layout (also the Ultra Suite's builder and the Outputs preview). */
.stage-canvas { font-family: var(--f-head); }
.st-el.st-clock .st-body { font-weight: 800; letter-spacing: .02em; }
.st-el.st-timer .st-body, .st-el.st-countdown .st-body, .st-el.st-position .st-body { font-weight: 600; }
.st-el.st-current .st-body { font-weight: 700; line-height: 1.22; }
.st-el.st-next { border-top: max(1px, .15vh) solid rgba(169, 188, 176, .22); padding-top: .2em; }
.st-el.st-next .st-body { font-weight: 600; }
.st-el small { color: var(--gold-2); font-weight: 800; }
.st-el.st-mode .st-body { display: inline-block; width: fit-content; max-width: 100%; padding: .12em .8em; border-radius: 999px; font-weight: 800; font-size: .8em; letter-spacing: .08em; text-transform: uppercase; background: rgba(169, 188, 176, .14); color: #a9bcb0; }
.st-el.st-mode.air .st-body { background: #c4362b; color: #fff; }
.st-el.st-mode.rehearse .st-body { background: var(--gold); color: var(--gold-ink); }
.st-el.st-message .st-body { background: var(--gold); color: var(--gold-ink); font-weight: 800; border-radius: .3em; padding: .12em .5em; box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .35); }

/* ── Live Console, arranged ────────────────────────────────────────────────
   One toolbar on the output; the screens and their operator on one card;
   Next as the main act; tools and sources that fit their panel. */
.lc .lc-out .lc-h { flex-wrap: nowrap; }
.lc .lc-out .lc-h > .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lc .lc-tools { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--lc-line); border-radius: 10px; background: #0f1814; flex: none; }
.lc .lc-tools .ic-btn { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; }
.lc .lc-tools .ic-btn svg { width: 17px; height: 17px; }
.lc .lc-tools .ic-btn[aria-pressed="true"], .lc .lc-tools .ic-btn.on { background: #2e3e36; color: var(--gold); }
.lc .lc-screens-btn { white-space: nowrap; flex: none; }

.lc .lc-sc { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; }
.lc .lc-sc .lc-health, .lc .lc-sc .lc-op { padding: 0; }
.lc .lc-sc .lc-op { border-left: 1px solid var(--lc-line); margin-left: 14px; padding-left: 14px; min-width: 0; }
.lc .lc-sc .hl-row { gap: 8px; margin-top: 8px; }
.lc .lc-sc .hl { padding: 7px 8px 7px 10px; border-radius: 10px; background: #0f1814; border: 1px solid var(--lc-line); gap: 8px; }
.lc .lc-sc .hl + .hl { border-left: 1px solid var(--lc-line); padding-left: 10px; }
.lc .lc-sc .hl > span:nth-child(2) { min-width: 0; }
.lc .lc-sc .hl b { font-size: 13.5px; }
.lc .lc-sc .hl small { font-size: 12px; white-space: nowrap; }
.lc .lc-sc .hl-ic svg { width: 20px; height: 20px; }
.lc .lc-sc .hl-open { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; flex: none; }
.lc .lc-sc .hl-open svg { width: 15px; height: 15px; }
.lc .op { margin-top: 8px; gap: 10px; align-items: center; }
.lc .op .av { width: 36px; height: 36px; font-size: 13px; background: var(--gold); color: var(--gold-ink); }
.lc .op.mine .av { box-shadow: 0 0 0 2px var(--lc-card), 0 0 0 4px #3ccf63; }
.lc .op-t { min-width: 0; flex: 1; }
.lc .op-t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.lc .op-t small { display: block; line-height: 1.3; font-size: 12px; }
.lc .op .btn { margin-left: 0; flex: none; }

/* Live Text: the alignment and colour buttons hold an icon and a caret side by side. */
.lc .tt .dd-btn { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 30px; padding: 0 4px; gap: 1px; }
.lc .tt .dd-btn svg + svg { width: 11px; height: 11px; opacity: .7; }

/* Cue controls: Previous, a wide Next, Play; then the three switches. */
.lc .cues { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.lc .cues .c-prev, .lc .cues .c-play { grid-column: span 3; }
.lc .cues .c-next { grid-column: span 6; display: flex; align-items: center; justify-content: center; gap: 8px; font: 800 15px var(--f-head); }
.lc .cues .c-next svg { width: 20px; height: 20px; }
.lc .cues [data-c="blackout"], .lc .cues [data-c="clearText"], .lc .cues [data-c="freeze"] { grid-column: span 4; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 4px; }
.lc .cues .c-play:not(.on) { background: #1b2822; border-color: #2e3e36; color: var(--lc-ink); }
.lc .looks-row select { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Sources: one Add Source button and a menu, opening upward (the panel sits at the foot of the screen). */
.lc .lc-src { overflow: visible !important; }
.lc .src-h { display: flex; align-items: center; gap: 8px; } .lc .src-h .lc-cap { margin: 0 !important; } .lc .src-h > .muted { flex: 1; }
.lc .src-menu > div { top: auto; bottom: calc(100% + 6px); right: 0; min-width: 210px; background: #131d18; border-color: #2e3e36; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.lc .src-menu > div button { color: var(--lc-ink); font: 600 13.5px var(--f-body); padding: 8px 10px; }
.lc .src-menu > div button:hover { background: #1f2d26; }
.lc .src-menu summary { cursor: pointer; }
.lc .src-menu[inert] summary { opacity: .45; }
/* (kept for any older markup) */
.lc .srcs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.lc .srcs button { display: flex; align-items: center; justify-content: flex-start; gap: 6px; padding: 6px 8px; font: 600 12px var(--f-body); line-height: 1.2; white-space: nowrap; min-width: 0; }
.lc .srcs button svg { width: 16px; height: 16px; flex: none; }
.lc .srcs button span { overflow: hidden; text-overflow: ellipsis; }
