:root,
[data-theme="dark"] {
  --bg-0: #06080c;
  --bg-1: #0b0f16;
  --bg-2: #121820;
  --bg-3: #1a222e;
  --line: rgba(140, 165, 190, 0.16);
  --text: #e7edf5;
  --muted: #8493a8;
  --accent: #3ecfbf;
  --accent-dim: rgba(62, 207, 191, 0.14);
  --live: #e11d2e;
  --live-glow: rgba(225, 29, 46, 0.5);
  --auto: #22c55e;
  --auto-glow: rgba(34, 197, 94, 0.35);
  --break: #f59e0b;
  --break-glow: rgba(245, 158, 11, 0.35);
  --player-a: #3ecfbf;
  --player-b: #6ea8fe;
  --log-current: rgba(225, 29, 46, 0.18);
  --log-next: rgba(62, 207, 191, 0.12);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-ui: "Outfit", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --chrome-bg: rgba(8, 10, 14, 0.92);
  --panel-bg: linear-gradient(180deg, rgba(24, 30, 42, 0.96), rgba(12, 15, 22, 0.98));
  --panel-elevated: linear-gradient(180deg, rgba(32, 40, 54, 0.98), rgba(16, 20, 30, 0.99));
  --surface-muted: rgba(0, 0, 0, 0.18);
  --shadow-sm: none;
  --btn-hover-border: rgba(62, 207, 191, 0.45);
  --btn-primary-bg: linear-gradient(180deg, #2a9f93, #1d7a71);
  --btn-primary-border: #3ecfbf;
  --btn-primary-color: #fff;
  --btn-warn-bg: rgba(245, 158, 11, 0.15);
  --btn-warn-border: rgba(245, 158, 11, 0.45);
  --btn-warn-color: #fbbf24;
  --nav-active-color: var(--accent);
  --nav-active-bg: var(--accent-dim);
  --brand-color: #fff;
  --body-bg:
    radial-gradient(900px 420px at 12% -8%, rgba(62, 207, 191, 0.07), transparent 55%),
    radial-gradient(700px 360px at 88% 0%, rgba(225, 29, 46, 0.08), transparent 50%),
    linear-gradient(180deg, #090c12, #06080c 40%, #0a0e14);
  --theme-color: #0a0c10;
}

/* Day / light — broadcast console: cool paper, ink, restrained teal */
[data-theme="light"] {
  --bg-0: #edf1f5;
  --bg-1: #e4e9ef;
  --bg-2: #ffffff;
  --bg-3: #f3f6f9;
  --line: #c8d0da;
  --text: #121820;
  --muted: #5a6573;
  --accent: #0d7377;
  --accent-dim: rgba(13, 115, 119, 0.11);
  --live: #c1121f;
  --live-glow: rgba(193, 18, 31, 0.18);
  --auto: #1a7f37;
  --auto-glow: rgba(26, 127, 55, 0.16);
  --break: #b45309;
  --break-glow: rgba(180, 83, 9, 0.16);
  --player-a: #0d7377;
  --player-b: #2563eb;
  --log-current: rgba(193, 18, 31, 0.09);
  --log-next: rgba(13, 115, 119, 0.09);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-ui: "Outfit", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --chrome-bg: rgba(255, 255, 255, 0.97);
  --panel-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --panel-elevated: linear-gradient(180deg, #ffffff, #f0f4f8);
  --surface-muted: #eef2f6;
  --shadow-sm: 0 1px 2px rgba(18, 24, 32, 0.05), 0 0 0 1px rgba(18, 24, 32, 0.05);
  --btn-hover-border: rgba(13, 115, 119, 0.5);
  --btn-primary-bg: linear-gradient(180deg, #0e8589, #0b6568);
  --btn-primary-border: #0d7377;
  --btn-primary-color: #ffffff;
  --btn-warn-bg: #fff7ed;
  --btn-warn-border: #fdba74;
  --btn-warn-color: #9a3412;
  --nav-active-color: #0b6568;
  --nav-active-bg: rgba(13, 115, 119, 0.1);
  --brand-color: #121820;
  --body-bg:
    linear-gradient(180deg, #f0f3f7 0%, #e8edf3 55%, #e4e9ef 100%);
  --theme-color: #edf1f5;
}

/* High contrast — max legibility for bright rooms / outdoor vans */
[data-theme="contrast"] {
  --bg-0: #000000;
  --bg-1: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #1a1a1a;
  --line: #ffffff;
  --text: #ffffff;
  --muted: #d4d4d4;
  --accent: #fde047;
  --accent-dim: rgba(253, 224, 71, 0.18);
  --live: #ff2d2d;
  --live-glow: rgba(255, 45, 45, 0.55);
  --auto: #4ade80;
  --auto-glow: rgba(74, 222, 128, 0.4);
  --break: #fb923c;
  --break-glow: rgba(251, 146, 60, 0.4);
  --player-a: #fde047;
  --player-b: #38bdf8;
  --log-current: rgba(255, 45, 45, 0.28);
  --log-next: rgba(253, 224, 71, 0.18);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-ui: "Outfit", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --chrome-bg: #000000;
  --panel-bg: #0a0a0a;
  --panel-elevated: #141414;
  --surface-muted: #1a1a1a;
  --shadow-sm: none;
  --btn-hover-border: #fde047;
  --btn-primary-bg: #fde047;
  --btn-primary-border: #fde047;
  --btn-primary-color: #000000;
  --btn-warn-bg: #3a2000;
  --btn-warn-border: #fb923c;
  --btn-warn-color: #fb923c;
  --nav-active-color: #000000;
  --nav-active-bg: #fde047;
  --brand-color: #ffffff;
  --body-bg: #000000;
  --theme-color: #000000;
}

/* Night desk — warm lamp, late-shift chrome */
[data-theme="night"] {
  --bg-0: #140f0c;
  --bg-1: #1b1511;
  --bg-2: #241c16;
  --bg-3: #2e241c;
  --line: rgba(210, 180, 140, 0.18);
  --text: #f3e6d4;
  --muted: #a89078;
  --accent: #e8a45c;
  --accent-dim: rgba(232, 164, 92, 0.14);
  --live: #e11d2e;
  --live-glow: rgba(225, 29, 46, 0.45);
  --auto: #7cb87c;
  --auto-glow: rgba(124, 184, 124, 0.3);
  --break: #d4a017;
  --break-glow: rgba(212, 160, 23, 0.3);
  --player-a: #e8a45c;
  --player-b: #c4a484;
  --log-current: rgba(225, 29, 46, 0.2);
  --log-next: rgba(232, 164, 92, 0.14);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-ui: "Outfit", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --chrome-bg: rgba(20, 15, 12, 0.94);
  --panel-bg: linear-gradient(180deg, rgba(42, 32, 24, 0.98), rgba(22, 16, 12, 0.99));
  --panel-elevated: linear-gradient(180deg, rgba(52, 40, 30, 0.98), rgba(28, 20, 14, 0.99));
  --surface-muted: rgba(0, 0, 0, 0.25);
  --shadow-sm: none;
  --btn-hover-border: rgba(232, 164, 92, 0.5);
  --btn-primary-bg: linear-gradient(180deg, #c4843c, #9a6528);
  --btn-primary-border: #e8a45c;
  --btn-primary-color: #1a120c;
  --btn-warn-bg: rgba(212, 160, 23, 0.15);
  --btn-warn-border: rgba(212, 160, 23, 0.45);
  --btn-warn-color: #e8c56a;
  --nav-active-color: #e8a45c;
  --nav-active-bg: rgba(232, 164, 92, 0.14);
  --brand-color: #f3e6d4;
  --body-bg:
    radial-gradient(800px 400px at 15% -5%, rgba(232, 164, 92, 0.1), transparent 55%),
    radial-gradient(600px 320px at 90% 0%, rgba(225, 29, 46, 0.06), transparent 50%),
    linear-gradient(180deg, #1a1410, #120e0a 45%, #18120e);
  --theme-color: #1a1410;
}

/* Slate — neutral graphite console (office / daytime admin) */
[data-theme="slate"] {
  --bg-0: #1c2128;
  --bg-1: #222831;
  --bg-2: #2a313c;
  --bg-3: #343c49;
  --line: rgba(160, 174, 192, 0.2);
  --text: #e8edf4;
  --muted: #8b97a8;
  --accent: #7dd3c7;
  --accent-dim: rgba(125, 211, 199, 0.12);
  --live: #ef4444;
  --live-glow: rgba(239, 68, 68, 0.4);
  --auto: #34d399;
  --auto-glow: rgba(52, 211, 153, 0.28);
  --break: #fbbf24;
  --break-glow: rgba(251, 191, 36, 0.28);
  --player-a: #7dd3c7;
  --player-b: #93c5fd;
  --log-current: rgba(239, 68, 68, 0.16);
  --log-next: rgba(125, 211, 199, 0.1);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-ui: "Outfit", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --chrome-bg: rgba(28, 33, 40, 0.96);
  --panel-bg: linear-gradient(180deg, #2e3642, #232932);
  --panel-elevated: linear-gradient(180deg, #384252, #282f3a);
  --surface-muted: rgba(0, 0, 0, 0.22);
  --shadow-sm: none;
  --btn-hover-border: rgba(125, 211, 199, 0.45);
  --btn-primary-bg: linear-gradient(180deg, #3d9a90, #2d736c);
  --btn-primary-border: #7dd3c7;
  --btn-primary-color: #0b1210;
  --btn-warn-bg: rgba(251, 191, 36, 0.12);
  --btn-warn-border: rgba(251, 191, 36, 0.4);
  --btn-warn-color: #fbbf24;
  --nav-active-color: #7dd3c7;
  --nav-active-bg: rgba(125, 211, 199, 0.12);
  --brand-color: #e8edf4;
  --body-bg:
    radial-gradient(800px 380px at 8% -5%, rgba(125, 211, 199, 0.06), transparent 55%),
    linear-gradient(180deg, #1a1f26, #161a20 50%, #1c2128);
  --theme-color: #1c2128;
}

/* Ocean — cool blue control room (morning / news) — clearly blue, not teal-dark */
[data-theme="ocean"] {
  --bg-0: #041525;
  --bg-1: #0a1f35;
  --bg-2: #12304a;
  --bg-3: #1a3d5c;
  --line: rgba(100, 180, 230, 0.22);
  --text: #e8f4ff;
  --muted: #7eb3d4;
  --accent: #4fc3f7;
  --accent-dim: rgba(79, 195, 247, 0.16);
  --live: #ff4d6d;
  --live-glow: rgba(255, 77, 109, 0.42);
  --auto: #26c6a0;
  --auto-glow: rgba(38, 198, 160, 0.3);
  --break: #ffb020;
  --break-glow: rgba(255, 176, 32, 0.3);
  --player-a: #4fc3f7;
  --player-b: #7aa2ff;
  --log-current: rgba(255, 77, 109, 0.18);
  --log-next: rgba(79, 195, 247, 0.14);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-ui: "Outfit", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --chrome-bg: rgba(4, 21, 37, 0.95);
  --panel-bg: linear-gradient(180deg, #163954, #0c2438);
  --panel-elevated: linear-gradient(180deg, #1d4a6a, #123048);
  --surface-muted: rgba(0, 30, 50, 0.45);
  --shadow-sm: none;
  --btn-hover-border: rgba(79, 195, 247, 0.55);
  --btn-primary-bg: linear-gradient(180deg, #039be5, #0277bd);
  --btn-primary-border: #4fc3f7;
  --btn-primary-color: #041525;
  --btn-warn-bg: rgba(255, 176, 32, 0.14);
  --btn-warn-border: rgba(255, 176, 32, 0.4);
  --btn-warn-color: #ffc857;
  --nav-active-color: #4fc3f7;
  --nav-active-bg: rgba(79, 195, 247, 0.16);
  --brand-color: #e8f4ff;
  --body-bg:
    radial-gradient(900px 420px at 12% -8%, rgba(79, 195, 247, 0.16), transparent 55%),
    radial-gradient(700px 360px at 90% 0%, rgba(255, 77, 109, 0.07), transparent 50%),
    linear-gradient(180deg, #062038, #041525 50%, #071a2c);
  --theme-color: #041525;
}

/* Signal — classic live red/black energy (sport / event) */
[data-theme="signal"] {
  --bg-0: #0a0606;
  --bg-1: #120909;
  --bg-2: #1a0e0e;
  --bg-3: #261414;
  --line: rgba(220, 120, 120, 0.2);
  --text: #f5e8e8;
  --muted: #a88888;
  --accent: #ff3b3b;
  --accent-dim: rgba(255, 59, 59, 0.14);
  --live: #ff1a1a;
  --live-glow: rgba(255, 26, 26, 0.55);
  --auto: #22c55e;
  --auto-glow: rgba(34, 197, 94, 0.3);
  --break: #f59e0b;
  --break-glow: rgba(245, 158, 11, 0.3);
  --player-a: #ff5c5c;
  --player-b: #fca5a5;
  --log-current: rgba(255, 26, 26, 0.22);
  --log-next: rgba(255, 59, 59, 0.12);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-ui: "Outfit", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --chrome-bg: rgba(10, 6, 6, 0.95);
  --panel-bg: linear-gradient(180deg, rgba(36, 16, 16, 0.98), rgba(14, 8, 8, 0.99));
  --panel-elevated: linear-gradient(180deg, rgba(48, 20, 20, 0.98), rgba(20, 10, 10, 0.99));
  --surface-muted: rgba(0, 0, 0, 0.3);
  --shadow-sm: none;
  --btn-hover-border: rgba(255, 59, 59, 0.55);
  --btn-primary-bg: linear-gradient(180deg, #c41e2a, #8f121c);
  --btn-primary-border: #ff3b3b;
  --btn-primary-color: #fff;
  --btn-warn-bg: rgba(245, 158, 11, 0.14);
  --btn-warn-border: rgba(245, 158, 11, 0.4);
  --btn-warn-color: #fbbf24;
  --nav-active-color: #ff6b6b;
  --nav-active-bg: rgba(255, 59, 59, 0.14);
  --brand-color: #fff;
  --body-bg:
    radial-gradient(800px 400px at 50% -10%, rgba(255, 26, 26, 0.12), transparent 55%),
    linear-gradient(180deg, #100808, #0a0606 50%, #120909);
  --theme-color: #0a0606;
}

/* Soft — low-glare cool stone for long shifts / senior-friendly */
[data-theme="soft"] {
  --bg-0: #e6e8ec;
  --bg-1: #dde1e7;
  --bg-2: #f4f5f7;
  --bg-3: #eceef2;
  --line: #c9ced6;
  --text: #2a3038;
  --muted: #66707c;
  --accent: #3f6f74;
  --accent-dim: rgba(63, 111, 116, 0.12);
  --live: #b33a3a;
  --live-glow: rgba(179, 58, 58, 0.14);
  --auto: #3d7a4a;
  --auto-glow: rgba(61, 122, 74, 0.12);
  --break: #8a6a3a;
  --break-glow: rgba(138, 106, 58, 0.12);
  --player-a: #3f6f74;
  --player-b: #4a6280;
  --log-current: rgba(179, 58, 58, 0.09);
  --log-next: rgba(63, 111, 116, 0.09);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-ui: "Outfit", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --chrome-bg: rgba(244, 245, 247, 0.97);
  --panel-bg: linear-gradient(180deg, #f7f8fa, #eef0f4);
  --panel-elevated: linear-gradient(180deg, #f7f8fa, #e6e8ec);
  --surface-muted: #e6e8ec;
  --shadow-sm: 0 1px 2px rgba(42, 48, 56, 0.04);
  --btn-hover-border: rgba(63, 111, 116, 0.45);
  --btn-primary-bg: linear-gradient(180deg, #4b8288, #3f6f74);
  --btn-primary-border: #3f6f74;
  --btn-primary-color: #f4f5f7;
  --btn-warn-bg: #f3eee6;
  --btn-warn-border: #d4c4a8;
  --btn-warn-color: #6e5528;
  --nav-active-color: #3f6f74;
  --nav-active-bg: rgba(63, 111, 116, 0.12);
  --brand-color: #2a3038;
  --body-bg: linear-gradient(180deg, #eceef2, #e4e7ec);
  --theme-color: #e6e8ec;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-ui);
}

body {
  background: var(--body-bg);
  background-attachment: fixed;
}

button,
input,
select,
a.ctrl {
  font: inherit;
}

input[type="checkbox"],
input[type="radio"],
input[type="range"] {
  accent-color: var(--accent);
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ——— Chrome ——— */
.top-dock {
  position: sticky;
  top: 0;
  z-index: 30;
}

.chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--chrome-bg);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
}

/* Persistent ON AIR mini bar — all tabs */
.onair-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--chrome-bg);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.onair-strip-flag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.onair-strip-flag[data-live="true"] {
  color: #fff;
  background: var(--live);
  border-color: var(--live);
  box-shadow: 0 0 14px var(--live-glow);
}

.onair-strip-mode {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--auto);
}

body.mode-live .onair-strip-mode { color: var(--live); }
body.mode-break .onair-strip-mode { color: var(--break); }
body.mode-auto .onair-strip-mode { color: var(--auto); }

.onair-strip-deck {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  min-width: 4.5rem;
}

.onair-strip-now {
  flex: 1 1 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.onair-strip-now strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.onair-strip-now span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.onair-strip-times {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.onair-strip-remain {
  color: var(--muted);
  font-size: 12px;
}

.onair-strip-remain strong {
  color: var(--accent);
  font-size: 13px;
}

/* Prep / Nyheter page */
.prep-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.2fr) minmax(260px, 0.95fr);
  gap: 10px;
  align-items: stretch;
  min-height: calc(100vh - 180px);
}

.prep-sources,
.prep-detail,
.prep-rundown {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.prep-source-tabs {
  display: flex;
  gap: 6px;
  padding: 0 12px 8px;
}

.prep-source-tabs .ctrl.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.prep-district-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px 8px;
  font-size: 12px;
  color: var(--muted);
}

.prep-district-label select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
}

.prep-sources > .ctrl {
  margin: 0 12px 8px;
  align-self: flex-start;
}

.prep-story-list {
  list-style: none;
  margin: 0;
  padding: 0 8px 12px;
  overflow: auto;
  flex: 1;
}

.prep-story-list li {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 10px;
  margin-bottom: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.prep-story-list li:hover {
  background: rgba(255, 255, 255, 0.04);
}

.prep-story-list li.is-focused {
  border-color: var(--accent);
  background: rgba(45, 212, 191, 0.08);
}

.prep-story-list li.is-marked {
  box-shadow: inset 3px 0 0 var(--break);
}

.prep-story-list .prep-story-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.prep-story-list .prep-story-sum {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prep-detail-body {
  padding: 4px 14px 16px;
  overflow: auto;
  flex: 1;
}

.prep-kind {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--break);
}

.prep-detail-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.prep-pub {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.prep-lead {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

.prep-body {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-wrap;
}

.prep-link-wrap {
  margin: 0 0 14px;
  font-size: 13px;
}

.prep-notes-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.prep-notes-label textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  resize: vertical;
}

.prep-empty {
  padding: 24px 16px;
  color: var(--muted);
  font-size: 14px;
}

.prep-rd-toolbar {
  border-bottom: 1px solid var(--line);
}

.prep-rundown-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow: auto;
  flex: 1;
  counter-reset: prep-rd;
}

.prep-rundown-list li {
  counter-increment: prep-rd;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.prep-rundown-list li::before {
  content: counter(prep-rd);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding-top: 2px;
}

.prep-rundown-list .rd-title {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
}

.prep-rundown-list .rd-meta {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.prep-rundown-list .rd-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prep-sources #prepSourceMeta {
  padding: 0 12px 10px;
}

@media (max-width: 1100px) {
  .prep-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .prep-story-list {
    max-height: 280px;
  }

  .prep-rundown-list {
    max-height: 320px;
  }
}

.chrome-brand {
  min-width: 120px;
}

.brand-mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: var(--brand-color);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  animation: none;
}

[data-theme="dark"] .brand-mark {
  background: linear-gradient(90deg, #fff 15%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-sheen 6s ease-in-out infinite;
}

.brand-sub {
  margin: 2px 0 0;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes brand-sheen {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.mode-row {
  display: flex;
  gap: 6px;
}

.mode-btn {
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 12px;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, transform 0.12s;
}

.mode-btn:hover {
  transform: translateY(-1px);
}

.mode-btn.mode-live.is-active {
  color: #fff;
  background: var(--live);
  border-color: #ff4d5c;
  box-shadow: 0 0 18px var(--live-glow);
}

.mode-btn.mode-auto.is-active {
  color: #04140a;
  background: var(--auto);
  border-color: #4ade80;
  box-shadow: 0 0 18px var(--auto-glow);
}

.mode-btn.mode-break.is-active {
  color: #1a0f00;
  background: var(--break);
  border-color: #fbbf24;
  box-shadow: 0 0 18px var(--break-glow);
}

.chrome-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-left: auto;
}

.clock {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.weather-inline {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.weather-place {
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}

.on-air-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.on-air-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4b5563;
}

.on-air-btn.is-live {
  color: #fff;
  background: linear-gradient(180deg, #ff2a3a, #b10f1c);
  border-color: #ff4455;
  animation: onair-pulse 1.4s ease-out infinite;
}

.on-air-btn.is-live .on-air-dot {
  background: #fff;
  box-shadow: 0 0 8px #fff;
}

.on-air-btn.is-live .on-air-dot {
  background: #fff;
  box-shadow: 0 0 8px #fff;
}

.auto-gen-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.auto-gen-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 12px;
  line-height: 1;
}

.auto-gen-btn.is-on {
  color: #04140a;
  background: var(--auto);
  border-color: #4ade80;
  box-shadow: 0 0 16px var(--auto-glow);
  animation: auto-spin-pulse 2.4s linear infinite;
}

.auto-gen-btn.is-on .auto-gen-icon {
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes auto-spin-pulse {
  0%,
  100% {
    box-shadow: 0 0 10px var(--auto-glow);
  }
  50% {
    box-shadow: 0 0 22px var(--auto-glow);
  }
}

.auto-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.auto-status.is-on {
  color: var(--auto);
}

.auto-queue-status {
  display: block;
  width: 100%;
  flex-basis: 100%;
  font-size: 12px;
  color: var(--accent, #3ecfbf);
  font-family: var(--font-mono);
  margin: 4px 0 2px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(62, 207, 191, 0.08);
  border: 1px solid var(--line);
}

.auto-queue-status[hidden] {
  display: none !important;
}

.news-bulletin-panel {
  margin: 0 0 16px;
  padding: 12px 14px;
}

.news-bulletin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.prep-bulletin-box {
  width: 100%;
  min-height: 140px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.45;
}

#bulletinStatusBadge.is-on {
  color: var(--accent, #3ecfbf);
  border-color: var(--accent, #3ecfbf);
}

.news-schedule-fieldset {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.editor-active-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  box-shadow: var(--shadow-sm);
}

.editor-active-bar label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.editor-active-bar select,
.editor-active-bar input[type="text"],
.editor-panel input[type="text"] {
  background: var(--bg-0);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 8px 10px;
  min-height: 34px;
  min-width: 160px;
}

.editor-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.editor-hub-card {
  appearance: none;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  color: var(--text);
  padding: 16px 14px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  min-height: 88px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.editor-hub-card strong {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-size: 22px;
  font-weight: 400;
}

.editor-hub-card span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.editor-hub-card:hover,
.editor-hub-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

.editor-hub-card.is-active {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.editor-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  border-radius: 6px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  min-height: 36px;
}

.editor-tab.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, var(--bg-2));
}

#editorHubBack {
  margin-left: auto;
}

.editor-workspace-panel[hidden] {
  display: none !important;
}

.editor-hub[hidden],
.editor-tabs[hidden],
#view-editor.is-editor-workspace .editor-hub,
#view-editor.is-editor-hub .editor-tabs {
  display: none !important;
}

#view-editor.is-editor-hub .editor-workspace-panel {
  display: none !important;
}

@media (max-width: 700px) {
  .editor-hub {
    grid-template-columns: 1fr 1fr;
  }
  .editor-tab {
    flex: 1 1 auto;
    text-align: center;
  }
  #editorHubBack {
    margin-left: 0;
    flex: 1 1 100%;
  }
}

@media (max-width: 420px) {
  .editor-hub {
    grid-template-columns: 1fr;
  }
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 920px;
}

@media (max-width: 1000px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
}

.slot-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.slot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 55vh;
  overflow: auto;
  counter-reset: slot;
}

.slot-list li {
  counter-increment: slot;
  display: grid;
  grid-template-columns: 36px 130px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.slot-list li::before {
  content: counter(slot);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.slot-list select,
.slot-list input {
  background: var(--bg-0);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 8px;
  min-height: 32px;
  width: 100%;
}

.slot-type-a {
  box-shadow: inset 3px 0 0 var(--accent);
}
.slot-type-b {
  box-shadow: inset 3px 0 0 var(--player-b);
}
.slot-type-c {
  box-shadow: inset 3px 0 0 #c4b5fd;
}
.slot-type-jingle {
  box-shadow: inset 3px 0 0 #e8a54b;
}
.slot-type-reklame {
  box-shadow: inset 3px 0 0 var(--break);
}
.slot-type-innslag {
  box-shadow: inset 3px 0 0 var(--live);
}

.slot-actions {
  display: flex;
  gap: 4px;
}

.playlist-picker {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 55vh;
  overflow: auto;
  display: grid;
  gap: 4px;
}

.playlist-picker li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
}

.playlist-picker label {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  cursor: pointer;
  min-width: 0;
}

@keyframes onair-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--live-glow);
  }
  70% {
    box-shadow: 0 0 0 12px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.chrome-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-muted);
}

.nav-link.is-active {
  color: var(--nav-active-color);
  background: var(--nav-active-bg);
}

a.nav-v2-link {
  text-decoration: none;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
}

a.nav-v2-link:hover {
  background: rgba(59, 130, 246, 0.22);
}

body.mode-live .chrome {
  box-shadow: inset 0 -2px 0 var(--live);
}
body.mode-auto .chrome {
  box-shadow: inset 0 -2px 0 var(--auto);
}
body.mode-break .chrome {
  box-shadow: inset 0 -2px 0 var(--break);
}

.main {
  flex: 1;
  padding: 10px 12px 16px;
  min-height: 0;
}

.view {
  display: none;
  animation: view-in 0.28s ease;
}

.view.is-active {
  display: block;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ——— Navigator grid (Dalet-like) ——— */
.navigator {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(168px, 200px);
  grid-template-rows: auto 1fr;
  gap: 8px;
  min-height: calc(100vh - 110px);
}

.players {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
}

.deck-queue {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  max-height: 180px;
}

.deck-queue-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.deck-queue-head strong {
  color: var(--text);
  letter-spacing: 0.04em;
}

.deck-queue-count {
  font-family: var(--font-mono);
  margin-right: auto;
}

.deck-queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
  counter-reset: dq;
}

.deck-queue-list li {
  counter-increment: dq;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 5px 4px;
  border-bottom: 1px solid rgba(127, 127, 127, 0.12);
  font-size: 12px;
}

.deck-queue-list li::before {
  content: counter(dq);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.deck-queue-list .dq-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.deck-queue-list .dq-meta {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}

.deck-queue-list .dq-actions {
  display: flex;
  gap: 2px;
}

.deck-queue-empty {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.deck-queue-empty[hidden] {
  display: none;
}

.log-list li.is-marker {
  grid-template-columns: 1fr;
  justify-items: stretch;
  background: var(--surface-muted);
  border-top: 1px dashed var(--break);
  border-bottom: 1px dashed var(--break);
  padding: 6px 12px;
}

.log-list li.is-marker .log-marker-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--break);
}

.log-list li.is-marker-end .log-marker-label {
  color: var(--muted);
}

.log-list li.is-ad {
  box-shadow: inset 3px 0 0 var(--break);
}

.log-list li.is-jingle-row {
  box-shadow: inset 3px 0 0 var(--accent);
}

.cartwall {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-sm);
}

.program-log {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.log-rundown-row {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 8px;
  min-height: 300px;
  align-items: stretch;
}

.log-rundown-row .program-log {
  grid-column: auto;
  min-height: 300px;
}

.rundown-panel {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.rundown-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.rundown-toolbar input[type="text"],
.rundown-toolbar select {
  flex: 1 1 120px;
  min-width: 100px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 4px 8px;
  font: inherit;
  font-size: 12px;
}

.rundown-pickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
}

.rundown-picker-block {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  padding: 8px;
}

.rundown-picker-block:last-child {
  border-right: none;
}

.rundown-picker-block h3 {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.rundown-source-list,
.rundown-items {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  overflow: auto;
  flex: 1;
  min-height: 120px;
  max-height: 260px;
}

.rundown-source-list li,
.rundown-items li,
.news-list li.news-pick {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 6px;
  align-items: start;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.rundown-items li {
  grid-template-columns: 1fr auto;
}

.rundown-items .rd-kind {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--break);
  margin-right: 4px;
}

.log-notes-input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 4px;
}

.log-notes-input:focus {
  border-color: var(--line);
  color: var(--text);
  outline: none;
  background: var(--bg-2);
}

.log-title-input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  padding: 1px 2px;
  border-radius: 4px;
}

.log-title-input:focus {
  border-color: var(--line);
  outline: none;
  background: var(--bg-2);
}

.settings-stub {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0;
  opacity: 0.75;
}

.settings-stub legend {
  padding: 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.settings-note {
  margin: -4px 0 8px;
  font-size: 12px;
}

.dsp-fieldset {
  margin-top: 20px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

.dsp-fieldset legend {
  padding: 0 6px;
  font-weight: 600;
  color: var(--text);
}

.dsp-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin: 8px 0;
  cursor: pointer;
}

.dsp-plugin {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
}

.dsp-plugin-head {
  margin-bottom: 6px;
}

.dsp-plugin label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 6px 0;
  font-size: 13px;
  color: var(--muted);
}

.dsp-plugin label.dsp-toggle {
  display: flex;
  grid-template-columns: unset;
  color: var(--text);
}

.dsp-plugin input[type="range"] {
  width: 100%;
  grid-column: 1 / -1;
}

.dsp-plugin [data-val] {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  min-width: 3.5em;
  text-align: right;
}

.dsp-plugin select {
  grid-column: 1 / -1;
}

#dspLevelMeter {
  font-family: var(--font-mono);
  font-size: 12px;
}

.preview-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--chrome-bg);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: 13px;
  max-width: min(92vw, 520px);
  pointer-events: auto;
}

/* display:flex above must not defeat the hidden attribute (was covering cartwall) */
.preview-bar[hidden] {
  display: none !important;
  pointer-events: none;
}

#playlistPicker li {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

#playlistPicker li label {
  flex: 1;
  min-width: 0;
}

#playlistPicker .pfl-inline {
  flex-shrink: 0;
}

.preview-bar span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-search {
  margin: 0 0 10px;
}

.picker-footer-actions {
  display: flex;
  gap: 8px;
  padding: 10px 0 0;
  justify-content: flex-end;
}

.pad.is-empty .pad-title {
  opacity: 0.75;
  font-style: italic;
}

.picker-inner {
  max-height: min(80vh, 720px);
  overflow: auto;
}

.ctrl.accent {
  border-color: rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
}

.ctrl.wide {
  width: 100%;
}

.duck-badge {
  font-size: 10px;
  color: var(--break);
  letter-spacing: 0.04em;
}

/* Players */
.player {
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.player::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  opacity: 0.7;
}

.player-a::before {
  background: var(--player-a);
}
.player-b::before {
  background: var(--player-b);
}

.player.is-playing {
  box-shadow: inset 0 0 0 1px rgba(225, 29, 46, 0.45), 0 0 28px rgba(225, 29, 46, 0.12);
}

.player-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-id {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 18px;
  background: var(--bg-0);
  border: 1px solid var(--line);
}

.player-a .player-id {
  color: var(--player-a);
}
.player-b .player-id {
  color: var(--player-b);
}

.player-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}

.player-air {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.player-air.is-on {
  color: #fff;
  background: var(--live);
  border-color: #ff4455;
  animation: onair-pulse 1.4s ease-out infinite;
}

.player-timer {
  font-family: var(--font-mono);
  font-size: clamp(42px, 5.5vw, 64px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 6px 0 2px;
  color: var(--text);
  text-shadow: 0 0 24px rgba(62, 207, 191, 0.15);
}

.player.is-playing .player-timer {
  color: #fff;
  text-shadow: 0 0 20px var(--live-glow);
  animation: timer-glow 2s ease-in-out infinite;
}

@keyframes timer-glow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.88;
  }
}

.player-remain {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.player-remain strong {
  color: var(--accent);
  font-size: 14px;
}

.player-title {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  margin: 2px 0 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vu {
  display: flex;
  gap: 2px;
  height: 16px;
  align-items: flex-end;
  margin-bottom: 8px;
}

.vu i {
  flex: 1;
  display: block;
  height: 30%;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--accent), #1a6b62);
  opacity: 0.3;
}

.player.is-playing .vu i {
  animation: vu 0.5s ease-in-out infinite;
  opacity: 0.95;
}

.player.is-playing .vu i:nth-child(odd) {
  animation-duration: 0.38s;
}
.player.is-playing .vu i:nth-child(3n) {
  animation-delay: 0.1s;
}

@keyframes vu {
  0%,
  100% {
    height: 22%;
  }
  50% {
    height: 100%;
  }
}

.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: auto;
}
.player-controls .ctrl.wide {
  flex: 1 1 100%;
  min-width: min(100%, 7rem);
  justify-content: center;
}

.gain-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}

.gain-mini input {
  width: 72px;
  accent-color: var(--accent);
}

.xfade-strip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  min-width: 72px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.xfade-strip input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  height: 120px;
  width: 28px;
  accent-color: var(--accent);
}

.xfade-meters {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
}

/* Cartwall */
.cartwall-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cartwall-head h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cartwall-head span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.pads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.pad {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--text);
  padding: 8px 4px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  justify-items: center;
  transition: transform 0.1s, border-color 0.15s, background 0.15s;
}

.pad:hover {
  border-color: rgba(62, 207, 191, 0.5);
}

.pad:active,
.pad.is-fired {
  transform: scale(0.96);
  background: rgba(62, 207, 191, 0.2);
  border-color: var(--accent);
}

.pad kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  background: transparent;
}

.pad span {
  font-size: 10px;
  color: var(--muted);
}

.cart-aux {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cart-now {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Program log — dense */
.log-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.log-head h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.log-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.log-head .ctrl {
  margin-left: auto;
}

.log-cols {
  display: grid;
  grid-template-columns: 52px 22px 1.3fr 0.9fr 64px 1fr 150px;
  gap: 8px;
  padding: 4px 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
}

.log-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
  max-height: calc(100vh - 420px);
  min-height: 200px;
}

.log-list li {
  display: grid;
  grid-template-columns: 52px 22px 1.3fr 0.9fr 64px 1fr 150px;
  gap: 8px;
  align-items: center;
  padding: 5px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 13px;
  cursor: default;
}

.log-list li.is-missing {
  opacity: 0.55;
  background: rgba(225, 29, 46, 0.06);
}

.log-list li.is-missing .log-st {
  color: var(--live);
}

.log-list li:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.log-list li.is-current {
  background: var(--log-current);
  box-shadow: inset 3px 0 0 var(--live);
}

.log-list li.is-next {
  background: var(--log-next);
  box-shadow: inset 3px 0 0 var(--accent);
}

.log-st {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.log-list li.is-current .log-st {
  color: #ff6b78;
  font-weight: 700;
}

.log-list li.is-next .log-st {
  color: var(--accent);
  font-weight: 700;
}

.log-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-artist,
.log-cat,
.log-dur {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-dur {
  font-family: var(--font-mono);
}

.log-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.log-empty {
  margin: 0;
  padding: 24px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.log-empty[hidden] {
  display: none;
}

/* Shared controls */
.ctrl,
a.ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.ctrl:hover,
a.ctrl:hover {
  border-color: var(--btn-hover-border);
  transform: translateY(-1px);
}

.ctrl.primary,
a.ctrl.primary {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-border);
  color: var(--btn-primary-color);
}

.ctrl.accent {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.ctrl.warn {
  background: var(--btn-warn-bg);
  border-color: var(--btn-warn-border);
  color: var(--btn-warn-color);
}

.ctrl.small {
  min-height: 26px;
  font-size: 11px;
  padding: 0 8px;
}

.ctrl.wide {
  width: 100%;
}

input[type="range"] {
  accent-color: var(--accent);
}

/* Secondary views */
.view-header {
  margin-bottom: 14px;
}

.view-header h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
}

.view-header p {
  margin: 0;
  color: var(--muted);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.accounts-grid,
.now-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.now-hero {
  grid-column: span 2;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.now-hero h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.03em;
}

.np-mode {
  margin-top: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
}

.signal-monitor {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 64px;
  margin: 10px 0;
}

.signal-monitor span {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--accent), #14534c);
  animation: signal 1s ease-in-out infinite;
}

.signal-monitor span:nth-child(2n) {
  animation-duration: 0.75s;
}
.signal-monitor span:nth-child(3n) {
  animation-delay: 0.15s;
}

@keyframes signal {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 0.9;
  }
}

.account-status {
  font-family: var(--font-mono);
  font-size: 13px;
}

.scopes {
  font-size: 11px;
  color: var(--muted);
  word-break: break-word;
  min-height: 2em;
}

.config-note {
  margin-top: 12px;
  color: var(--break);
  font-size: 13px;
}

.deck-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lib-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lib-layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) minmax(280px, 1.4fr) minmax(240px, 1fr);
  gap: 12px;
  align-items: start;
}

@media (max-width: 1100px) {
  .lib-layout {
    grid-template-columns: 1fr 1fr;
  }
  .lib-search-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .lib-panels {
    grid-template-columns: 1fr;
  }
  .lib-layout {
    grid-template-columns: 1fr;
  }
}

.lib-list-nav {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lib-list-nav li {
  margin: 0;
}

.lib-list-nav button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2, var(--panel));
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.lib-list-nav button:hover {
  border-color: var(--accent);
}

.lib-list-nav button.is-active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.lib-list-nav .lib-nav-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.lib-list-nav button.is-active .lib-nav-count {
  color: var(--accent);
}

.lib-scan-row {
  margin-bottom: 8px;
}

.lib-track-editor {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(62vh, 720px);
  overflow: auto;
}

.lib-track-editor li {
  display: grid;
  grid-template-columns: 28px 28px 52px minmax(0, 1fr) 56px auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2, transparent);
  cursor: pointer;
}

.lib-track-editor .lib-ord {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.lib-track-editor .track-meta {
  min-width: 0;
}

.lib-track-editor .track-meta strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lib-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.lib-cover {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--muted, #8493a8) 25%, transparent);
}
.lib-search-results .lib-cover {
  width: 32px;
  height: 32px;
}

.lib-track-editor .track-meta span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lib-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 10px;
}
.lib-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.lib-bulk-row {
  gap: 10px;
}
.lib-check-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.lib-col-head {
  display: grid;
  grid-template-columns: 28px 28px 52px minmax(0, 1fr) 56px auto;
  gap: 8px;
  align-items: center;
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 35%, transparent);
}
.lib-track-editor li.is-selected {
  outline: 1px solid color-mix(in srgb, #3ecf8e 55%, transparent);
  background: color-mix(in srgb, #3ecf8e 10%, transparent);
}
.lib-track-editor li.is-edited {
  border-left: 3px solid #3ecf8e;
}
.lib-track-editor li.is-raw {
  border-left: 3px solid color-mix(in srgb, var(--muted) 50%, transparent);
}
.lib-col-check {
  display: flex;
  justify-content: center;
  margin: 0;
}
.lib-status-flag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 2px 4px;
  border-radius: 4px;
}
.lib-status-flag.is-edited {
  color: #0b1a12;
  background: #3ecf8e;
}
.lib-status-flag.is-raw {
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 22%, transparent);
}
.lib-cat-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.editor-cue-panel.is-focus-edit {
  box-shadow: 0 0 0 2px color-mix(in srgb, #3ecf8e 60%, transparent);
}
.editor-cue-fine .cue-notes-label {
  grid-column: 1 / -1;
}

.lib-track-editor .track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.lib-search-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.lib-search-bar input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.lib-search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(58vh, 640px);
  overflow: auto;
}

.lib-search-results li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lib-search-results .track-meta strong {
  display: block;
  font-size: 13px;
}

.lib-search-results .track-meta span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.lib-search-results .track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.panel-head-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.panel-head-inline h3 {
  margin: 0;
  font-size: 16px;
}

.lib-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.upload-limits {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.upload-details {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.upload-details summary {
  cursor: pointer;
  margin-bottom: 8px;
  color: var(--accent);
}

.source-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  margin-right: 6px;
}

.source-tag.media {
  color: var(--accent);
  border-color: rgba(62, 207, 191, 0.4);
}

.source-tag.pc {
  color: #6ea8fe;
  border-color: rgba(110, 168, 254, 0.4);
}

.source-tag.upload {
  color: var(--break);
  border-color: rgba(245, 158, 11, 0.4);
}

.upload-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px dashed rgba(62, 207, 191, 0.45);
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
}

.upload-meta select,
.settings-form input,
.settings-form select,
.request-form input {
  background: var(--bg-0);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 8px 10px;
  min-height: 34px;
}

.upload-status {
  font-size: 12px;
  color: var(--muted);
}

.track-list,
.request-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  max-height: 60vh;
  overflow: auto;
}

.track-list li,
.request-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.track-meta strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-meta span {
  font-size: 12px;
  color: var(--muted);
}

.track-actions {
  display: flex;
  gap: 4px;
}

.request-form,
.settings-form {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  max-width: 520px;
}

.request-form {
  grid-template-columns: 1.4fr 0.8fr 1fr auto;
  max-width: none;
}

.settings-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.panel-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.picker {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-1);
  color: var(--text);
  padding: 0;
  width: min(520px, 92vw);
}

.picker::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.picker-inner {
  margin: 0;
  padding: 14px;
}

.picker-inner header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.picker-inner h3 {
  margin: 0;
}

.toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  animation: view-in 0.25s ease;
}

