:root {
  color-scheme: dark;
  --bg: #101010;
  --paper: #f3f0e8;
  --ink: #101010;
  --panel: rgba(245, 244, 238, 0.075);
  --panel-strong: rgba(18, 18, 18, 0.92);
  --line: rgba(245, 244, 238, 0.16);
  --line-dark: rgba(16, 16, 16, 0.16);
  --text: #f4f1ea;
  --muted: #a8a39a;
  --hot: #ff3d7f;
  --cyan: #00ffd1;
  --lime: #b9ff4a;
  --gold: #fff36d;
  --violet: #7b5cff;
  --blue: #33a3ff;
  --pink: #ff8abd;
  --orange: #ff9f1c;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

::selection {
  color: var(--text);
  background: rgba(0, 255, 209, 0.28);
}

::-moz-selection {
  color: var(--text);
  background: rgba(0, 255, 209, 0.28);
}

html,
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 255, 209, 0.24), transparent 32rem),
    radial-gradient(circle at 86% 16%, rgba(255, 61, 127, 0.2), transparent 28rem),
    radial-gradient(circle at 82% 64%, rgba(255, 243, 109, 0.14), transparent 26rem),
    linear-gradient(180deg, #151515 0%, #101010 54%, #0b0b0b 100%);
  color: var(--text);
  font-family: var(--font-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  min-height: 100vh;
  padding: 7rem clamp(1.4rem, 5vw, 5rem) 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at 58% 45%, black, transparent 72%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% -12% auto auto;
  width: min(60vw, 820px);
  aspect-ratio: 1;
  border: 1px solid rgba(245, 244, 238, 0.08);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 255, 209, 0.32), transparent 18%),
    conic-gradient(from 110deg, transparent, rgba(255, 61, 127, 0.33), transparent, rgba(255, 243, 109, 0.28), transparent);
  filter: blur(1px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.hero-label,
.story-label,
.brand small,
.select-wrap span,
.section-label {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
}

.hero-label,
.story-label {
  margin: 0 0 1.35rem;
  color: var(--cyan);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.hero-title {
  max-width: 920px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.8vw, 7.6rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-title em {
  color: transparent;
  background: linear-gradient(100deg, var(--gold), var(--orange) 38%, var(--pink) 70%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  max-width: 720px;
  margin: 1.6rem 0 0;
  color: rgba(244, 241, 234, 0.72);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.primary-cta {
  color: #061018;
  background: var(--cyan);
  border-color: transparent;
  box-shadow: 0 0 34px rgba(0, 255, 209, 0.28);
}

.secondary-cta {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.3rem, 4vw, 4rem);
  margin-top: 3rem;
}

.stat {
  display: grid;
  gap: 0.1rem;
}

.stat strong {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
}

.stat small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3.4rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-scroll::after {
  content: "";
  width: 76px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 620px;
  margin: 0;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.72;
  pointer-events: none;
}

.hero-visual::before {
  inset: 10% 2% auto auto;
  width: 280px;
  height: 280px;
  background: var(--cyan);
}

.hero-visual::after {
  right: 26%;
  bottom: 7%;
  width: 220px;
  height: 220px;
  background: var(--hot);
}

.hero-visual img {
  position: absolute;
  display: block;
  width: min(100%, 620px);
  height: auto;
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
}

.hero-visual-main {
  top: 2%;
  right: 0;
  transform: rotate(2deg);
}

.hero-visual-card {
  left: 0;
  bottom: 4%;
  max-width: 390px;
  transform: rotate(-5deg);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1440px;
  margin: 0 auto 4rem;
  padding: 0 clamp(1rem, 2vw, 2rem);
}

.story-grid article {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  background: rgba(245, 244, 238, 0.055);
}

.story-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.story-swatch {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 132px;
  margin-bottom: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 234, 0.14);
  border-radius: 22px;
}

.story-swatch::before,
.story-swatch::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.story-swatch-graph {
  background:
    radial-gradient(circle at 18% 68%, rgba(0, 255, 209, 0.85), transparent 19%),
    radial-gradient(circle at 78% 34%, rgba(255, 61, 127, 0.8), transparent 18%),
    radial-gradient(circle at 58% 70%, rgba(255, 243, 109, 0.75), transparent 15%),
    linear-gradient(135deg, rgba(0, 255, 209, 0.12), rgba(255, 61, 127, 0.12)),
    #101010;
}

.story-swatch-graph::before {
  inset: 24px 36px auto auto;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(244, 241, 234, 0.38);
}

.story-swatch-graph::after {
  left: 28px;
  bottom: 20px;
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--hot));
  border-radius: 0;
  transform: rotate(-12deg);
}

.story-swatch-source {
  background:
    linear-gradient(90deg, var(--cyan), var(--gold) 36%, var(--hot) 66%, var(--violet)),
    #101010;
}

.story-swatch-source::before {
  inset: 22px auto auto 24px;
  width: calc(100% - 48px);
  height: 22px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.72);
}

