/* ==========================================================================
   "ด้ายนำทาง" Clean Studio Storyboard & Production Suite
   Design System: DESIGN-MODERN-STUDIO + DESIGN-PJSIS-PORTAL (Light-First)
   ========================================================================== */

:root {
  --canvas: #f8fafc;
  --surface: #ffffff;
  --surface-sub: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-amber: #d97706;
  --accent-amber-soft: #fffbeb;
  --accent-amber-border: #fde68a;
  --accent-blue: #2563eb;
  --accent-blue-soft: #eff6ff;
  --accent-emerald: #059669;
  --accent-emerald-soft: #ecfdf5;
  --accent-rose: #e11d48;
  --accent-rose-soft: #fff1f2;
  --accent-indigo: #4f46e5;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -4px rgba(15, 23, 42, 0.06);
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-ui: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Sarabun', 'Prompt', sans-serif;
}

html.dark-mode {
  --canvas: #090a0f;
  --surface: #12141c;
  --surface-sub: #1a1d28;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-amber: #fbbf24;
  --accent-amber-soft: rgba(245, 158, 11, 0.12);
  --accent-amber-border: rgba(245, 158, 11, 0.35);
  --accent-blue: #60a5fa;
  --accent-blue-soft: rgba(59, 130, 246, 0.12);
  --accent-emerald: #34d399;
  --accent-emerald-soft: rgba(16, 185, 129, 0.12);
  --accent-rose: #fb7185;
  --accent-rose-soft: rgba(244, 63, 94, 0.12);
  --accent-indigo: #818cf8;
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  background-color: var(--canvas);
  color: var(--text-primary);
  font-family: var(--font-ui);
  line-height: 1.55;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.studio-shell {
  max-width: 1020px;
  margin: 0 auto;
  padding: 12px 12px 48px 12px;
}
@media (min-width: 640px) {
  .studio-shell { padding: 20px 20px 56px 20px; }
}

.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }

/* Tactile Click (ท่า 17) */
.tactile {
  transition: transform 120ms var(--ease-spring), background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.tactile:active { transform: scale(0.96); }

/* ==========================================================================
   1. Clean Studio Navbar (.studio-navbar)
   ========================================================================== */
.studio-navbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 768px) {
  .studio-navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    margin-bottom: 16px;
  }
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}
.brand-text { min-width: 0; }
.brand-title {
  font-size: clamp(1.08rem, 3.6vw, 1.32rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-sub);
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
}
.nav-pill-btn.amber {
  background: var(--accent-amber-soft);
  border-color: var(--accent-amber-border);
  color: var(--accent-amber);
}
.nav-pill-btn.blue {
  background: var(--accent-blue-soft);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--accent-blue);
}

/* ==========================================================================
   2. 2x2 Mobile KPI Stat Grid (.stats-grid) — PJSIS 1:1 Standard
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (min-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 16px;
  }
}

.stat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 12px 12px 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 82px;
}
.stat-card.clickable { cursor: pointer; }
.stat-strip {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.strip-blue { background: #3b82f6; }
.strip-amber { background: #f59e0b; }
.strip-emerald { background: #10b981; }
.strip-indigo { background: #6366f1; }

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.stat-value {
  font-size: clamp(1rem, 3.8vw, 1.32rem);
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}
.stat-unit {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
}
.stat-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-prog-track {
  width: 100%;
  height: 5px;
  background: var(--surface-sub);
  border-radius: 9999px;
  margin-top: 6px;
  overflow: hidden;
}
.mini-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 9999px;
  transition: width 300ms var(--ease-apple);
}

/* ==========================================================================
   3. Step 1: Scene Stepper Grid (3x2 Mobile / 6-Col Desktop — Zero H-Scroll)
   ========================================================================== */
.step-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 2px;
}
.step-label-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.step-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--text-primary);
  color: var(--surface);
  font-size: 0.7rem;
  font-weight: 700;
}

.scene-stepper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .scene-stepper-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
}

.scene-step-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  min-height: 76px;
  justify-content: space-between;
}
.scene-step-btn.active {
  border-color: var(--accent-amber);
  background: var(--accent-amber-soft);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.18);
}
.scene-step-btn.completed:not(.active) {
  border-color: rgba(16, 185, 129, 0.45);
  background: var(--accent-emerald-soft);
}

.ss-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.ss-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}
.scene-step-btn.active .ss-num { color: var(--accent-amber); }
.ss-status-dot {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-emerald);
}
.ss-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}
.ss-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   4. Main Workspace Card (Step 2: Scene Context + Shot Stepper + Focus Card)
   ========================================================================== */
