/* Apollo Studio Master — single visual system (do not load apollo.css alongside) */
:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --brand-dark: #0B0D11;
  --brand-card: #13161C;
  --brand-card-hover: #171A22;
  --brand-border: #20242D;
  --brand-muted: #717886;
  --brand-dim: #9EA5B3;
  --brand-amber: #F59E0B;
  --brand-amber-hover: #D97706;
  --brand-amber-soft: rgba(245, 158, 11, 0.12);
  --brand-text: #E2E4E9;
  --brand-ink: #ffffff;
  --brand-ok: #34d399;
  --brand-header: rgba(11, 13, 17, 0.92);
  --brand-aside: #0B0D11;
  --brand-hero-a: #12151c;
  --brand-hero-b: #0b0d11;
  --brand-hero-c: #151a24;
  --brand-panel-line: rgba(32, 36, 45, 0.8);
  --brand-soft-line: rgba(32, 36, 45, 0.6);
  --brand-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --brand-input-bg: #0d1016;
  --brand-elevated: #1a1e28;
  --brand-wash: rgba(255, 255, 255, 0.025);
  --brand-wash-strong: rgba(255, 255, 255, 0.06);
  --font-sans: "Inter", "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* remap legacy tokens used by templates */
  --surface: var(--brand-dark);
  --surface-low: var(--brand-card);
  --surface-lowest: var(--brand-dark);
  --surface-c: var(--brand-card);
  --surface-high: var(--brand-card-hover);
  --surface-highest: var(--brand-border);
  --on: var(--brand-text);
  --on-var: var(--brand-dim);
  --outline: var(--brand-muted);
  --outline-v: var(--brand-border);
  --primary: var(--brand-amber);
  --primary-c: var(--brand-amber);
  --on-primary: #000;
  --on-primary-c: #000;
  --secondary: var(--brand-ok);
  --secondary-c: #059669;
  --tertiary: #67e8f9;
  --error: #f87171;
  --error-c: #7f1d1d;
  --font-h: var(--font-display);
  --font-b: var(--font-sans);
  --font-m: var(--font-mono);
}

html[data-theme="light"] {
  color-scheme: light;
  --brand-dark: #EEF1F6;
  --brand-card: #FFFFFF;
  --brand-card-hover: #F5F7FB;
  --brand-border: #D5DBE6;
  --brand-muted: #6A7385;
  --brand-dim: #3F485A;
  --brand-amber: #C9780A;
  --brand-amber-hover: #A86208;
  --brand-amber-soft: rgba(201, 120, 10, 0.12);
  --brand-text: #1C2333;
  --brand-ink: #121722;
  --brand-ok: #059669;
  --brand-header: rgba(255, 255, 255, 0.92);
  --brand-aside: #F7F9FC;
  --brand-hero-a: #FFFFFF;
  --brand-hero-b: #F3F6FB;
  --brand-hero-c: #EAF0F8;
  --brand-panel-line: rgba(30, 40, 60, 0.12);
  --brand-soft-line: rgba(30, 40, 60, 0.1);
  --brand-shadow: 0 12px 36px rgba(28, 35, 51, 0.08);
  --brand-input-bg: #F4F6FA;
  --brand-elevated: #FFFFFF;
  --brand-wash: rgba(28, 35, 51, 0.03);
  --brand-wash-strong: rgba(28, 35, 51, 0.06);
  --error: #DC2626;
  --error-c: #FEE2E2;
  --secondary-c: #047857;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--brand-text);
  background: var(--brand-dark);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: rgba(245,158,11,.2); color: var(--brand-amber); }
input[type=range] { accent-color: var(--brand-amber); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--brand-border); border-radius: 9999px; }

/* Color utility overrides (beat tw-utils hardcoded old palette) */
.bg-surface,.bg-surface-container-lowest,.bg-\[\#0B0D11\] { background-color: var(--brand-dark) !important; }
.bg-surface-container,.bg-surface-container-low { background-color: var(--brand-card) !important; }
.bg-surface-container-high { background-color: var(--brand-card-hover) !important; }
.bg-surface-container-highest { background-color: var(--brand-border) !important; }
.bg-primary,.bg-primary-container { background-color: var(--brand-amber) !important; }
.bg-primary\/5 { background-color: rgba(245,158,11,.05) !important; }
.bg-primary\/10 { background-color: rgba(245,158,11,.1) !important; }
.bg-primary\/20 { background-color: rgba(245,158,11,.2) !important; }
.bg-secondary,.bg-secondary-container { background-color: var(--brand-ok) !important; }
.bg-error-container { background-color: rgba(127,29,29,.55) !important; }
.text-on-surface,.text-white { color: var(--brand-ink) !important; }
.text-on-surface-variant,.text-brand-dim { color: var(--brand-dim) !important; }
.text-outline,.text-brand-muted { color: var(--brand-muted) !important; }
.text-outline-variant { color: var(--brand-border) !important; }
.text-primary,.text-brand-amber { color: var(--brand-amber) !important; }
.text-on-primary,.text-on-primary-container { color: #000 !important; }
.text-secondary { color: var(--brand-ok) !important; }
.text-tertiary { color: var(--tertiary) !important; }
.text-error,.text-on-error { color: var(--error) !important; }
.text-on-secondary-container { color: #ecfdf5 !important; }
.border-surface-container,.border-surface-container-high,.border-brand-border { border-color: var(--brand-border) !important; }
.border-primary\/25,.border-primary\/40 { border-color: rgba(245,158,11,.3) !important; }
.ring-primary { --tw-ring-color: var(--brand-amber); }
.accent-primary-container { accent-color: var(--brand-amber) !important; }
.font-headline-md,.font-headline-lg,.font-headline-sm,.font-display { font-family: var(--font-display) !important; }
.font-body-md,.font-body-sm,.font-body-lg { font-family: var(--font-sans) !important; }
.font-label-sm,.font-label-md,.font-label-lg,.font-code-telemetry,.font-mono { font-family: var(--font-mono) !important; }

/* Shell */
.studio-header {
  position: fixed; inset: 0 0 auto 0; height: 64px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem 0 1.25rem;
  background: var(--brand-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brand-soft-line);
  overflow: visible;
}
.studio-header-left {
  display: flex; align-items: center; gap: 0.75rem;
  min-width: 0; flex: 1 1 auto;
}
.studio-header-right {
  display: flex; align-items: center; gap: 0.45rem;
  flex: 0 0 auto; max-width: 55%;
}
.studio-brand {
  display: flex; align-items: center; gap: 0.65rem;
  min-width: 0; flex-shrink: 0;
}
.studio-brand-text {
  display: flex; flex-direction: column; min-width: 0;
}
.studio-user {
  position: relative;
  display: flex; align-items: center;
  flex-shrink: 0;
}
.studio-user-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  max-width: 200px;
  padding: 0.28rem 0.45rem 0.28rem 0.35rem;
  border-radius: 9999px;
  border: 1px solid var(--brand-soft-line);
  background: var(--brand-card);
  color: var(--brand-ink);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.studio-user-btn:hover,
.studio-user-btn.is-open {
  border-color: rgba(245,158,11,.45);
  background: var(--brand-amber-soft);
}
.studio-user-ico {
  font-size: 22px !important;
  color: var(--brand-amber);
  flex-shrink: 0;
}
.studio-user-meta {
  display: flex; flex-direction: column; align-items: flex-start;
  min-width: 0; line-height: 1.15;
}
.studio-user-name {
  font-size: 12px; font-weight: 600;
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.studio-user-role {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--brand-muted);
}
.studio-user-caret {
  font-size: 16px !important; color: var(--brand-muted); flex-shrink: 0;
  transition: transform .15s;
}
.studio-user-btn.is-open .studio-user-caret { transform: rotate(180deg); color: var(--brand-amber); }
.studio-user-menu {
  position: fixed; z-index: 10060;
  min-width: 240px; max-width: min(320px, calc(100vw - 16px));
  padding: 0.45rem;
  border-radius: 12px; border: 1px solid rgba(32,36,45,.95);
  background: #151820; box-shadow: 0 16px 44px rgba(0,0,0,.55);
  display: flex; flex-direction: column; gap: 0.35rem;
}
.studio-user-menu-head {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.5rem 0.6rem 0.65rem;
  border-bottom: 1px solid rgba(32,36,45,.85);
}
.studio-user-menu-label {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--brand-muted);
}
.studio-user-menu-head strong {
  display: block;
  font-size: 12px; font-weight: 500; color: var(--brand-ink);
  line-height: 1.35;
  overflow-wrap: anywhere; word-break: break-word;
}
.studio-user-menu-item {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  padding: 0.55rem 0.6rem; border: 0; border-radius: 8px;
  background: transparent; color: var(--brand-dim); font-size: 12px; font-weight: 500;
  text-align: left; cursor: pointer;
  flex-shrink: 0;
}
.studio-user-menu-item .material-symbols-outlined { font-size: 18px; color: var(--brand-amber); }
.studio-user-menu-item:hover { background: rgba(245,158,11,.1); color: var(--brand-ink); }
.studio-user-menu-item.danger { color: #fca5a5; }
.studio-user-menu-item.danger .material-symbols-outlined { color: #fca5a5; }
.studio-user-menu-item.danger:hover { background: rgba(248,113,113,.12); color: #fecaca; }
html[data-theme="light"] .studio-user-menu {
  background: #fff; border-color: var(--brand-panel-line);
  box-shadow: 0 12px 32px rgba(15,23,42,.12);
}
.studio-btn-ghost.icon-only { padding: 0.35rem; }
.studio-btn-ghost .btn-label { white-space: nowrap; }
.studio-pill .pill-label { white-space: nowrap; }
.studio-aside {
  position: fixed; top: 64px; left: 0; bottom: 0; width: 256px; z-index: 30;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1rem; overflow: auto;
  background: var(--brand-aside);
  border-right: 1px solid var(--brand-soft-line);
}
.studio-main-wrap {
  margin-left: 256px;
  padding-top: 64px; /* clear fixed header */
  min-height: 100vh;
}
.studio-main {
  width: 100%; max-width: 80rem; margin: 0 auto;
  min-height: calc(100vh - 64px);
  padding: 2rem 2rem 4rem;
  display: flex; flex-direction: column; gap: 2rem;
}
/* Schedule page: fill viewport height (not wider) */
.studio-main:has(.sched-studio) {
  padding-top: 1.15rem;
  padding-bottom: 0.85rem;
  gap: 0.65rem;
  height: calc(100vh - 64px);
  min-height: calc(100vh - 64px);
  max-height: calc(100vh - 64px);
  overflow: hidden;
}
.studio-main:has(.sched-studio) > * {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.studio-brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(to top right, rgba(245,158,11,.2), rgba(245,158,11,.05));
  border: 1px solid rgba(245,158,11,.3);
  box-shadow: 0 0 15px rgba(245,158,11,.15);
  color: var(--brand-amber);
}
.studio-nav-label {
  padding: 0 .75rem;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-muted);
}
.studio-nav { display: flex; flex-direction: column; gap: .25rem; margin-top: .65rem; }
.studio-nav a {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: .5rem .75rem; border-radius: 8px;
  border: 1px solid transparent;
  color: var(--brand-dim); font-size: 13px; font-weight: 500;
}
.studio-nav a:hover { color: var(--brand-ink); background: var(--brand-card); }
.studio-nav a.active {
  color: var(--brand-amber);
  background: rgba(245,158,11,.1);
  border-color: rgba(245,158,11,.2);
}
.studio-nav a .left { display: flex; align-items: center; gap: .65rem; }
.studio-nav a .material-symbols-outlined {
  font-family: "Material Symbols Outlined", sans-serif !important;
  font-size: 18px !important;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  width: 20px;
  height: 20px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
}
.material-symbols-outlined {
  font-family: "Material Symbols Outlined", sans-serif !important;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
.studio-nav a .badge {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 2px 6px; border-radius: 6px;
  background: rgba(245,158,11,.2); color: inherit;
}
.studio-nav a:not(.active) .badge {
  background: transparent; color: var(--brand-muted); font-size: 11px;
}
.studio-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .25rem .75rem; border-radius: 9999px;
  background: var(--brand-card); border: 1px solid var(--brand-soft-line);
  font-family: var(--font-mono); font-size: 12px; color: var(--brand-dim);
}
.studio-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-ok);
  box-shadow: 0 0 8px rgba(52,211,153,.6);
}
.studio-btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .75rem; border-radius: 8px;
  border: 1px solid var(--brand-panel-line);
  background: transparent; color: var(--brand-dim); font-size: 12px; font-weight: 500;
  cursor: pointer; text-decoration: none;
}
.studio-btn-ghost:hover {
  color: var(--brand-ink); border-color: rgba(245,158,11,.4); background: var(--brand-amber-soft);
}
.studio-btn-ghost.icon-only:hover,
a.studio-btn-ghost[href*="logout"]:hover {
  color: #f87171; border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.05);
}
@media (max-width: 900px) {
  .studio-user-meta { display: none; }
  .studio-user-caret { display: none; }
  .studio-user-btn { padding: 0.28rem; max-width: none; }
}
.studio-select-wrap {
  position: relative; display: flex; align-items: center;
  min-width: 0; flex: 1 1 180px; max-width: 280px;
}
.studio-select-wrap .ico-l, .studio-select-wrap .ico-r {
  position: absolute; color: var(--brand-muted); pointer-events: none;
}
.studio-select-wrap .ico-l { left: .65rem; }
.studio-select-wrap .ico-r { right: .5rem; }
.studio-select-wrap .studio-dd { flex: 1; min-width: 0; }
.studio-select-wrap .studio-dd-trigger {
  padding-left: 2.1rem;
  min-height: 2.2rem;
  font-size: 13px;
  font-weight: 500;
}
.studio-select-wrap select {
  appearance: none; cursor: pointer; width: 100%;
  background: var(--brand-input-bg); border: 1px solid rgba(245,158,11,.45);
  color: var(--brand-ink); font-size: 13px; font-weight: 500;
  border-radius: 8px; padding: .35rem 2rem .35rem 2.1rem;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.studio-select-wrap select:hover { border-color: rgba(245,158,11,.7); color: var(--brand-ink); }
.studio-select-wrap select:focus { outline: none; border-color: rgba(245,158,11,.85); box-shadow: 0 0 0 2px rgba(245,158,11,.12); }
.studio-side-card {
  margin-top: .65rem; padding: .75rem; border-radius: 12px;
  background: var(--brand-card); border: 1px solid var(--brand-soft-line);
  display: flex; flex-direction: column; gap: .5rem;
  font-family: var(--font-mono); font-size: 11px; color: var(--brand-muted);
}
.studio-flash {
  padding: .65rem .9rem; border-radius: 8px; font-size: 13px;
}
.studio-flash.ok { background: rgba(5,150,105,.2); color: var(--brand-ok); }
.studio-flash.error { background: rgba(127,29,29,.55); color: #fecaca; }

.fx-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  left: auto;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0.7rem 0.85rem 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(245,158,11,.35);
  background: rgba(18, 20, 26, .94);
  color: var(--brand-ink);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  font-size: 13px;
  line-height: 1.3;
  animation: fx-toast-in .22s ease-out;
}
.fx-toast > .material-symbols-outlined {
  font-size: 18px;
  color: var(--brand-ok, #34d399);
  flex: 0 0 auto;
}
.fx-toast.is-error {
  border-color: rgba(248,113,113,.45);
  background: rgba(40, 16, 18, .96);
}
.fx-toast.is-error > .material-symbols-outlined {
  color: #f87171;
}
html[data-theme="light"] .fx-toast.is-error {
  background: rgba(255, 245, 245, .98);
  border-color: rgba(220, 38, 38, .28);
}
.fx-toast-text { min-width: 0; }
.fx-toast-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-left: 0.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-muted);
  cursor: pointer;
  padding: 0;
}
.fx-toast-close .material-symbols-outlined { font-size: 16px; color: inherit; }
.fx-toast-close:hover { background: rgba(255,255,255,.08); color: var(--brand-ink); }
@keyframes fx-toast-in {
  from { opacity: 0; transform: translate(12px, 8px); }
  to { opacity: 1; transform: translate(0, 0); }
}
html[data-theme="light"] .fx-toast {
  background: rgba(255,255,255,.96);
  border-color: rgba(180, 83, 9, .25);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
}

/* Hero */
.hero-card {
  position: relative; overflow: hidden;
  background: var(--brand-card);
  border: 1px solid var(--brand-panel-line);
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  box-shadow: var(--brand-shadow);
}
.hero-glow {
  position: absolute; top: -6rem; right: 25%; width: 24rem; height: 24rem;
  background: rgba(245,158,11,.05); border-radius: 9999px; filter: blur(64px);
  pointer-events: none;
}
.hero-art {
  width: 11rem; height: 11rem; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(145deg, #1a1f2a, #0b0d11);
  border: 1px solid var(--brand-border);
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
  display: grid; place-items: center; position: relative;
}
.hero-art .material-symbols-outlined { font-size: 48px; color: rgba(245,158,11,.55); z-index: 1; }
.hero-art .hero-cover,
.hero-art img[data-field=cover] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: opacity .25s ease;
}
.hero-art .queue-chip {
  position: absolute; bottom: 8px; left: 8px;
  font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.8);
  padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
}
.wave-box {
  background: rgba(11,13,17,.7); border: 1px solid rgba(32,36,45,.6);
  border-radius: 12px; padding: 1.25rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.wave-stack {
  position: relative;
  width: 100%;
  height: 64px;
}
.wave-svg {
  width: 100%;
  height: 64px;
  display: block;
}
.wave-stack .wave-svg {
  position: absolute;
  inset: 0;
}
.wave-layer-played {
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
  transition: clip-path 0.35s linear;
}
.wave-layer-played.is-seek {
  transition: none;
}
.prog-track {
  width: 100%; height: 4px; border-radius: 9999px;
  background: var(--brand-border); overflow: hidden;
}
.prog-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  border-radius: 9999px;
  transition: width 0.35s linear;
  will-change: width;
}
.prog-fill.is-seek {
  transition: none;
}
.transport-btn {
  width: 40px; height: 40px; border-radius: 9999px;
  display: grid; place-items: center;
  background: var(--brand-card); border: 1px solid var(--brand-border);
  color: var(--brand-dim);
}
.transport-btn:hover { background: var(--brand-card-hover); color: var(--brand-ink); }
.transport-btn.play {
  width: 48px; height: 48px;
  background: var(--brand-amber); border: none; color: #000;
  box-shadow: 0 0 20px rgba(245,158,11,.35);
}
.transport-btn.play:hover { background: var(--brand-amber-hover); }
.transport-btn.play.is-muted {
  background: rgba(245,158,11,.2); color: #fbbf24;
  border: 1px solid rgba(245,158,11,.45); box-shadow: none;
}
.transport-btn.play.is-muted:hover {
  background: rgba(245,158,11,.3); color: #fde68a;
}
.vol-box {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(11,13,17,.8); border: 1px solid rgba(32,36,45,.6);
  border-radius: 12px; padding: .5rem 1rem;
}
.zone-card {
  padding: 1.25rem; border-radius: 12px;
  background: var(--brand-card);
  border: 1px solid rgba(32,36,45,.7);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
  transition: border-color .15s;
}
.zone-card:hover { border-color: var(--brand-border); }
.zone-card.active { border-color: rgba(245,158,11,.3); position: relative; overflow: hidden; }
.zone-card.active::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--brand-amber);
}
.zone-play {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--brand-dark); border: 1px solid var(--brand-border); color: var(--brand-ink);
}
.zone-card.active .zone-play { background: var(--brand-amber); color: #000; border: none; }

.panel, .card {
  background: var(--brand-card);
  border: 1px solid rgba(32,36,45,.8);
  border-radius: 12px;
  padding: 1.25rem;
}
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  position: relative;
  background: radial-gradient(700px 360px at 30% 0%, var(--brand-amber-soft), transparent), var(--brand-dark);
}
.login-theme {
  position: absolute; top: 1rem; right: 1rem;
}
.login-card {
  width: min(420px, 100%);
  background: var(--brand-card);
  border: 1px solid var(--brand-panel-line);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: var(--brand-shadow);
}

.bg-emerald-400 { background-color: #34d399 !important; }
.text-emerald-400,.text-emerald-400\/80 { color: #34d399 !important; }
.bg-brand-dark { background-color: var(--brand-dark) !important; }
.bg-brand-card { background-color: var(--brand-card) !important; }
.bg-brand-amber { background-color: var(--brand-amber) !important; }
.bg-brand-amber\/10 { background-color: rgba(245,158,11,.1) !important; }
.bg-brand-border { background-color: var(--brand-border) !important; }
.border-brand-border { border-color: var(--brand-border) !important; }
.border-brand-border\/40 { border-color: var(--brand-soft-line) !important; }
.border-brand-border\/60 { border-color: var(--brand-panel-line) !important; }
.border-brand-amber\/25 { border-color: rgba(245,158,11,.25) !important; }
.text-white\/80 { color: color-mix(in srgb, var(--brand-ink) 80%, transparent) !important; }
.text-white\/90 { color: color-mix(in srgb, var(--brand-ink) 90%, transparent) !important; }
.hover\:bg-brand-amber-hover:hover { background-color: var(--brand-amber-hover) !important; }
.hover\:text-white:hover { color: var(--brand-ink) !important; }
.hover\:underline:hover { text-decoration: underline; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.-mt-0\.5 { margin-top: -0.125rem; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[12px\] { font-size: 12px; }
.text-\[13px\] { font-size: 13px; }
.text-\[15px\] { font-size: 15px; }
.text-\[16px\] { font-size: 16px; }
.text-\[17px\] { font-size: 17px; }
.text-\[19px\] { font-size: 19px; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.font-semibold { font-weight: 600; }
.tracking-wide { letter-spacing: .025em; }
.shadow-2xl { box-shadow: 0 25px 50px rgba(0,0,0,.35); }
.rounded-2xl { border-radius: 1rem; }
.gap-8 { gap: 2rem; }
.gap-7 { gap: 1.75rem; }
.gap-5 { gap: 1.25rem; }
.gap-2\.5 { gap: 0.625rem; }
.p-7 { padding: 1.75rem; }
.max-w-\[140px\] { max-width: 140px; }

@media (min-width: 1024px) {
  .lg\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:p-9 { padding: 2.25rem; }
}
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:block { display: block; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Locations tree */
.loc-hero {
  border-radius: 1rem;
  overflow: visible; /* allow StudioSelect menus to escape */
  background:
    radial-gradient(600px 180px at 15% 40%, var(--brand-amber-soft), transparent),
    linear-gradient(120deg, var(--brand-hero-a) 0%, var(--brand-hero-b) 55%, var(--brand-hero-c) 100%);
  border: 1px solid var(--brand-panel-line);
  box-shadow: var(--brand-shadow);
  position: relative;
  z-index: 5;
}
.loc-hero-inner { padding: 1.5rem 1.75rem; overflow: visible; }
.tab-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem; border-radius: 9999px;
  border: 1px solid var(--brand-panel-line);
  background: var(--brand-card); color: var(--brand-dim);
  font-size: 13px; font-weight: 500;
}
.tab-pill span { font-family: var(--font-mono); font-size: 11px; color: var(--brand-muted); }
.tab-pill.active, .tab-pill:hover {
  color: var(--brand-amber); border-color: rgba(245,158,11,.35);
  background: rgba(245,158,11,.08);
}
.loc-panel {
  background: var(--brand-card);
  border: 1px solid var(--brand-panel-line);
  border-radius: 12px; overflow: hidden;
}
/* ?? Player page: Pi media sync panel only ?? */
.pi-media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(245,158,11,.14);
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(245,158,11,.08), transparent 50%),
    radial-gradient(70% 60% at 100% 0%, rgba(52,211,153,.06), transparent 45%),
    linear-gradient(180deg, #161a22 0%, #11141a 100%);
  padding: 1.15rem 1.2rem 1.25rem;
}
.pi-media-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.pi-media-title {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  min-width: 0;
}
.pi-media-ico {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--brand-amber);
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.2);
  flex: 0 0 auto;
}
.pi-media-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-ink);
}
.pi-media-title p {
  margin: .2rem 0 0;
  font-size: 12.5px;
  color: var(--brand-muted);
  line-height: 1.35;
}
.pi-media-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: .4rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  color: var(--brand-muted);
  background: rgba(0,0,0,.25);
  flex: 0 0 auto;
}
.pi-media-pill[data-state="ready"] {
  color: #34d399;
  border-color: rgba(52,211,153,.35);
  background: rgba(52,211,153,.1);
  box-shadow: 0 0 18px rgba(52,211,153,.12);
}
.pi-media-pill[data-state="partial"] {
  color: #fbbf24;
  border-color: rgba(251,191,36,.35);
  background: rgba(251,191,36,.1);
}
.pi-media-pill[data-state="sync"] {
  color: #38bdf8;
  border-color: rgba(56,189,248,.4);
  background: rgba(56,189,248,.1);
  animation: pi-media-pulse 1.4s ease-in-out infinite;
}
.pi-media-pill[data-state="waiting"] {
  color: #9ea5b3;
  border-color: rgba(158,165,179,.25);
}
@keyframes pi-media-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

.pi-media-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.05);
}
.pi-media-ring {
  --pct: 0;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#f59e0b calc(var(--pct) * 1%), rgba(255,255,255,.08) 0);
  position: relative;
  flex: 0 0 auto;
}
.pi-media[data-state="ready"] .pi-media-ring {
  background: conic-gradient(#34d399 calc(var(--pct) * 1%), rgba(255,255,255,.08) 0);
}
.pi-media[data-state="sync"] .pi-media-ring {
  background: conic-gradient(#38bdf8 calc(var(--pct) * 1%), rgba(255,255,255,.08) 0);
}
.pi-media-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #12151b;
  border: 1px solid rgba(255,255,255,.04);
}
.pi-media-ring-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.pi-media-ring-inner strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-ink);
  letter-spacing: -.02em;
}
.pi-media-ring-inner span {
  display: block;
  margin-top: .1rem;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

.pi-media-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin-bottom: .85rem;
}
.pi-media-metrics > div {
  min-width: 0;
  padding: .55rem .65rem;
  border-radius: 9px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.04);
}
.pi-media-metrics span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-muted);
  margin-bottom: .25rem;
}
.pi-media-metrics strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--brand-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pi-media-dl {
  padding: .7rem .8rem;
  border-radius: 10px;
  background: rgba(245,158,11,.06);
  border: 1px solid rgba(245,158,11,.12);
}
.pi-media-dl-row {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}
.pi-media-dl-row > .material-symbols-outlined {
  font-size: 18px;
  color: var(--brand-amber);
  margin-top: 1px;
}
.pi-media-dl strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-ink);
}
.pi-media-dl p {
  margin: .15rem 0 0;
  font-size: 12px;
  color: var(--brand-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pi-media-dl-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  margin-top: .7rem;
}
.pi-media-dl-flow > div {
  min-width: 0;
  padding: .4rem .5rem;
  border-radius: 8px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.05);
}
.pi-media-dl-flow span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand-muted);
  margin-bottom: .2rem;
}
.pi-media-dl-flow strong {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pi-media-dl-hint {
  margin: .55rem 0 0 !important;
  font-family: var(--font-mono);
  font-size: 10.5px !important;
  color: var(--brand-muted);
  white-space: normal !important;
  line-height: 1.35;
}
.pi-media-bar {
  margin-top: .65rem;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}
.pi-media-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #34d399);
  transition: width .35s ease;
}
.pi-media-meta {
  margin: .65rem 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-muted);
}
@media (max-width: 900px) {
  .pi-media-dl-flow { grid-template-columns: 1fr; }
}

.pi-media-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: .85rem;
}
.pi-media-block {
  border-radius: 12px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.05);
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.pi-media-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.pi-media-block-head h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-ink);
}
.pi-media-block-head span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-amber);
}
.pi-media-kinds,
.pi-media-list {
  padding: .75rem .85rem;
  flex: 1;
  overflow: auto;
  max-height: 240px;
}
.pi-media-kind + .pi-media-kind { margin-top: .7rem; }
.pi-media-kind-top {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .35rem;
  font-size: 12px;
}
.pi-media-kind-top strong { color: var(--brand-ink); font-weight: 560; }
.pi-media-kind-top span {
  font-family: var(--font-mono);
  color: var(--brand-muted);
  font-size: 11px;
}
.pi-media-kind-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}
.pi-media-kind-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(245,158,11,.85), #34d399);
}

.pi-media-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.pi-media-row:last-child { border-bottom: 0; }
.pi-media-row-name {
  font-size: 13px;
  color: var(--brand-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pi-media-row-path {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--brand-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: .1rem;
}
.pi-media-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fbbf24;
  padding: .25rem .45rem;
  border-radius: 999px;
  background: rgba(251,191,36,.1);
  border: 1px solid rgba(251,191,36,.22);
}
.pi-media-tag[data-status="ready"] {
  color: #34d399;
  background: rgba(52,211,153,.1);
  border-color: rgba(52,211,153,.28);
}
.pi-media-tag[data-status="missing"] {
  color: #f87171;
  background: rgba(248,113,113,.1);
  border-color: rgba(248,113,113,.28);
}
.pi-media-tag[data-status="expected"] {
  color: #9ea5b3;
  background: rgba(158,165,179,.08);
  border-color: rgba(158,165,179,.2);
}
.pi-media-files { max-height: 320px; }
.pi-media-block-wide { min-height: 220px; }

/* Raspberry Pi device panel (replaces transport controls on player page) */
.pi-device-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .9rem;
}
.pi-device-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: .35rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(248,113,113,.35);
  color: #f87171;
  background: rgba(248,113,113,.1);
}
.pi-device-chip[data-online="1"] {
  color: #34d399;
  border-color: rgba(52,211,153,.35);
  background: rgba(52,211,153,.1);
}
.pi-device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}
.pi-device-grid > div {
  min-width: 0;
  padding: .5rem .6rem;
  border-radius: 9px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
}
.pi-device-grid span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-muted);
  margin-bottom: .2rem;
}
.pi-device-grid strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pi-device-path {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #d1d5db !important;
}
.pi-device-meta {
  margin: .7rem 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pi-device-link {
  margin-top: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: 12.5px;
  color: var(--brand-amber);
  text-decoration: none;
}
.pi-device-link:hover { color: #fbbf24; }
.pi-device-link.is-disabled {
  color: var(--brand-muted);
  pointer-events: none;
}
.pi-media-empty {
  height: 100%;
  min-height: 120px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .45rem;
  text-align: center;
  color: var(--brand-muted);
  padding: 1rem;
}
.pi-media-empty .material-symbols-outlined {
  font-size: 28px;
  opacity: .55;
  color: var(--brand-amber);
}
.pi-media-empty p {
  margin: 0;
  font-size: 12.5px;
  max-width: 220px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .pi-media-hero { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .pi-media-hero-copy { width: 100%; }
  .pi-media-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pi-media-split { grid-template-columns: 1fr; }
}
.loc-panel-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem; padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(32,36,45,.7);
}
.loc-search {
  display: flex; align-items: center; gap: .35rem;
  background: var(--brand-dark); border: 1px solid var(--brand-border);
  border-radius: 8px; padding: .35rem .6rem; min-width: 220px;
}
.loc-search .material-symbols-outlined { font-size: 18px; color: var(--brand-muted); }
.loc-search input {
  border: 0; background: transparent; color: var(--brand-ink); outline: none;
  width: 100%; font-size: 13px;
}
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.4rem; padding: 1px 6px; border-radius: 9999px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
}
.chip.hidden { display: none; }
.chip.ok { background: rgba(52,211,153,.15); color: #34d399; }
.chip.bad { background: rgba(248,113,113,.15); color: #f87171; }
.chip.busy { background: rgba(245,158,11,.14); color: #f59e0b; }
.chip.mute { background: rgba(113,120,134,.18); color: var(--brand-muted); }
.chip.alarm {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.alarm-pill {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
  gap: 0.35rem;
}
.alarm-pill.is-clear {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.25);
  color: #86efac;
}
.alarm-banner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.55), rgba(69, 10, 10, 0.35));
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  overflow: hidden;
}
.alarm-banner.hidden,
.alarm-pill.hidden {
  display: none !important;
}
.alarm-banner .material-symbols-outlined {
  font-size: 18px;
  flex-shrink: 0;
}
.alarm-banner-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.alarm-banner-sep {
  opacity: 0.45;
  flex-shrink: 0;
}
.alarm-banner-detail {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.85;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-card.is-alarm {
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.12);
}
.loc-tree { padding: .35rem 0 .75rem; }
.loc-node { border: 0; }
.loc-node > summary { list-style: none; }
.loc-node > summary::-webkit-details-marker { display: none; }
.loc-row {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem .55rem 0; cursor: pointer;
  border-bottom: 1px solid rgba(32,36,45,.35);
}
.loc-row:hover { background: rgba(255,255,255,.02); }
.loc-toggle { font-size: 16px !important; color: var(--brand-muted); width: 18px; }
.loc-node:not([open]) > summary .loc-toggle { transform: rotate(-90deg); }
.loc-row .loc-toggle { transition: transform .15s; }
.loc-node > summary .loc-toggle { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 20; }
.loc-name {
  flex: 1; min-width: 0; color: var(--brand-ink); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: .55rem;
}
.loc-name-text { min-width: 0; }
.loc-device-no {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brand-amber);
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 6px;
  padding: .15rem .45rem;
}
.loc-venue-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  border: 0;
  background: transparent;
  font: inherit;
  appearance: none;
}
.loc-venue-link:hover { background: rgba(245, 158, 11, .06); }
.loc-venue-link .loc-toggle { color: var(--brand-amber); }
.loc-stats { display: flex; gap: .35rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.loc-venue { padding: .25rem 1rem .65rem 0; }

.chip.type-audio {
  color: #7dd3fc;
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(56, 189, 248, .28);
}
.chip.type-video {
  color: #fbbf24;
  background: rgba(251, 191, 36, .12);
  border: 1px solid rgba(251, 191, 36, .3);
}
.chip.type-av {
  color: #c4b5fd;
  background: rgba(167, 139, 250, .12);
  border: 1px solid rgba(167, 139, 250, .28);
}

.venue-block > summary.venue-summary { cursor: pointer; }
.venue-addr {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--brand-muted);
  margin-top: .1rem;
}
.venue-devices {
  padding: .35rem 1rem 1rem 0;
  border-bottom: 1px solid rgba(32,36,45,.35);
}
.venue-empty {
  margin: 0 0 .65rem;
  font-size: 12px;
  color: var(--brand-muted);
}
.dev-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .55rem;
}
.dev-card {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  text-align: left;
  padding: .75rem .85rem;
  border-radius: 12px;
  border: 1px solid rgba(32,36,45,.75);
  background: rgba(11,13,17,.65);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dev-card:hover {
  border-color: rgba(245,158,11,.35);
  background: rgba(245,158,11,.05);
}
.dev-card.type-audio { border-left: 3px solid rgba(56, 189, 248, .7); }
.dev-card.type-video { border-left: 3px solid rgba(251, 191, 36, .75); }
.dev-card.type-av { border-left: 3px solid rgba(167, 139, 250, .7); }
.dev-card-icon {
  font-size: 22px !important;
  color: var(--brand-amber);
  margin-top: .1rem;
}
.dev-card.type-audio .dev-card-icon { color: #7dd3fc; }
.dev-card.type-video .dev-card-icon { color: #fbbf24; }
.dev-card.type-av .dev-card-icon { color: #c4b5fd; }
.dev-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.dev-card-top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.dev-card-label { font-size: 13px; font-weight: 600; color: var(--brand-ink); }
.dev-card-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-amber);
  letter-spacing: .03em;
}
.dev-card-token {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #9ea5b3;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  padding: .15rem .4rem;
  width: fit-content;
}
.club-metric-token {
  display: grid;
  gap: .15rem;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.club-metric-token:hover .club-metric-label { color: #fbbf24; }

.device-token-box {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: .85rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(18, 20, 28, .92);
}
.device-token-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-muted);
}
.device-token-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .85rem 1rem;
}
.device-token-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}
.device-token-qr {
  width: 168px;
  height: 168px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.device-token-qr.is-empty {
  background: rgba(255,255,255,.04);
}
.device-token-qr-cap {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-muted);
}
.device-token-side {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.device-token-row {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.device-token-field {
  flex: 1;
  min-width: 0;
  height: 2.45rem;
  padding: 0 .85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(10, 12, 18, .9);
  color: var(--brand-ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  outline: none;
}
.device-token-field:focus {
  border-color: rgba(245, 158, 11, .45);
}
.device-token-field:read-write:not([readonly]) {
  border-color: rgba(245, 158, 11, .28);
}
.device-token-icon-btn {
  flex-shrink: 0;
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(10, 12, 18, .85);
  color: #c9cdd6;
  cursor: pointer;
}
.device-token-icon-btn:hover {
  border-color: rgba(245, 158, 11, .4);
  color: var(--brand-amber);
  background: rgba(245, 158, 11, .08);
}
.device-token-icon-btn .material-symbols-outlined { font-size: 18px !important; }
.device-token-help {
  margin: 0;
  font-size: 12px;
  color: var(--brand-muted);
  line-height: 1.4;
}
.device-token-help code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-amber);
}

/* MONITOR-like create actions / clubs hero */
.mon-hero .loc-hero-inner { padding: 1.35rem 1.5rem 1.45rem; }
.mon-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.mon-hero-title {
  margin: 0;
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand-ink);
  letter-spacing: -0.02em;
}
.mon-hero-sub {
  margin: .35rem 0 0;
  font-size: 13px;
  color: var(--brand-muted);
}
.mon-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}
.mon-btn-primary,
.mon-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .55rem 1rem;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.mon-btn-primary {
  border: 0;
  background: var(--brand-amber);
  color: #111;
}
.mon-btn-primary:hover { filter: brightness(1.06); }
.mon-btn-primary:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.mon-btn-secondary {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(12, 14, 20, .55);
  color: var(--brand-ink);
}
.mon-btn-secondary:hover {
  border-color: rgba(245, 158, 11, .45);
  background: rgba(245, 158, 11, .08);
}
.mon-btn-primary .material-symbols-outlined,
.mon-btn-secondary .material-symbols-outlined { font-size: 18px !important; }
.mon-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
@media (max-width: 640px) {
  .mon-stat-row { grid-template-columns: 1fr; }
}
.mon-stat-card {
  padding: .95rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(145deg, rgba(24, 26, 34, .95), rgba(14, 16, 22, .9));
}
.mon-stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-ink);
  letter-spacing: -0.03em;
}
.mon-stat-value.is-ok { color: #34d399; }
.mon-stat-label {
  margin-top: .35rem;
  font-size: 12px;
  font-weight: 600;
  color: #e8eaef;
}
.mon-stat-meta {
  margin-top: .2rem;
  font-size: 12px;
  color: var(--brand-muted);
}
.mon-stat-meta.is-accent { color: var(--brand-amber); }
.mon-catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1.1rem .35rem;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-ink);
}
.mon-catalog-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-muted);
}

