/* Fast Focus — Authoritative 35mm Fixed-Shell Horizontal Filmstrip Architecture */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400&family=JetBrains+Mono:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Film Frame & Rebate (GUI_UI_GUIDE.md Authoritative Tokens) */
  --film-black: #111113;
  --film-card: #1a1a1e;
  --film-surface: #222228;
  --film-border: #33333c;
  --film-text: #e2e8f0;
  --film-text-muted: #888896;
  --film-frame-bg: #141312;
  --film-frame-bg-card: #181716;
  --film-hole-bg: #f8f6f0;
  --film-amber: #e5a93c; /* Authentic warm film grain amber */
  --film-amber-subtle: rgba(229, 169, 60, 0.15);
  --film-amber-glow: rgba(229, 169, 60, 0.25);
  --film-white: #ffffff;
  --film-muted: #888896;
  
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-main: #33333c;
  
  --ink-primary: #ffffff;
  --ink-secondary: #c2bcb0;
  --ink-muted: #827b70;
  
  --accent-forest: #22543d;
  --accent-forest-subtle: rgba(34, 84, 61, 0.25);
  --accent-rust: #9e361e;
  --accent-rust-subtle: rgba(158, 54, 30, 0.25);
  
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  font-family: var(--font-sans);
  background-color: var(--film-black);
  color: var(--ink-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   APP VIEWPORT SHELL (Strictly 100vw x 100vh Fixed Frame)
   ============================================================ */
.app-viewport-shell {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--film-black);
}

/* ============================================================
   1. TOP FILM RAIL (Stationary, Always 100% Window Width)
   ============================================================ */
.film-rail-top {
  width: 100vw;
  max-width: 100vw;
  flex-shrink: 0;
  background: var(--film-black);
  display: flex;
  flex-direction: column;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sprocket Track (Fixed Width, Inner Row Translates) */
.sprocket-track {
  height: 28px;
  width: 100vw;
  max-width: 100vw;
  background-color: #070606;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 12px;
  cursor: grab;
  user-select: none;
  box-sizing: border-box;
}

.sprocket-track:active {
  cursor: grabbing;
}

.sprocket-row {
  display: flex;
  gap: 22px;
  width: max-content;
  align-items: center;
  will-change: transform;
}

/* Prominent Ivory Punch-Through Perforations */
.sprocket-hole {
  width: 22px;
  height: 15px;
  background-color: var(--film-hole-bg);
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.6), 0 0 2px rgba(255,255,255,0.9);
}

/* Navigation Bar — Strictly Locked to Window Width (100vw) */
.film-nav-strip {
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 32px 10px;
  background: var(--film-black);
}

.film-brand-link {
  text-decoration: none;
  flex-shrink: 0;
}

.film-brand-orange {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--film-amber);
}

.film-nav-item {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--film-amber);
  text-decoration: none;
  border: none;
  background: transparent;
  padding: 4px 6px;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.film-nav-item:hover {
  color: var(--film-white);
}

.film-nav-item.active {
  color: var(--film-white);
  font-weight: 800;
}

.risk-tag-wip {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--film-amber);
  background: rgba(229, 154, 43, 0.15);
  padding: 2px 5px;
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ============================================================
   2. MAIN VIEWPORT (The Only Horizontally Scrolling Chamber)
   ============================================================ */
.main-viewport {
  width: 100vw;
  max-width: 100vw;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  background: var(--film-black);
}

/* Horizontal Continuous Filmstrip Ribbon */
.film-continuous-strip {
  width: 100vw;
  max-width: 100vw;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px 28px;
  gap: clamp(18px, 2.5vw, 32px);
  scrollbar-width: none; /* Hide OS scrollbars */
  -ms-overflow-style: none;
}

.film-continuous-strip::-webkit-scrollbar {
  display: none;
}

/* Two Photographic Frames Fit Exactly on Desktop Viewport (50% each) */
.film-exposure-frame {
  flex: 0 0 calc(50vw - 52px);
  width: calc(50vw - 52px);
  height: 100%;
  background: var(--film-frame-bg);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 22px 28px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
  overflow-y: auto;
  scrollbar-width: none;
  box-sizing: border-box;
}

.film-exposure-frame::-webkit-scrollbar {
  display: none;
}

/* Vertical Interframe Rebate Gutter Between Exposure Frames */
.film-vertical-interframe {
  flex: 0 0 24px;
  width: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--film-amber);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  user-select: none;
  opacity: 0.85;
  flex-shrink: 0;
}

/* Frame Header Stamp */
.film-frame-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--film-amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.film-frame-header span strong {
  color: #ffffff;
}

/* Photographic Hero Image Plate */
.film-frame-media {
  height: 240px;
  width: 100%;
  overflow: hidden;
  background: #070606;
  margin-bottom: 14px;
  position: relative;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.05);
}

.film-frame-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: contrast(1.05);
}

.film-exposure-frame:hover .film-frame-media img {
  transform: scale(1.03);
}

/* Specimen Content Block */
.film-specimen-name {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 4px;
  font-weight: 600;
  flex-shrink: 0;
}

.film-specimen-specs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #b8b2a7;
  margin-bottom: 12px;
  line-height: 1.4;
  flex-shrink: 0;
}

.film-specimen-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  margin-bottom: 14px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.04);
}

.film-specimen-price span.mono-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--film-amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.film-specimen-price strong {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.film-frame-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  flex-shrink: 0;
}