.workspace-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) {
  .workspace-card { padding: 20px 22px; border-radius: 22px; }
}

.scene-head-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
@media (min-width: 640px) {
  .scene-head-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.scene-head-title {
  font-size: clamp(1.05rem, 3.6vw, 1.28rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.scene-head-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* View Mode Toggle */
.view-toggle-group {
  display: inline-flex;
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  align-self: flex-start;
  flex-shrink: 0;
}
.view-toggle-btn {
  height: 34px;
  padding: 0 11px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.view-toggle-btn.active {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

/* Collapsible Scene Context Accordion (ท่า 30: CSS Grid 0fr -> 1fr) */
.context-accordion {
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}
.context-acc-trigger {
  width: 100%;
  padding: 10px 14px;
  min-height: 44px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}
.context-acc-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease-apple);
}
.context-accordion.open .context-acc-body-wrap {
  grid-template-rows: 1fr;
}
.context-acc-inner {
  overflow: hidden;
}
.context-acc-content {
  padding: 0 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.caution-banner {
  background: var(--accent-rose-soft);
  border-left: 3px solid var(--accent-rose);
  color: var(--accent-rose);
  padding: 10px 12px;
  border-radius: 0 10px 10px 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
}
html:not(.dark-mode) .caution-banner { color: #9f1239; }
.gear-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 640px) {
  .gear-mini-grid { grid-template-columns: repeat(2, 1fr); }
}
.gear-mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--text-secondary);
}
.gear-mini-card b {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

/* ==========================================================================
   5. Step-by-Step Shot Selector Rail (S1-00 -> S1-01 -> ...)
   ========================================================================== */
.shot-rail-wrap {
  margin-bottom: 14px;
}
.shot-rail-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.shot-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.shot-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 11px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface-sub);
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.shot-step-pill.done:not(.active) {
  background: var(--accent-emerald-soft);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
}
.shot-step-pill.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--surface);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}

/* ==========================================================================
   6. Single-Shot Step Focus Card (.shot-focus-card)
   ========================================================================== */
.shot-focus-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: var(--surface);
  animation: fadeSlideUp 220ms var(--ease-apple);
}
@media (min-width: 640px) {
  .shot-focus-card { padding: 18px; }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.shot-focus-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.shot-badges-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.badge-shot-id {
  background: var(--text-primary);
  color: var(--surface);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.badge-shot-size {
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 8px;
}
.badge-shot-lens {
  background: var(--surface-sub);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 8px;
}
.badge-step-count {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Clean 16:9 Studio Viewfinder Frame */
.sb-studio-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 205px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(155deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(15, 23, 42, 0.2);
}
.sb-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
}
.sb-top-row, .sb-bot-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.sb-pill-dark {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sb-rec-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #ef4444;
}
.sb-center-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.sb-icons {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.65rem;
  color: #fbbf24;
}
.sb-icons i.sub-ic { font-size: 1.3rem; color: #7dd3fc; }
.sb-comp-text {
  font-size: 0.76rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.8);
  padding: 3px 10px;
  border-radius: 9999px;
}
.sb-move-chip {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Clean Info Sections inside Shot Focus Card */
.shot-info-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.info-block {
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface-sub);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text-primary);
  line-height: 1.6;
}
.info-block-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.info-block.dialogue-hero {
  background: var(--accent-amber-soft);
  border: 1px solid var(--accent-amber-border);
  border-left: 4px solid var(--accent-amber);
  font-size: 1.05rem;
  font-weight: 600;
}
.info-block.dialogue-hero .info-block-label { color: var(--accent-amber); }
.info-block.ensub-block {
  background: var(--accent-blue-soft);
  border-color: rgba(37, 99, 235, 0.22);
  font-style: italic;
  font-size: 0.9rem;
}
.info-block.ensub-block .info-block-label { color: var(--accent-blue); font-style: normal; }

/* On-Set Secondary Controls (Take, Slate, Director Note) */
.shot-tools-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.take-box {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px 6px;
  height: 42px;
}
.take-box span.lbl { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); padding: 0 4px; }
.take-box span.val { font-size: 0.92rem; font-weight: 700; color: var(--text-primary); min-width: 22px; text-align: center; }
.take-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
}
.btn-slate {
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-sub);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.shot-note-input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-sub);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px; /* Prevent iOS auto-zoom */
  margin-bottom: 14px;
  outline: none;
}
.shot-note-input:focus { border-color: var(--accent-blue); background: var(--surface); }

