/* ==========================================================================
   THE INTERLOCK CRATE MAP — Editorial & Archival Design System
   Palette: Obsidian (#0A0B0E), Brass Tungsten (#E8A838), Accra Terracotta (#D96B43)
   ========================================================================== */

:root {
  --bg: #0A0B0E;
  --plate: #101217;
  --surface: #15181F;
  --surface-2: #1C2029;
  --surface-3: #232834;
  --border: rgba(244, 240, 230, 0.09);
  --border-strong: rgba(244, 240, 230, 0.17);
  --border-gold: rgba(232, 168, 56, 0.36);
  --border-terra: rgba(217, 107, 67, 0.42);

  --gold: #E8A838;
  --gold-bright: #F4C466;
  --gold-soft: rgba(232, 168, 56, 0.13);
  --terra: #D96B43;
  --terra-bright: #EC845D;
  --terra-soft: rgba(217, 107, 67, 0.14);

  --ivory: #F4F0E6;
  --ivory-soft: #DCD5C7;
  --muted: #9E988C;
  --dim: #6C675E;

  --font-display: "Bebas Neue", "Impact", "Arial Narrow", sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  background:
    radial-gradient(ellipse 68% 48% at 14% -6%, rgba(232, 168, 56, 0.085), transparent 62%),
    radial-gradient(ellipse 56% 42% at 88% 102%, rgba(217, 107, 67, 0.075), transparent 60%),
    var(--bg);
  color: var(--ivory);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle heavyweight archival matte paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Custom subtle scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #262A34; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #373D4C; }

/* ==========================================================================
   HEADER — Channel Masthead & Actions
   ========================================================================== */
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 26px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 30;
  gap: 16px;
  flex-wrap: wrap;
}

header.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(232, 168, 56, 0.32) 32%, rgba(217, 107, 67, 0.25) 68%, transparent 100%);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.logo-emblem {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: block;
}

.logo-emblem .ring-inner {
  transform-origin: center;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover .logo-emblem .ring-inner {
  transform: rotate(90deg);
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 0.94;
  letter-spacing: 0.085em;
  color: var(--ivory);
  font-weight: 400;
  white-space: nowrap;
}

.brand-edition {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-bright);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-terra);
  background: rgba(217, 107, 67, 0.1);
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(21, 24, 31, 0.85);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}

.pill-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(232, 168, 56, 0.08);
}

.pill-btn.primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #0B0C0E;
  border-color: var(--gold);
  box-shadow: 0 2px 14px rgba(232, 168, 56, 0.22);
}

.pill-btn.primary:hover {
  background: linear-gradient(135deg, #f8cf7a, #eea938);
  color: #0B0C0E;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 168, 56, 0.34);
}

.pill-btn.accent-terra {
  border-color: var(--border-terra);
  background: rgba(217, 107, 67, 0.11);
  color: var(--ivory);
}

.pill-btn.accent-terra:hover {
  border-color: var(--terra-bright);
  color: var(--terra-bright);
  background: rgba(217, 107, 67, 0.18);
}

/* ==========================================================================
   EPISODE AND MAP CONTROLS
   ========================================================================== */
.map-heading {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
}

.map-heading h2 {
  font: 500 27px/1.15 var(--font-serif);
}
.episode-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ivory-soft);
  font: 500 13px var(--font-sans);
}
.episode-picker select, .map-tools-toggle {
  min-height: 44px;
  min-width: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  color: var(--ivory);
  background: var(--plate);
  font: 600 13px var(--font-sans);
  cursor: pointer;
}
.map-tools-toggle {
  border-color: transparent;
  background: transparent;
  color: var(--ivory-soft);
}
.map-tools-toggle span, .record-details summary span {
  display: inline-block;
  margin-left: 4px;
}
.map-tools-toggle[aria-expanded="true"] span, .record-details[open] summary span {
  transform: rotate(180deg);
}

/* ==========================================================================
   MAIN SPLIT WORKSPACE
   ========================================================================== */
main.workspace {
  display: grid;
  grid-template-columns: minmax(345px, 31%) minmax(0, 1fr);
  border-top: 1px solid var(--border);
  flex: 1;
}

/* ==========================================================================
   MAP STAGE — Episode Hero Banner + Exhibition Plate
   ========================================================================== */
.map-stage {
  position: relative;
  padding: 20px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Atmospheric Episode Artwork Hero Strip */
.episode-hero {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--plate);
  overflow: hidden;
  padding: 20px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  isolation: isolate;
}

.episode-hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 42%;
  opacity: 0.62;
  z-index: -2;
  transition: opacity 0.35s ease, transform 0.6s ease;
  filter: saturate(1.06) contrast(1.04);
}

/* Seamless obsidian vignette + warm tungsten glaze */
.episode-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #101217 0%, #101217 48%, rgba(16, 18, 23, 0.72) 66%, rgba(16, 18, 23, 0.22) 100%),
    linear-gradient(180deg, rgba(16, 18, 23, 0.18) 0%, rgba(16, 18, 23, 0.55) 100%);
}

/* Delicate etched gold waveform accent along bottom seam (signature channel motif) */
.hero-waveform {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 10px;
  opacity: 0.45;
  pointer-events: none;
}

.hero-kicker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stage-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra-bright);
  font-weight: 600;
}

.sonic-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(232, 168, 56, 0.1);
}

.stage-title {
  font-family: var(--font-serif);
  font-size: clamp(23px, 2.25vw, 31px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--ivory);
  max-width: 660px;
}

.stage-subtitle {
  font-size: 13px;
  line-height: 1.48;
  color: var(--ivory-soft);
  opacity: 0.82;
  max-width: 580px;
}

.archive-menu {
  position: relative;
  font: 600 13px var(--font-sans);
}
.archive-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  cursor: pointer;
  color: var(--ivory-soft);
  list-style: none;
}
.archive-menu summary::-webkit-details-marker { display: none; }
.archive-menu[open] summary span { transform: rotate(180deg); }
.archive-menu nav {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 175px;
  padding: 5px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--plate);
  box-shadow: 0 12px 30px #0008;
}
.archive-menu nav > * {
  display: block;
  width: 100%;
  padding: 12px;
  color: var(--ivory);
  text-align: left;
  text-decoration: none;
  font: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
}
.archive-menu nav > *:hover, .archive-menu nav > *:focus-visible { color: var(--gold-bright); }
.archive-menu .crate-menu { min-width: min(224px, calc(100vw - 32px)); }
.archive-menu .crate-menu > * { min-height: 44px; }

