/* Apollo Studio Master ? local theme (no CDN) */
:root {
  --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-ok: #34d399;
  --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);
}

* { 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: #fff !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: rgba(11,13,17,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(32,36,45,.6);
  overflow: hidden;
}
.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 {
  display: flex; align-items: center; gap: 0.35rem;
  flex-shrink: 0;
}
.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-dark);
  border-right: 1px solid rgba(32,36,45,.6);
}
.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;
}
.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: #fff; 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 rgba(32,36,45,.6);
  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 rgba(32,36,45,.8);
  background: transparent; color: var(--brand-dim); font-size: 12px; font-weight: 500;
  cursor: pointer; text-decoration: none;
}
.studio-btn-ghost:hover {
  color: #fff; border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.08);
}
.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);
}
.studio-avatar {
  width: 32px; height: 32px; border-radius: 9999px;
  display: grid; place-items: center;
  background: var(--brand-card); border: 1px solid var(--brand-border);
  font-size: 12px; font-weight: 600; color: #fff;
}
.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: #0b0d11; border: 1px solid rgba(245,158,11,.45);
  color: #fff; 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: #fff; }
.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 rgba(32,36,45,.6);
  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; }

/* Hero */
.hero-card {
  position: relative; overflow: hidden;
  background: var(--brand-card);
  border: 1px solid rgba(32,36,45,.8);
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  box-shadow: 0 25px 50px rgba(0,0,0,.35);
}
.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: #fff; }
.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: #fff;
}
.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;
  background: radial-gradient(700px 360px at 30% 0%, rgba(245,158,11,.08), transparent), var(--brand-dark);
}
.login-card {
  width: min(420px, 100%);
  background: var(--brand-card);
  border: 1px solid rgba(32,36,45,.8);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}

.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: rgba(32,36,45,.4) !important; }
.border-brand-border\/60 { border-color: rgba(32,36,45,.6) !important; }
.border-brand-amber\/25 { border-color: rgba(245,158,11,.25) !important; }
.text-white\/80 { color: rgba(255,255,255,.8) !important; }
.text-white\/90 { color: rgba(255,255,255,.9) !important; }
.hover\:bg-brand-amber-hover:hover { background-color: var(--brand-amber-hover) !important; }
.hover\:text-white:hover { color: #fff !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: hidden;
  background:
    radial-gradient(600px 180px at 15% 40%, rgba(245,158,11,.12), transparent),
    linear-gradient(120deg, #12151c 0%, #0b0d11 55%, #151a24 100%);
  border: 1px solid rgba(32,36,45,.8);
}
.loc-hero-inner { padding: 1.5rem 1.75rem; }
.tab-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem; border-radius: 9999px;
  border: 1px solid rgba(32,36,45,.8);
  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 rgba(32,36,45,.8);
  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: #fff;
}
.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: #fff;
  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: #fff;
  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: #fff;
}
.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: #fff;
}
.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: #fff; 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: #fff;
  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: #fff;
  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: #fff; 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.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: #fff; 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;
  margin-bottom: .65rem;
}
.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: #fff; }
.dev-card-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-amber);
  letter-spacing: .03em;
}
.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); }

.venue-add-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px dashed rgba(245,158,11,.35);
  background: transparent;
  color: var(--brand-amber);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: .45rem .75rem;
  border-radius: 8px;
  cursor: pointer;
}
.venue-add-btn:hover { background: rgba(245,158,11,.08); }
.venue-add-btn .material-symbols-outlined { font-size: 16px !important; }

