﻿/* ============================================================
   PRODUCTION BIBLE FRAMEWORK v1.0
   Dark Cinematic Design System
   Inspired by: Notion + Milanote + Frame.io
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-deep: #080808;
  --bg-surface: #111111;
  --bg-elevated: #1a1a1a;
  --bg-card: #1e1e1e;
  --bg-hover: #252525;
  --bg-input: #141414;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent-story: #ff6b35;
  --accent-visual: #7b2ff7;
  --accent-camera: #00d4ff;
  --accent-production: #ffd700;
  --accent-art: #e91e63;
  --accent-vfx: #00ff88;
  --accent-color: #ff4081;
  --accent-edit: #03a9f4;
  --accent-audio: #ff9800;
  --accent-asset: #9c27b0;
  --accent-tech: #607d8b;
  --accent-delivery: #4caf50;
  --accent-qc: #f44336;
  --priority-s: #ff1744;
  --priority-a: #ff9100;
  --priority-b: #00bcd4;
  --priority-c: #4caf50;
  --diff-1: #4caf50;
  --diff-2: #8bc34a;
  --diff-3: #ffc107;
  --diff-4: #ff9800;
  --diff-5: #f44336;
  --status-completed: #4caf50;
  --status-in-progress: #ffc107;
  --status-pending: #ff9800;
  --sidebar-width: 260px;
  --header-height: 56px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl: 0 24px 80px rgba(0,0,0,0.6);
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

/* ============================================================
   v0.6.3 PRODUCTION SUPPORT
   ============================================================ */
.prod-command-strip,
.prod-task-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.prod-command-strip > div,
.prod-task-summary > div {
  background: var(--surface-card);
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--surface-shadow);
}

.prod-command-strip span,
.prod-task-summary span {
  display: block;
  color: var(--surface-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prod-command-strip strong,
.prod-task-summary strong {
  display: block;
  color: var(--surface-cobalt);
  font-size: 22px;
  line-height: 1.2;
  margin-top: 6px;
}

.dash-li-meta {
  display: block;
  color: var(--surface-muted);
  font-size: 12px;
  margin-top: 3px;
}

.dash-card li em {
  display: block;
  color: var(--surface-ink);
  font-style: normal;
  line-height: 1.45;
  margin-top: 5px;
}

.dash-empty {
  color: var(--surface-muted);
  font-size: 13px;
  margin: 0;
}

.prod-task-panel h3 {
  color: #f4efe6;
  font-size: 18px;
  margin: 18px 0 12px;
}

.prod-task-table td p {
  color: rgba(244,239,230,0.72) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  margin: 5px 0 0;
}

.prod-workflow-note {
  background: rgba(244,239,230,0.08);
  border: 1px solid rgba(244,239,230,0.14);
  border-radius: 10px;
  color: #f4efe6;
  line-height: 1.65;
  padding: 16px;
}

.asset-bible-grid,
.asset-bible-spreads {
  display: grid;
  gap: 14px;
}

.asset-bible-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.asset-bible-spreads {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.asset-bible-img {
  background: #fffdf8;
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--surface-shadow);
}

.asset-bible-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f1eadc;
  display: block;
  object-fit: contain;
}

.asset-bible-img span {
  color: var(--surface-cobalt);
  display: block;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 12px;
}

.asset-bible-img.is-missing::before {
  content: "Missing asset";
  color: var(--surface-muted);
  display: grid;
  min-height: 120px;
  place-items: center;
}

.asset-ref-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.asset-ref-columns > div,
.qc-group {
  background: #fffdf8;
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  padding: 16px;
}

.asset-ref-columns h3,
.qc-group h3 {
  color: var(--surface-cobalt);
  margin: 0 0 12px;
}

.qc-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.qc-shot-list {
  display: grid;
  gap: 12px;
}

.qc-shot-list p {
  color: var(--surface-ink) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin: 6px 0 0;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; outline: none; border: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* LAYOUT & SIDEBAR */
.app { display: grid; grid-template-columns: var(--sidebar-width) 1fr; height: 100vh; overflow: hidden; }
.sidebar { position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh; background: var(--bg-surface); border-right: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; z-index: 100; }
.sidebar .brand { padding: 20px 16px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sidebar .brand h1 { font-size: 22px; font-weight: 900; letter-spacing: -0.04em; text-transform: uppercase; }
.sidebar .brand small { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 6px; font-weight: 600; }
.sidebar .project-name { padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid rgba(255,255,255,0.06); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar .nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; margin: 1px 8px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--text-secondary); transition: all var(--transition-fast); cursor: pointer; }
.sidebar .nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar .nav-item.active { background: rgba(255,255,255,0.08); color: var(--text-primary); font-weight: 600; }
.sidebar .nav-item .icon { width: 18px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.sidebar .nav-item .nav-badge { margin-left: auto; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 10px; background: rgba(255,255,255,0.08); color: var(--text-muted); }
.sidebar .nav-section { padding: 16px 16px 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }

/* MAIN & TOPBAR */
.main { grid-column: 2; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 80; background: rgba(8,8,8,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 10px 24px; display: flex; align-items: center; gap: 12px; min-height: var(--header-height); }
.topbar .breadcrumb { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.topbar .breadcrumb span { color: var(--text-muted); }
.topbar .breadcrumb strong { color: var(--text-primary); font-weight: 600; }
.topbar .search-wrap { flex: 1; max-width: 420px; position: relative; }
.topbar .search-wrap input { width: 100%; padding: 8px 12px 8px 36px; border-radius: 8px; background: var(--bg-input); border: 1px solid rgba(255,255,255,0.08); color: var(--text-primary); font-size: 13px; }
.topbar .search-wrap input:focus { border-color: rgba(255,255,255,0.2); background: var(--bg-elevated); }
.topbar .search-wrap input::placeholder { color: var(--text-muted); }
.topbar .search-wrap .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; pointer-events: none; }
.topbar .btn-meeting { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; background: linear-gradient(135deg, var(--accent-camera), #0091ea); color: white; font-size: 12px; font-weight: 700; border: none; }
.topbar .btn-meeting:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,212,255,0.3); }

/* CONTENT */
.content { flex: 1; padding: 24px; overflow-y: auto; }
.section-page { display: none; animation: fadeIn 0.3s ease; }
.section-page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* DASHBOARD */
.dashboard-header { margin-bottom: 32px; }
.dashboard-header h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.dashboard-header p { color: var(--text-secondary); font-size: 15px; max-width: 640px; line-height: 1.7; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat-card { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-md); padding: 18px 16px; text-align: center; }
.stat-card:hover { border-color: rgba(255,255,255,0.12); background: var(--bg-elevated); }
.stat-card .number { font-size: 36px; font-weight: 900; background: linear-gradient(135deg, var(--accent-camera), var(--accent-visual)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-card .label { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
@media (max-width: 1024px) { .dashboard-grid { grid-template-columns: 1fr; } }
.dash-card { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-md); padding: 20px; }
.dash-card h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.dash-card li { padding: 6px 0 6px 20px; position: relative; font-size: 13px; color: var(--text-secondary); }
.dash-card li::before { content: ''; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-camera); }
.dash-card.warning li::before { background: var(--accent-production); }
.dash-card.issue li::before { background: var(--accent-qc); }

/* BADGES */
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.badge-priority-s { background: rgba(255,23,68,0.15); color: var(--priority-s); }
.badge-priority-a { background: rgba(255,145,0,0.15); color: var(--priority-a); }
.badge-priority-b { background: rgba(0,188,212,0.15); color: var(--priority-b); }
.badge-diff-1 { background: rgba(76,175,80,0.15); color: var(--diff-1); }
.badge-diff-2 { background: rgba(139,195,74,0.15); color: var(--diff-2); }
.badge-diff-3 { background: rgba(255,193,7,0.15); color: var(--diff-3); }
.badge-diff-4 { background: rgba(255,152,0,0.15); color: var(--diff-4); }
.badge-diff-5 { background: rgba(244,67,54,0.15); color: var(--diff-5); }
.badge-status-completed { background: rgba(76,175,80,0.12); color: var(--status-completed); }
.badge-status-in-progress { background: rgba(255,193,7,0.12); color: var(--status-in-progress); }
.badge-status-pending { background: rgba(255,152,0,0.12); color: var(--status-pending); }
.badge-world { background: rgba(255,255,255,0.06); color: var(--text-secondary); }
.badge-owner { background: rgba(123,47,247,0.12); color: var(--accent-visual); }

/* SHOT DATABASE */
.shot-database { margin-top: 8px; }
.shot-database .filter-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.shot-database .filter-bar select { padding: 8px 12px; border-radius: 8px; background: var(--bg-input); border: 1px solid rgba(255,255,255,0.08); color: var(--text-primary); font-size: 12px; font-weight: 500; cursor: pointer; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.shot-card { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; transition: all var(--transition-fast); }
.shot-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.shot-card.hidden { display: none; }
.shot-card .shot-thumb { width: 100%; height: 180px; background: var(--bg-elevated); overflow: hidden; }
.shot-card .shot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shot-card .shot-thumb .shot-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); font-size: 48px; font-weight: 900; background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card)); }
.shot-card .shot-thumb .shot-placeholder small { font-size: 12px; color: var(--text-muted); margin-top: 4px; opacity: 0.6; }
.shot-card .shot-body { padding: 14px; }
.shot-card .shot-body .meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.shot-card .shot-body .meta .shot-id { font-size: 14px; font-weight: 800; }
.shot-card .shot-body .meta .shot-scene { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.shot-card .shot-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.shot-card .shot-body .tagline { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.shot-card .shot-body .description { font-size: 13px; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shot-card .shot-footer { display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid rgba(255,255,255,0.06); flex-wrap: wrap; }

/* LIGHTBOX */
.lightbox { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.92); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity var(--transition-normal); }
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox .lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox .lightbox-inner img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius-md); box-shadow: var(--shadow-xl); }
.lightbox .lightbox-inner .caption { text-align: center; padding: 12px; color: var(--text-secondary); }
.lightbox .lightbox-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); border: none; color: white; font-size: 24px; }
.lightbox .lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: white; font-size: 20px; }
.lightbox .lightbox-nav:hover { background: rgba(255,255,255,0.15); }
.lightbox .lightbox-nav.prev { left: 20px; }
.lightbox .lightbox-nav.next { right: 20px; }

