:root {
  --bg: #080a0b;
  --bg-2: #101315;
  --fg: #e8ece8;
  --muted: #aeb5b4;
  --accent: #f1b74b;
  --accent-2: #49d6c8;
  --accent-3: #ef6c9a;
  --card: rgba(17, 21, 22, 0.82);
  --card-soft: rgba(21, 26, 27, 0.7);
  --card-raised: rgba(25, 31, 33, 0.9);
  --card-flat: rgba(11, 14, 15, 0.92);
  --stroke: rgba(188, 200, 201, 0.19);
  --stroke-soft: rgba(188, 200, 201, 0.13);
  --surface-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  --glow: 0 0 24px rgba(241, 183, 75, 0.35);
  --kg-workspace-height: 1030px;
  --header-control-height: 40px;
  --control-surface: rgba(7, 9, 10, 0.48);
  --control-surface-hover: rgba(237, 240, 239, 0.055);
  --control-border: rgba(188, 200, 201, 0.16);
  --control-border-hover: rgba(188, 200, 201, 0.28);
  --control-active-fill: rgba(73, 214, 200, 0.15);
  --control-active-border: rgba(73, 214, 200, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  scrollbar-color: rgba(174, 181, 180, 0.55) rgba(7, 9, 10, 0.9);
  scrollbar-width: thin;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(73, 214, 200, 0.026), transparent 36%, rgba(144, 186, 255, 0.018) 72%, transparent),
    linear-gradient(180deg, #070909 0%, #101315 58%, #080a0b 100%);
  z-index: -2;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  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='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  mix-blend-mode: soft-light;
}

.hero {
  padding: 64px 8vw 32px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
}

.hero-inner h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin: 16px 0;
}

.hero-inner p {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-inner p a {
  color: var(--accent-2);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(73, 214, 200, 0.55);
}

.hero-inner p a:hover,
.hero-inner p a:focus-visible {
  color: #a9f7ef;
  border-bottom-color: rgba(169, 247, 239, 0.9);
}

.hero-version {
  display: block;
  margin-top: 28px;
  color: rgba(238, 240, 235, 0.72);
  font-size: 0.92rem;
  letter-spacing: 0;
  line-height: 1.25;
}

.hero-version-date {
  display: block;
  margin-top: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(73, 214, 200, 0.15);
  border: 1px solid rgba(73, 214, 200, 0.35);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  border: none;
  font: inherit;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

button.small {
  padding: 6px 10px;
  font-size: 0.8rem;
}

button.primary {
  background: var(--accent);
  color: #1c1205;
  box-shadow: var(--glow);
}

button.ghost {
  background: var(--control-surface);
  color: var(--fg);
  border: 1px solid var(--control-border);
}

button.ghost:not(.active):hover {
  background: var(--control-surface-hover);
  border-color: var(--control-border-hover);
}

.segmented-toggle button.active:hover {
  background: rgba(73, 214, 200, 0.18);
  border-color: rgba(73, 214, 200, 0.48);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

button.primary:hover {
  box-shadow: var(--glow), 0 8px 20px rgba(0, 0, 0, 0.35);
}

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

.stat {
  background:
    linear-gradient(180deg, rgba(18, 23, 24, 0.9), rgba(9, 12, 13, 0.9)),
    rgba(11, 13, 14, 0.9);
  border: 1px solid rgba(188, 200, 201, 0.18);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--surface-highlight), 0 12px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: none;
}

.stat-clickable {
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-clickable:hover,
.stat-clickable:focus-visible {
  border-color: rgba(241, 183, 75, 0.65);
  box-shadow: none;
  transform: translateY(-2px);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
}

.stat-detail {
  min-height: 1em;
  font-size: 0.75rem;
  line-height: 1.25;
  color: var(--muted);
}

.content {
  padding: 16px 8vw 32px;
  display: grid;
  gap: 24px;
}

.panel {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(20, 24, 25, 0.82), rgba(12, 15, 16, 0.8)),
    var(--card);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--surface-highlight), var(--shadow);
  backdrop-filter: none;
}

.graph-panel {
  position: relative;
  overflow: visible;
  padding: 16px 0 16px 16px;
  background: rgba(12, 15, 16, 0.9);
  border-color: rgba(188, 200, 201, 0.22);
}

.graph-column {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  min-width: 0;
  gap: 0;
}

/* Layout-only wrapper: controls sit directly on the panel surface (no nested strip). */
.graph-toolbar {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  z-index: 2;
  padding: 0 clamp(8px, 1.6vw, 16px);
  background: transparent;
  border: none;
  box-shadow: none;
}

.graph-header-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  box-sizing: border-box;
}

.toolbar-main-row,
.toolbar-filter-row {
  width: 100%;
  align-items: flex-start;
  box-sizing: border-box;
}

.toolbar-main-row {
  display: block;
}

.toolbar-filter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px clamp(14px, 2vw, 30px);
}

.filter-center-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px clamp(14px, 2vw, 30px);
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.search {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.segmented-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  height: var(--header-control-height);
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--control-surface);
  border: 1px solid var(--control-border);
}

.segmented-toggle button {
  border-radius: 999px;
}

.segmented-toggle button.ghost:not(.active) {
  background: transparent;
  border-color: transparent;
  color: rgba(238, 240, 235, 0.46);
  box-shadow: none;
}

.segmented-toggle button.ghost:not(.active):hover {
  color: rgba(238, 240, 235, 0.66);
  background: rgba(238, 240, 235, 0.045);
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.segmented-toggle button.active {
  background: var(--control-active-fill);
  border: 1px solid var(--control-active-border);
  color: #eafffb;
  box-shadow: none;
}

.category-toggle {
  flex: 0 1 auto;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  justify-content: center;
  gap: 4px;
  height: auto;
  min-height: var(--header-control-height);
  padding: 4px;
  overflow: visible;
  border-radius: 999px;
}

.category-toggle::-webkit-scrollbar {
  display: none;
}

.category-toggle button {
  padding-inline: 9px;
  text-align: center;
  white-space: nowrap;
}

.entity-kind-toggle[hidden] {
  display: none;
}

.filter-toggles {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  margin-left: 0;
}

.evidence-view-toggle {
  flex: 0 0 auto;
}

.evidence-view-toggle button {
  white-space: nowrap;
}

.access-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--control-border);
  background: var(--control-surface);
  color: var(--fg);
  font-size: 0.825rem;
  white-space: nowrap;
  cursor: pointer;
}

.access-toggle:has(input:checked):hover {
  background: var(--control-surface-hover);
  border-color: var(--control-border-hover);
}

.access-toggle:has(input:not(:checked)) {
  color: rgba(238, 240, 235, 0.52);
  background: rgba(7, 10, 10, 0.5);
}

.access-toggle:has(input:not(:checked)):hover {
  color: rgba(238, 240, 235, 0.68);
  background: rgba(238, 240, 235, 0.035);
}

.access-toggle.disabled {
  opacity: 0.46;
  cursor: default;
}

.access-toggle input[type="checkbox"] {
  accent-color: var(--control-active-border);
  color-scheme: dark;
  width: 14px;
  height: 14px;
  margin: 0;
  flex-shrink: 0;
}

.year-range-inline {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  padding: 0;
  height: auto;
  border: none;
  background: transparent;
}

.year-field {
  display: inline-flex;
  align-items: stretch;
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--control-border);
  min-height: 32px;
  background: var(--control-surface);
}

.year-range-inline span {
  color: rgba(238, 240, 235, 0.88);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 12px;
  text-align: center;
}

.year-range-inline input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
  width: 82px;
  min-width: 0;
  height: 32px;
  padding: 3px 18px 3px 9px;
  border-radius: 0;
  font-size: 0.84rem;
  text-align: center;
  border: none;
  background: transparent;
}

.year-range-inline input[type="number"]:focus-visible {
  outline: none;
  box-shadow: none;
}

.year-range-inline input[type="number"]::-webkit-outer-spin-button,
.year-range-inline input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.year-stepper {
  position: absolute;
  right: 8px;
  top: 6px;
  bottom: 6px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  width: 11px;
  row-gap: 0;
  background: transparent;
}

.year-step {
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font-size: 8px;
  line-height: 0.8;
  color: rgba(112, 124, 151, 0.9);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.12s ease, transform 0.12s ease;
  pointer-events: auto;
}

.year-step:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
  color: rgba(155, 167, 196, 0.92);
}