.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: #fff; }
.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; }
}
.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.online { border-color: rgba(245,158,11,.25); }
.vol-card.is-alarm { border-color: rgba(248,113,113,.45); }
.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.65rem 0.9rem; border-bottom: 1px solid rgba(32,36,45,.7);
}
.fx-tree-head h2 { margin: 0; font-size: 12px; font-weight: 600; color: #fff; }
.fx-tree-head span { font-family: var(--font-mono); font-size: 11px; color: var(--brand-muted); }
.fx-tree-nav { overflow: auto; flex: 1; min-height: 0; padding: 0.3rem 0; }
.fx-tree-item {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.7rem 0.35rem calc(0.55rem + var(--d, 0) * 0.8rem);
  color: var(--brand-dim); text-decoration: none; font-size: 12px;
  border-left: 2px solid transparent;
}
.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-item:hover { background: rgba(255,255,255,.025); color: #fff; }
.fx-tree-item.active {
  background: rgba(245,158,11,.12); color: #fff;
  border-left-color: var(--brand-amber);
}
.fx-main {
  min-height: 0; height: 100%;
  overflow: hidden; display: flex; flex-direction: column;
}
.fx-pathbar {
  flex: 0 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  padding: 0.55rem 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-sep { opacity: .45; }
.fx-here { color: #fff; font-weight: 600; }
.fx-search {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.28rem 0.55rem; border-radius: 8px;
  background: var(--brand-dark); border: 1px solid var(--brand-border);
  min-width: 160px; max-width: 260px; flex: 0 1 220px;
}
.fx-search .material-symbols-outlined { font-size: 17px; color: var(--brand-muted); }
.fx-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: #fff; font-size: 12px;
}
.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: #fff; }
.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: #fff; 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);
}
.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;
}
.fx-modal[hidden] { display: none !important; }
.fx-modal-card {
  width: min(400px, 100%);
  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: #fff;
}
.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-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.4rem;
  padding: 1.1rem 0.85rem; border-radius: 10px;
  border: 1px dashed rgba(245,158,11,.35);
  background: rgba(245,158,11,.05); text-align: center;
}
.fx-upload-drop .material-symbols-outlined {
  font-size: 28px; color: var(--brand-amber);
}
.fx-upload-drop strong {
  font-size: 12px; color: #fff; font-weight: 600;
}
.fx-main.is-drag .fx-body { position: relative; }
.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: #fff; pointer-events: none;
}
.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-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; gap: 0.3rem;
  margin-left: auto;
  font-size: 11px; color: var(--brand-muted); font-family: var(--font-mono); cursor: pointer;
}
.fx-check-all input { accent-color: var(--brand-amber); }
.fx-sel { font-family: var(--font-mono); font-size: 11px; color: var(--brand-muted); }
.fx-move {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
}
.fx-move[hidden] { display: none !important; }
.fx-move-select { max-width: 200px; }
.fx-cols {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 28px 28px 36px minmax(0, 1.5fr) 90px 64px 72px minmax(0, .85fr);
  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-body {
  flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain;
  position: relative;
}
.fx-row {
  display: grid;
  grid-template-columns: 28px 28px 36px minmax(0, 1.5fr) 90px 64px 72px minmax(0, .85fr);
  gap: 0.45rem; align-items: center;
  padding: 0.4rem 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: #fff; }
.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: #fff; }
.fx-row-folder .fx-row-main {
  display: contents; color: inherit; text-decoration: none;
}
.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; }
.fx-art .material-symbols-outlined {
  position: absolute; font-size: 16px; color: var(--brand-amber); opacity: 0;
}
.fx-art.no-cover .material-symbols-outlined,
.fx-art:not(:has(img)) .material-symbols-outlined { opacity: 1; }
.fx-row-main-text { min-width: 0; }
.fx-row-name {
  display: block; color: #fff; 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 {
  font-family: var(--font-mono); font-size: 11px; color: var(--brand-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.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: wrap; gap: 0.2rem; justify-content: flex-end;
}
.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 {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 220px; padding: 2rem 1rem; text-align: center;
  font-size: 13px; color: var(--brand-muted);
}
.fx-empty .material-symbols-outlined {
  font-size: 40px; color: var(--brand-amber); opacity: .7;
}
.fx-empty p { margin: 0; max-width: 280px; line-height: 1.4; }
.fx-empty strong { color: #fbbf24; }
.fx-player {
  flex: 0 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.65rem;
  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));
}
.fx-player[hidden] { display: none !important; }
.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: #fff; }
.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: #fff; 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 {
    grid-template-columns: 28px 28px 32px minmax(0, 1fr) 56px;
  }
  .fx-col-type, .fx-col-size, .fx-col-use,
  .fx-row-type, .fx-row-size, .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.45rem 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: #fff; }
.pl-bar-hint {
  font-size: 11px; font-family: var(--font-mono); color: var(--brand-muted);
}
.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);
}
.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: #fff; 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: #0b0d11; border: 1px solid rgba(245,158,11,.45); border-radius: 8px;
  color: #fff; padding: 0.45rem 0.7rem; font-size: 12px; outline: none; min-width: 0; color-scheme: dark;
}
.media-input:hover { border-color: rgba(245,158,11,.65); }
.media-input:focus { border-color: rgba(245,158,11,.85); box-shadow: 0 0 0 2px rgba(245,158,11,.12); }