.archive-hero {
  margin: 16px 26px;
  padding: clamp(20px, 3vw, 42px);
  gap: 9px;
}
.archive-hero .stage-title { max-width: 760px; font-size: clamp(30px, 3.4vw, 52px); }
.archive-hero .stage-subtitle { font-size: 15px; max-width: 57ch; opacity: 1; }
.first-listen { margin-top: 8px; max-width: 670px; }
.first-listen[hidden], .first-listen [hidden] { display: none; }
.listen-transport, .listen-originals { display: flex; flex-wrap: wrap; gap: 9px 16px; align-items: center; }
.listen-toggle { min-height: 46px; padding: 10px 17px; font-size: 14px; }
.listen-replay {
  min-height: 44px;
  padding: 0 5px;
  border: 0;
  color: var(--ivory-soft);
  background: transparent;
  font: 600 13px var(--font-sans);
  cursor: pointer;
}
.listen-replay:hover, .map-tools-toggle:hover { color: var(--gold-bright); }
#listen-icon { width: 1em; text-align: center; }
.listen-description, .listen-originals > span { font: 500 12px var(--font-mono); color: var(--ivory-soft); }
#listen-time { font-variant-numeric: tabular-nums; }
.listen-study-bar { margin-top: 12px; max-width: 520px; }
.listen-chapters { display: grid; grid-template-columns: 44fr 56fr; gap: 8px; margin-bottom: 6px; }
.listen-chapter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(244, 236, 220, 0.14);
  background: rgba(244, 236, 220, 0.04);
  color: var(--ivory-soft);
  font: 500 11px/1.3 var(--font-mono);
  cursor: pointer;
  transition: border-color .22s ease, background .22s ease, color .22s ease;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listen-chapter em { font-style: normal; opacity: 0.72; margin-left: auto; }
.listen-side-tag { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: 0.85; }
.listen-chapter:hover, .listen-chapter:focus-visible { border-color: rgba(214, 173, 96, 0.52); color: var(--ivory); }
.listen-chapter-a.is-active { border-color: var(--terra-bright); background: rgba(209, 108, 69, 0.2); color: var(--ivory); }
.listen-chapter-a.is-active .listen-side-tag { color: var(--terra-bright); }
.listen-chapter-b.is-active { border-color: var(--gold-bright); background: rgba(214, 173, 96, 0.2); color: var(--ivory); }
.listen-chapter-b.is-active .listen-side-tag { color: var(--gold-bright); }
.listen-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(244, 236, 220, 0.14);
  overflow: hidden;
}
.listen-track-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terra-bright) 0%, var(--gold-bright) 100%);
  transition: width 80ms linear;
}
.listen-track-split {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 43.8%;
  width: 2px;
  background: rgba(22, 16, 12, 0.92);
  pointer-events: none;
}
@media (max-width: 520px) {
  .listen-chapters { grid-template-columns: 1fr; gap: 6px; }
}
.listen-cue { margin: 10px 0 0; color: var(--ivory); font: 15px/1.5 var(--font-serif); }
.listen-cue:empty { display: none; }
.listen-originals { margin-top: 8px; }
.listen-originals a, .listen-originals button, .connection-source {
  font: 600 12px/1.5 var(--font-sans);
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.listen-originals button { cursor: pointer; border: 0; padding: 0; background: none; }
.swatch-direct { background-color: var(--gold); }
.swatch.swatch-comparison { height: 0; border-top: 2px dashed var(--terra-bright); }
.record-connections { display: grid; gap: 12px; }
.record-connection { border-left: 2px solid var(--gold); padding-left: 10px; }
.record-connection.comparison { border-left: 2px dashed var(--terra-bright); }
.connection-kind { font: 600 10px/1.5 var(--font-mono); color: var(--gold-bright); text-transform: uppercase; letter-spacing: .06em; }
.comparison .connection-kind { color: var(--terra-bright); }
.connection-record { display: block; color: var(--ivory); cursor: pointer; font: 600 13px/1.5 var(--font-sans); text-align: left; background: none; padding: 3px 0; border: 0; }
.connection-record:hover { text-decoration: underline; }
.record-connection p { font-size: 13px; line-height: 1.5; color: var(--ivory-soft); }
.connection-source { display: inline-block; margin-top: 3px; }

@media (max-width: 820px) {
  .archive-hero { margin: 12px 14px; padding: 20px; }
  .archive-hero .sonic-chip { display: none; }
  header.site-header:has(.archive-menu) { flex-wrap: nowrap; gap: 4px; }
  header:has(.archive-menu) .brand-edition, header:has(.archive-menu) .brand-sub { display: none; }
  .archive-hero .stage-title { max-width: 18ch; }
  .listen-originals > span { flex-basis: 100%; }
}

/* Controls & Legend Bar */
.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-block: 1px solid var(--border);
}
.stage-toolbar[hidden] { display: none; }
.stage-toolbar button { min-height: 36px; }

.legend {
  display: flex;
  gap: 13px;
  padding: 5px 8px 8px;
  font-size: 12px;
  color: var(--ivory-soft);
  align-items: center;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.swatch {
  width: 16px;
  height: 2.5px;
  border-radius: 2px;
}

.swatch-interlock {
  width: 14px;
  height: 10px;
  display: inline-block;
}

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

.kbd-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.kbd-hint kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 9.5px;
}

.focus-switch {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--plate);
}

.focus-switch button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.focus-switch button.active {
  background: rgba(232, 168, 56, 0.18);
  color: var(--gold-bright);
}

/* ==========================================================================
   EXHIBITION PLATE CONTAINER (SVG Canvas + Registration Corners)
   ========================================================================== */
.plate-wrap {
  position: relative;
  width: 100%;
  background:
    radial-gradient(circle at 50% 48%, rgba(232, 168, 56, 0.042), transparent 62%),
    linear-gradient(180deg, rgba(21, 24, 31, 0.78) 0%, rgba(14, 16, 21, 0.92) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  box-shadow:
    inset 0 1px 0 rgba(244, 240, 230, 0.05),
    0 18px 46px rgba(0, 0, 0, 0.42);
}

/* Museum exhibition plate brass registration corners */
.plate-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  border-color: rgba(232, 168, 56, 0.48);
  border-style: solid;
  border-width: 0;
  z-index: 2;
}