/* Studio loaders / skeletons */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.studio-spinner {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.studio-spinner-ring {
  display: inline-block;
  border-radius: 9999px;
  border-style: solid;
  border-color: rgba(245, 158, 11, .22);
  border-top-color: var(--brand-amber);
  animation: studio-spin .7s linear infinite;
}
.studio-spinner-sm .studio-spinner-ring { width: 14px; height: 14px; border-width: 2px; }
.studio-spinner-md .studio-spinner-ring { width: 20px; height: 20px; border-width: 2.5px; }
.studio-spinner-lg .studio-spinner-ring { width: 28px; height: 28px; border-width: 3px; }
.studio-spinner-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-muted);
}
@keyframes studio-spin {
  to { transform: rotate(360deg); }
}
.studio-page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  padding: 2rem 1rem;
}
.studio-skel-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: .75rem 1.1rem 1.1rem;
}
.studio-skel-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem .75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .04);
  animation: studio-skel-pulse 1.2s ease-in-out infinite;
}
.studio-skel-bar {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(245,158,11,.12), rgba(255,255,255,.04));
  background-size: 200% 100%;
  animation: studio-skel-shimmer 1.4s ease-in-out infinite;
}
.studio-skel-bar.w-icon { width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0; }
.studio-skel-bar.w-main { flex: 1; min-width: 0; height: 12px; }
.studio-skel-bar.w-chip { width: 48px; flex-shrink: 0; }
@keyframes studio-skel-pulse {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}
@keyframes studio-skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.studio-fetching-dot {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-amber);
}
.mon-stat-card.is-loading .mon-stat-value {
  min-height: 2rem;
  width: 3.2rem;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(245,158,11,.14), rgba(255,255,255,.05));
  background-size: 200% 100%;
  animation: studio-skel-shimmer 1.4s ease-in-out infinite;
  color: transparent !important;
}
.mon-stat-card.is-loading .mon-stat-meta {
  width: 70%;
  height: 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: transparent !important;
}
.mon-btn-primary .studio-spinner-ring {
  border-color: rgba(0,0,0,.18);
  border-top-color: #111;
}
.mon-catalog.is-busy { position: relative; }
.mon-catalog.is-busy::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,13,17,.04), rgba(11,13,17,.22));
  border-radius: inherit;
}
.mon-empty {
  padding: 1.5rem 1.1rem 1.75rem;
  text-align: center;
  color: var(--brand-muted);
  font-size: 13px;
}
.dev-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.dev-card-track { font-size: 11px; color: var(--brand-dim); max-width: 100%; }
.dev-card-track.mute { color: var(--brand-muted); }
.dev-card-edit { font-size: 16px !important; color: var(--brand-muted); opacity: .5; }
.dev-card:hover .dev-card-edit { opacity: 1; color: var(--brand-amber); }

.city-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border: 1px solid rgba(245,158,11,.35);
  background: transparent;
  color: var(--brand-amber);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: .28rem .55rem;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.city-edit-btn:hover { background: rgba(245,158,11,.1); }
.city-edit-btn .material-symbols-outlined { font-size: 15px !important; }

.city-stream-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.city-stream-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-muted);
}
.city-stream-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .45rem;
}
.city-stream-url {
  flex: 1 1 12rem;
  min-width: 0;
  cursor: default;
  color: var(--brand-muted) !important;
}
.city-stream-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  border: 1px solid rgba(245,158,11,.4);
  background: rgba(245,158,11,.08);
  color: var(--brand-amber);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: .45rem .75rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.city-stream-btn:hover {
  background: rgba(245,158,11,.16);
  border-color: var(--brand-amber);
}
.city-stream-btn .material-symbols-outlined { font-size: 16px !important; }

.venue-add-btn {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border: 1px dashed rgba(245,158,11,.4);
  background: transparent;
  color: var(--brand-amber);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: .28rem .55rem;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: .15rem;
}
.venue-add-btn:hover { background: rgba(245,158,11,.1); }
.venue-add-btn .material-symbols-outlined { font-size: 15px !important; }
.venue-del-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; margin-left: 0.15rem;
  border-radius: 8px; border: 1px solid rgba(239,68,68,.3);
  background: transparent; color: #f87171; cursor: pointer;
}
.venue-del-btn .material-symbols-outlined { font-size: 16px !important; }
.venue-del-btn:hover { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.5); }

.dev-type-pick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.dev-type-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
  text-align: left;
  padding: .7rem .75rem;
  border-radius: 10px;
  border: 1px solid rgba(32,36,45,.8);
  background: rgba(11,13,17,.5);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.dev-type-btn .material-symbols-outlined { font-size: 20px !important; color: var(--brand-muted); }
.dev-type-title { font-size: 13px; font-weight: 600; color: var(--brand-ink); }
.dev-type-hint { font-size: 10px; color: var(--brand-muted); line-height: 1.3; }
.dev-type-btn.is-on {
  border-color: rgba(245,158,11,.45);
  background: rgba(245,158,11,.08);
}
.dev-type-btn.is-on .material-symbols-outlined { color: var(--brand-amber); }
@media (max-width: 640px) {
  .dev-type-pick { grid-template-columns: 1fr; }
}

/* Compact device create / edit */
.device-create-form {
  gap: 0.85rem !important;
}
.device-create-form > label > span em {
  font-style: normal;
  font-weight: 400;
  color: var(--brand-muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
}
/* ——— Settings page ——— */
.settings-layout {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}
@media (max-width: 860px) {
  .settings-layout { grid-template-columns: 1fr; }
}
.settings-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.4rem;
  border-radius: 14px;
  background: rgba(19, 22, 28, 0.9);
  border: 1px solid var(--brand-soft-line);
  position: sticky;
  top: 0.6rem;
}
@media (max-width: 860px) {
  .settings-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
  }
}
.settings-tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--brand-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.settings-tab .material-symbols-outlined { font-size: 18px; }
.settings-tab:hover { color: var(--brand-ink); background: rgba(255,255,255,.04); }
.settings-tab.is-on {
  color: #fff;
  background: rgba(245, 158, 11, 0.14);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.28);
}
.settings-pane {
  padding: 1.05rem 1.15rem 1.2rem;
  min-height: 18rem;
}
.settings-pane-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.settings-pane-hint {
  margin: 0.25rem 0 0.95rem;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--brand-muted);
}

/* ——— Settings · Оповіщення ——— */
.announce-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.1rem;
  margin-bottom: 0.95rem;
}
.announce-top .settings-pane-hint,
.announce-top-hint {
  margin-bottom: 0;
}
.announce-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}
.announce-seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--brand-muted);
  border-radius: 9px;
  padding: 0.45rem 0.75rem;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.announce-seg-btn .material-symbols-outlined {
  font-size: 16px;
}
.announce-seg-btn:hover {
  color: #e8eaef;
  background: rgba(255, 255, 255, 0.04);
}
.announce-seg-btn.is-on {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35);
}
.announce-panel {
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(245, 158, 11, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    rgba(0, 0, 0, 0.22);
  animation: announce-in 0.22s ease;
}
.announce-panel-narrow {
  max-width: 42rem;
}
@keyframes announce-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.announce-panel-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.announce-panel-bar h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.announce-panel-bar p {
  margin: 0.25rem 0 0;
  font-size: 12px;
  color: var(--brand-muted);
  line-height: 1.35;
}
.announce-vol {
  display: grid;
  gap: 0.25rem;
  min-width: 9rem;
  justify-items: end;
}
.announce-vol span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-amber);
  font-weight: 650;
}
.announce-vol input[type="range"] {
  width: 9rem;
}
.announce-alarms {
  margin: 0.75rem 0 0.15rem;
}
.announce-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}
.announce-closing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .announce-seg { width: 100%; }
  .announce-seg-btn { flex: 1; justify-content: center; }
  .announce-closing-grid { grid-template-columns: 1fr; }
  .announce-vol { min-width: 0; width: 100%; justify-items: stretch; }
  .announce-vol input[type="range"] { width: 100%; }
  .announce-panel-bar { flex-direction: column; }
}
.announce-inline label {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}
.announce-inline label > span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-muted);
}
.announce-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.announce-foot {
  margin: 0.65rem 0 0;
  font-size: 11px;
  color: var(--brand-dim);
  line-height: 1.4;
}
.settings-updates-table-wrap {
  overflow: auto;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: rgba(0,0,0,.16);
}
.settings-updates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.settings-updates-table th {
  text-align: left;
  padding: 0.55rem 0.75rem;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-muted);
  border-bottom: 1px solid rgba(255,255,255,.06);
  white-space: nowrap;
}
.settings-updates-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: top;
}
.settings-updates-table tr.is-off td {
  opacity: 0.55;
}
.settings-updates-table tbody tr:last-child td {
  border-bottom: 0;
}
.settings-field-label {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-muted);
  margin-bottom: 0.35rem;
}
.settings-secret {
  max-width: 22rem;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.18);
}
.settings-secret-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.settings-secret-label {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-muted);
}
.settings-secret-top .chip {
  font-size: 9px;
  padding: 0.1rem 0.4rem;
  line-height: 1.2;
}
.settings-secret-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.settings-secret-mask {
  flex: 0 1 auto;
  width: auto;
  max-width: 8.5rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #e2e4e9;
  padding: 0.35rem 0.55rem;
  border-radius: 7px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  letter-spacing: 0.06em;
}
.settings-secret-input {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 14rem;
  padding: 0.35rem 0.55rem !important;
  font-size: 12px !important;
  height: auto !important;
}
.settings-secret-btn {
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--brand-dim);
  font-size: 11px;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}
.settings-secret-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.settings-secret-btn.is-primary {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.settings-secret-btn.is-primary:disabled { opacity: 0.4; cursor: default; }
.settings-secret-btn.is-muted { color: var(--brand-muted); }
.settings-foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--brand-soft-line);
}

.alarm-reg-picker {
  display: flex; flex-direction: column; gap: 0.45rem;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(248,113,113,.28);
  background: rgba(248,113,113,.06);
}
.alarm-reg-picker.is-compact { padding: 0.55rem 0.65rem; }
.alarm-reg-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.35rem;
}
.alarm-reg-head strong { font-size: 13px; color: #fff; }
.alarm-reg-head span { font-size: 11px; color: var(--brand-muted); max-width: 100%; }
.alarm-reg-trigger {
  display: flex; align-items: center; gap: 0.45rem;
}
.alarm-reg-summary {
  flex: 1; min-width: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.28);
  font-size: 12px;
  color: var(--brand-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.alarm-reg-summary.has-val { color: #f5f5f5; }
.alarm-reg-open {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.4rem 0.65rem !important;
  font-size: 12px !important;
}
.alarm-reg-open .material-symbols-outlined { font-size: 16px; }
.alarm-reg-modal {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 0 0.9rem 0.25rem;
}
.alarm-reg-presets { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.alarm-reg-lists {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.45rem;
}
.alarm-reg-col {
  display: flex; flex-direction: column; gap: 0.25rem; min-width: 0;
}
.alarm-reg-col > em {
  font-style: normal; font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-muted);
}
.alarm-reg-scroll {
  max-height: 14rem; overflow: auto;
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.25rem;
  border-radius: 8px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.06);
}
.alarm-reg-modal .alarm-reg-scroll { max-height: min(14rem, 38vh); }
.alarm-reg-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.3rem; align-items: center;
  padding: 0.28rem 0.35rem;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
}
.alarm-reg-row:hover { background: rgba(255,255,255,.04); }
.alarm-reg-row.is-on {
  background: rgba(248,113,113,.12);
  outline: 1px solid rgba(248,113,113,.25);
}
.alarm-reg-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f5f5f5;
}
.alarm-reg-uid {
  font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted);
}
.alarm-reg-with {
  border: 0; background: rgba(251,191,36,.12); color: #fde68a;
  font-size: 9px; font-weight: 700; padding: 0.12rem 0.3rem; border-radius: 999px;
  cursor: pointer;
}
.alarm-reg-with:hover { background: rgba(251,191,36,.22); }
.alarm-reg-note {
  margin: 0; font-size: 10px; color: var(--brand-muted); line-height: 1.35;
}
@media (max-width: 640px) {
  .alarm-reg-lists { grid-template-columns: 1fr; }
  .alarm-reg-modal .alarm-reg-scroll { max-height: min(11rem, 32vh); }
}
.dev-type-seg {
  display: flex;
  gap: 0;
  padding: 3px;
  border-radius: 10px;
  background: rgba(11, 13, 17, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.dev-type-seg-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.4rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dev-type-seg-btn .material-symbols-outlined {
  font-size: 16px !important;
}
.dev-type-seg-btn:hover {
  color: var(--brand-ink);
}
.dev-type-seg-btn.is-on {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}
.device-create-hint {
  margin: -0.35rem 0 0;
  font-size: 11px;
  color: var(--brand-muted);
  line-height: 1.35;
}
.mono-input {
  font-family: var(--font-mono), ui-monospace, monospace !important;
  font-size: 12px !important;
  letter-spacing: 0.02em;
}
.device-line {
  display: grid; grid-template-columns: 10px 7.5rem 4.5rem 1fr 3rem;
  gap: .75rem; align-items: center;
  padding: .55rem .75rem; border-radius: 8px;
  background: rgba(11,13,17,.55); border: 1px solid rgba(32,36,45,.6);
  font-size: 12px;
}
.device-line .dot { width: 7px; height: 7px; border-radius: 50%; }
.device-line .dot.ok { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,.5); }
.device-line .dot.bad { background: #f87171; }
.device-line .mono { font-family: var(--font-mono); color: var(--brand-amber); }
.device-line .muted { color: var(--brand-muted); }
.device-line .track { color: var(--brand-dim); min-width: 0; }
.loc-flat { display: flex; flex-direction: column; }
.flat-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem; border-bottom: 1px solid rgba(32,36,45,.45);
}
.flat-row:hover { background: rgba(255,255,255,.02); }

.vol-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .75rem; padding: .85rem;
}
.vol-card {
  display: flex; flex-direction: column; gap: .65rem;
  padding: .9rem 1rem; border-radius: 12px;
  background: rgba(11,13,17,.55); border: 1px solid rgba(32,36,45,.7);
  min-height: 132px;
}
.vol-card.is-clickable { cursor: pointer; transition: border-color .15s, background .15s; }
.vol-card.is-clickable:hover { background: rgba(23,26,34,.85); border-color: rgba(245,158,11,.35); }
.vol-card.online { border-color: rgba(245,158,11,.25); }
.vol-card.is-alarm { border-color: rgba(248,113,113,.45); }
.vol-card.is-clear { border-color: rgba(52,211,153,.4); }