@media (max-width: 1100px) {
  .navigator {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .players {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .xfade-strip {
    flex-direction: row;
    min-width: 0;
  }

  .xfade-strip input[type="range"] {
    writing-mode: horizontal-tb;
    direction: ltr;
    height: auto;
    width: 100%;
    max-width: 200px;
  }

  .cartwall {
    grid-column: 1;
    grid-row: auto;
  }

  .pads {
    grid-template-columns: repeat(4, 1fr);
  }

  .program-log {
    grid-column: 1;
  }

  .log-rundown-row {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .rundown-pickers {
    grid-template-columns: 1fr;
  }

  .rundown-picker-block {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .log-cols,
  .log-list li {
    grid-template-columns: 48px 22px 1fr 90px;
  }

  .log-cols span:nth-child(4),
  .log-cols span:nth-child(5),
  .log-cols span:nth-child(6),
  .log-artist,
  .log-cat,
  .log-notes,
  .log-dur {
    display: none;
  }

  .accounts-grid,
  .now-grid {
    grid-template-columns: 1fr;
  }

  .now-hero {
    grid-column: auto;
  }

  .request-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .chrome-meta {
    margin-left: 0;
  }

  .player-timer {
    font-size: 36px;
  }

  .pads {
    grid-template-columns: repeat(2, 1fr);
  }
}

.theme-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

.theme-btn:hover {
  border-color: var(--accent);
}

.auth-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  max-width: 220px;
}

.auth-chip-user {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.auth-chip.is-authed .auth-chip-user {
  color: var(--text);
  font-weight: 600;
}

.login-dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: var(--bg-1);
  color: var(--text);
  max-width: min(420px, 92vw);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  /* Stay sharp — never inherit page blur */
  filter: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  z-index: 10050;
}

/* Dim + heavy blur so clocks / playlist / track titles are not readable */
.login-dialog::backdrop {
  background: rgba(4, 6, 10, 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(0.55) brightness(0.55);
  backdrop-filter: blur(22px) saturate(0.55) brightness(0.55);
}

/* Fallback / reinforce: blur the studio chrome itself (dialog is a sibling outside #app) */
body.is-login-open #app {
  filter: blur(18px) brightness(0.45) saturate(0.6);
  pointer-events: none;
  user-select: none;
}

/* Unlock wall must stay tappable even if a login dialog opened from a 401 */
body.is-login-open #audioUnlockBanner:not([hidden]) {
  filter: none !important;
  pointer-events: auto !important;
  z-index: 10050;
}

body.is-login-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .login-dialog::backdrop {
    -webkit-backdrop-filter: blur(26px) saturate(0.5) brightness(0.5);
    backdrop-filter: blur(26px) saturate(0.5) brightness(0.5);
    background: rgba(4, 6, 10, 0.82);
  }

  body.is-login-open #app {
    filter: blur(22px) brightness(0.4) saturate(0.55);
  }
}

