/* ==========================================================================
   6G MATRIX versus ONE — UX v3: Twin Realities
   Tactical Surveillance Grid (Matrix) vs Luminous Resonance Field (One)
   ========================================================================== */

@font-face {
  font-family: "IBM Plex Sans Variable";
  src: url("/fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. V3 Global Variables & Themes
   -------------------------------------------------------------------------- */

html[data-ui="v3"] {
  --v3-font-sans: "IBM Plex Sans Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --v3-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Code", "Source Code Pro", Menlo, monospace;
  --v3-font-serif: "Iowan Old Style", "Apple Garamond", "Baskerville", "Libre Baskerville", "Times New Roman", Georgia, serif;

  --v3-header-h: 64px;
  --v3-content-max: 1360px;
  --v3-reading-max: 68ch;
  --walk-gutter: clamp(20px, 4.5vw, 72px);

  /* Shared functional tokens */
  --v3-radius-sm: 6px;
  --v3-radius-md: 12px;
  --v3-radius-lg: 20px;
  --v3-radius-pill: 9999px;
  --v3-transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --v3-transition-smooth: 280ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Matrix Reality (Default) */
  --v3-bg: #070a0e;
  --v3-canvas: #0b0f15;
  --v3-surface: #10161f;
  --v3-surface-raised: #151d29;
  --v3-surface-hover: #1c2635;
  --v3-border: rgba(0, 229, 255, 0.16);
  --v3-border-subtle: rgba(255, 255, 255, 0.08);
  --v3-border-bright: rgba(0, 229, 255, 0.5);

  --v3-ink: #f0f4f8;
  --v3-ink-muted: #8c9ba8;
  --v3-ink-faint: #536473;

  --v3-accent: #00d4ff;
  --v3-accent-glow: rgba(0, 212, 255, 0.28);
  --v3-accent-dark: #004d73;
  --v3-accent-signal: #ffb703;
  --v3-accent-danger: #ef4444;
  --v3-accent-matrix-green: #10b981;

  --v3-header-bg: rgba(7, 10, 14, 0.88);
  --v3-header-border: rgba(0, 229, 255, 0.18);
  --v3-glass: rgba(16, 22, 31, 0.78);
  --v3-glass-border: rgba(0, 229, 255, 0.22);
  --v3-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);

  color-scheme: dark;
}

/* One Reality (Organic & Luminous Field) */
html[data-ui="v3"] body[data-pole="one"] {
  --v3-bg: #f4f3ec;
  --v3-canvas: #faf9f4;
  --v3-surface: #ffffff;
  --v3-surface-raised: #f7f6f0;
  --v3-surface-hover: #edece4;
  --v3-border: rgba(16, 99, 79, 0.2);
  --v3-border-subtle: rgba(23, 40, 32, 0.1);
  --v3-border-bright: rgba(16, 99, 79, 0.55);

  --v3-ink: #16241e;
  --v3-ink-muted: #4e6358;
  --v3-ink-faint: #81968b;

  --v3-accent: #0f6c56;
  --v3-accent-glow: rgba(15, 108, 86, 0.22);
  --v3-accent-dark: #083c30;
  --v3-accent-signal: #c26a1b;
  --v3-accent-gold: #b37e19;

  --v3-header-bg: rgba(250, 249, 244, 0.92);
  --v3-header-border: rgba(16, 99, 79, 0.18);
  --v3-glass: rgba(255, 255, 255, 0.88);
  --v3-glass-border: rgba(16, 99, 79, 0.2);
  --v3-shadow: 0 20px 50px rgba(22, 36, 30, 0.12);

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Body & Typography Foundation
   -------------------------------------------------------------------------- */

html[data-ui="v3"] .hidden,
html[data-ui="v3"] #home-fork.hidden,
html[data-ui="v3"] #panel.hidden,
html[data-ui="v3"] #collection.hidden {
  display: none !important;
  visibility: hidden !important;
}

html[data-ui="v3"] body.js-ready .seo-shell,
html[data-ui="v3"] .seo-shell[hidden] {
  display: none !important;
  visibility: hidden !important;
}

html[data-ui="v3"] body {
  background-color: var(--v3-bg);
  color: var(--v3-ink);
  font-family: var(--v3-font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-ui="v3"] #collection {
  background: var(--v3-bg) !important;
  color: var(--v3-ink);
  min-height: calc(100vh - var(--v3-header-h));
  position: relative;
  overflow-x: clip;
  overflow-y: auto;
}

html[data-ui="v3"] body[data-pole="matrix"] #collection {
  background-color: #070a0e !important;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.05), transparent 60%),
    linear-gradient(rgba(0, 229, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}

html[data-ui="v3"] body[data-pole="one"] #collection {
  background-color: #faf9f4 !important;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(15, 108, 86, 0.05), transparent 60%),
    linear-gradient(rgba(16, 99, 79, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 99, 79, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

/* Background tactical grid for Matrix */
html[data-ui="v3"] body[data-pole="matrix"] {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.08), transparent 45%),
    linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, 0 0;
}

/* Background luminous subtle aura for One */
html[data-ui="v3"] body[data-pole="one"] {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(15, 108, 86, 0.08), transparent 50%),
    radial-gradient(circle at 100% 50%, rgba(194, 106, 27, 0.05), transparent 40%),
    linear-gradient(rgba(16, 99, 79, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 99, 79, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
}

html[data-ui="v3"] button,
html[data-ui="v3"] input,
html[data-ui="v3"] select,
html[data-ui="v3"] textarea {
  font-family: inherit;
  color: inherit;
}

html[data-ui="v3"] a {
  color: inherit;
  text-decoration: none;
}

html[data-ui="v3"] :where(a, button, input, [role="button"]):focus-visible {
  outline: 2px solid var(--v3-accent);
  outline-offset: 3px;
  box-shadow: 0 0 12px var(--v3-accent-glow);
}

/* Skip Link */
html[data-ui="v3"] .skip-link {
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 2500;
  padding: 10px 18px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-accent);
  color: #070a0e;
  font-family: var(--v3-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform var(--v3-transition-fast);
  box-shadow: 0 4px 20px var(--v3-accent-glow);
}

html[data-ui="v3"] .skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   3. Header Navigation & Tactical Branding
   -------------------------------------------------------------------------- */

html[data-ui="v3"] body > header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--v3-header-h);
  padding: 0 clamp(16px, 3.5vw, 48px);
  background: var(--v3-header-bg);
  border-bottom: 1px solid var(--v3-header-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background var(--v3-transition-smooth), border-color var(--v3-transition-smooth);
}

html[data-ui="v3"] .header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

/* Pole switcher pills */
html[data-ui="v3"] .pole-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: var(--v3-surface);
  border: 1px solid var(--v3-border-subtle);
  border-radius: var(--v3-radius-pill);
}

html[data-ui="v3"] .pole-mark-link {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--v3-radius-pill);
  font-family: var(--v3-font-mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v3-ink-muted);
  border: 1px solid transparent;
  transition: all var(--v3-transition-fast);
}