.story-swatch-source::after {
  left: 24px;
  bottom: 24px;
  width: calc(100% - 48px);
  height: 48px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.86) 0 34%, transparent 34% 37%, rgba(16, 16, 16, 0.74) 37% 69%, transparent 69% 72%, rgba(16, 16, 16, 0.66) 72%);
}

.story-swatch-click {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 243, 109, 0.92), transparent 16%),
    conic-gradient(from 45deg, rgba(0, 255, 209, 0.75), rgba(123, 92, 255, 0.72), rgba(255, 61, 127, 0.78), rgba(255, 243, 109, 0.76), rgba(0, 255, 209, 0.75)),
    #101010;
}

.story-swatch-click::before {
  inset: 28px auto auto 50%;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(16, 16, 16, 0.58);
  transform: translateX(-50%);
}

.story-swatch-click::after {
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #101010;
  transform: translate(-50%, -50%);
}

.story-grid h2 {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.7rem);
  font-weight: 400;
  line-height: 1;
}

.story-grid p {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin: 0;
  color: rgba(244, 241, 234, 0.68);
  line-height: 1.7;
}

.landing-section {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto 5rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.landing-section h2,
.final-cta h2 {
  max-width: 860px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.landing-section p {
  max-width: 720px;
  color: rgba(244, 241, 234, 0.7);
  font-size: 1.02rem;
  line-height: 1.7;
}

.definition-card,
.use-case-grid article,
.data-grid article,
.coverage-table,
.screenshot-grid figure {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(245, 244, 238, 0.09), rgba(245, 244, 238, 0.04)),
    rgba(16, 16, 16, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.definition-card {
  display: grid;
  gap: 12px;
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.definition-card strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
}

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

.use-case-grid article {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 250px;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 255, 209, 0.12), transparent 15rem),
    linear-gradient(145deg, rgba(245, 244, 238, 0.09), rgba(245, 244, 238, 0.04)),
    rgba(16, 16, 16, 0.72);
}

.use-case-grid article:nth-child(2) {
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 61, 127, 0.14), transparent 16rem),
    linear-gradient(145deg, rgba(245, 244, 238, 0.09), rgba(245, 244, 238, 0.04)),
    rgba(16, 16, 16, 0.72);
}

.use-case-grid article:nth-child(3) {
  background:
    radial-gradient(circle at 22% 82%, rgba(255, 243, 109, 0.12), transparent 15rem),
    linear-gradient(145deg, rgba(245, 244, 238, 0.09), rgba(245, 244, 238, 0.04)),
    rgba(16, 16, 16, 0.72);
}

.use-case-grid h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 0.98;
}

.use-case-grid p {
  margin: 0;
}

.use-case-grid strong {
  color: var(--gold);
  font-size: 0.95rem;
  line-height: 1.45;
}