.plate-corner.tl { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 3px; }
.plate-corner.tr { top: 8px; right: 8px; border-top-width: 1.5px; border-right-width: 1.5px; border-top-right-radius: 3px; }
.plate-corner.bl { bottom: 8px; left: 8px; border-bottom-width: 1.5px; border-left-width: 1.5px; border-bottom-left-radius: 3px; }
.plate-corner.br { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; border-bottom-right-radius: 3px; }

.plate-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2px 10px 8px;
  border-bottom: 1px solid rgba(244, 240, 230, 0.05);
  margin-bottom: 6px;
}

.plate-caption .plate-id {
  color: var(--ivory-soft);
}

svg#crate-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* ==========================================================================
   SVG INTERACTIVE STATES — Focus-Dimming, Animated Lineage Flow, BPM Pulse
   ========================================================================== */
.node-card {
  cursor: pointer;
  outline: none;
  transition: opacity 0.24s ease;
}

.node-card .card-bg {
  transition: stroke 0.2s ease, stroke-width 0.2s ease, fill 0.2s ease, filter 0.24s ease;
}

.node-card:hover .card-bg {
  fill: #1A1E27;
  stroke: rgba(232, 168, 56, 0.72);
}

.node-card:focus-visible .card-bg {
  stroke: var(--gold-bright);
  stroke-width: 2.4;
}

.node-card.dimmed:not(:hover):not(:focus-visible) .card-bg {
  fill: #101319;
  stroke: rgba(244, 240, 230, 0.09);
}

.node-card.connected .card-bg {
  fill: #181C24;
  stroke: rgba(244, 240, 230, 0.22);
}

.node-card.selected .card-bg {
  fill: #1B2029;
  stroke-width: 2.2;
}

.node-card.selected.accent-gold .card-bg {
  stroke: var(--gold);
  filter: drop-shadow(0 0 18px rgba(232, 168, 56, 0.22));
}

.node-card.selected.accent-terra .card-bg {
  stroke: var(--terra);
  filter: drop-shadow(0 0 18px rgba(217, 107, 67, 0.24));
}

/* Edges & Animated Directional Flow Pulses */
.edge-base {
  fill: none;
  transition: stroke-opacity 0.24s ease, stroke-width 0.24s ease;
}

.edge-base.dimmed {
  stroke-opacity: 0.16;
  stroke-width: 1.4;
}

.edge-base.neutral {
  stroke-opacity: 0.56;
  stroke-width: 1.75;
}

.edge-base.active {
  stroke-opacity: 0.92;
  stroke-width: 2.35;
}

.edge-flow {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 4 14;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.edge-flow.active {
  opacity: 0.95;
  animation: lineageFlow 1.5s linear infinite;
}

@keyframes lineageFlow {
  from { stroke-dashoffset: 18; }
  to { stroke-dashoffset: 0; }
}

/* Edge Label Pills (rendered cleanly on top layer) */
.edge-pill-group {
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.edge-pill-group.dimmed {
  opacity: 0.82;
}

.edge-pill-group.active .pill-rect {
  fill: #14171E;
  stroke-opacity: 0.85;
}

/* BPM Tempo Pulse Ring on Selected Card & Dossier */
.bpm-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: bpmBeat var(--beat-dur, 0.65s) ease-out infinite;
}

@keyframes bpmBeat {
  0% { transform: scale(1); opacity: 0.95; }
  55% { transform: scale(1.65); opacity: 0.25; }
  100% { transform: scale(1); opacity: 0.95; }
}

/* Entrance transition when switching branches */
.branch-enter {
  animation: plateReveal 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes plateReveal {
  from { opacity: 0.35; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MOBILE VERTICAL LINEAGE TIMELINE (active <= 820px)
   ========================================================================== */
.mobile-timeline {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.m-era-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-era-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.m-era-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra-bright);
  font-weight: 600;
}

.m-era-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.m-node {
  width: 100%;
  text-align: left;
  color: inherit;
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3.5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.m-node.terra { border-left-color: var(--terra); }

.m-node.selected {
  background: var(--surface-2);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(232, 168, 56, 0.14);
}

.m-node.terra.selected {
  border-color: var(--terra);
  box-shadow: 0 0 20px rgba(217, 107, 67, 0.16);
}

.m-node-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.m-node-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.m-node.terra .m-node-meta { color: var(--terra-bright); }

.m-cross-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--border-terra);
  color: var(--terra-bright);
  background: var(--terra-soft);
}

.m-node-artist {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ivory-soft);
  margin-top: 2px;
}

.m-node-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ivory);
  margin-top: 6px;
  line-height: 1.2;
}

.m-node-feel {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

.m-edge-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}

.m-edge-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(232, 168, 56, 0.08);
  color: var(--gold-bright);
}

.m-edge-tag.comparison {
  border-color: var(--border-terra);
  background: rgba(217, 107, 67, 0.09);
  color: var(--terra-bright);
}

/* ==========================================================================
   DOSSIER SIDEBAR — Archival Liner Notes
   ========================================================================== */
aside.dossier {
  min-width: 0;
  border-right: 1px solid var(--border);
  background: linear-gradient(155deg, #1b1917 0, #121317 340px, #101115 100%);
  padding: clamp(24px, 2.5vw, 40px);
  scroll-margin-top: 76px;
}
.record-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-bright);
  font: 600 12px/1.4 var(--font-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.record-kicker::after {
  content: "";
  height: 1px;
  width: 44px;
  background: var(--border-gold);
}
.record-credit {
  display: flex;
  gap: 4px 10px;
  flex-wrap: wrap;
  align-items: baseline;
  font: 500 13px/1.5 var(--font-sans);
  color: var(--ivory-soft);
}
.record-credit strong { color: var(--terra-bright); font-size: 15px; }
.record-note {
  margin: 14px 0 8px;
  max-width: 61ch;
  color: var(--ivory);
  font: 400 19px/1.48 var(--font-serif);
}
.record-details summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  color: var(--gold-bright);
  font: 600 14px var(--font-sans);
}
.record-details summary::-webkit-details-marker { display: none; }
.record-details summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.record-details[open] > .dossier-content {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--border-strong);
}