.year-step:focus-visible {
  outline: 0;
  background: transparent;
  color: rgba(155, 167, 196, 0.92);
}

.panel h2 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 6px;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.methods-page {
  --fg: #e8ece8;
  --muted: #aeb5b4;
  --accent: #f1b74b;
  --accent-2: #49d6c8;
  --accent-3: #ef6c9a;
  --method-bg: #080a0b;
  --method-bg-2: #101315;
  --method-surface: rgba(15, 18, 20, 0.76);
  --method-surface-soft: rgba(19, 23, 25, 0.62);
  --method-surface-raised: rgba(24, 29, 31, 0.84);
  --method-line: rgba(188, 200, 201, 0.15);
  --method-line-soft: rgba(188, 200, 201, 0.1);
  --method-teal: #6ee3d7;
  --method-gold: #f1bf62;
  --method-rose: #f080a3;
  --method-blue: #90baff;
  --method-green: #a7be73;
  --method-ink: #0b0f1a;
  --method-copy-width: 900px;
  background: var(--method-bg);
}

.methods-page .bg {
  background:
    linear-gradient(90deg, rgba(73, 214, 200, 0.026), transparent 36%, rgba(144, 186, 255, 0.018) 72%, transparent),
    linear-gradient(180deg, #070909 0%, #101315 58%, #080a0b 100%);
}

.method-workflow-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.about-hero {
  padding: 52px 8vw 24px;
}

.about-hero-copy {
  max-width: 880px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(110, 227, 215, 0.3);
  background: var(--method-surface-soft);
  color: #d8fffa;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.back-link span[aria-hidden="true"] {
  font-size: 1rem;
  line-height: 1;
}

.back-link:hover,
.back-link:focus-visible {
  color: #f2f4ef;
  background: rgba(110, 227, 215, 0.12);
  border-color: rgba(110, 227, 215, 0.48);
  transform: translateY(-1px);
}

.about-hero-copy h1 {
  margin: 20px 0 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.about-hero-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}

.about-content {
  width: min(1120px, calc(100% - 16vw));
  margin: 0 auto;
  display: grid;
  gap: 22px;
  padding: 12px 0 40px;
}

.about-section {
  padding: 30px 0;
  border-top: 1px solid var(--method-line);
}

.about-section h2 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  line-height: 1.15;
}

.about-section h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1.28;
}

.about-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.about-section p + p {
  margin-top: 14px;
}

.about-section p a {
  color: #b8fff7;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 227, 215, 0.5);
}

.about-section p a:hover,
.about-section p a:focus-visible {
  color: #d8fffa;
  border-bottom-color: rgba(216, 255, 250, 0.88);
}

.methods-summary {
  display: grid;
  gap: 18px;
}

.methods-motivation p {
  max-width: var(--method-copy-width);
}

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

.method-stage-grid article {
  position: relative;
  min-width: 0;
  min-height: 158px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px 16px 16px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--method-surface);
  border: 1px solid var(--method-line);
  box-shadow: none;
}

.method-stage-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: var(--method-teal);
}

.method-stage-grid article:nth-child(2)::before {
  background: var(--method-gold);
}

.method-stage-grid article:nth-child(3)::before {
  background: var(--method-rose);
}

.method-stage-grid article:nth-child(4)::before {
  background: var(--method-blue);
}

.method-index {
  color: var(--method-teal);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.method-seeds-section {
  display: grid;
  gap: 16px;
}

.method-compact-list {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
  padding: 0 0 0 20px;
  color: var(--method-muted);
  line-height: 1.65;
}

.method-compact-list strong {
  color: #f4f7eb;
}

.method-query-details-grid {
  display: grid;
  gap: 12px;
}

.method-query-details {
  border: 1px solid var(--method-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.method-query-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  color: #f4f7eb;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
}

.method-query-details summary::-webkit-details-marker {
  display: none;
}

.method-query-details summary::before {
  content: "+";
  width: 1.4rem;
  height: 1.4rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--method-teal);
  border: 1px solid rgba(110, 227, 215, 0.45);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.method-query-details[open] summary::before {
  content: "-";
}

.method-query-details summary span {
  margin-left: auto;
  color: var(--method-muted);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.method-query-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--method-line-soft);
}

.method-query-list li {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--method-line-soft);
}

.method-query-list li:last-child {
  border-bottom: 0;
}

.method-query-list h3 {
  color: #f4f7eb;
}

.method-query-list dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.method-query-list dl div {
  display: grid;
  grid-template-columns: minmax(130px, 0.18fr) minmax(0, 1fr);
  gap: 14px;
}

.method-query-list dt {
  color: var(--method-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-query-list dd {
  margin: 0;
  color: var(--method-muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

.method-query-note {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-top: 1px solid var(--method-line-soft);
}

.method-query-note ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--method-muted);
  line-height: 1.6;
}

.method-query-note strong {
  color: #f4f7eb;
}

.method-pair-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--method-line-soft);
  border-radius: 8px;
}

.method-pair-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.method-pair-table th,
.method-pair-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--method-line-soft);
  text-align: left;
  vertical-align: top;
}

.method-pair-table tr:last-child td {
  border-bottom: 0;
}

.method-pair-table th {
  color: var(--method-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(241, 183, 75, 0.06);
}

.method-pair-table td {
  color: var(--method-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.method-pair-table td:first-child {
  color: #f4f7eb;
  font-weight: 600;
}

.method-query-note dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.method-query-note dl div {
  display: grid;
  grid-template-columns: minmax(170px, 0.22fr) minmax(0, 1fr);
  gap: 14px;
}

.method-query-note dt {
  color: var(--method-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-query-note dd {
  margin: 0;
  color: var(--method-muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

.method-workflow-section {
  display: grid;
  gap: 16px;
}

.method-workflow-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--method-line);
}

.method-workflow-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--method-line-soft);
}

.method-workflow-marker {
  display: grid;
  align-content: start;
  justify-items: start;
}

.method-workflow-illustration {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--method-teal);
  border: 1px solid rgba(110, 227, 215, 0.34);
  border-radius: 8px;
  background: rgba(110, 227, 215, 0.07);
}

.method-workflow-illustration svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.method-workflow-list article:nth-child(2) .method-workflow-illustration {
  color: var(--method-gold);
}

.method-workflow-list article:nth-child(2) .method-workflow-illustration {
  border-color: rgba(241, 191, 98, 0.34);
  background: rgba(241, 191, 98, 0.075);
}

.method-workflow-list article:nth-child(3) .method-workflow-illustration {
  color: var(--method-blue);
}

.method-workflow-list article:nth-child(3) .method-workflow-illustration {
  border-color: rgba(144, 186, 255, 0.34);
  background: rgba(144, 186, 255, 0.075);
}

.method-workflow-list article:nth-child(4) .method-workflow-illustration {
  color: var(--method-rose);
}

.method-workflow-list article:nth-child(4) .method-workflow-illustration {
  border-color: rgba(240, 128, 163, 0.34);
  background: rgba(240, 128, 163, 0.075);
}

.method-workflow-list article:nth-child(5) .method-workflow-illustration {
  color: var(--method-green);
}

.method-workflow-list article:nth-child(5) .method-workflow-illustration {
  border-color: rgba(167, 190, 115, 0.34);
  background: rgba(167, 190, 115, 0.075);
}

.method-workflow-list article:nth-child(6) .method-workflow-illustration {
  color: #d5b7ff;
}

.method-workflow-list article:nth-child(6) .method-workflow-illustration {
  border-color: rgba(213, 183, 255, 0.34);
  background: rgba(213, 183, 255, 0.075);
}

.method-workflow-list article > div:last-child {
  display: grid;
  gap: 8px;
}

.method-quality-section {
  display: grid;
  gap: 20px;
}

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

.method-quality-grid article {
  padding-top: 14px;
  border-top: 1px solid var(--method-line);
}

.method-quality-grid article h3 {
  margin-bottom: 8px;
}

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

.method-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--method-line);
}

.method-feedback p {
  max-width: var(--method-copy-width);
}

.method-link-grid a,
.text-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(110, 227, 215, 0.3);
  background: rgba(110, 227, 215, 0.08);
  color: #b8fff7;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.method-link-grid a:hover,
.method-link-grid a:focus-visible,
.text-button:hover,
.text-button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: #eafffb;
  background: rgba(110, 227, 215, 0.14);
  border-color: rgba(110, 227, 215, 0.48);
  transform: translateY(-1px);
}