.section-heading {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

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

.data-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 190px;
  padding: 18px;
}

.data-grid strong {
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
}

.data-grid span {
  color: var(--text);
  font-weight: 600;
}

.data-grid p {
  margin: 0;
  font-size: 0.9rem;
}

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

.screenshot-grid figure {
  margin: 0;
  overflow: hidden;
}

.screenshot-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.screenshot-grid figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  line-height: 1.5;
}

.coverage-table {
  overflow: hidden;
}

.coverage-table [role="row"] {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(4, minmax(80px, 0.55fr)) minmax(110px, 0.7fr);
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(245, 244, 238, 0.1);
}

.coverage-table [role="row"]:first-child {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coverage-table [role="row"]:last-child {
  border-bottom: 0;
}

.table-link {
  color: var(--cyan);
  text-decoration: none;
}

.table-link:hover,
.table-link:focus-visible {
  color: var(--gold);
}

.table-link.is-muted {
  color: var(--muted);
}

.final-cta {
  display: grid;
  justify-items: start;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid rgba(0, 255, 209, 0.24);
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 255, 209, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 40%, rgba(255, 61, 127, 0.14), transparent 26rem),
    rgba(245, 244, 238, 0.055);
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  width: min(1520px, calc(100vw - 32px));
  height: min(980px, calc(100svh - 32px));
  min-height: 720px;
  margin: 0 auto 5rem;
  padding: 16px;
  border: 1px solid rgba(0, 255, 209, 0.24);
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  box-shadow:
    0 0 0 1px rgba(255, 61, 127, 0.12),
    0 26px 90px rgba(0, 0, 0, 0.48),
    0 0 120px rgba(0, 255, 209, 0.12);
}

body.dashboard-page .app-shell {
  height: auto;
  min-height: calc(100svh - 32px);
  margin: 16px auto;
  overflow: visible;
}

body.dashboard-page .topbar {
  position: sticky;
  top: 16px;
  z-index: 24;
}

body.dashboard-page .hud {
  min-height: clamp(840px, calc(100svh - 180px), 1440px);
}

body.dashboard-page .left-rail,
body.dashboard-page .center-stage,
body.dashboard-page .inspector {
  height: auto;
}

body.dashboard-page .center-stage {
  min-height: 840px;
  overflow: visible;
}

body.dashboard-page .mode-panel,
body.dashboard-page .brief-board,
body.dashboard-page .brief-grid,
body.dashboard-page .compare-board,
body.dashboard-page .evidence-console,
body.dashboard-page .evidence-list,
body.dashboard-page .source-board {
  height: auto;
  max-height: none;
}

body.dashboard-page .brief-board,
body.dashboard-page .brief-grid,
body.dashboard-page .compare-board,
body.dashboard-page .evidence-list,
body.dashboard-page .source-board,
body.dashboard-page .quest-zone,
body.dashboard-page .inspector,
body.dashboard-page .inspector-edge-list {
  overflow: visible;
}

body.dashboard-page .disclaimer {
  padding-bottom: 8px;
}

body.capture-explorer .hero,
body.capture-explorer .story-grid {
  display: none;
}

body.capture-explorer .app-shell {
  height: calc(100svh - 32px);
  min-height: 0;
  margin: 16px auto;
}

#graph-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background:
    radial-gradient(circle at 42% 45%, rgba(0, 255, 209, 0.16), transparent 22rem),
    radial-gradient(circle at 72% 52%, rgba(255, 61, 127, 0.15), transparent 28rem),
    radial-gradient(circle at 52% 78%, rgba(255, 243, 109, 0.08), transparent 20rem),
    #101010;
  z-index: 0;
}

#graph-canvas[data-mode="compare"] {
  background:
    radial-gradient(circle at 30% 18%, rgba(0, 255, 209, 0.055), transparent 22rem),
    radial-gradient(circle at 78% 34%, rgba(255, 61, 127, 0.055), transparent 24rem),
    linear-gradient(180deg, rgba(16, 16, 16, 0.94), rgba(16, 16, 16, 0.98));
}