html[data-ui="v3"] .pole-mark-link:hover {
  color: var(--v3-ink);
  background: var(--v3-surface-hover);
}

html[data-ui="v3"] .pole-mark-link--matrix.active {
  background: #0a141d;
  color: #00d4ff;
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.22), inset 0 0 8px rgba(0, 212, 255, 0.1);
}

html[data-ui="v3"] .pole-mark-link--one.active {
  background: #ffffff;
  color: #0f6c56;
  border-color: rgba(15, 108, 86, 0.4);
  box-shadow: 0 2px 10px rgba(15, 108, 86, 0.12), inset 0 0 4px rgba(15, 108, 86, 0.06);
}

html[data-ui="v3"] .pole-mark-sep {
  display: none;
}

/* Center branding banner */
html[data-ui="v3"] .header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
}

html[data-ui="v3"] .wef-logo {
  font-family: var(--v3-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-surface);
  border: 1px solid var(--v3-border-subtle);
  color: var(--v3-ink-muted);
  transition: all var(--v3-transition-fast);
}

html[data-ui="v3"] body[data-pole="matrix"] .wef-logo {
  border-color: rgba(0, 212, 255, 0.2);
  color: #a0d8ef;
}

html[data-ui="v3"] body[data-pole="one"] .wef-logo {
  border-color: rgba(15, 108, 86, 0.2);
  color: #2b5747;
}

/* Navigation tabs right */
html[data-ui="v3"] .nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

html[data-ui="v3"] .nav a {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--v3-radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--v3-ink-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--v3-transition-fast);
}

html[data-ui="v3"] .nav a:hover {
  color: var(--v3-ink);
  background: var(--v3-surface);
  border-color: var(--v3-border-subtle);
}

html[data-ui="v3"] .nav a.active {
  color: var(--v3-ink);
  background: var(--v3-surface-raised);
  border-color: var(--v3-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

html[data-ui="v3"] body[data-pole="matrix"] .nav a.active {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
  color: #00d4ff;
}

html[data-ui="v3"] body[data-pole="one"] .nav a.active {
  border-color: rgba(15, 108, 86, 0.35);
  box-shadow: 0 2px 8px rgba(15, 108, 86, 0.12);
  color: #0f6c56;
}

/* History button */
html[data-ui="v3"] #history-btn {
  font-family: var(--v3-font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 0 14px;
  min-height: 38px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-surface);
  border: 1px solid var(--v3-border-subtle);
  color: var(--v3-ink-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--v3-transition-fast);
}

html[data-ui="v3"] #history-btn:hover {
  background: var(--v3-surface-hover);
  color: var(--v3-ink);
  border-color: var(--v3-border);
}

html[data-ui="v3"] #history-menu {
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius-md);
  box-shadow: var(--v3-shadow);
  padding: 8px;
  min-width: 220px;
  backdrop-filter: blur(16px);
}

html[data-ui="v3"] #history-menu button {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--v3-radius-sm);
  background: transparent;
  border: 0;
  font-size: 13px;
  color: var(--v3-ink);
  cursor: pointer;
  transition: background var(--v3-transition-fast);
}

html[data-ui="v3"] #history-menu button:hover {
  background: var(--v3-surface-hover);
}

/* --------------------------------------------------------------------------
   4. Splash Landing (The Two Portals: Matrix vs One)
   -------------------------------------------------------------------------- */