.methods-analytics {
  display: grid;
  gap: 18px;
}

.methods-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.methods-section-header h2 {
  margin-bottom: 9px;
}

.methods-section-header p {
  max-width: var(--method-copy-width);
}

.method-segmented {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--method-line);
  border-radius: 10px;
  background: rgba(7, 10, 10, 0.42);
}

.methods-page button.ghost {
  background: transparent;
  color: rgba(238, 240, 235, 0.74);
  border-color: transparent;
  border-radius: 7px;
  box-shadow: none;
}

.methods-page button.ghost:not(.active):hover {
  color: var(--fg);
  background: rgba(238, 240, 235, 0.055);
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.method-segmented button.active {
  color: #d8fffa;
  background: rgba(110, 227, 215, 0.12);
  border-color: rgba(110, 227, 215, 0.44);
  box-shadow: none;
}

.methods-loading,
.methods-error {
  color: var(--muted);
  min-height: 96px;
  display: grid;
  align-items: center;
  border: 1px dashed rgba(196, 206, 199, 0.14);
  border-radius: 8px;
  padding: 18px;
  background: var(--method-surface-soft);
}

.methods-error {
  gap: 8px;
  color: #ffd07b;
}

.methods-error code {
  color: var(--fg);
}

.methods-error span {
  color: var(--muted);
  font-size: 0.84rem;
}

.flow-dashboard {
  display: grid;
  gap: 0;
}

.flow-panel {
  display: grid;
  gap: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.prisma-panel {
  --prisma-fg: #e8ece8;
  --prisma-muted: #aeb5b4;
  --prisma-main-base: rgba(18, 35, 31, 0.92);
  --prisma-side-base: rgba(43, 31, 28, 0.92);
  --prisma-abstract-base: rgba(27, 33, 43, 0.92);
  --prisma-empty-base: rgba(25, 27, 22, 0.78);
  display: grid;
  gap: 15px;
  padding: 18px 20px 20px;
  border-radius: 12px;
  background: rgba(12, 15, 16, 0.84);
  border: 1px solid var(--method-line);
}

.prisma-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}

.prisma-panel-header h3,
.prisma-diagram h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

.prisma-panel-header h3 {
  font-size: 1.08rem;
}

.prisma-panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.prisma-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.prisma-diagram {
  display: grid;
  gap: 32px;
  min-width: 0;
  padding: 0 28px;
}

.prisma-grid.single .prisma-diagram {
  padding: 0;
}

.prisma-diagram + .prisma-diagram {
  border-left: 1px solid var(--method-line);
}

.prisma-diagram h3 {
  color: var(--prisma-fg);
  text-align: center;
  font-size: 1.18rem;
  line-height: 1.18;
}

.prisma-flow {
  display: grid;
  grid-template-columns: minmax(150px, 0.78fr) 30px minmax(190px, 1.12fr);
  grid-auto-rows: minmax(96px, auto);
  gap: 0;
  align-items: stretch;
}

.prisma-grid.single .prisma-flow {
  grid-template-columns: minmax(220px, 0.8fr) 34px minmax(290px, 1.2fr);
}

.prisma-main-track {
  grid-column: 1;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(34px, 1fr);
  align-self: stretch;
  min-width: 0;
  z-index: 1;
}

.prisma-node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  min-height: 68px;
  align-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(73, 214, 200, 0.22), rgba(119, 217, 141, 0.08)),
    var(--prisma-main-base);
  border: 1px solid rgba(73, 214, 200, 0.46);
  box-shadow: none;
}

.prisma-down-arrow {
  position: relative;
  display: block;
  min-height: 34px;
}

.prisma-down-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 7px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(110, 227, 215, 0.18), rgba(110, 227, 215, 0.64));
}

.prisma-down-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid rgba(110, 227, 215, 0.68);
}

.prisma-node strong,
.prisma-side strong {
  color: var(--prisma-fg);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  line-height: 1.16;
}

.prisma-node span {
  color: #b5fff4;
  font-size: 0.76rem;
  font-weight: 700;
}

.prisma-side > div span {
  color: #ffd4c2;
  font-size: 0.76rem;
  font-weight: 700;
}

.prisma-side {
  grid-column: 3;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  min-height: 68px;
  align-content: center;
  padding: 10px 11px;
  margin: 6px 0;
  border-radius: 8px;
  align-self: start;
  background:
    linear-gradient(180deg, rgba(232, 117, 141, 0.2), rgba(241, 166, 106, 0.09)),
    var(--prisma-side-base);
  border: 1px solid rgba(241, 166, 106, 0.48);
  box-shadow: none;
}

.prisma-side.pending {
  border-color: rgba(241, 166, 106, 0.48);
}

.prisma-side.evidence-path {
  background:
    linear-gradient(180deg, rgba(144, 186, 255, 0.2), rgba(144, 186, 255, 0.08)),
    var(--prisma-abstract-base);
  border-color: rgba(144, 186, 255, 0.46);
}

.prisma-side.evidence-path > div span,
.prisma-side.evidence-path li strong {
  color: #d6e4ff;
}

.prisma-side.included {
  background:
    linear-gradient(180deg, rgba(119, 217, 141, 0.2), rgba(73, 214, 200, 0.08)),
    var(--prisma-main-base);
  border-color: rgba(119, 217, 141, 0.46);
}

.prisma-side.included > div span,
.prisma-side.included li strong {
  color: #b5ffd0;
}

.prisma-side-stack {
  grid-column: 3;
  display: grid;
  gap: 0;
  align-self: start;
  min-width: 0;
}

.prisma-side-stack > .prisma-side {
  grid-column: 1;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
}

.prisma-side-stack > .prisma-side.retrieval-split {
  gap: 8px;
  margin: 6px 0 0;
}

.prisma-mini-flow {
  display: grid;
  grid-template-columns: minmax(98px, 0.72fr) minmax(146px, 1.28fr);
  column-gap: 0;
  row-gap: 8px;
  align-items: start;
}

.prisma-mini-main,
.prisma-mini-asides {
  display: grid;
  min-width: 0;
}

.prisma-mini-main {
  gap: 0;
}

.prisma-mini-asides {
  gap: 18px;
  position: relative;
}

.prisma-mini-flow .prisma-side {
  grid-column: auto;
  width: 100%;
  min-height: 58px;
  margin: 0;
  box-sizing: border-box;
}

.prisma-mini-flow .prisma-side > div {
  display: grid;
  gap: 4px;
}

.prisma-mini-flow .prisma-side strong {
  font-size: 0.74rem;
}

.prisma-mini-flow .prisma-side li {
  font-size: 0.66rem;
}

.prisma-mini-flow .prisma-branch-down {
  height: 18px;
}

.prisma-mini-flow .prisma-mini-top-arrow {
  height: 24px;
}

.prisma-mini-asides {
  padding-top: 24px;
}

.prisma-mini-side-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  min-width: 0;
}

.prisma-mini-side-arrow {
  position: relative;
  display: block;
  height: 2px;
  margin-top: 34px;
}

.prisma-mini-side-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 6px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(232, 117, 141, 0.18), rgba(232, 117, 141, 0.72));
}

.prisma-mini-side-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid rgba(232, 117, 141, 0.76);
}

.prisma-side.empty {
  opacity: 0.68;
  background:
    linear-gradient(180deg, rgba(232, 117, 141, 0.09), rgba(232, 117, 141, 0.035)),
    var(--prisma-empty-base);
  border-color: rgba(232, 117, 141, 0.22);
}

.prisma-side > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.prisma-side p,
.prisma-side ul {
  margin: 0;
}

.prisma-side p {
  color: var(--prisma-muted);
  font-size: 0.74rem;
  line-height: 1.3;
}

.prisma-side ul {
  display: grid;
  gap: 4px;
  padding: 0;
  list-style: none;
}

.prisma-side li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--prisma-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.prisma-side li strong {
  flex: 0 0 auto;
  color: #ffd4c2;
  font-size: 0.72rem;
}

.prisma-branch-down {
  position: relative;
  display: block;
  height: 24px;
}

.prisma-branch-down::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(144, 186, 255, 0.2), rgba(144, 186, 255, 0.62));
}

.prisma-branch-down::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid rgba(144, 186, 255, 0.7);
}