/* 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: #0b0d11;
  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: #0b0d11;
  color: #fff;
}
.media-input[type="time"],
.media-input[type="date"] {
  min-height: 2.55rem; min-width: 0; color: #fff !important; color-scheme: dark;
}
.media-input[type="time"]::-webkit-calendar-picker-indicator,
.media-input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.85; cursor: pointer; 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: 1.25rem; }
.sched-top { display: flex; flex-direction: column; gap: 0.85rem; }
.sched-top-main {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.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-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: #fff; 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: 1.25rem; align-items: start;
}
.sched-workspace.single { grid-template-columns: 1fr; }
@media (min-width: 1180px) {
  .sched-workspace:not(.single) { grid-template-columns: minmax(0, 1fr) 340px; }
}
.sched-main-col, .sched-side-col { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }

.sched-canvas, .sched-list-panel, .sched-live-card, .sched-inspector, .sched-silence-card,
.sched-rundown-panel {
  background: var(--brand-card);
  border: 1px solid rgba(32,36,45,.85);
  border-radius: 18px;
  overflow: hidden;
}
.sched-rundown {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.55rem;
  padding: 0.65rem 0.85rem 0.9rem;
  max-height: 260px;
  overflow: auto;
}
.sched-rundown-hour {
  background: #171a22;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
  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: 3rem minmax(0, 1.2fr) minmax(0, 1fr) 2.5rem;
  gap: 0.35rem; align-items: baseline;
  font-size: 11px; padding: 0.2rem 0.25rem; border-radius: 6px;
}
.sched-rundown-row.is-now {
  background: rgba(245,158,11,.14);
  outline: 1px solid rgba(245,158,11,.35);
}
.sched-rundown-row.is-ad {
  background: rgba(56,189,248,.06);
}
.sched-rundown-row.is-ad.is-now {
  background: rgba(245,158,11,.14);
}
.sched-rundown-time { font-family: var(--font-mono); color: var(--brand-muted); font-weight: 700; }
.sched-rundown-title {
  color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.35rem; min-width: 0;
}
.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-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 { grid-template-columns: 3rem minmax(0, 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.55rem;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(32,36,45,.7);
}
.sched-canvas .sched-canvas-head h2 { font-size: 14px !important; }
.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.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.55rem 0.85rem 0.75rem; 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: 112px; }
.sched-lane-track.compact { height: 56px; }
.sched-lane-track.mid { height: 40px; }
.sched-lane-track.slim { height: 36px; }
.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: 9px; font-weight: 700;
  opacity: .9; color: inherit; line-height: 1.1;
}
.sched-block-name {
  font-size: 11px; font-weight: 800; color: inherit;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.15;
}
.sched-block-meta { font-family: var(--font-mono); font-size: 9px; opacity: .85; color: inherit; }
.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: space-between;
  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;
  background-image: 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:hover { filter: brightness(1.08); }

button.sched-silence-pill-mark,
.sched-silence-pill-mark {
  position: absolute; top: 6px; z-index: 3;
  height: 24px; min-width: 40px; max-width: 72px;
  padding: 0 0.35rem; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(248,113,113,.22) !important;
  background-image: none !important;
  border: 1px solid rgba(248,113,113,.5);
  color: #fecaca !important;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  transform: translateX(-50%);
}
.sched-silence-pill-mark:hover { background: rgba(248,113,113,.35) !important; }
.sched-silence-pill-mark.is-now {
  background: rgba(248,113,113,.45) !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: #171a22 !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: #fff; 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: #fff; 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: #fff; 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: #fff; 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: #fff; }
.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.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; }

/* ?? 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 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: #fff; 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: #fff;
  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.15rem;
  padding: 0.5rem 0.7rem; 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: 7.5rem;
}
.slot-pl-chip strong { font-size: 12px; font-weight: 700; color: #fff; }
.slot-pl-chip span { font-family: var(--font-mono); font-size: 9px; 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-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: #fff; 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-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: #fff;
}

.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: #fff;
}
.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: #fff; }
.mourn-club-row:has(input:checked) {
  color: #fff; 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: #fff; }
.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: #fff;
}
.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 ? one scroll: track list in the middle */
.pl-page {
  display: flex; flex-direction: column; gap: 0.75rem;
  height: calc(100vh - 64px - 3.5rem);
  min-height: 0; overflow: hidden;
}
.pl-page > .loc-hero { flex: 0 0 auto; }
.pl-create {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
}
.pl-create .media-input { min-width: 140px; }
.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: #fff; }
.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-name-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.7rem 1rem; border-bottom: 1px solid rgba(32,36,45,.45);
  color: inherit; text-decoration: none;
}
.pl-name-row:hover { background: rgba(255,255,255,.02); }
.pl-name-row.active {
  background: rgba(245,158,11,.1);
  box-shadow: inset 2px 0 0 var(--brand-amber);
}
.pl-name-row.onair .pl-name-title { color: #86efac; }
.pl-name-title {
  font-weight: 600; color: #fff; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-name-meta {
  font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted); margin-top: 0.15rem;
}
.pl-live {
  flex: 0 0 auto; padding: 0.12rem 0.4rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  background: rgba(52,211,153,.15); color: #86efac; border: 1px solid rgba(52,211,153,.35);
}
.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-main-head {
  flex: 0 0 auto;
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid rgba(32,36,45,.7);
}
.pl-main-head h2 {
  margin: 0; font-family: var(--font-display), sans-serif; font-size: 1.35rem;
  font-weight: 600; color: #fff; letter-spacing: -0.02em;
}
.pl-main-head p { margin: 0.25rem 0 0; font-size: 11px; font-family: var(--font-mono); color: var(--brand-muted); }
.pl-main-head em { font-style: normal; color: #86efac; }
.pl-main-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.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 40px minmax(0, 1fr) auto auto;
  align-items: center; gap: 0.65rem;
  padding: 0.55rem 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 .material-symbols-outlined,
.pl-track-art:not(:has(img)) .material-symbols-outlined { opacity: 1; }
.pl-track-title {
  color: #fff; 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);
}
.pl-empty.tall { padding: 4rem 1.1rem; }
@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; }
}
@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%; }
}