html[data-ui="v3"] .fork-doors {
  min-height: calc(100vh - var(--v3-header-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #000;
}

html[data-ui="v3"] .fork-door {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex var(--v3-transition-smooth);
}

html[data-ui="v3"] .fork-hero {
  height: 100%;
  min-height: calc(100vh - var(--v3-header-h));
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 6vw, 84px) clamp(24px, 5vw, 64px);
  background-size: cover;
  background-position: center;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), filter 600ms ease;
}

html[data-ui="v3"] .fork-door:hover .fork-hero {
  transform: scale(1.02);
}

/* Tactical Matrix Door Overlay */
html[data-ui="v3"] .fork-door--matrix::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to top, rgba(7, 10, 14, 0.96) 0%, rgba(7, 10, 14, 0.55) 45%, rgba(7, 10, 14, 0.25) 100%),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px;
  z-index: 1;
  pointer-events: none;
}

/* Organic One Door Overlay */
html[data-ui="v3"] .fork-door--one::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to top, rgba(14, 28, 22, 0.95) 0%, rgba(14, 28, 22, 0.45) 45%, rgba(14, 28, 22, 0.15) 100%),
    radial-gradient(circle at 80% 20%, rgba(194, 106, 27, 0.15), transparent 50%);
  z-index: 1;
  pointer-events: none;
}

html[data-ui="v3"] .fork-hero .hero-text-stack {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

html[data-ui="v3"] .fork-hero .hero-kicker {
  font-family: var(--v3-font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

html[data-ui="v3"] .fork-door--matrix .hero-kicker {
  color: #00e5ff;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

html[data-ui="v3"] .fork-door--one .hero-kicker {
  color: #5eead4;
  text-shadow: 0 0 14px rgba(94, 234, 212, 0.35);
}

html[data-ui="v3"] .fork-hero .hero-title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 14px;
}

html[data-ui="v3"] .fork-door--one .hero-title {
  font-family: var(--v3-font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

html[data-ui="v3"] .fork-hero .hero-tagline {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

html[data-ui="v3"] .fork-door-enter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--v3-radius-pill);
  font-family: var(--v3-font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--v3-transition-fast);
}

html[data-ui="v3"] .fork-door--matrix .fork-door-enter {
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.45);
  color: #00e5ff;
}

html[data-ui="v3"] .fork-door--matrix:hover .fork-door-enter {
  background: #00d4ff;
  color: #070a0e;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.5);
}

html[data-ui="v3"] .fork-door--one .fork-door-enter {
  background: rgba(94, 234, 212, 0.15);
  border: 1px solid rgba(94, 234, 212, 0.4);
  color: #a7f3d0;
}

html[data-ui="v3"] .fork-door--one:hover .fork-door-enter {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.45);
}

/* --------------------------------------------------------------------------
   5. Walk Experience (Cinematic Widescreen Theater)
   -------------------------------------------------------------------------- */

html[data-ui="v3"] .walk-film-frame {
  position: relative;
  min-height: clamp(480px, 64vh, 720px);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 56px) var(--walk-gutter);
  touch-action: pan-y pinch-zoom;
  transition: opacity 220ms ease, filter 220ms ease;
  overflow: hidden;
}

/* Widescreen Vignette & Gradient Overlays */
html[data-ui="v3"] body[data-pole="matrix"] .walk-film-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 30%, transparent 40%, rgba(7, 10, 14, 0.8) 100%),
    linear-gradient(to top, rgba(7, 10, 14, 0.98) 0%, rgba(7, 10, 14, 0.6) 40%, rgba(7, 10, 14, 0.25) 100%),
    linear-gradient(rgba(0, 229, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px;
  pointer-events: none;
  z-index: 1;
}

html[data-ui="v3"] body[data-pole="one"] .walk-film-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 30%, transparent 45%, rgba(14, 28, 22, 0.75) 100%),
    linear-gradient(to top, rgba(14, 28, 22, 0.96) 0%, rgba(14, 28, 22, 0.5) 40%, rgba(14, 28, 22, 0.2) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Feathered hero-to-dossier bottom transition */
html[data-ui="v3"] .walk-film-frame::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(80px, 14vh, 160px);
  pointer-events: none;
  z-index: 2;
}

html[data-ui="v3"] body[data-pole="matrix"] .walk-film-frame::after {
  background: linear-gradient(to bottom, transparent, rgba(7, 10, 14, 0.95) 75%, #070a0e 100%);
}

html[data-ui="v3"] body[data-pole="one"] .walk-film-frame::after {
  background: linear-gradient(to bottom, transparent, rgba(250, 249, 244, 0.95) 75%, #faf9f4 100%);
}

/* Ghost Navigation Arrows (Large Touch / Clickable sides) */
html[data-ui="v3"] .walk-film-ghost,
html[data-ui="v3"] .walk-film-ghost-prev,
html[data-ui="v3"] .walk-film-ghost-next {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(56px, 10vw, 120px);
  z-index: 4;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  transition: opacity var(--v3-transition-fast), background var(--v3-transition-fast);
  color: #ffffff;
  font-size: 26px;
}

html[data-ui="v3"] .walk-film-ghost-prev,
html[data-ui="v3"] .walk-film-ghost--prev {
  left: 0;
}

html[data-ui="v3"] .walk-film-ghost-next,
html[data-ui="v3"] .walk-film-ghost--next {
  right: 0;
}

html[data-ui="v3"] .walk-film-ghost:hover,
html[data-ui="v3"] .walk-film-ghost-prev:hover,
html[data-ui="v3"] .walk-film-ghost-next:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.25);
}

