:root {
  --bg: #111;
  --card: #1c1c1c;
  --ink: #f3f0ea;
  --muted: #9a9488;
  --line: #2e2c29;
  --accent: #e8c36a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 system-ui, sans-serif;
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 4;
}
h1, h2 { margin: 0 0 4px; font-size: 18px; }
.muted { color: var(--muted); }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
#edit-why {
  width: 240px;
  min-width: 160px;
  max-width: 280px;
  font-size: 13px;
  font-weight: 400;
}
.render-progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 220px;
  max-width: 360px;
}
#status { font-size: 13px; text-align: right; }
.render-progress {
  width: 100%;
  height: 6px;
  background: #2a2824;
  border-radius: 99px;
  overflow: hidden;
}
.render-progress-bar { height: 100%; }
#render-progress-fill,
#job-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}
#render-progress-fill.is-indeterminate,
#job-progress-fill.is-indeterminate {
  transition: none;
  animation: render-indeterminate 1.4s ease-in-out infinite;
}
@keyframes render-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}
button {
  background: var(--accent);
  color: #111;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}
button.secondary { background: #3a3732; color: var(--ink); }
button.tiny { padding: 4px 8px; font-size: 12px; font-weight: 500; }
button.danger { background: #5a2a2a; color: #f3d0d0; }
a.home-link { color: var(--accent); font-size: 13px; }
.strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 20px 0;
}
.strip-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.photo-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.photo-add { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; }
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: #161616;
  position: sticky;
  top: 72px;
  z-index: 5;
}
.pager strong { font-size: 15px; }
.lightbox.photos .lightbox-bar { border-bottom-color: #7ec8e3; }
.lightbox.beats .lightbox-bar { border-bottom-color: var(--accent); }
.lightbox-title { font-weight: 700; }
.lightbox-nav-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.lightbox-nav-wrap span { font-size: 11px; color: var(--muted); }
.sheet {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.sheet a, .sheet span, .sheet button {
  width: 110px;
  flex: 0 0 auto;
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 400;
  cursor: pointer;
}
.sheet img { width: 110px; height: 82px; object-fit: cover; border-radius: 4px; display: block; }
.sheet .used { outline: 2px solid var(--accent); border-radius: 4px; }
.sheet .unused { opacity: 0.7; }
.sheet .open { outline-color: #7ec8e3; }
.sheet .close { outline-color: #d48ad4; }
.sheet .open.close { outline-color: var(--accent); }
.sheet .viewing { outline: 2px solid #fff; }
.beat.current { background: #1a1a16; outline: 1px solid var(--accent); }
.beat img.hero { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 20;
  display: grid;
  grid-template-rows: auto 1fr;
}
.lightbox[hidden] { display: none; }
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.lightbox-modes { display: flex; gap: 6px; }
.lightbox-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  min-height: 0;
}
.lightbox-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  min-height: 0;
}
.lightbox-photo img { object-fit: contain; }
.lightbox-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 22px;
  flex: 0 0 auto;
}
.lightbox-meta {
  overflow: auto;
  padding: 16px 20px 24px;
  border-left: 1px solid var(--line);
  background: #141414;
}
.lightbox-meta h2 { font-size: 16px; margin: 0 0 4px; }
.inspector-lede { font-size: 12px; color: var(--muted); margin: 0 0 10px; word-break: break-all; }
.inspector-hint { margin-top: 16px; }
.shared-still { margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #101010; }
.shared-still p { margin: 0 0 6px; }
.inspector-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 10px 0;
  background: var(--card);
}
.inspector-section > summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 13px;
  list-style: none;
}
.inspector-section > summary::-webkit-details-marker { display: none; }
.inspector-section > summary::after {
  content: "▸";
  float: right;
  color: var(--muted);
}
.inspector-section[open] > summary::after { content: "▾"; }
.inspector-body { padding: 0 12px 12px; }
.phone-frame {
  aspect-ratio: 9 / 16;
  height: min(72vh, 720px);
  max-width: min(100%, 405px);
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  flex: 0 1 auto;
}
.phone-frame img,
.photo-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: none;
  max-height: none;
  border-radius: 0;
}
.photo-stage {
  max-height: calc(100vh - 90px);
  max-width: calc(100% - 96px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-stage img { max-height: calc(100vh - 90px); width: auto; height: auto; max-width: 100%; border-radius: 8px; }
.photo-catalog-tools .photo-ref-list { max-height: 220px; overflow: auto; }
.lightbox-meta .line {
  background: var(--card);
  border-radius: 6px;
  padding: 10px;
  margin: 8px 0;
  white-space: pre-wrap;
}
@media (max-width: 800px) {
  .beat { grid-template-columns: 1fr; }
  .lightbox-body { grid-template-columns: 1fr; }
  .photo-stage img { max-width: 100%; max-height: 45vh; }
  .phone-frame { height: 45vh; }
}
.beat-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.add-row { padding: 12px 20px 0; }
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 20px;
}
.kickoff {
  padding: 16px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kickoff-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.kickoff-row label { flex: 1; min-width: 220px; }
.kickoff-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 200px;
}
.needs-zillow {
  padding: 12px;
  border: 1px solid #554827;
  border-radius: 8px;
  background: #1d1a13;
}
.board-wrap { padding: 16px 20px 0; }
.board-head { margin-bottom: 10px; }
.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.board-table th, .board-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.board-table a { color: var(--ink); }
.board-table tr.recommended { background: #1d1a13; }
.board-table tr.has-project { opacity: 0.72; }
.badge {
  display: inline-block;
  margin-left: 6px;
  background: var(--accent);
  color: #111;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
}
.needs-zillow-card { grid-template-columns: 1fr; }
body.busy .board-table button { pointer-events: none; opacity: 0.5; }
.project {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: inherit;
  text-decoration: none;
}
.project img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
}
.project h2 { font-size: 16px; line-height: 1.25; }
.project-hook {
  margin: 4px 0 0;
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-kickoff {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: min(520px, 100%);
}
.home-kickoff .kickoff-row { justify-content: flex-end; }
.home-kickoff .kickoff-row label { flex: 1; min-width: 180px; max-width: 280px; }
.source-links { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.source-links a { color: var(--accent); font-size: 13px; }
.page-meta-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.bookend { background: #161616; }
.bookend h2 { font-size: 16px; }
.bookend .jump { margin-top: 8px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
textarea, input, select {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  font: inherit;
  width: 100%;
}
.ai-video-editor {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #554827;
  border-radius: 6px;
  background: #1d1a13;
}
.ai-video-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
}
.ai-video-toggle input { width: auto; }
.still-prep {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.still-prep-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.still-prep-thumb {
  margin: 0;
}
.still-prep-thumb img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 6px;
  background: #111;
}
.still-prep-thumb.contain img {
  aspect-ratio: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
}
.still-prep-thumb.empty {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 6px;
}
.still-prep-sliders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.photo-catalog-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.photo-ref-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding: 4px 2px 8px 0;
}
.photo-ref-pick {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.photo-ref-pick input {
  width: auto;
  margin: 0;
}
.photo-ref-pick img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  background: #111;
}
.photo-ref-pick:has(input:checked) img {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.photo-ref-pick:has(input:disabled) {
  opacity: 0.45;
}
.ai-advanced { margin: 4px 0; }
.ai-advanced summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.beat {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.beat img.hero {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
}
.row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.row label { flex: 1; min-width: 120px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.chip {
  background: #2a2723;
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
}
.alts, .zings { margin-top: 10px; }
.alts p, .zings p { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.alt {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.alt span { flex: 1; }
.rewrite { display: flex; gap: 8px; margin-top: 8px; }
.rewrite input { flex: 1; }
.motion-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #161616;
}
.motion-editor > button { grid-column: 1 / -1; justify-self: start; }
.coord-pair { display: flex; gap: 6px; }
.coord-pair input { width: 100%; min-width: 0; }
label.coords { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.camera-moves { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.camera-moves > button { align-self: start; }
.move-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #141414;
}
.move-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.untagged { padding: 20px; }
@media (max-width: 900px) {
  .beat { grid-template-columns: 1fr; }
  .lightbox-body { grid-template-columns: 1fr; }
  .photo-stage img { max-width: 100%; max-height: 42vh; }
  .phone-frame { height: 42vh; }
}

.motion-editor .intent { grid-column: 1 / -1; }
.motion-editor .intent-input { width: 100%; }
.motion-editor .zoom-input { width: 5.5em; }
.shot-row { display: flex; gap: 12px; flex-wrap: wrap; }
.shot-row label { display: flex; flex-direction: column; font-size: 12px; }
.ai-clip { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.ai-clip textarea { width: 100%; }

.board-wrap { position: relative; margin-top: 8px; }
.board-wrap img.board { width: 100%; display: block; border: 1px solid var(--line); border-radius: 6px; cursor: zoom-in; }
.board-wrap.stale img.board { opacity: 0.55; }
.board-badge { position: absolute; top: 6px; right: 6px; background: #b8860b; color: #111; font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.covered { padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; margin-top: 8px; }

.shot-tools { margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #121212; display: flex; flex-direction: column; gap: 8px; }
.shot-tools-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.director-note { flex: 1; min-width: 240px; }
.shot-status { font-size: 12px; max-width: 42rem; white-space: normal; }
.shot-status.is-error { color: #e07070; }
.shot-output { display: flex; gap: 12px; flex-wrap: wrap; }
.shot-video {
  width: 100%;
  max-width: 360px;
  max-height: 420px;
  background: #000;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: contain;
}
.scrub-frame { width: 300px; height: 600px; border: 1px solid var(--line); border-radius: 8px; background: #000; }
.video-wrap { display: flex; flex-direction: column; gap: 4px; }
.video-link { font-size: 11px; }
.versions-row select.versions { flex: 1; min-width: 260px; max-width: 100%; font-size: 12px; }

.ai-video-editor.compact { padding: 4px 0; border: 0; background: transparent; }
.ai-video-editor.compact .ai-video-toggle { margin: 0; }
.ai-video-body { display: flex; flex-direction: column; gap: 6px; }
.ai-video-body textarea { min-height: 6em; }
.ai-char-count { display: block; font-size: 12px; margin-top: 2px; }
.note-row { align-items: flex-start; }
.director-note { flex: 1; min-width: 240px; width: 100%; font: inherit; resize: vertical; }
.publishing { margin: 12px 20px 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #141414; }
.publishing summary { cursor: pointer; font-size: 14px; }
.pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.pub-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.pub-field textarea { width: 100%; font: inherit; color: var(--ink); }
@media (max-width: 900px) { .pub-grid { grid-template-columns: 1fr; } }
.lightbox-modes { margin: 8px 0; justify-content: center; }
.home-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.home-actions .nav { margin-left: auto; }
.home-section { padding: 12px 20px 0; }
.home-section h2 { font-size: 15px; margin: 0 0 6px; }
.button-link { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #1b1b1b; }
.project.incomplete { opacity: 0.85; }
[hidden] { display: none !important; }
button:disabled { opacity: 0.45; cursor: not-allowed; }

.chrome {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: #0e0e0e;
  position: sticky;
  top: 0;
  z-index: 8;
}
.chrome-brand {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.chrome-nav { display: flex; gap: 4px; }
.chrome-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
}
.chrome-nav a.is-active { color: var(--ink); background: #24221e; }
.hu-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 360px;
  background: #2a2723;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.hu-toast.error { background: #5a2a2a; }
.hu-toast.progress { background: #1d1a13; border: 1px solid #554827; }
.hu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}
.hu-overlay-card {
  background: #1a1a1a;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  width: min(420px, 100%);
}
.hu-overlay-steps { padding-left: 18px; color: var(--muted); }
.hu-overlay-steps .is-current { color: var(--accent); font-weight: 700; }
.hu-overlay-steps .is-done { color: var(--ink); }
.hero-empty, .get-started {
  padding: 32px 20px 8px;
  max-width: 960px;
}
.hero-empty h1, .page-intro h1 { font-size: 26px; }
.hero-empty p, .page-intro p { max-width: 42rem; }
.start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.start-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.start-card h2 { font-size: 15px; }
.start-card p { margin: 0; font-size: 13px; color: var(--muted); }
.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  background: #3a3732;
  color: var(--ink);
}
.status-badge.photos { background: #554827; color: #f3e6b8; }
.status-badge.jokes { background: #3a3732; }
.status-badge.voice { background: #2a3a4a; color: #cde; }
.status-badge.film { background: #2a3a2a; color: #cde8cd; }
.status-badge.exported { background: var(--accent); color: #111; }
.project-meta { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.feed-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
}
.feed-card.recommended { border-color: var(--accent); background: #1d1a13; }
.feed-card.has-project { opacity: 0.85; }
.feed-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 6px;
  background: #0a0a0a;
}
.feed-thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 8px;
}
.score-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.score-chip {
  font-size: 11px;
  background: #2a2723;
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--muted);
  cursor: help;
}
.feed-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.studio-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 44px;
  z-index: 6;
  flex-wrap: wrap;
}
.stepper { display: flex; gap: 4px; flex-wrap: wrap; }
.stepper button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  font-weight: 600;
}
.stepper button.is-active { background: var(--accent); color: #111; border-color: var(--accent); }
.stepper button.is-done { color: var(--ink); }
.action-stack { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.action-hint { font-size: 10px; color: var(--muted); font-weight: 400; max-width: 140px; text-align: right; }
.stage-lead { padding: 12px 20px 0; max-width: 52rem; }
.voice-stage, .export-hero {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}
.voice-player, .export-player { width: 100%; max-width: 520px; }
.export-player { max-width: 360px; aspect-ratio: 9/16; background: #000; border-radius: 8px; }
.shots-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  height: calc(100vh - 150px);
  overflow: hidden;
}
.scene-list {
  border-right: 1px solid var(--line);
  overflow: auto;
  padding: 8px;
}
.scene-list button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 4px;
  padding: 8px;
}
.scene-list button.is-active { background: #24221e; outline: 1px solid var(--accent); }
.scene-list img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 4px; display: block; margin-bottom: 4px; }
.shots-main { min-height: 0; min-width: 0; overflow: hidden; }
.shots-main .lightbox {
  position: relative;
  inset: auto;
  height: 100%;
  background: transparent;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
.shots-main .lightbox-bar { padding: 8px 12px; }
.shots-main .lightbox-body {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  height: auto;
  min-height: 0;
  overflow: hidden;
}
.shots-main .lightbox-photo {
  background: #0a0a0a;
  overflow: hidden;
  min-width: 0;
}
.shots-main .lightbox-meta { min-width: 0; }
.shots-main .phone-frame {
  height: min(calc(100vh - 230px), 560px);
  max-width: min(100%, 320px);
}
.gate {
  margin: 24px auto;
  max-width: 560px;
  padding: 20px;
  border: 1px solid #554827;
  background: #1d1a13;
  border-radius: 12px;
}
.variant-switch { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 20px; }
.variant-switch button.is-active { background: var(--accent); color: #111; }
.storyboard-legend { font-size: 12px; color: var(--muted); padding: 8px 20px; }
.disabled-reason { font-size: 12px; color: #e07070; }
.jokes-only .shot-tools,
.jokes-only .camera-moves,
.jokes-only .ai-video-editor,
.jokes-only .board-wrap { display: none !important; }
.page-intro { padding: 20px 20px 0; }
.page-intro .bar { position: static; border: 0; padding: 0; background: transparent; }
.catalog-table-wrap { overflow-x: auto; padding-bottom: 24px; }
.shot-tools.note-only { margin-top: 6px; padding: 8px; }
.music-block, .renders-block { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.music-block h3, .renders-block h3 { font-size: 14px; margin: 0 0 6px; }
.music-block textarea { width: 100%; font: inherit; color: var(--ink); }
.music-info { font-size: 12px; margin: 6px 0; }
.music-lib-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 12px; }
.music-lib-row audio { height: 28px; flex: 1; min-width: 120px; }
.music-lib-meta { flex: 1.2; min-width: 140px; }
.music-lib-meta p { margin: 2px 0 0; }
.music-out audio { width: 100%; max-width: 520px; }
.renders-list { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.render-row a { color: var(--ink); }
.render-row.preview { opacity: 0.7; }
.folder-path { font-size: 11px; word-break: break-all; }