.login-form {
  display: grid;
  gap: 12px;
  padding: 20px 22px 18px;
}

.login-form h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-size: 28px;
}

.login-form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.login-form input {
  background: var(--bg-0);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

.login-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-auth-fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 16px;
}

.auth-settings-row {
  gap: 8px;
}

[data-theme="light"] .login-dialog {
  box-shadow: 0 18px 40px rgba(20, 24, 32, 0.22);
  background: #f7f8fa;
}

[data-theme="light"] .login-dialog::backdrop {
  background: rgba(20, 24, 32, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(0.65) brightness(0.75);
  backdrop-filter: blur(22px) saturate(0.65) brightness(0.75);
}

[data-theme="light"] body.is-login-open #app {
  filter: blur(18px) brightness(0.7) saturate(0.65);
}

[data-theme="light"] body.is-login-open #audioUnlockBanner:not([hidden]) {
  filter: none !important;
  pointer-events: auto !important;
}

[data-theme="light"] .auth-chip {
  background: #fff;
}

.xfade-len,
.xfade-auto-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
}

.xfade-len input {
  width: 44px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 4px;
  padding: 2px 4px;
}

.cart-hint {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.pad .pad-label {
  font-size: 10px;
  color: var(--muted);
}

.pad .pad-title {
  font-size: 10px;
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pad.is-loaded {
  border-color: rgba(62, 207, 191, 0.45);
}

.pad.is-dragover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.pad.is-firing {
  background: rgba(225, 29, 46, 0.2);
  border-color: var(--live);
}

.news-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  flex: 1;
}

.news-box select {
  max-width: 140px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 4px;
  font-size: 11px;
  padding: 2px 4px;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  max-height: 220px;
  display: grid;
  gap: 6px;
}

.news-list li {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

[data-theme="light"] .news-list li {
  background: var(--bg-3);
}

.news-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  display: block;
}

.news-list a:hover {
  color: var(--accent);
}

.news-list .news-sum {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.news-meta {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.weather-settings {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-elevated, var(--panel-bg));
}
.audio-outputs-fieldset {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-elevated, var(--panel-bg));
}
.audio-outputs-fieldset legend {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 0 6px;
}
.audio-asio-note {
  border-left: 3px solid var(--accent, #6ea8fe);
  padding-left: 10px;
  margin: 8px 0 12px;
}
.audio-outputs-fieldset label,
.audio-inputs-fieldset label {
  display: block;
  margin-bottom: 8px;
}
.audio-outputs-fieldset select,
.audio-inputs-fieldset select {
  width: 100%;
  margin-top: 4px;
}
.audio-inputs-fieldset {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-elevated, var(--panel-bg));
}
.audio-inputs-fieldset legend {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 0 6px;
}
.check-inline {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.in-panel {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--panel-elevated, var(--panel-bg));
  box-shadow: inset 4px 0 0 #3ecf8e;
}
.in-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.in-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  color: #0b1a12;
  background: #3ecf8e;
  border: 1px solid #6ee7b0;
}
.in-title { font-size: 15px; flex: 1; min-width: 12ch; }
.in-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.in-level-readout {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.in-meter {
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--line) 80%, transparent);
  margin-bottom: 8px;
  overflow: hidden;
}
.in-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3ecf8e, #f59e0b 70%, #ef4444);
  transition: width 80ms linear;
}
.in-pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}
.in-pick-row label {
  flex: 1 1 10rem;
  font-size: 12px;
  color: var(--muted);
}
.in-pick-row select {
  display: block;
  width: 100%;
  margin-top: 4px;
  font: inherit;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel-bg, #121820);
  color: var(--text);
}
.in-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.in-actions .ctrl.primary { min-width: 7.5rem; }
.in-actions .ctrl.is-active,
.in-actions .ctrl[aria-pressed="true"] {
  outline: 2px solid #3ecf8e;
}
.in-gain-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
  margin-left: auto;
}
.in-gain-mini input { width: 90px; }
.in-hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.audio-unlock-banner {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: color-mix(in srgb, #0a0c10 88%, transparent);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}
.audio-unlock-banner[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden;
}
.audio-unlock-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 18px 36px;
  font-family: var(--font-display, inherit);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0b1a12;
  background: #3ecf8e;
  box-shadow: 0 8px 32px color-mix(in srgb, #3ecf8e 40%, transparent);
  cursor: pointer;
  min-width: min(80vw, 16rem);
}
.audio-unlock-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.audio-unlock-copy {
  margin: 0;
  color: #c8d0dc;
  font-size: 14px;
  text-align: center;
  max-width: 28ch;
}
.audio-unlock-status {
  margin: 0;
  min-height: 1.2em;
  color: #f5a623;
  font-size: 13px;
  text-align: center;
  max-width: 36ch;
}
@media (max-width: 720px) {
  .in-device-label { display: none; }
  .in-pick-row .ctrl.small { display: none; }
}
.weather-settings legend {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 0 6px;
}
.kommune-suggest {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: -4px 0 10px;
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-bg, #121820);
}
.kommune-suggest-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
  cursor: pointer;
}
.kommune-suggest-item:hover,
.kommune-suggest-item:focus {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  outline: none;
}
#weatherResolveNote {
  margin-top: 8px;
}