#graph-canvas[data-mode="evidence"],
#graph-canvas[data-mode="sources"] {
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 255, 209, 0.045), transparent 22rem),
    linear-gradient(180deg, rgba(16, 16, 16, 0.98), rgba(16, 16, 16, 0.96));
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 16, 16, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(0, 255, 209, 0.1),
    0 0 28px rgba(0, 255, 209, 0.22),
    inset 0 0 0 6px rgba(255, 61, 127, 0.18);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 400;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.control-strip {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.select-wrap,
.search-wrap {
  display: flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.select-wrap {
  flex: 0 1 260px;
  gap: 8px;
  padding: 0 8px 0 10px;
}

.select-wrap span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

select,
input {
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

select {
  max-width: 190px;
  min-width: 0;
  width: 100%;
}

select option {
  background: #111827;
  color: var(--text);
}

.mode-tabs {
  display: grid;
  flex: 0 1 420px;
  grid-template-columns: repeat(5, minmax(64px, 1fr));
  min-height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.mode-button {
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.mode-button.is-active {
  color: #061018;
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 255, 209, 0.36);
}

.search-wrap {
  flex: 0 1 230px;
  gap: 8px;
  width: auto;
  padding: 0 11px;
}

.geo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.geo-topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  max-width: 220px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 209, 0.34);
  border-radius: 12px;
  color: var(--text);
  background: rgba(0, 255, 209, 0.1);
  font-size: 0.78rem;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-topbar-link:hover,
.geo-topbar-link:focus-visible {
  border-color: rgba(0, 255, 209, 0.72);
  background: rgba(0, 255, 209, 0.18);
}

.geo-topbar-link-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.search-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid var(--muted);
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  background: var(--muted);
  transform: rotate(45deg);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.label-button {
  width: auto;
  min-width: 88px;
  padding: 0 12px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.reset-button {
  min-width: 64px;
}

.icon-button:hover,
.icon-button:focus-visible,
.mode-button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.icon-button[aria-pressed="true"] {
  color: #061018;
  background: var(--gold);
}

.hud {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(300px, 1fr) minmax(320px, 420px);
  align-items: start;
  gap: 14px;
  min-height: 0;
  pointer-events: none;
}

.left-rail,
.center-stage,
.inspector {
  height: 100%;
  min-width: 0;
  pointer-events: auto;
}

.left-rail,
.inspector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.left-rail {
  overflow: hidden;
}

.metric-stack,
.quest-zone,
.inspector {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.metric-stack {
  background:
    linear-gradient(135deg, rgba(0, 255, 209, 0.08), transparent 38%),
    rgba(245, 244, 238, 0.075);
}

.inspector {
  background:
    linear-gradient(155deg, rgba(255, 61, 127, 0.08), transparent 42%),
    rgba(245, 244, 238, 0.075);
}

.metric-stack,
.quest-zone,
.inspector {
  padding: 12px;
}

.metric-stack {
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
}

.disease-card {
  display: grid;
  gap: 8px;
}

.status-pill,
.mini-pill,
.source-chip,
.kind-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
}

button.kind-chip {
  cursor: pointer;
}

.kind-chip.is-active {
  color: #061018;
  background: var(--cyan);
}

.status-pill[data-tone="live"] {
  color: #071108;
  background: var(--lime);
}

.status-pill[data-tone="next"] {
  color: #100b18;
  background: var(--violet);
}

.disease-card h1,
.inspector h2,
.mode-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  line-height: 1.05;
}

.disease-card p,
.inspector p,
.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.plain-note {
  font-size: 0.82rem;
}

.plain-explainer {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid rgba(0, 255, 209, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(0, 255, 209, 0.10), rgba(255, 61, 127, 0.05)),
    rgba(255, 255, 255, 0.04);
}

.plain-explainer strong {
  font-size: 0.86rem;
}

.plain-explainer span,
.claim-explainer {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.empty-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

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

.compact-metrics {
  flex: 0 0 auto;
}

.mode-guide {
  padding-bottom: 4px;
}

.metric {
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.metric strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
}

.quest-zone {
  display: grid;
  gap: 9px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.quest-card,
.node-row,
.edge-row,
.compare-lane,
.review-row,
.insight-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.quest-card {
  width: 100%;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.quest-card:hover,
.quest-card:focus-visible,
.insight-card:hover,
.insight-card:focus-visible,
.node-row:hover,
.edge-row:hover {
  border-color: rgba(0, 255, 209, 0.7);
  background: rgba(0, 255, 209, 0.1);
}

.quest-card strong {
  display: block;
  margin-bottom: 5px;
}

.quest-card span {
  color: var(--muted);
  line-height: 1.35;
}

.center-stage {
  position: relative;
  align-self: start;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 61, 127, 0.08), transparent 22rem),
    rgba(16, 16, 16, 0.5);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.mode-panel {
  display: none;
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 12px;
}

.mode-panel.is-active {
  display: block;
}

.mode-panel[data-panel="explore"] {
  pointer-events: none;
}

.mode-panel[data-panel="explore"] .legend-strip {
  pointer-events: auto;
}

.mode-panel[data-panel="explore"].is-active {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  height: 100%;
}

.mode-panel[data-panel="compare"] {
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 255, 209, 0.08), transparent 24rem),
    radial-gradient(circle at 76% 26%, rgba(255, 61, 127, 0.07), transparent 22rem);
}

.mode-panel[data-panel="brief"] {
  padding: 16px;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 255, 209, 0.08), transparent 24rem),
    radial-gradient(circle at 78% 42%, rgba(255, 243, 109, 0.05), transparent 18rem),
    rgba(16, 16, 16, 0.70);
}

.mode-panel[data-panel="evidence"],
.mode-panel[data-panel="sources"] {
  padding: 16px;
  background: rgba(16, 16, 16, 0.66);
}

.legend-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.graph-toolbar,
.graph-insight,
.explore-browser {
  pointer-events: auto;
}

.graph-toolbar,
.graph-insight {
  width: min(760px, 62vw);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 16, 16, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.graph-toolbar {
  display: grid;
  gap: 10px;
  padding: 12px;
}

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

.graph-toolbar-row .section-label {
  min-width: 92px;
}

.graph-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.graph-chip {
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.graph-chip.is-active {
  color: #061018;
  border-color: transparent;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 255, 209, 0.25);
}

.graph-insight {
  display: grid;
  gap: 10px;
  padding: 13px 14px;
  background:
    radial-gradient(circle at 12% 14%, rgba(0, 255, 209, 0.12), transparent 14rem),
    radial-gradient(circle at 84% 20%, rgba(255, 61, 127, 0.08), transparent 14rem),
    rgba(16, 16, 16, 0.84);
}

.graph-insight h2,
.graph-insight p {
  margin: 0;
}

.graph-insight h2 {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 400;
}

.graph-insight p {
  color: var(--muted);
  line-height: 1.45;
}

.graph-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.graph-stat {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 0.76rem;
}

.brief-board {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  height: 100%;
  overflow: hidden;
}

.brief-hero,
.brief-next,
.brief-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(245, 244, 238, 0.08), rgba(245, 244, 238, 0.035)),
    rgba(16, 16, 16, 0.76);
}