/* Overlay and dots positioning */
html[data-ui="v3"] .walk-film-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
}

html[data-ui="v3"] .walk-film-dots-wrap {
  margin-bottom: 20px;
}

html[data-ui="v3"] .walk-film-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 10, 14, 0.65);
  padding: 6px 14px;
  border-radius: var(--v3-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

html[data-ui="v3"] body[data-pole="one"] .walk-film-dots {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 99, 79, 0.18);
}

html[data-ui="v3"] .walk-film-dot {
  width: 20px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  border: 0;
  cursor: pointer;
  transition: all var(--v3-transition-fast);
}

html[data-ui="v3"] body[data-pole="one"] .walk-film-dot {
  background: rgba(22, 36, 30, 0.22);
}

html[data-ui="v3"] .walk-film-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

html[data-ui="v3"] .walk-film-dot.on,
html[data-ui="v3"] .walk-film-dot.active {
  width: 34px;
  background: var(--v3-accent);
  box-shadow: 0 0 10px var(--v3-accent-glow);
}

html[data-ui="v3"] .walk-film-progress {
  font-family: var(--v3-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--v3-ink-muted);
  margin-left: 6px;
}

/* HUD Breadcrumbs & Kicker Line */
html[data-ui="v3"] .v3-hud-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

html[data-ui="v3"] .v3-hud-compass {
  font-family: var(--v3-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--v3-radius-pill);
}