/* ——— Light mode polish (day desk) ——— */
[data-theme="light"] .chrome {
  box-shadow: 0 1px 0 var(--line);
}

[data-theme="light"] .mode-btn {
  background: #fff;
  border-color: var(--line);
  color: var(--muted);
  box-shadow: none;
}

[data-theme="light"] .mode-btn.mode-live.is-active,
[data-theme="light"] .mode-btn.mode-auto.is-active,
[data-theme="light"] .mode-btn.mode-break.is-active {
  box-shadow: none;
}

[data-theme="light"] .mode-btn.mode-auto.is-active {
  color: #fff;
}

[data-theme="light"] .mode-btn.mode-break.is-active {
  color: #fff;
}

[data-theme="light"] .on-air-btn {
  background: #fff;
  border-color: var(--line);
  color: var(--muted);
}

[data-theme="light"] .on-air-btn.is-live {
  color: #fff;
  box-shadow: 0 0 0 1px rgba(225, 29, 46, 0.2);
}

[data-theme="light"] .auto-gen-btn {
  background: #fff;
  border-color: var(--line);
  color: var(--muted);
}

[data-theme="light"] .auto-gen-btn.is-on {
  color: #fff;
  background: var(--auto);
  border-color: var(--auto);
  box-shadow: none;
}