.dossier-content {
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: dossierFade 0.24s ease;
}

@keyframes dossierFade {
  from { opacity: 0.45; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.dossier-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dossier-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.step-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--plate);
  color: var(--ivory-soft);
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.16s ease;
}

.step-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(232, 168, 56, 0.1);
}

.step-btn.share-btn {
  width: auto;
  padding: 0 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 3px;
}

.step-btn.share-btn.copied {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(232, 168, 56, 0.18);
}

.dossier-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.2vw, 52px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--ivory);
  margin: 12px 0 5px;
}
.dossier-title:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Pronunciation Liner-Note Chips (from the_interlock_pronunciation.pls) */
.pronunciation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.pron-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.65);
  font-size: 11px;
  color: var(--muted);
}

.pron-chip strong {
  color: var(--ivory-soft);
  font-weight: 600;
}

.pron-chip em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  color: var(--gold-bright);
}

/* 3-Column Metadata Strip */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.meta-cell {
  background: rgba(10, 11, 14, 0.72);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 10px;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.meta-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--ivory);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-bpm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(232, 168, 56, 0.7);
  animation: bpmBeat var(--beat-dur, 0.65s) ease-out infinite;
}

/* Host Voice Note Deck with 16-Bar Waveform Equalizer */
.voice-box {
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 168, 56, 0.12), transparent 58%),
    linear-gradient(145deg, rgba(232, 168, 56, 0.085), rgba(217, 107, 67, 0.045));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.voice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.voice-label-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.voice-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 600;
}

.voice-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #0B0C0E;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.14s ease, box-shadow 0.16s ease;
}

.play-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 168, 56, 0.34);
}

.voice-wave-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eq-bars {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 18px;
  flex-shrink: 0;
}

.eq-bar {
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: rgba(232, 168, 56, 0.45);
  transition: height 0.2s ease, background 0.2s ease;
}

.voice-box.playing .eq-bar {
  background: var(--gold-bright);
  animation: eqDance 0.72s ease-in-out infinite alternate;
}

.voice-box.playing .eq-bar:nth-child(2n) { animation-duration: 0.56s; animation-delay: 0.12s; }
.voice-box.playing .eq-bar:nth-child(3n) { animation-duration: 0.84s; animation-delay: 0.22s; }
.voice-box.playing .eq-bar:nth-child(5n) { animation-duration: 0.62s; animation-delay: 0.06s; }

@keyframes eqDance {
  0% { height: 4px; }
  100% { height: 17px; }
}

.progress-track {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(244, 240, 230, 0.12);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--terra), var(--gold-bright));
  transition: width 0.2s linear;
}

.voice-script {
  font-family: var(--font-serif);
  font-size: 15.2px;
  line-height: 1.54;
  color: var(--ivory);
}

.voice-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.45;
  color: var(--muted);
}

.voice-hint code {
  color: var(--gold-bright);
  background: rgba(232, 168, 56, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Cross-Branch Interlock Jump Cards */
.interlock-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.interlock-jump {
  background: linear-gradient(135deg, rgba(217, 107, 67, 0.13), rgba(232, 168, 56, 0.05));
  border: 1px solid var(--border-terra);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.16s ease;
}

.interlock-jump:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(232, 168, 56, 0.16), rgba(217, 107, 67, 0.09));
  transform: translateY(-1px);
}

.ij-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.ij-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.ij-kicker {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-bright);
}

.ij-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ivory);
  margin-top: 2px;
}

.ij-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.ij-arrow {
  font-size: 17px;
  color: var(--gold-bright);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.interlock-jump:hover .ij-arrow {
  transform: translateX(3px);
}

/* Connected on This Branch Navigation Chips */
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.branch-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lineage-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.72);
  color: var(--ivory-soft);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lineage-chip:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(232, 168, 56, 0.09);
}

.lineage-chip .dir {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--terra-bright);
}

.lineage-chip.out .dir {
  color: var(--gold);
}

/* Listening Cues */
.cue-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cue-list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ivory-soft);
  padding-left: 16px;
  position: relative;
}

.cue-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--terra);
  transform: rotate(45deg);
  position: absolute;
  left: 2px;
  top: 7.5px;
}

/* Outbound Streaming Links */
.links-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.stream-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 9px;
  background: rgba(10, 11, 14, 0.76);
  border: 1px solid var(--border);
  color: var(--ivory);
  text-decoration: none;
  font-size: 12.6px;
  font-weight: 600;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.stream-link:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(232, 168, 56, 0.06);
}

.stream-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   ARCHIVAL STUDIO FOOTER
   ========================================================================== */
footer.studio-footer {
  border-top: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.94);
  padding: 13px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--ivory);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-links button {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s ease;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--gold-bright);
}

/* ==========================================================================
   MODALS — Join / Email + Archival 18×24" Posters
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 11, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  z-index: 60;
  padding: 20px;
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
  animation: modalIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal h3 {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.18;
}

.modal p {
  font-size: 13.5px;
  line-height: 1.54;
  color: var(--muted);
}

.modal input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease;
}

.modal input[type="email"]:focus {
  border-color: var(--gold);
}

.modal-status {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  color: var(--gold-bright);
  display: none;
}

.modal-status.error {
  color: var(--terra-bright);
}

/* Upcoming Branches Roadmap Strip inside Join Modal */
.upcoming-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(10, 11, 14, 0.65);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upcoming-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-bright);
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upcoming-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
}

.upcoming-item strong {
  color: var(--ivory-soft);
  font-weight: 600;
}

.upcoming-item span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  white-space: nowrap;
}

/* Mini Framed Archival Poster Preview inside Poster Modal */
.poster-preview-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  background: rgba(10, 11, 14, 0.85);
}

.poster-mini-frame {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  border: 3px solid #2A2E38;
  box-shadow: inset 0 0 0 1px rgba(232, 168, 56, 0.4), 0 8px 20px rgba(0, 0, 0, 0.5);
  background: #0B0C0E;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  position: relative;
}

.poster-mini-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.poster-mini-top,
.poster-mini-bottom {
  position: relative;
  z-index: 1;
}