html[data-ui="v3"] body[data-pole="matrix"] .v3-hud-compass {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

html[data-ui="v3"] body[data-pole="one"] .v3-hud-compass {
  background: rgba(15, 108, 86, 0.1);
  border: 1px solid rgba(15, 108, 86, 0.3);
  color: #0f6c56;
}

html[data-ui="v3"] .v3-hud-seal {
  font-family: var(--v3-font-mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

html[data-ui="v3"] .v3-hud-seal-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
}

html[data-ui="v3"] .v3-hud-seal--fact {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

html[data-ui="v3"] .v3-hud-seal--dev {
  background: rgba(234, 88, 12, 0.18);
  border: 1px solid rgba(234, 88, 12, 0.5);
  color: #fb923c;
}

html[data-ui="v3"] .v3-hud-seal--echo {
  background: rgba(217, 119, 6, 0.18);
  border: 1px solid rgba(217, 119, 6, 0.5);
  color: #f59e0b;
}

html[data-ui="v3"] .v3-hud-seal--intro {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #00e5ff;
}

html[data-ui="v3"] .v3-hud-seal--voice {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

html[data-ui="v3"] .v3-hud-seal--mirror {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #c084fc;
}

html[data-ui="v3"] .v3-hud-seal--source {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #60a5fa;
}

html[data-ui="v3"] .v3-hud-seal--default {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* One Bio-Field Seal Overrides */
html[data-ui="v3"] body[data-pole="one"] .v3-hud-seal {
  font-family: var(--v3-font-sans);
  font-weight: 600;
  letter-spacing: 0.05em;
}

html[data-ui="v3"] body[data-pole="one"] .v3-hud-seal--intro {
  background: rgba(15, 108, 86, 0.12);
  border: 1px solid rgba(15, 108, 86, 0.35);
  color: #0f6c56;
}

html[data-ui="v3"] body[data-pole="one"] .v3-hud-seal--fact {
  background: rgba(184, 130, 34, 0.15);
  border: 1px solid rgba(184, 130, 34, 0.4);
  color: #8c5d08;
}

html[data-ui="v3"] body[data-pole="one"] .v3-hud-seal--dev {
  background: rgba(194, 65, 12, 0.12);
  border: 1px solid rgba(194, 65, 12, 0.35);
  color: #9a3412;
}

html[data-ui="v3"] body[data-pole="one"] .v3-hud-seal--echo {
  background: rgba(180, 83, 9, 0.12);
  border: 1px solid rgba(180, 83, 9, 0.35);
  color: #854d0e;
}

html[data-ui="v3"] body[data-pole="one"] .v3-hud-seal--voice {
  background: rgba(11, 66, 52, 0.12);
  border: 1px solid rgba(11, 66, 52, 0.35);
  color: #0b4234;
}

html[data-ui="v3"] body[data-pole="one"] .v3-hud-seal--mirror {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #6d28d9;
}

html[data-ui="v3"] .walk-film-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--v3-radius-pill);
  font-family: var(--v3-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

html[data-ui="v3"] body[data-pole="matrix"] .walk-film-kicker {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: #00e5ff;
}

html[data-ui="v3"] body[data-pole="one"] .walk-film-kicker {
  background: rgba(94, 234, 212, 0.15);
  border: 1px solid rgba(94, 234, 212, 0.35);
  color: #a7f3d0;
}

html[data-ui="v3"] .walk-film-title {
  font-size: clamp(28px, 4.2vw, 50px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

html[data-ui="v3"] body[data-pole="one"] .walk-film-title {
  font-family: var(--v3-font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
}

html[data-ui="v3"] .walk-film-caption {
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: var(--v3-reading-max);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   6. Deepening Layer & Tactical Dossier (De Haak & Citaat)
   -------------------------------------------------------------------------- */

html[data-ui="v3"] .walk-film-cue {
  padding: 20px var(--walk-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 5;
}

html[data-ui="v3"] body[data-pole="matrix"] .walk-film-cue {
  background: #0d1217;
  border-top: 1px solid rgba(0, 229, 255, 0.18);
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

html[data-ui="v3"] body[data-pole="one"] .walk-film-cue {
  background: #faf9f4;
  border-top: 1px solid rgba(16, 99, 79, 0.16);
  border-bottom: 1px solid rgba(16, 99, 79, 0.08);
  box-shadow: 0 4px 20px rgba(22, 36, 30, 0.04);
}

html[data-ui="v3"] .walk-film-cue-kicker {
  font-family: var(--v3-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

html[data-ui="v3"] body[data-pole="matrix"] .walk-film-cue-kicker {
  color: #00e5ff;
}

html[data-ui="v3"] body[data-pole="one"] .walk-film-cue-kicker {
  color: #0f6c56;
}

html[data-ui="v3"] .walk-film-cue p {
  margin: 0;
  font-size: 14px;
  color: var(--v3-ink-muted);
}

html[data-ui="v3"] .walk-film-enter-link,
html[data-ui="v3"] .walk-film-deepen-toggle {
  font-family: var(--v3-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--v3-radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--v3-transition-fast);
}

html[data-ui="v3"] body[data-pole="matrix"] .walk-film-deepen-toggle,
html[data-ui="v3"] body[data-pole="matrix"] .walk-film-enter-link {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #00e5ff;
}

html[data-ui="v3"] body[data-pole="matrix"] .walk-film-deepen-toggle:hover,
html[data-ui="v3"] body[data-pole="matrix"] .walk-film-enter-link:hover {
  background: #00d4ff;
  color: #070a0e;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.5);
}

html[data-ui="v3"] body[data-pole="one"] .walk-film-deepen-toggle,
html[data-ui="v3"] body[data-pole="one"] .walk-film-enter-link {
  background: rgba(15, 108, 86, 0.1);
  border: 1px solid rgba(15, 108, 86, 0.35);
  color: #0f6c56;
}

html[data-ui="v3"] body[data-pole="one"] .walk-film-deepen-toggle:hover,
html[data-ui="v3"] body[data-pole="one"] .walk-film-enter-link:hover {
  background: #0f6c56;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 108, 86, 0.25);
}

/* Deepen Panel (Decompress Zone) */
html[data-ui="v3"] .walk-film-deepen-panel {
  padding: clamp(36px, 5vw, 68px) var(--walk-gutter);
  scroll-margin-top: calc(var(--v3-header-h) + 12px);
}

html[data-ui="v3"] body[data-pole="matrix"] .walk-film-deepen-panel {
  background: #070a0e;
  border-bottom: 1px solid rgba(0, 229, 255, 0.16);
}

html[data-ui="v3"] body[data-pole="one"] .walk-film-deepen-panel {
  background: #faf9f4;
  border-bottom: 1px solid rgba(16, 99, 79, 0.14);
}

html[data-ui="v3"] .pole-overview {
  max-width: var(--v3-content-max);
  margin: 0 auto;
}

/* Tactical Hook Grid */
html[data-ui="v3"] .pole-overview-hook-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--v3-border-subtle);
}

html[data-ui="v3"] .pole-overview-hook-grid--solo {
  grid-template-columns: 1fr;
}

html[data-ui="v3"] .pole-overview-hook-panel {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--v3-radius-md);
  background: var(--v3-surface);
  border: 1px solid var(--v3-border-subtle);
  box-shadow: var(--v3-shadow);
}

html[data-ui="v3"] body[data-pole="matrix"] .pole-overview-hook-panel--quote {
  border-left: 3px solid var(--v3-accent) !important;
  background: linear-gradient(135deg, rgba(16, 22, 31, 0.95), rgba(11, 15, 21, 0.98)) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6) !important;
}

html[data-ui="v3"] body[data-pole="one"] .pole-overview-hook-panel--quote {
  border-left: 3px solid var(--v3-accent) !important;
  background: #ffffff !important;
  font-family: var(--v3-font-serif) !important;
  box-shadow: 0 4px 20px rgba(22, 36, 30, 0.08) !important;
}

html[data-ui="v3"] .pole-overview--one .pole-overview-hook-panel--quote::after,
html[data-ui="v3"] .pole-overview--matrix .pole-overview-hook-panel--quote::after {
  display: none !important;
}

html[data-ui="v3"] .pole-overview--one .pole-overview-hook-panel--quote::before {
  content: "VELDNOTITIE // RESONANTIE & VELD" !important;
  font-family: var(--v3-font-serif) !important;
  font-style: italic !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  color: #b37e19 !important;
  display: block !important;
  margin-bottom: 12px !important;
}

html[data-ui="v3"] .pole-overview--matrix .pole-overview-hook-panel--quote::before {
  content: "┌── [ SYS_REC // 6G-GRID SPECIFICATION ] ─────────────────────────" !important;
  font-family: var(--v3-font-mono) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #00e5ff !important;
  display: block !important;
  margin-bottom: 12px !important;
}

html[data-ui="v3"] .pole-overview--one .pole-overview-quote {
  font-family: var(--v3-font-serif) !important;
  font-size: 18px !important;
  line-height: 1.65 !important;
  color: #1b3227 !important;
  font-style: italic !important;
  text-shadow: none !important;
}

html[data-ui="v3"] .pole-overview--one .quote-src {
  font-family: var(--v3-font-sans) !important;
  font-size: 13px !important;
  color: #b37e19 !important;
  font-style: normal !important;
}

html[data-ui="v3"] .pole-overview--matrix .pole-overview-quote {
  font-family: var(--v3-font-mono) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #e2e8f0 !important;
  text-shadow: 0 0 1px rgba(0, 212, 255, 0.3) !important;
}

html[data-ui="v3"] .pole-overview--matrix .quote-src {
  font-family: var(--v3-font-mono) !important;
  font-size: 12px !important;
  color: #00e5ff !important;
}

html[data-ui="v3"] .pole-overview-hook-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

html[data-ui="v3"] .pole-overview-hook-tag {
  font-family: var(--v3-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--v3-radius-pill);
}

html[data-ui="v3"] body[data-pole="matrix"] .pole-overview-hook-tag {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: #00e5ff;
}

html[data-ui="v3"] body[data-pole="one"] .pole-overview-hook-tag {
  background: rgba(15, 108, 86, 0.1);
  border: 1px solid rgba(15, 108, 86, 0.25);
  color: #0f6c56;
}

html[data-ui="v3"] .pole-overview-hook-kicker {
  font-family: var(--v3-font-mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--v3-ink-muted);
  text-transform: uppercase;
}

html[data-ui="v3"] .pole-overview-lede {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.68;
  color: var(--v3-ink);
  margin: 0;
}

html[data-ui="v3"] .pole-overview-quote {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  margin: 0 0 16px 0;
  color: var(--v3-ink);
}

html[data-ui="v3"] body[data-pole="matrix"] .pole-overview-quote--typewriter {
  font-family: var(--v3-font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: #a0d8ef;
}

html[data-ui="v3"] .quote-src,
html[data-ui="v3"] .pole-overview-quote-source {
  font-family: var(--v3-font-mono);
  font-size: 12px;
  color: var(--v3-accent);
  letter-spacing: 0.04em;
}

html[data-ui="v3"] .quote-src a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sections & Cards Grids */
html[data-ui="v3"] .pole-overview-section {
  margin-bottom: 48px;
}

html[data-ui="v3"] .collection-section-title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--v3-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html[data-ui="v3"] .pole-overview-section--fold {
  border: 1px solid var(--v3-border-subtle);
  border-radius: var(--v3-radius-md);
  background: var(--v3-surface);
  padding: 18px 24px;
}

html[data-ui="v3"] .pole-overview-section--fold summary {
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html[data-ui="v3"] .pole-overview-section--fold summary::-webkit-details-marker {
  display: none;
}

html[data-ui="v3"] .section-fold-action {
  font-family: var(--v3-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-surface-raised);
  border: 1px solid var(--v3-border-subtle);
  color: var(--v3-accent);
}

/* Cards Grid */
html[data-ui="v3"] .collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

html[data-ui="v3"] .collection-card {
  background: var(--v3-surface);
  border: 1px solid var(--v3-border-subtle);
  border-radius: var(--v3-radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--v3-transition-fast);
}

html[data-ui="v3"] .collection-card:hover {
  transform: translateY(-3px);
  border-color: var(--v3-border);
  box-shadow: var(--v3-shadow);
}

html[data-ui="v3"] .collection-card-hero {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

html[data-ui="v3"] .collection-card-body {
  padding: 20px;
}

html[data-ui="v3"] .collection-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--v3-ink);
  margin-bottom: 8px;
}

html[data-ui="v3"] .collection-card-caption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--v3-ink-muted);
}

/* Collection Back Bar & Rails */
html[data-ui="v3"] .collection-back {
  background: var(--v3-bg);
  border-bottom: 1px solid var(--v3-border-subtle);
  padding: 10px var(--walk-gutter);
}

html[data-ui="v3"] .collection-back button {
  font-family: var(--v3-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v3-ink-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--v3-radius-pill);
  transition: all var(--v3-transition-fast);
}

html[data-ui="v3"] .collection-back button:hover {
  color: var(--v3-ink);
  background: var(--v3-surface);
}

html[data-ui="v3"] .home-rail {
  margin-bottom: 32px;
}

html[data-ui="v3"] .home-rail-label {
  font-family: var(--v3-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v3-accent);
  margin-bottom: 14px;
}

html[data-ui="v3"] .home-rail-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

html[data-ui="v3"] .home-rail-card {
  flex: 0 0 clamp(200px, 24vw, 280px);
  scroll-snap-align: start;
  border-radius: var(--v3-radius-md);
  background: var(--v3-surface);
  border: 1px solid var(--v3-border-subtle);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--v3-transition-fast);
}

html[data-ui="v3"] body[data-pole="matrix"] .home-rail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 14, 0.95), rgba(7, 10, 14, 0.35) 60%, transparent);
}

html[data-ui="v3"] body[data-pole="one"] .home-rail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 28, 22, 0.92), rgba(14, 28, 22, 0.3) 60%, transparent);
}

html[data-ui="v3"] .home-rail-card:hover {
  transform: translateY(-3px);
  border-color: var(--v3-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

html[data-ui="v3"] .home-rail-card-title {
  position: relative;
  z-index: 2;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

html[data-ui="v3"] .home-rail-card-sub {
  position: relative;
  z-index: 2;
  font-family: var(--v3-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v3-accent);
  margin-bottom: 4px;
}

/* Fact Cards and Deepen Text Blocks */
html[data-ui="v3"] .fact-card-stack {
  margin-bottom: 24px;
}

html[data-ui="v3"] .fact-claim {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.64;
  color: var(--v3-ink);
  margin-bottom: 12px;
}

html[data-ui="v3"] .fact-label {
  font-family: var(--v3-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--v3-accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

html[data-ui="v3"] .topic-intro,
html[data-ui="v3"] .scene-fact {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--v3-ink);
}

html[data-ui="v3"] body[data-pole="one"] .collection-card-title {
  font-family: var(--v3-font-serif);
  font-weight: 600;
}

html[data-ui="v3"] .collection-body,
html[data-ui="v3"] .versus-index-body {
  max-width: var(--v3-content-max);
  margin: 0 auto;
  padding: 36px var(--walk-gutter) 72px;
}

/* --------------------------------------------------------------------------
   7. Discover Kennisbank (Tactical Archive Deck)
   -------------------------------------------------------------------------- */

html[data-ui="v3"] body.discover-index-mode #container,
html[data-ui="v3"] body.collection-mode #container {
  display: none !important;
}

html[data-ui="v3"] body.discover-index-mode #collection {
  display: block !important;
  min-height: calc(100vh - var(--v3-header-h));
  background: var(--v3-bg) !important;
}

html[data-ui="v3"] .discover-index {
  max-width: var(--v3-content-max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--walk-gutter);
}

html[data-ui="v3"] .discover-heading {
  margin-bottom: 28px;
}

html[data-ui="v3"] .discover-heading .collection-hero-kicker {
  font-family: var(--v3-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v3-accent);
  margin-bottom: 8px;
}

html[data-ui="v3"] .discover-heading h1 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--v3-ink);
  margin-bottom: 8px;
}

html[data-ui="v3"] .discover-heading > p:last-child {
  font-size: 15px;
  color: var(--v3-ink-muted);
}

/* Sticky Search & Filter Toolbar */
html[data-ui="v3"] .discover-toolbar {
  position: sticky;
  top: var(--v3-header-h);
  z-index: 50;
  margin-bottom: 32px;
  padding: 16px;
  border-radius: var(--v3-radius-lg);
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  box-shadow: var(--v3-shadow);
  backdrop-filter: blur(16px);
}

html[data-ui="v3"] .discover-search-wrap input[type="search"] {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-surface-raised);
  border: 1px solid var(--v3-border-subtle);
  color: var(--v3-ink);
  font-size: 15px;
  transition: all var(--v3-transition-fast);
}