.prisma-abstract-path {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  margin-top: 0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(144, 186, 255, 0.2), rgba(144, 186, 255, 0.08)),
    var(--prisma-abstract-base);
  border: 1px solid rgba(144, 186, 255, 0.46);
  box-shadow: none;
}

.prisma-abstract-path strong {
  color: var(--prisma-fg);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  line-height: 1.16;
}

.prisma-abstract-path > span {
  color: #d6e4ff;
  font-size: 0.76rem;
  font-weight: 700;
}

.prisma-abstract-path p {
  color: var(--prisma-muted);
  font-size: 0.72rem;
  line-height: 1.28;
  margin: 0;
}

.prisma-side-arrow {
  grid-column: 2;
  position: relative;
  align-self: start;
  height: 68px;
  margin-top: 6px;
}

.prisma-side-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 7px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(232, 117, 141, 0.18), rgba(232, 117, 141, 0.72));
}

.prisma-side-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid rgba(232, 117, 141, 0.76);
}

.prisma-side-placeholder {
  grid-column: 2 / 4;
  min-height: 1px;
}

.prisma-main-track.last {
  min-height: 68px;
  grid-template-rows: auto;
  align-self: start;
}

.methods-bibliography-section {
  display: grid;
  gap: 16px;
}

.methods-bibliography-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) minmax(180px, 1fr) minmax(170px, 0.75fr);
  gap: 12px;
  align-items: end;
}

.methods-bibliography-controls label {
  font-size: 0.84rem;
}

.methods-bibliography-controls input[type="search"],
.methods-bibliography-controls select {
  width: 100%;
  border-radius: 8px;
  border-color: rgba(188, 200, 201, 0.18);
  background: rgba(7, 10, 10, 0.72);
}

.methods-bibliography-summary {
  color: var(--muted);
  font-size: 0.9rem;
}

.methods-bibliography-table-wrap {
  max-height: min(72vh, 780px);
  overflow: auto;
  border: 1px solid var(--method-line);
  border-radius: 8px;
  background: rgba(10, 13, 14, 0.82);
}

.methods-bibliography-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.methods-bibliography-records-col {
  width: 32%;
}

.methods-bibliography-stage-col {
  width: 17%;
}

.methods-bibliography-table th,
.methods-bibliography-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--method-line-soft);
  text-align: left;
  vertical-align: top;
}

.methods-bibliography-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #d8fffa;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0;
  background: #101315;
  box-shadow: 0 1px 0 var(--method-line);
}

.methods-bibliography-table tr:last-child td {
  border-bottom: 0;
}

.methods-bibliography-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.methods-bibliography-table tbody tr:hover {
  background: rgba(110, 227, 215, 0.055);
}

.bibliography-paper-cell,
.bibliography-stage-cell {
  display: grid;
  gap: 5px;
}

.bibliography-paper-cell strong,
.bibliography-stage-cell strong {
  color: var(--fg);
  line-height: 1.28;
}

.bibliography-paper-cell span,
.bibliography-stage-cell span {
  color: var(--muted);
  line-height: 1.36;
}

.bibliography-stage-cell strong {
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
}

.bibliography-stage-cell.pass strong {
  color: #c7ffd7;
}

.bibliography-stage-cell.fail strong {
  color: #ffd0c2;
}

.bibliography-stage-cell.not_reached strong {
  color: #c6ccc9;
}

.bibliography-paper-cell .bibliography-authors {
  color: #d4dad8;
}

.bibliography-paper-cell a {
  width: fit-content;
  color: #b8fff7;
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 227, 215, 0.44);
  overflow-wrap: anywhere;
}

.bibliography-paper-cell a:hover,
.bibliography-paper-cell a:focus-visible {
  color: #eafffb;
  border-bottom-color: rgba(216, 255, 250, 0.88);
}

.methods-bibliography-row.selected td:last-child .bibliography-stage-cell strong {
  color: #c7ffd7;
}

.methods-bibliography-empty {
  color: var(--muted);
  text-align: center;
}

.methods-bibliography-load-more {
  justify-self: center;
  border-radius: 8px;
}

.graph-grid {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 2.34fr) minmax(300px, 0.92fr);
  gap: 16px;
  align-items: stretch;
  height: var(--kg-dynamic-workspace-height, var(--kg-workspace-height));
  overflow: visible;
}

.graph {
  height: 100%;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  position: relative;
  contain: layout paint;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border: none;
}

.graph-column .graph {
  flex: 0 0 auto;
  min-height: 0;
  height: var(--kg-graph-height, 820px);
  margin-top: -6px;
}

.graph-truncation-note {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 0.78rem;
  color: var(--fg);
  background: rgba(7, 10, 10, 0.78);
  border: 1px solid rgba(196, 206, 199, 0.18);
  border-radius: 10px;
  padding: 5px 8px;
  pointer-events: none;
}

.graph-detail {
  border-radius: 0;
  padding: 2px 18px 2px 20px;
  background: rgba(7, 10, 10, 0.22);
  border: 0;
  border-left: 1px solid rgba(188, 200, 201, 0.2);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
}

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

.detail-header h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.detail-header h3:empty {
  display: none;
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--fg);
  min-height: 0;
  overflow: hidden;
}

.detail-empty {
  color: var(--muted);
  font-size: 0.95rem;
}

.detail-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.detail-stat strong {
  color: var(--fg);
}

.detail-list {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  gap: 10px;
  align-content: start;
  grid-auto-rows: max-content;
  max-height: none;
  overflow: auto;
  padding-right: 6px;
}

.graph-detail,
.graph-detail .detail-list,
.graph-detail .trend-dashboard {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.graph-detail::-webkit-scrollbar,
.graph-detail .detail-list::-webkit-scrollbar,
.graph-detail .trend-dashboard::-webkit-scrollbar {
  display: none;
}

.detail-item {
  padding: 10px 12px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 29, 31, 0.72), rgba(13, 16, 17, 0.68)),
    var(--card-soft);
  border: 1px solid var(--stroke-soft);
  display: grid;
  gap: 6px;
}

.detail-item h4 {
  margin: 0;
  font-size: 0.95rem;
  font-family: "Space Grotesk", sans-serif;
}

.detail-item .meta {
  color: var(--muted);
  font-size: 0.8rem;
  display: block;
}

.detail-item .meta a {
  color: #a9f7ef;
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 247, 239, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.detail-item .meta a:hover,
.detail-item .meta a:focus-visible {
  color: #d8fffa;
  border-bottom-color: rgba(216, 255, 250, 0.9);
}

.trend-dashboard {
  display: grid;
  gap: 0;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
}

.trend-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding-bottom: 14px;
}

.trend-card {
  border-radius: 0;
  background: transparent;
  border: 0;
}

.trend-stat {
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 29, 31, 0.72), rgba(13, 16, 17, 0.68)),
    var(--card-soft);
  border: 1px solid var(--stroke-soft);
  padding: 10px;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.trend-stat span,
.trend-card-header span,
.trend-axis-label,
.trend-empty {
  color: var(--muted);
}

.trend-stat span {
  font-size: 0.74rem;
}

.trend-stat strong {
  color: var(--fg);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.trend-card {
  padding: 15px 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--stroke-soft);
}

.trend-card.evidence-card {
  border-top-color: var(--stroke-soft);
}

.trend-card-header {
  display: grid;
  gap: 2px;
}

.trend-card-header h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  line-height: 1.2;
}

.trend-card-header span {
  font-size: 0.75rem;
}

.trend-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.trend-axis-line {
  stroke: rgba(196, 206, 199, 0.18);
  stroke-width: 1;
}

.trend-axis-line.faint {
  stroke: rgba(196, 206, 199, 0.09);
}

.trend-axis-label {
  fill: rgba(178, 181, 173, 0.88);
  font-size: 9px;
}

.publication-year-target {
  cursor: pointer;
  outline: none;
}

.publication-year-hit {
  fill: transparent;
  pointer-events: all;
}

.publication-year-bar {
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: bottom center;
  filter: saturate(1.1) brightness(1.04);
  transition:
    filter 0.15s ease,
    opacity 0.15s ease,
    transform 0.15s ease;
}

.publication-year-target:hover .publication-year-bar,
.publication-year-target.hovered .publication-year-bar,
.publication-year-target:focus-visible .publication-year-bar {
  filter: saturate(1.2) brightness(1.12) drop-shadow(0 0 9px rgba(63, 174, 166, 0.36));
  opacity: 1;
  transform: scaleY(1.06);
}