.poster-mini-top {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ivory);
  line-height: 1;
}

.poster-mini-bottom {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.poster-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.poster-specs strong {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ivory);
  font-weight: 500;
}

.poster-specs span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.poster-specs small {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* ==========================================================================
   PHASE 2 — 3-VIEW ATLAS, RADIAL INTERLOCK ENGINE, GUIDED WALK & STUDIOS
   ========================================================================== */

/* Branch Bar Action Controls */
.branch-right-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 11, 14, 0.78);
  color: var(--ivory-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.16s ease;
}

.tool-chip:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(232, 168, 56, 0.09);
}

.tool-chip.walk-btn {
  border-color: var(--border-gold);
  background: rgba(232, 168, 56, 0.1);
  color: var(--gold-bright);
}

.tool-chip.walk-btn.active {
  background: var(--gold);
  color: #0A0B0E;
  font-weight: 600;
}

.tool-chip.vote-btn {
  border-style: dashed;
  border-color: var(--border-terra);
  color: var(--terra-bright);
}

/* 3-View Exhibition Canvas Switcher (Plate · Constellation · Atlas) */
.view-switcher {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--plate);
}

.view-switcher button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.view-switcher button:hover {
  color: var(--ivory);
}

.view-switcher button.active {
  background: linear-gradient(135deg, rgba(232, 168, 56, 0.24), rgba(217, 107, 67, 0.12));
  color: var(--gold-bright);
}

/* View Pane Visibility */
.view-pane {
  display: none;
  position: relative;
}

.view-pane.active {
  display: block;
}

svg#constellation-svg {
  width: 100%;
  height: auto;
  display: block;
}

.star-node {
  cursor: pointer;
  outline: none;
  transition: opacity 0.24s ease;
}

.star-node.dimmed {
  opacity: 0.22;
}

.star-node:hover {
  opacity: 1;
}

/* DNA Thread Filter Pills (Constellation View) */
.dna-filter-bar {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.dna-filter-bar.visible {
  display: flex;
}

.dna-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.72);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.2px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.16s ease;
}

.dna-pill:hover {
  border-color: var(--border-gold);
  color: var(--ivory);
}

.dna-pill.active {
  border-color: var(--gold);
  background: rgba(232, 168, 56, 0.14);
  color: var(--gold-bright);
}

.dna-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Nocturnal 3D Orthographic Globe Canvas */
.atlas-stage-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1240 / 596;
  min-height: 360px;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(232, 168, 56, 0.05), rgba(8, 9, 13, 0.96) 72%);
}

canvas#atlas-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.atlas-hud {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  pointer-events: none;
}

.atlas-hud > * {
  pointer-events: auto;
}

.atlas-hint {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(10, 11, 14, 0.78);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* Floating Guided Listening Walk HUD */
.walk-hud {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  background: linear-gradient(135deg, rgba(232, 168, 56, 0.14), rgba(16, 18, 23, 0.96));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.walk-hud.visible {
  display: flex;
}

.walk-hud-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.walk-hud-kicker {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.walk-hud-title {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ivory);
}

.walk-hud-bed {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
}

.walk-hud-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ==========================================================================
   #1 RADIAL 16-STEP INTERLOCK GROOVE ENGINE (Inside Dossier)
   ========================================================================== */
.groove-deck {
  background: rgba(10, 11, 14, 0.78);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.groove-deck.playing {
  border-color: var(--border-gold);
  box-shadow: 0 0 24px rgba(232, 168, 56, 0.1);
}

.groove-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.groove-kicker {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--terra-bright);
  font-weight: 600;
}

.groove-name {
  font-family: var(--font-serif);
  font-size: 16.5px;
  color: var(--ivory);
  margin-top: 1px;
}

.groove-body {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 14px;
  align-items: center;
}

.radial-ring-svg {
  width: 126px;
  height: 126px;
  display: block;
}

.groove-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer-mutes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.layer-btn {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
  background: rgba(232, 168, 56, 0.12);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.14s ease;
}

.layer-btn.terra {
  border-color: var(--border-terra);
  background: rgba(217, 107, 67, 0.14);
  color: var(--terra-bright);
}

.layer-btn.muted {
  border-color: var(--border);
  background: rgba(244, 240, 230, 0.03);
  color: var(--dim);
  text-decoration: line-through;
}

.pocket-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pocket-toggle {
  display: inline-flex;
  padding: 2px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.pocket-toggle button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  cursor: pointer;
}

.pocket-toggle button.active {
  background: rgba(232, 168, 56, 0.2);
  color: var(--gold-bright);
}

.groove-note {
  font-size: 11.8px;
  line-height: 1.45;
  color: var(--muted);
}

.groove-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--dim);
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.groove-footer button,
.groove-footer a {
  background: none;
  border: none;
  color: var(--gold-bright);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   #4 ARCHIVAL POSTER STUDIO MODAL & #6 BLOODLINE + VOTE MODALS
   ========================================================================== */
.modal.studio-wide {
  max-width: 820px;
  max-height: 92vh;
  overflow-y: auto;
}

.studio-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 22px;
  align-items: start;
}

.poster-gallery-frame {
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: 6px;
  padding: 12px;
  background: #14161B;
  transition: all 0.22s ease;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.65);
}

.poster-gallery-frame.frame-black {
  border: 10px solid #16171C;
  box-shadow: inset 0 0 0 1px rgba(244, 240, 230, 0.14), 0 18px 46px rgba(0, 0, 0, 0.72);
}

.poster-gallery-frame.frame-walnut {
  border: 10px solid #4A3122;
  box-shadow: inset 0 0 0 1px rgba(232, 168, 56, 0.2), 0 18px 46px rgba(0, 0, 0, 0.72);
}

.poster-gallery-frame.frame-brass {
  border: 9px solid #9B742E;
  box-shadow: inset 0 0 0 1px rgba(247, 210, 125, 0.5), 0 18px 46px rgba(0, 0, 0, 0.72);
}