html[data-ui="v3"] .discover-search-wrap input[type="search"]:focus {
  border-color: var(--v3-accent);
  box-shadow: 0 0 16px var(--v3-accent-glow);
}

html[data-ui="v3"] .discover-filter-drawer {
  margin-top: 14px;
}

html[data-ui="v3"] .discover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

html[data-ui="v3"] .discover-tag {
  min-height: 32px;
  padding: 0 14px;
  border-radius: var(--v3-radius-pill);
  font-family: var(--v3-font-mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  background: var(--v3-surface-raised);
  border: 1px solid var(--v3-border-subtle);
  color: var(--v3-ink-muted);
  cursor: pointer;
  transition: all var(--v3-transition-fast);
}

html[data-ui="v3"] .discover-tag:hover {
  background: var(--v3-surface-hover);
  color: var(--v3-ink);
  border-color: var(--v3-border);
}

html[data-ui="v3"] .discover-tag.active {
  background: var(--v3-accent);
  color: #070a0e;
  border-color: var(--v3-accent);
  font-weight: 750;
  box-shadow: 0 0 12px var(--v3-accent-glow);
}

html[data-ui="v3"] .discover-reset {
  font-family: var(--v3-font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--v3-radius-pill);
  background: transparent;
  border: 1px solid var(--v3-border-subtle);
  color: var(--v3-ink-muted);
  cursor: pointer;
}

/* Discover Results Grid */
html[data-ui="v3"] .discover-count {
  font-family: var(--v3-font-mono);
  font-size: 12px;
  color: var(--v3-ink-muted);
  margin-bottom: 16px;
}

html[data-ui="v3"] .discover-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

html[data-ui="v3"] .discover-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: var(--v3-surface);
  border: 1px solid var(--v3-border-subtle);
  border-radius: var(--v3-radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--v3-transition-fast);
  text-decoration: none;
}