.sample-heatmap-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.sample-heatmap-target {
  cursor: pointer;
  outline: none;
}

.sample-heatmap-hit {
  fill: transparent;
  pointer-events: all;
}

.sample-heatmap-cell {
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  transition:
    filter 0.15s ease,
    opacity 0.15s ease,
    transform 0.15s ease;
}

.sample-heatmap-cell.empty {
  fill: rgba(196, 206, 199, 0.045);
}

.sample-heatmap-target:hover .sample-heatmap-cell,
.sample-heatmap-target.hovered .sample-heatmap-cell,
.sample-heatmap-target:focus-visible .sample-heatmap-cell {
  filter: drop-shadow(0 0 8px rgba(200, 155, 69, 0.42));
  opacity: 1;
  transform: scale(1.04);
}

.trend-bars {
  display: grid;
  gap: 9px;
}

.trend-bar-row {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.trend-bar-row.interactive-bar {
  cursor: pointer;
  border-radius: 6px;
  outline: none;
}

.trend-bar-row.interactive-bar .trend-bar-track span {
  transition:
    box-shadow 0.15s ease,
    filter 0.15s ease,
    width 0.15s ease;
}

.trend-bar-row.interactive-bar:hover .trend-bar-track span,
.trend-bar-row.interactive-bar.hovered .trend-bar-track span,
.trend-bar-row.interactive-bar:focus-visible .trend-bar-track span {
  filter: saturate(1.12) brightness(1.06);
  box-shadow:
    0 0 14px rgba(169, 247, 239, 0.24),
    inset 0 0 7px rgba(255, 237, 190, 0.16);
}

.trend-bar-row.interactive-bar:hover .trend-bar-topline span,
.trend-bar-row.interactive-bar.hovered .trend-bar-topline span,
.trend-bar-row.interactive-bar:focus-visible .trend-bar-topline span {
  color: #d8fffa;
}

.trend-bar-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  font-size: 0.8rem;
}

.trend-bar-topline span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-bar-topline strong {
  color: var(--fg);
  font-size: 0.8rem;
}

.trend-bar-track {
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(238, 240, 235, 0.08);
  box-shadow: inset 0 0 0 1px rgba(238, 240, 235, 0.035);
}

.trend-bar-track span {
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  filter: saturate(1.08) brightness(0.99);
  box-shadow:
    0 0 12px rgba(241, 183, 75, 0.22),
    inset 0 0 6px rgba(255, 237, 190, 0.14);
}

.trend-card.bar-tone-gray .trend-bar-track span {
  background: #9ea9b5;
  filter: saturate(1.02) brightness(0.99);
  box-shadow:
    0 0 10px rgba(188, 197, 207, 0.14),
    inset 0 0 5px rgba(238, 240, 235, 0.08);
}

.trend-card.bar-tone-gray .trend-bar-row.interactive-bar:hover .trend-bar-track span,
.trend-card.bar-tone-gray .trend-bar-row.interactive-bar.hovered .trend-bar-track span,
.trend-card.bar-tone-gray .trend-bar-row.interactive-bar:focus-visible .trend-bar-track span {
  box-shadow: 0 0 12px rgba(188, 197, 207, 0.22);
}

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

.author-rank-row {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(238, 240, 235, 0.08);
  border-radius: 6px;
  background: rgba(238, 240, 235, 0.035);
  cursor: pointer;
  outline: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.author-rank-row:hover,
.author-rank-row.hovered,
.author-rank-row:focus-visible {
  background: rgba(238, 240, 235, 0.065);
  border-color: rgba(188, 197, 207, 0.24);
  box-shadow: 0 0 12px rgba(188, 197, 207, 0.12);
}

.author-rank-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  font-size: 0.8rem;
}

.author-rank-main span {
  min-width: 0;
  overflow: hidden;
  color: rgba(238, 240, 235, 0.9);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-rank-main strong {
  color: rgba(238, 240, 235, 0.86);
  font-size: 0.76rem;
  font-weight: 700;
}

.author-role-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.author-role-counts span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(238, 240, 235, 0.065);
  color: rgba(238, 240, 235, 0.64);
  font-size: 0.69rem;
  line-height: 1;
}

.author-role-counts b {
  color: rgba(238, 240, 235, 0.86);
  font-weight: 700;
}

.trend-chart-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 2px;
}