.poster-gallery-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.studio-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.control-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.opt-btn {
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 11, 14, 0.72);
  color: var(--ivory-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.opt-btn:hover {
  border-color: var(--gold);
}

.opt-btn.active {
  border-color: var(--gold);
  background: rgba(232, 168, 56, 0.16);
  color: var(--gold-bright);
}

/* 9:16 Crate Bloodline Story Card Studio */
.bloodline-grid {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 20px;
  align-items: start;
}

.bloodline-canvas-wrap {
  aspect-ratio: 9 / 16;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
  background: #0A0B0E;
}

canvas#bloodline-preview-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.bloodline-picker-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  max-height: 365px;
  overflow-y: auto;
  padding-right: 4px;
}

.bloodline-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.72);
  color: var(--ivory-soft);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bloodline-pick:hover {
  border-color: var(--border-gold);
}

.bloodline-pick.selected {
  border-color: var(--gold);
  background: rgba(232, 168, 56, 0.15);
}

.bp-num {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(244, 240, 230, 0.06);
  color: var(--muted);
  flex-shrink: 0;
}

.bloodline-pick.selected .bp-num {
  background: var(--gold);
  color: #0A0B0E;
  font-weight: 700;
}

.bp-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bp-text strong {
  font-size: 11px;
  color: var(--ivory);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-text small {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Community Vote Next Branch Modal */
.vote-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 410px;
  overflow-y: auto;
}

.vote-card {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.72);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.16s ease;
}

.vote-card:hover {
  border-color: var(--border-gold);
  background: rgba(232, 168, 56, 0.06);
}

.vote-card.voted {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(232, 168, 56, 0.14), rgba(217, 107, 67, 0.05));
}

.vote-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.vote-ep {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--terra-bright);
}

.vote-tally {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold-bright);
}

.vote-title {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ivory);
}

.vote-meta {
  font-size: 11.5px;
  color: var(--muted);
}

.vote-bar-track {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(244, 240, 230, 0.08);
  margin-top: 4px;
  overflow: hidden;
}

.vote-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--terra), var(--gold-bright));
  transition: width 0.35s ease;
}

@media (max-width: 760px) {
  .studio-grid,
  .bloodline-grid,
  .bloodline-picker-list {
    grid-template-columns: 1fr;
  }
  .groove-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1520px) {
  .kbd-hint {
    display: none;
  }
}

@media (max-width: 1180px) {
  main.workspace {
    grid-template-columns: 1fr;
  }
  aside.dossier {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 820px) {
  header.site-header {
    position: relative;
  }

  header.site-header,
  .map-stage,
  aside.dossier,
  footer.studio-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-title {
    font-size: 24px;
  }

  .episode-hero-art {
    width: 62%;
    opacity: 0.34;
  }

  .episode-hero::before {
    background:
      linear-gradient(90deg, #101217 0%, rgba(16, 18, 23, 0.92) 55%, rgba(16, 18, 23, 0.48) 100%),
      linear-gradient(180deg, rgba(16, 18, 23, 0.2) 0%, rgba(16, 18, 23, 0.65) 100%);
  }

  .kbd-hint,
  .focus-switch {
    display: none;
  }

  .plate-caption {
    display: none;
  }
  aside.dossier { scroll-margin-top: 8px; }
  .stage-toolbar button { min-height: 44px; }
  .legend { padding: 0 0 12px; }

  .plate-wrap[data-view="plate"] svg#crate-svg {
    display: none;
  }

  .plate-wrap[data-view="plate"] .mobile-timeline {
    display: flex;
  }
}

@media (max-width: 580px) {
  .map-heading { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .map-heading h2 { grid-column: 1 / -1; }
  .episode-picker { gap: 5px; }
  .episode-picker select { max-width: 100%; }
  .map-tools-toggle { padding-inline: 4px; }
  .record-note { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   YOUTUBE INTEGRATION — #1 LIVE ESSAY THEATER & CHAPTER SYNC
   ========================================================================== */
.tool-chip.essay-btn.active {
  border-color: var(--terra-bright);
  background: rgba(217, 107, 67, 0.22);
  color: var(--ivory);
}

.dossier-artist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.essay-jump-chip {
  font-family: var(--font-mono);
  font-size: 9.8px;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(217, 107, 67, 0.45);
  background: rgba(217, 107, 67, 0.14);
  color: var(--terra-bright);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.essay-jump-chip:hover {
  border-color: var(--terra-bright);
  background: rgba(217, 107, 67, 0.26);
  color: var(--ivory);
}

.spotted-credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(232, 168, 56, 0.1);
  color: var(--ivory-soft);
}

.spotted-credit-badge strong {
  color: var(--gold-bright);
}

.essay-theater {
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(21, 24, 31, 0.96), rgba(11, 13, 18, 0.98));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
}

.essay-theater.open {
  display: flex;
}

.essay-theater.minimized .essay-body {
  display: none;
}

.essay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.82);
}

.essay-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.essay-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.essay-live-dot.live {
  background: var(--terra-bright);
  box-shadow: 0 0 10px var(--terra-bright);
}

.essay-kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.essay-live-time {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ivory);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.essay-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.essay-mini-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ivory-soft);
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.essay-mini-btn.active {
  border-color: var(--border-gold);
  background: rgba(232, 168, 56, 0.16);
  color: var(--gold-bright);
}

.essay-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 13px;
}

.essay-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 290px;
  border-radius: 8px;
  overflow: hidden;
  background: #07080B;
  border: 1px solid var(--border);
}

.essay-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.essay-draft-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.essay-draft-bar button {
  background: none;
  border: none;
  color: var(--terra-bright);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.essay-premiere-slate {
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background-size: cover;
  background-position: center;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.premiere-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.premiere-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ivory);
}

.premiere-sub {
  font-size: 12.6px;
  line-height: 1.5;
  color: var(--ivory-soft);
  max-width: 620px;
}

.premiere-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.draft-tester-row {
  display: none;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.draft-tester-row.visible {
  display: flex;
}

.draft-tester-row input {
  flex: 1;
  min-width: 220px;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 11, 14, 0.88);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 11px;
}

.essay-chapters-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.essay-chapter-pill {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.78);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.essay-chapter-pill:hover {
  border-color: var(--border-gold);
  color: var(--ivory);
}

.essay-chapter-pill.active {
  border-color: var(--gold);
  background: rgba(232, 168, 56, 0.18);
  color: var(--gold-bright);
}

/* ==========================================================================
   YOUTUBE INTEGRATION — #3 CREATOR B-ROLL & SHORTS STUDIO (?studio=1)
   ========================================================================== */