.sched-modal-card.wide:has(.club-detail) {
  max-width: min(920px, 96vw);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(90vh, 900px);
}
.sched-modal-card.wide:has(.club-detail) > .sched-modal-head {
  flex: 0 0 auto;
}
.sched-modal-card.wide:has(.club-detail) > .club-detail {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}
.sched-modal-card.wide:has(.club-detail) > .sched-modal-foot {
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  margin: 0;
  padding: 0.75rem 1rem 0.9rem;
  background: var(--brand-card);
  border-top: 1px solid rgba(32, 36, 45, 0.85);
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.sched-modal-card.wide:has(.club-detail) > .sched-modal-foot .studio-btn-ghost,
.sched-modal-card.wide:has(.club-detail) > .sched-modal-foot .mon-btn-primary {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}
.club-detail {
  display: grid;
  gap: 1rem;
  padding: 0 .15rem .2rem;
  max-height: min(74vh, 820px);
  overflow: auto;
  scrollbar-width: thin;
}
.club-detail-hero {
  display: grid;
  gap: .8rem;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(245,158,11,.24);
  background:
    radial-gradient(85% 140% at 100% -10%, rgba(245,158,11,.16), transparent 52%),
    radial-gradient(60% 80% at 0% 100%, rgba(245,158,11,.05), transparent 50%),
    linear-gradient(180deg, #1a1e28, #12151c);
}
.club-detail-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.club-detail-now-label {
  display: block;
  margin-bottom: .25rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f59e0b;
}
.club-detail-now strong {
  display: block;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  line-height: 1.25;
}
.club-detail-now p {
  margin: .3rem 0 0;
  font-size: .84rem;
  color: #9ea5b3;
}
.club-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
@media (max-width: 760px) {
  .club-detail-grid { grid-template-columns: 1fr; }
}
.club-detail-block {
  padding: .95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(42,47,58,.9);
  background: linear-gradient(180deg, rgba(18,21,28,.92), rgba(11,13,17,.72));
}
.club-detail-block h4 {
  margin: 0 0 .75rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f59e0b;
}
.club-detail-media { grid-column: 1 / -1; }
.club-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .85rem;
  align-items: stretch;
  margin-bottom: .85rem;
  padding: .75rem .85rem;
  border-radius: 12px;
  border: 1px solid rgba(245,158,11,.14);
  background: rgba(245,158,11,.04);
}
.club-compare-col {
  display: grid;
  gap: .2rem;
  min-width: 0;
}
.club-compare-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8b929f;
}
.club-compare-col strong {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.1;
}
.club-compare-col strong.is-warn { color: #fca5a5; }
.club-compare-col strong small {
  margin-left: .2rem;
  font-size: .72rem;
  font-weight: 550;
  color: #9ea5b3;
  letter-spacing: 0;
}
.club-compare-sub {
  font-size: 12px;
  color: #9ea5b3;
}
.club-compare-div {
  width: 1px;
  background: rgba(255,255,255,.08);
  align-self: stretch;
}
.club-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem .75rem;
}
.club-metric { display: grid; gap: .18rem; min-width: 0; }
.club-metric-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  color: #717886;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.club-metric-value {
  font-size: 13px;
  color: #e2e4e9;
  word-break: break-word;
}
.club-metric-value.is-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}
.club-progress { display: grid; gap: .4rem; margin-bottom: .7rem; }
.club-progress-top,
.club-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: 12px;
  color: #9ea5b3;
}
.club-progress-bar {
  height: 9px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.club-progress-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: width .35s ease;
}
.club-progress-bar.is-suspect > i {
  background: linear-gradient(90deg, #f87171, #fb923c);
}
.club-detail-note {
  margin: .65rem 0 0;
  font-size: 12px;
  color: #9ea5b3;
}
.club-detail-warn {
  margin: .65rem 0 0;
  padding: .6rem .7rem;
  border-radius: 10px;
  border: 1px solid rgba(248,113,113,.28);
  background: rgba(248,113,113,.08);
  color: #fca5a5;
  font-size: 12px;
  line-height: 1.4;
}
.club-detail-logs { grid-column: 1 / -1; }
.club-log-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 .65rem;
}
.club-log-filters button {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: #9aa3b2;
  border-radius: 999px;
  padding: .28rem .65rem;
  font-size: 11px;
  cursor: pointer;
}
.club-log-filters button.is-on {
  color: #f8fafc;
  border-color: rgba(251,191,36,.45);
  background: rgba(251,191,36,.12);
}
.club-log-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
  max-height: 340px;
  overflow: auto;
  scrollbar-width: thin;
}
.club-log-list li {
  display: grid;
  grid-template-columns: 9.2rem 6.2rem 4.6rem minmax(0, 1fr);
  gap: .45rem;
  align-items: baseline;
  padding: .45rem .55rem;
  border-radius: 9px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(32,36,45,.55);
  font-size: 12px;
}
.club-log-actor {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 6.2rem;
}
.club-log-actor.is-system { color: #94a3b8; }
.club-log-actor.is-user { color: #7dd3fc; }
.club-log-list li.is-bad,
.club-log-list li.is-alarm {
  border-color: rgba(248,113,113,.35);
  background: rgba(248,113,113,.08);
}
.club-log-list li.is-announce {
  border-color: rgba(251,191,36,.48);
  background: rgba(120, 83, 18, .18);
}
.club-log-list li.is-yellow {
  border-color: rgba(251,191,36,.4);
  background: rgba(251,191,36,.08);
}
.club-log-list li.is-silence {
  border-color: rgba(148,163,184,.35);
  background: rgba(51,65,85,.22);
}
.club-log-list li.is-clear {
  border-color: rgba(52,211,153,.32);
  background: rgba(6,78,59,.2);
}
.club-log-at {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  color: #717886;
  white-space: nowrap;
}
.club-log-kind {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .02em;
  color: #9aa3b2;
  white-space: nowrap;
}
.club-log-list li.is-alarm .club-log-kind { color: #fca5a5; }
.club-log-list li.is-announce .club-log-kind { color: #fbbf24; }
.club-log-list li.is-yellow .club-log-kind { color: #fcd34d; }
.club-log-list li.is-silence .club-log-kind { color: #cbd5e1; }
.club-log-list li.is-clear .club-log-kind { color: #6ee7b7; }
.club-log-list li.is-volume .club-log-kind { color: #fcd34d; }
.club-log-list li.is-pause .club-log-kind { color: #93c5fd; }
.club-log-list li.is-download .club-log-kind { color: #c4b5fd; }
.club-log-msg { color: #c8cdd6; word-break: break-word; }
@media (max-width: 560px) {
  .club-compare {
    grid-template-columns: 1fr;
    gap: .65rem;
  }
  .club-compare-div { display: none; }
  .club-log-list li { grid-template-columns: 1fr; gap: .2rem; }
  .club-log-actor { max-width: none; }
}
.vol-track {
  min-height: 1.25rem;
  line-height: 1.25rem;
  transition: color .2s ease;
}
.vol-row { display: flex; align-items: center; gap: .65rem; }
.vol-row .transport-btn { width: 36px; height: 36px; }
.vol-row .transport-btn:disabled { opacity: .4; cursor: not-allowed; }
.alarm-decision {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.28);
  border: 1px solid rgba(248, 113, 113, 0.28);
}
.alarm-decision.compact { margin-top: 0.45rem; max-width: 420px; }
.alarm-decision.hidden { display: none; }
.alarm-decision-note {
  margin: 0;
  font-size: 11px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: #fecaca;
}
.alarm-decision-note.is-continue { color: #86efac; }
.alarm-decision-note.is-close { color: #fca5a5; }
.alarm-decision-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.alarm-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.alarm-btn.continue {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: #86efac;
}
.alarm-btn.continue:hover,
.alarm-btn.continue.active {
  background: rgba(52, 211, 153, 0.22);
  border-color: rgba(52, 211, 153, 0.55);
}
.alarm-btn.close {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}
.alarm-btn.close:hover,
.alarm-btn.close.active {
  background: rgba(248, 113, 113, 0.22);
  border-color: rgba(248, 113, 113, 0.55);
}
.alarm-btn:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 1100px) {
  .studio-brand-text { display: none; }
  .studio-btn-ghost .btn-label { display: none; }
  .studio-header-right { max-width: 62%; gap: 0.35rem; }
}
@media (max-width: 980px) {
  .studio-aside { display: none; }
  .studio-main-wrap { margin-left: 0; }
  .studio-main { padding: 1.25rem; }
  .device-line { grid-template-columns: 10px 1fr; }
  .device-line .muted, .device-line .track { display: none; }
  .studio-select-wrap { max-width: 160px; }
  .studio-pill .pill-label { display: none; }
  .studio-pill { padding: 0.3rem 0.45rem; }
}
@media (max-width: 640px) {
  .studio-select-wrap { display: none; }
  .studio-header-right { max-width: none; }
}

/* Media explorer */
.fx-page {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 0.85rem;
  height: calc(100vh - 64px - 3.5rem);
  min-height: 0;
}
.fx-tree {
  min-height: 0; height: 100%;
  overflow: hidden; display: flex; flex-direction: column;
}
.fx-tree-head {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.75rem; border-bottom: 1px solid rgba(32,36,45,.7);
}
.fx-tree-head h2 { margin: 0; font-size: 12px; font-weight: 600; color: var(--brand-ink); }
.fx-tree-head span { font-family: var(--font-mono); font-size: 11px; color: var(--brand-muted); }
.fx-tree-head-actions {
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.fx-tree-create {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px; border: 0;
  background: rgba(245,158,11,.12); color: var(--brand-amber); cursor: pointer; padding: 0;
}
.fx-tree-create .material-symbols-outlined { font-size: 18px; }
.fx-tree-create:hover { background: rgba(245,158,11,.22); color: var(--brand-ink); }
.fx-tree-cta {
  flex: 0 0 auto;
  position: relative;
  padding: 0.45rem 0.65rem 0.35rem;
  border-bottom: 1px solid rgba(32,36,45,.45);
}
.fx-tree-cta-btn {
  display: flex; align-items: center; gap: 0.35rem;
  width: 100%; padding: 0.45rem 0.55rem; border-radius: 8px;
  border: 1px dashed rgba(245,158,11,.45);
  background: rgba(245,158,11,.06); color: #fbbf24;
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.fx-tree-cta-label { flex: 1; text-align: left; }
.fx-tree-cta-chevron { font-size: 18px; opacity: .85; margin-left: auto; }
.fx-tree-cta-btn .material-symbols-outlined { font-size: 18px; }
.fx-tree-cta-btn:hover,
.fx-tree-cta-btn[aria-expanded="true"] {
  border-style: solid; background: rgba(245,158,11,.12); color: var(--brand-ink);
}
.fx-tree-create-menu {
  position: absolute;
  left: 0.65rem; right: 0.65rem; top: calc(100% - 2px);
  z-index: 12;
  display: flex; flex-direction: column; gap: 2px;
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(245,158,11,.28);
  background: rgba(14, 16, 22, .98);
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
}
.fx-tree-create-menu[hidden] { display: none !important; }
.fx-tree-create-menu button {
  display: flex; align-items: flex-start; gap: 0.55rem;
  width: 100%; text-align: left;
  padding: 0.5rem 0.55rem; border: 0; border-radius: 8px;
  background: transparent; color: var(--brand-ink);
  font: inherit; cursor: pointer;
}
.fx-tree-create-menu button .material-symbols-outlined {
  font-size: 18px; color: var(--brand-amber); margin-top: 1px;
}
.fx-tree-create-menu button span:last-child {
  display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
.fx-tree-create-menu strong {
  font-size: 12px; font-weight: 600; color: var(--brand-ink);
}
.fx-tree-create-menu em {
  font-style: normal; font-size: 11px; color: var(--brand-muted);
}
.fx-tree-create-menu button:hover { background: rgba(245,158,11,.12); }
html[data-theme="light"] .fx-tree-create-menu {
  background: rgba(255,255,255,.98);
  border-color: rgba(180, 83, 9, .22);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}
.fx-tree-nav { overflow: auto; flex: 1; min-height: 0; padding: 0.3rem 0; }
.fx-tree-row {
  display: flex; align-items: center;
  padding-left: calc(0.2rem + var(--d, 0) * 0.9rem);
  border-left: 2px solid transparent;
}
.fx-tree-row:hover { background: rgba(255,255,255,.03); }
.fx-tree-row.active,
.fx-tree-row.active:hover {
  background: rgba(245,158,11,.12);
  border-left-color: var(--brand-amber);
}
.fx-tree-twist {
  width: 22px; height: 22px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 0; background: transparent; color: var(--brand-muted);
  cursor: pointer; padding: 0; border-radius: 6px;
}
.fx-tree-twist:disabled { cursor: default; }
.fx-tree-twist .material-symbols-outlined { font-size: 18px; }
.fx-tree-item {
  display: flex; align-items: center; gap: 0.35rem;
  flex: 1; min-width: 0;
  padding: 0.32rem 0.55rem 0.32rem 0.1rem;
  color: var(--brand-dim); text-decoration: none; font-size: 12px;
  cursor: pointer;
}
.fx-tree-item .material-symbols-outlined { font-size: 16px; color: var(--brand-amber); opacity: .9; }
.fx-tree-name {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fx-tree-item em {
  font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted);
}
.fx-tree-row.active .fx-tree-item { color: var(--brand-ink); }
.fx-move-label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 12px; color: var(--brand-muted); }
.fx-move-tree {
  max-height: 280px; overflow: auto;
  border: 1px solid rgba(32,36,45,.9); border-radius: 10px;
  background: rgba(0,0,0,.2); padding: 0.25rem 0;
}
.fx-move-root {
  width: 100%; border: 0; background: transparent; color: var(--brand-dim);
  font: inherit; font-size: 12px; cursor: pointer; text-align: left;
  gap: 0.4rem;
}
.fx-move-root .material-symbols-outlined { font-size: 16px; color: var(--brand-amber); }
.fx-main {
  min-height: 0; height: 100%;
  overflow: hidden; display: flex; flex-direction: column;
  position: relative;
}
.fx-pathbar {
  flex: 0 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.85rem; border-bottom: 1px solid rgba(32,36,45,.7);
  background: rgba(0,0,0,.16);
}
.fx-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem;
  flex: 1; min-width: 0;
  font-size: 12px; font-family: var(--font-mono); color: var(--brand-muted);
}
.fx-crumbs a { color: var(--brand-dim); text-decoration: none; }
.fx-crumbs a:hover { color: #fbbf24; }
.fx-crumb-link {
  border: 0; background: transparent; padding: 0;
  color: var(--brand-dim); font: inherit; font-family: var(--font-mono);
  font-size: inherit; cursor: pointer;
}
.fx-crumb-link:hover { color: #fbbf24; }
.fx-crumb-muted { color: var(--brand-muted); font-weight: 500; }
.fx-sep { opacity: .45; }
.fx-here {
  color: var(--brand-ink); font-weight: 600;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fx-crumb-count {
  margin-left: 0.25rem; padding: 0.1rem 0.4rem; border-radius: 999px;
  font-size: 10px; font-weight: 500;
  color: var(--brand-muted); background: rgba(255,255,255,.04);
  border: 1px solid rgba(32,36,45,.7);
}
.fx-search {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.65rem; border-radius: 8px;
  background: var(--brand-input-bg);
  border: 1px solid rgba(245,158,11,.45);
  min-width: 160px; max-width: 280px; flex: 0 1 240px;
  transition: border-color .15s, box-shadow .15s;
}
.fx-search:hover { border-color: rgba(245,158,11,.7); }
.fx-search:focus-within {
  border-color: rgba(245,158,11,.9);
  box-shadow: 0 0 0 2px rgba(245,158,11,.14);
}
.fx-search .material-symbols-outlined { font-size: 17px; color: var(--brand-amber); }
.fx-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--brand-ink); font-size: 12px; font-weight: 500;
}
.fx-search input::placeholder { color: var(--brand-muted); font-weight: 400; }
.fx-tree-cats {
  flex: 0 0 auto;
  padding: 0.2rem 0 0.35rem;
  border-bottom: 1px solid rgba(32,36,45,.7);
}
.fx-type-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-tree-storage {
  flex: 0 0 auto;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid rgba(32,36,45,.7);
  background: rgba(0,0,0,.22);
  font-size: 11px; color: var(--brand-muted);
}
.fx-tree-storage-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.fx-tree-storage-meta strong {
  font-family: var(--font-mono); font-weight: 600; color: var(--brand-ink); font-size: 11px;
}
.fx-tree-storage-bar {
  height: 6px; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.06);
}
.fx-tree-storage-bar i {
  display: block; height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d97706, var(--brand-amber));
}
.fx-table-strip {
  flex: 0 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.45rem 0.75rem;
  padding: 0.45rem 0.85rem;
  border-bottom: 1px solid rgba(32,36,45,.65);
  background: rgba(0,0,0,.14);
  position: relative;
  z-index: 2;
}
.fx-table-strip-left {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.45rem;
  min-width: 0; font-size: 11px; color: var(--brand-muted);
}
.fx-table-strip-left strong {
  color: var(--brand-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: none;
}
.fx-filter-label { color: var(--brand-muted); }
.fx-format-chip {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.5rem; border-radius: 6px; border: 0;
  background: transparent; color: var(--brand-muted);
  font: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
}
.fx-format-chip:hover { background: rgba(255,255,255,.04); color: var(--brand-ink); }
.fx-format-chip.is-on {
  background: rgba(245,158,11,.18); color: #fbbf24;
}
.fx-table-strip-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
}
.fx-fmt-badge {
  display: inline-flex; align-items: center;
  margin-right: 0.35rem; padding: 0.1rem 0.35rem; border-radius: 4px;
  border: 1px solid rgba(32,36,45,.9);
  background: rgba(11,13,17,.55);
  font-style: normal; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  color: var(--brand-dim);
}
.fx-row-type {
  display: flex; align-items: center; gap: 0.25rem; min-width: 0;
}
.fx-type-label {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fx-pager-bar {
  flex: 0 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid rgba(32,36,45,.7);
  background: rgba(0,0,0,.16);
  font-size: 11px; color: var(--brand-muted);
}
.fx-pager-meta strong {
  font-family: var(--font-mono); color: var(--brand-ink); font-weight: 600;
}
.fx-pager {
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.fx-pager-btn, .fx-pager-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 0.45rem;
  border-radius: 7px; border: 1px solid rgba(32,36,45,.9);
  background: rgba(11,13,17,.55); color: var(--brand-dim);
  font: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
}
.fx-pager-btn:hover:not(:disabled), .fx-pager-num:hover {
  border-color: rgba(245,158,11,.4); color: var(--brand-ink);
}
.fx-pager-btn:disabled { opacity: .45; cursor: not-allowed; }
.fx-pager-num.is-on {
  background: var(--brand-amber); border-color: var(--brand-amber); color: #111;
}
.fx-toolbar {
  flex: 0 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.75rem; border-bottom: 1px solid rgba(32,36,45,.7);
  position: relative; z-index: 5;
}
.fx-plus { position: relative; }
.fx-plus-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; border: 0;
  background: var(--brand-amber); color: #111; cursor: pointer;
  box-shadow: 0 2px 10px rgba(245,158,11,.25);
}
.fx-plus-btn .material-symbols-outlined { font-size: 22px; font-weight: 600; }
.fx-plus-btn:hover { filter: brightness(1.06); }
.fx-plus-btn[aria-expanded="true"] { filter: brightness(1.1); }
.fx-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
  min-width: 220px; padding: 0.35rem;
  border-radius: 10px; border: 1px solid rgba(32,36,45,.95);
  background: #151820; box-shadow: 0 14px 40px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 2px;
}
.fx-menu[hidden] { display: none !important; }
.fx-ctx {
  position: fixed; top: 0; left: 0; z-index: 80;
}
.fx-menu button {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  padding: 0.45rem 0.6rem; border: 0; border-radius: 7px;
  background: transparent; color: #e5e7eb; font-size: 12px;
  text-align: left; cursor: pointer;
}
.fx-menu button .material-symbols-outlined {
  font-size: 18px; color: var(--brand-amber);
}
.fx-menu button:hover { background: rgba(245,158,11,.12); color: var(--brand-ink); }
.fx-menu button.danger { color: #fca5a5; }
.fx-menu button.danger .material-symbols-outlined { color: #fca5a5; }
.fx-menu button.danger:hover { background: rgba(248,113,113,.12); }
.fx-menu-sep {
  height: 1px; margin: 0.25rem 0.35rem;
  background: rgba(32,36,45,.9);
}
.fx-tool-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.32rem 0.6rem; border-radius: 7px;
  border: 1px solid rgba(32,36,45,.9); background: rgba(0,0,0,.18);
  color: var(--brand-dim); font-size: 12px; font-weight: 500; cursor: pointer;
}
.fx-tool-btn .material-symbols-outlined { font-size: 16px; color: var(--brand-amber); }
.fx-tool-btn:hover {
  color: var(--brand-ink); border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.08);
}
.fx-pop-hint {
  margin: 0 0 0.5rem; font-size: 11px; color: var(--brand-muted); line-height: 1.35;
}
.fx-hidden-form {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
html.studio-modal-open,
html.studio-modal-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
}
html.studio-modal-open .pl-main,
html.studio-modal-open .pl-tracks,
html.studio-modal-open .pl-names,
html.studio-modal-open .fx-main,
html.studio-modal-open .fx-list,
html.studio-modal-open .fx-tree-nav,
html.studio-modal-open .loc-panel {
  overflow: hidden !important;
  overscroll-behavior: none;
}
.fx-modal {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
  padding: 1rem;
  overscroll-behavior: none;
}
.fx-modal[hidden] { display: none !important; }
.fx-modal-card {
  width: min(400px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 1rem 1.1rem; border-radius: 12px;
  background: #151820; border: 1px solid rgba(32,36,45,.95);
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
}
.fx-modal-card h3 {
  margin: 0; font-size: 15px; font-weight: 600; color: var(--brand-ink);
}
.fx-modal-card label {
  display: flex; flex-direction: column; gap: 0.25rem;
  font-size: 10px; font-family: var(--font-mono); color: var(--brand-muted);
}
.fx-modal-card .media-input { width: 100%; }
.fx-confirm-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--brand-dim);
}
.sched-confirm-pad {
  padding: 0.35rem 1.15rem 0.85rem;
}
.media-upload-btn.is-danger-confirm {
  background: linear-gradient(180deg, #ef4444, #dc2626);
  border-color: rgba(248,113,113,.55);
  color: #fff;
  box-shadow: 0 8px 20px rgba(220,38,38,.28);
}
.media-upload-btn.is-danger-confirm:hover {
  filter: brightness(1.06);
}

/* Confirm dialog */
.studio-confirm {
  position: fixed; inset: 0; z-index: 10080;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.studio-confirm-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 6, 10, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.studio-confirm-card {
  position: relative; z-index: 1;
  width: min(100%, 380px);
  padding: 1.35rem 1.25rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(245,158,11,.12), transparent 55%),
    linear-gradient(180deg, #171a22 0%, #12151c 100%);
  box-shadow:
    0 28px 64px rgba(0,0,0,.55),
    0 0 0 1px rgba(245,158,11,.06) inset;
  text-align: center;
  animation: studio-confirm-in .18s ease-out;
}
.studio-confirm-card.is-danger {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(239,68,68,.16), transparent 55%),
    linear-gradient(180deg, #1a1518 0%, #121216 100%);
  border-color: rgba(248,113,113,.22);
  box-shadow:
    0 28px 64px rgba(0,0,0,.55),
    0 0 0 1px rgba(239,68,68,.08) inset;
}
@keyframes studio-confirm-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.studio-confirm-x {
  position: absolute; top: 0.65rem; right: 0.65rem;
  width: 32px; height: 32px; border-radius: 9px; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--brand-muted); cursor: pointer;
}
.studio-confirm-x .material-symbols-outlined { font-size: 18px; }
.studio-confirm-x:hover { background: rgba(255,255,255,.06); color: var(--brand-ink); }
.studio-confirm-icon {
  width: 52px; height: 52px; margin: 0.15rem auto 0.85rem;
  border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.28);
  color: var(--brand-amber);
  box-shadow: 0 10px 24px rgba(245,158,11,.12);
}
.studio-confirm-icon .material-symbols-outlined { font-size: 26px; }
.studio-confirm-icon.is-danger {
  background: rgba(239,68,68,.14);
  border-color: rgba(248,113,113,.35);
  color: #fca5a5;
  box-shadow: 0 10px 24px rgba(239,68,68,.18);
}
.studio-confirm-title {
  margin: 0 0 0.45rem;
  padding: 0 1.5rem;
  font-size: 17px; font-weight: 650; line-height: 1.25;
  color: var(--brand-ink);
  letter-spacing: -.01em;
}
.studio-confirm-body {
  margin: 0 auto 1.15rem;
  max-width: 30ch;
  font-size: 13px; line-height: 1.5;
  color: var(--brand-muted);
}
.studio-confirm-name {
  color: var(--brand-ink);
  font-weight: 650;
  word-break: break-word;
}
.studio-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.studio-confirm-cancel,
.studio-confirm-ok {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  min-height: 42px; padding: 0.55rem 0.85rem;
  border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.studio-confirm-cancel {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.1);
  color: var(--brand-ink);
}
.studio-confirm-cancel:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}
.studio-confirm-ok {
  background: linear-gradient(180deg, #f59e0b, #d97706);
  border-color: rgba(251,191,36,.45);
  color: #111;
  box-shadow: 0 10px 22px rgba(217,119,6,.28);
}
.studio-confirm-ok:hover { filter: brightness(1.05); }
.studio-confirm-ok .material-symbols-outlined { font-size: 18px; }
.studio-confirm-ok.is-danger {
  background: linear-gradient(180deg, #f87171, #dc2626);
  border-color: rgba(252,165,165,.4);
  color: #fff;
  box-shadow: 0 10px 22px rgba(220,38,38,.32);
}
.studio-confirm-ok.is-danger:hover { filter: brightness(1.06); }
html[data-theme="light"] .studio-confirm-backdrop {
  background: rgba(15, 23, 42, .45);
}
html[data-theme="light"] .studio-confirm-card {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(245,158,11,.1), transparent 55%),
    #fff;
  border-color: rgba(15,23,42,.08);
  box-shadow: 0 24px 56px rgba(15,23,42,.18);
}
html[data-theme="light"] .studio-confirm-card.is-danger {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(239,68,68,.1), transparent 55%),
    #fff;
  border-color: rgba(220,38,38,.18);
}
html[data-theme="light"] .studio-confirm-cancel {
  background: #f8fafc;
  border-color: rgba(15,23,42,.1);
}
.fx-modal-actions {
  display: flex; justify-content: flex-end; gap: 0.4rem; margin-top: 0.35rem;
}
.fx-upload-drop {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  padding: 1.25rem 1rem; border-radius: 12px;
  border: 1.5px dashed rgba(245,158,11,.4);
  background: rgba(245,158,11,.05); text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.fx-upload-drop:hover,
.fx-upload-drop.is-drag {
  border-color: rgba(245,158,11,.85);
  background: rgba(245,158,11,.1);
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}
.fx-upload-drop.has-files {
  border-style: solid;
  border-color: rgba(245,158,11,.55);
}
.fx-upload-drop .material-symbols-outlined {
  font-size: 36px; color: var(--brand-amber);
}
.fx-upload-drop strong {
  font-size: 13px; color: var(--brand-ink); font-weight: 700;
}
.fx-upload-drop em {
  font-style: normal;
  font-size: 11px;
  color: var(--brand-muted);
  font-family: var(--font-mono);
}
.fx-upload-list {
  width: 100%;
  margin: .45rem 0 0;
  padding: .45rem;
  list-style: none;
  border-radius: 8px;
  border: 1px solid rgba(245,158,11,.25);
  background: rgba(11,13,17,.65);
  text-align: left;
  max-height: 160px;
  overflow: auto;
}
.fx-upload-list li {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .4rem;
  font-size: 12px;
  color: #e8eaed;
  border-radius: 6px;
}
.fx-upload-list li:hover { background: rgba(245,158,11,.08); }
.fx-upload-list .material-symbols-outlined { font-size: 16px !important; color: var(--brand-amber); }
.fx-upload-list .truncate { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-upload-list em { margin-left: auto; font-style: normal; color: var(--brand-muted); font-family: var(--font-mono); font-size: 10px; }
.fx-upload-list .more { justify-content: center; color: var(--brand-muted); font-size: 11px; }
.fx-main.is-drag .fx-list,
.fx-main.is-drag .fx-body { position: relative; }
.fx-main.is-drag {
  outline: 2px dashed rgba(245,158,11,.55);
  outline-offset: -6px;
}
.fx-drop-veil {
  position: absolute; inset: 0; z-index: 15;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
  background: rgba(19,22,28,.88);
  border: 2px dashed rgba(245,158,11,.55);
  color: var(--brand-ink); pointer-events: none;
  border-radius: inherit;
}
.fx-drop-veil[hidden] { display: none !important; }
.fx-drop-veil .material-symbols-outlined {
  font-size: 42px; color: var(--brand-amber);
}
.fx-drop-veil strong { font-size: 15px; }
.fx-drop-veil span { font-size: 11px; font-family: var(--font-mono); color: var(--brand-muted); }
.fx-upload-primary {
  display: inline-flex; align-items: center; gap: 0.3rem;
  white-space: nowrap;
  padding: 0.32rem 0.7rem;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  min-height: 0;
  height: auto;
}
.fx-upload-primary .material-symbols-outlined {
  font-size: 16px !important;
  line-height: 1;
}
.fx-upload-queue {
  flex: 0 0 auto;
  margin: 0.45rem 0.85rem 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(245,158,11,.28);
  background: rgba(245,158,11,.06);
}
.fx-upload-queue-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.55rem;
  margin-bottom: 0.45rem;
  font-size: 12px; color: var(--brand-ink);
}
.fx-upload-queue-head strong { font-weight: 700; }
.fx-queue-pulse {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--brand-amber);
  box-shadow: 0 0 0 0 rgba(245,158,11,.55);
  animation: fx-queue-pulse 1.4s ease-out infinite;
}
@keyframes fx-queue-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245,158,11,.45); }
  70% { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}
.fx-queue-badge {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 0.12rem 0.4rem; border-radius: 999px;
  color: #111; background: var(--brand-amber);
}
.fx-upload-queue-list {
  display: flex; flex-direction: column; gap: 0.35rem;
  max-height: min(42vh, 360px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(251,191,36,.45) transparent;
}
.fx-upload-queue-list::-webkit-scrollbar { width: 8px; }
.fx-upload-queue-list::-webkit-scrollbar-thumb {
  background: rgba(251,191,36,.4); border-radius: 999px;
}
.fx-upload-queue-count {
  margin: 0.4rem 0 0;
  font-size: 10px; font-family: var(--font-mono);
  color: var(--brand-muted);
}
.fx-queue-row {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.35rem 0.4rem; border-radius: 7px;
  background: rgba(11,13,17,.45);
}
.fx-queue-meta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 12px;
}
.fx-queue-name { flex: 1; min-width: 0; color: var(--brand-ink); }
.fx-queue-name.truncate,
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-queue-pct {
  font-family: var(--font-mono); font-size: 11px; color: var(--brand-muted); flex: 0 0 auto;
}
.fx-queue-row.is-done .fx-queue-pct { color: #86efac; }
.fx-queue-row.is-error .fx-queue-pct { color: #fca5a5; }
.fx-queue-bar {
  height: 4px; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.08);
}
.fx-queue-bar i {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #d97706, var(--brand-amber));
  transition: width .15s ease-out;
}
.fx-queue-row.is-error .fx-queue-bar i { background: #ef4444; }
.fx-queue-row.is-done .fx-queue-bar i { background: #22c55e; }
.fx-status-chip {
  display: inline-flex; align-items: center; max-width: 100%;
  padding: 0.12rem 0.4rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  outline: none; cursor: default;
}
.fx-studio-tip-anchor {
  display: inline-flex; max-width: 100%; min-width: 0; vertical-align: middle;
}
.fx-meta-tip-pop.is-wide { min-width: 220px; }
.fx-status-chip.is-air {
  color: #86efac; background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.28);
}
.fx-status-chip.is-off {
  color: var(--brand-muted); background: rgba(255,255,255,.04);
  border: 1px solid rgba(32,36,45,.8);
}
.fx-empty-drop {
  border: 2px dashed rgba(245,158,11,.28);
  border-radius: 12px;
  margin: 0.75rem;
  background: rgba(245,158,11,.03);
}
.fx-list.is-refreshing {
  opacity: 0.72;
  transition: opacity .15s ease;
}
.fx-jump {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-width: 0; flex: 1 1 200px; max-width: 360px;
}
.fx-jump > .material-symbols-outlined {
  font-size: 18px; color: var(--brand-amber); flex: 0 0 auto;
}
.fx-jump .media-input { flex: 1; min-width: 0; }
.fx-check-all {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0; cursor: pointer; user-select: none;
  line-height: 0;
}
.fx-check-all input { margin: 0; }
.fx-col-check {
  display: flex; align-items: center; justify-content: center;
}
.fx-sel { font-family: var(--font-mono); font-size: 11px; color: var(--brand-muted); margin-left: auto; }
.fx-sel.is-accent { color: var(--brand-amber); font-weight: 700; margin-left: 0; }
.fx-move .fx-sel { margin-left: 0; }
.fx-move {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
}
.fx-move.is-hidden,
.fx-move[hidden] { display: none !important; }
.fx-tool-btn {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .35rem .65rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(11,13,17,.55); color: var(--brand-ink);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.fx-tool-btn .material-symbols-outlined { font-size: 16px !important; }
.fx-tool-btn:hover { border-color: rgba(245,158,11,.45); color: var(--brand-amber); }
.fx-tool-btn.is-danger { border-color: rgba(239,68,68,.35); color: #fca5a5; }
.fx-tool-btn.is-danger:hover { background: rgba(239,68,68,.12); color: #fecaca; }
.fx-tool-btn:disabled { opacity: .5; cursor: not-allowed; }
.fx-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; border: 0;
  background: transparent; color: var(--brand-muted); cursor: pointer;
}
.fx-icon-btn .material-symbols-outlined { font-size: 18px !important; }
.fx-icon-btn:hover { background: rgba(245,158,11,.1); color: var(--brand-amber); }
.fx-icon-btn.is-danger:hover { background: rgba(239,68,68,.12); color: #f87171; }
.fx-row-file.is-selected,
.fx-row-file:has(.row-check:checked) { background: rgba(245,158,11,.08); }
.fx-move-select { max-width: 200px; }
.fx-cols {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 28px 28px 36px minmax(0, 1fr) 90px 64px 72px 64px;
  gap: 0.45rem; align-items: center;
  padding: 0.35rem 0.85rem;
  border-bottom: 1px solid rgba(32,36,45,.65);
  background: rgba(0,0,0,.1);
  font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.fx-cols-media,
.fx-main:has(.fx-cols-media) .fx-row {
  grid-template-columns: 28px 28px 36px minmax(0, 1fr) 84px 58px 68px 118px 64px;
}
.fx-col-use {
  justify-self: end;
  text-align: right;
  width: 100%;
}
.fx-list,
.fx-body {
  flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain;
  position: relative;
  display: flex; flex-direction: column;
}
.fx-row {
  display: grid;
  grid-template-columns: 28px 28px 36px minmax(0, 1fr) 90px 64px 72px 64px;
  gap: 0.45rem; align-items: center;
  padding: 0.35rem 0.85rem;
  border-bottom: 1px solid rgba(32,36,45,.35);
  color: inherit; text-decoration: none;
  position: relative;
}
.fx-row:hover { background: rgba(255,255,255,.025); }
.fx-row-file:has(.row-check:checked) { background: rgba(245,158,11,.07); }
.fx-row-file.is-playing {
  background: rgba(245,158,11,.1);
  box-shadow: inset 2px 0 0 var(--brand-amber);
}
.fx-play-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px; border: 0;
  background: rgba(245,158,11,.12); color: var(--brand-amber); cursor: pointer;
  padding: 0;
}
.fx-play-btn .material-symbols-outlined { font-size: 18px; }
.fx-play-btn:hover { background: rgba(245,158,11,.25); color: var(--brand-ink); }
.fx-row-file.is-playing .fx-play-btn {
  background: var(--brand-amber); color: #111;
}
.fx-row-play { min-height: 1.25rem; }
.fx-row-up { color: var(--brand-muted); }
.fx-row-up:hover { color: var(--brand-ink); }
.fx-row-folder {
  background: rgba(245,158,11,.04);
  border-bottom: 1px solid rgba(245,158,11,.08);
  cursor: pointer;
}
.fx-row-folder:hover { background: rgba(245,158,11,.09); }
.fx-list-section {
  flex: 0 0 auto;
  display: flex; align-items: center;
  padding: 0.4rem 0.85rem 0.25rem;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand-muted);
  border-bottom: 1px solid rgba(32,36,45,.45);
  background: rgba(0,0,0,.08);
}
.fx-art-folder {
  background: rgba(245,158,11,.14) !important;
  border-color: rgba(245,158,11,.28) !important;
}
.fx-art-folder .material-symbols-outlined {
  position: static !important; opacity: 1 !important;
  font-size: 18px; color: var(--brand-amber);
}
.fx-status-chip.is-folder {
  color: #fbbf24;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.3);
}
.fx-status-chip.is-dups {
  color: #93c5fd;
  background: rgba(59,130,246,.14);
  border: 1px solid rgba(96,165,250,.35);
}
.fx-tree-row-dups .fx-tree-item .material-symbols-outlined { color: #93c5fd; }
.fx-tree-row-dups.active,
.fx-tree-row-dups.active:hover {
  background: rgba(59,130,246,.12);
  border-left-color: #60a5fa;
}
.fx-dup-group {
  border-bottom: 1px solid rgba(32,36,45,.55);
  background: rgba(0,0,0,.12);
}
.fx-dup-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(32,36,45,.45);
}
.fx-dup-group-title {
  display: flex; align-items: center; gap: 0.4rem; min-width: 0;
  color: var(--brand-ink); font-size: 12px;
}
.fx-dup-group-title .material-symbols-outlined { font-size: 18px; color: #93c5fd; }
.fx-dup-group-title strong {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fx-dup-group-title em {
  font-style: normal; color: var(--brand-muted); font-size: 11px; white-space: nowrap;
}
.fx-dup-row { cursor: pointer; }
.fx-dup-row .fx-row-check input { accent-color: var(--brand-amber); }
.fx-meta-tip {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand-muted);
  cursor: help;
}
.fx-meta-tip > .material-symbols-outlined { font-size: 18px; line-height: 1; }
.fx-meta-tip:hover,
.fx-meta-tip:focus-visible,
.fx-meta-tip.is-open,
.fx-studio-tip-anchor.is-open .fx-meta-tip {
  color: var(--brand-amber);
  background: rgba(245,158,11,.12);
  outline: none;
}
.fx-meta-tip-pop {
  position: fixed;
  z-index: 10060;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  width: max-content;
  max-width: 180px;
  min-width: 128px;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(245,158,11,.35);
  background: rgba(14, 16, 22, .98);
  box-shadow: 0 8px 18px rgba(0,0,0,.4), 0 0 0 1px rgba(245,158,11,.06);
  color: var(--brand-ink);
  text-align: left;
  pointer-events: auto;
}
.fx-meta-tip-title {
  font-size: 9px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-amber);
  line-height: 1.2;
}
.fx-meta-tip-row {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.fx-meta-tip-k {
  font-size: 9px;
  font-weight: 600;
  color: var(--brand-muted);
  line-height: 1.15;
}
.fx-meta-tip-pop.is-wide .fx-meta-tip-v {
  white-space: normal; word-break: break-word;
}
.fx-meta-tip-v {
  font-size: 11px;
  font-weight: 500;
  color: var(--brand-ink);
  line-height: 1.25;
  word-break: break-word;
}
.fx-row-actions {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.05rem;
  overflow: visible;
  width: 100%;
  margin-left: auto;
}
html[data-theme="light"] .fx-meta-tip-pop {
  background: rgba(255,255,255,.98);
  border-color: rgba(180, 83, 9, .28);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}
.fx-row-ico { font-size: 20px; color: var(--brand-amber); }
.fx-row-check {
  display: flex; align-items: center; justify-content: center; min-height: 1.25rem;
}
.fx-row-check input { accent-color: var(--brand-amber); }
.fx-art {
  width: 32px; height: 32px; border-radius: 6px; overflow: hidden;
  background: rgba(245,158,11,.1); border: 1px solid rgba(32,36,45,.8);
  display: grid; place-items: center; position: relative;
}
.fx-art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: relative; z-index: 1;
}
.fx-art .material-symbols-outlined {
  position: absolute; font-size: 16px; color: var(--brand-amber); opacity: 0;
  z-index: 0;
}
.fx-art.no-cover,
.fx-art:not(:has(img)) {
  background: #0c0e12 url("/static/media-cover.svg") center / cover no-repeat;
  border-color: rgba(245,158,11,.35);
}
.fx-art.no-cover .material-symbols-outlined,
.fx-art:not(:has(img)) .material-symbols-outlined { opacity: 0; }
/* Hide only after failed load — never start hidden (breaks lazy load + onLoad). */
.fx-art.no-cover img { display: none; }
.fx-row-main-text { min-width: 0; }
.fx-row-name {
  display: inline-flex; align-items: center; gap: 0.3rem;
  max-width: 100%; min-width: 0;
  color: var(--brand-ink); font-size: 13px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fx-row-folder .fx-row-name { font-weight: 600; }
.fx-row-sub {
  display: block; font-size: 10px; color: var(--brand-muted); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fx-row-type, .fx-row-dur, .fx-row-size, .fx-row-status {
  font-family: var(--font-mono); font-size: 11px; color: var(--brand-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fx-row-status { display: flex; align-items: center; }
.fx-row-type.muted, .fx-row-size.muted { color: var(--brand-muted); }
.fx-row-file.type-music .fx-row-type { color: #fbbf24; }
.fx-row-file.type-advertising .fx-row-type { color: #5eead4; }
.fx-row-file.type-alarm .fx-row-type { color: #fca5a5; }
.fx-row-use {
  display: flex; flex-wrap: nowrap; gap: 0; justify-content: flex-end;
  justify-self: end; width: 100%; min-width: 0;
}
.fx-row-use .fx-meta-tip,
.fx-row-use .fx-icon-btn {
  width: 26px; height: 26px; border-radius: 6px;
}
.fx-row-use .fx-meta-tip > .material-symbols-outlined,
.fx-row-use .fx-icon-btn .material-symbols-outlined {
  font-size: 16px !important;
}
.fx-row-use em {
  font-style: normal; padding: 0.1rem 0.3rem; border-radius: 4px;
  font-size: 10px; font-family: var(--font-mono);
}
.fx-row-use .u-pl { background: rgba(245,158,11,.12); color: #fbbf24; }
.fx-row-use .u-none { color: var(--brand-muted); }
.fx-empty {
  flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.55rem; min-height: 100%;
  padding: 2rem 1.25rem; text-align: center;
  font-size: 13px; color: var(--brand-muted);
}
.fx-empty .material-symbols-outlined {
  font-size: 44px; color: var(--brand-amber); opacity: .75;
}
.fx-empty p { margin: 0; max-width: 280px; line-height: 1.4; font-size: 12px; }
.fx-empty strong { color: #fbbf24; font-size: 14px; }
.fx-player {
  flex: 0 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.65rem;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid rgba(245,158,11,.35);
  background: linear-gradient(90deg, rgba(245,158,11,.14), rgba(0,0,0,.22));
  position: sticky; bottom: 0; z-index: 8;
  box-shadow: 0 -8px 24px rgba(0,0,0,.35);
}
.fx-player.is-open { animation: fx-player-in .18s ease-out; }
@keyframes fx-player-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fx-player[hidden] { display: none !important; }
.fx-player-toggle:disabled { opacity: .7; cursor: wait; }
.fx-player-toggle, .fx-player-stop {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--brand-amber); color: #111; padding: 0;
}
.fx-player-stop {
  background: rgba(0,0,0,.25); color: var(--brand-dim);
  border: 1px solid rgba(32,36,45,.9);
}
.fx-player-toggle .material-symbols-outlined,
.fx-player-stop .material-symbols-outlined { font-size: 20px; }
.fx-player-stop:hover { color: var(--brand-ink); }
.fx-player-meta {
  display: flex; flex-direction: column; gap: 0.05rem; min-width: 120px; max-width: 220px;
}
.fx-player-meta strong {
  font-size: 12px; color: var(--brand-ink); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fx-player-meta span {
  font-size: 10px; font-family: var(--font-mono); color: var(--brand-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fx-player-seek {
  flex: 1 1 140px; min-width: 100px; accent-color: var(--brand-amber); cursor: pointer;
}
.fx-player-time {
  font-family: var(--font-mono); font-size: 11px; color: var(--brand-dim); min-width: 3.2rem;
}
.fx-status {
  flex: 0 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.4rem 0.85rem; border-top: 1px solid rgba(32,36,45,.7);
  background: rgba(0,0,0,.14);
  font-family: var(--font-mono); font-size: 11px; color: var(--brand-muted);
}
.fx-pager { display: inline-flex; align-items: center; gap: 0.4rem; }
.fx-pager a { color: var(--brand-dim); text-decoration: none; }
.fx-pager a:hover { color: #fbbf24; }
@media (max-width: 960px) {
  .fx-page { grid-template-columns: 1fr; height: auto; max-height: none; }
  .fx-tree { max-height: 180px; height: auto; }
  .fx-main { height: auto; max-height: min(75vh, 720px); }
  .fx-cols, .fx-row, .fx-row-up,
  .fx-cols-media,
  .fx-main:has(.fx-cols-media) .fx-row {
    grid-template-columns: 28px 28px 32px minmax(0, 1fr) 56px;
  }
  .fx-col-type, .fx-col-size, .fx-col-status, .fx-col-use,
  .fx-row-type, .fx-row-size, .fx-row-status, .fx-row-use { display: none; }
  .fx-move { margin-left: 0; width: 100%; }
  .fx-player-meta { max-width: none; flex: 1; }
}
.pl-bar {
  flex: 0 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.55rem;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid rgba(32,36,45,.7);
  background: rgba(0,0,0,.12);
  position: relative; z-index: 4;
}
.pl-plus { position: relative; flex: 0 0 auto; }
.pl-plus-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; border: 0;
  background: var(--brand-amber); color: #111; cursor: pointer;
}
.pl-plus-btn .material-symbols-outlined { font-size: 20px; }
.pl-plus-btn:hover { filter: brightness(1.06); }
.pl-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
  min-width: 210px; padding: 0.35rem;
  border-radius: 10px; border: 1px solid rgba(32,36,45,.95);
  background: #151820; box-shadow: 0 14px 40px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 2px;
}
.pl-menu[hidden] { display: none !important; }
.pl-menu button {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  padding: 0.45rem 0.6rem; border: 0; border-radius: 7px;
  background: transparent; color: #e5e7eb; font-size: 12px;
  text-align: left; cursor: pointer;
}
.pl-menu button .material-symbols-outlined { font-size: 18px; color: var(--brand-amber); }
.pl-menu button:hover { background: rgba(245,158,11,.12); color: var(--brand-ink); }
.pl-bar-hint {
  font-size: 11px; font-family: var(--font-mono); color: var(--brand-muted);
}
.pl-bar-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-width: 0; flex: 1 1 auto;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px dashed rgba(148,163,184,.35);
  background: transparent;
  color: var(--brand-muted);
  font-size: 12px;
  cursor: pointer;
}
.pl-bar-link .material-symbols-outlined { font-size: 16px; color: var(--brand-amber); flex: 0 0 auto; }
.pl-bar-link:hover {
  border-color: rgba(245,158,11,.45);
  color: var(--brand-ink);
  background: rgba(245,158,11,.06);
}
.pl-bar > .fx-tool-btn {
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}
.pl-folder-pill {
  display: inline-flex; align-items: center; gap: 0.25rem;
  max-width: min(320px, 100%);
  padding: 0.2rem 0.35rem 0.2rem 0.5rem; border-radius: 999px;
  border: 1px solid rgba(245,158,11,.3); background: rgba(245,158,11,.08);
  font: inherit; color: inherit; cursor: pointer; text-align: left;
}
.pl-folder-pill:hover {
  border-color: rgba(245,158,11,.5);
  background: rgba(245,158,11,.14);
}
.pl-folder-pill > .material-symbols-outlined {
  font-size: 16px; color: var(--brand-amber); flex: 0 0 auto;
}
.pl-folder-pill-name {
  min-width: 0; font-size: 11px; font-family: var(--font-mono); color: #fbbf24;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-mini {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px;
  border: 0; background: transparent; color: var(--brand-muted);
  cursor: pointer; text-decoration: none; padding: 0;
}
.pl-mini .material-symbols-outlined { font-size: 16px; }
.pl-mini:hover { color: var(--brand-ink); background: rgba(255,255,255,.06); }
.pl-mini.danger:hover { color: #fca5a5; background: rgba(248,113,113,.12); }
.pl-add-inline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
  margin-left: auto; flex: 1 1 220px; min-width: 0; justify-content: flex-end;
}
.pl-add-inline .media-input { flex: 1 1 160px; min-width: 140px; max-width: 320px; }
.pl-add-btn { padding: 0.38rem 0.75rem; font-size: 12px; }
/* Shared form controls */
.media-input {
  background: var(--brand-input-bg);
  border: 1px solid rgba(245,158,11,.5);
  border-radius: 8px;
  color: var(--brand-ink);
  padding: 0.5rem 0.75rem;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  min-width: 0;
  width: 100%;
  color-scheme: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.media-input::placeholder { color: var(--brand-muted); font-weight: 400; }
.media-input:hover { border-color: rgba(245,158,11,.75); }
.media-input:focus {
  border-color: rgba(245,158,11,.95);
  box-shadow: 0 0 0 2px rgba(245,158,11,.16);
}

/* Native selects (fallback) ? closed field in brand style */
select.media-input,
.sched-form select,
.studio-select-wrap select,
.silence-form select,
.mourn-form select,
.pl-add-inline select,
select.media-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2rem;
  background-color: var(--brand-input-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f59e0b' d='M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.2 0 2.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 10px;
}
select.media-input option,
.studio-select-wrap select option {
  background: var(--brand-input-bg);
  color: var(--brand-ink);
}
.media-input[type="time"],
.media-input[type="date"] {
  min-height: 2.55rem; min-width: 0; color: var(--brand-ink) !important; color-scheme: inherit;
}
.media-input[type="time"]::-webkit-calendar-picker-indicator,
.media-input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.85; cursor: pointer;
}
html[data-theme="dark"] .media-input[type="time"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] .media-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}
.media-drop-count { font-family: var(--font-mono); font-size: 11px; color: #fbbf24; }
.media-file-input { font-size: 12px; color: var(--brand-muted); max-width: 100%; }
.studio-btn-primary,
.media-upload-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.45rem 0.9rem; border-radius: 8px; border: 0; text-decoration: none;
  cursor: pointer; background: var(--brand-amber); color: #111; font-weight: 600; font-size: 13px;
}
.media-upload-btn:hover { filter: brightness(1.05); }

/* Schedule studio layout */
.sched-studio {
  display: flex; flex-direction: column; gap: 0.7rem; margin-top: -0.35rem;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}
.sched-studio.simple { gap: 0.65rem; }
.sched-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 0.85rem;
  flex: 0 0 auto;
}
.sched-head-left, .sched-head-right {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.65rem; min-width: 0;
}
.sched-head h1 {
  margin: 0; font-family: var(--font-display, inherit);
  font-size: 1.25rem; font-weight: 650; color: #fff; letter-spacing: -0.02em;
}
.sched-onair-mini {
  max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; color: var(--brand-muted);
  padding: 0.15rem 0.45rem; border-radius: 6px;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.06);
}
.sched-days-bar {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.5rem 0.65rem; border-radius: 12px;
  background: var(--brand-card); border: 1px solid rgba(32,36,45,.85);
}
.sched-cal-week.compact {
  gap: 0.2rem;
}
.sched-cal-week.compact .sched-cal-day {
  min-height: 2.1rem; padding: 0.2rem 0.1rem; border-radius: 7px;
}
.sched-canvas-head.slim {
  padding: 0.4rem 0.7rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.sched-canvas-head.slim h2 {
  margin: 0; font-size: 13px; font-weight: 650; color: #fff;
}
.sched-canvas-hint {
  font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted);
}
.sched-side {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 0.65rem 0.7rem; border-radius: 12px;
  background: var(--brand-card); border: 1px solid rgba(32,36,45,.85);
}
.sched-side-col .sched-side.sticky {
  position: sticky; top: 0;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: auto;
  scrollbar-width: thin;
}
.sched-side-block { display: flex; flex-direction: column; gap: 0.35rem; }
.sched-side-h {
  display: flex; align-items: center; justify-content: space-between; gap: 0.35rem;
}
.sched-side-h strong {
  font-size: 12px; font-weight: 700; color: #fff;
}
.sched-side-add, .sched-side-del {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; padding: 0; border-radius: 7px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.25);
  color: var(--brand-muted); cursor: pointer;
}
.sched-side-add { border-color: rgba(217,156,72,.5); color: #e8c48a; }
.sched-side-add:hover { background: rgba(251,191,36,.12); color: #fde68a; }
.sched-side-del:hover { border-color: rgba(248,113,113,.45); color: #fca5a5; }
.sched-side-add .material-symbols-outlined,
.sched-side-del .material-symbols-outlined { font-size: 15px; }
.sched-side-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.sched-side-list > li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem; align-items: center;
}
.sched-side-item {
  display: block; min-width: 0; text-align: left;
  padding: 0.4rem 0.5rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.07); background: rgba(0,0,0,.22);
  color: inherit; cursor: pointer;
}
.sched-side-item:hover { border-color: rgba(251,191,36,.35); }
.sched-side-item strong {
  display: block; font-size: 12px; font-weight: 700; color: #f5f5f5;
}
.sched-side-item em {
  display: block; margin-top: 0.1rem; font-style: normal;
  font-size: 10px; color: var(--brand-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sched-side-empty {
  margin: 0; font-size: 11px; color: var(--brand-muted);
}
.sched-side-note {
  margin: 0; padding-top: 0.25rem;
  font-size: 10px; color: var(--brand-muted); line-height: 1.35;
  border-top: 1px solid rgba(255,255,255,.05);
}
.sched-side-block:first-child .sched-side-item { border-color: rgba(248,113,113,.18); }
.sched-side-block:nth-child(2) .sched-side-item { border-color: rgba(148,163,184,.2); }

/* Plain priority lanes: top = more important, hours left→right */
.sched-plain {
  background: #0e1117;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  overflow: hidden;
}
.sched-plain-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem; padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.sched-plain-head strong {
  display: block; color: #fff; font-size: 15px; font-weight: 700;
  font-family: var(--font-display, inherit);
}
.sched-plain-head span {
  display: block; font-size: 11px; color: var(--brand-muted); margin-top: 0.1rem;
}
.sched-plain-specials {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.2);
}
.sched-plain-special {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.1rem;
  padding: 0.35rem 0.55rem; border-radius: 8px; cursor: pointer; text-align: left;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: inherit;
}
.sched-plain-special strong { font-size: 11px; font-weight: 750; }
.sched-plain-special em { font-style: normal; font-size: 10px; color: var(--brand-muted); }
.sched-plain-special.silence { border-color: rgba(248,113,113,.3); }
.sched-plain-special.silence strong { color: #fca5a5; }
.sched-plain-special.mourn { border-color: rgba(148,163,184,.3); }
.sched-plain-special.mourn strong { color: #cbd5e1; }
.sched-plain-board { position: relative; padding: 0.35rem 0.65rem 0.75rem; }
.sched-plain-hours {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr);
  margin-bottom: 0.25rem;
}
.sched-plain-hours-scale {
  position: relative; height: 1rem;
  font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted);
}
.sched-plain-hours-scale span {
  position: absolute; transform: translateX(-50%);
}
.sched-plain-lanes { display: flex; flex-direction: column; gap: 0.35rem; position: relative; }
.sched-plain-lane {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.4rem; align-items: stretch; min-height: 44px;
}
.sched-plain-label {
  display: flex; flex-direction: column; justify-content: center; gap: 0.05rem;
  padding: 0.2rem 0.15rem; position: relative;
}
.sched-plain-label em {
  font-style: normal; font-family: var(--font-mono); font-size: 9px;
  font-weight: 700; color: var(--brand-muted);
}
.sched-plain-label strong {
  font-size: 12px; font-weight: 750; color: #f3f4f6; line-height: 1.2;
  padding-right: 1.4rem;
}
.sched-plain-add {
  position: absolute; top: 50%; right: 0; transform: translateY(-50%);
  width: 22px; height: 22px; padding: 0; border-radius: 6px;
  display: grid; place-items: center;
  border: 1px solid rgba(245,158,11,.35); background: rgba(245,158,11,.08);
  color: var(--brand-amber); cursor: pointer;
}
.sched-plain-add .material-symbols-outlined { font-size: 14px; }
.sched-plain-add:hover { background: rgba(245,158,11,.18); }
.sched-plain-track {
  position: relative; min-height: 44px; border-radius: 10px; cursor: crosshair;
  border: 1px solid rgba(255,255,255,.06);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(100% / 24 - 1px),
      rgba(255,255,255,.04) calc(100% / 24 - 1px),
      rgba(255,255,255,.04) calc(100% / 24)
    ),
    rgba(0,0,0,.28);
}
.sched-plain-block {
  position: absolute; top: 4px; bottom: 4px; z-index: 2;
  display: flex; align-items: center; padding: 0 0.4rem;
  border-radius: 7px; border: 0; cursor: pointer; overflow: hidden;
  text-align: left; color: #111; font-size: 11px; font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.sched-plain-block span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sched-plain-lane.lane-main .sched-plain-block {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}
.sched-plain-lane.lane-ads .sched-plain-block {
  background: linear-gradient(135deg, #38bdf8, #0284c7); color: #0b1220;
}
.sched-plain-lane.lane-alt .sched-plain-block {
  background: linear-gradient(135deg, #c4b5fd, #7c3aed); color: #fff;
}
.sched-plain-lane.lane-stop .sched-plain-block {
  background: #374151; color: #e2e8f0;
}
.sched-plain-block.is-live {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
.sched-plain-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-style: normal; font-size: 10px; color: var(--brand-muted);
  pointer-events: none; opacity: 0.7;
}
.sched-plain-now {
  position: absolute; top: 0; bottom: 0; z-index: 5; width: 0;
  border-left: 2px solid #f87171; pointer-events: none;
}
.sched-plain-now span {
  position: absolute; top: -0.15rem; left: 0; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9px; font-weight: 800;
  color: #111; background: #f87171; padding: 0.05rem 0.3rem; border-radius: 3px;
}
@media (max-width: 720px) {
  .sched-plain-lane,
  .sched-plain-hours { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .sched-plain-now { left: calc(5.5rem + (100% - 5.5rem) * var(--now, 0)) !important; }
}

/* Agenda (order-of-day list — no graph) */
.sched-agenda {
  background: #0e1117;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  overflow: hidden;
}
.sched-agenda-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 0.55rem; padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.sched-agenda-head-text { min-width: 0; flex: 1 1 auto; }
.sched-agenda-title {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  margin: 0; color: #fff; font-size: 15px; font-weight: 700;
  font-family: var(--font-display, inherit);
}
.sched-agenda-sub {
  display: block; margin: 0.28rem 0 0;
  font-size: 11px; color: var(--brand-muted); line-height: 1.35;
  max-width: 36rem;
}
.sched-agenda-head strong {
  display: block; color: #fff; font-size: 15px; font-weight: 700;
  font-family: var(--font-display, inherit);
}
.sched-agenda-head > div > span {
  display: block; font-size: 11px; color: var(--brand-muted); margin-top: 0.1rem;
}
.sched-agenda-actions { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.sched-agenda-prio {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.15rem;
  padding: 0.45rem 0.9rem 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.18);
}
.sched-agenda-prio-chip {
  display: inline-flex; align-items: center; gap: 0.2rem;
  font-size: 11px; font-weight: 650; color: var(--brand-dim);
}
.sched-agenda-prio-chip em {
  font-style: normal; font-family: var(--font-mono);
  font-size: 10px; font-weight: 800;
  color: var(--ev-accent, #fbbf24);
}
.sched-agenda-prio-chip.lane-main { --ev-accent: #fbbf24; }
.sched-agenda-prio-chip.lane-ads { --ev-accent: #38bdf8; }
.sched-agenda-prio-chip.lane-alt { --ev-accent: #a78bfa; }
.sched-agenda-prio-chip.lane-stop { --ev-accent: #94a3b8; }
.sched-agenda-prio-chip .material-symbols-outlined {
  font-size: 14px; opacity: .45; margin: 0 0.1rem;
}
.sched-agenda-cover {
  font-size: 9px; font-weight: 700;
  padding: 0.1rem 0.4rem; border-radius: 5px;
  color: #fca5a5;
  background: rgba(248,113,113,.12);
  border: 1px solid rgba(248,113,113,.25);
}
.sched-agenda-item.is-covered .sched-agenda-card { opacity: .72; }
.sched-agenda-item.is-covered .sched-agenda-main strong { text-decoration: line-through; text-decoration-color: rgba(248,113,113,.45); }
.sched-agenda-list {
  list-style: none; margin: 0; padding: 0.35rem 0.55rem 0.75rem;
  display: flex; flex-direction: column; gap: 0.35rem;
  max-height: min(70vh, 720px); overflow: auto; scrollbar-width: thin;
}
.sched-agenda-item {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  gap: 0.4rem; align-items: stretch;
}
.sched-agenda-hour {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--brand-muted); padding-top: 0.85rem; text-align: right;
}
.sched-agenda-hour.is-gap { visibility: hidden; }
.sched-agenda-card {
  display: flex; align-items: stretch; gap: 0; min-width: 0;
  padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; text-align: left;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(20,24,32,.95);
  color: inherit;
  transition: border-color .12s, transform .12s, box-shadow .12s;
}
.sched-agenda-card:hover {
  border-color: color-mix(in srgb, var(--ev-accent, #fbbf24) 40%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.28);
}
.sched-agenda-bar {
  flex: 0 0 4px; background: var(--ev-accent, #fbbf24);
}
.sched-agenda-main {
  min-width: 0; flex: 1;
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.55rem 0.7rem;
}
.sched-agenda-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
}
.sched-agenda-top em {
  font-style: normal; font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; color: var(--brand-dim);
}
.sched-agenda-chip {
  font-size: 9px; font-weight: 750;
  padding: 0.1rem 0.4rem; border-radius: 999px;
  color: var(--ev-accent, #fbbf24);
  background: color-mix(in srgb, var(--ev-accent, #fbbf24) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ev-accent, #fbbf24) 28%, transparent);
}
.sched-agenda-live {
  font-size: 9px; font-weight: 800; letter-spacing: .04em;
  padding: 0.1rem 0.35rem; border-radius: 5px;
  color: #111; background: #fbbf24;
}
.sched-agenda-main strong {
  font-size: 14px; font-weight: 700; color: #f3f4f6; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sched-agenda-sub {
  font-size: 11px; color: var(--brand-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sched-agenda-del {
  width: 32px; height: 32px; align-self: center;
  display: grid; place-items: center; padding: 0; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08); background: transparent;
  color: var(--brand-muted); cursor: pointer;
}
.sched-agenda-del:hover { color: #fca5a5; border-color: rgba(248,113,113,.35); }
.sched-agenda-del .material-symbols-outlined { font-size: 16px; }
.sched-agenda-item.lane-main { --ev-accent: #fbbf24; }
.sched-agenda-item.lane-ads { --ev-accent: #38bdf8; }
.sched-agenda-item.lane-alt { --ev-accent: #a78bfa; }
.sched-agenda-item.lane-stop { --ev-accent: #94a3b8; }
.sched-agenda-item.lane-silence { --ev-accent: #f87171; }
.sched-agenda-item.lane-mourning { --ev-accent: #94a3b8; }
.sched-agenda-item.is-off { opacity: 0.55; }
.sched-agenda-item.is-held .sched-agenda-card { opacity: 0.62; }
.sched-agenda-item.is-held .sched-agenda-main strong {
  text-decoration: line-through;
  text-decoration-color: rgba(148, 163, 184, 0.7);
}
.sched-agenda-item.is-live .sched-agenda-card {
  border-color: color-mix(in srgb, var(--ev-accent) 50%, transparent);
}
.sched-agenda-empty {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  padding: 2.5rem 1rem; text-align: center; color: var(--brand-muted);
}
.sched-agenda-empty .material-symbols-outlined { font-size: 32px; opacity: .5; }
.sched-agenda-empty p { margin: 0 0 0.35rem; font-size: 14px; color: var(--brand-dim); }

/* Vertical day calendar (legacy styles kept for shared bits) */
.sched-daycal {
  background: #0e1117;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.sched-daycal-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.55rem 1rem; padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.sched-daycal-title strong {
  display: block; color: #fff; font-size: 15px; font-weight: 700;
  font-family: var(--font-display, inherit); letter-spacing: -0.02em;
}
.sched-daycal-title span {
  display: block; font-size: 11px; color: var(--brand-muted); margin-top: 0.12rem;
}
.sched-daycal-legend {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.7rem;
  font-size: 10px; font-weight: 650; color: var(--brand-muted);
}
.sched-daycal-legend .lg {
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.sched-daycal-legend .lg::before {
  content: ""; width: 8px; height: 8px; border-radius: 3px;
  background: currentColor;
}
.sched-daycal-legend .lg.lane-main { color: #fbbf24; }
.sched-daycal-legend .lg.lane-ads { color: #38bdf8; }
.sched-daycal-legend .lg.lane-alt { color: #a78bfa; }
.sched-daycal-legend .lg.lane-stop { color: #94a3b8; }
.sched-daycal-legend .lg.lane-silence { color: #f87171; }
.sched-daycal-actions {
  display: flex; flex-wrap: wrap; gap: 0.3rem; margin-left: auto;
}
.sched-daycal-actions .studio-btn-ghost {
  padding: 0.32rem 0.55rem; font-size: 11px;
}
.sched-daycal-cta {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.35rem 0.7rem; border-radius: 8px;
  border: 0; cursor: pointer; font-size: 12px; font-weight: 700;
  color: #111; background: linear-gradient(135deg, #fbbf24, #d97706);
}
.sched-daycal-cta .material-symbols-outlined { font-size: 16px; }
.sched-daycal-cta:hover { filter: brightness(1.05); }
.sched-daycal-allday {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.45rem; align-items: start;
  padding: 0.5rem 0.75rem 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(148,163,184,.06);
}
.sched-daycal-allday-lab {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  color: var(--brand-muted); text-transform: uppercase; letter-spacing: .04em;
  padding-top: 0.45rem; text-align: right;
}
.sched-daycal-allday-list { display: flex; flex-direction: column; gap: 0.3rem; }
.sched-daycal-banner {
  display: flex; align-items: center; gap: 0.5rem;
  width: 100%; text-align: left; cursor: pointer;
  padding: 0.45rem 0.6rem; border-radius: 10px;
  border: 1px solid rgba(148,163,184,.28);
  background: rgba(30,41,59,.65); color: inherit;
}
.sched-daycal-banner.mourn .material-symbols-outlined { font-size: 18px; color: #94a3b8; }
.sched-daycal-banner-txt { min-width: 0; display: flex; flex-direction: column; gap: 0.05rem; }
.sched-daycal-banner strong { font-size: 12px; color: #e2e8f0; }
.sched-daycal-banner em { font-style: normal; font-size: 11px; color: var(--brand-muted); }
.sched-daycal-banner:hover { border-color: rgba(148,163,184,.5); background: rgba(51,65,85,.55); }
.sched-daycal-scroll {
  max-height: min(72vh, 780px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(245,158,11,.35) transparent;
}
.sched-daycal-body {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  min-height: 0;
}
.sched-daycal-hours {
  position: sticky; left: 0; z-index: 4;
  border-right: 1px solid rgba(255,255,255,.05);
  background: #0e1117;
}
.sched-daycal-hour {
  box-sizing: border-box;
  display: flex; align-items: flex-start; justify-content: flex-end; gap: 0.1rem;
  padding: 0.2rem 0.45rem 0 0;
  color: var(--brand-muted);
}
.sched-daycal-hour span {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; line-height: 1;
}
.sched-daycal-hour small {
  font-family: var(--font-mono); font-size: 8px; opacity: 0.55; line-height: 1; margin-top: 1px;
}
.sched-daycal-grid {
  position: relative; cursor: crosshair;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent calc(100% / 4 - 1px),
      rgba(255,255,255,.015) calc(100% / 4 - 1px),
      rgba(255,255,255,.015) calc(100% / 4)
    );
}
.sched-daycal-row {
  position: absolute; left: 0; right: 0; pointer-events: none;
}
.sched-daycal-row i {
  position: absolute; left: 0; right: 0; height: 1px; display: block;
}
.sched-daycal-row i.is-full { top: 0; background: rgba(255,255,255,.07); }
.sched-daycal-row i.is-half { top: 50%; background: rgba(255,255,255,.03); }
.sched-daycal-now {
  position: absolute; left: 0; right: 0; z-index: 6; pointer-events: none;
}
.sched-daycal-now b {
  display: block; height: 2px; background: #f87171;
  box-shadow: 0 0 10px rgba(248,113,113,.55);
}
.sched-daycal-now span {
  position: absolute; left: 0; top: -0.65rem;
  font-family: var(--font-mono); font-size: 9px; font-weight: 800;
  color: #111; background: #f87171;
  padding: 0.1rem 0.35rem; border-radius: 4px;
  box-shadow: 0 2px 8px rgba(248,113,113,.35);
}
.sched-daycal-ev {
  position: absolute; left: 0.4rem; right: 0.5rem; z-index: 2;
  display: flex; align-items: stretch; gap: 0;
  padding: 0; border-radius: 10px; overflow: hidden;
  text-align: left; cursor: pointer;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(22,26,34,.96);
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.sched-daycal-ev-bar {
  flex: 0 0 4px; align-self: stretch;
  background: var(--ev-accent, #fbbf24);
}
.sched-daycal-ev-body {
  min-width: 0; flex: 1;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 0.15rem;
  padding: 0.35rem 0.55rem 0.4rem;
}
.sched-daycal-ev-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 0.35rem;
}
.sched-daycal-ev-time {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  color: var(--brand-dim);
}
.sched-daycal-ev-chip {
  flex-shrink: 0;
  font-size: 9px; font-weight: 750; letter-spacing: .02em;
  padding: 0.08rem 0.35rem; border-radius: 999px;
  color: var(--ev-accent, #fbbf24);
  background: color-mix(in srgb, var(--ev-accent, #fbbf24) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--ev-accent, #fbbf24) 28%, transparent);
}
.sched-daycal-ev strong {
  font-size: 12px; font-weight: 700; line-height: 1.25; color: #f3f4f6;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sched-daycal-ev.lane-main { --ev-accent: #fbbf24; }
.sched-daycal-ev.lane-ads { --ev-accent: #38bdf8; }
.sched-daycal-ev.lane-alt { --ev-accent: #a78bfa; }
.sched-daycal-ev.lane-stop { --ev-accent: #94a3b8; }
.sched-daycal-ev.lane-silence {
  --ev-accent: #f87171;
  background: rgba(69,10,10,.55);
  border-color: rgba(248,113,113,.28);
}
.sched-daycal-ev.is-live {
  border-color: color-mix(in srgb, var(--ev-accent) 55%, #fff);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ev-accent) 35%, transparent),
    0 6px 18px rgba(0,0,0,.35);
}
.sched-daycal-ev:hover {
  z-index: 4; transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ev-accent) 45%, transparent);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.sched-daycal-empty {
  position: absolute; inset: 28% 1rem auto; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  text-align: center; pointer-events: none; color: var(--brand-muted);
}
.sched-daycal-empty .material-symbols-outlined {
  font-size: 28px; opacity: 0.55; margin-bottom: 0.2rem;
}
.sched-daycal-empty p {
  margin: 0; font-size: 13px; font-weight: 650; color: var(--brand-dim);
}
.sched-daycal-empty em {
  font-style: normal; font-size: 11px;
}
@media (max-width: 720px) {
  .sched-daycal-legend { display: none; }
  .sched-daycal-body { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .sched-daycal-allday { grid-template-columns: 2.75rem minmax(0, 1fr); }
}
.sched-top { display: flex; flex-direction: column; gap: 0.55rem; }
.sched-top-main {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.55rem 0.85rem;
}
.sched-title-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
}
.sched-tz-chip {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 0.2rem 0.55rem; border-radius: 7px;
  background: rgba(26,34,51,.9); color: var(--brand-muted);
  border: 1px solid rgba(32,36,45,.9);
}
.sched-top-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
}
.sched-action-time {
  font-family: var(--font-mono); font-style: normal; font-size: 10px;
  color: var(--brand-muted); margin-left: 0.15rem;
}
.sched-datebar-ico {
  font-size: 16px !important; color: var(--brand-amber);
}
.sched-day-chip {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  padding: 0.15rem 0.4rem; border-radius: 6px;
  background: rgba(40,49,68,.8); color: var(--brand-ink);
  border: 1px solid rgba(32,36,45,.9); text-transform: uppercase;
}
.sched-onair {
  display: inline-flex; align-items: center; gap: 0.4rem; max-width: 220px;
  font-size: 11px; color: var(--brand-muted);
}
.sched-onair strong {
  color: var(--brand-ink); font-weight: 600; font-size: 12px;
}
.sched-clock.is-live strong {
  color: var(--brand-amber); border-color: rgba(245,158,11,.35);
}
.sched-clock-dot {
  width: 7px; height: 7px; border-radius: 9999px;
  background: var(--brand-amber);
  box-shadow: 0 0 8px rgba(245,158,11,.7);
  animation: sched-pulse 1.4s ease-in-out infinite;
}
@keyframes sched-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.85); }
}
.sched-badge-24h {
  width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 9px; font-weight: 800;
  color: var(--brand-amber);
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.4);
}
.sched-lane-side-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.35rem;
  padding-right: 1.5rem;
}
.sched-pr-pill {
  font-family: var(--font-mono); font-style: normal; font-size: 9px; font-weight: 700;
  padding: 0.1rem 0.3rem; border-radius: 4px;
  background: rgba(255,255,255,.06); color: var(--brand-muted);
}
.sched-lane-side.lane-stop .sched-pr-pill { background: rgba(100,116,139,.25); color: #94a3b8; }
.sched-lane-side.lane-alt .sched-pr-pill { background: rgba(99,102,241,.2); color: #a5b4fc; }
.sched-lane-side.lane-ads .sched-pr-pill { background: rgba(14,165,233,.2); color: #7dd3fc; }
.sched-lane-side.lane-main .sched-pr-pill { background: rgba(245,158,11,.18); color: #fbbf24; }
.sched-list-title {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
}
.sched-count-pill {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 0.15rem 0.55rem; border-radius: 9999px;
  background: rgba(24,32,47,.9); color: var(--brand-amber);
  border: 1px solid rgba(32,36,45,.9);
}
.sched-live-ico {
  font-size: 16px !important; color: var(--brand-amber);
  vertical-align: -3px; margin-right: 0.25rem;
  animation: sched-pulse 1.4s ease-in-out infinite;
}
.sched-status.status-live {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(245,158,11,.18) !important;
  color: var(--brand-amber) !important;
  border: 1px solid rgba(245,158,11,.4);
  font-weight: 700;
  animation: sched-pulse 1.6s ease-in-out infinite;
}
.sched-status-dot {
  width: 6px; height: 6px; border-radius: 9999px;
  background: var(--brand-amber); display: inline-block;
  box-shadow: 0 0 6px rgba(245,158,11,.8);
}
.sched-slot-row.status-live {
  border-left: 2px solid var(--brand-amber);
  box-shadow: inset 0 0 0 1px rgba(245,158,11,.12);
}
.slot-glow-active,
.sched-block.is-live {
  box-shadow: 0 0 16px rgba(245,158,11,.22), inset 0 0 0 1px rgba(245,158,11,.55) !important;
  z-index: 3;
}
.sched-zoom-fit.is-now {
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.45);
  color: var(--brand-amber);
}
.sched-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.2rem 0.65rem; border-radius: 9999px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .04em;
}
.sched-badge.live {
  background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); color: #34d399;
}
.sched-badge.mourning {
  background: rgba(148,163,184,.12); border: 1px solid rgba(148,163,184,.4); color: #cbd5e1;
}
.sched-badge .dot {
  width: 6px; height: 6px; border-radius: 9999px; background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.sched-datebar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.75rem 1.1rem; border-radius: 14px;
  background: var(--brand-card); border: 1px solid rgba(32,36,45,.85);
}
.sched-datebar-left, .sched-datebar-right {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem;
}

.sched-special-modal {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 0.85rem 1.1rem 0.4rem;
}
.sched-special-modal .sched-special-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem;
}
.sched-special-modal .sched-special-grid label {
  display: flex; flex-direction: column; gap: 0.3rem;
}
.sched-special-modal .sched-special-grid label > span {
  font-size: 11px; font-weight: 650; color: var(--brand-muted);
}
.sched-special-modal-foot {
  display: flex; width: 100%; align-items: center;
  justify-content: space-between; gap: 0.5rem;
}
.slot-lane-cfg {
  margin-left: auto; padding: 0.25rem 0.5rem !important; font-size: 11px !important;
}
.slot-lane-hint {
  margin: 0.45rem 0 0; font-size: 11px; color: var(--brand-muted); line-height: 1.35;
}
.slot-manual {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 0.85rem 1.05rem 0.5rem;
}
.slot-manual .slot-field-hint {
  display: block; margin-top: 0.25rem;
  font-style: normal; font-size: 11px; color: var(--brand-muted); line-height: 1.35;
}
.slot-manual .slot-time-pair,
.slot-manual .sched-vol-box { margin-top: 0; }
.lane-prio-editor {
  padding: 0.55rem 0.85rem 0.35rem;
}
.lane-prio-list {
  display: flex; flex-direction: column; gap: 0.35rem;
}
.lane-prio-row {
  --lane-accent: #fbbf24;
  display: grid;
  grid-template-columns: 1.55rem 1.55rem minmax(4.5rem, 6.5rem) minmax(0, 1fr);
  gap: 0.4rem;
  align-items: end;
  padding: 0.4rem 0.45rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--lane-accent) 26%, transparent);
  background: color-mix(in srgb, var(--lane-accent) 7%, rgba(0,0,0,.22));
}
.lane-prio-row.lane-stop { --lane-accent: #94a3b8; }
.lane-prio-row.lane-alt { --lane-accent: #a78bfa; }
.lane-prio-row.lane-ads { --lane-accent: #38bdf8; }
.lane-prio-row.lane-main { --lane-accent: #fbbf24; }
.lane-prio-num {
  display: grid; place-items: center;
  width: 1.55rem; height: 1.55rem; margin-bottom: 0.15rem;
  border-radius: 7px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 800;
  color: var(--lane-accent);
  background: color-mix(in srgb, var(--lane-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--lane-accent) 32%, transparent);
}
.lane-prio-row .lane-prio-ico {
  width: 1.55rem; height: 1.55rem; margin-bottom: 0.15rem;
  border-radius: 7px;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(0,0,0,.28);
  border: 1px solid color-mix(in srgb, var(--lane-accent) 28%, transparent);
  color: var(--lane-accent);
}
.lane-prio-row .lane-prio-ico .material-symbols-outlined { font-size: 15px; }
.lane-prio-cell {
  display: flex; flex-direction: column; gap: 0.15rem; min-width: 0;
}
.lane-prio-cell > span {
  font-size: 9px; font-weight: 650; color: var(--brand-muted);
  letter-spacing: 0.02em; text-transform: uppercase;
}
.lane-prio-cell .media-input {
  padding: 0.35rem 0.45rem;
  font-size: 12px;
  min-height: 0;
}
.lane-prio-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem; width: 100%;
}
.lane-prio-foot-right {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-left: auto;
}
@media (max-width: 520px) {
  .lane-prio-row {
    grid-template-columns: 1.55rem 1.55rem 1fr;
    grid-template-rows: auto auto;
  }
  .lane-prio-cell.is-grow { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .sched-special-modal .sched-special-grid { grid-template-columns: 1fr; }
}

/* Specials: add buttons + draft form + active list */
.sched-specials-wrap {
  display: flex; flex-direction: column; gap: 0.65rem;
  margin-top: 0.85rem;
}
.sched-specials-actions {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.sched-special-card {
  display: flex; flex-direction: column; gap: 0.65rem;
  padding: 0.85rem 1rem; border-radius: 14px;
  background: var(--brand-card); border: 1px solid rgba(32,36,45,.85);
}
.sched-special-card.is-silence.is-on { border-color: rgba(248,113,113,.35); }
.sched-special-card.is-mourn.is-on { border-color: rgba(148,163,184,.4); }
.sched-special-h {
  display: flex; align-items: flex-start; gap: 0.55rem;
}
.sched-special-h .material-symbols-outlined {
  font-size: 22px; color: var(--brand-amber); margin-top: 2px;
}
.sched-special-card.is-silence .sched-special-h .material-symbols-outlined { color: #f87171; }
.sched-special-card.is-mourn .sched-special-h .material-symbols-outlined { color: #94a3b8; }
.sched-special-h strong {
  display: block; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.25;
}
.sched-special-h p {
  margin: 0.15rem 0 0; font-size: 11px; color: var(--brand-muted); line-height: 1.35;
}
.sched-special-h .studio-btn-ghost { margin-left: auto; flex-shrink: 0; }
.sched-special-switch {
  display: flex; align-items: center; gap: 0.4rem;
  cursor: pointer; flex-shrink: 0;
}
.sched-special-switch.inline { margin: 0; }
.sched-special-switch em {
  font-style: normal; font-size: 11px; font-weight: 700; color: var(--brand-muted);
}
.sched-special-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem;
}
.sched-special-grid label {
  display: flex; flex-direction: column; gap: 0.25rem;
}
.sched-special-grid label > span {
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brand-muted);
}
.sched-loc-chips {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
}
.sched-loc-chip {
  padding: 0.3rem 0.55rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.22);
  color: var(--brand-muted); font-size: 11px; font-weight: 650; cursor: pointer;
}
.sched-loc-chip.is-on {
  color: #111; background: linear-gradient(135deg, #fbbf24, #d97706);
  border-color: rgba(253,230,138,.45);
}
.sched-special-foot {
  display: flex; justify-content: flex-end; gap: 0.4rem; flex-wrap: wrap;
}
.sched-active {
  padding: 0.55rem 0.6rem 0.65rem; border-radius: 12px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.06);
}
.sched-active-h {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.sched-active-h strong { color: #fff; font-size: 12px; font-weight: 700; }
.sched-active-h span {
  font-family: var(--font-mono); font-size: 11px; color: var(--brand-muted);
}
.sched-active-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.sched-active-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem; align-items: center;
  padding: 0.35rem 0.4rem; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.2);
}
.sched-active-row.is-silence { border-color: rgba(248,113,113,.22); }
.sched-active-row.is-mourn { border-color: rgba(148,163,184,.25); }
.sched-active-row.lane-stop { border-color: rgba(100,116,139,.3); }
.sched-active-row.lane-alt { border-color: rgba(167,139,250,.28); }
.sched-active-row.lane-ads { border-color: rgba(56,189,248,.28); }
.sched-active-row.lane-main { border-color: rgba(245,158,11,.28); }
.sched-active-open {
  display: block; min-width: 0; text-align: left;
  border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0;
}
.sched-active-open strong {
  display: block; color: #f5f5f5; font-size: 11px; font-weight: 700; line-height: 1.3;
}
.sched-active-open em {
  display: block; font-style: normal; font-size: 10px; color: var(--brand-muted); margin-top: 0.1rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sched-active-empty {
  margin: 0; font-size: 11px; color: var(--brand-muted); line-height: 1.4;
}
.sched-active-empty strong { color: #e8c48a; }
.sched-lane-toggles {
  display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center;
}
.sched-lane-tog {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 11px; font-weight: 650; color: var(--brand-muted); cursor: pointer;
}
.sched-lane-tog input { accent-color: #d97706; }

/* Top section: Шаблон | Розпис */
.sched-section-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 0.2rem;
  padding: 0.18rem; margin: 0;
  flex: 0 0 auto;
  align-self: flex-start;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
}
.sched-section-tab {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px; border: 0; background: transparent;
  color: var(--brand-muted); font-size: 12px; font-weight: 750;
  cursor: pointer; white-space: nowrap;
  transition: color .15s, background .15s, box-shadow .15s;
}
.sched-section-tab .material-symbols-outlined { font-size: 17px; }
.sched-section-tab:hover { color: #f5f5f5; }
.sched-section-tab.is-on {
  color: #111;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 3px 12px rgba(217,119,6,.32);
}

/* Video template: Основний / Реклама */
.sched-agenda > .sched-lane-tabs {
  margin: 0.55rem 0.75rem 0;
}
.sched-lane-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 0.25rem;
  padding: 0.15rem; margin: 0.15rem 0 0;
  align-self: flex-start;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}
.sched-lane-tab {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.38rem 0.85rem;
  border-radius: 8px; border: 0; background: transparent;
  color: var(--brand-muted); font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.sched-lane-tab .material-symbols-outlined { font-size: 16px; }
.sched-lane-tab:hover { color: #f5f5f5; background: rgba(255,255,255,.04); }
.sched-lane-tab.is-on {
  color: #fde68a;
  background: rgba(245,158,11,.14);
  box-shadow: inset 0 0 0 1px rgba(245,158,11,.28);
}
.sched-lane-tab.is-ads.is-on {
  color: #fecaca;
  background: rgba(127,29,29,.28);
  box-shadow: inset 0 0 0 1px rgba(248,113,113,.35);
}

/* Rundown dock — today / week / month next to track list */
.sched-rundown-dock {
  display: flex; flex-direction: column; gap: 0.45rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem 0.65rem;
  border-radius: 12px;
  background: var(--brand-card);
  border: 1px solid rgba(255,255,255,.08);
  flex: 1 1 auto;
  min-height: 0;
}
.sched-rundown-dock-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.4rem 0.65rem;
}
.sched-rundown-dock-meta {
  display: flex; flex-direction: column; gap: 0.05rem; min-width: 0;
}
.sched-rundown-dock-meta strong {
  font-size: 0.88rem; font-weight: 700; color: #fff;
}
.sched-rundown-dock-meta span {
  font-size: 10px; color: var(--brand-muted);
}
.sched-playback-strip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.15rem 0 0.2rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}
.sched-playback-strip.is-ok {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(16, 185, 129, 0.08);
}
.sched-playback-strip.is-warn {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}
.sched-playback-strip.is-alarm {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(239, 68, 68, 0.1);
}
.sched-playback-strip.is-info,
.sched-playback-strip.is-muted {
  border-color: rgba(255, 255, 255, 0.08);
}
.sched-playback-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.85rem;
}
@media (max-width: 720px) {
  .sched-playback-cols { grid-template-columns: 1fr; }
}
.sched-playback-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.sched-playback-col em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-muted);
}
.sched-playback-col strong {
  font-size: 0.82rem;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched-playback-why {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  min-width: 0;
}
.sched-playback-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.08);
  color: #e8eaef;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.sched-playback-strip.is-ok .sched-playback-chip {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}
.sched-playback-strip.is-warn .sched-playback-chip {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}
.sched-playback-strip.is-alarm .sched-playback-chip {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}
.sched-playback-chip.is-alarm {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sched-playback-chip.is-vol {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  opacity: 0.9;
}
.sched-playback-detail {
  font-size: 11px;
  color: var(--brand-dim);
  min-width: 0;
  flex: 1 1 12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched-rundown-tag.is-live-gap {
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.4);
}
.sched-rundown-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0 0.15rem;
}
.sched-rundown-fchip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: var(--brand-dim);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  max-width: 12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched-rundown-fchip em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-muted);
  opacity: 0.9;
}
.sched-rundown-fchip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.sched-rundown-fchip.is-on {
  color: #0c0d10;
  border-color: transparent;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.sched-rundown-fchip.is-on em { color: rgba(12, 13, 16, 0.65); }
.sched-rundown-fchip.is-ads {
  border-color: rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
}
.sched-rundown-fchip.is-ads.is-on {
  color: #0c1220;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}
.sched-rundown-fchip.is-ads.is-on em { color: rgba(12, 18, 32, 0.65); }
/* Playlist chips stay amber/neutral — never neon green */
.sched-rundown-fchip.is-pl.tone-0,
.sched-rundown-fchip.is-pl.tone-1,
.sched-rundown-fchip.is-pl.tone-2,
.sched-rundown-fchip.is-pl.tone-3,
.sched-rundown-fchip.is-pl.tone-4 {
  --pl-accent: #fbbf24;
}
.sched-rundown-fchip.is-pl:not(.is-on) {
  border-color: rgba(251, 191, 36, 0.28);
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.06);
}
.sched-rundown-fchip.is-pl.is-on {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0c0d10;
}
.sched-rundown-dock-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
}
.sched-rundown-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.34rem 0.8rem 0.34rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(251,191,36,.28);
  background:
    linear-gradient(135deg, rgba(251,191,36,.16), rgba(217,119,6,.08)),
    rgba(0,0,0,.28);
  color: #fde68a;
  font-size: 11px; font-weight: 750; letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 4px 14px rgba(0,0,0,.22);
  transition: color .15s, border-color .15s, background .15s, transform .12s;
}
.sched-rundown-toggle .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 20;
}
.sched-rundown-toggle-lab { line-height: 1; }
.sched-rundown-toggle:hover {
  color: #fff;
  border-color: rgba(251,191,36,.55);
  background:
    linear-gradient(135deg, rgba(251,191,36,.28), rgba(217,119,6,.16)),
    rgba(0,0,0,.3);
  transform: translateY(-1px);
}
.sched-rundown-toggle.is-collapsed {
  color: #111;
  border-color: rgba(253,230,138,.55);
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 4px 16px rgba(217,119,6,.35);
}
.sched-rundown-toggle.is-collapsed:hover {
  color: #111;
  filter: brightness(1.05);
}
.sched-rundown-toggle.is-expanded {
  color: #fde68a;
}

.sched-special-chips {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  margin: 0.15rem 0 0.45rem;
}
.sched-special-chips.is-rundown {
  margin: 0 0 0.45rem;
  padding: 0.15rem 0 0.05rem;
}
.sched-special-chip {
  display: inline-flex; align-items: center; gap: 0.28rem;
  max-width: 100%;
  padding: 0.28rem 0.55rem 0.28rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.28);
  color: #e5e7eb;
  font-size: 11px; font-weight: 650;
  line-height: 1.15;
}
.sched-special-chip .material-symbols-outlined {
  font-size: 15px; flex-shrink: 0;
}
.sched-special-chip strong {
  font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sched-special-chip em {
  font-style: normal; font-family: var(--font-mono);
  font-size: 10px; font-weight: 650; opacity: .75;
  white-space: nowrap;
}
.sched-special-chip.is-silence {
  color: #fecaca;
  border-color: rgba(248,113,113,.35);
  background: rgba(248,113,113,.12);
}
.sched-special-chip.is-silence .material-symbols-outlined { color: #f87171; }
.sched-special-chip.is-mourning {
  color: #e2e8f0;
  border-color: rgba(148,163,184,.4);
  background: rgba(148,163,184,.12);
}
.sched-special-chip.is-mourning .material-symbols-outlined { color: #94a3b8; }
.sched-special-chip.is-stop {
  color: #cbd5e1;
  border-color: rgba(100,116,139,.4);
  background: rgba(100,116,139,.14);
}
.sched-special-chip.is-stop .material-symbols-outlined { color: #94a3b8; }
.sched-special-chip.is-ads {
  color: #bfdbfe;
  border-color: rgba(96,165,250,.4);
  background: rgba(59,130,246,.14);
}
.sched-special-chip.is-ads .material-symbols-outlined { color: #60a5fa; }
.sched-special-chip.is-event {
  color: #e9d5ff;
  border-color: rgba(167,139,250,.4);
  background: rgba(139,92,246,.14);
}
.sched-special-chip.is-event .material-symbols-outlined { color: #a78bfa; }
.sched-rundown-panel.sched-rundown-panel-dock,
.sched-rundown-panel-dock {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  background: rgba(0,0,0,.18);
  scrollbar-width: thin;
}
.sched-rundown-panel.sched-rundown-panel-dock.is-soft-loading {
  /* keep scrollable height; overlay sits on top */
  overflow: auto;
}
.sched-rundown-softload {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  background: rgba(11, 13, 17, .55);
  backdrop-filter: blur(2px);
  pointer-events: none;
}
.sched-rundown.is-stale {
  opacity: 0.45;
  filter: saturate(0.7);
}
.sched-rundown-empty {
  margin: 0; padding: 0.75rem 0.85rem;
  font-size: 11px; color: var(--brand-muted);
}
.sched-cal-presets-inline { margin-right: 0.15rem; }
.sched-cal-in-dock {
  padding: 0.35rem 0.4rem 0.4rem !important;
  box-shadow: none;
  background: rgba(0,0,0,.2) !important;
}

/* Calendar — compact date picker (week / month) */
.sched-cal {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.5rem 0.65rem 0.55rem; border-radius: 12px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(251,191,36,.07), transparent 55%),
    var(--brand-card);
  border: 1px solid rgba(255,255,255,.08);
}
.sched-cal-compact.is-browse {
  width: 100%;
  max-width: 100%;
}
.sched-cal-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem 0.55rem;
}
.sched-cal-meta { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.sched-cal-title {
  display: block; font-family: var(--font-display, inherit);
  font-size: 0.82rem; font-weight: 650; color: #fff; line-height: 1.15;
}
.sched-cal-sub { display: block; font-size: 10px; color: var(--brand-muted); }
.sched-cal-aside { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.sched-cal-scopes {
  display: inline-flex; flex-wrap: nowrap; gap: 0.12rem;
  padding: 0.12rem; border-radius: 999px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08);
}
.sched-cal-scope {
  display: inline-flex; align-items: center; gap: 0.2rem;
  padding: 0.22rem 0.45rem; border-radius: 999px;
  border: 0; background: transparent;
  color: var(--brand-muted); font-size: 10px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.sched-cal-scope .material-symbols-outlined { font-size: 14px; }
.sched-cal-scope:hover { color: #f5f5f5; }
.sched-cal-scope.is-on {
  color: #111;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 2px 8px rgba(217,119,6,.3);
}
.sched-cal-today-btn { font-size: 10px; font-weight: 700; padding: 0.25rem 0.55rem; }
.sched-cal-presets {
  display: flex; flex-wrap: wrap; gap: 0.25rem;
}
.sched-cal-preset {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.02rem;
  padding: 0.32rem 0.7rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.22);
  color: var(--brand-muted); font-size: 11px; font-weight: 700;
  cursor: pointer; min-width: 5.25rem;
}
.sched-cal-preset-hint {
  font-style: normal; font-size: 9px; font-weight: 600;
  opacity: .65; letter-spacing: 0;
}
.sched-cal-preset:hover { border-color: rgba(251,191,36,.35); color: #f5f5f5; }
.sched-cal-preset.is-on {
  color: #111;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-color: rgba(253,230,138,.45);
}
.sched-cal-preset.is-on .sched-cal-preset-hint { opacity: .85; }
.sched-cal-week-nav {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.35rem; align-items: stretch;
  width: 100%;
}
.sched-cal-nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; min-height: 2.75rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.28);
  color: var(--brand-muted); cursor: pointer;
}
.sched-cal-nav:hover { color: #fff; border-color: rgba(251,191,36,.4); }
.sched-cal-nav .material-symbols-outlined { font-size: 18px; }
.sched-cal-week {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.3rem;
  width: 100%;
}
.sched-cal-day {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.08rem; min-height: 2.75rem; padding: 0.35rem 0.2rem 0.4rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.22);
  color: var(--brand-muted); cursor: pointer; user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
.sched-cal-day em {
  font-style: normal; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.03em; opacity: 0.85;
}
.sched-cal-day strong {
  font-family: var(--font-mono); font-size: 14px; font-weight: 750; color: inherit;
}
.sched-cal-count {
  font-family: var(--font-mono); font-size: 8px; font-weight: 700;
  padding: 0 0.22rem; border-radius: 999px;
  background: rgba(255,255,255,.08); color: #e2e8f0;
}
.sched-cal-day.is-weekend { border-color: rgba(96,165,250,.2); }
.sched-cal-day.is-past { opacity: 0.72; }
.sched-cal-day.is-future { border-style: dashed; }
.sched-cal-day.is-group {
  border-color: rgba(251,191,36,.28);
  background: rgba(251,191,36,.07);
  color: #fde68a;
}
.sched-cal-day.is-today { box-shadow: inset 0 0 0 1px rgba(251,191,36,.45); }
.sched-cal-day.is-on {
  color: #111;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-color: rgba(253,230,138,.5);
  box-shadow: 0 3px 10px rgba(217,119,6,.28);
}
.sched-cal-day.is-on .sched-cal-count { background: rgba(0,0,0,.18); color: #111; }
.sched-cal-day:hover:not(.is-on) {
  border-color: rgba(251,191,36,.4); color: #f5f5f5;
}
.sched-cal-today-dot {
  position: absolute; top: 4px; right: 5px;
  width: 4px; height: 4px; border-radius: 999px;
  background: #fbbf24; box-shadow: 0 0 4px rgba(251,191,36,.7);
}
.sched-cal-day.is-on .sched-cal-today-dot { background: #111; box-shadow: none; }
.sched-cal-month {
  display: flex; flex-direction: column; gap: 0.3rem;
  width: 100%;
}
.sched-cal-month-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; gap: 0.25rem;
}
.sched-cal-month-head .sched-cal-nav {
  min-height: 2rem; width: 1.85rem;
}
.sched-cal-month-head .sched-cal-nav .material-symbols-outlined { font-size: 16px; }
.sched-cal-month-head strong {
  display: grid; place-items: center;
  text-align: center; font-size: 12px; font-weight: 750; color: #f8fafc;
  text-transform: capitalize;
  letter-spacing: -0.01em;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
}
.sched-cal-month-dow {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.2rem;
}
.sched-cal-month-dow span {
  text-align: center; font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--brand-muted); opacity: .9;
  padding: 0.08rem 0;
}
.sched-cal-month-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.2rem;
  width: 100%;
}
.sched-cal-mday {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.12rem; min-height: 2.45rem; padding: 0.22rem 0.12rem 0.28rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.22);
  color: #e2e8f0; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .12s;
}
.sched-cal-mday-n {
  font-family: var(--font-mono); font-size: 12px; font-weight: 750; line-height: 1;
}
.sched-cal-mday .sched-cal-count {
  font-size: 8px; padding: 0 0.2rem;
}
.sched-cal-mdots {
  display: flex; gap: 1px; min-height: 3px; align-items: center;
}
.sched-cal-mdots i {
  width: 3px; height: 3px; border-radius: 999px; background: #fbbf24;
}
.sched-cal-mdots.is-empty { opacity: 0; }
.sched-cal-mday.is-out {
  opacity: 0.38;
  border-style: dashed;
  background: transparent;
}
.sched-cal-mday.is-weekend {
  border-color: rgba(96,165,250,.2);
  background: rgba(56,189,248,.05);
}
.sched-cal-mday.is-past { opacity: 0.7; }
.sched-cal-mday.is-out.is-past { opacity: 0.28; }
.sched-cal-mday.is-future:not(.is-out) { border-style: dashed; }
.sched-cal-mday.is-today:not(.is-on) {
  box-shadow: inset 0 0 0 1px rgba(251,191,36,.55);
}
.sched-cal-mday.is-on {
  color: #111;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-color: rgba(253,230,138,.55);
  border-style: solid;
  box-shadow: 0 4px 14px rgba(217,119,6,.3);
}
.sched-cal-mday.is-on .sched-cal-count {
  background: rgba(0,0,0,.18); color: #111;
}
.sched-cal-mday.is-on .sched-cal-today-dot { background: #111; box-shadow: none; }
.sched-cal-mday:hover:not(.is-on) {
  border-color: rgba(251,191,36,.4);
  color: #f5f5f5;
  background: rgba(251,191,36,.08);
  transform: translateY(-1px);
}
.sched-cal-hint { display: none; }
@media (max-width: 640px) {
  .sched-cal-compact.is-browse { width: 100%; }
  .sched-cal-month, .sched-cal-week-nav { width: 100%; }
  .sched-cal-scope-lab { display: none; }
  .sched-cal-scope { padding: 0.28rem; }
}
.sched-clock {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 11px; color: var(--brand-muted);
}
.sched-clock strong {
  color: var(--brand-ink); background: var(--brand-dark); border: 1px solid var(--brand-border);
  padding: 0.25rem 0.55rem; border-radius: 8px;
}

.sched-workspace {
  display: grid; grid-template-columns: 1fr; gap: 0.85rem; align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}
.sched-workspace.single { grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .sched-workspace:not(.single) {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  }
}
.sched-main-col, .sched-side-col {
  display: flex; flex-direction: column; gap: 0.75rem; min-width: 0;
  min-height: 0; height: 100%;
}
.sched-agenda {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.sched-side-col .sched-side {
  display: flex; flex-direction: column; gap: 0.65rem;
  padding: 0.7rem 0.75rem 0.85rem;
  border-radius: 14px;
  background: var(--brand-card);
  border: 1px solid rgba(255,255,255,.08);
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.sched-side-presets {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem;
}
.sched-side-presets .sched-cal-preset {
  min-width: 0; width: 100%;
}
.sched-side-actions {
  display: flex; flex-direction: column; gap: 0.35rem;
}
.sched-side-actions-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem;
}
.sched-side-actions-row .sched-side-action {
  justify-content: center;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  font-size: 11px;
}
.sched-side-action {
  width: 100%; justify-content: flex-start;
}
.sched-add-pair {
  display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap;
}
.sched-add-pair.is-compact {
  gap: 0.25rem;
}
.sched-add-pair .sched-add-ads {
  border-color: rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}
.sched-agenda-chip.lane-ads {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.32);
}
.sched-agenda-chip.lane-main {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.3);
}
/* Compact priorities: numbers only — names live in the editor */
.sched-prio-summary {
  display: flex; flex-direction: column; gap: 0.45rem;
  width: 100%; margin: 0; padding: 0.55rem 0.6rem 0.6rem;
  text-align: left; cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
  color: inherit;
  transition: border-color .15s, background .15s;
}
.sched-prio-summary:hover {
  border-color: rgba(251,191,36,.4);
  background: rgba(251,191,36,.06);
}
.sched-prio-summary-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.35rem;
}
.sched-prio-summary-head strong {
  font-size: 12px; font-weight: 700; color: #fff;
}
.sched-prio-summary-head .material-symbols-outlined {
  font-size: 16px; color: #e8c48a;
}
.sched-prio-ladder {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.15rem; width: 100%;
}
.sched-prio-step {
  display: inline-flex; align-items: center; gap: 0.15rem; flex: 1 1 auto; min-width: 0;
}
.sched-prio-step:last-child { flex: 0 0 auto; }
.sched-prio-pill {
  display: inline-grid; place-items: center;
  width: 1.7rem; height: 1.7rem; border-radius: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 800;
  color: var(--ev-accent, #fbbf24);
  background: color-mix(in srgb, var(--ev-accent, #fbbf24) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ev-accent, #fbbf24) 35%, transparent);
}
.sched-prio-pill.lane-main { --ev-accent: #fbbf24; }
.sched-prio-pill.lane-ads { --ev-accent: #38bdf8; }
.sched-prio-pill.lane-alt { --ev-accent: #a78bfa; }
.sched-prio-pill.lane-stop { --ev-accent: #94a3b8; }
.sched-prio-step i {
  flex: 1 1 auto; height: 1px; min-width: 0.35rem;
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
}
.sched-prio-summary > em {
  font-style: normal; font-size: 10px; color: var(--brand-muted); line-height: 1.3;
}
.sched-cal-scopes.is-side {
  display: grid; grid-template-columns: 1fr; gap: 0.25rem;
  width: 100%; padding: 0.2rem;
  border-radius: 12px;
}
.sched-cal-scopes.is-side .sched-cal-scope {
  justify-content: flex-start;
  width: 100%;
  padding: 0.4rem 0.55rem;
  border-radius: 9px;
  font-size: 11px;
}
.sched-cal-scopes.is-side .sched-cal-scope-lab { display: inline; }
.sched-side-today-card {
  display: flex; flex-direction: column; gap: 0.15rem;
  margin: 0; padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(251,191,36,.28);
  background:
    linear-gradient(135deg, rgba(251,191,36,.14), transparent 55%),
    rgba(0,0,0,.22);
}
.sched-side-today-card strong {
  font-size: 13px; font-weight: 750; color: #fff;
}
.sched-side-today-card span {
  font-size: 11px; color: #fde68a;
}
.sched-cal-in-side {
  padding: 0.4rem !important;
  box-shadow: none;
  background: rgba(0,0,0,.2) !important;
}
.sched-cal-in-side .sched-cal-week-nav { width: 100%; }
.sched-cal-in-side .sched-cal-day {
  min-height: 2.35rem; padding: 0.22rem 0.08rem 0.28rem;
}
.sched-cal-in-side .sched-cal-day em { font-size: 8px; }
.sched-cal-in-side .sched-cal-day strong { font-size: 12px; }
.sched-cal-in-side .sched-cal-mday {
  min-height: 2.1rem; padding: 0.18rem 0.08rem 0.22rem;
}
.sched-cal-in-side .sched-cal-mday-n { font-size: 11px; }
.sched-side-col .sched-active.sticky,
.sched-side-col .sched-catalog.sticky {
  position: sticky; top: 0.5rem;
  max-height: calc(100vh - 5.5rem);
  overflow: auto;
  scrollbar-width: thin;
}
.sched-side-col .sched-active-h .sched-catalog-ico { flex-shrink: 0; }
.sched-catalog {
  padding: 0.45rem 0.5rem 0.55rem;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.06);
}
.sched-catalog-h {
  display: flex; align-items: center; justify-content: space-between; gap: 0.35rem;
  margin-bottom: 0.25rem; padding: 0 0.1rem;
}
.sched-catalog-h strong {
  color: #fff; font-size: 12px; font-weight: 700;
}
.sched-catalog-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex: 0 0 auto;
  border-radius: 7px;
  border: 1px solid rgba(217, 156, 72, .55);
  background: rgba(0,0,0,.35);
  color: #e8c48a; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.sched-catalog-ico .material-symbols-outlined { font-size: 15px; }
.sched-catalog-ico:hover {
  border-color: rgba(251,191,36,.7);
  background: rgba(251,191,36,.1);
  color: #fde68a;
}
.sched-catalog-ico.danger {
  border-color: rgba(248,113,113,.35);
  color: #fca5a5;
}
.sched-catalog-ico.danger:hover {
  border-color: rgba(248,113,113,.6);
  background: rgba(248,113,113,.1);
}
.sched-catalog-ico[aria-pressed="true"] {
  border-color: rgba(251,191,36,.75);
  background: rgba(251,191,36,.14);
  color: #fbbf24;
}
.sched-catalog-settings {
  margin-bottom: 0.55rem; padding: 0.55rem 0.5rem;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.22);
  display: flex; flex-direction: column; gap: 0.45rem;
}
.sched-catalog-settings.inline {
  margin: 0; padding: 0; border: 0; background: transparent;
  flex: 1; min-width: 0;
}
.sched-catalog-settings-lab {
  margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brand-muted);
}
.sched-lane-toggles.stacked {
  display: flex; flex-direction: column; align-items: stretch; gap: 0.35rem;
}
.sched-catalog-mourn-btn { justify-content: flex-start; width: 100%; }
.sched-catalog-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.sched-catalog-list.in-modal {
  padding: 0.35rem 1rem 0.55rem;
  gap: 0.25rem;
}
.sched-catalog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.35rem;
  align-items: center;
  padding: 0.15rem 0;
}
.sched-catalog-list.in-modal .sched-catalog-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.sched-catalog-main.static {
  cursor: default;
}
.sched-catalog-main {
  display: flex; align-items: baseline; gap: 0.35rem; min-width: 0;
  padding: 0.22rem 0.15rem; border: 0; background: transparent;
  color: #f5f5f5; cursor: pointer; text-align: left;
}
.sched-catalog-main strong {
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
}
.sched-catalog-time {
  font-style: normal; font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; color: #f87171;
  text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.sched-catalog-count {
  font-style: normal; font-family: var(--font-mono);
  font-size: 11px; color: var(--brand-muted);
}
.sched-catalog-panel {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 0.35rem 0.15rem 0.45rem 0.25rem;
  border-top: 1px solid rgba(255,255,255,.05);
}
.sched-catalog-items {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.sched-catalog-items > li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem; align-items: center;
}
.sched-catalog-item {
  display: block; min-width: 0; text-align: left;
  padding: 0.4rem 0.45rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.25);
  cursor: pointer; color: inherit;
}
.sched-catalog-item:hover { border-color: rgba(251,191,36,.35); }
.sched-catalog-item strong {
  display: block; font-size: 11px; font-weight: 700; color: #f5f5f5; line-height: 1.3;
}
.sched-catalog-item em {
  display: block; margin-top: 0.1rem; font-style: normal;
  font-size: 10px; color: var(--brand-muted);
}
.sched-catalog-empty {
  margin: 0; font-size: 11px; color: var(--brand-muted);
}
.sched-specials-actions.stacked {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.sched-active-actions {
  grid-column: 2;
  display: flex; flex-wrap: wrap; gap: 0.25rem;
}
.sched-active-actions .studio-btn-ghost {
  padding: 0.25rem 0.45rem; font-size: 11px;
}

.sched-canvas, .sched-list-panel, .sched-live-card, .sched-inspector, .sched-silence-card,
.sched-rundown-panel:not(.sched-rundown-panel-dock) {
  background: var(--brand-card);
  border: 1px solid rgba(32,36,45,.85);
  border-radius: 14px;
  overflow: hidden;
}
.sched-studio .sched-canvas { min-width: 0; }
.sched-rundown {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.5rem;
  padding: 0.55rem 0.65rem 0.75rem;
  max-height: none;
  align-content: start;
  /* Don't stretch sparse ads hours to match tall program hours (empty shells) */
  align-items: start;
}
.sched-rundown-hour {
  background: var(--brand-card-hover);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 0.5rem 0.6rem;
  min-width: 0;
}
.sched-rundown-hour.is-current-hour {
  border-color: rgba(245,158,11,.4);
  box-shadow: inset 0 0 0 1px rgba(245,158,11,.12);
}
.sched-rundown-h {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--brand-amber); margin-bottom: 0.45rem;
  display: flex; align-items: center; justify-content: space-between;
}
.sched-rundown-h em {
  font-style: normal; font-size: 10px; color: var(--brand-muted); font-weight: 600;
}
.sched-rundown-tracks { display: flex; flex-direction: column; gap: 0.2rem; }
.sched-rundown-row {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1.2fr) minmax(0, 1fr) 2.5rem;
  gap: 0.35rem; align-items: baseline;
  font-size: 11px; padding: 0.12rem 0.2rem; border-radius: 5px;
  line-height: 1.25;
}
.sched-rundown-row.is-compact:not(.is-ad) {
  grid-template-columns: 4.6rem minmax(0, 1fr) 2.5rem;
}
.sched-rundown-row.is-ad {
  /* Keep a real title column so РЕКЛ + name can't crush to 0 in narrow hour cards */
  grid-template-columns: 4.6rem minmax(7.5rem, 1fr) 2.5rem;
}
.sched-rundown-row.is-now {
  background: rgba(245,158,11,.18);
  outline: 1px solid rgba(245,158,11,.5);
  box-shadow: inset 3px 0 0 #f59e0b;
}
.sched-rundown-tag.is-live-now {
  color: #0c0d10;
  background: #fbbf24;
  border-color: #f59e0b;
  letter-spacing: 0.04em;
}
/* Video ads — wide flat list (shared hour grid was showing empty shells) */
.sched-rundown.is-vd-ads {
  display: block;
  padding: 0.45rem 0.65rem 0.85rem;
  max-width: none;
}
.sched-vd-ads {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  max-width: 52rem;
}
.sched-vd-ads.is-by-hour {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.55rem;
  align-content: start;
}
.sched-vd-ads.is-by-hour .sched-vd-ads-head {
  grid-column: 1 / -1;
}
.sched-vd-ads-hour {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.5rem 0.55rem 0.6rem;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.22);
  min-width: 0;
}
.sched-vd-ads-hour.is-current-hour {
  border-color: rgba(245, 158, 11, 0.45);
}
.sched-vd-ads-hour-h {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}
.sched-vd-ads-hour-h em {
  font-style: normal;
  font-size: 10px;
  color: var(--brand-muted);
  font-weight: 600;
}
.sched-vd-ads-head {
  font-size: 12px;
  font-weight: 700;
  color: #7dd3fc;
  padding: 0.15rem 0.2rem 0.1rem;
}
.sched-vd-ads-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.3rem;
  border-radius: 5px;
  background: rgba(14, 165, 233, 0.12);
  border: none;
  box-shadow: inset 2px 0 0 #38bdf8;
  color: #e8f4fc;
  font-size: 11px;
  line-height: 1.25;
  min-height: 0;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}
/* Same density as normal rundown rows inside hour cards */
.sched-vd-ads-row.is-in-hour {
  padding: 0.12rem 0.2rem;
  margin: 0;
  gap: 0.3rem;
  font-size: 11px;
  border-radius: 5px;
  background: rgba(14, 165, 233, 0.1);
  box-shadow: inset 2px 0 0 rgba(56, 189, 248, 0.75);
}
.sched-vd-ads-row.is-now {
  background: rgba(14, 165, 233, 0.2);
  box-shadow: inset 2px 0 0 #38bdf8;
}
.sched-vd-ads-row.is-in-hour .sched-vd-ads-mark {
  padding: 0.06rem 0.28rem;
  font-size: 9px;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.85);
}
.sched-vd-ads-row.is-in-hour .sched-vd-ads-time {
  flex-basis: 4.6rem;
  font-size: 11px;
}
.sched-vd-ads-row.is-in-hour .sched-rundown-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.sched-vd-ads-time {
  flex: 0 0 4.6rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #7dd3fc;
  font-size: 11px;
}
.sched-rundown-row .sched-rundown-time {
  font-variant-numeric: tabular-nums;
}
.sched-vd-ads-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.08rem 0.32rem;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.9);
  color: #0c1220 !important;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
}
.sched-rundown-h-ads {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 750;
  font-family: var(--font-mono);
  vertical-align: middle;
}
.sched-vd-ads-title {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-weight: 600;
  color: #f0f9ff;
}
.sched-vd-ads-title .sched-rundown-name {
  flex: 1 1 6rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sched-vd-ads-now {
  flex: 0 0 auto;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #fbbf24;
  color: #0c0d10;
  font-size: 9px;
  font-weight: 800;
}
.sched-vd-ads-dur {
  flex: 0 0 2.5rem;
  text-align: right;
  font-family: var(--font-mono);
  color: #bae6fd;
  font-size: 11px;
}
/* Only the ad row itself — never the whole hour card. */
.sched-rundown-row.is-ad,
.sched-rundown-row[data-ad="1"] {
  background: rgba(14, 165, 233, 0.32) !important;
  outline: 1px solid rgba(56, 189, 248, 0.7) !important;
  box-shadow: inset 4px 0 0 #38bdf8 !important;
  min-height: 1.65rem;
  height: auto;
  padding: 0.22rem 0.35rem;
  align-items: center;
  flex-shrink: 0;
}
.sched-rundown-row.is-ad .sched-rundown-time,
.sched-rundown-row[data-ad="1"] .sched-rundown-time {
  color: #7dd3fc !important;
  font-weight: 800;
}
.sched-rundown-row.is-ad .sched-rundown-title,
.sched-rundown-row[data-ad="1"] .sched-rundown-title {
  color: #f0f9ff;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 4rem;
}
.sched-rundown-row.is-ad .sched-rundown-name,
.sched-rundown-row[data-ad="1"] .sched-rundown-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e0f2fe !important;
  font-weight: 700;
}
.sched-rundown-row.is-ad .sched-rundown-dur,
.sched-rundown-row[data-ad="1"] .sched-rundown-dur {
  color: #bae6fd !important;
}
.sched-rundown-row.is-ad.is-now,
.sched-rundown-row[data-ad="1"].is-now {
  background: rgba(14, 165, 233, 0.48) !important;
  outline: 1px solid rgba(56, 189, 248, 0.95) !important;
}
.sched-rundown-row.is-ad .sched-rundown-tag.is-ad,
.sched-rundown-row[data-ad="1"] .sched-rundown-tag.is-ad {
  color: #0c1220 !important;
  background: #38bdf8 !important;
  border-color: #0ea5e9 !important;
  font-weight: 900;
  flex-shrink: 0;
}
.sched-rundown-hour.has-ads {
  /* no wash — only the «N рекл» pill in the hour header */
  border-color: rgba(255, 255, 255, 0.06);
  background: var(--brand-card-hover);
}
.sched-rundown-row.is-silence {
  background: rgba(248,113,113,.1);
  outline: 1px solid rgba(248,113,113,.3);
}
.sched-rundown-row.is-mourning {
  background: rgba(71,85,105,.28);
  outline: 1px solid rgba(148,163,184,.35);
}
.sched-rundown-row.is-stop {
  background: rgba(100,116,139,.12);
  outline: 1px solid rgba(148,163,184,.22);
}
.sched-rundown-row.is-event {
  background: rgba(139,92,246,.1);
  outline: 1px solid rgba(167,139,250,.3);
}
.sched-rundown-time { font-family: var(--font-mono); color: var(--brand-muted); font-weight: 700; }
.sched-rundown-title {
  color: var(--brand-ink); font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.4rem; min-width: 0;
  overflow: hidden;
}
.sched-rundown-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sched-rundown-tag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  color: #7dd3fc;
  background: rgba(56,189,248,.15);
  border: 1px solid rgba(56,189,248,.35);
}
.sched-rundown-tag.is-silence {
  color: #fca5a5; background: rgba(248,113,113,.18); border-color: rgba(248,113,113,.4);
}
.sched-rundown-tag.is-mourning {
  color: #cbd5e1; background: rgba(148,163,184,.2); border-color: rgba(148,163,184,.4);
}
.sched-rundown-tag.is-stop {
  color: #94a3b8; background: rgba(100,116,139,.2); border-color: rgba(148,163,184,.35);
}
.sched-rundown-tag.is-event {
  color: #c4b5fd; background: rgba(167,139,250,.18); border-color: rgba(167,139,250,.4);
}
.sched-rundown-tag.is-ad {
  color: #0c1220;
  background: #38bdf8;
  border-color: #38bdf8;
  letter-spacing: 0.04em;
  font-size: 10px;
  padding: 0.14rem 0.42rem;
  border-radius: 4px;
  line-height: 1.15;
}
.sched-rundown-tag.is-playlist {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.32);
}
/* Multi-playlist only — muted bars, not neon */
.sched-rundown-row.pl-tone-0 { box-shadow: inset 2px 0 0 rgba(251, 191, 36, 0.55); }
.sched-rundown-row.pl-tone-1 { box-shadow: inset 2px 0 0 rgba(167, 139, 250, 0.55); }
.sched-rundown-row.pl-tone-2 { box-shadow: inset 2px 0 0 rgba(244, 114, 182, 0.5); }
.sched-rundown-row.pl-tone-3 { box-shadow: inset 2px 0 0 rgba(251, 146, 60, 0.55); }
.sched-rundown-row.pl-tone-4 { box-shadow: inset 2px 0 0 rgba(103, 232, 249, 0.5); }
.sched-rundown-artist { color: var(--brand-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-rundown-dur { font-family: var(--font-mono); color: var(--brand-dim); text-align: right; }
@media (max-width: 720px) {
  .sched-rundown-row,
  .sched-rundown-row.is-compact:not(.is-ad) {
    grid-template-columns: 4.25rem minmax(0, 1fr) 2.5rem;
  }
  .sched-rundown-row.is-ad {
    grid-template-columns: 4.25rem minmax(6.5rem, 1fr) 2.5rem;
  }
  .sched-rundown-artist { display: none; }
}
.sched-canvas-head, .sched-inspector-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.55rem;
  padding: 0.45rem 0.7rem; border-bottom: 1px solid rgba(32,36,45,.7);
}
.sched-canvas .sched-canvas-head h2 { font-size: 13px !important; }
.sched-canvas .sched-canvas-head p { font-size: 10px !important; margin: 0; }
.sched-icon-box {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.25); color: var(--brand-amber);
}
.sched-icon-box .material-symbols-outlined { font-size: 18px; }

.sched-legend {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted);
}
.sched-legend .leg { display: inline-flex; align-items: center; gap: 0.3rem; }
.sched-legend .leg::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px; background: rgba(113,120,134,.4);
}
.sched-legend .leg.playlist::before { background: rgba(245,158,11,.55); }
.sched-legend .leg.track::before { background: rgba(251,191,36,.85); }
.sched-legend .leg.silence::before { background: rgba(248,113,113,.7); }
.sched-legend .leg.mourn::before { background: rgba(148,163,184,.75); }
.sched-legend .leg.mourning::before { background: rgba(148,163,184,.75); }
.sched-legend .leg.event::before { background: rgba(56,189,248,.7); }
.sched-legend .leg.stop::before { background: rgba(113,120,134,.55); }
.sched-legend .leg.now::before { background: #fff; width: 2px; height: 12px; border-radius: 1px; }

.sched-silence-banner {
  display: flex; align-items: center; gap: 0.65rem; width: calc(100% - 2.3rem);
  margin: 0.85rem 1.15rem 0; padding: 0.65rem 0.85rem; border-radius: 12px;
  border: 1px solid rgba(248,113,113,.35);
  background: linear-gradient(90deg, rgba(127,29,29,.45), rgba(69,10,10,.2));
  cursor: pointer; text-align: left; color: inherit; font: inherit;
}
.sched-silence-banner:hover { filter: brightness(1.06); }
.sched-live-card.inline { padding: 0.9rem 1.15rem; }
.sched-row-edit { font-size: 18px; color: var(--brand-muted); }
.sched-slot-row:hover .sched-row-edit { color: var(--brand-amber); }
.sched-silence-banner.is-off {
  border-color: rgba(113,120,134,.35); background: rgba(113,120,134,.1); opacity: .75;
}
.sched-silence-icon { font-size: 22px; color: #fca5a5; flex-shrink: 0; }
.sched-silence-banner.is-off .sched-silence-icon { color: var(--brand-muted); }
.sched-silence-banner-text { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; min-width: 0; }
.sched-silence-banner-text strong {
  color: #fecaca; font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sched-silence-banner.is-off .sched-silence-banner-text strong { color: var(--brand-dim); }
.sched-silence-banner-text span { font-family: var(--font-mono); font-size: 11px; color: #fca5a5; }
.sched-silence-banner.is-off .sched-silence-banner-text span { color: var(--brand-muted); }
.sched-silence-pill {
  flex-shrink: 0; padding: 0.2rem 0.55rem; border-radius: 9999px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: rgba(248,113,113,.25); color: #fecaca; border: 1px solid rgba(248,113,113,.4);
}
.sched-silence-pill.off {
  background: rgba(113,120,134,.2); color: var(--brand-muted); border-color: rgba(113,120,134,.35);
}

.sched-bay { padding: 0.4rem 0.65rem 0.55rem; overflow-x: hidden; }
.sched-hours {
  position: relative; height: 0.95rem; margin-bottom: 0.25rem;
  font-family: var(--font-mono); font-size: 9px; color: var(--brand-muted);
  width: 100%; min-width: 0;
}
.sched-hours span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.sched-hours span.is-minor { opacity: 0.55; font-size: 8px; }
.sched-track-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand-muted); margin: 0.2rem 0 0.25rem;
  width: 100%; min-width: 0;
  display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap;
}
.sched-track-label.mt { margin-top: 0.45rem; }
.sched-track-hint {
  text-transform: none; letter-spacing: 0; color: var(--brand-dim); font-size: 10px;
}
.sched-lane-track {
  position: relative; width: 100%; min-width: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent), #0e1016;
  border: 1px solid rgba(245,158,11,.18); overflow: hidden;
}
.sched-lane-track.tall { height: 88px; }
.sched-lane-track.compact { height: 44px; }
.sched-lane-track.mid { height: 34px; }
.sched-lane-track.slim { height: 30px; }
.sched-studio .sched-lane-track.compact { height: 42px; }
.sched-lane-track.tracks { height: 72px; border-color: rgba(251,191,36,.22); }
.sched-lane-track.tracks.is-empty { display: flex; align-items: center; justify-content: center; }
.sched-tracks-empty {
  position: relative; z-index: 1;
  font-family: var(--font-mono); font-size: 11px; color: var(--brand-muted);
}
.sched-track-chip {
  position: absolute; top: 10px; bottom: 10px; z-index: 2;
  box-sizing: border-box; min-width: 2px;
  border-radius: 8px; padding: 0.28rem 0.35rem;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  overflow: hidden; pointer-events: auto;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(245,158,11,.35);
}
.sched-track-chip.tone-0 { background: rgba(245,158,11,.42); border-color: rgba(253,230,138,.28); }
.sched-track-chip.tone-1 { background: rgba(217,119,6,.38); border-color: rgba(251,191,36,.22); }
.sched-track-chip.tone-2 { background: rgba(180,83,9,.4); border-color: rgba(245,158,11,.25); }
.sched-track-chip.tone-3 { background: rgba(146,64,14,.42); border-color: rgba(253,186,116,.2); }
.sched-track-chip.is-now {
  z-index: 4;
  box-shadow: 0 0 0 1px rgba(255,255,255,.55), 0 0 14px rgba(245,158,11,.45);
  background: rgba(251,191,36,.72) !important;
}
.sched-track-chip:hover { filter: brightness(1.12); z-index: 5; }
.sched-track-chip-time {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: rgba(17,17,17,.75);
  line-height: 1.1;
}
.sched-track-chip-name {
  font-size: 10px; font-weight: 700; color: #111;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.15;
}
.sched-track-chip:not(.has-label) { padding: 0; }
.sched-grid {
  position: absolute; top: 0; bottom: 0; width: 1px; z-index: 0;
  background: rgba(255,255,255,.06); pointer-events: none;
}
/* beat Tailwind button reset ? base only; lane-* rules below set the real colors */
button.sched-block,
.sched-block.rich {
  position: absolute; top: 6px; bottom: 6px; z-index: 2;
  box-sizing: border-box; min-width: 4px;
  border-radius: 8px; padding: 0.28rem 0.45rem;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  overflow: hidden; text-decoration: none;
  border: 1px solid rgba(245,158,11,.4);
  transition: border-color .15s, transform .12s, box-shadow .15s;
  cursor: pointer; font: inherit; text-align: left;
  color: #111;
  -webkit-appearance: none; appearance: none;
  background-color: #d97706;
  background-image: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 3px 10px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12);
}
.sched-lane-track.compact .sched-block-meta { display: none; }
button.sched-block.rich:hover,
.sched-block.rich:hover { transform: translateY(-1px); filter: brightness(1.05); }
.sched-block.rich.is-selected { box-shadow: 0 0 0 2px rgba(245,158,11,.75); }
button.sched-block.kind-stop,
.sched-block.kind-stop {
  background-color: #1f2937 !important;
  background-image: repeating-linear-gradient(-45deg, #374151, #374151 4px, #1f2937 4px, #1f2937 8px) !important;
  border-color: rgba(148,163,184,.5) !important;
  color: #cbd5e1 !important;
  box-shadow: none;
}
.sched-block-time {
  font-family: var(--font-mono); font-size: 8px; font-weight: 700;
  opacity: .9; color: inherit; line-height: 1.05;
}
.sched-block-name {
  font-size: 10px; font-weight: 800; color: inherit;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.1;
}
.sched-lane-track.compact .sched-block,
.sched-lane-track.compact button.sched-block.rich {
  padding: 0.15rem 0.35rem !important;
  min-height: 0;
}
.sched-block-meta { font-family: var(--font-mono); font-size: 9px; opacity: .85; color: inherit; }

/* ── Graph authoring: select / resize / draft ── */
.sched-lane-track { user-select: none; -webkit-user-select: none; cursor: crosshair; }
.sched-lane-track.is-drop { border-color: rgba(245,158,11,.55); }
.sched-block.is-draggable { cursor: grab; touch-action: none; }
.sched-block.is-draggable:active { cursor: grabbing; }
.sched-block.is-dragging { opacity: .35; pointer-events: none; transform: none; }
.sched-block.is-selected,
button.sched-block.rich.is-selected {
  z-index: 4;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(245,158,11,.75), 0 4px 14px rgba(0,0,0,.4) !important;
}
.sched-resize-h {
  position: absolute; top: 0; bottom: 0; width: 7px; z-index: 5;
  cursor: ew-resize; touch-action: none;
  background: rgba(0,0,0,.22);
  opacity: 0; transition: opacity .12s ease, background .12s ease;
}
.sched-resize-h.is-l { left: 0; border-radius: 8px 0 0 8px; }
.sched-resize-h.is-r { right: 0; border-radius: 0 8px 8px 0; }
.sched-resize-h::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 2px; height: 14px; border-radius: 2px;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,.85);
}
.sched-block:hover .sched-resize-h,
.sched-block.is-selected .sched-resize-h { opacity: 1; }
.sched-resize-h:hover { background: rgba(0,0,0,.4); }
.sched-draft-block {
  position: absolute; top: 6px; bottom: 6px; z-index: 6; min-width: 4px;
  box-sizing: border-box; pointer-events: none;
  border-radius: 8px; padding: 0.28rem 0.45rem;
  display: flex; align-items: center; overflow: hidden;
  border: 2px dashed rgba(245,158,11,.9);
  background: rgba(245,158,11,.22);
  color: var(--brand-ink);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 0 14px rgba(245,158,11,.25);
}
.sched-draft-block.lane-ads { border-color: rgba(56,189,248,.9); background: rgba(56,189,248,.22); }
.sched-draft-block.lane-alt { border-color: rgba(167,139,250,.9); background: rgba(167,139,250,.22); }
.sched-draft-block.lane-stop { border-color: rgba(148,163,184,.9); background: rgba(100,116,139,.28); }

/* ── Collapsible sections (rundown / slot list / advanced) ── */
.sched-collapse { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.sched-collapse-toggle {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  padding: 0.6rem 0.9rem; border-radius: 12px; cursor: pointer;
  background: var(--brand-card); color: var(--brand-ink);
  border: 1px solid rgba(32,36,45,.85);
  font: inherit; font-size: 13px; font-weight: 600; text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.sched-collapse-toggle:hover { border-color: rgba(245,158,11,.4); }
.sched-collapse-toggle .material-symbols-outlined {
  font-size: 20px !important; color: var(--brand-amber);
  transition: transform .18s ease;
}
.sched-collapse.is-open > .sched-collapse-toggle .material-symbols-outlined { transform: rotate(180deg); }
.sched-collapse-toggle .sched-count-pill { margin-left: auto; }
.sched-collapse-body { min-width: 0; }
.sched-collapse-inline { gap: 0.5rem; }
.sched-collapse-inline > .sched-collapse-toggle {
  padding: 0.45rem 0.7rem; border-radius: 10px; font-size: 12px;
  background: rgba(11,13,17,.55);
}
.sched-detail-adv { display: flex; flex-direction: column; gap: 0.6rem; }

/* ── Detail side panel ── */
.sched-detail {
  background: var(--brand-card);
  border: 1px solid rgba(32,36,45,.85);
  border-radius: 18px;
  padding: 1rem 1.05rem 1.1rem;
  min-width: 0;
}
@media (min-width: 1180px) {
  .sched-detail { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
}
.sched-detail-form { display: flex; flex-direction: column; gap: 0.8rem; }
.sched-detail-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem;
  padding-bottom: 0.7rem; border-bottom: 1px solid rgba(255,255,255,.06);
}
.sched-detail-head > div { display: flex; flex-direction: column; gap: 0.15rem; }
.sched-detail-head strong { font-size: 15px; font-weight: 700; color: var(--brand-ink); }
.sched-detail-head span {
  font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted);
}
.sched-detail-close {
  width: 28px; height: 28px; border-radius: 8px; padding: 0; flex-shrink: 0;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
  color: var(--brand-muted);
}
.sched-detail-close:hover { color: var(--brand-ink); border-color: rgba(245,158,11,.45); }
.sched-detail-close .material-symbols-outlined { font-size: 18px !important; }
.sched-detail-empty {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 1.6rem 0.8rem; text-align: center; color: var(--brand-muted);
}
.sched-detail-empty .material-symbols-outlined { font-size: 32px !important; color: var(--brand-amber); opacity: .8; }
.sched-detail-empty p { margin: 0; font-size: 13px; line-height: 1.4; }
.sched-detail .slot-foot { justify-content: space-between; margin: 0.15rem 0 0; }
.sched-detail .slot-time-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.4rem; align-items: end; }
.sched-silence-mark {
  position: absolute; top: 8px; bottom: 8px; min-width: 2px; border-radius: 2px;
  background: rgba(248,113,113,.75); box-shadow: 0 0 0 1px rgba(248,113,113,.25);
}
.sched-silence-mark.is-now { background: #fca5a5; box-shadow: 0 0 8px rgba(248,113,113,.55); }
.sched-lane-track.is-mourning {
  background: linear-gradient(180deg, rgba(148,163,184,.08), transparent), #0e1016;
  border-color: rgba(148,163,184,.35);
}
button.sched-mourning-band,
.sched-mourning-band {
  position: absolute; inset: 6px 6px; z-index: 2;
  border-radius: 8px; padding: 0.3rem 0.55rem;
  display: flex; flex-direction: column; justify-content: center; gap: 0.1rem;
  text-align: left; cursor: pointer; font: inherit;
  color: #e2e8f0 !important;
  border: 1px dashed rgba(148,163,184,.55);
  background: repeating-linear-gradient(
    -45deg,
    rgba(71,85,105,.45),
    rgba(71,85,105,.45) 6px,
    rgba(30,41,59,.55) 6px,
    rgba(30,41,59,.55) 12px
  ) !important;
  -webkit-appearance: none; appearance: none;
}
.sched-mourning-band.in-lane {
  inset: 4px 4px;
}
.sched-mourning-band strong { font-size: 12px; font-weight: 700; }
.sched-mourning-band span { font-size: 10px; color: #cbd5e1; }
.sched-mourning-band:hover { filter: brightness(1.08); }
.sched-lane-side.lane-silence,
.sched-lane-track.lane-silence {
  border-color: rgba(248,113,113,.35);
}
.sched-lane-side.lane-mourn,
.sched-lane-track.lane-mourn {
  border-color: rgba(148,163,184,.4);
}
.sched-lane-side-sub {
  display: block; font-style: normal; font-family: var(--font-mono);
  font-size: 9px; color: var(--brand-muted); margin-top: 0;
}
.sched-lane-side.lane-silence .sched-lane-side-sub { color: #fca5a5; }
.sched-lane-side.lane-mourn .sched-lane-side-sub { color: #cbd5e1; }

button.sched-silence-pill-mark,
.sched-silence-pill-mark {
  position: absolute; top: 50%; z-index: 5;
  height: 26px; min-width: 52px; max-width: 96px;
  padding: 0 0.4rem; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.2rem;
  background: rgba(248,113,113,.28) !important;
  background-image: none !important;
  border: 1px solid rgba(248,113,113,.55);
  color: #fecaca !important;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  transform: translate(-50%, -50%);
}
.sched-silence-pill-mark.on-lane {
  transform: translateY(-50%);
  max-width: none;
}
.sched-silence-pill-mark .material-symbols-outlined {
  font-size: 14px !important; line-height: 1;
}
.sched-silence-pill-mark:hover { background: rgba(248,113,113,.4) !important; }
.sched-silence-pill-mark.is-now {
  background: rgba(248,113,113,.5) !important;
  box-shadow: 0 0 10px rgba(248,113,113,.4);
  color: #fff !important;
}
.sched-event-pill {
  position: absolute; top: 6px; height: 24px; min-width: 40px; max-width: 72px;
  padding: 0 0.3rem; border-radius: 8px;
  background: rgba(56,189,248,.15); border: 1px solid rgba(56,189,248,.35);
  color: #7dd3fc; display: flex; align-items: center;
  font-family: var(--font-mono); font-size: 9px; overflow: hidden;
  transform: translateX(-50%);
}
.sched-event-pill.type-advertising { background: rgba(56,189,248,.15); }
.sched-event-pill.type-announcement { background: rgba(45,212,191,.15); border-color: rgba(45,212,191,.35); color: #5eead4; }
.sched-now {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand-amber); z-index: 5;
  transform: translateX(-1px); box-shadow: 0 0 12px rgba(245,158,11,.45); pointer-events: none;
}
.sched-now span {
  position: absolute; top: 4px; left: 5px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 800;
  color: #111; background: var(--brand-amber); padding: 2px 6px; border-radius: 9999px; white-space: nowrap;
}
.sched-now.bare span { display: none; }

.sched-slot-list { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.85rem 1rem 1.1rem; }
button.sched-slot-row,
.sched-slot-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
  width: 100%; padding: 0.85rem 1rem; border-radius: 14px; text-decoration: none; color: #e2e4e9;
  background: var(--brand-card-hover) !important; background-image: none !important;
  border: 1px solid rgba(245,158,11,.2); transition: border-color .15s, background .15s;
  cursor: pointer; font: inherit; text-align: left;
  -webkit-appearance: none; appearance: none;
}
.sched-slot-row:hover { background: rgba(245,158,11,.05); border-color: rgba(245,158,11,.25); }
.sched-slot-row.is-selected, .sched-slot-row.status-live {
  border-color: rgba(245,158,11,.45);
  background: linear-gradient(90deg, rgba(245,158,11,.12), rgba(0,0,0,.15));
}
.sched-slot-left { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.sched-slot-time {
  width: 7.5rem; flex-shrink: 0;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--brand-dim);
}
.sched-slot-row.status-live .sched-slot-time { color: var(--brand-amber); }
.sched-slot-dot { width: 8px; height: 8px; border-radius: 9999px; background: rgba(113,120,134,.5); flex-shrink: 0; }
.sched-slot-row.status-live .sched-slot-dot { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,.5); }
.sched-slot-row.status-done .sched-slot-dot { background: rgba(113,120,134,.35); }
.sched-slot-title { color: var(--brand-ink); font-weight: 600; font-size: 13px; }
.sched-slot-sub { font-size: 11px; color: var(--brand-muted); margin-top: 2px; }
.sched-slot-right {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-mono); font-size: 11px; color: var(--brand-muted);
}
.sched-status {
  padding: 0.2rem 0.55rem; border-radius: 8px; background: rgba(255,255,255,.04); color: var(--brand-dim);
}
.sched-slot-row.status-live .sched-status {
  background: rgba(52,211,153,.15); color: #34d399; font-weight: 700;
}

.sched-live-card { padding: 1.15rem; position: relative; overflow: hidden; }
.sched-live-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
  margin-top: 0.9rem; padding-top: 0.85rem; border-top: 1px solid rgba(32,36,45,.7);
}
.sched-live-meta span { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted); }
.sched-live-meta strong { display: block; margin-top: 0.15rem; color: var(--brand-ink); font-size: 14px; }

.sched-form { display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem 1.1rem 1.15rem; }
.sched-form.compact { gap: 0.5rem; padding: 0.75rem 0.9rem 0.85rem; }
/* Silence modal ? calm sections, no heap */
.silence-card { max-width: 440px; }
.silence-sub {
  margin: 0.1rem 0 0; font-size: 11px; color: var(--brand-muted);
  font-family: var(--font-mono); letter-spacing: .02em;
}
.silence-form {
  display: flex; flex-direction: column; gap: 0;
  padding: 0.15rem 1rem 1rem;
}
.silence-sec {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(32,36,45,.7);
}
.silence-sec-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.45rem;
}
.silence-sec-top .sched-label { margin: 0; }
.silence-mode-hint {
  font-size: 11px; color: var(--brand-muted); text-align: right;
  line-height: 1.3; max-width: 58%;
}
.silence-field {
  display: flex; flex-direction: column; gap: 0.3rem; min-width: 0;
}
.silence-field > span {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--brand-muted);
}
.silence-form .media-input {
  width: 100%; padding: 0.42rem 0.65rem; font-size: 13px; min-height: 0;
}
.silence-form .media-input[type="time"],
.silence-form .media-input[type="date"] { min-height: 2.15rem; }
.silence-seg {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
  padding: 0.2rem; border-radius: 10px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(32,36,45,.8);
}
.silence-seg-item {
  flex: 1 1 auto; min-width: 3.4rem;
  display: flex; align-items: center; justify-content: center;
  padding: 0.38rem 0.45rem; border-radius: 7px;
  font-size: 12px; color: var(--brand-dim); cursor: pointer;
  border: 1px solid transparent;
}
.silence-seg-item input { display: none; }
.silence-seg-item:has(input:checked) {
  background: rgba(245,158,11,.16);
  border-color: rgba(245,158,11,.4);
  color: var(--brand-ink); font-weight: 600;
}
.silence-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem 0.75rem;
}
.silence-vol { border-bottom: 0; padding-bottom: 0.55rem; }
.silence-vol-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.35rem;
}
.silence-vol-top .sched-label { margin: 0; }
.silence-vol-pct {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #fbbf24;
}
.silence-vol-row {
  display: grid; grid-template-columns: 1fr 3.4rem; gap: 0.45rem; align-items: center;
}
.silence-vol-num {
  width: 3.4rem !important; min-width: 3.4rem; text-align: center;
  font-family: var(--font-mono); font-weight: 700; padding: 0.35rem !important;
}
.silence-vol-presets {
  display: flex; gap: 0.25rem; margin-top: 0.4rem;
}
.silence-vol-presets button {
  flex: 1; padding: 0.28rem 0.2rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.2); color: var(--brand-dim);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; cursor: pointer;
}
.silence-vol-presets button:hover { color: var(--brand-ink); border-color: rgba(245,158,11,.35); }
.silence-vol-presets button.is-active {
  background: rgba(245,158,11,.18);
  border-color: rgba(245,158,11,.5); color: #fde68a;
}
.silence-check {
  display: flex !important; flex-direction: row !important; align-items: center;
  gap: 0.45rem; padding: 0.55rem 0 0.15rem;
  font-size: 12px; color: var(--brand-dim); cursor: pointer;
}
.silence-check input { accent-color: var(--brand-amber); }
.silence-foot {
  display: flex; align-items: center; gap: 0.4rem;
  margin-top: 0.65rem; padding-top: 0.75rem;
  border-top: 1px solid rgba(32,36,45,.75);
}
.silence-foot-spacer { flex: 1; }
.silence-foot .studio-btn-ghost,
.silence-foot .media-upload-btn { padding: 0.45rem 0.8rem; font-size: 12px; }
@media (max-width: 480px) {
  .silence-grid-2 { grid-template-columns: 1fr; }
  .silence-mode-hint { max-width: 100%; text-align: left; }
  .silence-sec-top { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}
.sched-form label { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.sched-form label > span, .sched-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--brand-muted);
}
.sched-form .media-input { width: 100%; }
.sched-form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.sched-time-slot {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(245,158,11,.07);
  border: 1px solid rgba(245,158,11,.28);
}
.sched-time-slot .sched-label { color: #fbbf24; }
.sched-range { width: 100%; accent-color: var(--brand-amber); height: 1.35rem; cursor: pointer; }
.sched-vol-box {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.3);
}
.sched-vol-box.compact {
  gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 11px;
}
.sched-vol-box.compact .sched-vol-pct { font-size: 12px; }
.sched-vol-box.compact .sched-vol-ico { font-size: 16px; }
.sched-vol-box.compact .sched-range { height: 1.1rem; }
.sched-vol-box.compact .sched-vol-presets button {
  padding: 0.22rem 0.3rem; font-size: 10px; border-radius: 6px; min-width: 0;
}
.sched-vol-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.sched-vol-head .sched-label { color: #fbbf24; margin: 0; }
.sched-vol-pct {
  font-family: var(--font-mono); font-size: 14px; font-weight: 800;
  color: #fde68a; min-width: 3.2rem; text-align: right;
}
.sched-vol-row {
  display: grid; grid-template-columns: auto 1fr auto 4.2rem;
  align-items: center; gap: 0.45rem;
}
.sched-vol-ico { font-size: 20px; color: var(--brand-amber); }
.sched-vol-num {
  width: 4.2rem !important; min-width: 4.2rem; text-align: center;
  font-family: var(--font-mono); font-weight: 700;
}
.sched-vol-presets {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.sched-vol-presets button {
  flex: 1 1 auto; min-width: 3rem;
  padding: 0.35rem 0.45rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.25); color: var(--brand-dim);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  cursor: pointer;
}
.sched-vol-presets button:hover { border-color: rgba(245,158,11,.35); color: var(--brand-ink); }
.sched-vol-presets button.is-active {
  background: rgba(245,158,11,.2);
  border-color: rgba(245,158,11,.55);
  color: #fde68a;
}
.sched-days { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
.sched-days.tight { gap: 0.3rem; }
.day-chip {
  display: inline-flex !important; flex-direction: row !important; align-items: center; justify-content: center;
  gap: 0.25rem; min-width: 2.4rem; padding: 0.4rem 0.35rem;
  border-radius: 10px; border: 1px solid var(--brand-border);
  background: var(--brand-dark); cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; color: var(--brand-dim);
}
.day-chip input { position: absolute; opacity: 0; pointer-events: none; }
.day-chip:has(input:checked), .day-chip.toggle:has(input:checked) {
  color: #111; border-color: rgba(245,158,11,.55); background: var(--brand-amber); font-weight: 700;
}
.sched-check {
  flex-direction: row !important; align-items: center; gap: 0.5rem !important;
  font-size: 13px; color: var(--brand-dim);
}
.sched-check input { accent-color: var(--brand-amber); }
.sched-hint {
  margin: 0; font-size: 11px; line-height: 1.4; color: var(--brand-muted);
  font-family: var(--font-mono);
}
.prio-stack {
  display: flex; flex-direction: column; gap: 0.45rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(32,36,45,.85);
}
.prio-stack.compact {
  gap: 0.3rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
}
.prio-stack-title {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--brand-amber);
}
.prio-stack-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.prio-stack-list.inline {
  flex-direction: row; flex-wrap: wrap; gap: 0.35rem 0.55rem;
}
.prio-stack-list li {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 12px; line-height: 1.35; color: #e2e4e9;
}
.prio-stack.compact .prio-stack-list li { font-size: 11px; }
.prio-stack-list .n {
  flex: 0 0 1.35rem; height: 1.35rem; border-radius: 9999px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10px; font-weight: 800;
  background: rgba(245,158,11,.18); color: #fbbf24;
  border: 1px solid rgba(245,158,11,.35);
}
.prio-stack.compact .prio-stack-list .n {
  flex-basis: 1.1rem; width: 1.1rem; height: 1.1rem; font-size: 9px;
}
.prio-stack-note {
  margin: 0; padding-top: 0.35rem;
  border-top: 1px solid rgba(32,36,45,.8);
  font-size: 11px; line-height: 1.4; color: var(--brand-muted);
}
.prio-stack.compact .prio-stack-note { padding-top: 0.25rem; font-size: 10px; }
.prio-stack-mode {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(32,36,45,.8);
}
.prio-stack-mode p {
  margin: 0; font-size: 12px; line-height: 1.35; color: #e2e4e9;
}
.prio-stack.compact .prio-stack-mode p { font-size: 11px; }
.sched-insp-actions { display: flex; gap: 0.5rem; }
.sched-del-wrap { padding: 0 1.1rem 1.1rem; }
.sched-del-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(32,36,45,.9); background: rgba(0,0,0,.2);
  color: var(--brand-muted); cursor: pointer;
}
.sched-del-btn.wide { width: 100%; height: auto; padding: 0.65rem; font-size: 12px; }
.sched-del-btn:hover { color: #fca5a5; border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.1); }

.sched-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.sched-modal.is-stack { z-index: 95; }
.sched-modal.hidden { display: none; }
.sched-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.sched-modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 480px;
  background: var(--brand-card); border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.55);
  max-height: min(90vh, 900px); overflow: auto;
}
.sched-modal-card.wide { max-width: 640px; }
.sched-modal-card.wide:has(.slot-composer) { max-width: min(560px, 96vw); }
.sched-modal-card.wide:has(.slot-composer.is-v2) { max-width: min(520px, 96vw); }
.sched-modal-card.wide:has(.slot-composer.is-grid) {
  max-width: min(920px, 96vw);
  max-height: min(92vh, 960px);
}

.slot-composer.is-v2 {
  gap: 0.65rem !important;
  padding: 0.35rem 0.85rem 0.25rem !important;
}
.slot-composer.is-grid {
  gap: 0.75rem !important;
  padding: 0.45rem 1rem 0.35rem !important;
}
.slot-ads-grid,
.slot-air-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}
.slot-ads-grid {
  grid-template-areas:
    "what how"
    "when where";
}
.slot-air-grid {
  grid-template-areas:
    "what when"
    "where how";
}
.slot-air-grid.is-stop {
  grid-template-areas:
    "what when"
    "where where";
}
.slot-ads-what,
.slot-air-what { grid-area: what; }
.slot-ads-how,
.slot-air-how { grid-area: how; }
.slot-ads-when,
.slot-air-when { grid-area: when; }
.slot-ads-where,
.slot-air-where { grid-area: where; }
.slot-block-h strong em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.35rem;
  border-radius: 5px;
  font-style: normal;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #0c1220;
  background: #38bdf8;
  vertical-align: 1px;
}
.slot-ads-how .slot-block-h strong em,
.slot-ads-when .slot-block-h strong em,
.slot-air-when .slot-block-h strong em,
.slot-air-how .slot-block-h strong em {
  background: #fbbf24;
}
.slot-ads-where .slot-block-h strong em,
.slot-air-where .slot-block-h strong em {
  background: #a78bfa;
}
.slot-air-what .slot-block-h strong em {
  background: #fbbf24;
}
.slot-ads-how-freq {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.slot-lane-row.is-compact {
  gap: 0.28rem;
}
.slot-lane-row.is-compact .slot-lane-btn {
  padding: 0.32rem 0.35rem;
  font-size: 10px;
}
.slot-composer.is-ads .slot-track-list {
  max-height: 11rem;
}
.slot-composer.is-grid .studio-loc-scope.is-form {
  grid-template-columns: 1fr;
}
@media (max-width: 820px) {
  .slot-ads-grid,
  .slot-air-grid,
  .slot-air-grid.is-stop {
    grid-template-columns: 1fr;
    grid-template-areas:
      "what"
      "when"
      "where"
      "how";
  }
  .slot-ads-grid {
    grid-template-areas:
      "what"
      "how"
      "when"
      "where";
  }
  .sched-modal-card.wide:has(.slot-composer.is-grid) {
    max-width: min(560px, 96vw);
  }
}
.slot-block {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  overflow: visible;
}
.slot-block.is-muted {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.05);
}
.slot-block-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem 0.35rem;
}
.slot-block-h strong {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.slot-block-h span {
  font-size: 11px;
  color: var(--brand-muted);
}
.slot-track-pick {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.06);
}
.slot-track-pick-h {
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
  font-size: 11px;
}
.slot-track-pick-h span { font-weight: 700; color: #e2e8f0; }
.slot-track-pick-h em { font-style: normal; color: var(--brand-muted); flex: 1; }
.slot-track-clear {
  margin: 0; padding: 0.15rem 0.45rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.25);
  color: #7dd3fc; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer;
}
.slot-track-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.2rem;
  max-height: 9.5rem; overflow: auto;
}
.slot-track-list label {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.4rem; border-radius: 8px;
  cursor: pointer; font-size: 12px; color: var(--brand-dim);
}
.slot-track-list label.is-on {
  color: #e2e8f0; background: rgba(56, 189, 248, 0.1);
}
.slot-track-list label span {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.slot-track-list label em {
  font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted);
}
.slot-ads-freq {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding-top: 0.15rem;
}
.slot-fill-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(14, 165, 233, 0.06);
}
.slot-fill-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.slot-fill-row { flex-wrap: wrap; }
.slot-fill-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--brand-muted);
}
.slot-block-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.15rem 0.75rem 0.75rem;
}
.slot-lane-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}
.slot-lane-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.4rem 0.45rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--brand-dim);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.slot-lane-btn em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.65;
}
.slot-lane-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}
.slot-lane-btn.is-on {
  color: #111;
  border-color: transparent;
  background: var(--brand-amber, #f59e0b);
}
.slot-lane-btn.is-on em { opacity: 0.75; color: inherit; }
.slot-lane-btn.lane-ads.is-on { background: #38bdf8; }
.slot-lane-btn.lane-alt.is-on { background: #a78bfa; }
.slot-lane-btn.lane-stop.is-on { background: #94a3b8; }

.slot-day-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.slot-day-seg > button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0.5rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand-muted);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.slot-day-seg > button em {
  font-style: normal;
  font-size: 10px;
  font-family: var(--font-mono);
  opacity: 0.7;
}
.slot-day-seg > button.is-on {
  background: rgba(245, 158, 11, 0.92);
  color: #111;
}
.slot-vol-inline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  font-size: 11px;
  color: var(--brand-muted);
}
.slot-vol-inline strong {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  min-width: 2.5rem;
  text-align: right;
}
.slot-adv-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--brand-muted);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.slot-adv-toggle:hover { color: #fff; }
.slot-adv-toggle .material-symbols-outlined { font-size: 18px; }
.slot-adv-chevron { margin-left: auto; transition: transform .15s ease; }
.slot-adv-toggle.is-open .slot-adv-chevron { transform: rotate(180deg); }
.slot-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}
.slot-foot-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}
.studio-loc-scope.is-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.65rem;
  margin: 0;
}
.studio-loc-scope.is-form .studio-loc-scope-hint {
  grid-column: 1 / -1;
}
@media (max-width: 520px) {
  .slot-lane-row { grid-template-columns: 1fr 1fr; }
  .studio-loc-scope.is-form { grid-template-columns: 1fr; }
}
.sched-modal-card.wide:has(.pl-picker) {
  max-width: min(920px, 96vw);
  width: min(920px, 96vw);
  height: min(88vh, 820px);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sched-modal-card.wide:has(.pl-picker) > .sched-modal-head {
  flex: 0 0 auto;
}
.sched-modal-card.wide:has(.pl-picker) > .pl-picker {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}
.sched-modal-card.wide:has(.pl-picker) .sched-modal-foot {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  background: var(--brand-card);
}

/* ?? Slot composer (add modal) ?? */
.slot-composer {
  gap: 0 !important;
  padding: 0 0 0.85rem !important;
}
.slot-sec {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.slot-sec.slim { padding-top: 0.7rem; padding-bottom: 0.7rem; }
.slot-sec-h {
  display: flex; align-items: flex-start; gap: 0.65rem;
  margin-bottom: 0.65rem;
}
.slot-sec-h > div { flex: 1; min-width: 0; }
.slot-sec-h em {
  flex: 0 0 auto;
  font-family: var(--font-mono); font-style: normal; font-size: 10px; font-weight: 700;
  letter-spacing: .06em; color: var(--brand-amber);
  padding: 0.2rem 0.4rem; border-radius: 6px;
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.25);
}
.slot-sec-h strong {
  display: block; font-size: 13px; font-weight: 700; color: var(--brand-ink); line-height: 1.25;
}
.slot-sec-h span {
  display: block; margin-top: 0.1rem;
  font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted); line-height: 1.3;
}
.slot-prio {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}
.slot-prio-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem;
  padding: 0.65rem 0.55rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.22);
  color: var(--brand-dim);
  cursor: pointer; font: inherit; text-align: left;
  transition: border-color .15s, background .15s, transform .12s;
}
.slot-prio-card:hover { border-color: rgba(245,158,11,.3); transform: translateY(-1px); }
.slot-prio-card .material-symbols-outlined { font-size: 20px; color: var(--brand-muted); }
.slot-prio-rank {
  position: absolute; top: 0.4rem; right: 0.45rem;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  color: var(--brand-muted); opacity: .7;
}
.slot-prio-title { font-size: 11px; font-weight: 700; color: #e2e8f0; line-height: 1.2; }
.slot-prio-card.is-on {
  color: var(--brand-ink);
  box-shadow: 0 0 0 1px rgba(245,158,11,.25);
}
.slot-prio-card.lane-stop.is-on {
  border-color: rgba(148,163,184,.55); background: rgba(100,116,139,.16);
}
.slot-prio-card.lane-stop.is-on .material-symbols-outlined { color: #94a3b8; }
.slot-prio-card.lane-alt.is-on {
  border-color: rgba(167,139,250,.55); background: rgba(167,139,250,.12);
}
.slot-prio-card.lane-alt.is-on .material-symbols-outlined { color: #c4b5fd; }
.slot-prio-card.lane-ads.is-on {
  border-color: rgba(56,189,248,.55); background: rgba(56,189,248,.12);
}
.slot-prio-card.lane-ads.is-on .material-symbols-outlined { color: #7dd3fc; }
.slot-prio-card.lane-main.is-on {
  border-color: rgba(245,158,11,.55); background: rgba(245,158,11,.12);
}
.slot-prio-card.lane-main.is-on .material-symbols-outlined { color: #fbbf24; }

.slot-pl-row {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.slot-pl-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem;
  padding: 0.55rem 0.75rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.2);
  cursor: pointer; font: inherit; text-align: left;
  min-width: min(100%, 11rem); max-width: 100%; flex: 1 1 11rem;
}
.slot-pl-chip strong {
  font-size: 12px; font-weight: 700; color: var(--brand-ink);
  line-height: 1.25; white-space: normal; word-break: break-word;
}
.slot-pl-chip span { font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted); }
.slot-pl-chip:hover { border-color: rgba(245,158,11,.35); }
.slot-pl-chip.is-on {
  border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.1);
}
.slot-pl-chip.lane-ads.is-on { border-color: rgba(56,189,248,.5); background: rgba(56,189,248,.1); }
.slot-pl-chip.lane-alt.is-on { border-color: rgba(167,139,250,.5); background: rgba(167,139,250,.1); }
.slot-empty { margin: 0; font-size: 12px; color: var(--brand-muted); }

.slot-grid-2 {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0.65rem; align-items: end;
}
.slot-grid-2.tight { grid-template-columns: 1fr 1fr; margin-top: 0.55rem; }
.slot-field { display: flex; flex-direction: column; gap: 0.28rem; min-width: 0; }
.slot-field > span {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--brand-muted);
}
.slot-field .media-input { width: 100%; padding: 0.45rem 0.65rem; font-size: 13px; }
.slot-hint {
  margin: 0.35rem 0 0;
  font-size: 11px;
  color: var(--brand-muted);
  line-height: 1.35;
}
.slot-date-pair {
  margin-top: 0.55rem;
}
.slot-time-pair {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.35rem; align-items: end;
}
.slot-time-dash {
  padding-bottom: 0.55rem;
  font-family: var(--font-mono); font-size: 12px; color: var(--brand-muted);
}

.slot-recur {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  padding: 0.25rem; border-radius: 12px;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.05);
}
.slot-recur-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem 0.7rem; border-radius: 9px;
  border: 1px solid transparent;
  background: transparent; color: var(--brand-muted);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.slot-recur-chip .material-symbols-outlined { font-size: 16px; }
.slot-recur-chip:hover { color: var(--brand-ink); background: rgba(255,255,255,.04); }
.slot-recur-chip.is-on {
  color: #111; background: linear-gradient(135deg, #fbbf24, #d97706);
  border-color: rgba(253,230,138,.4);
  box-shadow: 0 2px 8px rgba(245,158,11,.25);
}

.slot-preview {
  margin-top: 0.65rem;
  padding: 0.55rem 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent), #0c0e14;
}
.slot-preview-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.slot-preview-meta span {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--brand-muted);
}
.slot-preview-meta strong { font-size: 11px; font-weight: 700; color: #e2e8f0; }
.slot-preview-track {
  position: relative; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
  overflow: hidden;
}
.slot-preview-tick {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: rgba(255,255,255,.08);
  font-style: normal; font-family: var(--font-mono); font-size: 8px; color: var(--brand-muted);
  padding-top: 2px; padding-left: 3px; pointer-events: none;
}
.slot-preview-burst {
  position: absolute; top: 5px; bottom: 5px; border-radius: 5px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.slot-preview.lane-ads .slot-preview-burst {
  background: linear-gradient(135deg, #38bdf8, #0369a1);
}
.slot-preview.lane-alt .slot-preview-burst {
  background: linear-gradient(135deg, #c4b5fd, #6d28d9);
}
.slot-preview.lane-stop .slot-preview-burst {
  background: repeating-linear-gradient(-45deg, #374151, #374151 3px, #1f2937 3px, #1f2937 6px);
}

.slot-day-presets {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  margin: 0.35rem 0 0.45rem;
}
.slot-day-preset {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.25);
  color: var(--brand-muted);
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  cursor: pointer; user-select: none;
  transition: border-color .15s, background .15s, color .15s;
  min-width: 6.5rem;
}
.slot-day-preset-hint {
  font-style: normal; font-size: 10px; font-weight: 600;
  opacity: .7; letter-spacing: 0;
}
.slot-day-preset.is-on .slot-day-preset-hint { opacity: .85; }
.slot-day-preset:hover {
  border-color: rgba(251,191,36,.35);
  color: var(--brand-fg, #f5f5f5);
}
.slot-day-preset.is-on {
  color: #111;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-color: rgba(253,230,138,.45);
}
.slot-days {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.slot-day {
  display: grid; place-items: center;
  min-width: 2.4rem; height: 2.15rem; padding: 0 0.45rem;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.2);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--brand-muted); cursor: pointer; user-select: none;
}
.slot-day input { display: none; }
.slot-day.is-on {
  color: #111;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-color: rgba(253,230,138,.45);
}
.slot-foot { margin: 0.15rem 1.15rem 0; padding-top: 0.75rem; }

@media (max-width: 640px) {
  .slot-prio { grid-template-columns: 1fr 1fr; }
  .slot-grid-2, .slot-grid-2.tight { grid-template-columns: 1fr; }
  .slot-time-pair { grid-template-columns: 1fr; }
  .slot-time-dash { display: none; }
}
.mourn-form .media-input { padding: 0.4rem 0.6rem; font-size: 12px; }
.mourn-form .media-input[type="date"] { min-height: 2.1rem; }
.mourn-form .sched-modal-foot { padding-top: 0.4rem; gap: 0.35rem; }
.mourn-form .studio-btn-ghost,
.mourn-form .media-upload-btn { padding: 0.45rem 0.75rem; font-size: 12px; }

.mourn-scope-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.3rem;
}
.mourn-scope-chip {
  display: flex; align-items: center; justify-content: center; gap: 0.3rem;
  padding: 0.4rem 0.35rem; border-radius: 9px;
  border: 1px solid rgba(32,36,45,.9); background: var(--brand-dark);
  color: var(--brand-dim); font-size: 11px; cursor: pointer; line-height: 1.2;
}
.mourn-scope-chip input { display: none; }
.mourn-scope-chip .material-symbols-outlined { font-size: 15px; color: var(--brand-amber); }
.mourn-scope-chip:has(input:checked) {
  border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.1); color: var(--brand-ink);
}

.mourn-target-panel { display: flex; flex-direction: column; gap: 0.35rem; }
.mourn-target-panel[hidden] { display: none !important; }

.mourn-chip-grid {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
}
.mourn-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.28rem 0.55rem; border-radius: 999px;
  border: 1px solid rgba(32,36,45,.85); background: rgba(0,0,0,.22);
  font-size: 11px; color: var(--brand-dim); cursor: pointer;
}
.mourn-chip input { width: 12px; height: 12px; margin: 0; accent-color: var(--brand-amber); }
.mourn-chip-name { line-height: 1.2; }
.mourn-chip-meta {
  font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted);
  min-width: 1rem; text-align: center;
}
.mourn-chip:has(input:checked) {
  border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.12); color: var(--brand-ink);
}
.mourn-chip:has(input:checked) .mourn-chip-meta { color: #fbbf24; }

.mourn-list-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.mourn-list-head .sched-label { margin: 0; }
.mourn-filter {
  width: 100%; max-width: 160px; padding: 0.3rem 0.5rem !important;
  font-size: 11px !important; min-height: 0 !important;
}
.mourn-club-list {
  display: flex; flex-direction: column; gap: 0.15rem;
  max-height: 220px; overflow: auto;
  padding: 0.25rem; border-radius: 10px;
  background: rgba(0,0,0,.18); border: 1px solid rgba(32,36,45,.75);
}
.mourn-city-group + .mourn-city-group {
  margin-top: 0.2rem; padding-top: 0.2rem;
  border-top: 1px solid rgba(32,36,45,.65);
}
.mourn-city-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.28rem 0.4rem; border-radius: 6px;
  background: rgba(18,20,26,.96); cursor: pointer;
  font-size: 11px; font-weight: 600; color: #e2e4e9;
}
.mourn-city-head input { width: 12px; height: 12px; margin: 0; accent-color: var(--brand-amber); }
.mourn-city-head em {
  margin-left: auto; font-style: normal;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  color: var(--brand-muted);
}
.mourn-city-head:has(input:checked) { color: #fde68a; }
.mourn-club-rows { display: flex; flex-direction: column; }
.mourn-club-row {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.22rem 0.4rem 0.22rem 1.35rem;
  border-radius: 5px; cursor: pointer;
  font-size: 11px; color: var(--brand-dim); line-height: 1.25;
}
.mourn-club-row input { width: 12px; height: 12px; margin: 0; flex: 0 0 auto; accent-color: var(--brand-amber); }
.mourn-club-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mourn-club-row:hover { background: rgba(255,255,255,.03); color: var(--brand-ink); }
.mourn-club-row:has(input:checked) {
  color: var(--brand-ink); background: rgba(245,158,11,.08);
}
@media (max-width: 560px) {
  .mourn-scope-row { grid-template-columns: 1fr; }
  .mourn-filter { max-width: none; }
}
.sched-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1.1rem 1.2rem; border-bottom: 1px solid rgba(32,36,45,.8);
}
.sched-modal-head.compact { padding: 0.75rem 0.9rem; gap: 0.5rem; }
.sched-icon-box.sm {
  width: 34px; height: 34px; border-radius: 10px;
}
.sched-icon-box.sm .material-symbols-outlined { font-size: 18px; }
.sched-modal-x {
  width: 36px; height: 36px; border-radius: 10px; border: 0;
  background: transparent; color: var(--brand-muted); cursor: pointer;
}
.sched-modal-x:hover { background: rgba(255,255,255,.05); color: var(--brand-ink); }
.sched-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.sched-type-grid.silence-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sched-type-grid.silence-modes.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.3rem;
}
@media (max-width: 560px) {
  .sched-type-grid.silence-modes,
  .sched-type-grid.silence-modes.compact { grid-template-columns: 1fr 1fr; }
}
.sched-type-card,
button.sched-type-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: 0.85rem; border-radius: 14px; border: 1px solid rgba(32,36,45,.9);
  background: var(--brand-dark); cursor: pointer; color: var(--brand-dim); font-size: 12px;
  appearance: none; font: inherit; text-align: center;
}
button.sched-type-card { align-items: flex-start; text-align: left; }
.sched-type-card.sm {
  flex-direction: row; justify-content: center;
  gap: 0.25rem; padding: 0.4rem 0.3rem;
  border-radius: 9px; font-size: 11px; line-height: 1.2;
}
.sched-type-card input { display: none; }
.sched-type-card .material-symbols-outlined { font-size: 22px; color: var(--brand-amber); }
.sched-type-card.sm .material-symbols-outlined { font-size: 15px; }
.sched-type-card:has(input:checked) {
  border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.1); color: var(--brand-ink);
}
.sched-modal-foot {
  display: flex; justify-content: flex-end; gap: 0.5rem;
  padding-top: 0.5rem; border-top: 1px solid rgba(32,36,45,.7); margin-top: 0.25rem;
}

@media (max-width: 720px) {
  .sched-block-meta, .sched-slot-right .mono { display: none; }
  .sched-slot-time { width: auto; }
  .sched-form-row.two { grid-template-columns: 1fr; }
}

/* Playlists — master/detail explorer */
.pl-page {
  display: flex; flex-direction: column; gap: 0.65rem;
  height: calc(100vh - 64px - 3.5rem);
  min-height: 0; overflow: hidden;
}
.pl-page > .loc-hero,
.pl-page > .pl-hero { flex: 0 0 auto; }
.pl-hero-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.55rem 0.85rem;
  padding: 0.65rem 0.9rem 0.45rem;
}
.pl-hero-title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.7rem;
  min-width: 0;
}
.pl-hero-title h1 {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--brand-ink); line-height: 1.2;
}
.pl-hero-title p {
  margin: 0; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 12px; color: var(--brand-muted);
}
.pl-hero-title p span { opacity: 0.55; }
.pl-hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 0.4rem;
  flex: 1 1 16rem;
  min-width: 0;
}
.pl-hero .pl-add-fab {
  height: 32px;
  padding: 0 0.75rem 0 0.55rem;
  font-size: 12px;
  border-radius: 8px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.pl-hero .pl-add-fab .material-symbols-outlined { font-size: 18px; }
.pl-search {
  display: flex; align-items: center; gap: 0.35rem;
  height: 32px;
  min-width: 0; width: min(240px, 100%); flex: 1 1 160px;
  padding: 0 0.65rem; border-radius: 8px;
  border: 1px solid rgba(32,36,45,.9); background: rgba(11,13,17,.55);
}
.pl-search .material-symbols-outlined { font-size: 16px; color: var(--brand-amber); }
.pl-search input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  color: var(--brand-ink); font: inherit; font-size: 12px; outline: none;
}
.pl-mode-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem;
  padding: 0 0.9rem 0.6rem;
}
.pl-mode-chip {
  display: inline-flex; align-items: center;
  padding: 0.28rem 0.65rem; border-radius: 999px;
  border: 1px solid rgba(32,36,45,.9);
  background: rgba(11,13,17,.45); color: var(--brand-muted);
  font: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
}
.pl-mode-chip:hover { color: var(--brand-ink); border-color: rgba(245,158,11,.35); }
.pl-mode-chip.is-on {
  background: rgba(245,158,11,.16); border-color: rgba(245,158,11,.45); color: #fbbf24;
}
.pl-card {
  display: flex; align-items: center; gap: 0.7rem;
  width: 100%; text-align: left;
  padding: 0.65rem 0.75rem 0.65rem 0.7rem; margin: 0;
  border: 0; border-bottom: 1px solid rgba(32,36,45,.4);
  border-radius: 0; background: transparent; color: inherit; cursor: pointer;
  transition: background .12s ease;
}
.pl-card:hover { background: rgba(255,255,255,.03); }
.pl-card:hover .pl-card-art {
  border-color: rgba(245,158,11,.4);
  background: rgba(245,158,11,.14);
}
.pl-card.active {
  background: rgba(245,158,11,.08);
  box-shadow: inset 3px 0 0 var(--brand-amber);
}
.pl-card.active .pl-card-art {
  border-color: rgba(245,158,11,.5);
  background: linear-gradient(145deg, rgba(245,158,11,.32), rgba(245,158,11,.1));
}
.pl-card.active .pl-card-title { color: #fff; }
.pl-card-art {
  width: 40px; height: 40px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(245,158,11,.22);
  background: rgba(245,158,11,.08);
  transition: border-color .12s, background .12s;
}
.pl-card-art .material-symbols-outlined {
  font-size: 20px; color: var(--brand-amber);
}
.pl-card-body {
  min-width: 0; flex: 1;
  display: flex; flex-direction: column; gap: 0.28rem;
}
.pl-badge {
  display: inline-flex; align-items: center; gap: 0.2rem;
  padding: 0; border: 0; border-radius: 0;
  font-size: inherit; font-weight: 600;
  background: transparent; color: #fbbf24;
}
.pl-badge .material-symbols-outlined {
  font-size: 13px; color: var(--brand-amber);
}
.pl-badge.is-live, .pl-chip.is-live {
  background: rgba(245,158,11,.14); color: #fbbf24;
  border: 1px solid rgba(245,158,11,.35);
  border-radius: 999px; padding: 0.12rem 0.45rem;
}
.pl-pulse {
  width: 6px; height: 6px; border-radius: 999px; background: currentColor;
  box-shadow: 0 0 0 0 rgba(245,158,11,.45);
  animation: pl-pulse 1.4s ease-out infinite;
}
@keyframes pl-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245,158,11,.4); }
  70% { box-shadow: 0 0 0 6px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}
.pl-wave {
  display: inline-flex; align-items: flex-end; gap: 2px; height: 12px;
}
.pl-wave i {
  display: block; width: 2px; border-radius: 999px; background: var(--brand-amber);
  animation: pl-wave 1s ease-in-out infinite;
}
.pl-wave .w1 { height: 4px; animation-delay: 0s; }
.pl-wave .w2 { height: 10px; animation-delay: .15s; }
.pl-wave .w3 { height: 6px; animation-delay: .3s; }
.pl-wave .w4 { height: 12px; animation-delay: .08s; }
@keyframes pl-wave {
  0%, 100% { transform: scaleY(.45); }
  50% { transform: scaleY(1); }
}
.pl-card-title {
  font-weight: 650; font-size: 13px; color: var(--brand-ink);
  letter-spacing: -0.01em; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-card-onair {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
  color: #052e1a;
  background: #34d399;
}
.fx-tool-btn.is-onair {
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}
.fx-tool-btn.is-onair .material-symbols-outlined {
  color: #34d399 !important;
}
.pl-card-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.28rem;
  font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted);
  line-height: 1.2;
}
.pl-card-dot {
  width: 3px; height: 3px; border-radius: 999px;
  background: rgba(148,163,184,.45); flex: 0 0 auto;
}
.pl-detail-head {
  flex: 0 0 auto;
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 0.95rem 1.1rem; border-bottom: 1px solid rgba(32,36,45,.7);
  background: linear-gradient(180deg, rgba(245,158,11,.06), transparent);
}
.pl-detail-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
}
.pl-detail-left {
  display: flex; align-items: center; gap: 0.85rem; min-width: 0; flex: 1;
}
.pl-cover {
  width: 56px; height: 56px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(145deg, rgba(245,158,11,.25), rgba(11,13,17,.9));
  border: 1px solid rgba(245,158,11,.35);
}
.pl-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: relative; z-index: 1;
}
.pl-cover .material-symbols-outlined {
  position: absolute; font-size: 26px; color: var(--brand-amber); opacity: 0; z-index: 0;
}
.pl-cover.no-cover .material-symbols-outlined,
.pl-cover:not(:has(img)) .material-symbols-outlined { opacity: 1; }
.pl-detail-head h2 {
  margin: 0; font-family: var(--font-display), sans-serif; font-size: 1.25rem;
  font-weight: 600; color: var(--brand-ink); letter-spacing: -0.02em; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pl-detail-badges {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem;
}
.pl-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.15rem 0.45rem; border-radius: 6px;
  font-size: 10px; font-family: var(--font-mono); font-weight: 600;
  background: rgba(11,13,17,.55); color: var(--brand-dim);
  border: 1px solid rgba(32,36,45,.85);
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-chip-mode .material-symbols-outlined {
  font-size: 13px; color: var(--brand-amber);
}
.pl-detail-top-actions {
  display: inline-flex; align-items: center; gap: 0.4rem; flex: 0 0 auto;
}
.pl-detail-top-actions .fx-tool-btn {
  height: 34px;
  padding: 0 0.7rem;
  white-space: nowrap;
}
.pl-detail-toolbar {
  display: flex; align-items: center; gap: 0.45rem;
  min-width: 0; flex-wrap: wrap;
}
.pl-play-main {
  display: inline-flex; align-items: center; gap: 0.3rem;
  height: 34px; padding: 0 0.95rem 0 0.7rem;
  border: 0; border-radius: 999px;
  background: var(--brand-amber); color: #111;
  font: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.pl-play-main .material-symbols-outlined { font-size: 20px; }
.pl-play-main:hover { filter: brightness(1.06); }
.pl-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(32,36,45,.9);
  background: rgba(11,13,17,.45); color: var(--brand-amber);
  cursor: pointer;
}
.pl-icon-btn .material-symbols-outlined { font-size: 18px; }
.pl-icon-btn:hover {
  border-color: rgba(245,158,11,.45);
  background: rgba(245,158,11,.12);
  color: var(--brand-ink);
}
.pl-icon-btn.is-danger {
  border-color: rgba(248,113,113,.28);
  color: #fca5a5;
}
.pl-icon-btn.is-danger:hover {
  border-color: rgba(248,113,113,.55);
  background: rgba(248,113,113,.12);
  color: #fecaca;
}
.pl-toolbar-sep {
  width: 1px; height: 22px; flex: 0 0 auto;
  background: rgba(32,36,45,.9);
  margin: 0 0.15rem;
}
.pl-toolbar-grow { flex: 1 1 0.5rem; min-width: 0.5rem; }
.pl-mode-field {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin: 0; min-width: 0;
}
.pl-mode-field-label {
  font-size: 10px; font-family: var(--font-mono); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand-muted); white-space: nowrap;
}
.pl-head-add {
  height: 34px;
  padding: 0 0.85rem;
  font-size: 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pl-head-add .material-symbols-outlined { font-size: 18px; }
.pl-mode-select.studio-dd {
  width: 9.5rem;
  flex: 0 0 9.5rem;
}
.pl-mode-field .studio-dd-trigger {
  min-height: 34px;
  height: 34px;
  padding: 0 0.45rem 0 0.7rem;
  font-size: 12px;
  border-radius: 999px;
}
.pl-track-play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px; border: 0;
  background: rgba(245,158,11,.14); color: var(--brand-amber); cursor: pointer; padding: 0;
}
.pl-track-play .material-symbols-outlined { font-size: 18px; }
.pl-track-play:hover { background: rgba(245,158,11,.28); color: var(--brand-ink); }
.pl-track.is-current .pl-track-play {
  background: var(--brand-amber); color: #111;
}
.pl-onair-tag,
.pl-preview-tag {
  margin-left: 0.4rem; padding: 0.05rem 0.35rem; border-radius: 4px;
  font-style: normal; font-size: 9px; font-family: var(--font-mono); font-weight: 700;
  background: rgba(245,158,11,.18); color: #fbbf24;
}
.pl-preview-tag {
  background: rgba(148,163,184,.16); color: var(--brand-dim);
}
.pl-pager-bar {
  flex: 0 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-top: 1px solid rgba(32,36,45,.7);
  background: rgba(0,0,0,.16);
  font-size: 11px; color: var(--brand-muted);
}
.pl-pager-meta strong {
  font-family: var(--font-mono); color: var(--brand-ink); font-weight: 600;
}
.pl-now {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-top: 1px solid rgba(245,158,11,.25);
  background: linear-gradient(90deg, rgba(245,158,11,.1), rgba(0,0,0,.18));
}
.pl-now-label {
  font-size: 12px; font-weight: 600; color: var(--brand-ink); min-width: 0;
}
.pl-video-preview {
  display: none;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #000;
  border-top: 1px solid rgba(32,36,45,.8);
}
.pl-video-preview.is-open { display: block; }
.pl-create {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  position: relative;
  z-index: 6;
  overflow: visible;
}
.pl-create .media-input { min-width: 140px; }
.pl-create .studio-dd { min-width: 140px; }
.pl-add-fab {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.55rem 1rem 0.55rem 0.75rem;
  border-radius: 10px; border: 1px solid rgba(245,158,11,.45);
  background: linear-gradient(180deg, rgba(245,158,11,.18), rgba(245,158,11,.08));
  color: var(--brand-amber); font-weight: 600; font-size: 13px;
  cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .12s;
}
.pl-add-fab .material-symbols-outlined {
  font-size: 20px; font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}
.pl-add-fab:hover {
  border-color: rgba(245,158,11,.7);
  background: linear-gradient(180deg, rgba(245,158,11,.28), rgba(245,158,11,.12));
  color: #fbbf24;
}
.pl-add-fab:active { transform: translateY(1px); }
html[data-theme="light"] .pl-add-fab {
  background: linear-gradient(180deg, rgba(245,158,11,.22), rgba(245,158,11,.1));
  border-color: rgba(180,110,10,.35);
  color: #b45309;
}
html[data-theme="light"] .pl-add-fab:hover {
  border-color: rgba(180,110,10,.55);
  color: #92400e;
}
.pl-layout {
  flex: 1; min-height: 0; overflow: hidden;
  display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 1rem;
}
.pl-side {
  min-height: 0; height: 100%; max-height: none;
  overflow: hidden; display: flex; flex-direction: column;
}
.pl-side-head {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; border-bottom: 1px solid rgba(32,36,45,.7);
}
.pl-side-head h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--brand-ink); }
.pl-side-head span { font-family: var(--font-mono); font-size: 11px; color: var(--brand-muted); }
.pl-names { display: flex; flex-direction: column; overflow: auto; flex: 1; min-height: 0; }
.pl-side-empty { padding: 1.25rem 1rem; font-size: 13px; color: var(--brand-muted); }
.pl-main {
  min-height: 0; height: 100%; max-height: none;
  overflow: hidden; display: flex; flex-direction: column;
}
.pl-del { color: #fca5a5 !important; }
.pl-tracks {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0; max-height: none;
  overflow: auto; overscroll-behavior: contain;
}
.pl-track {
  display: grid;
  grid-template-columns: 2rem 28px 40px minmax(0, 1fr) auto auto;
  align-items: center; gap: 0.55rem;
  padding: 0.5rem 1.1rem;
  border-bottom: 1px solid rgba(32,36,45,.4);
}
.pl-track:hover { background: rgba(255,255,255,.02); }
.pl-track.is-current {
  background: rgba(245,158,11,.08);
  box-shadow: inset 2px 0 0 var(--brand-amber);
}
.pl-track-num {
  font-family: var(--font-mono); font-size: 11px; color: var(--brand-muted); text-align: right;
}
.pl-track.is-current .pl-track-num { color: var(--brand-amber); }
.pl-track-art {
  width: 40px; height: 40px; border-radius: 8px; overflow: hidden;
  background: rgba(245,158,11,.1); border: 1px solid rgba(32,36,45,.8);
  display: grid; place-items: center; position: relative;
}
.pl-track-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-track-art .material-symbols-outlined {
  position: absolute; font-size: 18px; color: var(--brand-amber); opacity: 0;
}
.pl-track-art.no-cover,
.pl-track-art:not(:has(img)),
.pl-pick-art.no-cover,
.pl-pick-art:not(:has(img)) {
  background: #0c0e12 url("/static/media-cover.svg") center / cover no-repeat;
  border-color: rgba(245,158,11,.35);
}
.pl-track-art.no-cover .material-symbols-outlined,
.pl-track-art:not(:has(img)) .material-symbols-outlined,
.pl-pick-art.no-cover .material-symbols-outlined,
.pl-pick-art:not(:has(img)) .material-symbols-outlined { opacity: 0; }
.pl-track-title {
  color: var(--brand-ink); font-weight: 500; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-track-artist { font-size: 11px; color: var(--brand-muted); margin-top: 1px; }
.pl-track-dur { font-family: var(--font-mono); font-size: 11px; color: var(--brand-dim); }
.pl-track-del button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid transparent; background: transparent;
  color: var(--brand-muted); cursor: pointer;
}
.pl-track-del button .material-symbols-outlined { font-size: 18px; }
.pl-track-del button:hover {
  color: #fca5a5; border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.1);
}
.pl-empty {
  padding: 2.5rem 1.1rem; text-align: center;
  font-size: 13px; color: var(--brand-muted);
  display: flex; flex-direction: column; align-items: center; gap: 0.85rem;
}
.pl-empty p { margin: 0; }
.pl-empty.tall { padding: 4rem 1.1rem; }

/* Multi-select add-tracks picker */
.pl-picker {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}
.pl-picker-side {
  overflow: auto;
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 0.55rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.pl-pick-folder {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.42rem 0.55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand-muted);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.pl-pick-folder .material-symbols-outlined { font-size: 16px; color: var(--brand-amber); }
.pl-pick-folder em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  color: var(--brand-dim);
}
.pl-pick-folder:hover { background: rgba(255,255,255,.04); color: var(--brand-ink); }
.pl-pick-folder.is-on {
  background: rgba(245,158,11,.12);
  color: var(--brand-ink);
}
.pl-picker-main {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pl-picker-toolbar {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pl-picker-search { flex: 1 1 160px; min-width: 140px; }
.pl-picker-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.35rem 0.45rem 0.55rem;
}
.pl-pick-row {
  display: grid;
  grid-template-columns: 1.1rem 36px minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}
.pl-pick-row:hover { background: rgba(255,255,255,.03); }
.pl-pick-row.is-on {
  background: rgba(245,158,11,.1);
  border-color: rgba(245,158,11,.28);
}
.pl-pick-row.is-in {
  opacity: 0.55;
  cursor: default;
}
.pl-pick-row input {
  accent-color: var(--brand-amber);
  margin: 0;
}
.pl-pick-art {
  width: 36px; height: 36px; border-radius: 8px; overflow: hidden;
  background: rgba(245,158,11,.1); border: 1px solid rgba(32,36,45,.8);
  display: grid; place-items: center; position: relative;
}
.pl-pick-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-pick-art .material-symbols-outlined {
  position: absolute; font-size: 16px; color: var(--brand-amber); opacity: 0;
}
.pl-pick-art.no-cover .material-symbols-outlined,
.pl-pick-art:not(:has(img)) .material-symbols-outlined { opacity: 1; }
.pl-pick-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pl-pick-meta strong {
  font-size: 13px; font-weight: 500; color: var(--brand-ink);
}
.pl-pick-meta em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-muted);
}
.pl-picker-foot {
  flex: 0 0 auto;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
  color: var(--brand-muted);
}
.pl-picker-foot strong { color: var(--brand-amber); font-weight: 600; }
html[data-theme="light"] .pl-picker-side,
html[data-theme="light"] .pl-picker-toolbar,
html[data-theme="light"] .pl-picker-foot {
  border-color: rgba(15,23,42,.08);
}
html[data-theme="light"] .pl-pick-folder:hover,
html[data-theme="light"] .pl-pick-row:hover {
  background: rgba(15,23,42,.04);
}