/* ?? Studio dropdown (custom select) ?? */
.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.35rem;
  padding: .45rem .55rem .45rem .7rem;
  border-radius: 8px;
  border: 1px solid rgba(245,158,11,.45);
  background: #0b0d11;
  color: #fff;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  appearance: none;
}
.studio-dd-trigger:hover { border-color: rgba(245,158,11,.7); }
.studio-dd.is-open .studio-dd-trigger {
  border-color: rgba(245,158,11,.9);
  box-shadow: 0 0 0 2px rgba(245,158,11,.14);
}
.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); }
.studio-dd-chevron {
  font-size: 18px !important;
  color: var(--brand-amber);
  transition: transform .15s;
  flex-shrink: 0;
}
.studio-dd.is-open .studio-dd-chevron { transform: rotate(180deg); }
.studio-dd-menu {
  position: absolute;
  z-index: 80;
  left: 0; right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: .3rem;
  list-style: none;
  border-radius: 10px;
  border: 1px solid rgba(245,158,11,.35);
  background: #0b0d11;
  box-shadow: 0 12px 32px rgba(0,0,0,.55);
  max-height: min(280px, 50vh);
  overflow: auto;
}
.studio-dd-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #e8eaed;
  font: inherit;
  font-size: 12px;
  padding: .55rem .65rem;
  border-radius: 7px;
  cursor: pointer;
}
.studio-dd-option:hover {
  background: rgba(245,158,11,.14);
  color: #fff;
}
.studio-dd-option.is-on {
  background: rgba(245,158,11,.22);
  color: #fbbf24;
  font-weight: 600;
}
.studio-dd-option:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ?? Switches / checkboxes / radios (site-wide) ?? */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 2.45rem;
  height: 1.35rem;
  margin: 0;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(245,158,11,.4);
  background: #12151c;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
  transition: background .15s, border-color .15s;
}
input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: calc(1.35rem - 6px);
  height: calc(1.35rem - 6px);
  border-radius: 50%;
  background: #9aa3b2;
  transition: transform .15s, background .15s;
}
input[type="checkbox"]:hover { border-color: rgba(245,158,11,.7); }
input[type="checkbox"]:checked {
  background: rgba(245,158,11,.25);
  border-color: rgba(245,158,11,.85);
}
input[type="checkbox"]:checked::after {
  transform: translateX(1.05rem);
  background: #f59e0b;
}
input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(245,158,11,.25);
}

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: #0b0d11;
  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: #f59e0b;
  color-scheme: dark;
}

/* ?? Multi-lane schedule graph + Premiere-style zoom ?? */
.sched-bay.multi { display: flex; flex-direction: column; gap: 0.45rem; }
.sched-tl {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
}
.sched-tl-sides {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.sched-tl-side-pad {
  height: 0.95rem;
  margin-bottom: 0.25rem;
}
.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.4rem; }
.sched-lane-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: stretch;
}
.sched-lane-side {
  display: flex; flex-direction: column; justify-content: center; gap: 0.1rem;
  padding: 0.25rem 0.15rem 0.25rem 0;
  position: relative;
  height: 56px;
  box-sizing: border-box;
}
.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: #fff;
  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: 11px; font-weight: 700; color: #fff; line-height: 1.2;
}
.sched-lane-side span {
  font-family: var(--font-mono); font-size: 9px; color: var(--brand-muted); line-height: 1.25;
}
.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;
  font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted);
  cursor: pointer;
}
.sched-lane-empty:hover { color: var(--brand-amber); background: rgba(245,158,11,.04); }
.sched-now.thin span { display: none; }
.sched-now.thin {
  width: 2px; padding: 0; background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,.5);
}
.sched-now-caption {
  font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted);
  padding: 0.15rem 0 0.25rem;
}

.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: #fff !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: 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: 36px;
    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-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: #fff; }
.sched-pl-meta { font-family: var(--font-mono); font-size: 10px; color: var(--brand-muted); }