.chart-expand-toggle {
  appearance: none;
  border: 1px solid rgba(238, 240, 235, 0.16);
  border-radius: 999px;
  background: rgba(238, 240, 235, 0.05);
  color: rgba(238, 240, 235, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1;
  padding: 6px 9px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.chart-expand-toggle:hover,
.chart-expand-toggle:focus-visible {
  background: rgba(238, 240, 235, 0.09);
  border-color: rgba(169, 247, 239, 0.42);
  color: #d8fffa;
  outline: none;
}

.trend-stack {
  display: flex;
  height: 14px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(238, 240, 235, 0.08);
  box-shadow:
    0 0 0 1px rgba(169, 247, 239, 0.06),
    0 0 14px rgba(73, 214, 200, 0.08),
    inset 0 0 10px rgba(238, 240, 235, 0.04);
}

.trend-stack span {
  min-width: 2px;
}

.trend-stack-segment {
  filter: saturate(1.1) brightness(0.99);
  box-shadow:
    inset 0 0 7px var(--bar-glow, rgba(169, 247, 239, 0.12)),
    inset 0 1px rgba(238, 240, 235, 0.08);
  transition:
    filter 0.15s ease,
    opacity 0.15s ease,
    transform 0.15s ease;
}

.trend-stack-segment + .trend-stack-segment {
  box-shadow:
    inset 1px 0 rgba(7, 10, 10, 0.58),
    inset 0 0 7px var(--bar-glow, rgba(169, 247, 239, 0.12)),
    inset 0 1px rgba(238, 240, 235, 0.08);
}

.composition-filter-target {
  cursor: pointer;
  outline: none;
}

.trend-stack-segment.composition-filter-target {
  transform-origin: center;
}

.trend-stack-segment.composition-filter-target:hover,
.trend-stack-segment.composition-filter-target.hovered,
.trend-stack-segment.composition-filter-target:focus-visible {
  filter: saturate(1.18) brightness(1.06) drop-shadow(0 0 8px rgba(169, 247, 239, 0.32));
  opacity: 1;
  transform: scaleY(1.12);
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
}

.trend-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(238, 240, 235, 0.84);
  font-size: 0.73rem;
  line-height: 1.2;
}

.trend-legend-item.composition-filter-target {
  border-radius: 999px;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.trend-legend-item.composition-filter-target:hover,
.trend-legend-item.composition-filter-target.hovered,
.trend-legend-item.composition-filter-target:focus-visible {
  color: #d8fffa;
  background: rgba(238, 240, 235, 0.06);
}

.trend-legend-item i {
  width: 6px;
  height: 10px;
  border-radius: 2px;
  flex: 0 0 auto;
  filter: saturate(1.1) brightness(0.99);
  box-shadow:
    0 0 7px var(--bar-glow, rgba(169, 247, 239, 0.1)),
    inset 0 0 4px rgba(238, 240, 235, 0.08);
}

.trend-legend-item strong {
  color: var(--fg);
  font-weight: 600;
}

.metadata-composition-card {
  gap: 10px;
}

.metadata-composition {
  display: grid;
  gap: 9px;
}

.scale-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trend-card.chip-tone-teal {
  --chip-text: #d8f5f1;
  --chip-bg: rgba(69, 194, 184, 0.08);
  --chip-border: rgba(69, 194, 184, 0.24);
  --chip-hover-bg: rgba(69, 194, 184, 0.14);
  --chip-hover-border: rgba(69, 194, 184, 0.46);
  --chip-shadow: rgba(69, 194, 184, 0.14);
  --chip-outline: rgba(169, 247, 239, 0.58);
  --chip-count-bg: rgba(69, 194, 184, 0.88);
  --chip-count-text: #071010;
}

.trend-card.chip-tone-purple {
  --chip-text: #e5d9f2;
  --chip-bg: rgba(111, 78, 150, 0.1);
  --chip-border: rgba(111, 78, 150, 0.42);
  --chip-hover-bg: rgba(111, 78, 150, 0.16);
  --chip-hover-border: rgba(111, 78, 150, 0.62);
  --chip-shadow: rgba(111, 78, 150, 0.18);
  --chip-outline: rgba(150, 116, 188, 0.62);
  --chip-count-bg: rgba(92, 64, 128, 0.96);
  --chip-count-text: #f2e9fb;
}

.trend-card.chip-tone-blue {
  --chip-text: #dce9ff;
  --chip-bg: rgba(144, 186, 255, 0.08);
  --chip-border: rgba(144, 186, 255, 0.24);
  --chip-hover-bg: rgba(144, 186, 255, 0.14);
  --chip-hover-border: rgba(144, 186, 255, 0.5);
  --chip-shadow: rgba(144, 186, 255, 0.16);
  --chip-outline: rgba(178, 207, 255, 0.66);
  --chip-count-bg: rgba(144, 186, 255, 0.9);
  --chip-count-text: #071010;
}

.trend-card.chip-tone-green {
  --chip-text: #e3f5ec;
  --chip-bg: rgba(154, 197, 174, 0.08);
  --chip-border: rgba(154, 197, 174, 0.24);
  --chip-hover-bg: rgba(154, 197, 174, 0.14);
  --chip-hover-border: rgba(154, 197, 174, 0.5);
  --chip-shadow: rgba(154, 197, 174, 0.15);
  --chip-outline: rgba(185, 218, 198, 0.66);
  --chip-count-bg: rgba(154, 197, 174, 0.92);
  --chip-count-text: #071010;
}

.trend-card.chip-tone-amber {
  --chip-text: #eadfca;
  --chip-bg: rgba(241, 183, 75, 0.07);
  --chip-border: rgba(241, 183, 75, 0.22);
  --chip-hover-bg: rgba(241, 183, 75, 0.12);
  --chip-hover-border: rgba(241, 183, 75, 0.42);
  --chip-shadow: rgba(241, 183, 75, 0.12);
  --chip-outline: rgba(249, 209, 134, 0.54);
  --chip-count-bg: rgba(241, 183, 75, 0.84);
  --chip-count-text: #0d0d0a;
}

.trend-card.chip-tone-pink {
  --chip-text: #f4d8e2;
  --chip-bg: rgba(224, 106, 150, 0.08);
  --chip-border: rgba(224, 106, 150, 0.3);
  --chip-hover-bg: rgba(224, 106, 150, 0.14);
  --chip-hover-border: rgba(224, 106, 150, 0.48);
  --chip-shadow: rgba(224, 106, 150, 0.14);
  --chip-outline: rgba(239, 108, 154, 0.58);
  --chip-count-bg: rgba(224, 106, 150, 0.88);
  --chip-count-text: #12080d;
}

.trend-card.chip-tone-gray {
  --chip-text: #e2e6eb;
  --chip-bg: rgba(158, 169, 181, 0.08);
  --chip-border: rgba(158, 169, 181, 0.26);
  --chip-hover-bg: rgba(158, 169, 181, 0.14);
  --chip-hover-border: rgba(188, 197, 207, 0.48);
  --chip-shadow: rgba(158, 169, 181, 0.14);
  --chip-outline: rgba(199, 207, 216, 0.62);
  --chip-count-bg: rgba(171, 181, 192, 0.9);
  --chip-count-text: #090d12;
}

.scale-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--chip-text, #d8fffa);
  background: var(--chip-bg, rgba(73, 214, 200, 0.08));
  border: 1px solid var(--chip-border, rgba(73, 214, 200, 0.22));
  font-size: 0.75rem;
  line-height: 1.15;
  text-align: left;
  box-shadow: none;
}

.scale-chip:hover,
.scale-chip:focus-visible {
  background: var(--chip-hover-bg, rgba(73, 214, 200, 0.14));
  border-color: var(--chip-hover-border, rgba(73, 214, 200, 0.48));
  box-shadow: 0 0 14px var(--chip-shadow, rgba(73, 214, 200, 0.16));
}

.scale-chip:focus-visible {
  outline: 2px solid var(--chip-outline, rgba(169, 247, 239, 0.64));
  outline-offset: 2px;
}

.scale-chip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.scale-chip em {
  flex: 0 0 auto;
  min-width: 1.45em;
  padding: 1px 5px;
  border-radius: 999px;
  color: var(--chip-count-text, #071010);
  background: var(--chip-count-bg, rgba(73, 214, 200, 0.9));
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.trend-empty {
  font-size: 0.82rem;
}

.detail-claim-cards {
  display: grid;
  gap: 10px;
}

.detail-claim-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 19, 20, 0.7), rgba(7, 10, 10, 0.56)),
    rgba(7, 10, 10, 0.42);
  border: 1px solid var(--stroke-soft);
}

.detail-claim-card h5 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  line-height: 1.25;
}

.detail-claim-meta {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.detail-reference {
  margin-top: 3px;
  padding-top: 5px;
  border-top: 1px solid rgba(151, 168, 175, 0.16);
}

.detail-claim-meta a {
  color: #a9f7ef;
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 247, 239, 0.45);
}

.detail-claim-meta a:hover,
.detail-claim-meta a:focus-visible {
  color: #d8fffa;
  border-bottom-color: rgba(216, 255, 250, 0.9);
}

.study-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.study-detail-actions button.small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  line-height: 1;
}

.study-detail-note {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.study-detail-note a {
  color: #a9f7ef;
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 247, 239, 0.45);
}

.study-detail-note a:hover,
.study-detail-note a:focus-visible {
  color: #d8fffa;
  border-bottom-color: rgba(216, 255, 250, 0.9);
}

.tooltip {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(7, 10, 10, 0.92);
  border: 1px solid rgba(196, 206, 199, 0.14);
  font-size: 0.8rem;
  color: var(--fg);
  z-index: 5;
  max-width: 240px;
}

.tooltip strong {
  color: var(--accent);
}

.tooltip-kicker,
.tooltip-meta,
.tooltip-action {
  display: block;
}

.tooltip-kicker {
  margin-bottom: 3px;
  color: rgba(238, 240, 235, 0.62);
  font-size: 0.68rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.tooltip-title {
  color: #d8fffa;
  line-height: 1.22;
}

.tooltip-meta {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.25;
}

.tooltip-action {
  margin-top: 6px;
  color: var(--accent);
  font-size: 0.73rem;
  line-height: 1.2;
}

.graph svg {
  width: 100%;
  height: 100%;
}

.node {
  fill: var(--node-fill, rgba(73, 214, 200, 0.16));
  stroke: var(--node-color, rgba(73, 214, 200, 0.82));
  stroke-width: 1.4;
  cursor: pointer;
  transition: opacity 120ms ease, stroke-width 120ms ease, filter 120ms ease;
}

.node.hovered,
.node.selected {
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px var(--node-glow, rgba(73, 214, 200, 0.3)));
}

.node.compound {
  fill: var(--node-fill, rgba(73, 214, 200, 0.16));
  stroke: var(--node-color, rgba(73, 214, 200, 0.82));
}

.node.target {
  fill: var(--node-fill, rgba(73, 214, 200, 0.16));
  stroke: var(--node-color, rgba(73, 214, 200, 0.82));
}

.node-label {
  font-size: 16px;
  font-weight: 700;
  fill: var(--fg);
  cursor: pointer;
  transition: opacity 120ms ease, fill 120ms ease, filter 120ms ease;
}

.node-label.hovered,
.node-label.selected {
  fill: #f2f4ef;
  font-weight: 700;
}

.edge {
  --edge-width: 3px;
  fill: none;
  stroke: rgba(73, 214, 200, 0.32);
  stroke-width: var(--edge-width);
  stroke-linecap: round;
  stroke-linejoin: round;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 90ms ease, stroke-width 90ms ease;
}

.edge.hovered,
.edge.selected {
  opacity: 1;
  stroke-width: calc(var(--edge-width) + 2px);
}

.edge.muted,
.node.muted,
.node-label.muted {
  opacity: 0.16;
  filter: none;
}

.graph svg.focus-active .edge:not(.focus-primary):not(.focus-related),
.graph svg.focus-active .node:not(.focus-primary):not(.focus-related),
.graph svg.focus-active .node-label:not(.focus-primary):not(.focus-related) {
  opacity: 0.16;
  filter: none;
}

.edge.focus-primary {
  opacity: 1;
  stroke-width: calc(var(--edge-width) + 3px);
}

.edge.focus-related {
  opacity: 0.96;
  stroke-width: calc(var(--edge-width) + 1.5px);
}

.node.focus-primary,
.node-label.focus-primary {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.26));
}

.node.focus-related,
.node-label.focus-related {
  opacity: 1;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

select,
input[type="search"],
input[type="number"] {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--control-border);
  background: rgba(7, 10, 10, 0.74);
  color: var(--fg);
  font-size: 0.95rem;
}

.search input[type="search"] {
  width: min(100%, 640px);
  min-width: 480px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(var(--cards-masonry-column-count, 4), minmax(0, 1fr));
  gap: 16px;
  align-content: start;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}

.cards-masonry-column {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.cards .card {
  display: grid;
  width: 100%;
  margin: 0;
}

.cards-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 320px;
  max-height: min(78vh, 960px);
  background: rgba(15, 18, 20, 0.76);
}

.study-list {
  display: grid;
  gap: 12px;
  max-height: min(65vh, 900px);
  overflow: auto;
  padding-right: 6px;
}

/* Sentinel nodes for progressive list loading (IntersectionObserver). */
.cards-load-sentinel,
.bibliography-load-sentinel {
  display: block;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.cards-load-sentinel {
  grid-column: 1 / -1;
}

.study-item {
  box-shadow: none;
  padding: 0;
}

.study-citation {
  margin: 0;
  color: var(--fg);
  font-size: 0.95rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.study-citation span {
  color: var(--fg);
}

.study-citation em {
  color: var(--muted);
  font-style: italic;
}

.study-citation a {
  color: #a9f7ef;
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 247, 239, 0.42);
}

.bibliography-panel {
  background: rgba(15, 18, 20, 0.76);
}

.bibliography-panel.focused {
  border-color: rgba(241, 183, 75, 0.5);
  box-shadow: none;
}

.card {
  background: rgba(10, 12, 13, 0.82);
  border-radius: 8px;
  padding: 21px;
  border: 1px solid rgba(196, 206, 199, 0.17);
  box-shadow: none;
  display: grid;
  align-content: start;
  gap: 13px;
  animation: fadeUp 0.4s ease;
}

.card-header {
  display: grid;
  align-content: start;
  gap: 10px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Space Grotesk", sans-serif;
}

.card .meta {
  color: var(--muted);
  font-size: 0.85rem;
  display: grid;
  gap: 5px;
}

.detail-claim-card.card {
  padding: 12px;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(15, 19, 20, 0.7), rgba(7, 10, 10, 0.56)),
    rgba(7, 10, 10, 0.42);
}

.detail-claim-card.card .card-header {
  gap: 8px;
}

.detail-claim-card.card h3 {
  font-size: 0.9rem;
  line-height: 1.28;
  min-height: 0;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.detail-claim-card.card .meta {
  font-size: 0.78rem;
  gap: 4px;
}

.detail-claim-card.card .badge-row {
  gap: 6px;
}

.detail-claim-card.card .badge {
  font-size: 0.7rem;
  padding: 3px 8px;
}

.card-main-finding {
  color: var(--fg);
  line-height: 1.36;
}

.card-reference {
  margin-top: 3px;
  padding-top: 7px;
  border-top: 1px solid rgba(151, 168, 175, 0.16);
  color: rgba(205, 214, 218, 0.78);
}

.card-reference-journal {
  font-style: italic;
}

.card .card-field-label,
.detail-claim-card .card-field-label {
  font-weight: 600;
}

.card .meta a {
  color: #a9f7ef;
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 247, 239, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.card .meta a:hover,
.card .meta a:focus-visible {
  color: #d8fffa;
  border-bottom-color: rgba(216, 255, 250, 0.9);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  border: 1px solid rgba(196, 206, 199, 0.13);
  width: fit-content;
}

.badge.paper-type {
  background: rgba(158, 169, 181, 0.1);
  border-color: rgba(158, 169, 181, 0.24);
  color: #d8dee6;
}

.badge.literature-type {
  background: rgba(204, 132, 38, 0.15);
  border-color: rgba(241, 183, 75, 0.38);
  color: #f1c36f;
}

.badge.study-design {
  background: rgba(144, 186, 255, 0.12);
  border-color: rgba(144, 186, 255, 0.24);
  color: #bfd4ff;
}

.badge.access-level {
  background: rgba(232, 123, 94, 0.12);
  border-color: rgba(232, 123, 94, 0.3);
  color: #f3a28b;
}

.badge.system {
  background: rgba(205, 167, 255, 0.1);
  border-color: rgba(205, 167, 255, 0.24);
  color: #d8c2ff;
}

.footer {
  padding: 16px 8vw 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--accent-2);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(73, 214, 200, 0.55);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: #a9f7ef;
  border-bottom-color: rgba(169, 247, 239, 0.9);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.developer-page {
  --dev-cyan: #6ee3d7;
  --dev-gold: #f1bf62;
  --dev-rose: #f080a3;
  --dev-blue: #90baff;
  --dev-green: #a7be73;
  --dev-violet: #d5b7ff;
  --dev-line: rgba(188, 200, 201, 0.16);
  --dev-line-strong: rgba(188, 200, 201, 0.26);
  --dev-panel: rgba(12, 15, 16, 0.86);
  --dev-panel-soft: rgba(18, 23, 25, 0.68);
  --dev-panel-raised: rgba(25, 31, 33, 0.9);
}

.dev-header,
.dev-content {
  width: min(1500px, calc(100% - 8vw));
  margin: 0 auto;
}

.dev-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 42px 0 22px;
  border-bottom: 1px solid var(--method-line);
}

.dev-header-copy {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.dev-kicker {
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(241, 191, 98, 0.36);
  border-radius: 8px;
  color: #ffe1a0;
  background: rgba(241, 191, 98, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
}

.dev-header h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
}

.dev-header p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

.dev-header-links {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dev-content {
  display: grid;
  gap: 24px;
  padding: 24px 0 48px;
}

.dev-workbench,
.dev-artifact-section {
  display: grid;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--method-line);
}

.dev-workbench {
  padding-top: 0;
  border-top: 0;
}

.dev-workbench-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.dev-workbench-bar h2 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.48rem;
}

.dev-workbench-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dev-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dev-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 4px 6px 4px 12px;
  border: 1px solid var(--method-line);
  border-radius: 8px;
  background: rgba(7, 10, 10, 0.42);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.dev-search input {
  width: 230px;
  min-width: 0;
  border: 0;
  border-radius: 6px;
  padding: 8px 9px;
  background: rgba(237, 240, 239, 0.06);
  color: var(--fg);
  font: inherit;
  font-weight: 500;
  outline: 0;
}

.dev-search input:focus-visible {
  box-shadow: 0 0 0 2px rgba(110, 227, 215, 0.34);
}

.dev-snapshot {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.dev-snapshot article {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid var(--dev-line);
  border-radius: 8px;
  background: var(--dev-panel-soft);
}

.dev-snapshot span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.dev-snapshot strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  line-height: 1;
}

.dev-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(330px, 0.34fr);
  gap: 14px;
  align-items: start;
}

.dev-stage-index,
.dev-detail-panel,
.dev-flow-panel {
  min-width: 0;
  border: 1px solid var(--dev-line);
  border-radius: 8px;
  background: var(--dev-panel);
}

.dev-stage-index,
.dev-detail-panel {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.dev-stage-index {
  padding: 12px;
}

.dev-index-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--method-line-soft);
}

.dev-index-heading strong {
  font-family: "Space Grotesk", sans-serif;
}

.dev-index-list {
  display: grid;
  gap: 6px;
  padding-top: 10px;
}

.dev-index-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px 10px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  box-shadow: none;
}

.dev-index-list button:hover,
.dev-index-list button:focus-visible {
  transform: none;
  box-shadow: none;
  background: rgba(237, 240, 239, 0.055);
  border-color: rgba(188, 200, 201, 0.16);
}

.dev-index-list button.selected {
  background: rgba(110, 227, 215, 0.1);
  border-color: rgba(110, 227, 215, 0.36);
}

.dev-index-list span {
  color: var(--muted);
  font-size: 0.72rem;
}

.dev-index-list strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.dev-flow-panel {
  overflow: hidden;
}