.creator-studio-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  background: #050608;
}

.creator-studio-overlay.open {
  display: flex;
}

.creator-capture-frame {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(232, 168, 56, 0.35);
  background:
    radial-gradient(ellipse 72% 60% at 50% 45%, rgba(232, 168, 56, 0.08), transparent 65%),
    #08090D;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
}

.creator-capture-frame.aspect-wide {
  width: min(1160px, 95vw);
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 110px);
}

.creator-capture-frame.aspect-vertical {
  height: min(820px, calc(100vh - 110px));
  aspect-ratio: 9 / 16;
  max-width: 94vw;
}

#creator-globe-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.creator-top-tag {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(232, 168, 56, 0.3);
  background: rgba(8, 9, 13, 0.78);
}

.creator-corner-stamp {
  position: absolute;
  bottom: 18px;
  right: 22px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(244, 240, 230, 0.62);
}

.creator-lower-third {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 4;
  max-width: 72%;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(232, 168, 56, 0.36);
  border-left: 3px solid var(--gold-bright);
  background: rgba(8, 9, 13, 0.86);
  backdrop-filter: blur(8px);
}

.clt-kicker {
  font-family: var(--font-mono);
  font-size: 9.8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.clt-artist {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.1;
  margin-top: 4px;
}

.clt-title {
  font-size: 13.5px;
  color: var(--terra-bright);
  margin-top: 3px;
}

.creator-groove-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 58px 24px 36px;
  width: 100%;
  height: 100%;
}

.creator-macro-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 17, 23, 0.88);
  text-align: center;
}

.creator-macro-caption.highlight {
  border-color: var(--terra-bright);
  background: rgba(217, 107, 67, 0.2);
  color: var(--gold-bright);
}

.creator-radial-svg {
  width: min(330px, 44vh);
  height: min(330px, 44vh);
}

.creator-stems-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.creator-stem-pad {
  padding: 9px 15px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  background: rgba(232, 168, 56, 0.16);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.creator-stem-pad.muted {
  opacity: 0.34;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-decoration: line-through;
}

.creator-card-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 34px;
}

.creator-card-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.24;
  filter: saturate(0.85) blur(2px);
}

.creator-exhibit-card {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: 28px 32px;
  border-radius: 14px;
  border: 1px solid var(--border-gold);
  background: rgba(10, 11, 14, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.creator-exhibit-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.1;
}

.ce-artist {
  font-size: 16px;
  color: var(--terra-bright);
  font-weight: 600;
}

.ce-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-bright);
}

.ce-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ivory-soft);
  margin-top: 8px;
}

.creator-director-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 17, 23, 0.94);
  max-width: 96vw;
}

.creator-director-bar.hidden-hud {
  display: none;
}

.cdb-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cdb-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-right: 2px;
}

.creator-director-bar .tool-chip.active {
  border-color: var(--gold);
  background: rgba(232, 168, 56, 0.2);
  color: var(--gold-bright);
}

.creator-hud-restore {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 130;
  display: none;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.72);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.2s ease;
}

.creator-hud-restore.visible {
  display: inline-flex;
}

.creator-hud-restore:hover {
  opacity: 1;
  color: var(--gold-bright);
  border-color: var(--border-gold);
}

/* ==========================================================================
   YOUTUBE INTEGRATION — #5 VIEWER-SPOTTED BLOODLINES MODAL & COMMUNITY WALL
   ========================================================================== */
.submit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 10px;
  align-items: start;
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field span {
  font-family: var(--font-mono);
  font-size: 9.8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 11, 14, 0.85);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
}

.spotted-wall-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spotted-wall {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.spotted-card {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.78);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.spotted-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.spotted-handle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gold-bright);
}

.spotted-date {
  font-family: var(--font-mono);
  font-size: 9.2px;
  color: var(--muted);
}

.spotted-pair {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ivory);
  line-height: 1.3;
}

.spotted-pair em {
  font-style: normal;
  color: var(--terra-bright);
  margin: 0 4px;
}

.spotted-note {
  font-size: 12px;
  line-height: 1.48;
  color: var(--muted);
}

@media (max-width: 780px) {
  .submit-layout {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   YOUTUBE INTEGRATION — #6 AUDIENCE CONTENT RADAR (CREATOR STUDIO INSIGHTS)
   ========================================================================== */
.creator-insights-stage {
  width: 100%;
  height: 100%;
  padding: 58px 34px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  overflow-y: auto;
}

.ci-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ci-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 500;
  color: var(--ivory);
  margin-top: 4px;
}

.ci-status-pill {
  font-family: var(--font-mono);
  font-size: 9.8px;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(10, 11, 14, 0.78);
}

.ci-status-pill.live {
  border-color: var(--border-gold);
  color: var(--gold-bright);
  background: rgba(232, 168, 56, 0.14);
}

.ci-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ci-kpi {
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: rgba(15, 17, 23, 0.88);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ci-kpi span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ci-kpi strong {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
  line-height: 1;
}

.ci-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ci-panel {
  padding: 14px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(12, 14, 19, 0.85);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ci-panel-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-bright);
  margin-bottom: 2px;
}

.ci-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ivory-soft);
  padding-top: 6px;
  border-top: 1px solid rgba(244, 240, 230, 0.06);
}

.ci-row em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10.5px;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.ci-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 780px) {
  .ci-kpi-row,
  .ci-cols {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   COMMUNITY PLATFORM (LEAP 1 + LEAP 2)
   #2 Community Crate · #3 Click-to-Compose Ring · #4 Vinyl Spots
   #5 Liner Note Margin Notes · #6 Shareable Crate Passports
   ========================================================================== */

/* #2 Community Crate 4th View Pane */
.community-stage-box {
  min-height: 454px;
  padding: 10px 6px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.community-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.72);
}

.community-head-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.community-head-left strong {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ivory);
}

.community-head-left span {
  font-size: 12px;
  color: var(--muted);
}

.community-head-left code {
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 11px;
}

.community-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.community-card {
  padding: 15px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(155deg, rgba(21, 24, 31, 0.96), rgba(12, 14, 18, 0.96));
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.community-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-1px);
}