.brief-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.52fr);
  gap: 12px;
  padding: 14px;
}

.brief-hero h2,
.brief-hero p,
.brief-section h3,
.brief-section p,
.brief-next {
  margin: 0;
}

.brief-hero h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 0.98;
}

.brief-hero p,
.brief-section p,
.brief-next span {
  color: var(--muted);
  line-height: 1.45;
}

.brief-scorecard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

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

.insight-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 132px;
  padding: 10px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 255, 209, 0.12), transparent 12rem),
    rgba(255, 255, 255, 0.045);
  text-align: left;
  cursor: pointer;
}

.insight-card:nth-child(2) {
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 61, 127, 0.12), transparent 12rem),
    rgba(255, 255, 255, 0.045);
}

.insight-card:nth-child(3) {
  background:
    radial-gradient(circle at 18% 84%, rgba(255, 243, 109, 0.10), transparent 12rem),
    rgba(255, 255, 255, 0.045);
}

.insight-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--cyan);
  font-size: 1.02rem;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.insight-card > span:not(.mini-pill):not(.chip-row) {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.brief-section {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 0;
  padding: 12px;
}

.brief-section h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
}

.brief-list {
  display: grid;
  gap: 7px;
}

.brief-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  cursor: pointer;
}

.brief-item:hover,
.brief-item:focus-visible {
  border-color: rgba(0, 255, 209, 0.72);
  background: rgba(0, 255, 209, 0.09);
}