/* Step-by-Step Primary Action Bar (Prev / Take OK / Next) */
.step-action-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.btn-step-nav {
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-sub);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-step-nav:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-step-primary {
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: none;
  background: var(--text-primary);
  color: var(--surface);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-step-primary.is-done {
  background: #10b981;
  color: #ffffff;
}

/* ==========================================================================
   7. Compact 2-Row List Mode (.shot-compact-list) — PJSIS 1:1 Mobile Standard
   ========================================================================== */
.shot-compact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shot-compact-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shot-compact-row.done {
  border-color: rgba(16, 185, 129, 0.45);
  background: var(--accent-emerald-soft);
}
.scr-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.scr-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.scr-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scr-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.scr-status.pending { background: var(--accent-amber-soft); color: var(--accent-amber); }
.scr-status.ok { background: var(--accent-emerald-soft); color: var(--accent-emerald); }
.scr-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   8. Props & Gear View (.props-clean-view)
   ========================================================================== */
.props-group-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  background: var(--surface);
}
.props-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}
.prop-check-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-sub);
  margin-bottom: 8px;
  cursor: pointer;
}
.prop-check-row:last-child { margin-bottom: 0; }
.prop-check-row.checked {
  background: var(--accent-emerald-soft);
  border-color: rgba(16, 185, 129, 0.4);
}
.prop-left { display: flex; align-items: flex-start; gap: 10px; }
.prop-box-ic {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  color: transparent; font-size: 0.75rem;
}
.prop-check-row.checked .prop-box-ic {
  background: #10b981; border-color: #10b981; color: #ffffff;
}
.prop-txt b { display: block; font-size: 0.86rem; color: var(--text-primary); }
.prop-txt span { font-family: var(--font-body); font-size: 0.84rem; color: var(--text-secondary); }
.prop-src {
  font-size: 0.7rem; font-weight: 700; padding: 3px 8px;
  border-radius: 9999px; white-space: nowrap; flex-shrink: 0;
}
.prop-src.home { background: var(--accent-blue-soft); color: var(--accent-blue); }
.prop-src.museum { background: var(--accent-amber-soft); color: var(--accent-amber); }

/* ==========================================================================
   9. Digital Clapperboard & Info Modals
   ========================================================================== */
.slate-modal-overlay, .pro-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.slate-modal-overlay.open, .pro-modal-overlay.open { display: flex; }

.slate-board {
  width: 100%;
  max-width: 480px;
  background: #0f172a;
  border: 3px solid #f8fafc;
  border-radius: 16px;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}
.slate-sticks {
  height: 32px;
  background: repeating-linear-gradient(-55deg, #ffffff, #ffffff 18px, #0f172a 18px, #0f172a 36px);
  border-bottom: 3px solid #ffffff;
  transform-origin: left bottom;
  transition: transform 90ms ease-in;
}
.slate-sticks.clap-anim { transform: rotate(-10deg) translateY(-5px); }
.slate-body { padding: 18px; }
.slate-prod-title {
  text-align: center; font-size: 1rem; font-weight: 700; color: #fbbf24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px; margin-bottom: 12px;
}
.slate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.slate-cell {
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 10px;
  padding: 8px; text-align: center; background: rgba(255, 255, 255, 0.05);
}
.slate-cell small { display: block; font-size: 0.68rem; color: #94a3b8; }
.slate-cell strong { font-size: 1.4rem; color: #ffffff; font-weight: 800; }
.slate-meta-line {
  font-size: 0.84rem; color: #cbd5e1; background: rgba(255, 255, 255, 0.06);
  padding: 8px 12px; border-radius: 8px; margin-bottom: 14px; text-align: center;
}
.btn-clap-now {
  width: 100%; height: 50px; border-radius: 12px; border: none;
  background: #f59e0b; color: #000000;
  font-family: var(--font-ui); font-size: 0.98rem; font-weight: 800;
  cursor: pointer; margin-bottom: 8px;
}
.btn-slate-close {
  width: 100%; height: 42px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent; color: #cbd5e1;
  font-family: var(--font-ui); font-size: 0.86rem; cursor: pointer;
}
.slate-flash {
  position: fixed; inset: 0; background: #ffffff; z-index: 3000;
  pointer-events: none; opacity: 0; transition: opacity 80ms ease;
}
.slate-flash.active { opacity: 0.95; }

.pro-modal-box {
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  color: var(--text-primary);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.35);
}
.pro-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-bottom: 10px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.pro-modal-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.pro-modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface-sub);
  color: var(--text-primary); font-size: 1.1rem; cursor: pointer;
}
.schedule-block {
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-amber);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 10px;
}
.schedule-block h4 { font-size: 0.88rem; color: var(--text-primary); margin-bottom: 3px; }
.schedule-block p { font-family: var(--font-body); font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }
