/* ==========================================================================
   THE CULTURAL CANARY — Horizontal Studio Lineup & Slash-Trail Archive
   Recreated in the exact style of the reference studio portrait:
   - Uniform matte warm-stone studio canvas (#ECEAE5)
   - Tight, overlapping horizontal ensemble of full-body character figures
     (standing, seated in mid-century wooden chairs, seated on the floor)
   - Steep upward ~83deg chains of diagonal slash ticks (//////////////////////////)
     with inline rotated uppercase sans-serif labels at staggered heights
   - Bare-canvas Gilda Display editorial typography (zero cards, zero radials)
   ========================================================================== */

:root {
  --bg-studio: #FFFFFF;
  --bg-drawer: rgba(255, 255, 255, 0.98);
  --text-primary: #161615;
  --text-secondary: #56534D;
  --text-muted: #87837B;
  --slash-color: rgba(22, 22, 21, 0.44);
  --hairline: rgba(22, 22, 21, 0.11);
  --hairline-strong: rgba(22, 22, 21, 0.24);
  --accent-crimson: #186A43;
  --accent-green-bright: #238856;
  --accent-green-soft: #44A675;
  --accent-ochre: #2D8659;
  --font-serif: 'Gilda Display', 'Didot', 'Bodoni MT', 'Georgia', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--bg-studio);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Studio layout adapts responsively to viewport height with guaranteed visible bottom dock */
.app-shell {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-color: var(--bg-studio);
}

/* Tiny Boxed Index Number */
.index-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.index-number.active,
button:hover > .index-number {
  background-color: var(--text-primary);
  color: var(--bg-studio);
  border-color: var(--text-primary);
}

/* ==========================================================================
   WHISPER-MINIMAL TOP BAR
   ========================================================================== */
.top-header {
  position: absolute;
  top: 14px;
  right: 32px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.brand-cluster {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-kicker {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.studio-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.crumb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 2px 0;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.crumb-btn:hover,
.crumb-btn.active {
  color: var(--text-primary);
}

.crumb-sep {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.45;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mode-toggle-group {
  display: inline-flex;
  align-items: center;
  background: rgba(18, 17, 16, 0.055);
  border: 1px solid rgba(18, 17, 16, 0.14);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.mode-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 4px 11px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.mode-toggle-btn:hover {
  color: var(--text-primary);
}

.mode-toggle-btn.active {
  background: var(--text-primary);
  color: var(--bg-studio);
  box-shadow: 0 2px 6px rgba(18, 17, 16, 0.16);
}

.minimal-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 2px 0;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.minimal-link-btn:hover,
.minimal-link-btn.active {
  color: var(--text-primary);
}

.getty-menu-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--text-primary);
  color: var(--bg-studio);
  border: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out-expo);
}

.getty-menu-btn:hover {
  transform: scale(1.08);
}

.getty-menu-btn span {
  display: block;
  width: 12px;
  height: 1.5px;
  background-color: var(--bg-studio);
  border-radius: 1px;
}

/* ==========================================================================
   MAIN STUDIO STAGE (Adaptive Responsive Stage)
   ========================================================================== */
.studio-stage {
  position: relative;
  width: 100%;
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden;
  z-index: 10;
}

.studio-svg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.studio-lineup-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
}

/* ==========================================================================
   BARE-WALL EDITORIAL CAPTION (Whisper-quiet top-left Gilda Display text)
   ========================================================================== */
.studio-wall-caption {
  position: absolute;
  left: 32px;
  top: 12px;
  z-index: 30;
  max-width: 520px;
  padding: 0 18px 10px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 75%, rgba(255, 255, 255, 0) 100%);
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.studio-wall-caption.dossier-wall-caption {
  max-width: min(560px, calc(100vw - 600px));
  padding: 0;
  background: transparent;
}

.studio-wall-caption.dossier-wall-caption .wall-subtitle {
  max-width: min(530px, calc(100vw - 610px));
}

.wall-eyebrow {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-crimson);
  margin-bottom: 3px;
}

.wall-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

.wall-subtitle {
  font-family: var(--font-sans);
  font-size: 11.2px;
  line-height: 1.44;
  color: var(--text-secondary);
  margin-top: 3px;
  max-width: 500px;
}

.wall-inline-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 9px;
  flex-wrap: nowrap;
}

.wall-action-link {
  background: none;
  border: none;
  border-bottom: 1px solid var(--hairline-strong);
  padding: 1px 0;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.wall-action-link:hover {
  color: var(--accent-crimson);
  border-color: var(--accent-crimson);
}

/* ==========================================================================
   STUDIO FLOOR ENSEMBLE FIGURES + STEEP UPWARD //////////////////////// RAYS
   (Exact Recreation of the Reference Portrait)
   ========================================================================== */
.studio-person-node {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out-expo);
}

.studio-person-node.dimmed {
  opacity: 0.16;
}

.studio-person-node.layer-back {
  z-index: 10;
}

.studio-person-node.layer-mid {
  z-index: 18;
}

.studio-person-node.layer-front {
  z-index: 26;
}

.studio-person-node.depth-slot-0 .mini3d-canvas {
  filter: brightness(0.965) contrast(0.98) drop-shadow(0 3px 6px rgba(18, 15, 12, 0.08));
}

.studio-person-node.depth-slot-1 .mini3d-canvas {
  filter: brightness(0.98) contrast(0.99) drop-shadow(0 4px 8px rgba(18, 15, 12, 0.10));
}

.studio-person-node.depth-slot-2 .mini3d-canvas {
  filter: drop-shadow(0 5px 10px rgba(18, 15, 12, 0.13));
}

.studio-person-node.depth-slot-3 .mini3d-canvas {
  filter: drop-shadow(0 7px 14px rgba(18, 15, 12, 0.16));
}

.studio-person-node.depth-slot-4 .mini3d-canvas {
  filter: drop-shadow(0 9px 18px rgba(18, 15, 12, 0.20));
}

.studio-person-node:hover,
.studio-person-node.highlighted {
  z-index: 65 !important;
}

.studio-person-node:hover .mini3d-canvas,
.studio-person-node.highlighted .mini3d-canvas {
  filter: brightness(1.02) contrast(1.03) drop-shadow(0 12px 22px rgba(18, 15, 12, 0.24));
}

.studio-figure-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.35s var(--ease-out-expo);
}

.studio-figure-wrap .studio-character-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Central hit-corridor on each figurine so overlapping foreground figures
   never block pointer hover on background figures standing behind/beside them */
.mini3d-canvas-wrap {
  position: relative;
  width: 56%;
  height: 92%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
  cursor: grab;
}

.mini3d-canvas-wrap:active {
  cursor: grabbing;
}

.mini3d-canvas {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 178%;
  height: 108%;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: bottom center;
  display: block;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.19, 1, 0.22, 1), filter 0.28s ease;
}

/* Wide horizontal diorama figurines (e.g. Poltergeist Carol Anne beside CRT TV) */
.mini3d-canvas-wrap[data-sprite-key="poltergeist"],
.mini3d-canvas-wrap[data-motif-key="poltergeist"] {
  width: 96%;
  height: 94%;
  overflow: visible;
}

.mini3d-canvas-wrap[data-sprite-key="poltergeist"] .mini3d-canvas,
.mini3d-canvas-wrap[data-motif-key="poltergeist"] .mini3d-canvas {
  height: 110%;
  width: auto;
  max-width: none;
  left: 50%;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: bottom center;
  overflow: visible;
}

.studio-person-node[data-work-id="era5-poltergeist"] {
  overflow: visible;
}

.studio-person-node[data-work-id="era5-poltergeist"] .studio-figure-wrap {
  overflow: visible;
}

.dossier-mini3d-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: grab;
  pointer-events: auto;
}

.dossier-mini3d-wrap .mini3d-canvas-wrap {
  width: 100%;
  height: 100%;
}

.dossier-mini3d-wrap .mini3d-canvas {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  transform: none;
}

.studio-person-node:hover .studio-figure-wrap,
.studio-person-node.highlighted .studio-figure-wrap {
  transform: translateY(-6px) scale(1.07);
}

/* Dedicated background layer for all upward slash rays so obliques NEVER appear on top of figurines */
.studio-slashes-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* Steep Upward Slash-Tick Leader Ray (//////////////////////////////////// NAME)
   Anchored behind/above the character's head and rotated ~ -83deg */
.upward-slash-ray {
  position: absolute;
  transform-origin: 0% 50%;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 8px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 3;
}

/* Fine diagonal tick ladder: //////////////////////////////////// */
.upward-slash-ticks {
  font-family: var(--font-mono);
  font-size: 9.2px;
  font-weight: 400;
  letter-spacing: 1.7px;
  color: var(--slash-color);
  line-height: 1;
  transition: color 0.2s ease;
}

/* Inline rotated uppercase title at the exact same angle as the slash trail */
.upward-slash-name {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1;
  transition: color 0.2s ease;
}

.upward-slash-year {
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 4px;
}

.studio-person-node:hover .upward-slash-ticks,
.studio-person-node.highlighted .upward-slash-ticks,
.studio-person-node:hover .upward-slash-name,
.studio-person-node.highlighted .upward-slash-name,
.upward-slash-ray:hover .upward-slash-ticks,
.upward-slash-ray.highlighted .upward-slash-ticks,
.upward-slash-ray:hover .upward-slash-name,
.upward-slash-ray.highlighted .upward-slash-name {
  color: var(--accent-crimson);
}

/* ==========================================================================
   BRANCHING / FANNING DOTTED-TRAJECTORY ERA VISUALIZATION
   (Vertical time-slice columns + fanning dotted emerald-green curves +
    3D figurines perched along curves with horizontal labels beneath feet)
   ========================================================================== */
.fan-label-under {
  position: absolute;
  left: 50%;
  top: calc(100% - 3px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  z-index: 32;
  padding: 2px 6px 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.88);
  transition: transform 0.2s ease, background 0.2s ease;
}

.fan-label-title {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.15;
  transition: color 0.2s ease;
}

.fan-label-sub {
  font-family: var(--font-mono);
  font-size: 7.6px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  line-height: 1.15;
  margin-top: 1px;
}

.studio-person-node:hover .fan-label-title,
.studio-person-node.highlighted .fan-label-title {
  color: var(--accent-crimson);
}

.studio-person-node:hover .fan-label-under,
.studio-person-node.highlighted .fan-label-under {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 8px rgba(18, 15, 12, 0.08);
}

.fan-col-footer {
  position: absolute;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: auto;
  cursor: pointer;
  z-index: 28;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease, color 0.2s ease;
}

.fan-col-footer:hover {
  transform: translateX(-50%) translateY(-2px);
}

.fan-col-footer-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.1;
  transition: color 0.2s ease;
}

.fan-col-footer:hover .fan-col-footer-title,
.fan-col-footer.active .fan-col-footer-title {
  color: var(--accent-crimson);
}

.fan-col-footer-sub {
  font-family: var(--font-mono);
  font-size: 8.2px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 2px;
}

.fan-curve-path {
  fill: none;
  stroke: #238856;
  stroke-width: 1.5;
  stroke-dasharray: 2.5 3.6;
  stroke-linecap: round;
  stroke-opacity: 0.80;
  transition: stroke 0.22s ease, stroke-width 0.22s ease, stroke-opacity 0.22s ease;
}

.fan-curve-path.secondary {
  stroke: #44A675;
  stroke-width: 1.25;
  stroke-opacity: 0.54;
}

.fan-curve-path.highlighted {
  stroke: var(--accent-crimson);
  stroke-width: 2.6;
  stroke-opacity: 1;
}

.fan-divider-line {
  stroke: rgba(22, 22, 21, 0.17);
  stroke-width: 1;
}

.provenance-arc {
  fill: none !important;
  stroke: rgba(24, 106, 67, 0.20);
  stroke-width: 1.15;
  stroke-dasharray: 3 4;
  transition: stroke 0.25s ease, stroke-width 0.25s ease, opacity 0.25s ease;
}

.provenance-arc.highlighted {
  fill: none !important;
  stroke: var(--accent-crimson);
  stroke-width: 1.85;
  stroke-dasharray: none;
}

.wall-anxieties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(22, 22, 21, 0.11);
  max-width: 490px;
}

/* ==========================================================================
   GLASSMORPHIC SIMPLE MODAL NEAR MOVIE TITLE ANCHOR
   ========================================================================== */
.figurine-glass-modal {
  position: absolute;
  left: 0;
  top: 0;
  width: 348px;
  max-width: calc(100vw - 32px);
  padding: 15px 18px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px) saturate(185%);
  -webkit-backdrop-filter: blur(18px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 16px 38px rgba(18, 15, 12, 0.12),
    0 2px 6px rgba(18, 15, 12, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition:
    opacity 0.22s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.22s cubic-bezier(0.19, 1, 0.22, 1),
    left 0.18s cubic-bezier(0.19, 1, 0.22, 1),
    top 0.18s cubic-bezier(0.19, 1, 0.22, 1);
}

.figurine-glass-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.glass-modal-eyebrow {
  font-family: var(--font-sans);
  font-size: 8.8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-crimson);
  margin-bottom: 3px;
}

.glass-modal-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.glass-modal-row {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.42;
  color: var(--text-secondary);
  margin-top: 4px;
}

.glass-modal-row strong {
  color: var(--text-primary);
  font-weight: 600;
}

.glass-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.glass-modal-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-crimson);
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.glass-modal-btn.secondary {
  color: var(--text-primary);
  border-bottom: 1px solid rgba(20, 20, 20, 0.3);
}

.glass-modal-btn:hover {
  opacity: 0.8;
  transform: translateX(2px);
}

/* ==========================================================================
   LEVEL 2 (ERA FLOW) & LEVEL 3 (MOVIE DOSSIER): INTERACTIVE 5-COLUMN DOSSIER
   ========================================================================== */
.studio-flow-rail {
  position: absolute;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(24, 106, 67, 0.36) 0%,
    rgba(22, 22, 21, 0.16) 50%,
    rgba(24, 106, 67, 0.36) 100%
  );
  z-index: 24;
  pointer-events: none;
}

.dossier-column-card {
  position: absolute;
  width: 240px;
  text-align: left;
  pointer-events: auto;
  z-index: 26;
  background: rgba(255, 255, 255, 0.94);
  border-top: 2px solid var(--text-primary);
  padding: 10px 6px 8px 0;
}

.dossier-column-card.era-flow-card {
  width: 268px;
}

.dossier-col-kicker {
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-crimson);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.dossier-col-kicker-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dossier-col-step-arrow {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.dossier-col-serif {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.24;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.dossier-sub-group {
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  padding-top: 7px;
  margin-top: 7px;
}

.dossier-sub-label {
  font-family: var(--font-mono);
  font-size: 7.8px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dossier-sub-body {
  font-family: var(--font-sans);
  font-size: 10.4px;
  line-height: 1.42;
  color: var(--text-secondary);
}

.dossier-sub-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.era-anxiety-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 3px;
}

.era-anxiety-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 10px;
  line-height: 1.32;
  color: var(--text-secondary);
}

.era-anxiety-num {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: var(--accent-crimson);
  flex: 0 0 auto;
}

.dossier-col-mini3d-stage {
  position: relative;
  width: 100%;
  height: 152px;
  margin-top: 5px;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 78%, rgba(24, 106, 67, 0.08) 0%, rgba(255, 255, 255, 0) 74%);
  border: 1px solid rgba(24, 106, 67, 0.16);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.dossier-col-mini3d-stage:hover {
  border-color: var(--accent-crimson);
  box-shadow: inset 0 0 18px rgba(24, 106, 67, 0.06);
}

.dossier-col-mini3d-stage .dossier-mini3d-wrap {
  width: 100%;
  height: 146px;
}

.dossier-turntable-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 6px;
}

.dossier-angle-btn {
  flex: 1 1 0;
  font-family: var(--font-mono);
  font-size: 7.4px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(20, 20, 20, 0.04);
  border: 1px solid rgba(20, 20, 20, 0.10);
  border-radius: 4px;
  padding: 3px 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
}

.dossier-angle-btn:hover,
.dossier-angle-btn.active {
  color: #FFFFFF;
  background: var(--accent-crimson);
  border-color: var(--accent-crimson);
}

