/* ═══════════════════════════════════════════════════════
   Director's Canvas v2 — Full Director Control
═══════════════════════════════════════════════════════ */

/* Override parent padding */
.doc-content:has(.dc-root) { padding: 0; overflow: hidden; }

/* ── Root Layout ───────────────────────────────────── */
.dc-root {
  display: flex;
  height: 100%;
  overflow: hidden;
  background: #080810;
  font-family: 'Inter', sans-serif;
  color: #ccc;
}

/* ── Scene Navigator (left) ────────────────────────── */
.dc-nav {
  width: 230px;
  min-width: 230px;
  background: #0c0c16;
  border-right: 1px solid #1a1a2e;
  display: flex;
  flex-direction: column;
}

.dc-nav-head {
  padding: 14px 16px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #555;
  border-bottom: 1px solid #1a1a2e;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dc-nav-overall {
  padding: 10px 16px;
  font-size: 11px;
  color: #777;
  border-bottom: 1px solid #1a1a2e;
}

.dc-nav-bar {
  height: 3px;
  background: #1a1a2e;
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.dc-nav-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #22c55e);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.dc-scenes {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}

.dc-scenes::-webkit-scrollbar { width: 3px; }
.dc-scenes::-webkit-scrollbar-thumb { background: #222; border-radius: 2px; }

.dc-scene-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  width: 100%;
  background: none;
  border-top: none;
  border-bottom: none;
  border-right: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

.dc-scene-btn:hover { background: rgba(99, 102, 241, 0.06); }

.dc-scene-btn.active {
  background: rgba(99, 102, 241, 0.1);
  border-left-color: #6366f1;
  color: #eee;
}

.dc-scene-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #888;
  flex-shrink: 0;
}

.dc-scene-btn.active .dc-scene-num { background: #6366f1; color: #fff; }
.dc-scene-btn.done .dc-scene-num { background: #166534; color: #22c55e; }

.dc-scene-label {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  line-height: 1.3;
}

.dc-scene-label-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-scene-label-sub {
  font-size: 9px;
  color: #555;
  margin-top: 1px;
}

/* Status pills row */
.dc-scene-pills {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.dc-pill {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #1e1e30;
}

.dc-pill.ref { background: #1e1e30; }
.dc-pill.ref.ok { background: #6366f1; }
.dc-pill.sb { background: #1e1e30; }
.dc-pill.sb.ok { background: #f59e0b; }
.dc-pill.vid { background: #1e1e30; }
.dc-pill.vid.ok { background: #22c55e; }

/* ── Main Workspace ────────────────────────────────── */
.dc-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

/* Top bar */
.dc-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  border-bottom: 1px solid #1a1a2e;
  background: #0c0c16;
  flex-shrink: 0;
}

.dc-topbar-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #eee;
}

.dc-topbar-meta {
  font-size: 10px;
  color: #666;
}

.dc-topbar-actions {
  display: flex;
  gap: 6px;
}

/* Tab bar */
.dc-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #1a1a2e;
  background: #0a0a14;
  flex-shrink: 0;
  padding: 0 20px;
}

.dc-tab {
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dc-tab:hover { color: #aaa; }
.dc-tab.active { color: #6366f1; border-bottom-color: #6366f1; }
.dc-tab .dc-tab-count {
  font-size: 9px;
  background: #1a1a2e;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: 4px;
  color: #888;
}
.dc-tab.active .dc-tab-count { background: rgba(99,102,241,0.2); color: #6366f1; }

/* Content scroll area */
.dc-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
}

.dc-content::-webkit-scrollbar { width: 4px; }
.dc-content::-webkit-scrollbar-thumb { background: #222; border-radius: 2px; }

/* ── Section headers ───────────────────────────────── */
.dc-section {
  margin-bottom: 28px;
}

.dc-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dc-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #555;
  flex: 1;
}

.dc-section-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #1a1a2e;
  color: #888;
}

.dc-section-badge.ok { background: rgba(34,197,94,0.15); color: #22c55e; }

/* ── References Section ────────────────────────────── */
.dc-refs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.dc-refs::-webkit-scrollbar { height: 4px; }
.dc-refs::-webkit-scrollbar-thumb { background: #222; border-radius: 2px; }

.dc-ref {
  min-width: 160px;
  max-width: 160px;
  background: #111;
  border: 1px solid #1e1e2e;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.15s;
}

.dc-ref:hover { border-color: #333; }
.dc-ref.approved { border-color: rgba(34,197,94,0.3); }

/* Panoramic section: single row, fill width equally */
.panoramic-section .dc-refs {
  flex-wrap: nowrap;
  overflow-x: visible;
  width: 100%;
}
.panoramic-section .dc-ref {
  min-width: 0;
  max-width: none;
  flex: 1 1 0;
}

.dc-ref-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: #0a0a14;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dc-ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dc-ref-caption {
  padding: 5px 7px;
  font-size: 9px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Master Scene ──────────────────────────────────── */
.dc-master {
  background: #0e0e1a;
  border: 1px solid #1e1e2e;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.dc-master.approved { border-color: rgba(34,197,94,0.3); }

.dc-master-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: #080810;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.dc-master-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dc-master-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  display: flex;
  align-items: center;
  gap: 8px;
}

.dc-master-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  flex-wrap: wrap;
}

/* ── Shot Strip (filmstrip style) ──────────────────── */
.dc-strip-wrap {
  position: relative;
}

.dc-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-behavior: smooth;
}

.dc-strip::-webkit-scrollbar { height: 5px; }
.dc-strip::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }

/* Shot card */
.dc-shot {
  min-width: 200px;
  width: 200px;
  background: #111118;
  border: 2px solid #1e1e2e;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.dc-shot:hover { border-color: #2e2e4e; }
.dc-shot.selected { border-color: #6366f1; box-shadow: 0 0 12px rgba(99,102,241,0.25); }
.dc-shot.approved { border-color: rgba(34,197,94,0.3); }
.dc-shot.dragging { opacity: 0.4; transform: scale(0.95); }
.dc-shot.drag-over { border-color: #a78bfa; box-shadow: 0 0 12px rgba(167,139,250,0.3); }
.dc-shot.generating { border-color: #6ea8fe44; animation: dc-gen-glow 2s ease-in-out infinite; }
@keyframes dc-gen-glow { 0%,100% { box-shadow: 0 0 4px rgba(110,168,254,0.1); } 50% { box-shadow: 0 0 16px rgba(110,168,254,0.3); } }

.dc-master.generating { border-color: #6ea8fe44; animation: dc-gen-glow 2s ease-in-out infinite; }

.dc-shot-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0a0a12;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dc-shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video overlay on frame */
.dc-shot-video-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.7);
  color: #22c55e;
}

/* Shot type badge on frame */
.dc-shot-cam-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(99,102,241,0.8);
  color: #fff;
  font-weight: 600;
}

/* Shot number badge */
.dc-shot-order {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.dc-shot-body {
  padding: 8px 10px 6px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dc-shot-title {
  font-size: 11px;
  font-weight: 600;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dc-shot-desc {
  font-size: 10px;
  color: #777;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dialogue pills on shot */
.dc-shot-dls {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 10px 6px;
}

.dc-dl-pill {
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #16162e;
  color: #a78bfa;
  display: flex;
  gap: 4px;
  align-items: baseline;
  line-height: 1.3;
  position: relative;
}

.dc-dl-pill .dc-dl-speaker {
  font-weight: 700;
  color: #c4b5fd;
  flex-shrink: 0;
}

.dc-dl-pill .dc-dl-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-dl-pill .dc-dl-remove {
  position: absolute;
  right: 4px;
  top: 3px;
  cursor: pointer;
  color: #888;
  font-size: 10px;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,50,50,0.1);
}

.dc-dl-pill .dc-dl-remove:hover { background: rgba(255,50,50,0.4); color: #f66; }

/* Draggable dialogue pills on shots */
.dc-dl-pill[draggable="true"] {
  cursor: grab;
  border: 1px dashed transparent;
}
.dc-dl-pill[draggable="true"]:hover {
  border-color: #a78bfa44;
}

/* Drop target highlight for dialogue */
.dc-shot.dl-drop-target {
  box-shadow: 0 0 0 2px #a78bfa, 0 0 16px rgba(167,139,250,0.2) !important;
  border-color: #a78bfa !important;
}

/* Shot footer actions */
.dc-shot-foot {
  display: flex;
  gap: 3px;
  padding: 4px 8px 8px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid #151520;
  margin-top: auto;
}

/* Drop zone */
.dc-drop {
  min-width: 200px;
  width: 200px;
  border: 2px dashed #222;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #444;
  font-size: 11px;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
  cursor: pointer;
  min-height: 180px;
  padding: 10px;
}

.dc-drop:hover {
  border-color: #333;
  color: #666;
}

.dc-drop.drag-over {
  border-color: #6366f1;
  color: #6366f1;
  background: rgba(99,102,241,0.03);
}

/* ── Shot Detail Panel (expanded below strip) ──────── */
.dc-detail {
  background: #0c0c18;
  border: 1px solid #2a2a4e;
  border-radius: 10px;
  margin-top: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.dc-detail-top {
  display: flex;
  gap: 20px;
  padding: 20px;
  align-items: flex-start;
}

.dc-detail-frame {
  flex: 1;
  min-width: 0;
  max-width: 50%;
  border-radius: 8px;
  overflow: hidden;
  background: #080810;
  position: relative;
  cursor: pointer;
}

.dc-detail-frame img, .dc-detail-frame video {
  width: 100%;
  display: block;
}

.dc-detail-info {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 500px;
}

.dc-detail-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dc-detail-label {
  font-size: 10px;
  color: #555;
  width: 60px;
  flex-shrink: 0;
}

.dc-detail-value {
  font-size: 11px;
  color: #ccc;
  flex: 1;
}

/* Camera selector */
.dc-cam-select {
  appearance: none;
  background: #16162e;
  border: 1px solid #2a2a4e;
  color: #ddd;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 28px 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.dc-cam-select:focus { outline: 1px solid #6366f1; }

/* Prompt editor */
.dc-prompt-box {
  background: #0a0a14;
  border: 1px solid #1a1a2e;
  border-radius: 6px;
  padding: 10px;
  font-size: 10px;
  color: #888;
  line-height: 1.5;
  max-height: 160px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: 'JetBrains Mono', monospace;
}

.dc-prompt-edit {
  width: 100%;
  background: #0a0a14;
  border: 1px solid #1a1a2e;
  color: #aaa;
  font-size: 10px;
  padding: 10px;
  border-radius: 6px;
  resize: vertical;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.5;
  min-height: 80px;
}

.dc-prompt-edit:focus { outline: 1px solid #6366f1; border-color: #6366f1; }

/* Detail action bar */
.dc-detail-actions {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid #151520;
  flex-wrap: wrap;
  align-items: center;
}

/* Feedback area in detail */
.dc-fb-area {
  padding: 10px 16px 16px;
}

.dc-fb-history {
  font-size: 10px;
  color: #666;
  margin-bottom: 8px;
}

.dc-fb-item {
  padding: 3px 0;
  border-bottom: 1px solid #111;
}

.dc-fb-input {
  width: 100%;
  background: #111;
  border: 1px solid #1e1e2e;
  color: #ccc;
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 6px;
  resize: vertical;
  font-family: inherit;
}

.dc-fb-input:focus { outline: 1px solid #6366f1; }

/* ── Video Section ─────────────────────────────────── */
.dc-vid-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
}

.dc-vid-strip::-webkit-scrollbar { height: 5px; }
.dc-vid-strip::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }

.dc-vid {
  min-width: 220px;
  width: 220px;
  background: #111118;
  border: 2px solid #1e1e2e;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.15s;
}

.dc-vid.approved { border-color: rgba(34,197,94,0.3); }
.dc-vid.generating { border-color: #6ea8fe44; animation: dc-gen-glow 2s ease-in-out infinite; }

.dc-vid-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: #080810;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dc-vid-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dc-vid-body {
  padding: 8px 10px;
}

.dc-vid-foot {
  display: flex;
  gap: 3px;
  padding: 4px 8px 8px;
  flex-wrap: wrap;
  border-top: 1px solid #151520;
}

/* ── Scene Preview Section ─────────────────────────── */
.dc-preview-bar {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-bottom: 12px;
}

.dc-preview-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #080810;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dc-preview-player video {
  width: 100%;
  height: 100%;
}

/* ── Buttons ───────────────────────────────────────── */
.dc-btn {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid #2a2a4e;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dc-btn:hover { background: rgba(255,255,255,0.04); border-color: #3a3a5e; color: #ddd; }
.dc-btn.primary { background: #6366f1; border-color: #6366f1; color: #fff; }
.dc-btn.primary:hover { background: #5558e6; }
.dc-btn.green { background: #166534; border-color: #22c55e44; color: #22c55e; }
.dc-btn.green:hover { background: #1a7a3e; }
.dc-btn.red { border-color: #f6666644; color: #f66; }
.dc-btn.red:hover { background: rgba(255,50,50,0.1); }
.dc-btn.sm { font-size: 9px; padding: 2px 7px; }
.dc-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Status Badge ──────────────────────────────────── */
.dc-st {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
  display: inline-block;
}

.dc-st-pending    { background: #1a1a2e; color: #666; }
.dc-st-generating { background: #0f1f3a; color: #6ea8fe; animation: dc-pulse 1.5s ease-in-out infinite; }
@keyframes dc-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.dc-st-pass       { background: #0f2a0f; color: #66bb6a; }
.dc-st-approved   { background: #0f3a0f; color: #22c55e; }
.dc-st-error      { background: #2e0f0f; color: #f66; }
.dc-st-done       { background: #0f2a0f; color: #66bb6a; }
.dc-st-review     { background: #2e2a0f; color: #fbbf24; }

/* ── Spinner ───────────────────────────────────────── */
.dc-spin {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #222;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: dc-spin 0.6s linear infinite;
}

@keyframes dc-spin { to { transform: rotate(360deg); } }
@keyframes dcPulseFilm { 0%,100% { box-shadow: 0 0 12px rgba(124,58,237,0.6); } 50% { box-shadow: 0 0 24px rgba(236,72,153,0.8), 0 0 40px rgba(124,58,237,0.4); } }

/* ── Loading / Empty ───────────────────────────────── */
.dc-loading, .dc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: #555;
  font-size: 13px;
}

/* ── Dialogue drag zone highlight on shot ──────────── */
.dc-shot.dl-drop-target {
  box-shadow: 0 0 0 2px #a78bfa, 0 0 16px rgba(167,139,250,0.2);
}

/* ── Context Panel (right sidebar) ─────────────────── */
.dc-ctx {
  width: 280px;
  min-width: 280px;
  background: #0c0c16;
  border-left: 1px solid #1a1a2e;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.dc-ctx::-webkit-scrollbar { width: 3px; }
.dc-ctx::-webkit-scrollbar-thumb { background: #222; border-radius: 2px; }

.dc-ctx-sec {
  padding: 12px 14px;
  border-bottom: 1px solid #13131e;
}

.dc-ctx-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #444;
  margin-bottom: 6px;
}

.dc-ctx-val {
  font-size: 11px;
  color: #aaa;
  line-height: 1.5;
}

/* Draggable dialogue card in context */
.dc-ctx-dl {
  padding: 6px 8px;
  background: #111;
  border: 1px solid #1e1e2e;
  border-radius: 6px;
  margin-bottom: 4px;
  cursor: grab;
  transition: border-color 0.15s, opacity 0.15s;
  font-size: 10px;
}

.dc-ctx-dl:hover { border-color: #2e2e4e; }
.dc-ctx-dl:active { cursor: grabbing; }
.dc-ctx-dl.assigned { opacity: 0.4; border-style: dashed; }
.dc-ctx-dl.dragging { opacity: 0.3; }

.dc-ctx-dl-speaker {
  font-weight: 700;
  color: #c4b5fd;
  font-size: 10px;
}

.dc-ctx-dl-text {
  color: #888;
  font-size: 10px;
  line-height: 1.3;
  margin-top: 2px;
}

/* Create shot button inside context */
.dc-create-shot-btn {
  width: 100%;
  padding: 10px;
  background: #111;
  border: 1px dashed #2a2a4e;
  border-radius: 8px;
  color: #6366f1;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  text-align: center;
}

.dc-create-shot-btn:hover { background: #16162e; border-color: #6366f1; }

/* ── Image modal ───────────────────────────────────── */
.dc-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dc-modal img, .dc-modal video {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════
   History Modal
═══════════════════════════════════════════════════════ */

.history-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.history-modal {
  background: #111118;
  border: 1px solid #2a2a3e;
  border-radius: 12px;
  width: 680px; max-width: 95vw;
  max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.history-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #1a1a2e;
}
.history-modal-title { font-size: 15px; font-weight: 600; color: #eee; }
.history-modal-subtitle { font-size: 11px; color: #666; margin-top: 2px; }
.history-modal-close {
  background: none; border: none; color: #666; font-size: 22px;
  cursor: pointer; padding: 0 4px; line-height: 1;
}
.history-modal-close:hover { color: #fff; }
.history-modal-body {
  overflow-y: auto; padding: 12px 20px 20px;
  flex: 1;
}
.history-empty {
  text-align: center; padding: 40px 20px;
}
.history-versions {
  display: flex; flex-direction: column; gap: 10px;
}
.history-version {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px; border-radius: 8px;
  background: #0a0a14; border: 1px solid #1a1a2e;
  transition: border-color 0.15s;
}
.history-version:hover { border-color: #2a2a4e; }
.history-version-current { border-color: #22c55e33; background: #0a140a; }
.history-version-preview {
  width: 100px; min-width: 100px; height: 75px;
  border-radius: 6px; overflow: hidden;
  background: #080810; border: 1px solid #1a1a2e;
}
.history-version-info { flex: 1; min-width: 0; }
.history-version-header {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.history-version-label {
  font-size: 12px; font-weight: 600; color: #ddd;
}
.history-badge {
  font-size: 8px; padding: 1px 6px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}
.history-badge-current { background: #22c55e22; color: #22c55e; }
.history-badge-approved { background: #22c55e18; color: #4ade80; }
.history-badge-rejected { background: #ef444418; color: #f87171; }
.history-badge-pending { background: #f59e0b18; color: #fbbf24; }
.history-version-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 9px; color: #555; margin-bottom: 4px;
}
.history-version-actions {
  display: flex; align-items: center;
  min-width: 100px; justify-content: flex-end;
}
.history-btn {
  font-size: 9px; cursor: pointer;
}

/* History icon button (inline with other buttons) */
.dc-history-btn {
  background: none; border: 1px solid #2a2a3e; color: #888;
  border-radius: 3px; font-size: 9px; padding: 1px 5px;
  cursor: pointer; transition: all 0.15s;
}
.dc-history-btn:hover { border-color: #6366f1; color: #a5b4fc; }