/* MEETING MODE */
.meeting-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #000; z-index: 900; display: none; flex-direction: column; }
.meeting-overlay.active { display: flex; }
.meeting-overlay .meeting-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06); }
.meeting-overlay .meeting-header .meeting-title { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.meeting-overlay .meeting-header .meeting-controls { display: flex; gap: 8px; }
.meeting-overlay .meeting-header .meeting-controls button { padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); color: var(--text-secondary); font-size: 12px; font-weight: 600; }
.meeting-overlay .meeting-header .meeting-controls button:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.meeting-overlay .meeting-body { flex: 1; display: grid; grid-template-columns: 1fr 320px; overflow: hidden; }
@media (max-width: 1024px) { .meeting-overlay .meeting-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; } }
.meeting-overlay .meeting-image { display: flex; align-items: center; justify-content: center; background: #000; padding: 20px; }
.meeting-overlay .meeting-image img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; cursor: zoom-in; }
.meeting-overlay .meeting-sidebar { background: var(--bg-surface); border-left: 1px solid rgba(255,255,255,0.06); padding: 20px; overflow-y: auto; }
.meeting-overlay .meeting-sidebar .shot-counter { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; }
.meeting-overlay .meeting-sidebar h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.meeting-overlay .meeting-sidebar .tagline { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.meeting-overlay .meeting-sidebar .note-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.meeting-overlay .meeting-sidebar .note-tab { padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.08); background: transparent; color: var(--text-muted); font-size: 11px; font-weight: 600; cursor: pointer; }
.meeting-overlay .meeting-sidebar .note-tab.active { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.meeting-overlay .meeting-sidebar .note-content { font-size: 13px; line-height: 1.7; color: var(--text-secondary); }
.meeting-overlay .meeting-sidebar .note-content b { color: var(--text-primary); }
.meeting-overlay .meeting-sidebar .note-content ul { margin: 8px 0; padding-left: 16px; }
.meeting-overlay .meeting-sidebar .note-content li { list-style: disc; }
.meeting-overlay .meeting-hints { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; backdrop-filter: blur(8px); }
.meeting-overlay .meeting-hints kbd { background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.meeting-overlay .meeting-hints span { font-size: 11px; color: var(--text-muted); }

/* SECTION PAGES */
.section-header { margin-bottom: 28px; }
.section-header .section-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
.section-header h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.section-header p { color: var(--text-secondary); font-size: 15px; max-width: 600px; }
.section-content { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
.section-content p { margin-bottom: 16px; }
.section-content h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 24px 0 12px; }
.section-content h4 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin: 20px 0 8px; }
.section-content ul { margin: 8px 0 16px; padding-left: 24px; }
.section-content ul li { list-style: disc; margin-bottom: 6px; }

/* PASSPORT DETAIL */
.passport-view { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-md); overflow: hidden; }
.passport-view .passport-hero { height: 360px; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.passport-view .passport-hero img { width: 100%; height: 100%; object-fit: cover; }
.passport-view .passport-hero .passport-placeholder { display: flex; flex-direction: column; align-items: center; color: var(--text-muted); font-size: 72px; font-weight: 900; }
.passport-view .passport-hero .passport-placeholder small { font-size: 16px; opacity: 0.5; font-weight: 500; }
.passport-view .passport-info { padding: 24px; }
.passport-view .passport-info .eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-camera); margin-bottom: 6px; }
.passport-view .passport-info h3 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.passport-view .passport-info .scene-label { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.passport-view .passport-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .passport-view .passport-grid { grid-template-columns: 1fr; } }
.passport-view .passport-grid .info-block { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-sm); padding: 16px; }
.passport-view .passport-grid .info-block h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 8px; }
.passport-view .passport-grid .info-block p { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.mobile-open { display: flex; position: fixed; z-index: 200; width: 280px; }
  .main { margin-left: 0; }
  .content { padding: 16px; }
  .shot-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   UI COMPONENTS
   ============================================================ */

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.tag-default { background: var(--bg-hover); color: var(--text-secondary); }
.tag-sm { padding: 1px 6px; font-size: 10px; }

/* Status Badges */
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.status-completed { background: rgba(76,175,80,0.15); color: #4caf50; }
.status-in-progress { background: rgba(255,193,7,0.15); color: #ffc107; }
.status-pending { background: rgba(255,152,0,0.15); color: #ff9800; }
.status-todo { background: rgba(100,100,100,0.15); color: #aaa; }
.status-review { background: rgba(33,150,243,0.15); color: #2196f3; }
.status-approved { background: rgba(76,175,80,0.15); color: #4caf50; }
.status-hold { background: rgba(244,67,54,0.15); color: #f44336; }
.status-risk { background: rgba(244,67,54,0.25); color: #ff1744; }
.status-upcoming { background: rgba(100,100,100,0.15); color: #aaa; }
.status-locked { background: rgba(156,39,176,0.15); color: #9c27b0; }
.status-ready { background: rgba(0,188,212,0.15); color: #00bcd4; }
.status-active { background: rgba(76,175,80,0.15); color: #4caf50; }
.status-preparing { background: rgba(255,152,0,0.15); color: #ff9800; }
.status-standby { background: rgba(100,100,100,0.15); color: #aaa; }

/* Diff badge */
.diff-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 800; color: #fff; letter-spacing: 0.03em; }

/* Priority badge */
.prio-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 900; color: #fff; }

/* Progress Bar */
.progress-bar { position: relative; height: 24px; background: var(--bg-hover); border-radius: 12px; overflow: hidden; }
.progress-bar .progress-fill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 12px; transition: width 0.4s ease; }
.progress-bar .progress-label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 100%; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* UI Card */
.ui-card { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-md); padding: 16px; transition: all var(--transition-fast); }
.ui-card:hover { border-color: rgba(255,255,255,0.12); box-shadow: var(--shadow-md); }

/* Empty State */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { font-size: 15px; text-align: center; }

/* Toolbar */
.toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 0; flex-wrap: wrap; }
.toolbar-spacer { flex: 1; }
.toolbar-item { display: flex; align-items: center; }

/* Filter Chip */
.filter-chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--bg-hover); color: var(--text-secondary); cursor: pointer; transition: all var(--transition-fast); user-select: none; }
.filter-chip:hover { background: var(--bg-card); color: var(--text-primary); }
.filter-chip.chip-active { background: rgba(0,212,255,0.15); color: var(--accent-camera); border: 1px solid rgba(0,212,255,0.3); }

/* Image Thumb */
.img-thumb { border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--bg-elevated); }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Shot Database v2 */
.db-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.db-stat { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 8px 16px; font-size: 12px; color: var(--text-muted); }
.db-stat b { display: block; font-size: 20px; font-weight: 800; color: var(--text-primary); }
.db-stat.vfx b { color: var(--accent-vfx); }
.db-stat.plate b { color: var(--accent-camera); }
.db-stat.risk b { color: var(--priority-s); }
.db-stat.done b { color: var(--status-completed); }
.db-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.db-search { flex: 1; min-width: 200px; position: relative; }
.db-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.db-search input { width: 100%; padding: 8px 12px 8px 32px; border-radius: 8px; background: var(--bg-input); border: 1px solid rgba(255,255,255,0.08); color: var(--text-primary); font-size: 13px; }
.db-view-toggle { display: flex; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; }
.db-view-btn { padding: 6px 14px; font-size: 12px; font-weight: 600; background: transparent; color: var(--text-muted); border: none; cursor: pointer; }
.db-view-btn.active { background: var(--accent-camera); color: #000; }
.db-sort { padding: 6px 10px; border-radius: 8px; background: var(--bg-input); border: 1px solid rgba(255,255,255,0.08); color: var(--text-primary); font-size: 12px; }
.db-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.db-filter { padding: 5px 10px; border-radius: 6px; background: var(--bg-input); border: 1px solid rgba(255,255,255,0.08); color: var(--text-secondary); font-size: 11px; }
.db-filter-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-muted); cursor: pointer; }
.db-filter-chk input { accent-color: var(--accent-camera); }
.db-filter-clear { padding: 4px 12px; border-radius: 6px; background: rgba(244,67,54,0.15); color: #f44336; border: none; font-size: 11px; font-weight: 700; cursor: pointer; }
.db-body { min-height: 200px; }
.db-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; }
.db-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.db-empty h3 { font-size: 18px; color: var(--text-muted); margin-bottom: 4px; }
.db-empty p { font-size: 13px; color: var(--text-muted); }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.shot-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.shot-table th { text-align: left; padding: 8px 10px; font-weight: 700; color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid rgba(255,255,255,0.06); }
.shot-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--text-secondary); vertical-align: middle; }
.shot-table tr { cursor: pointer; transition: background var(--transition-fast); }
.shot-table tr:hover { background: var(--bg-hover); }
.shot-table .td-img { width: 50px; }
.shot-table .td-img img { width: 40px; height: 30px; object-fit: cover; border-radius: 4px; }

/* Shot Passport */
.passport { max-width: 1000px; margin: 0 auto; }
.p-back { margin-bottom: 16px; }
.p-back a { color: var(--text-muted); font-size: 13px; text-decoration: none; }
.p-back a:hover { color: var(--text-primary); }
.p-hero { width: 100%; max-height: 480px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-elevated); margin-bottom: 20px; }
.p-hero img { width: 100%; height: 100%; object-fit: contain; max-height: 480px; display: block; }
.p-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 360px; color: var(--text-muted); font-size: 72px; font-weight: 900; }
.p-placeholder small { font-size: 16px; opacity: 0.5; font-weight: 500; }
.p-head { margin-bottom: 16px; }
.p-head h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.p-tagline { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.p-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.p-badge { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 6px; font-size: 11px; font-weight: 800; color: #fff; }
.p-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-secondary); margin-bottom: 16px; padding: 12px; background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.06); }
.p-meta span b { color: var(--text-primary); }
.passport-tabs { display: flex; gap: 2px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px; }
.passport-tab { padding: 8px 16px; font-size: 12px; font-weight: 600; background: transparent; color: var(--text-muted); border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: all var(--transition-fast); }
.passport-tab:hover { color: var(--text-primary); }
.passport-tab.tab-active { color: var(--accent-camera); border-bottom-color: var(--accent-camera); }
.p-tab-panel { min-height: 200px; }
.p-tab-content h4 { font-size: 13px; font-weight: 700; color: var(--text-primary); margin: 16px 0 6px; }
.p-tab-content p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.p-tab-content ul { padding-left: 20px; margin: 8px 0; }
.p-tab-content li { font-size: 13px; color: var(--text-secondary); line-height: 1.7; list-style: disc; }

/* Import Review */
.ir-overview { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ir-stat { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 10px 18px; font-size: 12px; color: var(--text-muted); }
.ir-stat b { display: block; font-size: 22px; font-weight: 800; }
.ir-stat.matched b { color: #4caf50; }
.ir-stat.changed b { color: #ffc107; }
.ir-stat.missing b { color: #f44336; }
.ir-stat.new b { color: #2196f3; }
.ir-summary { margin-bottom: 16px; font-size: 12px; }
.ir-summary table { border-collapse: collapse; }
.ir-summary td { padding: 3px 12px; }
.ir-summary .yellow { color: #ffc107; }
.ir-summary .red { color: #f44336; }
.ir-summary .blue { color: #2196f3; }
.ir-toolbar { display: flex; gap: 6px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.ir-filter { padding: 5px 14px; border-radius: 6px; background: var(--bg-input); border: 1px solid rgba(255,255,255,0.08); color: var(--text-secondary); font-size: 11px; cursor: pointer; }
.ir-filter.active { background: var(--accent-camera); color: #000; border-color: var(--accent-camera); }
.ir-spacer { flex: 1; }
.ir-export { padding: 5px 14px; border-radius: 6px; background: var(--accent-production); color: #000; border: none; font-size: 11px; font-weight: 700; cursor: pointer; }
.ir-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ir-table th { text-align: left; padding: 8px 10px; font-weight: 700; color: var(--text-muted); font-size: 10px; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ir-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--text-secondary); vertical-align: middle; }
.ir-table tr { cursor: pointer; transition: background var(--transition-fast); }
.ir-table tr:hover { background: var(--bg-hover); }
.ir-table .ir-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.ir-badge.ir-state-matched { background: rgba(76,175,80,0.15); color: #4caf50; }
.ir-badge.ir-state-changed { background: rgba(255,193,7,0.15); color: #ffc107; }
.ir-badge.ir-state-missing { background: rgba(244,67,54,0.15); color: #f44336; }
.ir-badge.ir-state-new { background: rgba(33,150,243,0.15); color: #2196f3; }
.ir-detail { max-height: 70vh; overflow-y: auto; }
.ir-detail-hero { width: 100%; height: 200px; background: var(--bg-elevated); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 16px; }
.ir-detail-hero img { width: 100%; height: 100%; object-fit: contain; }
.ir-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 768px) { .ir-compare-grid { grid-template-columns: 1fr; } }
.ir-compare-col { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-sm); padding: 12px; }
.ir-compare-col h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.ir-compare-col p { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; line-height: 1.6; }
.ir-warnings { background: rgba(244,67,54,0.08); border: 1px solid rgba(244,67,54,0.2); border-radius: var(--radius-sm); padding: 12px; }
.ir-warnings h4 { font-size: 13px; color: #f44336; margin-bottom: 4px; }
.ir-warnings li { font-size: 12px; color: #e57373; list-style: disc; margin-left: 16px; }

.ir-warning-banner { background: rgba(255,193,7,0.12); border: 1px solid rgba(255,193,7,0.3); border-radius: 8px; padding: 8px 14px; font-size: 12px; color: #ffc107; margin-bottom: 16px; }
/* Asset Browser */
.as-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.as-stat { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 8px 16px; font-size: 12px; color: var(--text-muted); }
.as-stat b { display: block; font-size: 20px; font-weight: 800; color: var(--text-primary); }
.as-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.as-search { flex: 1; min-width: 180px; }
.as-search input { width: 100%; padding: 8px 12px; border-radius: 8px; background: var(--bg-input); border: 1px solid rgba(255,255,255,0.08); color: var(--text-primary); font-size: 13px; }
.as-view-toggle { display: flex; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; }
.as-view-btn { padding: 6px 14px; font-size: 12px; font-weight: 600; background: transparent; color: var(--text-muted); border: none; cursor: pointer; }
.as-view-btn.active { background: var(--accent-camera); color: #000; }
.as-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.as-filter { padding: 5px 10px; border-radius: 6px; background: var(--bg-input); border: 1px solid rgba(255,255,255,0.08); color: var(--text-secondary); font-size: 11px; }
.as-filter-clear { padding: 4px 12px; border-radius: 6px; background: rgba(244,67,54,0.15); color: #f44336; border: none; font-size: 11px; font-weight: 700; cursor: pointer; }
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.as-card { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; transition: all var(--transition-fast); }
.as-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.as-thumb { width: 100%; height: 160px; background: var(--bg-elevated); overflow: hidden; }
.as-thumb img { width: 100%; height: 100%; object-fit: cover; }
.as-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px; }
.as-card .as-body { padding: 10px; }
.as-card .as-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.as-card .as-meta { display: flex; gap: 6px; font-size: 11px; margin-bottom: 4px; }
.as-status { padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.as-status-available { background: rgba(76,175,80,0.15); color: #4caf50; }
.as-tag { display: inline-block; padding: 1px 6px; border-radius: 4px; background: var(--bg-hover); color: var(--text-muted); font-size: 10px; margin: 1px; }
.as-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.as-table th { text-align: left; padding: 8px 10px; font-weight: 700; color: var(--text-muted); font-size: 10px; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.06); }
.as-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--text-secondary); vertical-align: middle; }
.as-table tr { cursor: pointer; transition: background var(--transition-fast); }
.as-table tr:hover { background: var(--bg-hover); }
.as-table .as-td-img { width: 50px; }
.as-table .as-td-img img { width: 40px; height: 30px; object-fit: cover; border-radius: 4px; }
.as-body-c { min-height: 200px; }
.as-detail-img { width: 100%; max-height: 400px; background: var(--bg-elevated); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; }
.as-detail-img img { max-width: 100%; max-height: 400px; object-fit: contain; }
.as-detail-meta td { padding: 4px 12px; font-size: 12px; }
.as-detail-meta td:first-child { font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.as-detail-meta code { word-break: break-all; font-size: 11px; }
.pp-header { margin-bottom: 8px; }
.pp-header h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.pp-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.pp-logline { font-size: 14px; color: var(--text-secondary); font-style: italic; margin-bottom: 8px; padding: 8px 12px; background: var(--bg-card); border-radius: var(--radius-sm); border-left: 3px solid var(--accent-camera); }
.pp-tagrow { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.pp-tag { display: inline-block; padding: 2px 10px; border-radius: 12px; background: rgba(0,212,255,0.12); color: var(--accent-camera); font-size: 11px; font-weight: 600; }
.pp-card { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-md); padding: 16px; margin-bottom: 16px; }
.pp-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.pp-char { background: var(--bg-elevated); border: 1px solid rgba(255,255,255,0.04); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 8px; }
.pp-char .pp-role { font-size: 11px; color: var(--accent-camera); font-weight: 600; }
.pp-char p { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.pp-empty { color: var(--text-muted); font-size: 13px; font-style: italic; }
.pp-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; }
.pp-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.pp-empty-state h3 { font-size: 18px; color: var(--text-muted); margin-bottom: 4px; }
.pp-empty-state p { font-size: 13px; color: var(--text-muted); }
.pp-warn { background: rgba(255,193,7,0.1); border: 1px solid rgba(255,193,7,0.3); border-radius: var(--radius-sm); padding: 8px 14px; font-size: 12px; color: #ffc107; margin-bottom: 16px; }
.acq-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.acq-stat { background: var(--bg-elevated); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 8px 16px; font-size: 11px; color: var(--text-muted); }
.acq-stat b { display: block; font-size: 20px; font-weight: 800; color: var(--text-primary); }
.acq-stat.risk b { color: #f44336; }
.acq-stat.warn b { color: #ffc107; }
.pp-risk { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.pp-risk-mandatory, .pp-risk-high { background: rgba(244,67,54,0.15); color: #f44336; }
.pp-risk-recommended, .pp-risk-medium { background: rgba(255,193,7,0.15); color: #ffc107; }
.pp-risk-optional, .pp-risk-low { background: rgba(76,175,80,0.15); color: #4caf50; }
.pp-strat-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pp-strat-table th { text-align: left; padding: 6px 8px; font-weight: 700; color: var(--text-muted); font-size: 10px; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.06); }
.pp-strat-table td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--text-secondary); vertical-align: middle; }
.pp-strat-table a { color: var(--accent-camera); text-decoration: none; }
.pp-strat-table a:hover { text-decoration: underline; }
 /* Project Profile Gallery */
.pp-hero { position: relative; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 20px; }
.pp-hero-bg img { width: 100%; max-height: 400px; object-fit: cover; filter: brightness(0.5); }
.pp-hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); }
.pp-hero-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.pp-hero-artist { font-size: 16px; color: rgba(255,255,255,0.7); }
.pp-hero-ph { color: rgba(255,255,255,0.4); font-size: 12px; padding: 4px; }
.pp-hero-format { font-size: 13px; color: var(--accent-camera); margin: 4px 0; }
.pp-hero-logline { font-size: 14px; color: var(--text-secondary); margin-top: 8px; padding: 10px; background: rgba(0,0,0,0.3); border-radius: var(--radius-sm); }
.pp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pp-gcard { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; transition: transform var(--transition-fast); background: var(--bg-elevated); border: 1px solid rgba(255,255,255,0.06); }
.pp-gcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent-camera); }
.pp-gcard img { width: 100%; height: 140px; object-fit: cover; display: block; }
.pp-glabel { position: absolute; bottom: 0; left: 0; right: 0; padding: 6px 8px; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.8)); }
.pp-gcard-na { display: flex; align-items: center; justify-content: center; height: 140px; font-size: 12px; color: var(--text-muted); background: var(--bg-hover); }
.pp-sb-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.pp-sb-strip .pp-gcard { min-width: 200px; flex-shrink: 0; }
.pp-sb-strip .pp-gcard img { height: 120px; }

 .pp-hero-bg { position: relative; }
.pp-err { display: flex; align-items: center; justify-content: center; height: 140px; font-size: 11px; color: var(--text-muted); background: var(--bg-hover); border-radius: var(--radius-sm); }
:root{--bible-blue:#1a3c6d;--bible-deep:#0d1f3c;--bible-paper:#f5f0e8;--bible-ink:#1a1a2e;--bible-noir:#0a0a0f;--bible-muted:#8a8fa0;--bible-glow:#c9a84c;--bible-red:#c0392b;--bible-amber:#d35400}
.bible-page{max-width:1400px;margin:0 auto;padding:0;font-family:'Inter',sans-serif;background:var(--bg-deep);color:#fff;overflow:hidden}
.bible-hero{position:relative;width:100%;min-height:85vh;overflow:hidden;background:linear-gradient(180deg,var(--bible-deep),var(--bible-blue))}
.bible-hero-bg{position:absolute;inset:0}
.bible-hero-bg img{width:100%;height:100%;object-fit:cover;opacity:0.45;mix-blend-mode:screen}
.bible-hero-overlay{position:absolute;inset:0;display:flex;align-items:center;background:radial-gradient(ellipse at center,transparent 30%,rgba(10,10,20,0.8) 85%)}
.bible-hero-content{max-width:900px;margin:0 auto;padding:60px 40px;text-align:center}
.bible-kicker{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:0.15em;color:rgba(255,255,255,0.6);margin-bottom:20px}
.bible-title{font-size:clamp(42px,8vw,96px);font-weight:900;line-height:0.88;letter-spacing:-0.04em;text-transform:uppercase;margin:0 0 16px;text-shadow:0 4px 40px rgba(0,0,0,0.5)}
.bible-subtitle{font-size:18px;font-weight:400;letter-spacing:0.2em;text-transform:uppercase;color:rgba(255,255,255,0.5);margin-bottom:24px}
.bible-tags-row{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-bottom:16px}
.bible-tag{display:inline-block;padding:4px 14px;border-radius:20px;font-size:11px;font-weight:600;background:rgba(255,255,255,0.1);color:rgba(255,255,255,0.8);border:1px solid rgba(255,255,255,0.15)}
.bible-logline{font-size:16px;color:rgba(255,255,255,0.7);line-height:1.7;margin-bottom:20px;max-width:650px;margin-left:auto;margin-right:auto}
.bible-meta-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.bible-meta-chips span{padding:6px 16px;border-radius:6px;font-size:11px;font-weight:700;background:rgba(201,168,76,0.15);color:var(--bible-glow);border:1px solid rgba(201,168,76,0.3)}
.bible-section{margin:60px 0;padding:0 40px}
.bible-section.bible-paper{background:var(--bible-paper);color:var(--bible-ink);padding:60px 40px;margin:0}
.bible-section.bible-noir{background:var(--bible-noir);color:#fff;padding:60px 40px;margin:0}
.bible-section-header{margin-bottom:30px;text-align:center}
.bible-section-title{font-size:clamp(28px,5vw,48px);font-weight:900;letter-spacing:-0.03em;text-transform:uppercase}
.bible-editorial-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}@media(max-width:768px){.bible-editorial-grid{grid-template-columns:1fr}}
.bible-pullquote{font-size:22px;font-weight:700;line-height:1.4;margin-bottom:20px;padding:20px 0;border-left:4px solid var(--bible-blue);padding-left:20px;color:var(--bible-blue)}
.bible-image-card{position:relative;border-radius:12px;overflow:hidden;background:#1a1a2e;cursor:pointer;transition:transform 0.3s ease}
.bible-image-card:hover{transform:scale(1.02)}
.bible-image-card img{width:100%;height:100%;object-fit:cover;display:block}
.bible-image-label{position:absolute;bottom:0;left:0;right:0;padding:10px 14px;font-size:12px;font-weight:700;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,0.8))}
.bible-treatment{display:grid;grid-template-columns:1.2fr 1fr;gap:30px}@media(max-width:768px){.bible-treatment{grid-template-columns:1fr}}
.bible-treatment-feature .bible-image-card{height:500px}
.bible-treatment-card .bible-image-card{height:240px}
.bible-treatment-text{display:flex;flex-direction:column;justify-content:center}
.bible-char-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}@media(max-width:768px){.bible-char-grid{grid-template-columns:1fr}}
.bible-char-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,0.08)}
.bible-char-card .bible-image-card{height:280px}
.bible-char-info{padding:16px}
.bible-char-info h3{font-size:18px;font-weight:800;color:var(--bible-ink);margin-bottom:4px}
.bible-char-role{font-size:13px;color:var(--bible-muted);margin-bottom:8px}
.bible-char-meaning{font-size:13px;color:var(--bible-ink);line-height:1.6}
.bible-char-notes{font-size:12px;color:var(--bible-muted);margin-top:4px;font-style:italic}
.bible-moodboard{display:flex;flex-direction:column;gap:20px}
.bible-moodboard-large .bible-image-card{height:400px}
.bible-moodboard-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.bible-moodboard-grid .bible-image-card{height:180px}
.bible-filmstrip{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x mandatory}
.bible-filmstrip-frame{min-width:300px;scroll-snap-align:start}
.bible-filmstrip-frame .bible-image-card{height:220px}
.bible-risk-highlights{margin-top:30px}
.bible-risk-highlights h3{font-size:16px;font-weight:800;margin-bottom:12px}
.bible-risk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.bible-risk-card{background:var(--bible-noir);border:1px solid rgba(255,255,255,0.08);border-radius:8px;padding:14px;text-align:center}
.bible-shot-link{display:inline-flex;align-items:center;gap:6px;color:var(--bible-blue);font-weight:800;text-decoration:none}
.bible-shot-link:hover{color:var(--bible-glow)}
.bible-shot-pill{display:inline-block;padding:3px 12px;border-radius:20px;font-size:12px;font-weight:700;background:rgba(26,60,109,0.15);color:var(--bible-blue);text-decoration:none;border:1px solid var(--bible-blue)}
.bible-shot-pill:hover{background:var(--bible-blue);color:#fff}
.bible-control{color:#fff}
.bible-stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;margin-bottom:24px}
.bible-stat{background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.08);border-radius:12px;padding:20px;text-align:center}
.bible-stat-num{display:block;font-size:42px;font-weight:900;line-height:1}
.bible-stat-label{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.1em;color:var(--bible-muted);margin-top:8px}
.bible-stat-blue .bible-stat-num{color:var(--bible-blue)}
.bible-stat-red .bible-stat-num{color:var(--bible-red)}
.bible-risk-bar{background:rgba(192,57,43,0.1);border:1px solid rgba(192,57,43,0.3);border-radius:8px;padding:12px 16px;margin-bottom:24px;font-size:13px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bible-risk-bar span{font-weight:700;color:var(--bible-red)}
.bible-table-wrap{overflow-x:auto;margin-bottom:20px}
.bible-table{width:100%;border-collapse:collapse;font-size:12px}
.bible-table th{text-align:left;padding:8px 12px;font-weight:700;color:var(--bible-muted);font-size:10px;text-transform:uppercase;letter-spacing:0.05em;border-bottom:1px solid rgba(255,255,255,0.1)}
.bible-table td{padding:8px 12px;border-bottom:1px solid rgba(255,255,255,0.04)}
.bible-location{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:start}@media(max-width:768px){.bible-location{grid-template-columns:1fr}}
.bible-location-hero .bible-image-card{height:400px}
.bible-location-info h3{font-size:22px;font-weight:900;color:var(--bible-ink);margin-bottom:12px}
.bible-location-info p{font-size:14px;line-height:1.7;color:var(--bible-ink);margin-bottom:8px}
.bible-location-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}@media(max-width:768px){.bible-location-cards{grid-template-columns:1fr}}
.bible-location-cards .bible-image-card{height:180px}
.bible-footer{text-align:center;padding:60px 40px;background:var(--bible-noir)}
.bible-footer-title{font-size:24px;font-weight:900;text-transform:uppercase;letter-spacing:0.1em;margin-bottom:8px}
.bible-footer-sub{font-size:13px;color:var(--bible-muted);margin-bottom:8px}
.bible-footer-note{font-size:11px;color:rgba(255,255,255,0.3)}
.bible-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:100px 20px;color:var(--text-muted)}
.bible-empty-icon{font-size:48px;margin-bottom:16px;opacity:0.5}
.bible-loading{text-align:center;padding:100px 20px;color:var(--text-muted)}
.bible-hero-split{display:grid;grid-template-columns:1fr 1fr;gap:40px;min-height:80vh;padding:40px;align-items:center;background:linear-gradient(135deg,var(--bible-deep) 0%,#0a0a14 50%,var(--bible-blue) 100%)}
.bible-hero-text{display:flex;flex-direction:column;justify-content:center;padding-right:20px}
.bible-hero-text .bible-title{font-size:clamp(36px,6vw,80px);margin-bottom:12px}
.bible-hero-poster{display:flex;align-items:center;justify-content:center}
.bible-hero-poster .bible-image-card{border-radius:16px;box-shadow:0 8px 40px rgba(0,0,0,0.5),0 0 60px rgba(26,60,109,0.3);max-width:450px;width:100%}
.bible-hero-poster .bible-image-card img{object-fit:contain;background:#0d1220}
.bible-hero-poster .bible-image-label{font-size:10px;opacity:0.6}@media(max-width:768px){.bible-hero-split{grid-template-columns:1fr;min-height:auto;padding:24px;gap:24px}.bible-hero-text{padding-right:0}}
.sidebar{background:var(--bible-deep)!important;box-shadow:2px 0 20px rgba(0,0,0,0.4)}
.sidebar .brand{border-bottom:1px solid rgba(255,255,255,0.08)!important;padding:24px 16px 16px!important}
.sidebar .brand h1{color:var(--bible-glow)!important;text-shadow:0 0 10px rgba(201,168,76,0.3)}
.sidebar .project-name{font-weight:600;letter-spacing:0.03em;padding:14px 16px!important;border-bottom:1px solid rgba(255,255,255,0.06)!important}
.sidebar .nav-section{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:0.18em;padding:18px 16px 6px!important;color:rgba(255,255,255,0.3)}
.sidebar .nav-item{padding:7px 16px!important;margin:1px 10px!important;border-radius:4px!important;font-size:12px;color:rgba(255,255,255,0.55);border-left:2px solid transparent}
.sidebar .nav-item:hover{color:#fff;background:rgba(255,255,255,0.06);border-left-color:rgba(255,255,255,0.2)}
.sidebar .nav-item.active{color:#fff;font-weight:600;background:rgba(26,60,109,0.3);border-left:2px solid var(--bible-blue)}
.sidebar .nav-item .icon{width:20px;text-align:center;font-size:11px;opacity:0.7}
.bible-image-card img{object-fit:contain!important;background:var(--bible-noir)}
.bible-filmstrip-frame .bible-image-card img{object-fit:contain!important;background:rgba(0,0,0,0.5)}
.bible-storyboard-page img{object-fit:contain!important;width:100%;height:100%;background:var(--bible-noir)}
.bible-nav-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:30px 0}@media(max-width:768px){.bible-nav-cards{grid-template-columns:repeat(2,1fr)}}
.bible-nav-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px 16px;background:var(--bible-noir);border:1px solid rgba(255,255,255,0.08);border-radius:12px;text-decoration:none;color:#fff;font-weight:700;transition:all 0.3s ease}
.bible-nav-card:hover{border-color:var(--bible-blue);background:rgba(26,60,109,0.15);transform:translateY(-2px)}
.bible-nav-card-icon{font-size:28px}
.bible-nav-bar{display:flex;gap:16px;padding:20px 40px;justify-content:center;background:var(--bible-noir)}
.bible-nav-bar a{color:var(--bible-muted);text-decoration:none;font-weight:600;padding:8px 16px;border:1px solid rgba(255,255,255,0.1);border-radius:8px;transition:all 0.2s ease}
.bible-nav-bar a:hover{color:#fff;border-color:var(--bible-blue)}
.bible-link-card{display:inline-block;padding:10px 20px;margin:4px;background:rgba(26,60,109,0.2);border:1px solid var(--bible-blue);border-radius:8px;color:var(--bible-blue);text-decoration:none;font-weight:700}
.bible-link-card:hover{background:var(--bible-blue);color:#fff}

.bible-page-frame{position:relative;border-radius:8px;overflow:hidden;background:var(--bible-noir);aspect-ratio:16/9;cursor:pointer;transition:transform 0.25s ease,box-shadow 0.25s ease}
.bible-page-frame:hover{transform:scale(1.015);box-shadow:0 8px 30px rgba(0,0,0,0.5)}
.bible-page-frame img{width:100%;height:100%;object-fit:contain!important;display:block}
.bible-page-frame-label{position:absolute;bottom:0;left:0;right:0;padding:6px 10px;font-size:10px;font-weight:700;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,0.75))}
.bible-image-card img{object-fit:contain!important;aspect-ratio:16/9}
.bible-spread{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:30px}
@media(max-width:768px){.bible-spread{grid-template-columns:1fr}}
.bible-spread-feature{grid-column:1/-1}
.bible-spread-feature .bible-image-card,.bible-spread-feature .bible-page-frame{max-height:550px}
.bible-spread-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(380px,1fr));gap:20px}
@media(max-width:768px){.bible-spread-grid{grid-template-columns:1fr}}
.bible-storyboard-spread{display:flex;gap:16px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x mandatory}
.bible-storyboard-spread>*{min-width:520px;max-width:680px;flex-shrink:0;scroll-snap-align:start}
@media(max-width:768px){.bible-storyboard-spread>*{min-width:320px;max-width:100%}}
.bible-moodboard-large .bible-image-card{aspect-ratio:16/9;max-height:500px}
.bible-moodboard-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px}
@media(max-width:768px){.bible-moodboard-grid{grid-template-columns:1fr}}
.bible-filmstrip{display:flex;gap:14px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x mandatory}
.bible-filmstrip-frame{min-width:500px;flex-shrink:0;scroll-snap-align:start}
@media(max-width:768px){.bible-filmstrip-frame{min-width:300px}}
.bible-filmstrip-frame .bible-image-card,.bible-filmstrip-frame .bible-page-frame{aspect-ratio:16/9;height:auto}
.bible-filmstrip-frame .bible-image-card img{object-fit:contain!important}
.bible-image-card .bible-image-label{font-size:10px;opacity:0.7}
.sc-wrap{padding:40px;max-width:800px;margin:0 auto}
.sc-cs{background:var(--bible-noir,#0a0a0f);border:1px solid rgba(255,255,255,0.08);border-radius:16px;padding:40px;color:#fff}
.sc-cs-header h2{font-size:24px;font-weight:900;letter-spacing:-0.02em;margin-bottom:8px;color:var(--bible-blue,#4a8bd6)}
.sc-cs-header p{font-size:14px;color:rgba(255,255,255,0.6);margin-bottom:24px}
.sc-cs-body h3{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:0.08em;color:var(--bible-muted,#888);margin-bottom:12px}
.sc-cs-body ul{padding-left:0;list-style:none}
.sc-cs-body li{padding:6px 0 6px 20px;font-size:13px;color:rgba(255,255,255,0.75);border-bottom:1px solid rgba(255,255,255,0.04)}
.sc-cs-body li:before{content:'\u25B8';position:absolute;margin-left:-16px;color:var(--bible-glow,#c9a84c);opacity:0.6}
.sc-cs-links{margin-top:24px;padding-top:16px;border-top:1px solid rgba(255,255,255,0.06)}
.sc-cs-links h3{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.1em;color:var(--bible-muted,#888);margin-bottom:10px}
.sc-link{display:inline-block;padding:6px 14px;margin:3px;border-radius:6px;font-size:12px;font-weight:600;background:rgba(26,60,109,0.2);border:1px solid rgba(26,60,109,0.3);color:var(--bible-blue,#4a8bd6);text-decoration:none;transition:all .2s ease}
.sc-link:hover{background:var(--bible-blue,#4a8bd6);color:#fff}
.sc-cs-footer{margin-top:20px;padding-top:12px;border-top:1px solid rgba(255,255,255,0.04)}
.sc-cs-footer p{font-size:11px;color:rgba(255,255,255,0.3);text-align:center}

/* Sprint S4: Bible Layout Composition Fix */
.content:has(.bible-page) { padding: 0; background: #07101f; }
.bible-page {
  width: min(1500px, calc(100vw - var(--sidebar-width) - 80px));
  max-width: none;
  margin: 0 auto;
  background: #07101f;
}
.bible-section {
  margin: 0;
  padding: 64px clamp(28px, 4vw, 72px);
}
.bible-section.bible-paper {
  background: linear-gradient(135deg, #f7f1e7 0%, #e9dfcf 100%);
  color: #17213a;
}
.bible-section.bible-noir {
  background: linear-gradient(135deg, #080b12 0%, #0d1f3c 100%);
  color: #e8edf7;
}
.bible-section-header {
  text-align: left;
  margin-bottom: 34px;
}
.bible-section-title {
  max-width: 980px;
  line-height: 0.96;
  color: inherit;
}
.bible-section-body {
  color: inherit;
}
.bible-section-body p,
.bible-editorial-text p,
.bible-visual-text p,
.bible-visual-intro p,
.bible-location-info p {
  color: inherit;
  font-size: 15px;
  line-height: 1.75;
}
.bible-cover-hero {
  min-height: min(760px, calc(100vh - 90px));
  padding: clamp(36px, 5vw, 72px);
}
.bible-cover-hero .bible-hero-poster .bible-image-card {
  max-width: 640px;
}
.bible-cover-hero .bible-image-card,
.bible-spread-feature .bible-image-card,
.bible-moodboard-hero .bible-image-card,
.bible-location-hero .bible-image-card {
  min-height: 460px;
}
.bible-image-card {
  border-radius: 10px;
  background: #08101d;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
}
.bible-image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: #08101d;
}
.bible-image-label,
.bible-image-card .bible-image-label {
  font-size: 12px;
  opacity: 1;
  color: #fff;
  letter-spacing: 0.02em;
  padding: 9px 12px;
}
.bible-story-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
  min-height: 420px;
}
.bible-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bible-story-copy h1,
.bible-visual-intro h3 {
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: 0;
  margin: 0 0 22px;
  color: #13264f;
}
.bible-lead {
  font-size: clamp(18px, 2.2vw, 30px) !important;
  line-height: 1.38 !important;
  color: #17213a !important;
  max-width: 980px;
}
.bible-paper-note,
.bible-arc-panel,
.bible-location-info {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(26,60,109,0.18);
  border-left: 5px solid var(--bible-blue);
  border-radius: 10px;
  padding: 24px;
  color: #17213a;
  box-shadow: 0 12px 36px rgba(26,32,46,0.08);
}
.bible-arc-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bible-arc-panel li {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(26,60,109,0.12);
  color: #17213a;
}
.bible-arc-panel li:last-child { border-bottom: 0; }
.bible-editorial-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
}
.bible-editorial-image .bible-image-card {
  min-height: 420px;
}
.bible-pullquote {
  color: #123a74;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.24;
}
.bible-treatment.bible-spread-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.bible-spread-feature .bible-image-card {
  min-height: 560px;
}
.bible-spread-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bible-spread-grid .bible-image-card {
  min-height: 360px;
}
.bible-treatment-text {
  max-width: 1050px;
}
.bible-visual {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.bible-visual-intro {
  position: sticky;
  top: 24px;
  background: #10264f;
  color: #e8edf7;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 18px 44px rgba(16,38,79,0.22);
}
.bible-visual-intro h3 {
  color: #fff;
  font-size: clamp(34px, 4vw, 60px);
}
.bible-visual-intro p {
  color: #dce6f8 !important;
}
.bible-asym-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bible-asym-grid > .bible-image-card,
.bible-asym-grid > .bible-moodboard-hero {
  grid-column: span 3;
}
.bible-moodboard-hero {
  grid-column: span 6 !important;
}
.bible-moodboard-hero.alt {
  grid-column: span 4 !important;
}
.bible-moodboard-hero .bible-image-card {
  min-height: 520px;
}
.bible-moodboard-hero.alt .bible-image-card {
  min-height: 440px;
}
.bible-asym-grid > .bible-image-card {
  min-height: 300px;
}
.bible-location {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: stretch;
}
.bible-location-hero .bible-image-card {
  min-height: 520px;
}
.bible-location-info {
  align-self: center;
  background: #f8f1e6;
  color: #17213a;
}
.bible-location-info h3 {
  color: #10264f;
  font-size: clamp(28px, 3vw, 46px);
}
.bible-location-info p {
  color: #1f2a3d !important;
}
.bible-location-cards {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bible-location-cards .bible-image-card {
  min-height: 280px;
}
.bible-filmstrip {
  gap: 22px;
  padding-bottom: 18px;
}
.bible-filmstrip-frame {
  min-width: min(760px, 76vw);
}
.bible-filmstrip-frame .bible-image-card {
  min-height: 430px;
}
.bible-risk-highlights {
  background: #10264f;
  color: #e8edf7;
  border-radius: 10px;
  padding: 24px;
}
.bible-risk-card {
  background: rgba(255,255,255,0.08);
}
.bible-control,
.bible-table,
.bible-table td {
  color: #e8edf7;
}
.bible-table {
  font-size: 13px;
}
.bible-table th {
  color: #aeb8cc;
  font-size: 11px;
}
.bible-table td {
  padding: 12px 14px;
}
.bible-stat-label,
.bible-footer-sub {
  color: #aeb8cc;
}
.bible-nav-cards {
  padding: 44px clamp(28px, 4vw, 72px);
  background: #07101f;
}
.bible-nav-card {
  min-height: 128px;
  border-radius: 8px;
}
.sidebar .nav-section-coming-soon {
  margin-top: 8px;
  color: rgba(255,255,255,0.24) !important;
}
.sidebar .nav-item-soon {
  opacity: 0.48;
  font-size: 11px;
}
.sidebar .nav-item-soon:hover {
  opacity: 0.8;
}
@media (max-width: 1100px) {
  .bible-page { width: 100%; }
  .bible-story-lead,
  .bible-editorial-grid,
  .bible-visual,
  .bible-location {
    grid-template-columns: 1fr;
  }
  .bible-visual-intro { position: static; }
  .bible-asym-grid { grid-template-columns: 1fr; }
  .bible-asym-grid > .bible-image-card,
  .bible-asym-grid > .bible-moodboard-hero,
  .bible-moodboard-hero.alt {
    grid-column: auto !important;
  }
  .bible-spread-grid,
  .bible-location-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .content:has(.bible-page) { padding: 0; }
  .bible-section { padding: 42px 20px; }
  .bible-cover-hero { padding: 28px 20px; }
  .bible-spread-feature .bible-image-card,
  .bible-moodboard-hero .bible-image-card,
  .bible-location-hero .bible-image-card,
  .bible-filmstrip-frame .bible-image-card {
    min-height: 240px;
  }
}
/* Direction A/C Hybrid — overrides for dark theme */
.app { grid-template-columns: 280px 1fr; }
.main { grid-column: 2; background: #faf7f2; }
.content { padding: 0; }
body { background: #faf7f2; color: #1a1a2e; }
.bible-page { max-width: 100%; margin: 0; background: #faf7f2; }
.bible-section { margin: 0; padding: 60px 40px; }
.bible-section.bible-paper { background: #f5f0e8; color: #1a1a2e; }
.bible-section.bible-noir { background: #0d0d14; color: #e0e0e8; padding: 60px 40px; }
.bible-hero-split { background: linear-gradient(135deg,#f5f0e8 0%,#e8e0d4 100%); padding: 60px 40px; min-height: auto; gap: 40px; align-items: center; }
.bible-hero-text .bible-kicker { color: #1a3c6d; }
.bible-hero-text .bible-title { color: #1a3c6d; text-shadow: none; }
.bible-hero-text .bible-subtitle { color: #4a4a5a; }
.bible-hero-text .bible-logline { background: rgba(26,60,109,0.04); color: #4a4a5a; }
.bible-tag { background: #1a3c6d; color: #fff; border: none; }
.bible-meta-chips span { background: #1a3c6d; color: #fff; border: none; }
.bible-pullquote { color: #1a3c6d; border-left-color: #c9a84c; }
.bible-editorial-text p { color: #1a1a2e; }
.bible-section-title { color: #1a3c6d; }
.bible-card, .bible-feature-card, .bible-treatment-text { background: #fff; }
.bible-char-card { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.bible-char-info h3 { color: #1a3c6d; }
.sidebar{border-right:none;box-shadow:2px 0 30px rgba(0,0,0,0.3)}
.sidebar .brand h1{text-shadow:0 0 20px rgba(201,168,76,0.2)}
.sidebar .nav-item.active{background:rgba(42,92,160,0.25);border-left:2px solid #2a5ca0}
.topbar{background:#f5f0e8;border-bottom:1px solid rgba(0,0,0,0.06)}
.topbar .breadcrumb strong{color:#1a3c6d}
.topbar .breadcrumb{color:#4a4a5a}
.topbar .search-wrap input{background:#fff;border:1px solid rgba(0,0,0,0.08);color:#1a1a2e}
.bible-filmstrip-frame{min-width:600px}
.bible-filmstrip-frame .bible-image-card{height:340px;background:#fff}
.bible-filmstrip-frame .bible-image-card img{object-fit:contain!important}
.bible-moodboard-large .bible-image-card{height:460px;background:#fff}
.bible-moodboard-grid .bible-image-card{height:200px;background:#fff}
.bible-treatment-feature .bible-image-card{height:520px}
.bible-treatment-card .bible-image-card{height:260px}
.bible-char-card .bible-image-card{height:280px}
.bible-location-hero .bible-image-card{height:400px}
.bible-location-cards .bible-image-card{height:180px}
.bible-control{background:#0d0d14}
.bible-stat{background:#16161f;border:1px solid rgba(255,255,255,0.06)}
.bible-stat-num{color:#e0e0e8}
.bible-stat-label{color:#7a7a8a}
.bible-stat-blue .bible-stat-num{color:#3a7bd5}
.bible-stat-red .bible-stat-num{color:#e74c3c}
.bible-table{background:#16161f;border-radius:8px}
.bible-table th{color:#7a7a8a;border-bottom-color:rgba(255,255,255,0.06)}
.bible-table td{color:#e0e0e8;border-bottom-color:rgba(255,255,255,0.03)}
.bible-shot-pill{background:rgba(58,123,213,0.15);color:#3a7bd5;border-color:#3a7bd5}
.bible-risk-bar{background:rgba(231,76,60,0.08);border-color:rgba(231,76,60,0.2)}
.bible-risk-bar span{color:#e74c3c}
.bible-nav-card{background:#fff;border:1px solid rgba(0,0,0,0.06);color:#1a3c6d}
.bible-nav-card:hover{border-color:#1a3c6d;background:rgba(26,60,109,0.04)}
.bible-link-card{background:rgba(26,60,109,0.06);border-color:#1a3c6d;color:#1a3c6d}
.bible-link-card:hover{background:#1a3c6d;color:#fff}
.bible-footer{background:#0d1f3c;padding:40px}
.bible-footer-title{color:#c9a84c}
.sc-cs{background:#fff;border:1px solid rgba(0,0,0,0.06);color:#1a1a2e}
.sc-cs-header h2{color:#1a3c6d}
.sc-cs-body li{color:#1a1a2e;border-bottom-color:rgba(0,0,0,0.04)}
.sc-link{background:rgba(26,60,109,0.08);border-color:rgba(26,60,109,0.2);color:#1a3c6d}
.sc-link:hover{background:#1a3c6d;color:#fff}
@media(max-width:768px){.bible-hero-split{grid-template-columns:1fr;padding:30px 20px}.bible-section{padding:30px 20px}.bible-filmstrip-frame{min-width:320px}.bible-filmstrip-frame .bible-image-card{height:200px}}

/* ── Shot Passport Feedback Tab ─────────────────────────── */
.p-feedback-content {
  padding: 16px;
}

.bible-table th {
  color: rgba(244,239,230,0.66);
  background: rgba(0,0,0,0.18);
  border-bottom-color: rgba(255,255,255,0.12);
}

.bible-table td {
  border-bottom-color: rgba(255,255,255,0.07);
}

.bible-risk-bar {
  background: rgba(196,154,69,0.12);
  border-color: rgba(196,154,69,0.28);
  color: #f4efe6;
}

.bible-risk-bar span {
  color: #f0c46a;
}

.bible-shot-pill {
  background: rgba(240,196,106,0.14);
  border-color: rgba(240,196,106,0.44);
  color: #f4d17c;
}

/* Asset Browser as premium contact sheet */
.section-header,
.dashboard-header {
  color: var(--surface-ink);
}

.section-header .section-eyebrow,
.dashboard-header p,
.section-header p {
  color: var(--surface-muted);
}

.section-header h2,
.dashboard-header h2 {
  color: var(--surface-cobalt);
}

.as-stats,
.as-toolbar,
.as-filters {
  max-width: 1480px;
}

.as-stat,
.db-stat,
.ir-stat,
.stat-card,
.dash-card,
.ui-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-line);
  color: var(--surface-muted);
  box-shadow: var(--surface-shadow-sm);
}

.as-stat b,
.db-stat b,
.stat-card .number,
.dash-card h3 {
  color: var(--surface-cobalt);
}

.stat-card .number {
  background: none;
  -webkit-text-fill-color: currentColor;
}

.dash-card h3 {
  border-bottom-color: var(--surface-line);
}

.dash-card li,
.section-content,
.section-content p,
.section-content li {
  color: var(--surface-muted);
}

.as-view-toggle {
  border: 1px solid var(--surface-line);
  background: var(--surface-card);
}

.as-view-btn,
.db-view-btn {
  color: var(--surface-muted);
}

.as-view-btn.active,
.db-view-btn.active,
.ir-filter.active {
  background: var(--surface-cobalt);
  color: #fff;
}

.as-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.as-card,
.shot-card {
  background: var(--surface-card);
  color: var(--surface-ink);
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  box-shadow: var(--surface-shadow-sm);
}

.as-card:hover,
.shot-card:hover {
  border-color: rgba(18,58,116,0.28);
  box-shadow: var(--surface-shadow);
}

.as-thumb,
.shot-card .shot-thumb,
.img-thumb,
.as-detail-img {
  background: #f1eadc;
}

.as-thumb img,
.as-table .as-td-img img {
  object-fit: contain;
  background: #f1eadc;
}

.as-card .as-body,
.shot-card .shot-body {
  background: var(--surface-card);
}

.as-card .as-title,
.shot-card .shot-body h3,
.shot-card .shot-body .meta .shot-id {
  color: var(--surface-cobalt);
}

.as-card .as-meta,
.as-shot,
.shot-card .shot-body .tagline,
.shot-card .shot-body .description,
.shot-card .shot-body .meta .shot-scene {
  color: var(--surface-muted);
}

.shot-card .shot-footer {
  border-top: 1px solid var(--surface-line);
  background: #fbf4e8;
}

.as-tag,
.tag-default,
.filter-chip {
  background: #f0e7d8;
  color: var(--surface-cobalt);
}

.as-status-available,
.status-completed,
.status-approved,
.status-ready {
  background: rgba(57, 133, 97, 0.14);
  color: #327a59;
}

.status-badge {
  border: 1px solid rgba(20,40,72,0.08);
}

.as-table,
.shot-table,
.ir-table {
  background: var(--surface-card);
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  overflow: hidden;
}

.as-table th,
.shot-table th,
.ir-table th {
  color: var(--surface-cobalt);
  background: #f0e7d8;
  border-bottom: 1px solid var(--surface-line);
}

.as-table td,
.shot-table td,
.ir-table td {
  color: var(--surface-ink);
  border-bottom: 1px solid rgba(20,40,72,0.08);
}

.as-table tr:hover,
.shot-table tr:hover,
.ir-table tr:hover {
  background: #f7efe2;
}

/* Shot Passport paper cleanup */
.passport {
  max-width: 1280px;
  margin: 0 auto;
  color: var(--surface-ink);
}

.p-back a {
  color: var(--surface-cobalt);
}

.p-hero {
  background: #151d2a;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--surface-shadow);
}

.p-placeholder {
  background: #151d2a;
  color: rgba(244,239,230,0.76);
}

.p-info,
.p-meta,
.p-tab-panel {
  background: var(--surface-card);
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  box-shadow: var(--surface-shadow-sm);
}

.p-info {
  padding: 24px;
}

.p-head h2,
.p-tab-content h4,
.p-meta span b {
  color: var(--surface-cobalt);
}

.p-tagline,
.p-meta,
.p-tab-content p,
.p-tab-content li {
  color: var(--surface-muted);
}

.passport-tabs {
  border-bottom: 1px solid var(--surface-line);
}

.passport-tab {
  color: var(--surface-muted);
}

.passport-tab:hover,
.passport-tab.tab-active {
  color: var(--surface-cobalt);
}

.passport-tab.tab-active {
  border-bottom-color: var(--surface-gold);
}

.p-tab-panel {
  padding: 10px 18px 18px;
}

@media (max-width: 768px) {
  .content {
    padding: 18px;
  }

  .content:has(.bible-page) {
    padding: 0;
  }

  .bible-section,
  .bible-section.bible-paper,
  .bible-section.bible-noir,
  .bible-cover-hero {
    padding: 34px 20px;
  }
}

/* ============================================================
   S4C COMPONENT SCALE / STATE / FOOTER CLEANUP
   ============================================================ */
.bible-title,
.bible-hero-text .bible-title {
  font-size: clamp(36px, 4.2vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

.bible-section-title {
  font-size: clamp(30px, 3.2vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: none;
}

.bible-story-copy h1,
.bible-visual-intro h3 {
  font-size: clamp(34px, 3.8vw, 62px);
  line-height: 1.02;
}

.bible-pullquote {
  max-width: 760px;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.34;
}

.bible-lead {
  max-width: 740px;
  font-size: clamp(17px, 1.55vw, 21px) !important;
  line-height: 1.62 !important;
}

.bible-paper-note p,
.bible-story-copy p,
.bible-editorial-text p,
.bible-treatment-text p,
.bible-visual-intro p,
.bible-location-info p,
.bible-section-body p {
  max-width: 760px;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

.bible-char-info h3,
.bible-location-info h3,
.bible-control h3,
.sc-cs-header h2 {
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.14;
}

.bible-image-card,
.bible-page-frame {
  display: flex;
  flex-direction: column;
  min-height: 0 !important;
  height: auto !important;
  background: var(--surface-card);
  overflow: hidden;
}

.bible-image-card img,
.bible-page-frame img {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  object-fit: contain !important;
}

.bible-cover-hero .bible-hero-poster .bible-image-card,
.bible-cover-hero .bible-image-card,
.bible-spread-feature .bible-image-card,
.bible-moodboard-hero .bible-image-card,
.bible-moodboard-hero.alt .bible-image-card,
.bible-location-hero .bible-image-card,
.bible-editorial-image .bible-image-card,
.bible-spread-grid .bible-image-card,
.bible-asym-grid > .bible-image-card,
.bible-location-cards .bible-image-card,
.bible-filmstrip-frame .bible-image-card,
.bible-char-card .bible-image-card {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
}

.bible-hero-poster .bible-image-card {
  max-width: min(620px, 100%);
}

.bible-image-label,
.bible-image-card .bible-image-label,
.bible-page-frame-label {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  padding: 8px 12px;
  color: var(--surface-cobalt);
  background: #fbf4e8;
  border-top: 1px solid var(--surface-line);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  opacity: 1;
}

.bible-filmstrip-frame {
  min-width: min(620px, 72vw);
}

.bible-moodboard-grid,
.bible-spread-grid {
  align-items: start;
}

.bible-story-lead {
  min-height: 0;
  align-items: start;
}

.stat-card {
  position: relative;
  border-color: var(--surface-line);
}

.stat-card:hover,
.stat-card:focus-within,
.dash-card:hover,
.as-card:hover,
.shot-card:hover,
.bible-image-card:hover,
.bible-page-frame:hover,
.bible-nav-card:hover {
  background: var(--surface-card);
  border-color: rgba(18,58,116,0.34);
  box-shadow: var(--surface-shadow);
  transform: translateY(-1px);
}

.bible-image-card:hover,
.bible-page-frame:hover {
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-item:focus-visible,
.as-card:focus-visible,
.shot-card:focus-visible,
.bible-image-card:focus-visible,
.bible-page-frame:focus-visible,
.stat-card:focus-within {
  outline: 2px solid var(--surface-gold);
  outline-offset: 2px;
}

button:active,
a:active,
.as-card:active,
.shot-card:active,
.bible-image-card:active,
.bible-page-frame:active,
.stat-card:active {
  background-color: #f2e6d3;
  color: var(--surface-cobalt);
}

.filter-chip.chip-active,
.as-view-btn.active,
.db-view-btn.active,
.ir-filter.active,
.passport-tab.tab-active,
.sidebar .nav-item.active {
  background: rgba(18,58,116,0.12) !important;
  color: var(--surface-cobalt) !important;
  border-color: rgba(18,58,116,0.34) !important;
}

.sidebar .nav-item.active {
  color: #fff !important;
  background: rgba(250,246,238,0.13) !important;
  border-left-color: var(--surface-gold) !important;
}

.as-view-btn.active,
.db-view-btn.active,
.ir-filter.active {
  background: var(--surface-cobalt) !important;
  color: #fff !important;
}

.bible-control .bible-stat:hover,
.bible-control .bible-shot-pill:hover,
.bible-control .bible-table tr:hover {
  background: rgba(244,239,230,0.12);
}

.bible-control .bible-stat-label,
.bible-section-body.bible-noir .bible-stat-label {
  color: #f4efe6;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 1;
}

.bible-nav-card:active,
.bible-link-card:active,
.sc-link:active {
  background: var(--surface-cobalt);
  color: #fff;
}

.dashboard-header h2 {
  font-size: clamp(32px, 3.2vw, 52px);
  line-height: 1.04;
}

.stat-card .label {
  color: var(--surface-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.stat-card:hover .number,
.stat-card:focus-within .number {
  color: var(--surface-gold);
}

.nav-section {
  color: rgba(250,246,238,0.56);
}

.sidebar .nav-soon-toggle {
  width: calc(100% - 20px);
  margin: 8px 10px 2px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  cursor: pointer;
}

.sidebar .nav-soon-toggle:hover {
  color: rgba(250,246,238,0.84);
}

.sidebar .nav-soon-caret {
  width: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: rgba(250,246,238,0.62);
}

.sidebar .nav-soon-group.collapsed {
  display: none;
}

@media (max-width: 768px) {
  .bible-filmstrip-frame {
    min-width: 320px;
  }

  .bible-title,
  .bible-hero-text .bible-title {
    font-size: clamp(34px, 10vw, 54px);
  }
}

/* ============================================================
   v0.6 Real VFX Bible
   ============================================================ */
.vfx-page .bible-section {
  padding-left: 0;
  padding-right: 0;
}

.vfx-route-head {
  max-width: 1280px;
}

.vfx-subtitle {
  max-width: 840px;
  color: var(--surface-cobalt) !important;
  font-size: clamp(18px, 2vw, 24px) !important;
  font-weight: 700;
}

.vfx-id-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.vfx-id-strip span,
.vfx-chip-row span,
.vfx-qc-chips span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(18,58,116,0.18);
  border-radius: 999px;
  background: #f0e7d8;
  color: var(--surface-cobalt);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 7px 10px;
}

.vfx-control {
  margin-bottom: 22px;
}

.vfx-summary-grid {
  margin-bottom: 22px;
}

.vfx-keywords {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.vfx-keywords b {
  display: block;
  margin-bottom: 10px;
  color: #f4efe6;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vfx-chip-row,
.vfx-qc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.vfx-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.vfx-shot-card,
.vfx-map-card,
.vfx-ref-card,
.vfx-qc-list article {
  overflow: hidden;
  border: 1px solid var(--surface-line);
  border-radius: 12px;
  background: var(--surface-card);
  box-shadow: var(--surface-shadow-sm);
}

.vfx-shot-card.vfx-hero {
  border-color: rgba(196,154,69,0.58);
  box-shadow: 0 18px 48px rgba(196,154,69,0.16);
}

.vfx-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #151d2a;
}

.vfx-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #151d2a;
}

.vfx-thumb span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(250,246,238,0.92);
  color: var(--surface-cobalt);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 10px;
}

.vfx-shot-body,
.vfx-map-card,
.vfx-ref-card,
.vfx-qc-list article {
  padding: 18px;
}

.vfx-shot-top,
.vfx-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.vfx-id {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--surface-cobalt);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 10px;
}

.vfx-hero-tag {
  color: #6f5015;
  background: rgba(196,154,69,0.18);
  border: 1px solid rgba(196,154,69,0.38);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 9px;
}

.vfx-shot-card h3,
.vfx-map-card h3,
.vfx-ref-card h3,
.vfx-qc-list h3 {
  margin: 0 0 10px;
  color: var(--surface-cobalt);
  font-size: 21px;
  line-height: 1.2;
}

.vfx-shot-card p,
.vfx-map-card p,
.vfx-ref-card p {
  color: var(--surface-ink) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.vfx-shot-card dl {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.vfx-shot-card dt {
  color: var(--surface-cobalt);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vfx-shot-card dd {
  margin: 0;
  color: var(--surface-ink);
  font-size: 13px;
  line-height: 1.55;
}

.vfx-warning {
  margin-top: 14px;
  border-left: 4px solid var(--surface-gold);
  background: #fbf4e8;
  color: #4a3820;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px;
}

.vfx-shot-btn {
  margin-top: 14px;
  border: 1px solid rgba(18,58,116,0.28);
  border-radius: 8px;
  background: var(--surface-cobalt);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 12px;
}

.vfx-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.vfx-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.vfx-qc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.wd-page .bible-section-body {
  display: grid;
  gap: 24px;
}

.wd-counts,
.wd-card-head,
.wd-columns,
.wd-header-compare,
.wd-plan {
  display: grid;
  gap: 14px;
}

.wd-counts {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  margin-top: 18px;
}

.wd-counts span,
.wd-badge,
.wd-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.wd-counts span {
  border: 1px solid rgba(18,58,116,0.16);
  background: #fffaf1;
  color: var(--surface-cobalt);
  padding: 9px 12px;
}

.wd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

.wd-card,
.wd-header-compare > div,
.wd-plan-block {
  border: 1px solid var(--surface-line);
  border-radius: 12px;
  background: #fffaf1;
  color: var(--surface-ink);
  box-shadow: var(--surface-shadow-sm);
  padding: 18px;
}

.wd-card-safe {
  border-color: rgba(18,58,116,0.22);
}

.wd-card-safe_to_apply {
  border-color: rgba(49,112,92,0.28);
}

.wd-card-review {
  border-color: rgba(196,154,69,0.38);
}

.wd-card-manual_review_required {
  border-color: rgba(196,154,69,0.38);
}

.wd-card-reject {
  border-color: rgba(153,58,45,0.34);
}

.wd-card-head {
  grid-template-columns: 1fr auto;
  align-items: start;
  margin-bottom: 14px;
}

.wd-card-head h3,
.wd-header-compare h3,
.wd-plan h3 {
  margin: 8px 0 0;
  color: var(--surface-cobalt);
  font-size: 20px;
  line-height: 1.2;
}

.wd-card-head > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.wd-columns,
.wd-header-compare {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wd-columns > div {
  min-width: 0;
  border-radius: 10px;
  background: #f4eddf;
  padding: 14px;
}

.wd-columns p,
.wd-header-compare p,
.wd-reason,
.wd-reject-text,
.wd-decision {
  color: var(--surface-ink) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere;
}

.wd-label {
  margin-bottom: 8px;
  background: rgba(18,58,116,0.1);
  color: var(--surface-cobalt);
  padding: 6px 9px;
}

.wd-badge {
  border: 1px solid rgba(18,58,116,0.16);
  background: #f4eddf;
  color: var(--surface-cobalt);
  padding: 6px 9px;
}

.wd-safe,
.wd-low {
  background: rgba(49,112,92,0.12);
  color: #245d4b;
}

.wd-review,
.wd-medium {
  background: rgba(196,154,69,0.18);
  color: #6f5015;
}

.wd-reject,
.wd-high {
  background: rgba(153,58,45,0.12);
  color: #87372d;
}

.wd-decision {
  margin-top: 14px;
  font-weight: 800;
}

.wd-reject-text {
  border-radius: 10px;
  background: #f4eddf;
  padding: 14px;
}

.wd-plan {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.opus-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.opus-policy {
  align-items: start;
}

.wd-plan ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.wd-plan li {
  margin: 7px 0;
}

/* ============================================================
   TIMELINE TRACKER
   ============================================================ */
.tl-header {
  padding: 16px 20px;
  background: var(--surface-cream);
  border-radius: 12px;
  margin-bottom: 16px;
}
.tl-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--surface-cobalt);
}
.tl-subtitle {
  font-size: 13px;
  color: var(--surface-ink-muted);
  margin: 0 0 12px;
}
.tl-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tl-stat {
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.tl-stat b {
  font-size: 18px;
}
.tl-stat-blocked b { color: #f44336; }
.tl-stat-progress b { color: #ffc107; }
.tl-stat-done b { color: #4caf50; }
.tl-stat-warn b { color: #ff9800; }

.tl-filters {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tl-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.tl-filter-row select,
.tl-filter-row input {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  color: var(--surface-ink);
}
.tl-filter-row input { min-width: 180px; }
.tl-quick-btn {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-cream);
  cursor: pointer;
  font-size: 12px;
}
.tl-quick-btn:hover { background: var(--surface-cobalt); color: #fff; }
.tl-clear-btn { border-color: #ccc; }
.tl-export-row {
  display: flex;
  gap: 6px;
}
.tl-export-btn,
.tl-reset-btn {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}
.tl-export-btn:hover { background: var(--surface-cobalt); color: #fff; }
.tl-reset-btn { color: #f44336; border-color: #f44336; }
.tl-reset-btn:hover { background: #f44336; color: #fff; }

.tl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}
.tl-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}
.tl-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.12); }
.tl-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.tl-id {
  font-weight: 700;
  font-size: 13px;
  color: var(--surface-ink-muted);
}
.tl-phase {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid;
}
.tl-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: auto;
}
.tl-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--surface-cobalt);
}
.tl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--surface-ink);
}
.tl-meta span { background: var(--surface-cream); padding: 2px 8px; border-radius: 4px; }
.tl-missing { color: #f44336; font-weight: 600; }
.tl-card-body {
  margin: 10px 0;
  font-size: 12px;
  color: var(--surface-ink);
}
.tl-section {
  display: flex;
  gap: 6px;
  margin: 4px 0;
}
.tl-section-label {
  font-weight: 600;
  min-width: 80px;
  color: var(--surface-ink-muted);
}
.tl-edit-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-cream);
  cursor: pointer;
  font-size: 12px;
  width: 100%;
}
.tl-edit-btn:hover { background: var(--surface-cobalt); color: #fff; }
.tl-empty {
  text-align: center;
  padding: 40px;
  color: var(--surface-ink-muted);
}
.tl-empty-icon { font-size: 36px; margin-bottom: 8px; }

/* Modal */
.tl-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.tl-modal {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
}
.tl-modal h3 { margin: 0 0 16px; color: var(--surface-cobalt); }
.tl-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tl-form-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tl-form-row label {
  font-size: 12px;
  font-weight: 600;
  color: var(--surface-ink-muted);
}
.tl-form-row input,
.tl-form-row select,
.tl-form-row textarea {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--surface-ink);
  background: #fff;
}
.tl-form-row textarea { resize: vertical; }
.tl-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.tl-btn-secondary {
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #f5f5f5;
  cursor: pointer;
  font-size: 13px;
}
.tl-btn-primary {
  padding: 7px 16px;
  border-radius: 6px;
  border: none;
  background: var(--surface-cobalt);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}
.tl-btn-primary:hover { opacity: 0.9; }
.tl-loading {
  text-align: center;
  padding: 40px;
  color: var(--surface-ink-muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .vfx-keywords {
    grid-template-columns: 1fr;
  }

  .vfx-card-grid,
  .vfx-map-grid,
  .vfx-reference-grid,
  .vfx-qc-list,
  .wd-counts,
  .wd-grid,
  .wd-columns,
  .opus-columns,
  .wd-header-compare,
  .wd-plan {
    grid-template-columns: 1fr;
  }
}

/* ── Post Timeline Tracker v0.6.2 — Editorial Paper + White Cards + Cobalt ── */
.post-timeline-page {
  padding: 32px;
  max-width: 1400px;
  margin: 0 auto;
  color: var(--surface-ink, #162033);
  background: var(--surface-paper, #f5f0e8);
  min-height: calc(100vh - var(--header-height, 52px));
}
/* ── Header ── */
.pt-header { margin-bottom: 24px; }
.pt-title-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.pt-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--surface-cobalt, #123a74); }
.pt-subtitle { font-size: 13px; color: var(--surface-ink-muted, #5d6878); margin: 4px 0 0; }
.pt-header-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pt-draft-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: rgba(196,154,69,0.15); color: var(--surface-gold, #c49a45); }
.pt-warning-banner { background: rgba(196,154,69,0.12); border: 1px solid rgba(196,154,69,0.3); border-radius: 8px; padding: 8px 12px; font-size: 12px; color: var(--surface-gold, #c49a45); margin-bottom: 12px; }
/* ── Stats (white cards, cobalt gradient numbers) ── */
.pt-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.pt-stat { background: var(--surface-card, #fff); border: 1px solid var(--surface-line, rgba(20,40,72,0.14)); border-radius: 10px; padding: 16px 12px; text-align: center; box-shadow: var(--surface-shadow-sm, 0 1px 3px rgba(18,58,116,0.08)); }
.pt-stat-num { display: block; font-size: 30px; font-weight: 900; letter-spacing: -0.02em; background: linear-gradient(135deg, var(--surface-cobalt, #123a74), #4a7bb5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pt-stat-label { display: block; font-size: 10px; font-weight: 600; color: var(--surface-ink-muted, #5d6878); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; }
.pt-stat-warn .pt-stat-num { background: linear-gradient(135deg, #e67e22, #f39c12); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pt-stat-info .pt-stat-num { background: linear-gradient(135deg, #2980b9, #3498db); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pt-stat-alert .pt-stat-num { background: linear-gradient(135deg, #c0392b, #e74c3c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
/* ── Controls (white surface, cobalt accents) ── */
.pt-controls { background: var(--surface-card, #fff); border: 1px solid var(--surface-line, rgba(20,40,72,0.14)); border-radius: 10px; padding: 14px; margin-bottom: 20px; box-shadow: var(--surface-shadow-sm, 0 1px 3px rgba(18,58,116,0.08)); }
.pt-tabs { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.pt-tab { padding: 7px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; background: transparent; color: var(--surface-ink-muted, #5d6878); border: 1px solid transparent; cursor: pointer; transition: all var(--transition-fast); }
.pt-tab:hover { color: var(--surface-cobalt, #123a74); background: rgba(18,58,116,0.06); }
.pt-tab.active { background: rgba(18,58,116,0.12); color: var(--surface-cobalt, #123a74); border-color: rgba(18,58,116,0.24); }
.pt-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pt-search { flex: 1; min-width: 160px; padding: 7px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--surface-line, rgba(20,40,72,0.14)); color: var(--surface-ink, #162033); font-size: 12px; }
.pt-search::placeholder { color: var(--surface-ink-muted, #5d6878); }
.pt-search:focus { border-color: var(--surface-cobalt, #123a74); outline: none; box-shadow: 0 0 0 2px rgba(18,58,116,0.1); }
.pt-select { padding: 7px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--surface-line, rgba(20,40,72,0.14)); color: var(--surface-ink, #162033); font-size: 11px; cursor: pointer; }
.pt-select:focus { border-color: var(--surface-cobalt, #123a74); outline: none; }
.pt-toggle { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--surface-ink-muted, #5d6878); cursor: pointer; }
.pt-toggle input { accent-color: var(--surface-cobalt, #123a74); }
/* ── Buttons ── */
.pt-btn { padding: 6px 14px; border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--surface-cobalt, #123a74); color: #fff; border: none; cursor: pointer; transition: all var(--transition-fast); }
.pt-btn:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(18,58,116,0.24); }
.pt-btn-secondary { background: var(--surface-card, #fff); color: var(--surface-ink-muted, #5d6878); border: 1px solid var(--surface-line, rgba(20,40,72,0.14)); }
.pt-btn-secondary:hover { background: rgba(18,58,116,0.06); color: var(--surface-cobalt, #123a74); border-color: rgba(18,58,116,0.24); }
.pt-btn-danger { background: rgba(192,57,43,0.1); color: #c0392b; border: 1px solid rgba(192,57,43,0.2); }
.pt-btn-danger:hover { background: rgba(192,57,43,0.18); }
/* ── View container ── */
.pt-view { min-height: 200px; }
.pt-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: var(--surface-ink-muted, #5d6878); }
.pt-empty-state .pt-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.pt-empty-state h3 { font-size: 18px; color: var(--surface-ink, #162033); margin-bottom: 4px; }
.pt-empty-state p { font-size: 13px; text-align: center; }
.pt-empty-state code { background: rgba(18,58,116,0.08); padding: 2px 6px; border-radius: 4px; font-size: 11px; color: var(--surface-cobalt, #123a74); }
.pt-empty-view { padding: 40px; text-align: center; color: var(--surface-ink-muted, #5d6878); font-size: 14px; }
/* ── Schedule / Week groups ── */
.pt-week-group { margin-bottom: 24px; }
.pt-week-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pt-week-header h3 { font-size: 17px; font-weight: 700; margin: 0; color: var(--surface-cobalt, #123a74); }
.pt-count { font-size: 11px; font-weight: 600; color: var(--surface-ink-muted, #5d6878); }
.pt-card-list { display: flex; flex-direction: column; gap: 6px; }
.pt-card { background: var(--surface-card, #fff); border: 1px solid var(--surface-line, rgba(20,40,72,0.14)); border-radius: 8px; padding: 12px; cursor: pointer; transition: all var(--transition-fast); box-shadow: var(--surface-shadow-sm, 0 1px 3px rgba(18,58,116,0.08)); }
.pt-card:hover { border-color: rgba(18,58,116,0.28); background: #fff; transform: translateX(3px); box-shadow: 0 2px 8px rgba(18,58,116,0.12); }
.pt-card-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.pt-card-id { font-size: 11px; font-weight: 800; color: var(--surface-ink-muted, #5d6878); font-family: var(--font-mono); }
.pt-card-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--surface-ink, #162033); }
.pt-card-meta { display: flex; gap: 12px; font-size: 11px; color: var(--surface-ink-muted, #5d6878); flex-wrap: wrap; }
.pt-card-proposal { font-size: 11px; color: #6b3fa0; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--surface-line, rgba(20,40,72,0.14)); }
.pt-card-meeting { font-size: 11px; color: #2980b9; }
.pt-card-compact .pt-card-title { font-size: 13px; }
.pt-risk { color: #c0392b; font-size: 11px; }
/* ── Badges ── */
.pt-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.pt-badge-line { border-radius: 3px; }
/* ── Kanban / Status lanes ── */
.pt-kanban { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pt-lane { background: var(--surface-card, #fff); border: 1px solid var(--surface-line, rgba(20,40,72,0.14)); border-radius: 10px; padding: 12px; box-shadow: var(--surface-shadow-sm, 0 1px 3px rgba(18,58,116,0.08)); }
.pt-lane-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--surface-line, rgba(20,40,72,0.14)); }
.pt-lane-cards { display: flex; flex-direction: column; gap: 6px; }
/* ── Table ── */
.pt-table-wrap { overflow-x: auto; background: var(--surface-card, #fff); border: 1px solid var(--surface-line, rgba(20,40,72,0.14)); border-radius: 10px; box-shadow: var(--surface-shadow-sm, 0 1px 3px rgba(18,58,116,0.08)); }
.pt-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pt-table th { text-align: left; padding: 10px 12px; font-weight: 700; color: var(--surface-cobalt, #123a74); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid var(--surface-line, rgba(20,40,72,0.14)); background: rgba(18,58,116,0.04); }
.pt-table td { padding: 10px 12px; border-bottom: 1px solid var(--surface-line, rgba(20,40,72,0.08)); color: var(--surface-ink, #162033); vertical-align: middle; }
.pt-table tr { cursor: pointer; transition: background var(--transition-fast); }
.pt-table tr:hover { background: rgba(18,58,116,0.04); }
.pt-table tr:last-child td { border-bottom: none; }
/* ── Meeting / Edit form ── */
.pt-meeting-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
@media (max-width: 900px) { .pt-meeting-layout { grid-template-columns: 1fr; } }
.pt-meeting-form { background: var(--surface-card, #fff); border: 1px solid var(--surface-line, rgba(20,40,72,0.14)); border-radius: 10px; padding: 24px; box-shadow: var(--surface-shadow-sm, 0 1px 3px rgba(18,58,116,0.08)); }
.pt-meeting-form h3 { font-size: 16px; font-weight: 700; margin-bottom: 18px; color: var(--surface-cobalt, #123a74); }
.pt-form-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; align-items: flex-start; }
.pt-form-row label { flex: 1; min-width: 130px; font-size: 11px; font-weight: 600; color: var(--surface-ink-muted, #5d6878); }
.pt-form-proposal label { font-size: 11px; font-style: italic; color: #6b3fa0; }
.pt-input { width: 100%; padding: 8px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--surface-line, rgba(20,40,72,0.14)); color: var(--surface-ink, #162033); font-size: 12px; margin-top: 4px; box-sizing: border-box; }
.pt-input:focus { border-color: var(--surface-cobalt, #123a74); outline: none; box-shadow: 0 0 0 2px rgba(18,58,116,0.1); }
.pt-input[readonly] { background: rgba(20,40,72,0.04); color: var(--surface-ink-muted, #5d6878); }
.pt-textarea { width: 100%; padding: 8px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--surface-line, rgba(20,40,72,0.14)); color: var(--surface-ink, #162033); font-size: 12px; font-family: inherit; margin-top: 4px; resize: vertical; box-sizing: border-box; }
.pt-textarea:focus { border-color: var(--surface-cobalt, #123a74); outline: none; box-shadow: 0 0 0 2px rgba(18,58,116,0.1); }
.pt-form-actions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.pt-form-actions .pt-btn { font-size: 12px; padding: 8px 18px; }
.pt-meeting-list { background: var(--surface-card, #fff); border: 1px solid var(--surface-line, rgba(20,40,72,0.14)); border-radius: 10px; padding: 16px; max-height: 70vh; overflow-y: auto; box-shadow: var(--surface-shadow-sm, 0 1px 3px rgba(18,58,116,0.08)); }
.pt-meeting-list h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--surface-cobalt, #123a74); }
.pt-meeting-item { padding: 8px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; transition: background var(--transition-fast); border-bottom: 1px solid var(--surface-line, rgba(20,40,72,0.08)); color: var(--surface-ink, #162033); }
.pt-meeting-item:hover { background: rgba(18,58,116,0.04); }
.pt-meeting-item.active { background: rgba(18,58,116,0.1); border-left: 3px solid var(--surface-cobalt, #123a74); }
.pt-meeting-meta { display: block; margin-top: 4px; font-size: 10px; }

/* ── Meeting Recap v0.6.2 — polished production meeting report ── */
.meeting-recap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px;
  color: var(--surface-ink, #162033);
}

.meeting-recap-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  background: linear-gradient(135deg, #fff 0%, #fbf5e9 100%);
  border: 1px solid var(--surface-line, rgba(20,40,72,0.14));
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--surface-shadow-sm, 0 1px 3px rgba(18,58,116,0.08));
}

.meeting-recap-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--surface-gold, #c49a45);
}

.meeting-recap-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.98;
  color: var(--surface-cobalt, #123a74);
  letter-spacing: 0;
}

.meeting-recap-hero-copy > p:last-child {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--surface-ink-muted, #5d6878);
}

.meeting-recap-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.meeting-recap-hero-meta span {
  display: inline-flex;
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(18,58,116,0.08);
  color: var(--surface-cobalt, #123a74);
  font-size: 12px;
  font-weight: 800;
}

.meeting-recap-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.meeting-recap-stat {
  background: #fff;
  border: 1px solid var(--surface-line, rgba(20,40,72,0.14));
  border-radius: 12px;
  padding: 16px 14px;
  box-shadow: var(--surface-shadow-sm, 0 1px 3px rgba(18,58,116,0.08));
}

.meeting-recap-stat strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  color: var(--surface-cobalt, #123a74);
}

.meeting-recap-stat span {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--surface-ink-muted, #5d6878);
}

.meeting-recap-stat--warn strong { color: #b94b3d; }

.meeting-recap-toolbar {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--surface-line, rgba(20,40,72,0.14));
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--surface-shadow-sm, 0 1px 3px rgba(18,58,116,0.08));
}

.meeting-recap-date-card,
.meeting-recap-filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meeting-recap-date-card label,
.meeting-recap-filter-grid label span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--surface-ink-muted, #5d6878);
}

.meeting-recap-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 170px auto;
  gap: 10px;
  align-items: end;
}

.meeting-recap-input,
.meeting-recap-select {
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  border: 1px solid var(--surface-line, rgba(20,40,72,0.14));
  border-radius: 8px;
  background: #fff;
  color: var(--surface-ink, #162033);
  font-size: 13px;
  padding: 8px 10px;
}

.meeting-recap-input:focus,
.meeting-recap-select:focus {
  border-color: var(--surface-cobalt, #123a74);
  outline: none;
  box-shadow: 0 0 0 2px rgba(18,58,116,0.1);
}

.meeting-recap-toggle {
  min-height: 36px;
  justify-content: center;
  border: 1px solid var(--surface-line, rgba(20,40,72,0.14));
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(18,58,116,0.04);
  cursor: pointer;
}

.meeting-recap-toggle input { accent-color: var(--surface-cobalt, #123a74); }

.meeting-recap-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.92fr);
  gap: 18px;
  align-items: start;
}

.meeting-recap-main-column,
.meeting-recap-side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meeting-recap-side-column {
  position: sticky;
  top: 72px;
}

.meeting-recap-section {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--surface-line, rgba(20,40,72,0.14));
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--surface-shadow-sm, 0 1px 3px rgba(18,58,116,0.08));
}

.meeting-recap-section--summary {
  background: linear-gradient(180deg, #fff 0%, #fcf7ef 100%);
}

.meeting-recap-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(196,154,69,0.28);
}

.meeting-recap-section-head h2 {
  margin: 0;
  color: var(--surface-cobalt, #123a74);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.meeting-recap-section-head p {
  margin: 4px 0 0;
  color: var(--surface-ink-muted, #5d6878);
  font-size: 12px;
  line-height: 1.45;
}

.meeting-recap-count {
  min-width: 32px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(18,58,116,0.1);
  color: var(--surface-cobalt, #123a74);
  font-weight: 900;
  font-size: 12px;
}

.meeting-recap-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meeting-recap-summary-card {
  display: flex;
  flex-direction: column;
  min-height: 142px;
  padding: 15px;
  border: 1px solid rgba(20,40,72,0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(18,58,116,0.06);
}

.meeting-recap-summary-card.is-user-correction {
  border-color: rgba(196,154,69,0.36);
  background: linear-gradient(180deg, #fff 0%, #fff8ea 100%);
}

.meeting-recap-summary-card-label {
  width: max-content;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(18,58,116,0.08);
  color: var(--surface-cobalt, #123a74);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meeting-recap-summary-card p {
  flex: 1;
  margin: 0;
  color: var(--surface-ink, #162033);
  font-size: 14px;
  line-height: 1.58;
  font-weight: 650;
}

.meeting-recap-card-list,
.meeting-recap-checklist,
.meeting-recap-task-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.meeting-recap-card,
.meeting-recap-check-row,
.meeting-recap-task-row,
.meeting-recap-workflow-card {
  background: #fff;
  border: 1px solid rgba(20,40,72,0.12);
  border-radius: 10px;
  padding: 13px;
  box-shadow: 0 1px 0 rgba(18,58,116,0.04);
}

.meeting-recap-card--risk {
  border-left: 3px solid rgba(185,75,61,0.65);
}

.meeting-recap-card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.meeting-recap-card h3,
.meeting-recap-check-row h3,
.meeting-recap-task-row h3,
.meeting-recap-workflow-card h3 {
  margin: 0;
  color: var(--surface-ink, #162033);
  font-size: 14px;
  line-height: 1.38;
  font-weight: 850;
}

.meeting-recap-card-detail,
.meeting-recap-card-note {
  margin: 7px 0 0;
  color: var(--surface-ink-muted, #5d6878);
  font-size: 12.5px;
  line-height: 1.5;
}

.meeting-recap-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 9px;
}

.meeting-recap-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1;
}

.meeting-recap-badge--category {
  background: rgba(18,58,116,0.08);
  color: var(--surface-cobalt, #123a74);
}

.meeting-recap-badge--confidence-high,
.meeting-recap-badge--confidence-confirmed-by-user,
.meeting-recap-badge--user {
  background: rgba(39,127,84,0.12);
  color: #277f54;
}

.meeting-recap-badge--confidence-medium {
  background: rgba(196,154,69,0.18);
  color: #9b6b16;
}

.meeting-recap-badge--confidence-low,
.meeting-recap-badge--warn {
  background: rgba(185,75,61,0.13);
  color: #b94b3d;
}

.meeting-recap-tc {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(20,40,72,0.06);
  color: var(--surface-ink-muted, #5d6878);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Consolas, monospace);
  font-size: 10.5px;
  font-weight: 700;
}

.meeting-recap-mini-list {
  margin: 9px 0 0;
  padding-left: 18px;
  color: var(--surface-ink-muted, #5d6878);
  font-size: 12.5px;
  line-height: 1.5;
}

.meeting-recap-date-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(196,154,69,0.15);
  color: #9b6b16;
  font-size: 11px;
  font-weight: 800;
}

.meeting-recap-workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.meeting-recap-workflow-card dl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 0;
}

.meeting-recap-workflow-card dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-top: 8px;
  border-top: 1px solid rgba(20,40,72,0.08);
}

.meeting-recap-workflow-card dt {
  color: var(--surface-ink-muted, #5d6878);
  font-size: 11px;
  font-weight: 850;
}

.meeting-recap-workflow-card dd {
  margin: 0;
  color: var(--surface-ink, #162033);
  font-size: 12.5px;
  line-height: 1.45;
}

.meeting-recap-workflow-card dd .meeting-recap-tc {
  margin-left: 6px;
}

.meeting-recap-check-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
}

.meeting-recap-check-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  border: 2px solid var(--surface-gold, #c49a45);
  background: #fff;
}

.meeting-recap-task-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
}

.meeting-recap-task-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  border-radius: 8px;
  background: rgba(18,58,116,0.09);
  color: var(--surface-cobalt, #123a74);
  font-size: 11px;
  font-weight: 900;
}

.meeting-recap-task-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  color: var(--surface-ink-muted, #5d6878);
  font-size: 11.5px;
}

.meeting-recap-export-panel {
  background: linear-gradient(180deg, #fff 0%, #f9f1e1 100%);
}

.meeting-recap-export-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meeting-recap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--surface-cobalt, #123a74);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast);
}

.meeting-recap-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(18,58,116,0.18);
}

.meeting-recap-btn--gold {
  background: var(--surface-gold, #c49a45);
}

.meeting-recap-empty {
  margin: 0;
  padding: 18px;
  border-radius: 10px;
  background: rgba(18,58,116,0.04);
  color: var(--surface-ink-muted, #5d6878);
  font-size: 13px;
}

.meeting-recap-hero-sub {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--surface-gold, #c49a45);
}

.meeting-recap-decision-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meeting-recap-decision-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.meeting-recap-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--surface-cobalt, #123a74);
}

.meeting-recap-group-head::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--surface-gold, #c49a45);
}

.meeting-recap-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(18,58,116,0.08);
  color: var(--surface-cobalt, #123a74);
  font-size: 10.5px;
  font-weight: 900;
}

.meeting-recap-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.meeting-recap-decision-card {
  background: #fff;
  border: 1px solid rgba(20,40,72,0.12);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 0 rgba(18,58,116,0.04);
}

.meeting-recap-decision-card h3 {
  margin: 0;
  color: var(--surface-ink, #162033);
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 800;
}

.meeting-recap-decision-card .meeting-recap-card-detail {
  margin-top: 6px;
}

@media (max-width: 1180px) {
  .meeting-recap-main-grid,
  .meeting-recap-toolbar {
    grid-template-columns: 1fr;
  }

  .meeting-recap-side-column {
    position: static;
  }
}

@media (max-width: 860px) {
  .meeting-recap {
    padding: 20px;
  }

  .meeting-recap-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .meeting-recap-hero-meta {
    align-items: flex-start;
  }

  .meeting-recap-stats,
  .meeting-recap-filter-grid,
  .meeting-recap-workflow-grid {
    grid-template-columns: 1fr;
  }

  .meeting-recap-summary-grid,
  .meeting-recap-decision-grid,
  .meeting-recap-workflow-card dl div {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   v0.6.3 CONTRAST HARDENING
   Fix light-on-paper text caused by older dark Bible table/stat styles.
   ============================================================ */
.bible-page .bible-kicker,
.bible-section.bible-paper .bible-kicker,
.asset-bible-page .bible-kicker,
.qc-bible-page .bible-kicker {
  color: var(--surface-gold, #c49a45) !important;
  opacity: 1 !important;
}

.bible-section.bible-noir {
  background: var(--surface-paper, #f4efe6) !important;
  color: var(--surface-ink, #162033) !important;
}

.bible-section.bible-noir .bible-section-title,
.bible-section.bible-noir h2,
.bible-section.bible-noir h3 {
  color: var(--surface-cobalt, #123a74) !important;
}

.bible-section.bible-noir .bible-section-body,
.bible-section.bible-noir .bible-section-body p,
.bible-section.bible-noir .prod-task-panel,
.bible-section.bible-noir .prod-task-panel p {
  color: var(--surface-ink, #162033) !important;
}

.prod-task-panel h3 {
  color: var(--surface-cobalt, #123a74) !important;
}

.prod-task-panel .prod-task-summary > div,
.prod-task-panel .prod-workflow-note {
  background: var(--surface-card, #fffdf8) !important;
  border: 1px solid var(--surface-line, rgba(20,40,72,0.14)) !important;
  color: var(--surface-ink, #162033) !important;
}

.prod-task-panel .prod-task-summary span {
  color: var(--surface-muted, #5d6878) !important;
}

.prod-task-panel .prod-task-summary strong {
  color: var(--surface-cobalt, #123a74) !important;
}

.prod-task-panel .bible-table,
.prod-task-panel .prod-task-table {
  background: var(--surface-card, #fffdf8) !important;
  border: 1px solid var(--surface-line, rgba(20,40,72,0.14)) !important;
}

.prod-task-panel .bible-table th,
.prod-task-panel .prod-task-table th {
  background: #ebe2d2 !important;
  color: var(--surface-cobalt, #123a74) !important;
  border-bottom: 1px solid var(--surface-line, rgba(20,40,72,0.14)) !important;
  opacity: 1 !important;
}

.prod-task-panel .bible-table td,
.prod-task-panel .prod-task-table td,
.prod-task-panel .prod-task-table b,
.prod-task-panel .prod-task-table a {
  color: var(--surface-ink, #162033) !important;
  border-bottom: 1px solid rgba(20,40,72,0.08) !important;
  opacity: 1 !important;
}

.prod-task-panel .prod-task-table td p {
  color: var(--surface-muted, #5d6878) !important;
  opacity: 1 !important;
}

.prod-task-panel .bible-shot-link,
.prod-task-panel .bible-shot-link span,
.asset-ref-columns .bible-shot-link,
.asset-ref-columns .bible-shot-link span {
  color: var(--surface-cobalt, #123a74) !important;
  opacity: 1 !important;
}

.prod-task-panel .prod-workflow-note b {
  color: var(--surface-cobalt, #123a74) !important;
}

.bible-section.bible-noir .bible-link-card,
.bible-section.bible-noir .bible-clear-links a {
  background: var(--surface-card, #fffdf8) !important;
  color: var(--surface-cobalt, #123a74) !important;
  border: 1px solid var(--surface-line, rgba(20,40,72,0.14)) !important;
}

.bible-section.bible-noir .bible-link-card:hover,
.bible-section.bible-noir .bible-clear-links a:hover {
  background: var(--surface-cobalt, #123a74) !important;
  color: #fff !important;
}

.bible-section.bible-noir > .bible-section-body > .bible-stat-grid .bible-stat,
.bible-section-body.bible-noir > .bible-stat-grid .bible-stat,
.qc-bible-page .bible-stat-grid .bible-stat,
.asset-bible-page .bible-stat-grid .bible-stat {
  background: var(--surface-card, #fffdf8) !important;
  border: 1px solid var(--surface-line, rgba(20,40,72,0.14)) !important;
  color: var(--surface-ink, #162033) !important;
  box-shadow: var(--surface-shadow-sm, 0 1px 3px rgba(18,58,116,0.08)) !important;
}

.bible-section.bible-noir > .bible-section-body > .bible-stat-grid .bible-stat-num,
.bible-section-body.bible-noir > .bible-stat-grid .bible-stat-num,
.qc-bible-page .bible-stat-grid .bible-stat-num,
.asset-bible-page .bible-stat-grid .bible-stat-num {
  color: var(--surface-cobalt, #123a74) !important;
  opacity: 1 !important;
}

.bible-section.bible-noir > .bible-section-body > .bible-stat-grid .bible-stat-red .bible-stat-num,
.bible-section-body.bible-noir > .bible-stat-grid .bible-stat-red .bible-stat-num,
.qc-bible-page .bible-stat-grid .bible-stat-red .bible-stat-num {
  color: #e74c3c !important;
}

.bible-section.bible-noir > .bible-section-body > .bible-stat-grid .bible-stat-blue .bible-stat-num,
.bible-section-body.bible-noir > .bible-stat-grid .bible-stat-blue .bible-stat-num,
.qc-bible-page .bible-stat-grid .bible-stat-blue .bible-stat-num {
  color: #2a6fdb !important;
}

.bible-section.bible-noir > .bible-section-body > .bible-stat-grid .bible-stat-label,
.bible-section-body.bible-noir > .bible-stat-grid .bible-stat-label,
.qc-bible-page .bible-stat-grid .bible-stat-label,
.asset-bible-page .bible-stat-grid .bible-stat-label {
  color: var(--surface-muted, #5d6878) !important;
  opacity: 1 !important;
  font-size: 12px !important;
}

.qc-bible-page .bible-section-body,
.qc-bible-page .bible-section-body p,
.asset-bible-page .bible-section-body,
.asset-bible-page .bible-section-body p {
  color: var(--surface-ink, #162033) !important;
}

.qc-group,
.asset-ref-columns > div,
.asset-bible-img {
  background: var(--surface-card, #fffdf8) !important;
  color: var(--surface-ink, #162033) !important;
}

.qc-group p,
.qc-shot-list p,
.asset-ref-columns p {
  color: var(--surface-ink, #162033) !important;
  opacity: 1 !important;
}

.qc-group .bible-shot-link,
.qc-group .bible-shot-link span {
  color: var(--surface-cobalt, #123a74) !important;
  opacity: 1 !important;
}

.bible-footer-title {
  color: var(--surface-gold, #c49a45) !important;
}

.bible-footer-sub,
.bible-footer-note {
  color: rgba(244,239,230,0.78) !important;
}

/* ============================================================
   v0.6.3 COLOR BIBLE INTERNAL PAGE
   ============================================================ */
.color-bible-page {
  background: var(--surface-paper, #f5efe3);
}

.color-bible {
  color: var(--surface-ink, #162033);
}

.color-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(460px, 1.15fr);
  gap: 32px;
  align-items: stretch;
  padding: clamp(34px, 5vw, 72px);
  background: linear-gradient(90deg, var(--surface-paper, #f5efe3) 0%, var(--surface-paper, #f5efe3) 58%, rgba(12, 64, 130, 0.08) 58%, rgba(12, 64, 130, 0.08) 100%);
}

.color-hero h1 {
  margin: 0;
  color: var(--surface-cobalt, #123a74);
  font-size: clamp(46px, 6vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

.color-hero p {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--surface-ink, #162033);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 650;
}

.color-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.color-tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(12, 64, 130, 0.1);
  color: var(--surface-cobalt, #123a74);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.color-section {
  padding: clamp(34px, 5vw, 68px) clamp(28px, 5vw, 72px);
  max-width: 1540px;
  margin: 0 auto;
}

.color-section h2 {
  margin: 0 0 22px;
  color: var(--surface-cobalt, #123a74);
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.04;
  letter-spacing: 0;
}

.color-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.color-panel,
.color-warning {
  background: var(--surface-card, #fffdf8);
  border: 1px solid rgba(15, 44, 82, 0.14);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(18, 32, 51, 0.07);
}

.color-panel h3,
.color-warning h3 {
  margin: 0 0 8px;
  color: var(--surface-cobalt, #123a74);
}

.color-panel p,
.color-panel li,
.color-warning p {
  color: var(--surface-ink, #162033);
  font-size: 16px;
  line-height: 1.55;
  opacity: 1;
}

.color-warning {
  background: #211c18;
}

.color-warning h3 {
  color: #fff5df;
}

.color-warning p {
  color: rgba(255, 245, 223, 0.86);
}

.color-ref-grid,
.color-project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.color-ref-card,
.color-project-card,
.color-shot-card {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(15, 44, 82, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(18, 32, 51, 0.1);
}

.color-ref-frame,
.color-project-frame,
.color-shot-frame {
  aspect-ratio: 16 / 9;
  background: #ede4d5;
  overflow: hidden;
  position: relative;
}

.color-ref-frame.is-missing::after,
.color-project-frame.is-missing::after,
.color-shot-frame.is-missing::after {
  content: "Reference image unavailable";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #5e6673;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.color-ref-card img,
.color-project-card img,
.color-shot-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.color-project-card img {
  object-fit: contain;
  background: #ede4d5;
}

.color-ref-body {
  padding: 16px;
}

.color-ref-body h3 {
  margin: 0 0 8px;
  color: var(--surface-cobalt, #123a74);
  font-size: 20px;
}

.color-ref-body p {
  margin: 0;
  color: var(--surface-ink, #162033);
  font-size: 15px;
  line-height: 1.5;
  opacity: 1;
}

.color-ref-body small {
  display: block;
  margin-top: 10px;
  color: var(--surface-muted, #5d6878);
  font-weight: 760;
}

.color-ref-use,
.color-project-card figcaption,
.color-shot-card figcaption {
  padding: 12px 14px;
  background: #fffaf0;
  color: var(--surface-cobalt, #123a74);
  font-size: 13px;
  font-weight: 850;
  border-top: 1px solid rgba(15, 44, 82, 0.12);
}

.color-swatches {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(15, 44, 82, 0.14);
  border-radius: 16px;
  margin-top: 18px;
}

.color-swatch {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 12px;
  color: #102846;
  font-size: 12px;
  font-weight: 950;
}

.color-swatch-dark {
  color: #fffaf0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.color-swatch small {
  opacity: 0.82;
}

.color-shot-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.color-shot-card {
  min-width: 190px;
}

.color-table-wrap {
  overflow-x: auto;
}

.color-world-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #fffaf0;
  border: 1px solid rgba(15, 44, 82, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(18, 32, 51, 0.07);
}

.color-world-table th,
.color-world-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(15, 44, 82, 0.12);
  text-align: left;
  vertical-align: top;
  color: var(--surface-ink, #162033);
}

.color-world-table th {
  background: rgba(12, 64, 130, 0.08);
  color: var(--surface-cobalt, #123a74);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.color-world-table tr:last-child td {
  border-bottom: 0;
}

.color-workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.color-workflow div {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface-cobalt, #123a74);
  color: #fffaf0;
  text-align: center;
  font-weight: 950;
  position: relative;
}

.color-workflow div:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--surface-gold, #c49a45);
  font-size: 18px;
  font-weight: 1000;
  z-index: 2;
}

.color-pyxis {
  margin-top: 18px;
}

@media (max-width: 1180px) {
  .color-hero,
  .color-grid-2 {
    grid-template-columns: 1fr;
  }

  .color-ref-grid,
  .color-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .color-workflow {
    grid-template-columns: 1fr;
  }

  .color-workflow div:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .color-ref-grid,
  .color-project-grid,
  .color-swatches {
    grid-template-columns: 1fr;
  }

  .color-hero,
  .color-section {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ============================================================
   v0.6.3 EDIT BIBLE PAGE
   ============================================================ */
.edit-bible-page {
  background: var(--surface-paper, #f5efe3);
}

.edit-bible {
  color: var(--surface-ink, #162033);
}

.edit-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
  gap: 34px;
  align-items: center;
  padding: clamp(34px, 5vw, 72px);
  background: linear-gradient(90deg, var(--surface-cobalt, #123a74) 0%, var(--surface-cobalt, #123a74) 43%, var(--surface-paper, #f5efe3) 43%, var(--surface-paper, #f5efe3) 100%);
}

.edit-hero h1 {
  margin: 0;
  color: #fff9e9;
  font-size: clamp(46px, 6.4vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
}

.edit-hero p {
  max-width: 780px;
  margin: 22px 0 0;
  color: rgba(255, 249, 233, 0.9);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 650;
}

.edit-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.edit-tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 250, 240, 0.14);
  color: #fff9e9;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.edit-hero-board,
.edit-shot-card {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(15, 44, 82, 0.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(18, 32, 51, 0.13);
}

.edit-hero-frame,
.edit-shot-frame {
  aspect-ratio: 16 / 9;
  background: #ede4d5;
  overflow: hidden;
}

.edit-hero-board img,
.edit-shot-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #ede4d5;
}

.edit-hero-board figcaption,
.edit-shot-card figcaption {
  padding: 12px 14px;
  background: #fffaf0;
  color: var(--surface-cobalt, #123a74);
  font-size: 13px;
  font-weight: 850;
  border-top: 1px solid rgba(15, 44, 82, 0.12);
}

.edit-section {
  padding: clamp(34px, 5vw, 68px) clamp(28px, 5vw, 72px);
  max-width: 1540px;
  margin: 0 auto;
}

.edit-section h2 {
  margin: 0 0 22px;
  color: var(--surface-cobalt, #123a74);
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.04;
  letter-spacing: 0;
}

.edit-section h3 {
  margin: 0 0 8px;
  color: var(--surface-cobalt, #123a74);
}

.edit-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.edit-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.edit-panel {
  background: var(--surface-card, #fffdf8);
  border: 1px solid rgba(15, 44, 82, 0.14);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(18, 32, 51, 0.07);
}

.edit-panel p,
.edit-panel li {
  color: var(--surface-ink, #162033);
  font-size: 16px;
  line-height: 1.55;
  opacity: 1;
}

.edit-pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.edit-pipe-step {
  min-width: 150px;
  min-height: 132px;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(15, 44, 82, 0.14);
  box-shadow: 0 10px 28px rgba(22, 32, 51, 0.08);
  position: relative;
}

.edit-pipe-step::after {
  content: ">";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--surface-gold, #c49a45);
  font-weight: 1000;
  z-index: 2;
}

.edit-pipe-step:last-child::after {
  display: none;
}

.edit-pipe-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface-cobalt, #123a74);
  color: #fffaf0;
  font-size: 13px;
  font-weight: 1000;
  margin-bottom: 12px;
}

.edit-pipe-step h3 {
  font-size: 18px;
}

.edit-pipe-step p {
  color: var(--surface-muted, #5d6878);
  font-size: 14px;
  font-weight: 650;
}

.edit-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
}

.edit-phase {
  background: #fff;
  border: 1px solid rgba(15, 44, 82, 0.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(22, 32, 51, 0.09);
}

.edit-phase-head {
  padding: 18px;
  color: #fffaf0;
}

.edit-phase-head.green { background: #2f8a5b; }
.edit-phase-head.blue { background: #2f7fc2; }
.edit-phase-head.violet { background: #6c4aa0; }
.edit-phase-head.orange { background: #d97918; }

.edit-phase-head h3 {
  color: #fffaf0;
  font-size: 24px;
}

.edit-phase-head p {
  color: rgba(255, 250, 240, 0.86);
  font-size: 14px;
  font-weight: 760;
}

.edit-task-list {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.edit-task {
  border: 1px solid rgba(15, 44, 82, 0.14);
  border-radius: 12px;
  padding: 12px;
  background: #fffaf0;
}

.edit-task b {
  display: block;
  color: var(--surface-cobalt, #123a74);
  font-size: 14px;
}

.edit-task small {
  display: block;
  margin-top: 4px;
  color: var(--surface-muted, #5d6878);
  font-weight: 760;
}

.edit-task.critical {
  border-left: 5px solid #d64d42;
}

.edit-task.waiting {
  border-left: 5px solid var(--surface-gold, #c49a45);
}

.edit-shot-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.edit-shot-card {
  min-width: 190px;
  box-shadow: 0 10px 26px rgba(22, 32, 51, 0.08);
}

.edit-marker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.edit-marker {
  background: #fff;
  border: 1px solid rgba(15, 44, 82, 0.14);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(22, 32, 51, 0.07);
}

.edit-marker code {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--surface-cobalt, #123a74);
  color: #fffaf0;
  font-weight: 900;
}

.edit-marker p {
  color: var(--surface-ink, #162033);
}

.edit-table-wrap {
  overflow-x: auto;
}

.edit-handoff-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #fffaf0;
  border: 1px solid rgba(15, 44, 82, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(22, 32, 51, 0.07);
}

.edit-handoff-table th,
.edit-handoff-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(15, 44, 82, 0.12);
  text-align: left;
  vertical-align: top;
  color: var(--surface-ink, #162033);
}

.edit-handoff-table th {
  color: var(--surface-cobalt, #123a74);
  background: rgba(18, 58, 116, 0.08);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edit-handoff-table tr:last-child td {
  border-bottom: 0;
}

.edit-risk {
  max-width: 1400px;
  background: #231d18;
  color: #fff6e7;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(22, 32, 51, 0.12);
}

.edit-risk h2,
.edit-risk h3 {
  color: #fff6e7;
}

.edit-risk li {
  color: rgba(255, 246, 231, 0.86);
}

.edit-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 44, 82, 0.14);
  color: var(--surface-cobalt, #123a74);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(22, 32, 51, 0.08);
}

@media (max-width: 1180px) {
  .edit-hero,
  .edit-grid-2,
  .edit-grid-3,
  .edit-timeline,
  .edit-marker-grid {
    grid-template-columns: 1fr;
  }

  .edit-hero {
    background: var(--surface-cobalt, #123a74);
  }
}

/* ============================================================
   v0.6.3 AUDIO BIBLE PAGE
   ============================================================ */
.audio-bible-page {
  background: var(--surface-paper, #f5efe3);
}

.audio-bible {
  color: var(--surface-ink, #162033);
}

.audio-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
  gap: 34px;
  align-items: center;
  padding: clamp(34px, 5vw, 72px);
  background: linear-gradient(90deg, #221f27 0%, #221f27 43%, var(--surface-paper, #f5efe3) 43%, var(--surface-paper, #f5efe3) 100%);
}

.audio-hero h1 {
  margin: 0;
  color: #fff9e9;
  font-size: clamp(46px, 6.4vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
}

.audio-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 249, 233, 0.9);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 650;
}

.audio-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.audio-tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 250, 240, 0.14);
  color: #fff9e9;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.audio-hero-card {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(15, 44, 82, 0.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(18, 32, 51, 0.13);
}

.audio-hero-frame {
  aspect-ratio: 16 / 9;
  background: #ede4d5;
  overflow: hidden;
}

.audio-hero-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #ede4d5;
}

.audio-hero-card figcaption {
  padding: 12px 14px;
  background: #fffaf0;
  color: var(--surface-cobalt, #123a74);
  font-size: 13px;
  font-weight: 850;
  border-top: 1px solid rgba(15, 44, 82, 0.12);
}

.audio-section {
  padding: clamp(34px, 5vw, 68px) clamp(28px, 5vw, 72px);
  max-width: 1540px;
  margin: 0 auto;
}

.audio-section h2 {
  margin: 0 0 22px;
  color: var(--surface-cobalt, #123a74);
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.04;
  letter-spacing: 0;
}

.audio-section h3 {
  margin: 0 0 8px;
  color: var(--surface-cobalt, #123a74);
}

.audio-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.audio-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.audio-panel,
.audio-cue,
.audio-shot,
.audio-deliverable,
.audio-task {
  background: var(--surface-card, #fffdf8);
  border: 1px solid rgba(15, 44, 82, 0.14);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(18, 32, 51, 0.07);
}

.audio-panel p,
.audio-panel li,
.audio-cue p,
.audio-shot p,
.audio-deliverable p {
  color: var(--surface-ink, #162033);
  font-size: 16px;
  line-height: 1.55;
  opacity: 1;
}

.audio-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.audio-flow div {
  min-width: 150px;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface-cobalt, #123a74);
  color: #fffaf0;
  text-align: center;
  font-weight: 950;
  position: relative;
}

.audio-flow div:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--surface-gold, #c49a45);
  font-size: 18px;
  font-weight: 1000;
  z-index: 2;
}

.audio-task-grid,
.audio-cue-grid,
.audio-shot-grid,
.audio-deliverables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.audio-task b {
  display: block;
  color: var(--surface-cobalt, #123a74);
  font-size: 14px;
}

.audio-task small {
  display: block;
  margin-top: 4px;
  color: var(--surface-muted, #5d6878);
  font-weight: 760;
}

.audio-task.critical {
  border-left: 5px solid #d64d42;
}

.audio-task.waiting {
  border-left: 5px solid var(--surface-gold, #c49a45);
}

.audio-cue > div:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.audio-cue span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #221f27;
  color: #fff9e9;
  font-size: 12px;
  font-weight: 950;
}

.audio-shot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.audio-shot b {
  color: var(--surface-cobalt, #123a74);
}

.audio-risk {
  max-width: 1400px;
  background: #221f27;
  color: #fff6e7;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(22, 32, 51, 0.12);
}

.audio-risk h2,
.audio-risk h3 {
  color: #fff6e7;
}

.audio-risk li {
  color: rgba(255, 246, 231, 0.86);
}

.audio-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 44, 82, 0.14);
  color: var(--surface-cobalt, #123a74);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(22, 32, 51, 0.08);
}

@media (max-width: 1180px) {
  .audio-hero,
  .audio-grid-2,
  .audio-grid-3,
  .audio-task-grid,
  .audio-cue-grid,
  .audio-shot-grid,
  .audio-deliverables {
    grid-template-columns: 1fr;
  }

  .audio-hero {
    background: #221f27;
  }

  .audio-flow {
    grid-template-columns: 1fr;
  }

  .audio-flow div:not(:last-child)::after {
    display: none;
  }
}

.tech-bible-page {
  background: var(--bible-paper, #f4ecdd);
}

.tech-bible {
  max-width: 1480px;
  margin: 0 auto;
  padding: 56px 42px 88px;
  color: var(--bible-ink, #162033);
}

.tech-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 54px;
}

.tech-hero h1 {
  margin: 12px 0 18px;
  max-width: 760px;
  color: var(--bible-cobalt, #113f7d);
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

.tech-hero p {
  max-width: 780px;
  color: #24344d;
  font-size: 18px;
  line-height: 1.7;
}

.tech-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tech-tag-row span,
.tech-shot-links .bible-shot-link {
  border-radius: 999px;
  background: rgba(17, 63, 125, 0.1);
  border: 1px solid rgba(17, 63, 125, 0.16);
  color: #113f7d;
  font-weight: 800;
  padding: 8px 12px;
}

.tech-hero-card,
.tech-shot-card,
.tech-spec-card,
.tech-panel,
.tech-task,
.tech-matrix-card,
.tech-guard,
.tech-link-card {
  background: rgba(255, 252, 245, 0.94);
  border: 1px solid rgba(17, 63, 125, 0.12);
  box-shadow: 0 18px 40px rgba(20, 35, 62, 0.08);
}

.tech-hero-card {
  overflow: hidden;
  border-radius: 10px;
  margin: 0;
}

.tech-hero-frame,
.tech-shot-frame {
  background: #efe6d6;
}

.tech-hero-card img,
.tech-shot-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tech-hero-frame {
  aspect-ratio: 16 / 10;
}

.tech-hero-card figcaption,
.tech-shot-card figcaption {
  color: #33435c;
  font-weight: 700;
  line-height: 1.45;
  padding: 14px 16px 16px;
}

.tech-section {
  margin: 56px 0;
}

.tech-section h2 {
  margin: 0 0 24px;
  color: var(--bible-cobalt, #113f7d);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.tech-section h3 {
  color: #113f7d;
}

.tech-section-lead {
  max-width: 980px;
  margin: -10px 0 24px;
  color: #2d3d56;
  font-size: 17px;
  line-height: 1.7;
}

.tech-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.tech-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tech-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tech-spec-card,
.tech-panel,
.tech-task,
.tech-matrix-card,
.tech-guard,
.tech-link-card {
  border-radius: 8px;
  padding: 20px;
}

.tech-spec-card span {
  display: block;
  margin-bottom: 10px;
  color: #69758a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tech-spec-card strong {
  display: block;
  color: #113f7d;
  font-size: 22px;
  line-height: 1.2;
}

.tech-spec-card p,
.tech-panel p,
.tech-panel li,
.tech-task p,
.tech-task small,
.tech-matrix-card p,
.tech-guard p {
  color: #34445e;
  font-size: 15px;
  line-height: 1.65;
}

.tech-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 12px;
}

.tech-step {
  position: relative;
  min-height: 180px;
  padding: 18px;
  border-radius: 8px;
  background: #123f78;
  color: #fff8ea;
  box-shadow: 0 18px 34px rgba(17, 63, 125, 0.16);
}

.tech-step span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #d5aa50;
  color: #102749;
  font-weight: 900;
}

.tech-step h3 {
  color: #fff8ea;
  font-size: 18px;
}

.tech-step p {
  color: rgba(255, 248, 234, 0.86);
  line-height: 1.55;
}

.tech-matrix-grid,
.tech-task-grid,
.tech-guard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tech-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tech-req-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.tech-matrix-card b {
  display: inline-block;
  margin-top: 16px;
  color: #b16b12;
  font-size: 13px;
  text-transform: uppercase;
}

.tech-shot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.tech-task b {
  display: block;
  color: #113f7d;
  font-size: 16px;
  line-height: 1.35;
}

.tech-task small {
  display: block;
  margin-top: 6px;
}

.tech-task.critical {
  border-left: 5px solid #d94d42;
}

.tech-task.waiting {
  border-left: 5px solid #d5aa50;
}

.tech-shot-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tech-shot-card {
  overflow: hidden;
  border-radius: 8px;
  margin: 0;
}

.tech-shot-frame {
  aspect-ratio: 16 / 9;
}

.tech-shot-card figcaption b,
.tech-shot-card figcaption span,
.tech-shot-card figcaption small {
  display: block;
}

.tech-shot-card figcaption small {
  margin-top: 8px;
  color: #526174;
  font-weight: 600;
}

.tech-codebox {
  display: grid;
  gap: 10px;
}

.tech-codebox code {
  display: block;
  padding: 11px 12px;
  border-radius: 6px;
  background: #102749;
  color: #fff8ea;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tech-guard {
  border-left: 5px solid #113f7d;
}

.tech-detail-card {
  padding: 22px;
  border-radius: 8px;
  background: #fffdf7;
  border: 1px solid rgba(17, 63, 125, 0.14);
  box-shadow: 0 18px 40px rgba(20, 35, 62, 0.08);
}

.tech-detail-card h3 {
  margin: 0 0 12px;
  color: #113f7d;
  font-size: 22px;
}

.tech-detail-card p,
.tech-detail-card li {
  color: #2d3d56;
  font-size: 15px;
  line-height: 1.65;
}

.tech-detail-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.tech-req-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 420px;
  padding: 20px;
  border-radius: 8px;
  background: #fffdf7;
  border: 1px solid rgba(17, 63, 125, 0.14);
  box-shadow: 0 18px 40px rgba(20, 35, 62, 0.08);
}

.tech-req-card span {
  display: block;
  margin-bottom: 10px;
  color: #69758a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tech-req-card h3 {
  margin: 0 0 10px;
  color: #113f7d;
  font-size: 20px;
  line-height: 1.15;
}

.tech-req-card b {
  display: inline-block;
  color: #b16b12;
  font-size: 12px;
  line-height: 1.35;
  text-transform: uppercase;
}

.tech-req-card p,
.tech-req-card li {
  color: #2d3d56;
  font-size: 14px;
  line-height: 1.55;
}

.tech-req-card ul {
  margin: 0;
  padding-left: 18px;
}

.tech-link-card {
  display: grid;
  min-height: 92px;
  place-items: center;
  color: #113f7d;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.tech-link-card:hover {
  background: #113f7d;
  color: #fff8ea;
}

@media (max-width: 1100px) {
  .tech-hero,
  .tech-grid-2,
  .tech-spec-grid,
  .tech-matrix-grid,
  .tech-task-grid,
  .tech-guard-grid,
  .tech-detail-grid,
  .tech-req-grid,
  .tech-shot-strip,
  .tech-grid-4 {
    grid-template-columns: 1fr;
  }

  .tech-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tech-bible {
    padding: 36px 18px 70px;
  }

  .tech-flow {
    grid-template-columns: 1fr;
  }
}

.delivery-bible-page {
  background: var(--bible-paper, #f4ecdd);
}

.delivery-bible {
  max-width: 1480px;
  margin: 0 auto;
  padding: 56px 42px 88px;
  color: var(--bible-ink, #162033);
}

.delivery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.88fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 54px;
}

.delivery-hero h1 {
  margin: 12px 0 18px;
  max-width: 820px;
  color: var(--bible-cobalt, #113f7d);
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

.delivery-hero p {
  max-width: 820px;
  color: #24344d;
  font-size: 18px;
  line-height: 1.7;
}

.delivery-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.delivery-tag-row span {
  border-radius: 999px;
  background: rgba(17, 63, 125, 0.1);
  border: 1px solid rgba(17, 63, 125, 0.16);
  color: #113f7d;
  font-weight: 800;
  padding: 8px 12px;
}

.delivery-hero-card,
.delivery-card,
.delivery-spec,
.delivery-step,
.delivery-task,
.delivery-qc,
.delivery-panel,
.delivery-link-card {
  background: rgba(255, 252, 245, 0.94);
  border: 1px solid rgba(17, 63, 125, 0.12);
  box-shadow: 0 18px 40px rgba(20, 35, 62, 0.08);
}

.delivery-hero-card {
  overflow: hidden;
  border-radius: 10px;
  margin: 0;
}

.delivery-hero-frame {
  aspect-ratio: 16 / 10;
  background: #efe6d6;
}

.delivery-hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.delivery-hero-card figcaption {
  padding: 14px 16px 16px;
  color: #33435c;
  font-weight: 700;
  line-height: 1.45;
}

.delivery-section {
  margin: 56px 0;
}

.delivery-section h2 {
  margin: 0 0 24px;
  color: var(--bible-cobalt, #113f7d);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.delivery-section-lead {
  max-width: 980px;
  margin: -10px 0 24px;
  color: #2d3d56;
  font-size: 17px;
  line-height: 1.7;
}

.delivery-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.delivery-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.delivery-card,
.delivery-spec,
.delivery-step,
.delivery-task,
.delivery-qc,
.delivery-panel,
.delivery-link-card {
  border-radius: 8px;
  padding: 22px;
}

.delivery-card-head span {
  display: inline-block;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #123f78;
  color: #fff8ea;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.delivery-card h3,
.delivery-spec h3,
.delivery-step h3,
.delivery-qc h3,
.delivery-panel h2 {
  color: #113f7d;
}

.delivery-spec span {
  display: inline-block;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(17, 63, 125, 0.1);
  color: #113f7d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.delivery-spec h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.delivery-card b {
  display: block;
  margin: 10px 0 14px;
  color: #b16b12;
  font-size: 13px;
  text-transform: uppercase;
}

.delivery-card p,
.delivery-card li,
.delivery-spec li,
.delivery-step p,
.delivery-task p,
.delivery-task small,
.delivery-qc li,
.delivery-panel li {
  color: #2d3d56;
  font-size: 15px;
  line-height: 1.65;
}

.delivery-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
}

.delivery-step {
  min-height: 180px;
  background: #123f78;
  color: #fff8ea;
}

.delivery-step span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #d5aa50;
  color: #102749;
  font-weight: 900;
}

.delivery-step h3 {
  color: #fff8ea;
}

.delivery-step p {
  color: rgba(255, 248, 234, 0.86);
}

.delivery-task-grid,
.delivery-qc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.delivery-task b {
  display: block;
  color: #113f7d;
  font-size: 16px;
  line-height: 1.35;
}

.delivery-task small {
  display: block;
  margin-top: 6px;
}

.delivery-task.critical {
  border-left: 5px solid #d94d42;
}

.delivery-task.waiting {
  border-left: 5px solid #d5aa50;
}

.delivery-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.delivery-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.delivery-codebox {
  display: grid;
  gap: 10px;
}

.delivery-codebox code {
  display: block;
  padding: 11px 12px;
  border-radius: 6px;
  background: #102749;
  color: #fff8ea;
  white-space: normal;
  overflow-wrap: anywhere;
}

.delivery-link-card {
  display: grid;
  min-height: 92px;
  place-items: center;
  color: #113f7d;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.delivery-link-card:hover {
  background: #113f7d;
  color: #fff8ea;
}

@media (max-width: 1100px) {
  .delivery-hero,
  .delivery-card-grid,
  .delivery-spec-grid,
  .delivery-task-grid,
  .delivery-qc-grid,
  .delivery-grid-2,
  .delivery-grid-4 {
    grid-template-columns: 1fr;
  }

  .delivery-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .delivery-bible {
    padding: 36px 18px 70px;
  }

  .delivery-flow {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   VIDEO REVIEW (Phase 1) — matches S4B surface theme
   (cream paper + cobalt navy + gold, same as rest of the app)
   ============================================================ */

.video-review {
  padding: 24px clamp(24px, 3vw, 48px) 60px;
  height: 100%;
  box-sizing: border-box;
  background: var(--surface-paper);
}

.video-review-layout {
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  gap: 16px;
  height: calc(100vh - var(--header-height, 60px) - 84px);
  min-height: 480px;
}

.video-review-column {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  box-shadow: var(--surface-shadow-sm);
  overflow: hidden;
}

.video-review-column-header {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--surface-muted);
  border-bottom: 1px solid var(--surface-line);
  flex-shrink: 0;
}

.video-review-list,
.video-review-feedback-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.video-review-list-item {
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 4px;
  border: 1px solid transparent;
  transition: background 0.15s;
}

.video-review-list-item:hover {
  background: var(--surface-paper-2);
}

.video-review-list-item--active {
  background: rgba(18,58,116,0.08);
  border-color: var(--surface-cobalt);
}

.video-review-list-item-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--surface-ink);
}

.video-review-list-item-status {
  font-size: 11px;
  color: var(--surface-muted);
  margin-top: 2px;
}

/* center column — video */
.video-review-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.video-review-video-wrap {
  width: 100%;
  max-height: 70%;
  border-radius: 8px;
  overflow: hidden;
}

.video-review-video {
  width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 8px;
  background: var(--surface-noir);
}

.video-review-no-video,
.video-review-empty {
  text-align: center;
  color: var(--surface-muted);
  padding: 40px 20px;
  font-size: 13px;
}

/* timeline */
.video-review-timeline {
  position: relative;
  width: 100%;
  height: 8px;
  background: var(--surface-paper-2);
  border: 1px solid var(--surface-line);
  border-radius: 4px;
  margin-top: 14px;
  flex-shrink: 0;
}

.video-review-timeline-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  background: var(--surface-gold);
  border: 2px solid var(--surface-card);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.15s;
  box-shadow: 0 1px 4px rgba(27,37,51,0.3);
}

.video-review-timeline-dot:hover {
  transform: scale(1.4);
}

/* feedback items */
.video-review-feedback-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface-line);
}

.video-review-feedback-item:last-child {
  border-bottom: none;
}

.video-review-feedback-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.video-review-feedback-timecode {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  color: var(--surface-cobalt);
  background: var(--surface-paper-2);
  padding: 1px 6px;
  border-radius: 4px;
}

.video-review-feedback-text {
  font-size: 13px;
  color: var(--surface-ink);
  margin: 4px 0;
  line-height: 1.4;
}

.video-review-feedback-author {
  font-size: 11px;
  color: var(--surface-muted);
  margin-bottom: 6px;
}

/* badges */
.video-review-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.02em;
}

.video-review-badge--status,
.video-review-badge--category {
  background: var(--surface-paper-2);
  color: var(--surface-muted);
}

.video-review-badge--new { background: rgba(18,58,116,0.12); color: var(--surface-cobalt); }
.video-review-badge--in-progress { background: rgba(196,154,69,0.18); color: #9a7326; }
.video-review-badge--fixed { background: rgba(46,139,87,0.15); color: #1e7a4c; }

.video-review-badge--cat-vfx { background: rgba(18,58,116,0.12); color: var(--surface-cobalt); }
.video-review-badge--cat-color { background: rgba(196,154,69,0.18); color: #9a7326; }
.video-review-badge--cat-audio { background: rgba(46,139,87,0.15); color: #1e7a4c; }
.video-review-badge--cat-edit { background: rgba(120,58,180,0.14); color: #6b3fa0; }

/* actions (selects) */
.video-review-feedback-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.video-review-select-label {
  font-size: 11px;
  color: var(--surface-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.video-review-select {
  background: var(--surface-card);
  color: var(--surface-ink);
  border: 1px solid var(--surface-line);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
  cursor: pointer;
}

/* add feedback form */
.video-review-add-form {
  padding: 12px 14px;
  border-top: 1px solid var(--surface-line);
  flex-shrink: 0;
}

.video-review-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 60px;
  background: var(--surface-paper);
  color: var(--surface-ink);
  border: 1px solid var(--surface-line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}

.video-review-textarea:focus {
  outline: none;
  border-color: var(--surface-cobalt);
}

.video-review-btn {
  margin-top: 8px;
  padding: 8px 18px;
  background: var(--surface-cobalt);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.video-review-btn:hover {
  background: var(--surface-cobalt-2);
}

.video-review-error {
  background: rgba(200,60,60,0.1);
  color: #a53535;
  border: 1px solid rgba(200,60,60,0.25);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .video-review-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
}

/* ── Shot Passport Feedback Tab ─────────────────────────── */
.p-feedback-content {
  padding: 16px;
}

.p-feedback-loading p {
  color: var(--surface-muted, #7a8599);
  font-size: 13px;
  text-align: center;
  padding: 24px 0;
}

.p-feedback-item {
  border-bottom: 1px solid var(--surface-line, rgba(20,40,72,0.1));
  padding: 12px 0;
}

.p-feedback-item:last-child {
  border-bottom: none;
}

.p-feedback-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.p-feedback-item .video-review-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
  background: rgba(30,60,100,0.08);
  color: var(--surface-ink-muted, #5d6878);
}

.p-feedback-item .video-review-badge--fixed {
  background: rgba(76,175,80,0.12);
  color: #2e7d32;
}

.p-feedback-item .video-review-badge--in-progress {
  background: rgba(255,193,7,0.15);
  color: #b8860b;
}

.p-feedback-item .video-review-badge--category {
  background: var(--surface-gold, rgba(212,175,55,0.12));
  color: var(--surface-cobalt, #123a74);
}

.p-feedback-timecode {
  font-size: 11px;
  font-weight: 700;
  color: var(--surface-cobalt, #123a74);
  margin-left: auto;
}

.p-feedback-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--surface-ink, #162033);
  margin-bottom: 4px;
}

.p-feedback-author {
  font-size: 11px;
  color: var(--surface-muted, #7a8599);
}

.p-feedback-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--surface-line, rgba(20,40,72,0.1));
}

.p-feedback-footer a {
  font-size: 12px;
  font-weight: 700;
  color: var(--surface-cobalt, #123a74);
  text-decoration: none;
}

.p-feedback-footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   v0.7.0 — Chế độ sửa inline (PB.EditMode) + upload ảnh shot
   ============================================================ */

.edit-toggle-wrap {
  margin-top: 14px;
  padding: 14px 16px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.edit-mode-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.edit-mode-toggle:hover {
  border-color: var(--accent-camera);
  color: var(--text-primary);
}

.edit-mode-toggle.edit-toggle-on {
  background: rgba(76,175,80,0.12);
  border-color: var(--accent-delivery);
  color: var(--accent-delivery);
}

.p-edit-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(76,175,80,0.1);
  border: 1px solid var(--accent-delivery);
  color: var(--accent-delivery);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

.p-msg-bar {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

.p-msg-success { background: rgba(76,175,80,0.12); border: 1px solid var(--accent-delivery); color: var(--accent-delivery); }
.p-msg-error   { background: rgba(244,67,54,0.12); border: 1px solid var(--accent-qc); color: var(--accent-qc); }
.p-msg-info    { background: rgba(0,212,255,0.1); border: 1px solid var(--accent-camera); color: var(--accent-camera); }

/* field sửa (dùng chung select / input / textarea) */
.ef-row { margin-bottom: 12px; }
.ef-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.ef-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px dashed rgba(0,212,255,0.35);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.ef-input:hover { border-color: var(--accent-camera); background: rgba(0,212,255,0.05); }
.ef-input:focus { outline: none; border-color: var(--accent-camera); border-style: solid; }
textarea.ef-input { resize: vertical; min-height: 56px; line-height: 1.5; }
select.ef-input { cursor: pointer; }

.p-badges-edit, .p-meta-edit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.p-badges-edit .ef-row, .p-meta-edit .ef-row { margin-bottom: 0; }

.ef-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ef-id-tag {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.ef-title-input { font-size: 20px; font-weight: 800; }
.ef-tagline-input { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }

/* upload ảnh trên hero */
.p-hero { position: relative; }
.p-hero-edit-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background var(--transition-fast);
}
.p-hero-edit-btn:hover { background: rgba(0,0,0,0.85); border-color: var(--accent-camera); }

/* thanh lưu ở cuối passport */
.p-save-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 20px;
}
.p-dirty-indicator { font-size: 12.5px; color: var(--text-muted); }
.p-save-btn {
  background: var(--accent-delivery);
  color: #04331f;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.p-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }
