/* Setlist app styles: colour themes, devices, sign-in. Tokens match the Setlist design system. */
/* ---------- Setlist tokens on every device ---------- */
.sl-theme {
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --tap-min: 48px; --tap-stage: 64px; --bar-height: 64px;
  --slide-dark-bg: #000000; --slide-dark-ink: #ffffff; --slide-light-bg: #ffffff; --slide-light-ink: #111111;
  font-family: var(--font-sans); background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased;
}
.sl-theme[data-theme="light"] { --surface: #f6f6f4; --surface-raised: #ffffff; --surface-sunken: #ecece8; --line: #d9d9d3; --line-strong: #8a8d94; --ink: #16171a; --ink-muted: #5b5e66; --accent: #0d6b63; --on-accent: #ffffff; --accent-soft: #dbeeeb; --chord: #0d6b63; --live: #c23a12; --on-live: #ffffff; --alert: #f0b02a; --alert-soft: #fbefd3; --alert-ink: #6e4700; --on-alert: #2b1d00; --success: #1c7a3c; --danger: #b42318; --on-danger: #ffffff; --focus: #0d6b63; --person-1: #2f6fd6; --person-2: #b8430f; --person-3: #7a5bc7; --person-4: #0f7f5c; --person-5: #b0367a; --person-6: #8a6a00; --shadow-raised: 0 1px 2px rgba(22,23,26,0.08), 0 4px 12px rgba(22,23,26,0.06); }
.sl-theme[data-theme="dark"] { --surface: #101114; --surface-raised: #1a1c20; --surface-sunken: #0a0b0d; --line: #2d3036; --line-strong: #6b6f78; --ink: #eeeff1; --ink-muted: #a2a6af; --accent: #52d0c0; --on-accent: #042a26; --accent-soft: #0f3330; --chord: #52d0c0; --live: #ff8a5b; --on-live: #2a0c02; --alert: #f3c14d; --alert-soft: #382a08; --alert-ink: #f3c14d; --on-alert: #2b1d00; --success: #5ed38a; --danger: #ff7a70; --on-danger: #2b0503; --focus: #52d0c0; --person-1: #7fa8ff; --person-2: #ff9466; --person-3: #b49cff; --person-4: #4fd1a1; --person-5: #ff85c0; --person-6: #e3bf4a; --shadow-raised: 0 1px 2px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.4); }
.sl-theme.sl-scheme-cream { --surface: #f4ecd8; --surface-raised: #fbf6ea; --surface-sunken: #e9dfc6; --line: #d6c9a8; --line-strong: #7d7158; --ink: #1b1610; --ink-muted: #4d4434; --accent: #0d5f58; --on-accent: #ffffff; --accent-soft: #dcebe4; --chord: #0d5f58; --focus: #0d5f58; }
.sl-theme.sl-scheme-yellow { --surface: #000000; --surface-raised: #121212; --surface-sunken: #000000; --line: #3b3b2a; --line-strong: #8f8a55; --ink: #ffe14d; --ink-muted: #e8d36a; --accent: #8fd8ff; --on-accent: #04202c; --accent-soft: #0f2a36; --chord: #8fd8ff; --focus: #8fd8ff; }
.sl-theme.sl-scheme-blue { --surface: #0b2a5b; --surface-raised: #12356f; --surface-sunken: #082048; --line: #2a4f86; --line-strong: #7f9cc8; --ink: #ffffff; --ink-muted: #cfdbf0; --accent: #ffd54d; --on-accent: #1d1600; --accent-soft: #263f6b; --chord: #ffd54d; --focus: #ffd54d; }

/* ---------- device layouts ---------- */
.device { position: relative; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; outline: none; font-size: 15px; }
.device button { font-family: inherit; }
.dev-bar { height: 64px; flex: none; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
.dev-brand { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.dev-app { font-size: 13px; font-weight: 600; color: var(--accent); }
.dev-sep { width: 1px; height: 24px; background: var(--line); }
.dev-svc { display: flex; flex-direction: column; line-height: 1.2; }
.dev-svc b { font-size: 15px; }
.dev-svc span { font-size: 12px; color: var(--ink-muted); }
.dev-body { flex: 1; min-height: 0; display: flex; }
.dev-h { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.over { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.cap { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface-sunken); font-size: 13px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.sl-dots { width: 48px; height: 48px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sl-dots:hover { background: var(--surface-sunken); }
.seg { display: inline-flex; padding: 3px; gap: 3px; background: var(--surface-sunken); border-radius: 10px; }
.tab-list { width: 290px; flex: none; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-right: 1px solid var(--line); background: var(--surface); }
.tab-list-items { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px; }
.row-btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; border-radius: 10px; }
.row-btn:disabled { cursor: default; }
.row-btn .sl-item + .sl-item { margin: 0; }
.tab-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--surface); position: relative; }
.tab-head { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 14px 20px 10px 24px; border-bottom: 1px solid var(--line); }
.tab-head-row { display: flex; align-items: center; gap: 12px; }
.tab-head-row.wrap, .panel-row.wrap { flex-wrap: wrap; gap: 6px; }
.tab-title { margin: 0; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.01em; }
.tab-meta { margin: 4px 0 0; font-size: 13px; color: var(--ink-muted); font-weight: 500; }
.ochip { min-width: 34px; height: 30px; padding: 0 6px; cursor: pointer; }
.ochip .sl-key-value { font-size: 13px; }
.capo-wrap { display: flex; align-items: center; gap: 10px; }
.sugg { font-size: 12px; line-height: 15px; font-weight: 600; color: var(--accent); text-align: right; white-space: nowrap; }
.tab-banners { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 0 20px 0 24px; }
.tab-banners > * { margin-top: 10px; }
.tab-sheetrow { flex: 1; min-height: 0; display: flex; }
.tab-sheetwrap { flex: 1; min-width: 0; position: relative; }
.tab-sheet { position: absolute; inset: 0; overflow: hidden; }
.parts { padding: 20px 24px; }
.part + .part { margin-top: 22px; }
.part .sl-sheet { padding: 0; }
.part .sl-sheet-sec { margin: 0 0 8px; }
.part.is-kc .sl-sheet-sec { color: var(--alert-ink); }
.part.is-now > .sl-sheet-sec { color: var(--ink); }
.tapzone { position: absolute; top: 0; bottom: 0; width: 50%; border: 0; padding: 0; background: transparent; cursor: pointer; touch-action: none; }
.tapzone:focus { outline: none; }
.tapzone:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }
.cuepill { position: absolute; right: 16px; top: 12px; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 8px; border-radius: 999px; background: var(--alert-soft); color: var(--alert-ink); box-shadow: var(--shadow-raised); font-size: 15px; font-weight: 600; }
.cuecode { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; box-sizing: border-box; border-radius: 6px; background: var(--alert); color: var(--on-alert); font-size: 13px; font-weight: 700; }
.rail { width: 96px; flex: none; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; border-left: 1px solid var(--line); background: var(--surface-raised); overflow-y: auto; }
.added { margin-left: 10px; padding: 1px 8px; border-radius: 999px; background: var(--alert-soft); color: var(--alert-ink); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.rail-q { display: flex; flex-direction: column; gap: 6px; width: 76px; }
.rail-btn { min-height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-raised); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.rail-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rail-hint { margin-top: auto; padding: 0 8px; font-size: 11px; line-height: 14px; text-align: center; color: var(--ink-muted); }
.tab-other { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 48px; max-width: 560px; }
.dev-foot { flex: none; height: 92px; box-sizing: border-box; display: flex; align-items: center; gap: 16px; padding: 0 20px 0 24px; border-top: 1px solid var(--line); background: var(--surface-raised); }
.foot-mid { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.scrim { position: absolute; inset: 0; z-index: 50; border: 0; padding: 0; background: rgba(0,0,0,.4); cursor: pointer; }
.sheet-panel, .menu-panel { position: absolute; top: 76px; right: 16px; z-index: 60; width: 480px; max-height: 700px; overflow-y: auto; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-raised); }
.menu-panel { width: 400px; }
.panel-head { display: flex; align-items: flex-start; gap: 12px; }
.panel-head > div { flex: 1; }
.panel-sec { display: flex; flex-direction: column; gap: 8px; }
.panel-row { display: flex; align-items: center; gap: 8px; }
.note-line { font-size: 15px; line-height: 22px; }
.note-who { font-size: 13px; font-weight: 700; color: var(--ink-muted); margin-right: 8px; }
.field { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-sunken); color: var(--ink); font: inherit; font-size: 15px; resize: vertical; }
.field:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
.swatch-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.swatch { width: 100%; height: 56px; border-radius: 10px; border: 1.5px solid var(--line-strong); cursor: pointer; font-size: 17px; font-weight: 700; }
.swatch.is-on { outline: 3px solid var(--accent); outline-offset: 2px; }
.signin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--surface); }
.signin-in { width: 520px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.signin-in h2 { margin: 0; font-size: 32px; line-height: 38px; font-weight: 600; }
.signin-in p { margin: 0 0 6px; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.signin-row { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); color: var(--ink); text-align: left; cursor: pointer; }
.signin-name { flex: 1; font-size: 17px; font-weight: 600; }
.signin-role { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
/* projector */
.proj { align-items: center; justify-content: center; text-align: center; font-family: var(--font-sans); }
.proj-lines { font-size: 64px; line-height: 80px; font-weight: 600; padding: 64px; }
.proj-copy { position: absolute; left: 0; right: 0; bottom: 48px; font-size: 20px; line-height: 28px; font-weight: 500; opacity: .7; }
.proj-logo { font-size: 72px; font-weight: 700; letter-spacing: -0.02em; }
.proj-video { width: 70%; display: grid; gap: 24px; justify-items: center; color: #fff; }
.proj-vtitle { font-size: 56px; font-weight: 600; }
.proj-bar { width: 100%; height: 14px; border-radius: 999px; background: #2d3036; overflow: hidden; }
.proj-bar.small { height: 6px; }
.proj-bar > div { height: 100%; background: #ff8a5b; }
.proj-vtime { font-family: var(--font-mono); font-size: 28px; }
/* desk */
.desk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px 18px; overflow: hidden; }
.desk-top { display: flex; gap: 18px; align-items: flex-start; }
.big .sl-slide-wrap { max-width: none; }
.big .sl-slide-lines { font-size: 5.4cqw; }
.screen { aspect-ratio: 16/9; border-radius: 16px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.desk-ctl { flex: none; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-left: 1px solid var(--line); background: var(--surface-raised); }
.grow { flex: 1; }
.cuecard { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: var(--alert-soft); color: var(--alert-ink); font-size: 13px; }
.desk-away { position: absolute; inset: 64px 0 0 0; z-index: 70; display: flex; align-items: center; justify-content: center; background: var(--surface); }
/* planning */
.plan-row { display: flex; align-items: center; gap: 4px; }
.plan-row .row-btn { flex: 1; min-width: 0; }
.plan-move { display: flex; flex-direction: column; gap: 4px; }
.mini { width: 32px; height: 26px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-raised); color: var(--ink); cursor: pointer; }
.mini:disabled { opacity: .4; cursor: default; }
.plan-main { flex: 1; min-width: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 18px 22px; }
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.keygrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.arr { display: flex; flex-wrap: wrap; gap: 8px; }
.arrpart { position: relative; min-width: 50px; height: 54px; cursor: pointer; }
.arrpart.is-sel { outline: 2px solid var(--accent); outline-offset: 2px; }
.arrpart .sl-key-value { font-size: 17px; }
.pdot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 2px var(--surface-raised); }
.arrsel { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); }
.lab { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .sl-key-pulse::after { animation: none; } }

/* ---------- full-window app ---------- */
html, body { height: 100%; margin: 0; }
body { background: #101114; font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
#app { height: 100%; }
.boot { height: 100%; display: flex; align-items: center; justify-content: center; color: #a2a6af; font: 600 20px "Figtree", system-ui, sans-serif; }
.device { width: 100%; height: 100%; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.device.page { overflow: hidden; }
.dev-bar { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); flex-wrap: nowrap; overflow-x: auto; }
.dev-brand { color: inherit; text-decoration: none; }
.empty { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 48px; max-width: 560px; }
.empty h2 { margin: 0; font-size: 24px; }
.empty p { margin: 0; color: var(--ink-muted); }
.tab-text { white-space: pre-wrap; font-size: 18px; line-height: 28px; max-width: 60ch; }
.tab-list.wide { width: 360px; }
.tab-list.drawer { position: absolute; left: 0; top: 0; bottom: 0; z-index: 55; width: min(340px, 86vw); transform: translateX(-105%); transition: transform 240ms ease; box-shadow: var(--shadow-raised); }
.tab-list.drawer.open { transform: none; }
@media (prefers-reduced-motion: reduce) { .tab-list.drawer { transition: none; } }
.dev-body { position: relative; }
.sheet-panel, .menu-panel { max-width: calc(100% - 32px); max-height: calc(100% - 92px); }
@media (max-width: 900px) {
  .tab-title { font-size: 22px; line-height: 28px; }
  .tab-head { padding: 12px 14px 8px; }
  .tab-banners { padding: 0 14px; }
  .parts { padding: 16px; }
  .dev-foot { height: 80px; padding: 0 12px; gap: 8px; }
  .rail { width: 84px; }
  .dev-svc span { display: none; }
  .tab-list.wide { width: 300px; }
}
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 100; padding: 12px 18px; border-radius: 999px; background: #16171a; color: #fff; font: 600 15px "Figtree", system-ui, sans-serif; box-shadow: 0 4px 12px rgba(0,0,0,.3); max-width: calc(100% - 32px); }
.err { margin: 0; color: var(--danger); font-weight: 600; font-size: 14px; }
.slim { min-height: 36px; padding: 6px 10px; width: auto; }
.mono { font-family: var(--font-mono); font-size: 14px; line-height: 22px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.card.tight { padding: 12px; gap: 8px; }
.narrowcol { max-width: 860px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.list { display: flex; flex-direction: column; gap: 8px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.list-row span.cap { display: block; margin-top: 2px; }
.list-row:disabled { cursor: default; }
.mem-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.code { font-family: var(--font-mono); font-size: 28px; font-weight: 600; letter-spacing: .12em; flex: 1; }
/* projector window */
.proj-out { position: fixed; inset: 0; text-align: center; font-family: "Figtree", system-ui, sans-serif; cursor: none; }
.proj-fade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.proj-out.va-top .proj-fade { justify-content: flex-start; padding-top: 4vh; }
.proj-out.va-bottom .proj-fade { justify-content: flex-end; padding-bottom: 9vh; }
.proj-out .proj-lines { font-size: 5.6vh; line-height: 1.3; padding: 6vh 6vw; font-weight: 600; }
.proj-out .proj-copy { position: absolute; left: 0; right: 0; bottom: 4vh; font-size: 1.8vh; opacity: .7; }
.proj-out .proj-logo { font-size: 7vh; font-weight: 700; }
.proj-vid { width: 100%; height: 100%; object-fit: contain; background: #000; }
.proj-full { position: absolute; right: 16px; bottom: 16px; cursor: pointer; opacity: .25; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 8px; padding: 8px 12px; font: 600 13px "Figtree", sans-serif; }
.proj-full:hover, .proj-full:focus-visible { opacity: 1; }
/* sign-in and home */
.gate { min-height: 100%; display: flex; justify-content: center; align-items: flex-start; background: var(--surface); color: var(--ink); padding-block: max(32px, env(safe-area-inset-top, 0px)) 32px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); box-sizing: border-box; overflow-y: auto; height: 100%; }
.gate-in { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 16px; }
.gate-in.wide { max-width: 860px; }
.gate-in h1 { margin: 0; font-size: 32px; line-height: 38px; letter-spacing: -0.01em; }
.gate-in p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.gate-brand { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--accent); }
.gate-form { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.pin { font-size: 24px; letter-spacing: .4em; max-width: 160px; }
.linkish { align-self: flex-start; border: 0; background: none; color: var(--accent); font: 600 14px "Figtree", sans-serif; padding: 4px 0; cursor: pointer; text-decoration: underline; }
.who { display: flex; flex-direction: column; gap: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; min-height: 96px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-raised); color: var(--ink); text-decoration: none; }
.tile b { font-size: 18px; }
.tile span { color: var(--ink-muted); font-size: 14px; }
.tile:hover { border-color: var(--accent); }
.tile:focus-visible, .list-row:focus-visible, .signin-row:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 600px) { .row2, .row3 { grid-template-columns: minmax(0, 1fr); } .gate-in h1 { font-size: 26px; line-height: 32px; } }
/* phones: keep the bar and footer on one screen width */
@media (max-width: 600px) {
  .dev-bar { gap: 8px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .dev-bar .sl-control-k { display: none; }
  .dev-bar .dev-svc, .dev-bar .dev-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dev-foot .sl-btn-stage { min-width: 0; padding-inline: 14px; font-size: 16px; }
  .dev-foot .foot-mid { flex: 1; min-width: 0; justify-content: center; }
  .dev-foot .seg .sl-seg-btn, .dev-foot .sl-seg-btn { padding-inline: 10px; }
}

/* ---------- presentation desk: cards in rows, resizable panels ---------- */
.desk-list { padding: 10px; }
.desk-list .sl-item-title { overflow: hidden; text-overflow: ellipsis; }
.grip { flex: none; width: 10px; margin: 0 -5px; position: relative; z-index: 5; cursor: col-resize; display: flex; align-items: center; justify-content: center; touch-action: none; outline: none; }
.grip span { width: 4px; height: 44px; border-radius: 2px; background: var(--line); transition: background 120ms; }
.grip:hover span, .grip:focus-visible span, .grip:active span { background: var(--accent); }
.desk-main { gap: 10px; padding: 12px 16px; }
.desk-top { gap: 14px; }
.desk-now { flex: 1; min-width: 0; max-width: calc(30vh * 16 / 9); display: flex; flex-direction: column; gap: 6px; }
.desk-next { width: clamp(150px, 24%, 300px); flex: none; display: flex; flex-direction: column; gap: 6px; }
.desk-ttl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
.desk-order { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; padding: 2px 0; }
.desk-order .ochip { flex: none; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-sunken, transparent); color: var(--ink-muted); font: 600 13px var(--font-mono); cursor: pointer; }
.desk-order .ochip.is-now { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.desk-order .ochip.is-next { border-color: var(--alert); border-style: dashed; color: var(--ink); }
.desk-order .ochip:disabled { cursor: default; }
.desk-size { display: flex; align-items: center; gap: 6px; color: var(--ink-muted); flex: none; }
.desk-size input { width: 110px; accent-color: var(--accent); }
.help-btn { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); font: 700 15px "Figtree", sans-serif; cursor: pointer; }
.help-btn:hover, .help-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.desk-cards { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--card, 200px), 100%), 1fr)); gap: 10px; align-content: start; padding: 4px 4px 12px; }
.dcard { position: relative; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 12px; text-align: center; }
.dcard:disabled { cursor: default; }
.dslide { aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; container-type: inline-size; }
.dlines { font-weight: 600; font-size: 4.4cqw; line-height: 1.3; padding: 0 5cqw; }
.dblank { font-size: 7cqw; opacity: .45; font-weight: 600; }
.dcard.is-live .dslide { outline: 3px solid var(--live); outline-offset: 2px; }
.dcard.is-next .dslide { outline: 2px dashed var(--alert); outline-offset: 2px; }
.dcard.is-unused { opacity: .5; }
.dcard:not(:disabled):hover .dslide { border-color: var(--accent); }
.dcard:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.dcode { position: absolute; top: 6px; left: 6px; min-width: 22px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.62); color: #fff; font: 600 12px var(--font-mono); }
.dcard.is-live .dcode { background: var(--live); color: var(--on-live); }
.dtimes { position: absolute; top: 6px; right: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.62); color: #fff; font: 600 11px var(--font-mono); }
.dcue { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 6px; background: var(--alert); color: var(--on-alert); font: 700 11px "Figtree", sans-serif; }
.ddots { position: absolute; right: 8px; bottom: 7px; display: flex; gap: 3px; }
.ddots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.ddots i.on { background: var(--live); }
.desk-ctl { gap: 10px; padding: 14px; }
.desk-ctl > .sl-btn { width: 100%; }
.ctl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 6px; }
.ctl-grid .sl-btn { width: 100%; min-width: 0; padding-inline: 6px; }
.desk-ctl.is-slim { padding: 10px; }
.desk-ctl.is-slim .sl-btn-stage { min-height: 64px; font-size: 16px; padding-inline: 8px; }
.help-panel { position: absolute; top: 72px; right: 16px; z-index: 80; width: min(460px, calc(100% - 32px)); max-height: calc(100% - 96px); overflow-y: auto; box-sizing: border-box; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-raised); box-shadow: var(--shadow-raised); display: flex; flex-direction: column; gap: 10px; }
.help-panel dl { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.help-panel dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: baseline; }
.help-panel dt { font: 600 13px var(--font-mono); color: var(--accent); }
.help-panel dd { margin: 0; font-size: 14px; }
/* desk: Display and Edit panels */
.side-panel { position: absolute; top: 72px; right: 16px; bottom: 16px; z-index: 80; width: min(420px, calc(100% - 32px)); overflow-y: auto; box-sizing: border-box; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-raised); box-shadow: var(--shadow-raised); display: flex; flex-direction: column; gap: 10px; }
.side-panel .lab > .seg, .side-panel .lab > div { align-self: flex-start; }
.swatch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.colour { width: 100%; height: 44px; padding: 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.warn { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--alert-soft); color: var(--alert-ink); font-size: 14px; font-weight: 600; }
.edit-panel { position: absolute; top: 64px; left: 0; right: 0; bottom: 0; z-index: 85; display: flex; flex-direction: column; background: var(--surface); }
.edit-head { padding: 14px max(16px, env(safe-area-inset-left, 0px)) 12px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.edit-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-content: start; }
.edit-sec { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); }
.edit-slides { display: flex; flex-direction: column; gap: 6px; }
.edit-slide { font-size: 16px; line-height: 24px; resize: vertical; min-height: 56px; }
.dcode-inline { min-width: 28px; padding: 2px 6px; border-radius: 6px; background: var(--surface-sunken); font: 600 12px var(--font-mono); text-align: center; }
.pend-note { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; background: var(--alert-soft); color: var(--alert-ink); font-size: 12px; font-weight: 700; }
.info { position: relative; cursor: help; font-weight: 400; outline: none; }
.info::after { content: attr(data-tip); position: absolute; right: -8px; top: calc(100% + 8px); width: 240px; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 500; line-height: 18px; white-space: normal; opacity: 0; pointer-events: none; transition: opacity 120ms; z-index: 5; }
.info:hover::after, .info:focus::after { opacity: 1; }
.dcue.dpend { background: var(--alert-soft); color: var(--alert-ink); }
/* text position previews match the projector */
.va-top .big .sl-slide, .va-top .dslide { align-items: flex-start; }
.va-top .big .sl-slide-lines, .va-top .dlines { padding-top: 4cqw; }
.va-bottom .big .sl-slide, .va-bottom .dslide { align-items: flex-end; }
.va-bottom .big .sl-slide-lines, .va-bottom .dlines { padding-bottom: 7cqw; }
.appr { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.appr-sec { display: flex; flex-direction: column; gap: 4px; }
.appr-pre { margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--surface-sunken); white-space: pre-wrap; overflow-x: auto; }
.appr-pre.is-new { background: var(--accent-soft); }
/* musician: footer at half height */
.tab-main ~ .dev-foot, .dev-foot { height: 46px; padding: 0 12px; gap: 10px; }
.dev-foot .sl-btn-stage { min-height: 36px; height: 36px; padding-block: 0; font-size: 15px; border-radius: 10px; }
.dev-foot .sl-btn-stage .sl-icon, .dev-foot .sl-btn-stage svg { width: 16px; height: 16px; }
.dev-foot .sl-btn { min-height: 32px; height: 32px; padding-block: 0; }
.dev-foot .sl-seg-btn { min-height: 30px; padding-block: 0; }
.dev-foot .cap { font-size: 12px; }
/* planning: Add item menu and folded service details */
.additem { position: relative; flex: none; }
.additem-btn { gap: 6px; }
.additem-plus { font-size: 18px; line-height: 1; }
.additem-pop { position: fixed; z-index: 200; width: 300px; max-height: min(70vh, calc(100vh - 90px)); overflow-y: auto; box-sizing: border-box; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-raised); box-shadow: var(--shadow-raised); display: flex; flex-direction: column; gap: 4px; }
.additem-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 600 15px "Figtree", sans-serif; text-align: left; cursor: pointer; }
.additem-row:hover, .additem-row:focus-visible { background: var(--surface-sunken); outline: none; }
.additem-list { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow-y: auto; }
.details-line { display: flex; flex-direction: row; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.details-sum { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
/* desk corrections waiting for approval, as the musicians see them */
mark.sl-chg { background: var(--alert-soft); color: inherit; border-bottom: 2px dotted var(--alert); border-radius: 3px; padding: 0 1px; }
.deskfix { margin-left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--alert-soft); color: var(--alert-ink); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; vertical-align: middle; }
/* version chips: Original, Mine, and other leaders' versions as coloured initials */
.vchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vchip { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); font: 700 13px "Figtree", sans-serif; cursor: pointer; }
.vchip.is-person { border-color: var(--pc); color: var(--pc); }
.vchip.is-on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.vchip.is-person.is-on { background: var(--pc); border-color: var(--pc); color: #fff; }
.vchip-svc { font-size: 16px; line-height: 1; }
/* planning: notes panel on the right, folded tab, song panel */
.notes-panel { border-right: 0; border-left: 1px solid var(--line); padding: 14px; gap: 10px; overflow-y: auto; }
.notes-tab { flex: none; width: 36px; border: 0; border-left: 1px solid var(--line); background: var(--surface-raised); color: var(--ink-muted); cursor: pointer; font: 600 13px "Figtree", sans-serif; }
.notes-tab span { display: inline-block; writing-mode: vertical-rl; white-space: nowrap; }
.notes-tab:hover { color: var(--accent); }
.songpanel { gap: 12px; }
.order-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.ostrip { display: inline-flex; flex-direction: column; align-items: center; min-width: 44px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-sunken); color: var(--ink); cursor: pointer; }
.ostrip:disabled { cursor: default; }
.ostrip-code { font: 600 14px var(--font-mono); }
.ostrip-sub { font-size: 11px; color: var(--ink-muted); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ostrip.is-kc { background: var(--alert-soft); border-color: var(--alert); }
.ss { display: flex; flex-direction: column; gap: 16px; }
.ss-sec { border-radius: 10px; padding: 6px 8px; margin: 0 -8px; transition: background-color 400ms; scroll-margin-top: 12px; }
.ss-sec.is-hl { background: var(--accent-soft); }
.ss-tag { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink, var(--ink)); font-size: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.ss-text { font-size: 15px; line-height: 22px; }
.edit-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--surface-sunken); position: sticky; top: 0; z-index: 3; }
.warn-inline { font-size: 13px; font-weight: 700; color: var(--alert-ink); background: var(--alert-soft); padding: 6px 10px; border-radius: 8px; }
/* chords above the words, editable */
.ce { position: relative; display: flex; flex-direction: column; gap: 2px; font-family: var(--font-mono); font-size: 16px; }
.ce-meas { position: absolute; visibility: hidden; white-space: pre; font: inherit; }
.ce-row { display: flex; flex-direction: column; }
.ce-chords { position: relative; height: 26px; cursor: copy; border-radius: 6px; }
.ce-chords:hover { background: var(--surface-sunken); }
.ce-chord { position: absolute; top: 1px; height: 24px; padding: 0 4px; margin-left: -4px; border: 1px solid transparent; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink, var(--accent)); font: 700 16px var(--font-mono); cursor: grab; touch-action: none; white-space: nowrap; }
.ce-chord:hover, .ce-chord.is-drag { border-color: var(--accent); }
.ce-chord.is-drag { cursor: grabbing; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.ce-text { width: 100%; box-sizing: border-box; padding: 3px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); font: 16px var(--font-mono); }
.ce-text:hover { border-color: var(--line); }
.ce-text:focus { border-color: var(--accent); outline: none; background: var(--surface); }
.ce-pop { position: absolute; top: -4px; z-index: 4; display: inline-flex; gap: 4px; align-items: center; }
.ce-pop-in { width: 80px; height: 30px; padding: 0 6px; border-radius: 6px; border: 2px solid var(--accent); background: var(--surface-raised); color: var(--ink); font: 700 15px var(--font-mono); }
.ce-break { display: flex; align-items: center; gap: 8px; margin: 4px 0; color: var(--ink-muted); font: 600 11px "Figtree", sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.ce-break::before, .ce-break::after { content: ""; flex: 1; border-top: 1px dashed var(--line-strong); }
@media (max-width: 1000px) {
  .notes-panel { position: absolute; top: 0; right: 0; bottom: 0; z-index: 40; box-shadow: var(--shadow-raised); max-width: 86vw; }
}
.edit-bar .cap { order: 10; flex-basis: 100%; }
/* song library: two columns */
.lib-main { max-width: none; }
.lib-cols { display: flex; gap: 10px; align-items: flex-start; }
.lib-cols > .lib-col { flex: 1 1 0; }
.lib-cols > .grip { align-self: stretch; margin: 0; }
.lib-cols > .grip span { position: sticky; top: 40vh; }
.lib-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lib-edit { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 900px) { .lib-cols { flex-direction: column; align-items: stretch; } .lib-cols > .lib-col { flex: none !important; } .lib-cols > .grip { display: none; } }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 16px; border: 2px dashed var(--line-strong); border-radius: 14px; text-align: center; }
.dropzone.is-over, .card.is-drop { border-color: var(--accent); background: var(--accent-soft); }
.imp-row { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.imp-title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.imp-title:hover b { text-decoration: underline; }
.imp-view { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; }
/* PDF viewer */
.pdf-view { position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; background: var(--surface); }
.pdf-head { padding: 10px max(16px, env(safe-area-inset-left, 0px)); padding-top: max(10px, env(safe-area-inset-top, 0px)); border-bottom: 1px solid var(--line); }
.pdf-frame { flex: 1; width: 100%; border: 0; background: #525659; }
.fullbtn { flex: none; min-width: 34px; font-size: 15px; }
.fullbtn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.lib-opts { gap: 16px; }
.lib-actions { position: sticky; top: 0; z-index: 5; gap: 10px; box-shadow: var(--shadow-raised); }
.lib-row { display: flex; align-items: center; gap: 10px; }
.lib-row > .list-row { flex: 1; min-width: 0; }
.lib-row.is-sel > .list-row { border-color: var(--accent); background: var(--accent-soft); }
.lib-check { width: 22px; height: 22px; flex: none; accent-color: var(--accent); cursor: pointer; }
.list-row > span > .cap { display: block; }
.list.is-compact { gap: 4px; }
.list.is-compact .list-row { padding: 6px 12px; min-height: 0; }
.lib-line { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; overflow: hidden; white-space: nowrap; }
.lib-line b { overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.lib-line .cap { flex: 0 0 auto; font-family: var(--font-mono); }
.del-extra { font-weight: 700; color: var(--danger); }
.sl-btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
/* ---------- the slide stage: one fixed-size picture, scaled, so every preview wraps like the projector ---------- */
.stage-box { position: relative; width: 100%; overflow: hidden; border-radius: 8px; container-type: normal; }
.stage-box.is-fill { position: fixed; inset: 0; border-radius: 0; }
.stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; font-family: "Figtree", system-ui, sans-serif; text-align: center; }
.stage-layer { position: absolute; inset: 0; }
.stage-text { position: absolute; left: 115px; right: 115px; top: 64px; bottom: 108px; display: flex; flex-direction: column; justify-content: center; font-size: 60px; line-height: 1.3; font-weight: 600; overflow: hidden; overflow-wrap: break-word; }
.stage.va-top .stage-text { justify-content: flex-start; }
.stage.va-bottom .stage-text { justify-content: flex-end; }
.stage-copy { position: absolute; left: 60px; right: 60px; bottom: 40px; font-size: 20px; line-height: 1.3; opacity: .7; }
.stage-logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 76px; font-weight: 700; padding: 0 120px; }
.too-long { position: absolute; right: 6px; bottom: 6px; z-index: 2; padding: 2px 7px; border-radius: 6px; background: var(--danger); color: #fff; font: 700 11px "Figtree", sans-serif; }
.big .stage-box { border: 1px solid var(--line); }
.dcard .stage-box { border: 1px solid var(--line); border-radius: 12px; }
.dcard.is-live .stage-box { outline: 3px solid var(--live); outline-offset: 2px; }
.dcard.is-next .stage-box { outline: 2px dashed var(--alert); outline-offset: 2px; }
.dcard:not(:disabled):hover .stage-box { border-color: var(--accent); }
.dblank { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; opacity: .55; color: var(--slide-dark-ink, #fff); }
.dstale { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 6px; background: var(--alert-soft); color: var(--alert-ink); font: 700 11px "Figtree", sans-serif; }
.proj-out { background: #000; }
.proj-out .proj-full { z-index: 5; }
/* slide editor: preview beside each slide's words */
.edit-pair { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 10px; align-items: start; }
.edit-prev { border: 1px solid var(--line); }
.edit-panel.is-full { position: fixed; top: 0; z-index: 140; }
.edit-body { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); }
@media (max-width: 700px) { .edit-pair { grid-template-columns: minmax(0, 1fr); } .edit-body { grid-template-columns: minmax(0, 1fr); } }
/* library: row buttons, properties drawer, versions, report */
.lib-btns { display: flex; flex-direction: column; gap: 4px; flex: none; }
.list.is-compact .lib-btns { flex-direction: row; }
.mini-btn { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-raised); color: var(--ink); font: 600 12px "Figtree", sans-serif; cursor: pointer; white-space: nowrap; }
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }
.lib-tools { gap: 16px; }
.drawer-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 130; width: min(560px, 100%); display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--shadow-raised); border-left: 1px solid var(--line); }
.drawer-head { padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top, 0px)); border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.kw-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kw { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--accent-soft); font-size: 13px; font-weight: 600; }
.kw button { border: 0; background: none; cursor: pointer; font-size: 15px; color: inherit; padding: 0 4px; }
.kw-in { width: 160px; }
.hist { display: flex; flex-direction: column; font-size: 13px; }
.hist-row { display: grid; grid-template-columns: 110px 1fr 90px 1.2fr; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.report { display: flex; flex-direction: column; }
.report-row { display: grid; grid-template-columns: 1fr 100px 60px; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.report-row.is-head { font-weight: 700; color: var(--ink-muted); border-top: 0; }
/* listen links */
.listen { display: flex; flex-direction: column; gap: 8px; }
.listen-row { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.listen-row a.mini-btn { text-decoration: none; }
.yt-box { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.yt-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* fetch part */
.fetch-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 40px; display: flex; flex-direction: column; gap: 12px; }
.fetch-secs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-content: start; }
.fetch-head { align-items: center; }
.fetch-slide { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.fetch-slide.is-on { border-color: var(--accent); background: var(--accent-soft); }
.fetch-slide input, .fetch-head input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 2px; }
.fetch-sheet { flex: 1; min-width: 0; font-size: 14px; }
.binfo { position: relative; display: inline-block; vertical-align: middle; margin-left: 6px; }
.info-btn { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-muted); background: none; color: var(--ink-muted); font: italic 700 13px Georgia, serif; line-height: 1; cursor: pointer; padding: 0; }
.info-btn[aria-expanded="true"], .info-btn:hover { border-color: var(--accent); color: var(--accent); }
.binfo-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; width: 280px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 500; line-height: 18px; box-shadow: var(--shadow-raised); }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.vid-ed { display: flex; flex-direction: column; gap: 12px; }
.yt-thumb { width: min(360px, 100%); border-radius: 10px; border: 1px solid var(--line); }
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.deck-thumb { border: 1px solid var(--line); }
.media-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.yt-proj { position: fixed; inset: 0; background: #000; }
.yt-proj > div, .yt-proj iframe { width: 100%; height: 100%; border: 0; }
.yt-err { position: absolute; left: 50%; bottom: 8vh; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px; background: rgba(0,0,0,.7); color: #fff; font: 600 16px "Figtree", sans-serif; cursor: default; }