.btn-dossier {
  flex: 1;
  background: #ffffff;
  color: #000000;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn-dossier:hover {
  background: var(--film-amber);
  color: #000000;
}

.btn-compare-pill {
  background: transparent;
  color: var(--film-amber);
  border: 1px solid var(--film-amber);
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-compare-pill:hover {
  background: var(--film-amber);
  color: #000000;
}

/* ============================================================
   CONTROL FRAME (Archive Index & Restrained Search / Filters)
   ============================================================ */
.film-control-frame {
  background: #11100f;
}

.film-control-title {
  font-family: var(--font-serif);
  font-size: 2.375rem;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 600;
  flex-shrink: 0;
}

.film-control-lead {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.film-search-slate {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 8px 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.film-search-slate input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: #000000;
}

.film-search-slate input::placeholder {
  color: #777777;
}

.film-index-section {
  margin-bottom: 14px;
  flex-shrink: 0;
}

.film-index-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--film-amber);
  margin-bottom: 6px;
}

.film-index-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.film-index-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4beb5;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 9px;
  transition: all 0.15s ease;
}

.film-index-tag:hover {
  background: var(--film-amber);
  color: #000000;
  font-weight: 700;
}

.film-index-tag.active {
  background: var(--film-amber);
  color: #000000;
  font-weight: 800;
}

.film-active-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--film-amber);
  flex-shrink: 0;
}

.film-active-pill {
  background: rgba(229, 154, 43, 0.15);
  border: 1px solid var(--film-amber);
  color: var(--film-amber);
  padding: 2px 6px;
  font-weight: 700;
}

.film-clear-link {
  color: var(--accent-rust);
  text-decoration: none;
  font-weight: 700;
  margin-left: 6px;
}

/* ============================================================
   3. HERO FRAME EXPOSURE
   ============================================================ */
.welkom-frame-exposure {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0f0e0d;
  color: #ffffff;
  overflow: hidden;
  padding: 32px;
}

.welkom-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: contrast(1.15) brightness(0.85);
  pointer-events: none;
}

.welkom-overlay-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(15,14,13,0.3) 0%, rgba(15,14,13,0.88) 100%);
  pointer-events: none;
}

.welkom-center-console {
  position: relative;
  z-index: 10;
  max-width: 960px;
  width: 100%;
  text-align: center;
}

.welkom-title {
  font-family: var(--font-serif);
  font-size: clamp(5.5rem, 8.5vw, 8.5rem);
  line-height: 0.92;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.welkom-subtitle {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--film-amber);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.welkom-search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: none;
  outline: none;
  padding: 8px 10px 8px 16px;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: 0 12px 36px rgba(0,0,0,0.55);
  position: relative;
}

.welkom-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: #111111;
}

.welkom-search-box input::placeholder {
  color: #888888;
}