@media (max-width: 960px) {
  .pl-page { height: auto; max-height: none; overflow: visible; }
  .pl-layout { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .pl-side { max-height: 200px; height: auto; }
  .pl-main { height: auto; max-height: min(70vh, 640px); }
  .pl-add-inline { margin-left: 0; justify-content: stretch; flex-basis: 100%; }
  .pl-add-inline .media-input { max-width: none; }
  .pl-toolbar-grow { display: none; }
  .pl-mode-field { flex: 1 1 auto; }
  .pl-mode-select.studio-dd { width: auto; flex: 1 1 8rem; }
}
@media (max-width: 720px) {
  .pl-track { grid-template-columns: 1.75rem 36px minmax(0, 1fr) auto; }
  .pl-track-dur { display: none; }
  .pl-folder-pill { max-width: 100%; }
  .pl-add-btn { width: 100%; }
  .pl-bar > .fx-tool-btn { margin-left: 0; }
  .pl-hero-actions { flex-basis: 100%; justify-content: stretch; }
  .pl-search { width: auto; flex: 1 1 8rem; }
  .pl-picker {
    grid-template-columns: 1fr;
    max-height: min(70vh, 640px);
  }
  .pl-picker-side {
    max-height: 132px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
}

/* Studio dropdown (custom select) — amber border like playlist create */
.studio-dd {
  position: relative;
  width: 100%;
  min-width: 0;
}
.studio-dd.is-disabled { opacity: .5; pointer-events: none; }
.studio-dd-trigger {
  display: flex;
  align-items: center;
  gap: .4rem;
  width: 100%;
  min-height: 2.5rem;
  padding: .5rem .6rem .5rem .75rem;
  border-radius: 8px;
  border: 1px solid rgba(245,158,11,.5);
  background: var(--brand-input-bg);
  color: var(--brand-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.studio-dd-trigger:hover { border-color: rgba(245,158,11,.75); }
.studio-dd.is-open .studio-dd-trigger {
  border-color: rgba(245,158,11,.95);
  box-shadow: 0 0 0 2px rgba(245,158,11,.16);
}
.studio-dd-value-ico {
  font-size: 18px !important;
  color: var(--brand-amber);
  flex-shrink: 0;
}
.studio-dd-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-dd-value.is-placeholder { color: var(--brand-muted); font-weight: 400; }
.studio-dd-chevron {
  font-size: 20px !important;
  color: var(--brand-amber);
  transition: transform .15s;
  flex-shrink: 0;
}
.studio-dd.is-open .studio-dd-chevron { transform: rotate(180deg); }
.studio-dd-panel {
  position: absolute;
  z-index: 90;
  left: 0; right: 0;
  top: calc(100% + 5px);
  border-radius: 10px;
  border: 1px solid rgba(245,158,11,.55);
  background: var(--brand-elevated);
  color: var(--brand-text);
  box-shadow: var(--brand-shadow), 0 0 0 1px rgba(245,158,11,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 160px;
}
.studio-dd-panel.is-portal {
  right: auto;
  top: auto; /* allow bottom-anchored open-up without CSS top fighting inline */
  /* position/size set inline (fixed) so overflow parents cannot clip */
}
.studio-dd-search {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .7rem;
  border-bottom: 1px solid rgba(245,158,11,.22);
  background: rgba(245,158,11,.04);
}
.studio-dd-search .material-symbols-outlined {
  font-size: 18px !important;
  color: var(--brand-amber);
}
.studio-dd-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--brand-ink);
  font: inherit;
  font-size: 13px;
}
.studio-dd-search-input::placeholder { color: var(--brand-muted); }
.studio-dd-menu {
  margin: 0;
  padding: .35rem;
  list-style: none;
  max-height: min(260px, 45vh);
  overflow: auto;
}
.studio-dd-empty {
  padding: .75rem .7rem;
  font-size: 12px;
  color: var(--brand-muted);
  text-align: center;
}
.studio-dd-option {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #f0f2f5;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: .55rem .7rem;
  border-radius: 7px;
  cursor: pointer;
}
.studio-dd-option-ico {
  font-size: 18px !important;
  color: var(--brand-amber);
  flex-shrink: 0;
}
.studio-dd-option.has-hint { padding: .5rem .7rem; }
.studio-dd-option-main {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.12rem;
  min-width: 0; flex: 1;
}
.fx-icon-pick {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 0.3rem;
  max-width: 220px;
}
.fx-icon-pick-btn {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-height: 0;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(245,158,11,.28);
  background: rgba(245,158,11,.05);
  color: var(--brand-amber);
  cursor: pointer;
  padding: 0;
}
.fx-icon-pick-btn .material-symbols-outlined { font-size: 16px; line-height: 1; }
.fx-icon-pick-btn:hover {
  border-color: rgba(245,158,11,.55);
  background: rgba(245,158,11,.12);
  color: var(--brand-ink);
}
.fx-icon-pick-btn.is-on {
  border-color: rgba(245,158,11,.85);
  background: rgba(245,158,11,.18);
  color: var(--brand-ink);
  box-shadow: 0 0 0 2px rgba(245,158,11,.16);
}
html[data-theme="light"] .fx-icon-pick-btn {
  background: rgba(180, 83, 9, .04);
}
.studio-dd-option-label { line-height: 1.25; }
.studio-dd-option-hint {
  font-size: 11px; font-weight: 400; line-height: 1.3;
  color: var(--brand-muted);
}
.studio-dd-option:hover {
  background: rgba(245,158,11,.12);
  color: var(--brand-ink);
}
.studio-dd-option:hover .studio-dd-option-hint { color: var(--brand-dim); }
.studio-dd-option.is-on {
  background: rgba(245,158,11,.22);
  color: #fbbf24;
  font-weight: 700;
}
.studio-dd-option.is-on .studio-dd-option-hint {
  color: rgba(251,191,36,.75); font-weight: 400;
}
.studio-dd-option:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* Checkboxes — square (file-manager / 1C style), not toggle switches */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1.5px solid rgba(245,158,11,.45);
  background-color: var(--brand-input-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color .12s, border-color .12s;
}
input[type="checkbox"]:not(.studio-switch)::after { content: none; }
input[type="checkbox"]:hover { border-color: rgba(245,158,11,.8); }
input[type="checkbox"]:checked {
  background-color: rgba(245,158,11,.22);
  border-color: #f59e0b;
}
input[type="checkbox"]:checked:not(.studio-switch) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.2 6.4 11.3 12.8 4.6' fill='none' stroke='%23fbbf24' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input[type="checkbox"]:indeterminate {
  background-color: rgba(245,158,11,.18);
  border-color: #f59e0b;
}
input[type="checkbox"]:indeterminate:not(.studio-switch) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8h9' fill='none' stroke='%23fbbf24' stroke-width='1.75' stroke-linecap='round'/%3E%3C/svg%3E");
}
input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(245,158,11,.25);
}
input[type="checkbox"]:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* Optional pill switch — only when class="studio-switch" */
input[type="checkbox"].studio-switch {
  width: 2.45rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--brand-elevated);
  border: 1px solid rgba(245,158,11,.4);
}
input[type="checkbox"].studio-switch::after {
  left: 2px;
  top: 2px;
  width: calc(1.35rem - 6px);
  height: calc(1.35rem - 6px);
  border: 0;
  border-radius: 50%;
  background: #9aa3b2;
  opacity: 1;
  transform: none;
}
input[type="checkbox"].studio-switch:checked {
  background: rgba(245,158,11,.25);
  border-color: rgba(245,158,11,.85);
}
input[type="checkbox"].studio-switch:checked::after {
  transform: translateX(1.05rem);
  background: #f59e0b;
  border: 0;
  opacity: 1;
}
input[type="checkbox"].studio-switch:indeterminate::after {
  left: 50%;
  top: 2px;
  width: calc(1.35rem - 6px);
  height: calc(1.35rem - 6px);
  border: 0;
  border-radius: 50%;
  background: #f59e0b;
  transform: translateX(-50%);
}