[data-theme="light"] .theme-btn {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

[data-theme="light"] .view-header h2 {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--text);
}

[data-theme="light"] .player.is-playing {
  box-shadow: inset 0 0 0 1px rgba(225, 29, 46, 0.35), var(--shadow-sm);
}

[data-theme="light"] .player-timer {
  color: var(--text);
}

[data-theme="light"] .onair-strip-flag[data-live="true"] {
  box-shadow: none;
}

[data-theme="light"] .prep-story-list li:hover {
  background: #f5f6f8;
}

[data-theme="light"] .prep-story-list li.is-focused {
  background: var(--accent-dim);
  border-color: var(--accent);
}

[data-theme="light"] .prep-story-list li.is-marked {
  box-shadow: inset 3px 0 0 var(--break);
}

[data-theme="light"] .log-list li.is-current {
  background: var(--log-current);
}

[data-theme="light"] .log-list li.is-next {
  background: var(--log-next);
}

[data-theme="light"] .log-title-input,
[data-theme="light"] .log-notes-input,
[data-theme="light"] .rundown-toolbar input[type="text"],
[data-theme="light"] .rundown-toolbar select,
[data-theme="light"] .prep-district-label select,
[data-theme="light"] .prep-notes-label textarea,
[data-theme="light"] .settings-form input,
[data-theme="light"] .settings-form select,
[data-theme="light"] .editor-active-bar select,
[data-theme="light"] .editor-active-bar input,
[data-theme="light"] .upload-meta input,
[data-theme="light"] .slot-list input {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

[data-theme="light"] .pad.is-loaded {
  border-color: var(--accent);
  background: var(--accent-dim);
}

[data-theme="light"] .pad.is-firing,
[data-theme="light"] .pad.is-fired {
  background: #fff1f0;
  border-color: var(--live);
}

[data-theme="light"] .vu i {
  background: linear-gradient(180deg, #3ecfbf, #a7f3ec);
  opacity: 0.4;
}

[data-theme="light"] .ctrl.accent {
  color: #1d7a71;
  border-color: rgba(62, 207, 191, 0.55);
  background: rgba(62, 207, 191, 0.12);
}

[data-theme="light"] .picker,
[data-theme="light"] .picker-inner {
  background: #fff;
  color: var(--text);
}

[data-theme="light"] .signal-monitor span {
  background: #d0d5dd;
}

[data-theme="light"] .duck-badge {
  color: #c2410c;
}

[data-theme="light"] .brand-sub {
  letter-spacing: 0.12em;
}

[data-theme="light"] .xfade-strip {
  background: transparent;
}

/* —— Source icons, desk role, DJ view —— */
.desk-role {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.desk-role-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.desk-role-btn.is-active {
  background: var(--accent-dim);
  color: var(--nav-active-color);
}

.src-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--line);
  flex: 0 0 auto;
  color: var(--muted);
}

.src-icon::before {
  content: "";
  display: block;
  background: currentColor;
}

.src-icon.src-cloud {
  color: var(--accent);
}

.src-icon.src-cloud::before {
  width: 11px;
  height: 7px;
  border-radius: 6px 6px 3px 3px;
  box-shadow: 3px 2px 0 -1px currentColor;
}

.src-icon.src-local {
  color: var(--break);
}

.src-icon.src-local::before {
  width: 7px;
  height: 10px;
  border-radius: 1px;
  clip-path: polygon(15% 0, 85% 0, 100% 18%, 100% 100%, 0 100%, 0 18%);
}

.src-icon.src-missing {
  color: var(--live);
  border-color: rgba(225, 29, 46, 0.45);
}

.src-icon.src-spotify {
  color: #1db954;
  border-color: rgba(29, 185, 84, 0.45);
  font-size: 11px;
  font-weight: 700;
}

.src-icon.src-spotify::before { display: none; }

.src-icon.src-youtube {
  color: #ff0033;
  border-color: rgba(255, 0, 51, 0.4);
  font-size: 9px;
  font-weight: 700;
}

.src-icon.src-youtube::before { display: none; }

.cloud-search-head { margin-top: 18px; }
.cloud-search-note { font-size: 12px; margin: 0 0 8px; }
.cloud-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.cloud-search-bar input[type="search"] { flex: 1 1 140px; min-width: 120px; }
.cloud-result {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.cloud-result-meta { color: var(--muted); font-size: 12px; }
.cloud-result-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.cloud-creds-fieldset { margin-top: 16px; }
.cloud-creds-h { font-size: 14px; margin: 12px 0 6px; }
.yt-player-host {
  position: fixed;
  width: 1px;
  height: 1px;
  left: -9999px;
  top: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.news-title-btn {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.news-title-btn:hover { color: var(--text); }

.nr-script-box {
  width: 100%;
  min-height: 420px;
  font-family: var(--font-sans, "Outfit", sans-serif);
  font-size: 1.35rem;
  line-height: 1.55;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel, #12151c);
  color: var(--text);
  resize: vertical;
}
.nr-script-meta { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
#nrScriptTime.is-over { color: var(--break); }
.nr-mode-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.news-districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px 12px;
  margin: 8px 0 12px;
}
.news-district-check { font-size: 13px; color: var(--text); }
.news-reader-script .nr-body {
  font-size: 1.35rem;
  line-height: 1.55;
  white-space: pre-wrap;
  max-height: none;
  min-height: 280px;
}

.nr-tts-hint {
  width: 100%;
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.nnt-actions #btnAiNewsSummary {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.src-inline {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 6px;
}

.dq-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.dq-title-row .dq-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-desk="dj"] .nav-admin,
body[data-desk="dj"] .rundown-panel,
body[data-desk="dj"] .news-box,
body[data-desk="dj"] #logReseed,
body[data-desk="dj"] #logExpandBreaks,
body[data-desk="dj"] .cart-hint,
body[data-desk="dj"] .auto-gen-btn {
  display: none !important;
}

body[data-desk="dj"] .brand-sub::after {
  content: " · DJ";
  color: var(--accent);
}

body[data-desk="dj"] .log-rundown-row {
  grid-template-columns: 1fr;
}

body[data-desk="dj"] .log-list {
  max-height: min(42vh, 420px);
}

[data-theme="light"] .desk-role {
  background: #fff;
}

/* —— Professional desk (Now–Next–Then) —— */
.pro-desk {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 12px;
  align-items: start;
}

.nnt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  grid-column: 1 / -1;
}

.nnt-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--panel-elevated, var(--panel-bg));
  min-height: 140px;
}