html[data-ui="v3"] .discover-item:hover {
  transform: translateY(-2px);
  border-color: var(--v3-border);
  box-shadow: var(--v3-shadow);
}

html[data-ui="v3"] img.discover-item-thumb {
  width: 140px;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--v3-surface-raised);
}

html[data-ui="v3"] .discover-item-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

html[data-ui="v3"] .discover-item-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--v3-ink);
  margin-bottom: 6px;
}

html[data-ui="v3"] .discover-item-sub {
  font-size: 13px;
  color: var(--v3-ink-muted);
  margin-bottom: 12px;
}

html[data-ui="v3"] .discover-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

html[data-ui="v3"] .discover-item-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--v3-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--v3-surface-raised);
  border: 1px solid var(--v3-border-subtle);
  color: var(--v3-ink-muted);
}

html[data-ui="v3"] .v3-search-hit {
  background: rgba(0, 212, 255, 0.28);
  color: #00e5ff;
  padding: 1px 4px;
  border-radius: 2px;
}

html[data-ui="v3"] body[data-pole="one"] .v3-search-hit {
  background: rgba(184, 130, 34, 0.25);
  color: #78350f;
}

/* --------------------------------------------------------------------------
   8. Monitor Command Center & Accessible Deck
   -------------------------------------------------------------------------- */