.community-card.is-leader {
  border-color: rgba(232, 168, 56, 0.52);
  box-shadow: 0 0 0 1px rgba(232, 168, 56, 0.14), 0 14px 30px rgba(0, 0, 0, 0.35);
}

.cc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cc-badges {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.cc-leader-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(232, 168, 56, 0.16);
  border: 1px solid rgba(232, 168, 56, 0.55);
  color: var(--gold-bright);
}

.cc-date {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.cc-pair {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.3;
  color: var(--ivory);
}

.cc-bridge-arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--terra-bright);
}

.cc-note {
  font-size: 12.8px;
  line-height: 1.52;
  color: var(--muted);
  flex: 1;
}

.cc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(244, 240, 230, 0.07);
}

.cc-handle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--dim);
}

.cc-handle strong {
  color: var(--gold-bright);
  font-weight: 600;
}

/* Reusable Tactile Upvote Pill (Community Crate + Margin Notes) */
.upvote-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 11, 14, 0.85);
  color: var(--ivory-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.upvote-pill:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.upvote-pill.voted {
  border-color: var(--gold);
  background: rgba(232, 168, 56, 0.18);
  color: var(--gold-bright);
}

.upvote-pill.compact {
  padding: 3px 8px;
  font-size: 10px;
  gap: 4px;
}

.upvote-pill .up-arrow {
  font-size: 8.5px;
  line-height: 1;
}

/* #3 Click-to-Compose 16-Step Radial Pocket Studio */
.ring-dot-hit {
  cursor: pointer;
}

.ring-dot-hit:hover {
  fill: rgba(244, 196, 102, 0.16);
}

.pocket-custom-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(82, 199, 184, 0.16);
  border: 1px solid rgba(82, 199, 184, 0.55);
  color: #52C7B8;
  vertical-align: middle;
}

.groove-footer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pocket-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.78);
  color: var(--ivory-soft);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pocket-mini-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* #4 Global Vinyl Spots Layer on 3D Atlas Globe */
.atlas-hud-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.spots-pin-btn {
  border-color: rgba(82, 199, 184, 0.55);
  color: #7AD9CC;
  background: rgba(82, 199, 184, 0.1);
}

.spots-pin-btn:hover {
  border-color: #52C7B8;
  background: rgba(82, 199, 184, 0.22);
  color: #E8FBF8;
}

.atlas-spot-card {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: min(300px, calc(100% - 32px));
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(82, 199, 184, 0.52);
  background: rgba(10, 11, 14, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6);
  z-index: 5;
  flex-direction: column;
  gap: 7px;
}

.atlas-spot-card.visible {
  display: flex;
  animation: modalIn 0.18s ease;
}

.spot-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.spot-cat-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.spot-cat-pill.kissa {
  background: rgba(82, 199, 184, 0.16);
  border: 1px solid rgba(82, 199, 184, 0.55);
  color: #7AD9CC;
}

.spot-cat-pill.shop {
  background: rgba(232, 168, 56, 0.16);
  border: 1px solid rgba(232, 168, 56, 0.55);
  color: var(--gold-bright);
}

.spot-close-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
}

.spot-close-btn:hover {
  color: var(--ivory);
  background: rgba(244, 240, 230, 0.08);
}

.spot-card-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.2;
}

.spot-card-city {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.spot-card-note {
  font-size: 12.2px;
  line-height: 1.48;
  color: var(--ivory-soft);
}

.spot-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 7px;
  border-top: 1px solid rgba(244, 240, 230, 0.08);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--dim);
}

.spot-card-foot strong {
  color: #7AD9CC;
}

.sdc-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(232, 168, 56, 0.14);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 10.2px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.16s ease;
}

.sdc-page-btn:hover {
  background: var(--gold);
  color: #0A0B0E;
}

.spot-form-row {
  display: flex;
  gap: 10px;
}

.submit-form select {
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
}

.submit-form select:focus {
  border-color: var(--gold);
}

/* #5 Timestamped Liner Note Margin Notes (Inside Dossier Sidebar) */
.margin-notes-box {
  padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(11, 13, 18, 0.72);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mn-count {
  color: var(--gold-bright);
}

.mn-add-btn {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
  background: rgba(232, 168, 56, 0.1);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.mn-add-btn:hover {
  background: rgba(232, 168, 56, 0.22);
}

.mn-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 18, 24, 0.9);
}

.mn-form-row {
  display: flex;
  gap: 7px;
}

.mn-time-in {
  width: 78px;
  flex-shrink: 0;
}

.mn-handle-in {
  flex: 1;
}

.mn-time-in,
.mn-handle-in,
.mn-text-in {
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 12px;
  outline: none;
}

.mn-time-in {
  font-family: var(--font-mono);
  text-align: center;
}

.mn-time-in:focus,
.mn-handle-in:focus,
.mn-text-in:focus {
  border-color: var(--gold);
}

.mn-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mn-err {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--terra-bright);
}

.mn-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mn-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(244, 240, 230, 0.06);
  background: rgba(18, 21, 28, 0.72);
}

.mn-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mn-line {
  font-size: 12.2px;
  line-height: 1.45;
  color: var(--ivory-soft);
}

.mn-ts {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(232, 168, 56, 0.16);
  border: 1px solid rgba(232, 168, 56, 0.42);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.mn-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--dim);
}

.mn-empty {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* #6 Shareable Crate Passports Studio Enhancements */
.passport-shared-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid rgba(82, 199, 184, 0.48);
  background: rgba(82, 199, 184, 0.12);
  color: #DDF7F3;
  font-size: 12.5px;
}

.passport-top-inputs {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.passport-top-inputs input {
  width: 100%;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 12.5px;
  outline: none;
}

.passport-top-inputs input:focus {
  border-color: var(--gold);
}

.passport-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.ps-chip {
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.72);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ps-chip span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7AD9CC;
}

.ps-chip strong {
  font-size: 11px;
  color: var(--ivory);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bloodline-canvas-wrap.aspect-45 canvas {
  aspect-ratio: 4 / 5;
}

@media (max-width: 780px) {
  .community-crate-grid {
    grid-template-columns: 1fr;
  }

  .spot-form-row {
    flex-direction: column;
  }

  .passport-stats-strip {
    grid-template-columns: 1fr;
  }

  .atlas-spot-card {
    top: auto;
    bottom: 64px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}