.nnt-now {
  grid-column: 1 / -1;
  box-shadow: inset 4px 0 0 var(--live);
  background: linear-gradient(180deg, rgba(225, 29, 46, 0.12), transparent 45%), var(--panel-elevated, var(--panel-bg));
  border-color: color-mix(in srgb, var(--live) 35%, var(--line));
}

.nnt-next {
  box-shadow: inset 4px 0 0 var(--accent);
  background: var(--panel-elevated, var(--panel-bg));
  opacity: 0.95;
}

.nnt-then {
  box-shadow: inset 4px 0 0 var(--muted);
  background: var(--panel-elevated, var(--panel-bg));
  opacity: 0.88;
}

.nnt-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.nnt-badge-now { color: #fff; background: var(--live); border-color: var(--live); }
.nnt-badge-next { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.nnt-badge-then { color: var(--muted); }

.nnt-card header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.nnt-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  word-break: break-word;
}

.nnt-next .nnt-title,
.nnt-then .nnt-title { font-size: 16px; }

.nnt-artist {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.nnt-times {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.nnt-times strong { color: var(--text); }

.nnt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nnt-then-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nnt-then-list li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}

.nnt-hard {
  margin-left: auto;
  font-size: 11px;
  color: var(--break);
  font-family: var(--font-mono);
}

.wave-panel {
  grid-column: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--panel-bg);
}

.wave-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.wave-head h2 { margin: 0; font-size: 14px; flex: 1; }

.wave-bpm {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent, #3ecfbf);
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  white-space: nowrap;
  margin-left: auto;
}

.wave-track-mini {
  font-size: 12px;
  color: var(--muted);
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wave-stage {
  position: relative;
  width: 100%;
  touch-action: none;
}

.nnt-wave {
  margin: 4px 0 8px;
}

#waveCanvas {
  width: 100%;
  height: 96px;
  display: block;
  background: #0a0c10;
  border-radius: 6px;
  cursor: ew-resize;
  touch-action: none;
}

#waveCanvas.is-scrubbing {
  cursor: grabbing;
}