.dev-flow-scroll {
  height: 700px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.dev-flow-map {
  position: relative;
  min-width: 2734px;
  min-height: 646px;
  padding: 32px;
}

.dev-flow-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.dev-flow-connectors marker path {
  fill: rgba(110, 227, 215, 0.72);
}

.dev-edge {
  fill: none;
  stroke: rgba(110, 227, 215, 0.54);
  stroke-width: 2;
  stroke-linecap: round;
}

.dev-edge-branch {
  stroke: rgba(144, 186, 255, 0.56);
  stroke-dasharray: 7 7;
}

.dev-edge-legacy {
  stroke: rgba(213, 183, 255, 0.5);
  stroke-dasharray: 4 8;
}

.dev-flow-nodes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(16, 150px);
  grid-template-rows: repeat(4, 132px);
  gap: 18px;
}

.dev-node {
  position: relative;
  width: 150px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 11px 10px;
  overflow: hidden;
  text-align: left;
  color: var(--fg);
  border: 1px solid rgba(110, 227, 215, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(110, 227, 215, 0.12), rgba(12, 15, 16, 0.06)),
    var(--dev-panel-raised);
  box-shadow: none;
}

.dev-node::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--dev-cyan);
}

.dev-node:hover,
.dev-node:focus-visible {
  transform: translateY(-1px);
  box-shadow: none;
  border-color: rgba(110, 227, 215, 0.58);
}

.dev-node.selected {
  border-color: rgba(241, 191, 98, 0.72);
  box-shadow: 0 0 0 1px rgba(241, 191, 98, 0.22);
}

.dev-node-kicker {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
}

.dev-node strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  line-height: 1.14;
}

.dev-node > span:not(.dev-node-kicker) {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dev-node em {
  align-self: flex-start;
  margin-top: auto;
  width: fit-content;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 999px;
  color: #d8fffa;
  background: rgba(110, 227, 215, 0.1);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dev-node-search::before {
  background: var(--dev-gold);
}

.dev-node-gate::before,
.dev-node-validate::before {
  background: var(--dev-green);
}

.dev-node-corpus::before,
.dev-node-fulltext::before {
  background: var(--dev-blue);
}

.dev-node-screen::before,
.dev-node-extract::before {
  background: var(--dev-rose);
}

.dev-node-normalize::before {
  background: var(--dev-violet);
}

.dev-node-publish::before {
  background: var(--dev-cyan);
}

.dev-node-branch::before {
  background: var(--dev-blue);
}

.dev-node-legacy::before {
  background: var(--dev-violet);
}

.dev-detail-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.dev-detail-heading {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--method-line-soft);
}

.dev-detail-heading span {
  color: #ffe1a0;
  font-size: 0.76rem;
  font-weight: 700;
}

.dev-detail-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.38rem;
  line-height: 1.12;
}

.dev-detail-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.dev-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.dev-detail-metrics span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 8px;
  border: 1px solid var(--method-line-soft);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(237, 240, 239, 0.035);
  font-size: 0.7rem;
  line-height: 1.2;
}

.dev-detail-metrics strong {
  color: var(--fg);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.dev-detail-panel details {
  border: 1px solid var(--method-line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(237, 240, 239, 0.025);
}

.dev-detail-panel summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--fg);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.dev-detail-panel ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 13px 13px 28px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.dev-empty {
  margin: 0;
  padding: 0 13px 13px;
  color: var(--muted);
  font-size: 0.84rem;
}

.dev-command {
  position: relative;
  margin: 0 12px 12px;
}

.dev-command button {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 1;
}

.dev-command pre,
.dev-snippet {
  margin: 0;
  max-width: 100%;
  overflow: auto;
  border-radius: 8px;
  background: rgba(2, 5, 6, 0.74);
  border: 1px solid rgba(188, 200, 201, 0.1);
  color: #e8f4ef;
  font-size: 0.76rem;
  line-height: 1.48;
}

.dev-command pre {
  padding: 42px 12px 12px;
}

.dev-snippet {
  margin: 0 12px 12px;
  padding: 12px;
  white-space: pre-wrap;
}

.dev-artifact-matrix {
  overflow: auto;
  border: 1px solid var(--method-line);
  border-radius: 8px;
  background: var(--dev-panel);
}

.dev-artifact-matrix table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.dev-artifact-matrix th,
.dev-artifact-matrix td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--method-line-soft);
  text-align: right;
  color: var(--muted);
  font-size: 0.84rem;
}

.dev-artifact-matrix th {
  color: var(--fg);
  font-weight: 700;
  background: rgba(237, 240, 239, 0.035);
}

.dev-artifact-matrix th:first-child,
.dev-artifact-matrix td:first-child {
  text-align: left;
}

.dev-artifact-matrix tbody th {
  background: transparent;
  font-family: "Space Grotesk", sans-serif;
}

@media (max-width: 1180px) {
  .dev-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .dev-detail-panel {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
  }
}

@media (max-width: 820px) {
  .dev-header,
  .dev-content {
    width: min(100% - 12vw, 1500px);
  }

  .dev-header,
  .dev-workbench-bar,
  .dev-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .dev-header-links {
    justify-content: flex-start;
  }

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

  .dev-layout {
    grid-template-columns: 1fr;
  }

  .dev-stage-index {
    position: static;
    max-height: none;
  }

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

  .dev-flow-scroll {
    height: 560px;
  }

  .dev-search,
  .dev-search input {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .filter-toggles {
    margin-left: 0;
  }

  .graph-detail {
    height: auto;
    min-height: 420px;
  }

  .graph-column .graph {
    flex: 0 0 auto;
    height: var(--kg-graph-height, 560px);
  }

  .cards-panel {
    max-height: none;
  }

  .cards {
    grid-template-columns: repeat(var(--cards-masonry-column-count, 2), minmax(0, 1fr));
  }

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

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

  .prisma-diagram {
    padding: 0;
  }

  .prisma-diagram + .prisma-diagram {
    border-top: 1px solid var(--method-line);
    border-left: 0;
    padding-top: 24px;
    margin-top: 24px;
  }

  .prisma-flow {
    grid-template-columns: minmax(150px, 0.78fr) 28px minmax(190px, 1.12fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 6vw 24px;
  }

  .toolbar-filter-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .filter-center-controls {
    justify-content: center;
    gap: 8px 10px;
  }

  .about-hero {
    padding: 42px 6vw 18px;
  }

  .about-content {
    width: min(100% - 12vw, 1120px);
  }

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

  .cards {
    grid-template-columns: repeat(var(--cards-masonry-column-count, 1), minmax(0, 1fr));
  }

  .method-stage-grid,
  .method-quality-grid,
  .method-link-grid {
    grid-template-columns: 1fr;
  }

  .method-stage-grid article {
    min-height: auto;
  }

  .method-query-details summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .method-query-details summary span {
    width: 100%;
    margin-left: 2.1rem;
  }

  .method-query-list dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .method-query-note dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .method-workflow-list article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }

  .method-workflow-marker {
    justify-self: start;
  }

  .method-workflow-illustration {
    width: 48px;
    height: 48px;
  }

  .method-workflow-illustration svg {
    width: 33px;
    height: 33px;
  }

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

  .methods-section-header {
    align-items: stretch;
  }

  .methods-bibliography-controls {
    grid-template-columns: 1fr;
  }

  .methods-bibliography-table-wrap {
    max-height: 76vh;
  }

  .method-segmented {
    width: 100%;
  }

  .method-segmented button {
    flex: 1 1 0;
  }

  .prisma-flow {
    grid-template-columns: 1fr;
    gap: 7px;
    grid-auto-rows: auto;
  }

  .prisma-grid.single .prisma-flow {
    grid-template-columns: 1fr;
  }

  .prisma-main-track,
  .prisma-side-arrow,
  .prisma-side,
  .prisma-side-stack,
  .prisma-side-placeholder {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .prisma-main-track {
    grid-template-rows: auto;
  }

  .prisma-down-arrow {
    display: none;
  }

  .prisma-side-arrow {
    width: 100%;
    height: 22px;
  }

  .prisma-side-arrow::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 7px;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(232, 117, 141, 0.18), rgba(232, 117, 141, 0.72));
  }

  .prisma-side-arrow::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
    border-top: 7px solid rgba(232, 117, 141, 0.76);
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-bottom: 0;
  }

  .search {
    justify-content: stretch;
  }

  .search input[type="search"] {
    width: 100%;
    min-width: 0;
  }
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(8, 12, 22, 0.9);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(154, 164, 191, 0.65), rgba(73, 214, 200, 0.55));
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 22, 0.9);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(173, 183, 204, 0.8), rgba(90, 229, 214, 0.7));
}