.brief-item span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brief-item strong,
.brief-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brief-item small {
  color: var(--muted);
}

.brief-next {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.explore-browser {
  display: grid;
  gap: 10px;
  width: min(760px, 62vw);
  max-height: min(34vh, 360px);
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 16, 16, 0.78);
  pointer-events: auto;
}

.node-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.node-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  cursor: pointer;
}

.node-card:hover,
.node-card:focus-visible,
.node-card.is-active {
  border-color: rgba(0, 255, 209, 0.72);
  background: rgba(0, 255, 209, 0.1);
}

.node-card strong,
.node-card span {
  min-width: 0;
}

.node-card strong {
  font-size: 1rem;
}

.node-card > span:not(.node-card-top) {
  color: var(--muted);
  line-height: 1.35;
}

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

.context-line {
  font-size: 0.78rem;
}

.kind-chip::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
}

.kind-chip[data-kind="disease"] {
  color: var(--gold);
}

.kind-chip[data-kind="gene"] {
  color: var(--cyan);
}

.kind-chip[data-kind="drug"] {
  color: var(--hot);
}

.kind-chip[data-kind="drug-class"] {
  color: #ff9fdf;
}

.kind-chip[data-kind="pathway"] {
  color: var(--lime);
}

.kind-chip[data-kind="go-term"] {
  color: var(--violet);
}

.kind-chip[data-kind="symptom"] {
  color: var(--pink);
}

.kind-chip[data-kind="anatomy"] {
  color: var(--orange);
}

.legend-strip .kind-chip.is-active {
  color: #061018;
  background: var(--cyan);
}

.compare-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  height: 100%;
  padding-right: 4px;
  overflow: auto;
}

.shared-gene-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(0, 255, 209, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 255, 209, 0.11), rgba(255, 243, 109, 0.045)),
    rgba(16, 16, 16, 0.82);
}

.shared-gene-panel h2,
.shared-gene-panel p {
  margin: 0;
}

.shared-gene-panel h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
}

.shared-gene-panel p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.45;
}

.shared-gene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}

.shared-gene-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  cursor: pointer;
}

.shared-gene-card:hover,
.shared-gene-card:focus-visible {
  border-color: rgba(0, 255, 209, 0.72);
  background: rgba(0, 255, 209, 0.09);
}

.shared-gene-name {
  color: var(--cyan);
  font-size: 1.05rem;
  font-weight: 600;
}