#waveCanvas.is-set-mode {
  cursor: crosshair;
  outline: 1px solid rgba(62, 207, 191, 0.45);
}

[data-theme="light"] #waveCanvas { background: #1c1e21; }

.hot-cues {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: stretch;
  margin-bottom: 6px;
}

.hot-cue {
  flex: 1 1 72px;
  min-width: 68px;
  max-width: 120px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2, rgba(0, 0, 0, 0.25));
  color: var(--text);
  padding: 6px 8px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  border-left-width: 3px;
  border-left-color: var(--cue-color, var(--line));
  opacity: 0.55;
  transition: opacity 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.hot-cue[data-cue-color] {
  border-left-color: attr(data-cue-color); /* fallback below via JS/inline */
}

.hot-cue.is-set {
  opacity: 1;
  background: color-mix(in srgb, var(--cue-color, #3ecfbf) 14%, transparent);
}

.hot-cue.is-empty {
  opacity: 0.45;
}

.hot-cue:hover:not(:disabled) {
  opacity: 1;
  transform: translateY(-1px);
}

.hot-cue:active {
  transform: translateY(0);
}

.hot-cue-name {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--muted);
}

.hot-cue.is-set .hot-cue-name {
  color: var(--text);
}

.hot-cue-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 2px;
}

#btnCueSetMode.is-active {
  color: #0a0c10;
  background: #3ecfbf;
  border-color: #3ecfbf;
}

.cue-fine {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.cue-fine summary {
  cursor: pointer;
  user-select: none;
}

.wave-cues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.wave-cues label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--muted);
}

.wave-cues input {
  width: 72px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--text);
  font-family: var(--font-mono);
}

.wave-hint { margin: 6px 0 0; font-size: 12px; }
.nnt-wave-hint { margin: 0 0 10px; }
.wave-hint kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-2);
}

.scrub-rail {
  position: relative;
  height: 10px;
  margin: 8px 0 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  cursor: ew-resize;
  touch-action: none;
  overflow: hidden;
}

.scrub-rail:focus-visible {
  outline: 2px solid var(--accent, #3ecfbf);
  outline-offset: 2px;
}

.scrub-rail.is-scrubbing {
  cursor: grabbing;
}

.scrub-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(62, 207, 191, 0.35), rgba(62, 207, 191, 0.55));
  pointer-events: none;
}

.scrub-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0%;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 4px rgba(62, 207, 191, 0.8);
  pointer-events: none;
}

.player-scrub {
  margin: 4px 0 8px;
  height: 8px;
}

.pro-side { grid-column: 1 / -1; grid-row: auto; }

.pro-side .cartwall {
  max-width: none;
}

.players-collapse {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--surface-muted);
}

.players-collapse summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.players-collapse[open] summary { margin-bottom: 10px; }

.cart-banks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.cart-bank {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.cart-bank.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.pads-named .pad {
  min-height: 72px;
  text-align: left;
  padding: 8px;
}

.pads-named .pad-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.pads-named .pad-title {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-top: 2px;
}

.pad.is-playing {
  border-color: var(--live);
  box-shadow: inset 0 0 0 1px var(--live);
}

.pad-remain {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-top: 4px;
}

.cart-fade-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}

.log-list-timing li {
  grid-template-columns: 72px 22px 1.4fr 0.8fr 52px 44px 52px 44px 120px;
}

.log-cols-timing {
  grid-template-columns: 72px 22px 1.4fr 0.8fr 52px 44px 52px 44px 120px;
}

.log-st-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.log-st-icon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--muted);
}

.log-list li.is-current .log-st-icon::before { background: var(--live); }
.log-list li.is-next .log-st-icon::before { background: var(--accent); }
.log-list li.is-missing .log-st-icon::before { background: var(--live); }
.log-list li.is-done .log-st-icon::before { background: var(--muted); opacity: 0.5; }

.log-menu {
  position: relative;
}

.log-menu-btn {
  min-width: 28px;
}

.log-menu-pop {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
  min-width: 140px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
  display: none;
}

.log-menu.open .log-menu-pop { display: flex; flex-direction: column; gap: 2px; }

.log-locked {
  opacity: 0.85;
}

.log-locked .log-st-icon { color: var(--break); }

/* High-contrast ON AIR profile */
body[data-onair-profile="1"] .chrome-nav .nav-admin { opacity: 0.35; }
body[data-onair-profile="1"] .chrome {
  border-bottom: 2px solid var(--live);
}
body[data-desk="dj"] .wave-cues,
body[data-desk="dj"] #logReseed,
body[data-desk="dj"] #logExpandBreaks { display: none !important; }

/* News reader */
.news-reader-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 16px;
  padding: 0 4px 24px;
}

.news-reader-script {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  background: var(--panel-bg);
  min-height: 60vh;
}

.news-reader-script h3 {
  font-size: 28px;
  margin: 0 0 16px;
  line-height: 1.25;
}

.nr-body {
  font-size: 20px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.nr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.nr-breaking {
  background: var(--live);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
}

.news-reader-side {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--panel-bg);
}

