/* Shared studio chrome for music + video tools.
   Keeps Bizzit cream/brand defaults. Optional dark via body.studio-dark. */

.studio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
.studio-bar .crumbs { margin: 0; }
.studio-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(420px, 1fr);
  gap: 16px;
  align-items: start;
}
.studio-tools {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.04));
  min-width: 0;
}
.studio-canvas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  position: sticky;
  top: 10px;
  max-height: calc(100vh - 72px);
}
.studio-stage-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.studio-preview {
  background: #0f1115;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #1c1f26;
  flex: 0 0 auto;
}
.studio-preview .player {
  margin: 0;
  border-radius: 0;
  background: transparent;
  min-height: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(42vh, 420px);
}
.studio-preview .cover-pack,
.studio-preview .yt-pack {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background: #151820;
  color: #f2f4f7;
}
.studio-preview .cover-title,
.studio-preview .pack-title { color: #f2f4f7; }
.studio-timeline {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px 12px;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.04));
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.studio-library {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px 10px;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.04));
  flex: 0 0 auto;
  max-height: 140px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.scenes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  flex: 0 0 auto;
}
.tl-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 160px);
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.tl-chip {
  display: grid;
  gap: 2px;
  text-align: left;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfaf7, #f3f1ec);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  min-height: 64px;
  color: var(--ink);
}
.tl-chip:hover,
.tl-chip.is-active {
  border-color: color-mix(in srgb, var(--acc, #c45c26) 55%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc, #c45c26) 25%, transparent);
}
.tl-chip-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--acc, #c45c26);
}
.tl-chip-meta {
  font-size: 11px;
  color: var(--muted);
}
.tl-chip-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.scenes-panel {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  max-height: none;
}
.music-page .scenes-panel,
.video-page .scenes-panel { max-height: none; }

.shot-sum-line {
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-canvas { position: static; max-height: none; }
  .studio-stage-main { overflow: visible; }
  .studio-library { max-height: none; }
}

/* Dark studio — uses site theme tokens (warm charcoal, no blue). Toggle is in the header. */
html[data-theme="dark"] .studio-tools,
html[data-theme="dark"] .studio-timeline,
html[data-theme="dark"] .studio-library,
html[data-theme="dark"] .shot,
html[data-theme="dark"] .cover-pack,
html[data-theme="dark"] .yt-pack {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}
html[data-theme="dark"] .studio-preview {
  background: #0c0b0a;
  border-color: #2a2824;
}
html[data-theme="dark"] .studio-preview .cover-pack,
html[data-theme="dark"] .studio-preview .yt-pack {
  background: #151310;
  border-top-color: rgba(243, 239, 230, 0.08);
  color: var(--ink);
}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: #121110;
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"] .tl-chip {
  background: #121110;
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .tl-chip:hover,
html[data-theme="dark"] .tl-chip.is-active {
  border-color: color-mix(in srgb, var(--acc, #e25d2a) 55%, var(--line));
}
html[data-theme="dark"] .jobs-head,
html[data-theme="dark"] h1,
html[data-theme="dark"] .pack-title,
html[data-theme="dark"] .cover-title,
html[data-theme="dark"] .shot-sum-line { color: var(--ink); }
html[data-theme="dark"] .muted-line,
html[data-theme="dark"] .lede,
html[data-theme="dark"] .studio-kicker,
html[data-theme="dark"] .crumbs,
html[data-theme="dark"] .job-list .job-status { color: var(--muted); }
html[data-theme="dark"] .music-seo,
html[data-theme="dark"] .video-seo { background: var(--paper); }
html[data-theme="dark"] .video-page .shot[open] > summary {
  background: #1c1b19;
  border-bottom-color: var(--line);
}