input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(245,158,11,.45);
  background: var(--brand-input-bg);
  cursor: pointer;
  vertical-align: middle;
  position: relative;
}
input[type="radio"]::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: transparent;
  transition: background .12s;
}
input[type="radio"]:checked {
  border-color: #f59e0b;
}
input[type="radio"]:checked::after {
  background: #f59e0b;
}
input[type="radio"]:hover { border-color: rgba(245,158,11,.75); }
input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(245,158,11,.25);
}

/* Range */
input[type="range"] {
  accent-color: var(--brand-amber);
  color-scheme: inherit;
}

/* ?? Multi-lane schedule graph + Premiere-style zoom ?? */
.sched-bay.multi { display: flex; flex-direction: column; gap: 0.3rem; }
.sched-tl {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 0.35rem;
  align-items: start;
}
.sched-tl-sides {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}
.sched-tl-side-pad {
  height: 0.85rem;
  margin-bottom: 0.15rem;
}
.sched-tl-scroll {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(245,158,11,.45) rgba(255,255,255,.04);
}
.sched-tl-scroll::-webkit-scrollbar { height: 8px; }
.sched-tl-scroll::-webkit-scrollbar-thumb {
  background: rgba(245,158,11,.4); border-radius: 999px;
}
.sched-tl-inner { min-width: 100%; }
.sched-lanes {
  display: flex; flex-direction: column; gap: 0.28rem;
  position: relative;
}
.sched-lanes > .sched-now {
  top: 0; bottom: 0; height: auto;
  z-index: 6;
}
.sched-lanes > .sched-now span {
  top: -2px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px; font-weight: 800; letter-spacing: .02em;
  padding: 2px 6px; border-radius: 5px;
}
.sched-lane-row {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 0.35rem;
  align-items: stretch;
}
.sched-lane-side {
  display: flex; flex-direction: column; justify-content: center; gap: 0.05rem;
  padding: 0.15rem 0.1rem 0.15rem 0;
  position: relative;
  height: 42px;
  box-sizing: border-box;
}
.sched-lane-side.lane-silence,
.sched-lane-side.lane-mourn { height: 42px; }
.sched-zoom-bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.2rem 0 0.1rem;
  flex-wrap: wrap;
}
.sched-zoom-btn {
  width: 26px; height: 26px; border-radius: 6px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid rgba(245,158,11,.35);
  background: rgba(245,158,11,.08); color: var(--brand-amber);
  cursor: pointer;
}
.sched-zoom-btn:disabled { opacity: 0.35; cursor: default; }
.sched-zoom-btn .material-symbols-outlined { font-size: 16px !important; }
.sched-zoom-btn:hover:not(:disabled) { background: rgba(245,158,11,.18); }
.sched-zoom-range {
  flex: 1; min-width: 7rem; max-width: 14rem; height: 4px;
  accent-color: #f59e0b; cursor: pointer;
}
.sched-zoom-label {
  font-family: var(--font-mono); font-size: 10px; color: var(--brand-amber);
  min-width: 2.6rem; text-align: right;
}
.sched-zoom-fit {
  border: 1px solid rgba(245,158,11,.3);
  background: rgba(255,255,255,.04); color: var(--brand-ink);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 0.2rem 0.45rem; border-radius: 6px; cursor: pointer;
}
.sched-zoom-fit:hover { background: rgba(245,158,11,.12); }
.sched-zoom-hint {
  font-family: var(--font-mono); font-size: 9px; color: var(--brand-muted);
  margin-left: 0.15rem;
}
.sched-grid.is-major { opacity: 0.55; }
.sched-lane-track .sched-grid { opacity: 0.28; }
.sched-lane-side strong {
  font-size: 10px; font-weight: 700; color: var(--brand-ink); line-height: 1.15;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sched-lane-side span {
  font-family: var(--font-mono); font-size: 8px; color: var(--brand-muted); line-height: 1.2;
}
.sched-lane-add {
  position: absolute; top: 0; right: 0;
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  border: 1px solid rgba(245,158,11,.35);
  background: rgba(245,158,11,.08); color: var(--brand-amber);
  cursor: pointer; padding: 0;
}
.sched-lane-add .material-symbols-outlined { font-size: 14px !important; }
.sched-lane-add:hover { background: rgba(245,158,11,.18); }
.sched-lane-empty {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  border: 0; background: transparent;
  opacity: 0;
  font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted);
  cursor: pointer;
  transition: opacity .15s ease;
}
.sched-lane-track:hover .sched-lane-empty,
.sched-lane-empty:focus-visible {
  opacity: 1;
}
.sched-lane-empty:hover {
  color: var(--brand-amber);
  background: rgba(20,25,36,.55);
}

.sched-legend .leg.lane-main::before { background: #f59e0b; }
.sched-legend .leg.lane-ads::before { background: #38bdf8; }
.sched-legend .leg.lane-alt::before { background: #a78bfa; }
.sched-legend .leg.lane-stop::before { background: #64748b; }

button.sched-block.lane-main,
.sched-block.lane-main,
button.sched-block.rich.lane-main {
  background-color: #b45309 !important;
  background-image: linear-gradient(135deg, #fbbf24, #d97706) !important;
  border-color: rgba(253,230,138,.65) !important;
  color: #111 !important;
}
button.sched-block.lane-ads,
.sched-block.lane-ads,
button.sched-block.rich.lane-ads {
  background-color: #0284c7 !important;
  background-image: linear-gradient(135deg, #38bdf8, #0369a1) !important;
  border-color: rgba(125,211,252,.85) !important;
  color: #0b1220 !important;
}
button.sched-block.lane-alt,
.sched-block.lane-alt,
button.sched-block.rich.lane-alt {
  background-color: #7c3aed !important;
  background-image: linear-gradient(135deg, #c4b5fd, #6d28d9) !important;
  border-color: rgba(196,181,253,.75) !important;
  color: var(--brand-ink) !important;
}
button.sched-block.lane-stop,
.sched-block.lane-stop,
button.sched-block.rich.lane-stop,
button.sched-block.kind-stop.lane-stop {
  background-color: #1f2937 !important;
  background-image: repeating-linear-gradient(-45deg, #374151, #374151 4px, #1f2937 4px, #1f2937 8px) !important;
  border-color: rgba(148,163,184,.5) !important;
  color: #cbd5e1 !important;
  opacity: 0.95;
}

.chip.lane-main { color: #fbbf24; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); }
.chip.lane-ads { color: #7dd3fc; background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.3); }
.chip.lane-alt { color: #c4b5fd; background: rgba(167,139,250,.12); border: 1px solid rgba(167,139,250,.3); }
.chip.lane-stop { color: #94a3b8; background: rgba(100,116,139,.15); border: 1px solid rgba(148,163,184,.3); }

.sched-type-grid.lanes-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sched-type-grid.lanes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sched-recur-box { display: flex; flex-direction: column; gap: 0.45rem; }
.sched-recur-hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brand-muted);
  line-height: 1.35;
}
.sched-type-card.recur-plays.is-on {
  border-color: rgba(56,189,248,.55);
  background: rgba(56,189,248,.1);
}
.sched-type-card.recur-interval.is-on {
  border-color: rgba(167,139,250,.55);
  background: rgba(167,139,250,.1);
}
@media (max-width: 959px) {
  .sched-catalog-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15rem 0.45rem;
  }
  .sched-side-col .sched-catalog.sticky {
    position: static;
    max-height: none;
  }
}
@media (max-width: 720px) {
  .sched-type-grid.lanes-4 { grid-template-columns: 1fr 1fr; }
  .sched-type-grid.lanes-3 { grid-template-columns: 1fr; }
  .sched-tl { grid-template-columns: 1fr; }
  .sched-tl-sides { flex-direction: row; flex-wrap: wrap; gap: 0.35rem; }
  .sched-tl-side-pad { display: none; }
  .sched-lane-row { grid-template-columns: 1fr; }
  .sched-lane-side {
    flex-direction: row; align-items: center; gap: 0.5rem; padding: 0.2rem 0.35rem;
    height: auto; min-height: 32px;
    border: 1px solid rgba(255,255,255,.06); border-radius: 8px;
    flex: 1 1 40%;
  }
  .sched-lane-add { position: static; margin-left: auto; }
  .sched-zoom-hint { display: none; }
  .sched-catalog-list { grid-template-columns: 1fr; }
  .sched-top-actions .media-upload-btn { padding: 0.35rem 0.65rem; font-size: 12px; }
  .sched-legend { display: none; }
}
.sched-type-card.is-on {
  border-color: rgba(245,158,11,.55);
  background: rgba(245,158,11,.1);
  box-shadow: 0 0 0 1px rgba(245,158,11,.2);
}
.sched-type-card.lane-ads.is-on { border-color: rgba(56,189,248,.55); background: rgba(56,189,248,.1); }
.sched-type-card.lane-alt.is-on { border-color: rgba(167,139,250,.55); background: rgba(167,139,250,.1); }
.sched-type-card.lane-stop.is-on { border-color: rgba(148,163,184,.5); background: rgba(100,116,139,.12); }

.sched-pl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.sched-pl-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem;
  text-align: left; padding: 0.65rem 0.7rem;
  border-radius: 10px; border: 1px solid rgba(32,36,45,.8);
  background: rgba(11,13,17,.55); color: inherit; font: inherit; cursor: pointer;
}
.sched-pl-card:hover { border-color: rgba(245,158,11,.4); }
.sched-pl-card.is-on {
  border-color: rgba(245,158,11,.6);
  background: rgba(245,158,11,.1);
}
.sched-pl-card.lane-ads.is-on { border-color: rgba(56,189,248,.55); background: rgba(56,189,248,.1); }
.sched-pl-card.lane-alt.is-on { border-color: rgba(167,139,250,.55); background: rgba(167,139,250,.1); }
.sched-pl-name { font-size: 12px; font-weight: 700; color: var(--brand-ink); }
.sched-pl-meta { font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted); }

/* Context menu (right-click) */
.studio-ctx {
  min-width: 200px;
  max-width: min(280px, calc(100vw - 16px));
  padding: .3rem;
  border-radius: 10px;
  border: 1px solid rgba(245,158,11,.45);
  background: var(--brand-elevated);
  color: var(--brand-text);
  box-shadow: var(--brand-shadow), 0 0 0 1px rgba(245,158,11,.08);
}
.studio-ctx-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #f0f2f5;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: .5rem .65rem;
  border-radius: 7px;
  cursor: pointer;
}
.studio-ctx-item .material-symbols-outlined {
  font-size: 18px !important;
  color: var(--brand-amber);
  flex-shrink: 0;
}
.studio-ctx-item:hover {
  background: rgba(245,158,11,.14);
  color: var(--brand-ink);
}
.studio-ctx-item.is-danger { color: #fca5a5; }
.studio-ctx-item.is-danger .material-symbols-outlined { color: #f87171; }
.studio-ctx-item.is-danger:hover {
  background: rgba(239,68,68,.14);
  color: #fecaca;
}
.studio-ctx-item:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.studio-ctx-sep {
  height: 1px;
  margin: .25rem .4rem;
  background: rgba(245,158,11,.2);
}
.fx-row-file:focus-visible,
.pl-track:focus-visible,
.pl-name-row:focus-visible,
.fx-tree-item:focus-visible {
  outline: 1px solid rgba(245,158,11,.45);
  outline-offset: -1px;
}

/* 1C-style role rights matrix */
.role-matrix-scroll {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: var(--brand-elevated);
}
.role-matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 13px;
}
.role-matrix th,
.role-matrix td {
  padding: .55rem .7rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  vertical-align: middle;
}
.role-matrix thead th {
  position: sticky;
  top: 0;
  background: #1a1e28;
  z-index: 1;
  text-align: center;
  font-weight: 500;
}
.role-matrix-obj {
  text-align: left !important;
  min-width: 220px;
}
.role-matrix-role-name {
  display: block;
  color: var(--brand-ink);
  font-size: 13px;
}
.role-matrix-role-code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--brand-muted, #8b93a7);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px;
}
.role-matrix-group td {
  background: rgba(245,158,11,.08);
  color: var(--brand-amber, #f59e0b);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .45rem .7rem;
}
.role-matrix-group-acts {
  float: right;
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem;
  text-transform: none;
  letter-spacing: 0;
}
.role-matrix-mini {
  border: 0;
  background: rgba(255,255,255,.06);
  color: #c8cdd8;
  font-size: 10px;
  padding: .15rem .4rem;
  border-radius: 6px;
  cursor: pointer;
}
.role-matrix-mini:hover {
  background: rgba(245,158,11,.18);
  color: #fde68a;
}
.role-matrix-label {
  color: var(--brand-ink);
  font-weight: 500;
}
.role-matrix-hint {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--brand-muted, #8b93a7);
  margin-top: 2px;
}
.role-matrix-cell {
  text-align: center;
  width: 110px;
}
.role-matrix-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
}
.role-matrix-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.role-matrix-check .material-symbols-outlined {
  font-size: 22px;
}
.role-matrix-check.is-on {
  color: var(--brand-amber, #f59e0b);
}
.role-matrix-check.is-locked {
  cursor: default;
  opacity: .85;
}
.role-matrix-check:not(.is-locked):hover {
  color: #fbbf24;
}
.role-matrix-row:hover td {
  background: var(--brand-wash);
}

.theme-choice {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.theme-choice-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 8.5rem;
  padding: .7rem .9rem;
  border-radius: 12px;
  border: 1px solid var(--brand-panel-line);
  background: var(--brand-input-bg);
  color: var(--brand-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.theme-choice-btn .material-symbols-outlined {
  font-size: 20px;
  color: var(--brand-amber);
}
.theme-choice-btn:hover {
  border-color: rgba(245,158,11,.45);
  color: var(--brand-ink);
}
.theme-choice-btn.is-active {
  border-color: rgba(245,158,11,.65);
  background: var(--brand-amber-soft);
  color: var(--brand-ink);
  box-shadow: inset 0 0 0 1px rgba(245,158,11,.2);
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  border-radius: 9999px;
  border: 1px solid var(--brand-soft-line);
  background: var(--brand-card);
  color: var(--brand-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s, color .15s, background .15s;
}
.theme-toggle .material-symbols-outlined { font-size: 16px; color: var(--brand-amber); }
.theme-toggle:hover {
  color: var(--brand-ink);
  border-color: rgba(245,158,11,.45);
  background: var(--brand-amber-soft);
}
@media (max-width: 900px) {
  .theme-toggle-label { display: none; }
  .theme-toggle { padding: .35rem; }
}

/* —— Light theme surface polish —— */
/* Blocks that hardcode dark-theme colours: in light they showed as dark slabs, grey buttons
   and white-on-white titles (Клуби, Розклад, Плейлисти, Налаштування, Ефір). */
html[data-theme="light"] :is(.mon-btn-secondary, .fx-tool-btn, .pl-search, .pl-chip, .pl-mode-chip,
  .sched-tz-chip) {
  background: var(--brand-input-bg);
  border-color: var(--brand-panel-line);
}
html[data-theme="light"] :is(.mon-btn-secondary, .fx-tool-btn) { color: var(--brand-ink); }
html[data-theme="light"] :is(.mon-stat-card, .vol-card, .wave-box, .settings-tabs, .sched-agenda,
  .sched-agenda-card) {
  background: var(--brand-card);
  border-color: var(--brand-panel-line);
}
html[data-theme="light"] .vol-card.is-clickable:hover { background: var(--brand-card-hover); }
html[data-theme="light"] .vol-card.online { border-color: rgba(201,120,10,.35); }
html[data-theme="light"] .sched-agenda-card:hover { box-shadow: 0 6px 16px rgba(28,35,51,.1); }
html[data-theme="light"] :is(.mon-stat-label, .settings-pane-title, .sched-agenda-title,
  .sched-agenda-head strong, .sched-agenda-main strong, .pl-card.active .pl-card-title) {
  color: var(--brand-ink);
}
/* Lane accents are pale yellows/blues made for a dark card: darken them for text on white. */
html[data-theme="light"] :is(.sched-agenda-time, .sched-agenda-chip) {
  color: color-mix(in srgb, var(--ev-accent, #fbbf24) 55%, #1c2333);
}
html[data-theme="light"] .sched-agenda-cover { color: #b91c1c; }
html[data-theme="light"] .sched-agenda-pr {
  background: color-mix(in srgb, var(--ev-accent, #fbbf24) 14%, #fff);
  color: color-mix(in srgb, var(--ev-accent, #fbbf24) 55%, #1c2333);
}
html[data-theme="light"] .sched-agenda-pr strong { color: var(--brand-ink); }
html[data-theme="light"] .settings-tab.is-on { color: var(--brand-amber); }
html[data-theme="light"] :is(.pl-mode-chip.is-on, .fx-format-chip.is-on, .fx-tree-cta-btn) {
  color: var(--brand-amber);
}
html[data-theme="light"] body {
  background: var(--brand-dark);
  color: var(--brand-text);
}
html[data-theme="light"] .studio-brand-text .text-white,
html[data-theme="light"] .studio-brand-text span:first-child {
  color: var(--brand-ink) !important;
}
html[data-theme="light"] .studio-side-card {
  background: var(--brand-card);
  border-color: var(--brand-panel-line);
}
html[data-theme="light"] .studio-flash {
  background: rgba(201,120,10,.08);
  border-color: rgba(201,120,10,.25);
  color: var(--brand-amber);
}
html[data-theme="light"] .studio-flash.error {
  background: #FEE2E2;
  color: #B91C1C;
}
html[data-theme="light"] .fx-row:hover,
html[data-theme="light"] .pl-track:hover,
html[data-theme="light"] .pl-name-row:hover,
html[data-theme="light"] .sched-slot-row:hover,
html[data-theme="light"] .dev-card:hover {
  background: var(--brand-wash);
}
html[data-theme="light"] .fx-cols,
html[data-theme="light"] .pl-side-head,
html[data-theme="light"] .fx-pathbar,
html[data-theme="light"] .fx-toolbar {
  background: var(--brand-card-hover);
  border-color: var(--brand-panel-line);
}
html[data-theme="light"] .fx-tree,
html[data-theme="light"] .pl-side,
html[data-theme="light"] .pl-main,
html[data-theme="light"] .fx-main {
  background: var(--brand-card);
}
html[data-theme="light"] .studio-ctx,
html[data-theme="light"] .fx-menu,
html[data-theme="light"] .studio-select-menu {
  background: var(--brand-elevated);
  border-color: var(--brand-border);
  box-shadow: var(--brand-shadow);
  color: var(--brand-text);
}
html[data-theme="light"] .studio-ctx-item:hover,
html[data-theme="light"] .fx-menu button:hover {
  background: var(--brand-amber-soft);
  color: var(--brand-ink);
}
html[data-theme="light"] .role-matrix-scroll,
html[data-theme="light"] .role-matrix thead th {
  background: var(--brand-card-hover);
}
html[data-theme="light"] .role-matrix-group td {
  background: rgba(201,120,10,.1);
}
html[data-theme="light"] .role-matrix-check.is-on {
  color: var(--brand-amber);
}
html[data-theme="light"] input[type="checkbox"] {
  background-color: #fff;
  border-color: rgba(201,120,10,.5);
}
html[data-theme="light"] input[type="checkbox"]:checked,
html[data-theme="light"] input[type="checkbox"]:indeterminate {
  background-color: rgba(201,120,10,.15);
}
html[data-theme="light"] .vid-stage,
html[data-theme="light"] .vid-ad-card,
html[data-theme="light"] .mon-catalog,
html[data-theme="light"] .dev-card {
  border-color: var(--brand-panel-line);
  background: var(--brand-card);
}
html[data-theme="light"] .pi-media {
  background:
    radial-gradient(90% 80% at 0% 0%, var(--brand-amber-soft), transparent 50%),
    linear-gradient(180deg, #fff 0%, #F5F7FB 100%);
  border-color: rgba(201,120,10,.2);
}
html[data-theme="light"] .sched-rundown-row.is-now,
html[data-theme="light"] .fx-row-file.is-playing {
  background: rgba(201,120,10,.1);
}
html[data-theme="light"] .pl-empty,
html[data-theme="light"] .fx-empty {
  color: var(--brand-muted);
}
html[data-theme="light"] .fx-tree-cta-btn,
html[data-theme="light"] .fx-empty-drop,
html[data-theme="light"] .fx-upload-queue {
  background: rgba(201,120,10,.06);
  border-color: rgba(201,120,10,.28);
}
html[data-theme="light"] .fx-queue-row {
  background: rgba(255,255,255,.7);
}
html[data-theme="light"] .fx-drop-veil {
  background: rgba(255,255,255,.92);
  color: var(--brand-ink);
}
html[data-theme="light"] .fx-crumb-count {
  background: rgba(201,120,10,.08);
  border-color: rgba(201,120,10,.2);
}
html[data-theme="light"] .fx-status-chip.is-air {
  color: #15803d;
  background: rgba(34,197,94,.12);
}
html[data-theme="light"] .studio-select-trigger,
html[data-theme="light"] .studio-dd-btn {
  background: var(--brand-input-bg);
  color: var(--brand-ink);
  border-color: var(--brand-border);
}
html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #C5CCD8;
}
html[data-theme="light"] ::selection {
  background: rgba(201,120,10,.2);
  color: var(--brand-amber-hover);
}

/* Studio date picker (dark theme, UA, Mon-first) */
.studio-date { position: relative; width: 100%; }
.studio-date-trigger {
  display: flex !important; align-items: center; justify-content: space-between; gap: 0.5rem;
  width: 100%; text-align: left; cursor: pointer;
  font-family: var(--font-mono); font-size: 13px; font-weight: 650;
}
.studio-date-trigger .material-symbols-outlined {
  font-size: 18px; color: var(--brand-amber); opacity: .9;
}
.studio-date-trigger.is-open {
  border-color: rgba(251,191,36,.55) !important;
  box-shadow: 0 0 0 1px rgba(251,191,36,.2);
}
.studio-date-panel {
  background: #12151c;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  padding: 0.65rem 0.7rem 0.55rem;
  color: #e8eaed;
}
.studio-date-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; margin-bottom: 0.45rem; padding: 0 0.15rem;
}
.studio-date-head strong {
  font-size: 13px; font-weight: 750; text-transform: lowercase;
  letter-spacing: 0.01em;
}
.studio-date-nav { display: flex; gap: 0.15rem; }
.studio-date-nav button {
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--brand-muted); cursor: pointer; padding: 0;
}
.studio-date-nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.studio-date-nav .material-symbols-outlined { font-size: 20px; }
.studio-date-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.15rem;
  margin-bottom: 0.25rem;
}
.studio-date-weekdays span {
  text-align: center; font-size: 10px; font-weight: 700;
  color: var(--brand-muted); padding: 0.2rem 0;
}
.studio-date-weekdays span.is-weekend { color: #fbbf24; opacity: .75; }
.studio-date-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.15rem;
}
.studio-date-day {
  aspect-ratio: 1; min-height: 2rem;
  display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: #e5e7eb;
  font-family: var(--font-mono); font-size: 12px; font-weight: 650;
  cursor: pointer; padding: 0;
}
.studio-date-day:hover { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.2); }
.studio-date-day.is-out { color: rgba(148,163,184,.4); }
.studio-date-day.is-weekend { color: #fcd34d; }
.studio-date-day.is-weekend.is-out { color: rgba(252,211,77,.35); }
.studio-date-day.is-today:not(.is-on) {
  border-color: rgba(251,191,36,.45);
}
.studio-date-day.is-on {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #111 !important;
  border-color: rgba(253,230,138,.5);
  font-weight: 800;
}
.studio-date-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.45rem; padding-top: 0.35rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.studio-date-link {
  border: 0; background: transparent; cursor: pointer;
  color: #fbbf24; font-size: 12px; font-weight: 700;
  padding: 0.25rem 0.35rem; border-radius: 6px;
}
.studio-date-link:hover { background: rgba(251,191,36,.1); }
html[data-theme="light"] .studio-date-panel {
  background: #fff;
  border-color: var(--brand-border);
  box-shadow: 0 14px 32px rgba(15,23,42,.12);
  color: var(--brand-ink);
}
html[data-theme="light"] .studio-date-day { color: var(--brand-ink); }
html[data-theme="light"] .studio-date-day.is-out { color: #94a3b8; }
html[data-theme="light"] .studio-date-day.is-weekend { color: #b45309; }

/* Location scope: city > club hierarchy */
.studio-loc-scope {
  display: flex; flex-direction: column; gap: 0.55rem;
  margin-top: 0.35rem;
}
.studio-loc-scope.is-select {
  margin-top: 0;
}
.studio-loc-scope.is-browse {
  flex: 1;
  min-width: 0;
  max-width: 320px;
  margin: 0;
}
.studio-loc-scope.is-browse .studio-loc-scope-field > span {
  display: none;
}
.studio-loc-scope-field {
  display: flex; flex-direction: column; gap: 0.3rem; min-width: 0;
}
.studio-loc-scope-field > span {
  font-size: 10px; font-weight: 750; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brand-muted);
}
.studio-loc-scope-hint {
  margin: 0; font-size: 11px; color: var(--brand-muted);
  padding: 0.15rem 0.1rem 0;
}

.sched-view-scope {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  margin: 0 0 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}
.sched-view-scope-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-muted);
  white-space: nowrap;
}
.sched-view-scope-kicker .material-symbols-outlined {
  font-size: 18px;
  color: var(--brand-amber, #f59e0b);
}
.sched-view-select {
  min-width: 12rem;
  max-width: 18rem;
  flex: 1 1 12rem;
}

.slot-place-first .studio-loc-scope.is-select {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.55rem 0.65rem;
}
.slot-place-first .studio-loc-scope-hint {
  grid-column: 1 / -1;
}

.sched-agenda-place-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  font-family: var(--font-mono, monospace);
  line-height: 1.2;
  color: #111 !important;
  background: var(--brand-amber, #f59e0b);
}
.sched-agenda-place {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 750;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.02em;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
  color: var(--brand-muted);
}
.sched-agenda-place.is-net { color: #94a3b8; }
.sched-agenda-place.is-city {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.08);
}
.sched-agenda-place.is-club {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.08);
}
.sched-agenda-group {
  grid-column: 1 / -1;
  margin: 0.55rem 0 0.15rem;
  padding: 0.2rem 0.15rem;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-muted);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sched-agenda-group.is-local { color: #fbbf24; border-color: rgba(251, 191, 36, 0.2); }
.sched-agenda-group.is-net { color: #94a3b8; }
.sched-side-h-em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
  color: var(--brand-amber, #f59e0b);
}
.slot-place-first {
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.05);
}

.sched-fetch-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-amber);
  opacity: .7;
  animation: sched-fetch-pulse 0.9s ease-in-out infinite;
}
@keyframes sched-fetch-pulse {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1); }
}

/* Full-screen video watch modal (library preview) */
.vid-watch {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.vid-watch-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(6px);
}
.vid-watch-card {
  position: relative;
  z-index: 1;
  width: min(1120px, 96vw);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0e14;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  animation: fx-player-in .18s ease-out;
}
.vid-watch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}
.vid-watch-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.vid-watch-title > .material-symbols-outlined {
  font-size: 22px;
  color: var(--brand-amber);
  flex-shrink: 0;
}
.vid-watch-title strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: var(--brand-ink);
  line-height: 1.25;
}
.vid-watch-title span {
  display: block;
  font-size: 11px;
  color: var(--brand-muted);
  margin-top: 0.1rem;
}
.vid-watch-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--brand-muted);
  cursor: pointer;
  flex-shrink: 0;
}
.vid-watch-x:hover {
  color: var(--brand-ink);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}
.vid-watch-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #000;
  display: grid;
  place-items: center;
}
.vid-watch-player {
  width: 100%;
  max-height: min(72vh, 720px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}
.vid-watch-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.vid-watch-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 10, 16, 0.96);
}
.vid-watch-bar .fx-player-seek {
  flex: 1 1 auto;
  min-width: 0;
}
.vid-watch-bar .fx-player-time {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .vid-watch { padding: 0.5rem; }
  .vid-watch-card { width: 100%; max-height: 96vh; border-radius: 12px; }
  .vid-watch-player { max-height: 58vh; }
}

/* Ads where: multi-club hierarchy (місто → клуби) */
.ads-where { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }
.ads-where-modes { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ads-where-mode {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem 0.7rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03); color: var(--brand-muted, #94a3b8);
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.ads-where-mode .material-symbols-outlined { font-size: 16px; }
.ads-where-mode.is-on {
  border-color: rgba(248,113,113,0.45);
  background: rgba(127,29,29,0.28);
  color: #fecaca;
}
/* Override .sched-form label { flex-direction: column } */
.sched-form .ads-where-search,
.ads-where-search {
  display: flex; flex-direction: row; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.55rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
}
.ads-where-search .material-symbols-outlined { font-size: 16px; opacity: 0.7; }
.ads-where-search input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  color: var(--brand-ink, #e2e8f0); font-size: 12px; outline: none;
}
.ads-where-list {
  max-height: 260px; overflow: auto; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.18);
}
.ads-where-city + .ads-where-city { border-top: 1px solid rgba(255,255,255,0.05); }
.sched-form .ads-where-row,
.ads-where-row {
  display: flex; flex-direction: row; align-items: center; gap: 0.2rem;
  padding: 0.28rem 0.4rem 0.28rem 0.3rem;
  font-size: 12px; color: var(--brand-muted, #94a3b8);
  min-width: 0;
}
.ads-where-row.is-on { color: #fecaca; background: rgba(127,29,29,0.14); }
.ads-where-row .material-symbols-outlined { font-size: 15px; flex-shrink: 0; }
.ads-where-twist {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0; padding: 0;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--brand-muted, #94a3b8); cursor: pointer;
}
.ads-where-twist:hover { color: #fff; background: rgba(255,255,255,0.06); }
.ads-where-twist .material-symbols-outlined { font-size: 18px; }
.ads-where-twist.is-empty { width: 22px; height: 22px; pointer-events: none; }
.sched-form .ads-where-check,
.ads-where-check {
  display: flex; flex-direction: row; align-items: center; gap: 0.4rem;
  flex: 1; min-width: 0; cursor: pointer; margin: 0;
}
.ads-where-check em,
.ads-where-row.is-venue em {
  font-style: normal; font-weight: 600; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--brand-ink, #e2e8f0);
}
.ads-where-check small,
.ads-where-row.is-venue small {
  font-size: 10px; opacity: 0.65; flex-shrink: 0; font-weight: 500;
}
.ads-where-check input,
.ads-where-row.is-venue input { accent-color: #f87171; flex-shrink: 0; margin: 0; }
.ads-where-kids {
  position: relative;
  margin: 0 0 0.15rem 0.85rem;
  padding: 0.05rem 0 0.15rem 0.65rem;
  border-left: 1px solid rgba(248,113,113,0.22);
}
.sched-form .ads-where-row.is-venue,
.ads-where-row.is-venue {
  position: relative;
  padding: 0.26rem 0.45rem 0.26rem 0.15rem;
  cursor: pointer; border-radius: 6px;
}
.ads-where-branch {
  position: absolute; left: -0.65rem; top: 50%;
  width: 0.55rem; height: 1px;
  background: rgba(248,113,113,0.28);
  pointer-events: none;
}
.ads-where-empty { padding: 0.75rem; font-size: 12px; color: var(--brand-muted); }
.ads-where-screens { display: flex; flex-direction: column; gap: 0.35rem; }
.ads-where-screens-lab { font-size: 10px; font-weight: 650; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--brand-muted); }
.ads-where-screen-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ads-where-chip {
  padding: 0.28rem 0.55rem; border-radius: 999px; font-size: 11px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1); background: transparent;
  color: var(--brand-muted); cursor: pointer;
}
.ads-where-chip.is-on {
  border-color: rgba(248,113,113,0.4); background: rgba(127,29,29,0.25); color: #fecaca;
}
.ads-where-hint {
  display: flex; align-items: flex-start; gap: 0.3rem; margin: 0;
  font-size: 11px; color: var(--brand-muted); line-height: 1.35;
}
.ads-where-hint .material-symbols-outlined { font-size: 14px; margin-top: 1px; }
.sched-studio.is-focus-ads .sched-add-ads.media-upload-btn {
  border-color: rgba(248,113,113,0.4);
  background: rgba(127,29,29,0.35);
  color: #fecaca;
}