.dossier-col-mini3d-hint {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

.dossier-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.dossier-mini-pill {
  font-family: var(--font-mono);
  font-size: 7.8px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: rgba(20, 20, 20, 0.04);
  border: 1px solid rgba(20, 20, 20, 0.10);
  border-radius: 4px;
  padding: 2.5px 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.dossier-mini-pill:hover,
.dossier-mini-pill.active {
  color: var(--accent-crimson);
  background: rgba(24, 106, 67, 0.09);
  border-color: rgba(24, 106, 67, 0.32);
  transform: translateY(-1px);
}

.dossier-jump-pill {
  font-family: var(--font-sans);
  font-size: 9.2px;
  font-weight: 600;
  color: var(--accent-crimson);
  background: rgba(24, 106, 67, 0.06);
  border: 1px solid rgba(24, 106, 67, 0.24);
  border-radius: 4px;
  padding: 3px 7px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  text-align: left;
}

.dossier-jump-pill:hover {
  background: rgba(24, 106, 67, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(24, 106, 67, 0.10);
}

.dossier-downward-slashes {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 1.5px;
  color: rgba(20, 20, 20, 0.20);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: 22px;
  overflow: hidden;
  user-select: none;
}

/* ==========================================================================
   BOTTOM STUDIO FLOOR ERA BAR (Subtle Architectural Floor Brackets)
   ========================================================================== */
.bottom-dock {
  position: relative;
  z-index: 55;
  flex: 0 0 auto;
  width: 100%;
  padding: 0 32px 10px;
}

.era-floor-bar {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--hairline-strong);
  padding-top: 6px;
  align-items: start;
}

.era-floor-btn {
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 2px 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.era-floor-btn:hover,
.era-floor-btn.active {
  opacity: 1;
}

.era-floor-roman {
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.era-floor-btn.active .era-floor-roman {
  color: var(--accent-crimson);
}

.era-floor-years {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   SIDE DRAWER (Master Index of 30 Novels/Short Stories & Core Thesis)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 22, 21, 0.18);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity 0.35s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.side-drawer {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(520px, calc(100vw - 32px));
  z-index: 100;
  background: var(--bg-drawer);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--hairline-strong);
  transform: translateX(calc(100% + 32px));
  transition: transform 0.5s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.side-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.drawer-subtitle {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.drawer-close-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.drawer-tabs {
  display: flex;
  gap: 18px;
  padding: 12px 24px 0;
}

.drawer-search {
  margin: 10px 24px 4px;
  padding: 8px 2px;
  border: none;
  border-bottom: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  outline: none;
}

.drawer-scroll-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
}

.index-era-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 2px 6px;
  border-bottom: 1px solid var(--hairline-strong);
}

.index-era-group-header:first-child {
  padding-top: 6px;
}

.index-era-group-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.index-era-group-jump {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.index-era-group-jump:hover {
  opacity: 1;
  text-decoration: underline;
}

.index-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 2px;
  border: none;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: opacity 0.18s ease;
}

.index-item-row:hover {
  opacity: 0.68;
}

.index-row-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  width: 22px;
  flex-shrink: 0;
}

.index-figurine-thumb-wrap {
  width: 36px;
  height: 48px;
  flex: 0 0 36px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  overflow: visible;
}

.index-figurine-thumb {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(20, 18, 16, 0.16));
}

/* Timeline Stage Architectural Era Span Brackets (maps every figurine cluster on Timeline View to its Era) */
.timeline-era-bracket {
  position: absolute;
  height: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  z-index: 52;
  user-select: none;
  overflow: visible;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.timeline-era-bracket-rule {
  width: 100%;
  height: 5px;
  border-top: 1px solid rgba(22, 22, 21, 0.28);
  border-left: 1px solid rgba(22, 22, 21, 0.36);
  border-right: 1px solid rgba(22, 22, 21, 0.36);
  transition: border-color 0.18s ease;
}

.timeline-era-bracket-label {
  font-family: var(--font-mono);
  font-size: clamp(7.5px, 0.62vw, 8.5px);
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
  pointer-events: none;
  transition: color 0.18s ease;
}

.timeline-era-bracket:hover .timeline-era-bracket-rule,
.timeline-era-bracket.highlighted .timeline-era-bracket-rule {
  border-color: var(--accent-crimson);
  border-top-width: 1.5px;
}

.timeline-era-bracket:hover .timeline-era-bracket-label,
.timeline-era-bracket.highlighted .timeline-era-bracket-label {
  color: var(--accent-crimson);
  font-weight: 600;
}

.timeline-era-divider {
  stroke: rgba(22, 22, 21, 0.08);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