.shared-gene-diseases {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-lane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
  border-color: rgba(245, 244, 238, 0.22);
  background:
    linear-gradient(180deg, rgba(245, 244, 238, 0.12), rgba(245, 244, 238, 0.06)),
    rgba(16, 16, 16, 0.86);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.compare-lane h2 {
  margin: 0 0 8px;
  font-size: 1.24rem;
}

.lane-grid {
  display: grid;
  gap: 8px;
  overflow: auto;
}

.lane-cluster {
  display: grid;
  gap: 6px;
}

.lane-cluster h3,
.evidence-group h3 {
  margin: 12px 0 2px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.node-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  text-align: left;
  cursor: pointer;
}

.compare-lane .node-row {
  background: rgba(16, 16, 16, 0.58);
}

.node-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-row small {
  flex: 0 0 auto;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector .node-row span {
  display: -webkit-box;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.node-row[data-shared="true"] {
  border-color: rgba(248, 214, 109, 0.52);
}

.evidence-console {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  height: 100%;
}

.evidence-toolbar {
  display: grid;
  gap: 10px;
}

.panel-intro {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(245, 244, 238, 0.08), rgba(245, 244, 238, 0.035)),
    rgba(16, 16, 16, 0.76);
}

.compact-intro {
  padding: 12px;
}

.panel-intro h2,
.panel-intro p {
  margin: 0;
}

.panel-intro h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
}

.panel-intro p {
  color: var(--muted);
  line-height: 1.45;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-chip {
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(16, 16, 16, 0.62);
  cursor: pointer;
}

.filter-chip.is-active {
  color: #061018;
  background: var(--lime);
}

.evidence-list {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.edge-row,
.review-row {
  display: grid;
  gap: 7px;
  max-width: 100%;
  padding: 12px;
  text-align: left;
}

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

.edge-main strong {
  min-width: 0;
  white-space: normal;
  line-height: 1.3;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.source-chip[data-hot="true"] {
  color: #061018;
  background: var(--hot);
}

.quality-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid rgba(245, 244, 238, 0.16);
  border-radius: 999px;
  color: var(--text);
  background: rgba(245, 244, 238, 0.08);
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
}

.quality-chip[data-quality="strong"] {
  color: #061018;
  border-color: transparent;
  background: var(--lime);
}

.quality-chip[data-quality="moderate"] {
  color: #061018;
  border-color: transparent;
  background: var(--gold);
}

.quality-chip[data-quality="numeric"] {
  color: #061018;
  border-color: transparent;
  background: var(--cyan);
}

.quality-chip[data-quality="exploratory"] {
  color: var(--orange);
  border-color: rgba(255, 159, 28, 0.42);
  background: rgba(255, 159, 28, 0.11);
}

.quality-chip[data-quality="context"] {
  color: #cfc3ff;
  border-color: rgba(123, 92, 255, 0.38);
  background: rgba(123, 92, 255, 0.12);
}

a.mini-pill,
a.source-chip {
  color: var(--text);
  text-decoration: none;
}

a.mini-pill:hover,
a.source-chip:hover {
  border-color: rgba(0, 255, 209, 0.72);
  background: rgba(0, 255, 209, 0.12);
}

.source-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  overflow: auto;
  padding-right: 4px;
}

.source-hero,
.source-card,
.paper-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.source-hero {
  background:
    linear-gradient(145deg, rgba(0, 255, 209, 0.08), rgba(245, 244, 238, 0.035)),
    rgba(16, 16, 16, 0.76);
}

.source-hero h2,
.source-card h3,
.paper-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
}

.source-hero p,
.source-card p,
.paper-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.source-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.source-card,
.paper-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.source-card-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.source-card-main h3,
.source-card-main p {
  min-width: 0;
}

.source-meta-row {
  justify-content: flex-end;
  max-width: 280px;
}

.paper-strip {
  display: grid;
  gap: 10px;
}

.paper-card {
  grid-template-columns: 1fr;
  align-items: start;
}

.inspector {
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.quest-zone::after {
  content: "";
  position: sticky;
  bottom: -12px;
  display: block;
  height: 24px;
  margin: 0 -12px -12px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(16, 16, 16, 0.74));
}

.quest-zone,
.inspector,
.explore-browser,
.compare-board,
.evidence-list,
.source-board,
.inspector-edge-list {
  scrollbar-color: rgba(0, 255, 209, 0.42) rgba(245, 244, 238, 0.08);
  scrollbar-width: thin;
}

.quest-zone::-webkit-scrollbar,
.inspector::-webkit-scrollbar,
.explore-browser::-webkit-scrollbar,
.compare-board::-webkit-scrollbar,
.evidence-list::-webkit-scrollbar,
.source-board::-webkit-scrollbar,
.inspector-edge-list::-webkit-scrollbar {
  width: 9px;
}

.quest-zone::-webkit-scrollbar-track,
.inspector::-webkit-scrollbar-track,
.explore-browser::-webkit-scrollbar-track,
.compare-board::-webkit-scrollbar-track,
.evidence-list::-webkit-scrollbar-track,
.source-board::-webkit-scrollbar-track,
.inspector-edge-list::-webkit-scrollbar-track {
  background: rgba(245, 244, 238, 0.08);
  border-radius: 999px;
}

.quest-zone::-webkit-scrollbar-thumb,
.inspector::-webkit-scrollbar-thumb,
.explore-browser::-webkit-scrollbar-thumb,
.compare-board::-webkit-scrollbar-thumb,
.evidence-list::-webkit-scrollbar-thumb,
.source-board::-webkit-scrollbar-thumb,
.inspector-edge-list::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 209, 0.42);
  border-radius: 999px;
}

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