html[data-ui="v3"] body.monitor-mode #container {
  display: flex !important;
  height: calc(100vh - var(--v3-header-h));
  overflow: hidden;
  position: relative;
}

html[data-ui="v3"] #viz {
  flex: 1;
  height: 100%;
  position: relative;
  background: var(--v3-bg);
}

/* Tactical Monitor Radial Radar Canvas */
html[data-ui="v3"] body[data-pole="matrix"] #viz {
  background-image: 
    radial-gradient(circle at center, rgba(0, 212, 255, 0.06) 0%, transparent 70%),
    radial-gradient(circle at center, transparent 38%, rgba(0, 212, 255, 0.03) 39%, transparent 40%),
    radial-gradient(circle at center, transparent 68%, rgba(0, 212, 255, 0.03) 69%, transparent 70%);
}

html[data-ui="v3"] body[data-pole="one"] #viz {
  background-image: 
    radial-gradient(circle at center, rgba(15, 108, 86, 0.06) 0%, transparent 70%),
    radial-gradient(circle at center, transparent 38%, rgba(15, 108, 86, 0.04) 39%, transparent 40%),
    radial-gradient(circle at center, transparent 68%, rgba(15, 108, 86, 0.04) 69%, transparent 70%);
}

/* Side Intelligence Panel */
html[data-ui="v3"] #panel {
  width: min(440px, 42vw);
  height: 100%;
  overflow-y: auto;
  background: var(--v3-surface);
  border-left: 1px solid var(--v3-border);
  padding: 24px;
  transition: transform var(--v3-transition-smooth);
}

html[data-ui="v3"] #panel.hidden {
  display: none !important;
  width: 0 !important;
  padding: 0 !important;
}

/* Floating Dock Controls */
html[data-ui="v3"] .monitor-dock {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  box-shadow: var(--v3-shadow);
  backdrop-filter: blur(16px);
}

html[data-ui="v3"] .monitor-dock button {
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--v3-radius-pill);
  font-family: var(--v3-font-mono);
  font-size: 12px;
  font-weight: 650;
  background: var(--v3-surface-raised);
  border: 1px solid var(--v3-border-subtle);
  color: var(--v3-ink);
  cursor: pointer;
  transition: all var(--v3-transition-fast);
}

html[data-ui="v3"] .monitor-dock button:hover {
  background: var(--v3-accent);
  color: #070a0e;
  border-color: var(--v3-accent);
  box-shadow: 0 0 14px var(--v3-accent-glow);
}

/* Accessible Graph List Fallback */
html[data-ui="v3"] .graph-list-fallback {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 60;
  max-width: 380px;
}

html[data-ui="v3"] .graph-list-fallback summary {
  padding: 8px 14px;
  border-radius: var(--v3-radius-pill);
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  font-family: var(--v3-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--v3-ink);
  cursor: pointer;
  list-style: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

html[data-ui="v3"] .graph-list-fallback[open] .graph-list-fallback-list {
  margin-top: 8px;
  max-height: 55vh;
  overflow-y: auto;
  background: var(--v3-surface);
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius-md);
  padding: 8px;
  box-shadow: var(--v3-shadow);
}

html[data-ui="v3"] .graph-list-fallback-list button {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--v3-radius-sm);
  background: transparent;
  border: 0;
  font-size: 13px;
  color: var(--v3-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

html[data-ui="v3"] .graph-list-fallback-list button:hover {
  background: var(--v3-surface-hover);
  color: var(--v3-accent);
}

/* --------------------------------------------------------------------------
   9. Responsive Adaptations (Mobile & Tablet)
   -------------------------------------------------------------------------- */

@media (max-width: 840px) {
  html[data-ui="v3"] .fork-doors {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  html[data-ui="v3"] .fork-hero {
    min-height: calc(50vh - var(--v3-header-h) / 2);
    padding: 24px;
  }

  html[data-ui="v3"] .pole-overview-hook {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  html[data-ui="v3"] .discover-grid {
    grid-template-columns: 1fr;
  }

  html[data-ui="v3"] .discover-item {
    grid-template-columns: 100px 1fr;
  }

  html[data-ui="v3"] body.monitor-mode #container {
    flex-direction: column;
  }

  html[data-ui="v3"] #panel {
    width: 100%;
    height: 45vh;
    border-left: 0;
    border-top: 1px solid var(--v3-border);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ui="v3"] *,
  html[data-ui="v3"] *::before,
  html[data-ui="v3"] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