.btn-search-main {
  background: #111111;
  color: #ffffff;
  border: none;
  outline: none;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-search-main:hover {
  background: var(--accent-forest);
}

.btn-compare-main {
  background: #eae5d8;
  color: #111111;
  border: none;
  outline: none;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-compare-main:hover {
  background: #ded7c6;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: none;
  z-index: 300;
  display: none;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.dropdown-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #f0ede6;
  color: #111111;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.dropdown-entry:hover {
  background: #f5f2e9;
  color: var(--accent-forest);
}

/* ============================================================
   4. BOTTOM FILM RAIL (Stationary, Always 100% Window Width)
   ============================================================ */
.film-rail-bottom {
  width: 100vw;
  max-width: 100vw;
  flex-shrink: 0;
  background: var(--film-black);
  display: flex;
  flex-direction: column;
  z-index: 100;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.film-bottom-strip {
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 32px 8px;
  color: var(--film-amber);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--film-black);
}

.film-bottom-strip a {
  color: var(--film-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.film-bottom-strip a:hover {
  color: var(--film-amber);
}

.latent-barcode {
  display: inline-flex;
  gap: 2px;
  height: 10px;
  align-items: center;
}

.latent-barcode span {
  display: inline-block;
  background: var(--film-amber);
  height: 100%;
}

/* Common UI Atoms */
.mono-tag { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--film-amber); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border: none; background: #ffffff; color: #000000; cursor: pointer; border-radius: 0; transition: all 0.15s ease; text-decoration: none; }
.btn:hover { background: var(--film-amber); color: #000000; }
.btn-secondary { background: rgba(255,255,255,0.08); color: #ffffff; border: none; }
.btn-secondary:hover { background: #ffffff; color: #000000; }
.btn-sm { padding: 5px 10px; font-size: 0.625rem; }

.form-group { margin-bottom: 12px; }
.form-label { display: block; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; color: var(--film-amber); }
.form-control { width: 100%; padding: 8px 12px; background: rgba(255,255,255,0.06); border: 1px solid var(--border-subtle); color: #ffffff; font-family: var(--font-sans); font-size: 0.8125rem; outline: none; }
.form-control:focus { background: rgba(255,255,255,0.12); border-color: var(--film-amber); }

.flash-msg { padding: 8px 14px; border: none; font-size: 0.75rem; font-weight: 600; }
.flash-success { background: var(--accent-forest-subtle); color: #5eead4; }
.flash-error { background: var(--accent-rust-subtle); color: #fca5a5; }

.viewport-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; background: var(--film-frame-bg); border: 1px solid var(--border-subtle); color: #ffffff; }
.viewport-table th, .viewport-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-subtle); text-align: left; }
.viewport-table th { font-family: var(--font-mono); font-size: 0.6875rem; background: rgba(255,255,255,0.03); color: var(--film-amber); text-transform: uppercase; }

.risk-tag { font-family: var(--font-mono); font-size: 0.625rem; font-weight: 700; padding: 2px 6px; border-radius: 2px; text-transform: uppercase; }
.risk-tag-low { background: rgba(34, 84, 61, 0.3); color: #5eead4; border: 1px solid rgba(94, 234, 212, 0.3); }
.risk-tag-high { background: rgba(158, 54, 30, 0.3); color: #fca5a5; border: 1px solid rgba(252, 165, 165, 0.3); }
.risk-tag-medium { background: rgba(229, 154, 43, 0.2); color: #e59a2b; border: 1px solid rgba(229, 154, 43, 0.3); }

/* ============================================================
   COMPARATOR HORIZONTAL FILMSTRIP LAYOUT (Fixed Panel + 35mm Spec Boxes)
   ============================================================ */
.compare-viewport-layout {
  display: flex;
  flex-direction: row;
  width: 100vw;
  max-width: 100vw;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 10px 18px;
  gap: 0;
  background: var(--film-black);
}

/* Fixed Specimen Bay (Pinned Left Panel) */
.compare-fixed-panel {
  flex: 0 0 340px;
  width: 340px;
  height: 100%;
  background: #0d0c0b;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  z-index: 100;
  overflow-y: auto;
  overflow-x: visible;
}

/* Top Left Controls (Height: 38px matching category banner) */
.compare-left-top-bar {
  height: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-top-add-cam {
  background: #181716;
  border: 1px solid #33312e;
  color: #ffffff;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-top-add-cam:hover {
  background: #242220;
  border-color: #55524e;
  color: var(--film-amber);
}

.plus-sign {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--film-amber);
  line-height: 1;
}

.spec-search-wrapper {
  flex: 1;
  min-width: 0;
  position: relative;
}

.spec-search-input {
  width: 100%;
  background: #181716;
  border: 1px solid #33312e;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 6px 10px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.spec-search-input:focus {
  border-color: #66635f;
}

.spec-search-input::placeholder {
  color: #78716c;
  font-size: 0.6875rem;
}

/* Custom Darkroom Spec Autocomplete Suggestions Box */
.spec-search-suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  margin-top: 4px;
  background: #141312;
  border: 1px solid #33312e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95);
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.spec-sugg-item {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1f1d1b;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.spec-sugg-item:last-child {
  border-bottom: none;
}

.spec-sugg-item:hover {
  background-color: #242220;
}

.spec-sugg-name {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
}

.spec-sugg-item:hover .spec-sugg-name {
  color: var(--film-amber);
}

.spec-sugg-cat {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: #78716c;
  letter-spacing: 0.06em;
}

.spec-sugg-empty {
  padding: 12px;
  font-size: 0.75rem;
  color: #78716c;
  text-align: center;
}

/* Stack of Camera Cards */
.compare-cameras-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Camera Card (Exact 150px height matching spec row) */
.compare-camera-card {
  height: 150px;
  min-height: 150px;
  max-height: 150px;
  background: #141312;
  border: 1px solid #282624;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
}

.compare-camera-card.unarmed-slot {
  background: #0f0e0d;
  border: 1px dashed #33312e;
}

.camera-card-top-row {
  display: flex;
  gap: 6px;
  align-items: center;
  position: relative;
  z-index: 20;
}

/* Camera Dropdown Popover Field */
.camera-dropdown-field {
  flex: 1;
  min-width: 0;
  position: relative;
}

.camera-dropdown-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: #181716;
  border: 1px solid #33312e;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  cursor: pointer;
  box-sizing: border-box;
  text-align: left;
}

.camera-dropdown-btn:hover {
  border-color: #55524e;
  background: #201e1d;
}

.cam-btn-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.cam-btn-arrow {
  font-size: 0.625rem;
  color: #78716c;
  margin-left: 6px;
  flex-shrink: 0;
}

.camera-dropdown-popover {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  z-index: 9999;
  margin-top: 4px;
  background: #141312;
  border: 1px solid #44413d;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.98);
  box-sizing: border-box;
}

.camera-popover-search-wrap {
  padding: 6px;
  border-bottom: 1px solid #282624;
  background: #181716;
}

.camera-popover-search-input {
  width: 100%;
  background: #0d0c0b;
  border: 1px solid #33312e;
  color: #ffffff;
  padding: 6px 8px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  outline: none;
  box-sizing: border-box;
}

.camera-popover-search-input:focus {
  border-color: #66635f;
}

.camera-popover-options-list {
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.cam-option-item {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #1f1d1b;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cam-option-item:last-child {
  border-bottom: none;
}

.cam-option-item:hover, .cam-option-item.is-selected {
  background-color: #242220;
  outline: 1px solid rgba(229, 154, 43, 0.4);
}

.cam-option-thumb {
  width: 44px;
  height: 30px;
  aspect-ratio: 3 / 2;
  background: #000000;
  border: 1px solid #282624;
  overflow: hidden;
  flex-shrink: 0;
}

.cam-option-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cam-option-body {
  flex: 1;
  min-width: 0;
}

.cam-option-name {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cam-option-item:hover .cam-option-name {
  color: var(--film-amber);
}

.cam-option-year {
  color: #78716c;
  font-size: 0.6875rem;
  font-weight: 400;
}

.cam-option-specs {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: #78716c;
}

.cam-option-price {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: #a8a29e;
  font-weight: 700;
  flex-shrink: 0;
}

.cam-option-empty {
  padding: 12px;
  font-size: 0.6875rem;
  color: #78716c;
  text-align: center;
}

.btn-remove-cam {
  background: transparent;
  border: 1px solid #33312e;
  color: #78716c;
  font-size: 0.6875rem;
  width: 22px;
  height: 22px;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-remove-cam:hover {
  background: rgba(220, 38, 38, 0.25);
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.5);
}

.unarmed-slot-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.unarmed-slot-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #55524e;
}

.unarmed-plus {
  font-size: 1.25rem;
  line-height: 1;
}

.unarmed-txt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
}

.box-unarmed {
  opacity: 0.45;
}

.val-muted {
  color: #55524e !important;
}

.camera-card-preview-body {
  display: flex;
  gap: 10px;
  align-items: center;
}

.camera-thumb-35mm {
  width: 84px;
  height: 56px;
  aspect-ratio: 3 / 2;
  background: #070606;
  border: 1px solid #282624;
  flex-shrink: 0;
  overflow: hidden;
}

.camera-thumb-35mm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-meta-plate {
  flex: 1;
  min-width: 0;
}

.camera-card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.camera-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 2px;
}

.camera-spec-chips span {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: #a8a29e;
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 4px;
}

.camera-price-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-lbl {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: #78716c;
}

.price-val {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #ffffff;
  font-weight: 700;
}

.camera-card-bottom-row {
  display: flex;
  justify-content: flex-end;
}

.camera-dossier-link {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: #a8a29e;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.15s ease;
}

.camera-dossier-link:hover {
  color: #ffffff;
}

/* Interframe Divider */
.film-vertical-interframe {
  flex: 0 0 24px;
  width: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: #55524e;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  user-select: none;
  flex-shrink: 0;
}

/* Horizontally Scrolling Specs Strip */
.compare-specs-strip {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
  padding: 0 0 0 10px;
  scrollbar-width: none;
}

.compare-specs-strip::-webkit-scrollbar {
  display: none;
}

.compare-specs-inner-ribbon {
  display: flex;
  flex-direction: column;
  width: max-content;
  height: 100%;
}

/* Top Category Ribbon (Height: 38px matching left top bar) */
.compare-top-categories-ribbon {
  height: 38px;
  min-height: 38px;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 8px;
}

.spec-category-banner {
  height: 100%;
  background: #141312;
  border: 1px solid #282624;
  border-right: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-sizing: border-box;
}

.spec-category-banner:last-child {
  border-right: 1px solid #282624;
}

.category-banner-title {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  color: #a8a29e;
  letter-spacing: 0.12em;
}

.category-banner-count {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: #55524e;
}

/* Main Spec Rows Deck */
.compare-spec-rows-deck {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.compare-spec-row {
  height: 150px;
  min-height: 150px;
  max-height: 150px;
  display: flex;
  flex-direction: row;
  width: max-content;
  box-sizing: border-box;
}

/* 35mm (3:2) Aspect Ratio Spec Box: Dark Grey Lines */
.spec-35mm-box {
  width: 225px;
  height: 150px;
  min-width: 225px;
  max-width: 225px;
  aspect-ratio: 3 / 2;
  box-sizing: border-box;
  background: #141312;
  border: 1px solid #242220;
  border-right: none;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s ease;
}

.spec-35mm-box:last-child {
  border-right: 1px solid #242220;
}

.spec-35mm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 4px;
}

.spec-35mm-attr-name {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  color: #a8a29e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spec-35mm-cat-mini {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: #55524e;
  letter-spacing: 0.05em;
}

.spec-35mm-value-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  text-align: center;
}

.spec-35mm-value {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  word-break: break-word;
}

.spec-35mm-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.spec-35mm-cam-name {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: #55524e;
}

/* Presets Box */
.compare-empty-presets-box {
  background: #141312;
  border: 1px solid #282624;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .compare-viewport-layout { flex-direction: column; overflow-y: auto; overflow-x: hidden; height: auto; }
  .compare-fixed-panel { flex: 0 0 auto; width: 100%; height: auto; }
  .compare-specs-strip { flex: 0 0 auto; width: 100%; height: 500px; padding: 12px 0; }
  .film-exposure-frame { flex: 0 0 calc(100vw - 36px); width: calc(100vw - 36px); }
  .film-nav-strip { flex-wrap: wrap; gap: 8px; justify-content: center; }
}

/* ==========================================================================
   SEMANTIC STATUS BADGES & ACCESSIBILITY TOKENS (WP-0102 / [GUI-COLOR-003])
   ========================================================================== */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
  line-height: 1.2;
}
.badge-good { color: #22c55e; background: #14291e; border: 1px solid #166534; }
.badge-warn { color: #f59e0b; background: #2d2010; border: 1px solid #92400e; }
.badge-danger { color: #ef4444; background: #2d1515; border: 1px solid #991b1b; }
.badge-neutral { color: #94a3b8; background: #1e242c; border: 1px solid #334155; }

.badge-dot { font-size: 0.625rem; line-height: 1; }
.badge-label { text-transform: uppercase; letter-spacing: 0.04em; }
.badge-num { font-weight: 700; color: #ffffff; }

/* [GUI-A11Y-005] High-Visibility Universal Focus Rings */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--film-amber, #e5a93c) !important;
  outline-offset: 2px !important;
}

/* ==========================================================================
   SCENE DEDICATED WORKSPACE & 3D VIEWPORT LAYOUT (WP-0083 / WP-0085)
   ========================================================================== */
.scene-workspace-shell {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 84px);
  background: var(--film-black);
  color: var(--film-text);
  overflow: hidden;
  position: relative;
}

.scene-mobile-banner {
  display: none;
  background: var(--film-card);
  border-bottom: 1px solid var(--film-border);
  padding: 8px 16px;
  font-size: 0.75rem;
  color: var(--film-amber);
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .scene-mobile-banner { display: flex; }
  .scene-panel-left, .scene-panel-right { display: none; }
  .scene-workspace-shell { height: auto; min-height: calc(100vh - 84px); }
}

.scene-workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--film-card);
  border-bottom: 1px solid var(--film-border);
  flex-shrink: 0;
  gap: 12px;
}

.scene-toolbar-left, .scene-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scene-toolbar-center {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scene-back-btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--film-amber);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 3px;
}
.scene-back-btn:hover { background: rgba(229, 169, 60, 0.1); }

.scene-project-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--film-text);
}

.scene-tool-btn {
  background: var(--film-surface);
  border: 1px solid var(--film-border);
  color: var(--film-text-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.scene-tool-btn:hover { color: var(--film-text); border-color: var(--film-amber); }
.scene-tool-btn.active {
  background: var(--film-amber-subtle);
  border-color: var(--film-amber);
  color: var(--film-amber);
  font-weight: 700;
}

.scene-workspace-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.scene-panel {
  width: 280px;
  background: var(--film-card);
  border-right: 1px solid var(--film-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 10;
}
.scene-panel-right {
  width: 320px;
  border-right: none;
  border-left: 1px solid var(--film-border);
}

.scene-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--film-border);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--film-text-muted);
}

.scene-panel-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--film-border);
  margin-top: auto;
}

.scene-mini-btn {
  background: var(--film-surface);
  border: 1px solid var(--film-border);
  color: var(--film-amber);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
}
.scene-mini-btn:hover { background: var(--film-amber); color: #000; }

.scene-tree-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  overflow-y: auto;
}

.scene-tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--film-text);
  cursor: pointer;
  border: 1px solid transparent;
}
.scene-tree-item:hover { background: var(--film-surface); }
.scene-tree-item.active {
  background: var(--film-surface);
  border-color: var(--film-amber);
  color: var(--film-amber);
  font-weight: 600;
}

.scene-viewport-container {
  flex: 1;
  position: relative;
  background: var(--film-black, #111113);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scene-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  outline: none;
}

.scene-canvas:focus-visible {
  box-shadow: inset 0 0 0 2px var(--film-amber, #e5a93c);
}

/* Floating HUD Glassmorphism with High-Key Contrast Protection */
.scene-viewport-hud-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 20;
}

.scene-pov-tablist,
.scene-telemetry-cluster,
.scene-viewport-hud-bottom-left,
.scene-viewport-controls {
  pointer-events: auto;
  background: rgba(17, 17, 19, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--film-border, #33333c);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.60);
}

.scene-pov-tablist {
  display: flex;
  padding: 4px;
  gap: 4px;
}

.scene-pov-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--film-text-muted, #888896);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scene-pov-btn:hover {
  color: var(--film-text, #e2e8f0);
  background: var(--film-surface, #222228);
}

.scene-pov-btn.active {
  background: var(--film-amber-subtle, rgba(229, 169, 60, 0.12));
  border-color: var(--film-amber, #e5a93c);
  color: var(--film-amber, #e5a93c);
  font-weight: 700;
}

.scene-telemetry-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.telemetry-label {
  font-size: 0.5625rem;
  color: var(--film-text-muted);
  letter-spacing: 0.05em;
}
.telemetry-val {
  color: #ffffff;
  font-weight: 700;
}

.scene-viewport-hud-bottom-left {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  padding: 4px;
  z-index: 20;
}

.scene-overlay-group,
.scene-safeframe-group {
  display: flex;
  gap: 2px;
}

.scene-overlay-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--film-text-muted, #888896);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scene-overlay-btn:hover {
  color: var(--film-text, #e2e8f0);
  background: var(--film-surface, #222228);
}

.scene-overlay-btn.active {
  background: var(--film-surface, #222228);
  border-color: var(--film-amber, #e5a93c);
  color: var(--film-amber, #e5a93c);
  font-weight: 700;
}

.scene-safe-frame-overlay {
  position: absolute;
  z-index: 18;
  top: 50%;
  left: 50%;
  width: 86%;
  aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(229, 169, 60, 0.96);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.92), 0 0 0 9999px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.scene-safe-frame-overlay[hidden] {
  display: none;
}

.scene-safe-frame-overlay::before,
.scene-safe-frame-overlay::after {
  content: '';
  position: absolute;
  background: rgba(229, 169, 60, 0.72);
}

.scene-safe-frame-overlay::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.scene-safe-frame-overlay::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.scene-safe-frame-label {
  position: absolute;
  top: 6px;
  left: 8px;
  padding: 2px 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: 700 0.5625rem/1.2 var(--font-mono);
  letter-spacing: 0.06em;
}

.scene-viewport-controls {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 4px;
  padding: 4px;
  z-index: 20;
}

.scene-gizmo-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--film-text-muted, #888896);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scene-gizmo-btn:hover {
  color: var(--film-text, #e2e8f0);
  background: var(--film-surface, #222228);
}

.scene-gizmo-btn.active {
  background: var(--film-amber, #e5a93c);
  color: #000000;
  font-weight: 700;
}

.scene-inspector-scroll {
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scene-inspector-fieldset {
  border: 1px solid var(--film-border);
  border-radius: 4px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
}
.scene-inspector-fieldset legend {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--film-amber);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0 4px;
}

.scene-input-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.scene-input-row:last-child { margin-bottom: 0; }
.scene-input-row label {
  font-size: 0.6875rem;
  color: var(--film-text-muted);
  font-weight: 500;
}

.scene-dual-input {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scene-triple-input {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 5px;
}

.scene-triple-input .scene-num-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.scene-runtime-readout {
  display: block;
  margin: 0 0 12px;
  padding: 7px 8px;
  border: 1px solid rgba(229, 169, 60, 0.42);
  border-left: 3px solid var(--film-amber);
  border-radius: 3px;
  background: rgba(229, 169, 60, 0.07);
  color: #fff2cf;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 1.45;
}

.scene-control-hint {
  margin: 0 0 10px;
  color: var(--film-text-muted);
  font-size: 0.625rem;
  line-height: 1.4;
}

.scene-slider {
  flex: 1;
  accent-color: var(--film-amber);
}

.scene-num-input {
  width: 70px;
  background: var(--film-surface);
  border: 1px solid var(--film-border);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 6px;
  border-radius: 3px;
  text-align: right;
}

.scene-select {
  width: 100%;
  background: var(--film-surface);
  border: 1px solid var(--film-border);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 6px 8px;
  border-radius: 3px;
}

.scene-unit {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--film-text-muted);
  width: 24px;
}

.scene-timeline-panel {
  min-height: 130px;
  height: 130px;
  background: var(--film-card);
  border-top: 1px solid var(--film-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 6px 14px;
}

.scene-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--film-text-muted);
  margin-bottom: 6px;
}

.scene-timeline-mode-pills {
  display: inline-flex;
  gap: 4px;
  background: var(--film-black);
  padding: 2px;
  border-radius: 4px;
  border: 1px solid var(--film-border);
}

.timeline-mode-pill {
  background: transparent;
  border: none;
  color: var(--film-text-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.timeline-mode-pill:hover {
  color: var(--film-text);
}

.timeline-mode-pill.active {
  background: var(--film-surface);
  color: var(--film-amber);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.scene-transport-deck {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scene-select-mini {
  background: var(--film-surface);
  border: 1px solid var(--film-border);
  color: var(--film-text);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  padding: 2px 4px;
  border-radius: 3px;
}

.scene-motion-track-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.scene-ev-strip {
  display: flex;
  height: 8px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--film-black);
  border: 1px solid var(--film-border);
}

.scene-ev-bar-segment {
  height: 100%;
}

.stripe-uncertainty {
  background: repeating-linear-gradient(
    45deg,
    #1a1a1e,
    #1a1a1e 4px,
    #f59e0b 4px,
    #f59e0b 8px
  ) !important;
}

.scene-motion-scrub-track {
  height: 38px;
  background: var(--film-black);
  border: 1px solid var(--film-border);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}

.scene-motion-scrub-track:focus-visible {
  outline: 2px solid var(--film-amber);
  outline-offset: 1px;
}

.scene-sprocket-row {
  position: absolute;
  top: 2px;
  left: 6px;
  right: 6px;
  font-size: 0.5rem;
  color: #33333c;
  letter-spacing: 0.25em;
  pointer-events: none;
}

.scene-motion-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
}

.playhead-cap {
  position: absolute;
  top: -2px;
  left: -4px;
  color: var(--film-amber);
  font-size: 0.625rem;
  line-height: 1;
}

.playhead-line {
  position: absolute;
  top: 6px;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--film-amber);
  box-shadow: 0 0 6px rgba(229, 169, 60, 0.6);
}

.scene-motion-pins {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

.scene-pose-pin {
  position: absolute;
  top: 12px;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  color: var(--film-amber);
  font-size: 0.75rem;
  cursor: pointer;
  pointer-events: auto;
  padding: 4px;
}

.scene-pose-pin:hover {
  transform: translateX(-50%) scale(1.25);
}

.scene-pose-pin:focus-visible {
  transform: translateX(-50%) scale(1.25);
  outline: 2px solid var(--film-amber);
  outline-offset: 2px;
  border-radius: 2px;
}

.scene-motion-track-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.625rem;
  color: var(--film-text-muted);
  margin-top: 2px;
}

.scene-variant-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.scene-variant-card {
  background: var(--film-surface);
  border: 1px solid var(--film-border);
  border-radius: 4px;
  padding: 6px 10px;
  min-width: 160px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.6875rem;
}
.scene-variant-card:hover { border-color: var(--film-amber); }
.scene-variant-card.active {
  border-color: var(--film-amber);
  background: var(--film-amber-subtle);
}

.scene-drawer-toggle-btn {
  background: var(--film-surface);
  border: 1px solid var(--film-border);
  color: var(--film-text);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
}

.tablet-only {
  display: none;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Custom dark acetate scrollbars */
.scene-tree-list,
.scene-inspector-scroll,
.scene-variant-strip {
  scrollbar-width: thin;
  scrollbar-color: var(--film-border) var(--film-card);
}

.scene-tree-list::-webkit-scrollbar,
.scene-inspector-scroll::-webkit-scrollbar,
.scene-variant-strip::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scene-tree-list::-webkit-scrollbar-thumb,
.scene-inspector-scroll::-webkit-scrollbar-thumb,
.scene-variant-strip::-webkit-scrollbar-thumb {
  background: var(--film-border);
  border-radius: 3px;
}

/* Tablet Responsive Breakpoint (769px - 1024px) */
@media (max-width: 1024px) {
  .tablet-only {
    display: inline-flex;
    align-items: center;
  }

  .scene-panel-left,
  .scene-panel-right {
    position: absolute;
    top: 40px;
    bottom: 90px;
    z-index: 100;
    transition: transform 0.25s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  }

  .scene-panel-left {
    left: 0;
    transform: translateX(-100%);
  }

  .scene-panel-left.drawer-open {
    transform: translateX(0);
  }

  .scene-panel-right {
    right: 0;
    transform: translateX(100%);
  }

  .scene-panel-right.drawer-open {
    transform: translateX(0);
  }
}

/* WP-0087 Lighting & Accuracy Switcher Styles */
.scene-accuracy-switcher {
  display: flex;
  width: 100%;
  border-radius: 4px;
  background: var(--film-surface);
  border: 1px solid var(--film-border);
  overflow: hidden;
}

.accuracy-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--film-text-muted);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  padding: 5px 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.accuracy-btn:not(:last-child) {
  border-right: 1px solid var(--film-border);
}

.accuracy-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.accuracy-btn.active {
  background: var(--film-card);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px var(--film-amber);
}

.dot-good { color: #22c55e; }
.dot-warn { color: #f59e0b; }
.dot-neutral { color: #94a3b8; }

.badge-neutral {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
}

.cct-slider {
  background: linear-gradient(to right, #ff8b1f 0%, #ffc373 30%, #fff1e0 60%, #ffffff 80%, #cbe5ff 100%);
  border-radius: 2px;
  height: 6px;
}

.tint-slider {
  background: linear-gradient(to right, #22c55e 0%, #222228 50%, #ec4899 100%);
  border-radius: 2px;
  height: 6px;
}

.ev-slider {
  background: linear-gradient(to right, #0284c7 0%, #222228 50%, #e5a93c 100%);
  border-radius: 2px;
  height: 6px;
}

/* ==========================================================================
   WP-0089: 35mm Contact Sheet Variant Strip, Wipe HUD & Export Modal
   ========================================================================== */

.film-rebate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--film-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 3px;
  margin-bottom: 4px;
}

.film-frame-number {
  color: var(--film-amber);
  font-weight: 700;
}

.badge-slot {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  padding: 1px 4px;
  font-size: 0.5625rem;
}

.badge-slot-active {
  background: var(--film-amber);
  color: #111113;
  font-weight: 700;
}

.scene-variant-thumb-container {
  position: relative;
  width: 100%;
  height: 52px;
  background: #0d0d0f;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-variant-thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--film-text-muted);
}

.variant-live-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(34, 197, 94, 0.9);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
}

.variant-name {
  font-size: 0.75rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.variant-specs {
  font-size: 0.625rem;
  color: var(--film-text-muted);
}

.variant-diff-summary {
  margin-top: 2px;
}

/* Viewport A/B Wipe Overlay */
.scene-viewport-wipe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
  z-index: 15;
}

.scene-viewport-wipe-overlay.visible {
  display: block;
}

.scene-wipe-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--film-amber);
  box-shadow: 0 0 8px rgba(229, 169, 60, 0.6);
  pointer-events: auto;
  cursor: ew-resize;
}

.scene-wipe-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 28px;
  background: rgba(17, 17, 19, 0.95);
  border: 1px solid var(--film-amber);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.wipe-handle-label-a { color: var(--film-amber); font-weight: 700; }
.wipe-handle-label-b { color: #38bdf8; font-weight: 700; }

/* Production Export Modal Dialog */
.scene-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.scene-modal-backdrop.visible {
  display: flex;
}

.film-darkroom-dialog {
  background: var(--film-card);
  border: 1px solid var(--film-border);
  border-radius: 6px;
  width: 90%;
  max-width: 640px;
  color: #ffffff;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.scene-modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--film-border);
  position: relative;
}

.modal-rebate-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.5625rem;
  color: var(--film-amber);
  margin-bottom: 4px;
}

.scene-modal-title {
  margin: 0;
  font-size: 1.0rem;
  font-weight: 700;
}

.scene-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--film-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}
.scene-modal-close-btn:hover { color: #ffffff; }

.scene-modal-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scene-export-tablist {
  display: flex;
  border-bottom: 1px solid var(--film-border);
  gap: 4px;
}

.export-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--film-text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.export-tab-btn:hover { color: #ffffff; }
.export-tab-btn.active {
  color: var(--film-amber);
  border-bottom-color: var(--film-amber);
  font-weight: 600;
}

.export-tabpanel {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.export-tabpanel.active {
  display: flex;
}

.scene-bundle-description {
  font-size: 0.75rem;
  color: #c0c0d0;
  line-height: 1.4;
  margin: 0;
}

.export-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

/* ==========================================================================
   WP-0092: Scene Location Mode & Calibration Modal
   ========================================================================== */

.scene-mode-switcher {
  display: inline-flex;
  background: var(--film-surface);
  border: 1px solid var(--film-border);
  border-radius: 4px;
  padding: 2px;
  gap: 2px;
}

.mode-pill-btn {
  background: transparent;
  border: none;
  border-radius: 3px;
  color: var(--film-text-muted);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-pill-btn:hover {
  color: #ffffff;
}

.mode-pill-btn.active {
  background: var(--film-amber);
  color: #111113;
}

.calibration-step-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.calibration-step-panel.active {
  display: flex;
}

.scene-callout-warning {
  background: #2d2010;
  border: 1px solid #92400e;
  border-left: 4px solid var(--film-amber);
  border-radius: 4px;
  padding: 10px 14px;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--film-text);
}

.scene-callout-warning .callout-icon {
  color: var(--film-amber);
  font-size: 1.1rem;
  font-weight: 700;
}

.scene-callout-warning strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--film-amber);
  margin-bottom: 2px;
}

.scene-callout-warning p {
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 0 0 8px 0;
  color: var(--film-text-muted);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--film-amber);
}

.scene-telemetry-pill {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--film-surface);
  border: 1px solid var(--film-border);
  color: var(--film-text);
}

.fitzpatrick-swatch-card:hover {
  border-color: var(--film-amber) !important;
  background: rgba(229, 169, 60, 0.08) !important;
}

.fitzpatrick-swatch-card.active {
  border-color: var(--film-amber) !important;
  background: var(--film-amber-subtle) !important;
}

.btn-danger-action {
  color: #ef4444 !important;
  border-color: #991b1b !important;
  background: #2d1515 !important;
}

.btn-danger-action:hover {
  background: #451a1a !important;
  border-color: #ef4444 !important;
}

.scene-calibration-stepper {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--film-border);
  padding-bottom: 8px;
}

.calib-step-tab {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  background: var(--film-surface);
  border: 1px solid var(--film-border);
  border-radius: 4px;
  color: var(--film-text-muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.calib-step-tab:hover {
  color: var(--film-text);
  border-color: var(--film-amber);
}

.calib-step-tab.active {
  background: var(--film-amber-subtle);
  border-color: var(--film-amber);
  color: var(--film-amber);
  font-weight: 700;
}

/* ----------------------------------------------------
 * 35MM SYSTEM DIAGNOSTICS & TELEMETRY DRAWER (WP-0097)
 * ---------------------------------------------------- */
.scene-diagnostic-drawer {
  position: absolute;
  bottom: 48px;
  left: 12px;
  right: 12px;
  background: rgba(26, 26, 30, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--film-border);
  border-radius: 6px;
  padding: 12px 16px;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  animation: slideUpFade 0.2s ease-out;
}

.scene-diagnostic-drawer.hidden {
  display: none !important;
}

.diagnostic-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--film-border);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.diagnostic-header-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--film-amber);
  letter-spacing: 0.08em;
}

.diagnostic-header-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.diagnostic-card {
  background: var(--film-surface);
  border: 1px solid var(--film-border);
  border-radius: 4px;
  padding: 8px 10px;
}

.diagnostic-card-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--film-text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--film-border);
  padding-bottom: 3px;
}

.diagnostic-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  margin-bottom: 4px;
  color: var(--film-text);
}

.diagnostic-row span {
  color: var(--film-text-muted);
}

.diagnostic-row strong {
  font-family: var(--font-mono);
  color: var(--film-text);
}

.diagnostic-sparkline-container {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  background: var(--film-black);
  border-radius: 3px;
  padding: 2px;
}

.diagnostic-sparkline {
  width: 100%;
  height: 28px;
}

.scene-runtime-alert {
  position: fixed;
  z-index: 12000;
  top: 58px;
  left: 50%;
  width: min(760px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #ef4444;
  border-radius: 5px;
  background: #2b1013;
  color: #fef2f2;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
}

.scene-runtime-alert[hidden] {
  display: none;
}

.scene-runtime-alert strong,
.scene-runtime-alert span {
  display: block;
}

.scene-runtime-alert span {
  margin-top: 3px;
  font-size: 0.75rem;
  color: #fecaca;
}

.scene-runtime-alert-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.scene-tooltip {
  position: fixed;
  z-index: 13000;
  width: max-content;
  max-width: min(320px, calc(100vw - 16px));
  padding: 7px 9px;
  border: 1px solid var(--film-amber, #e5a93c);
  border-radius: 4px;
  background: #13100b;
  color: #fff7e5;
  font: 600 0.6875rem/1.35 var(--font-sans);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.scene-tooltip[hidden] {
  display: none;
}

.scene-help-page {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  overflow-y: auto;
  box-sizing: border-box;
}

.scene-help-page > .film-exposure-frame {
  width: 100%;
  height: auto;
  min-height: 0;
  margin-bottom: 18px;
  overflow: visible;
}

.scene-help-page h1,
.scene-help-page h2,
.scene-help-page h3 {
  color: var(--film-text, #f3f4f6);
}

.scene-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  margin: 18px 0 28px;
}

.scene-help-card {
  padding: 16px;
  border: 1px solid var(--film-border, #444);
  border-radius: 6px;
  background: var(--film-surface, #181818);
}

.scene-help-card h2,
.scene-help-card h3 {
  margin-top: 0;
}

.scene-tool-reference dt {
  margin-top: 12px;
  color: var(--film-amber, #e5a93c);
  font-weight: 700;
}

.scene-tool-reference dd {
  margin: 3px 0 0;
  color: var(--film-text-muted, #c1c1c1);
}

.scene-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

@media (max-width: 720px) {
  .scene-runtime-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .scene-runtime-alert-actions {
    flex-wrap: wrap;
  }
}

/* Universal High-Visibility Focus Rings (WCAG 2.1 AA) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex="0"]:focus-visible,
[role="treeitem"]:focus-visible,
[role="tab"]:focus-visible,
[role="slider"]:focus-visible {
  outline: 2px solid var(--film-amber, #e5a93c) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 8px rgba(229, 169, 60, 0.3) !important;
}