#inspector-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

.detail-stack {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.edge-stack {
  flex: 1 1 auto;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.inspector-edge-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 3px;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.link-list a {
  color: var(--cyan);
}

.geo-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(0, 255, 209, 0.28);
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 255, 209, 0.08);
  text-decoration: none;
}

.geo-link-list a:hover,
.geo-link-list a:focus-visible {
  border-color: rgba(0, 255, 209, 0.72);
  background: rgba(0, 255, 209, 0.16);
}

.disclaimer {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

.disclaimer a {
  color: var(--cyan);
}

@media (max-width: 1120px) {
  body {
    overflow: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 520px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .split-section,
  .use-case-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

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

  .app-shell {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
  }

  .control-strip {
    flex-wrap: wrap;
  }

  .geo-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .geo-topbar-link {
    max-width: none;
  }

  .graph-toolbar,
  .graph-insight,
  .explore-browser {
    width: 100%;
  }

  .search-wrap {
    width: 100%;
  }

  .hud {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    padding: 12px;
    margin-top: 12px;
  }

  .center-stage {
    min-height: 420px;
  }

  .inspector {
    max-height: none;
  }

  .explore-browser {
    width: 100%;
    max-height: none;
  }

  .compare-board {
    grid-template-columns: 1fr;
  }

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

  .disclaimer {
    position: relative;
    right: auto;
    bottom: auto;
    padding: 0 12px 16px;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 5rem;
  }

  .hero-title {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }

  .hero-visual {
    min-height: 420px;
  }

  .coverage-table [role="row"] {
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(72px, 0.6fr));
  }

  .coverage-table [role="row"] > :nth-child(4),
  .coverage-table [role="row"] > :nth-child(5),
  .coverage-table [role="row"] > :nth-child(6) {
    display: none;
  }

  .hero-visual-card {
    max-width: 300px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .control-strip {
    align-items: stretch;
  }

  .select-wrap,
  .mode-tabs,
  .search-wrap {
    width: 100%;
  }

  select {
    max-width: none;
    width: 100%;
  }

  .mode-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .brief-hero,
  .brief-grid,
  .insight-grid,
  .brief-item {
    grid-template-columns: 1fr;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .coverage-table {
    overflow-x: auto;
  }

  .coverage-table [role="row"] {
    min-width: 620px;
  }

  .source-card {
    grid-template-columns: 1fr;
  }

  .graph-toolbar-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-meta-row {
    justify-content: flex-start;
    max-width: none;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