.nr-next-list,
.nr-asrun {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.nr-next-list li,
.nr-asrun li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  cursor: pointer;
}

.nr-next-list li.is-active {
  color: var(--accent);
  font-weight: 600;
}

.news-reader-clocks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.news-reader-clocks strong { color: var(--text); }

.news-box-inline {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

@media (max-width: 1100px) {
  .pro-desk,
  .nnt,
  .news-reader-layout {
    grid-template-columns: 1fr;
  }
  .pro-side { grid-column: 1; grid-row: auto; }
  .log-list-timing li,
  .log-cols-timing {
    grid-template-columns: 64px 22px 1fr 90px;
  }
  .log-cols-timing span:nth-child(n+4),
  .log-list-timing .log-artist,
  .log-list-timing .log-dur,
  .log-list-timing .log-intro,
  .log-list-timing .log-eta,
  .log-list-timing .log-delta {
    display: none;
  }
}

/* —— Visual desk: seek modes, radio spots, BED, meta —— */
.seek-modes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
}
.seek-mode {
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.seek-mode.is-active {
  color: #0a0c10;
  background: var(--accent);
  border-color: var(--accent);
}
.phrase-len {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
}
.phrase-len select {
  font: inherit;
  font-family: var(--font-mono);
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 4px;
}
.radio-spots .hot-cue {
  max-width: 140px;
  flex: 1 1 90px;
}
.meta-public-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 10px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
}
.meta-public-row strong { color: var(--text); font-weight: 600; }
.meta-np-note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.bed-panel {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--panel-elevated, var(--panel-bg));
  box-shadow: inset 4px 0 0 #6ea8fe;
}
.bed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.bed-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  background: #3b6fd9;
  border: 1px solid #6ea8fe;
}
.bed-title {
  font-size: 15px;
  flex: 1;
  min-width: 12ch;
}
.bed-loop-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.bed-level-label {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.bed-pick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.bed-pick-row select {
  flex: 1 1 14rem;
  min-width: 12rem;
  max-width: 100%;
  font: inherit;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel-bg, #121820);
  color: var(--text);
}
.bed-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}
.bed-preset-row label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bed-preset-row input {
  width: 4.5rem;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--panel-bg, #121820);
  color: var(--text);
}
.bed-wave-stage {
  position: relative;
  margin-bottom: 6px;
}
#bedWaveCanvas {
  width: 100%;
  height: 48px;
  display: block;
  background: #0a0c10;
  border-radius: 6px;
}
.bed-playhead-rail {
  position: relative;
  height: 6px;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  cursor: pointer;
}
.bed-times {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.bed-times strong { color: var(--text); }
.bed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.bed-actions .ctrl.primary { min-width: 7.5rem; }
#btnBedLoop.is-active {
  color: #0a0c10;
  background: #6ea8fe;
  border-color: #6ea8fe;
}
.bed-loop-select {
  font: inherit;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 6px;
}
.bed-gain-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.bed-gain-mini input { width: 90px; }
.bed-hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

.desk-carts { grid-column: 1 / -1; }
.adv-deck-d {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.adv-deck-d-label {
  font-size: 12px;
  color: var(--muted);
  margin-right: 4px;
}
.nnt-transport .ctrl {
  min-height: 40px;
  min-width: 4.5rem;
  font-weight: 600;
}
.nnt-transport .ctrl.wide { min-width: 7rem; }
.players-collapse summary {
  font-size: 12px;
  color: var(--muted);
}

/* Editor cue panel */
.editor-cue-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-elevated, var(--panel-bg));
  box-shadow: inset 4px 0 0 var(--accent);
}
.editor-cue-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin: 8px 0;
}
.editor-cue-search-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}
.editor-cue-search-label input,
#editorCueTrackSelect {
  min-width: 220px;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
}
#editorCueTrackSelect { flex: 1; min-width: 260px; }
.editor-cue-track {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 15px;
}
.editor-wave #editorWaveCanvas {
  width: 100%;
  height: 96px;
  display: block;
  background: #0a0c10;
  border-radius: 6px;
  cursor: crosshair;
}
#editorWaveCanvas.is-set-mode {
  outline: 1px solid rgba(62, 207, 191, 0.45);
}
.editor-cue-fine { margin-top: 10px; }

/* —— Skin picker (Settings) —— */
.skin-picker-fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px 14px;
  margin: 12px 0;
  background: var(--surface-muted);
}
.skin-picker-fieldset legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.skin-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}
@media (min-width: 900px) {
  .skin-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .skin-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.skin-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.skin-swatch:hover {
  border-color: var(--btn-hover-border);
  color: var(--text);
}
.skin-swatch.is-active {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--accent-dim);
}
.skin-swatch-chip {
  width: 100%;
  height: 28px;
  border-radius: 5px;
  border: 1px solid var(--line);
}

.skin-chip-dark {
  background: linear-gradient(135deg, #0b0f16 40%, #3ecfbf 100%);
}
.skin-chip-light {
  background: linear-gradient(135deg, #edf1f5 30%, #ffffff 55%, #0d7377 100%);
}
.skin-chip-contrast {
  background: linear-gradient(135deg, #000 40%, #fde047 100%);
}
.skin-chip-night {
  background: linear-gradient(135deg, #1a1410 40%, #e8a45c 100%);
}
.skin-chip-slate {
  background: linear-gradient(135deg, #1c2128 40%, #7dd3c7 100%);
}
.skin-chip-ocean {
  background: linear-gradient(135deg, #041525 35%, #12304a 60%, #4fc3f7 100%);
}
.skin-chip-signal {
  background: linear-gradient(135deg, #0a0606 40%, #ff3b3b 100%);
}
.skin-chip-soft {
  background: linear-gradient(135deg, #e6e8ec 35%, #3f6f74 100%);
}
.skin-select-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.skin-select-label select {
  max-width: 320px;
}

/* Light — pro broadcast polish */
[data-theme="light"] .chrome {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, var(--shadow-sm);
  backdrop-filter: blur(8px);
}
[data-theme="light"] .panel,
[data-theme="light"] .player {
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}
[data-theme="light"] .brand-mark {
  color: var(--brand-color);
  letter-spacing: 0.04em;
}
[data-theme="light"] .brand-sub {
  color: var(--accent);
  letter-spacing: 0.14em;
  font-weight: 600;
}
[data-theme="light"] .nav-link.is-active {
  font-weight: 650;
}
[data-theme="light"] .ctrl {
  background: #fff;
  border-color: var(--line);
}
[data-theme="light"] .ctrl:hover {
  border-color: var(--btn-hover-border);
}
[data-theme="light"] .ctrl.primary {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-border);
  color: var(--btn-primary-color);
}
[data-theme="light"] .news-reader-script,
[data-theme="light"] .nr-body,
[data-theme="light"] .nr-script-box {
  background: #fff;
  color: #121820;
  border-color: var(--line);
}
[data-theme="light"] .nr-body {
  font-size: 1.15rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}
[data-theme="light"] .pad {
  background: #fff;
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .vu-meter,
[data-theme="light"] .signal-monitor {
  background: var(--surface-muted);
}
[data-theme="light"] .player,
[data-theme="light"] .onair-standby,
[data-theme="light"] .standby-card {
  background: var(--panel-bg);
  border-color: var(--line);
}
[data-theme="light"] .player-title,
[data-theme="light"] .onair-now-title {
  color: var(--text);
  font-weight: 650;
}

[data-theme="contrast"] .ctrl.primary,
[data-theme="contrast"] .ctrl.accent {
  font-weight: 700;
}
[data-theme="contrast"] .line,
[data-theme="contrast"] .panel,
[data-theme="contrast"] .player {
  border-width: 2px;
}
[data-theme="night"] .brand-sub {
  color: var(--accent);
}
[data-theme="ocean"] .brand-sub {
  color: var(--accent);
}
[data-theme="signal"] .on-air-btn.is-live,
[data-theme="signal"] .mode-btn.mode-live.is-active {
  box-shadow: 0 0 18px var(--live-glow);
}
[data-theme="soft"] .view-header h2 {
  font-weight: 650;
  letter-spacing: -0.01em;
}
[data-theme="soft"] .nr-body {
  font-size: 1.2rem;
  line-height: 1.7;
}
[data-theme="slate"] .chrome {
  border-bottom: 1px solid var(--line);
}

/* —— AI news anchor —— */
.anchor-title-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}
.anchor-title-label input {
  max-width: 420px;
}
.anchor-sources-wrap {
  margin: 10px 0 6px;
}
.anchor-sources-h {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 650;
}
.anchor-sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 160px;
  overflow: auto;
}
.anchor-sources-list li {
  font-size: 12px;
  line-height: 1.35;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.anchor-sources-list a {
  color: var(--accent);
  text-decoration: none;
}
.anchor-sources-list a:hover {
  text-decoration: underline;
}
.anchor-sources-list .src-dist {
  color: var(--muted);
  margin-left: 6px;
  font-size: 11px;
}
.anchor-audio-actions {
  flex-wrap: wrap;
  margin-top: 8px;
}
.anchor-preview-audio {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 8px 0;
}
#anchorErrorMsg {
  color: var(--live);
  font-weight: 600;
}
#anchorStatusBadge.is-ready {
  background: var(--auto);
  color: #fff;
}
#anchorStatusBadge.is-error {
  background: var(--live);
  color: #fff;
}
#anchorStatusBadge.is-approved {
  background: var(--accent);
  color: #fff;
}
