﻿:root {
  --ink: #171a1f;
  --ink-soft: #2a3036;
  --muted: #656d70;
  --paper: #f5f1e9;
  --panel: #fffdf8;
  --panel-strong: #f3f7f1;
  --line: #d7cfbf;
  --line-strong: #b7aa98;
  --green: #0a6657;
  --blue: #294f74;
  --rust: #9a5448;
  --rose: #b95d79;
  --violet: #625985;
  --amber: #b9852e;
  --soft-green: #e3f0ea;
  --soft-blue: #e4edf5;
  --soft-rust: #f4e5de;
  --soft-rose: #f5e3e9;
  --shadow: 0 18px 42px rgba(48, 39, 29, 0.105);
  --shadow-soft: 0 10px 28px rgba(48, 39, 29, 0.075);
  --shadow-tight: 0 6px 16px rgba(23, 26, 31, 0.09);
  --site-max: 1560px;
}

/* Protected atlas downloads: one clear action and one explicit consent surface. */
body[data-page="slide"] .interactive-map-toolbar .atlas-download-button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 6px 10px;
  border-color: var(--portal-ink, #101820);
  border-radius: 6px;
  background: var(--portal-ink, #101820);
  color: #ffffff;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.atlas-download-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--portal-line, rgba(16, 24, 32, 0.14));
  border-radius: 8px;
  background: var(--portal-paper, #fffffc);
  color: var(--portal-ink, #101820);
  box-shadow: 0 24px 70px rgba(16, 24, 32, 0.24);
}

.atlas-download-dialog::backdrop {
  background: rgba(16, 24, 32, 0.56);
  backdrop-filter: blur(3px);
}

.atlas-download-dialog-card {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.atlas-download-dialog-head {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--portal-line, rgba(16, 24, 32, 0.11));
}

.atlas-download-dialog-head > span {
  color: var(--portal-teal, #006d6f);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.atlas-download-dialog-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.atlas-download-dialog-card > p,
.atlas-download-dialog-card ul {
  margin: 0;
  color: var(--portal-soft, #4d5a61);
  font-size: 13px;
  line-height: 1.65;
}

.atlas-download-dialog-card ul {
  display: grid;
  gap: 6px;
  padding-left: 20px;
}

.atlas-download-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid rgba(0, 109, 111, 0.26);
  border-radius: 7px;
  background: rgba(232, 241, 237, 0.72);
  color: var(--portal-ink, #101820);
  font-size: 13px;
  line-height: 1.5;
}

.atlas-download-consent input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--portal-teal, #006d6f);
}

.atlas-download-status {
  min-height: 20px;
  color: #8b3f35 !important;
  font-weight: 700;
}

.atlas-download-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.atlas-download-dialog-actions button {
  min-width: 118px;
}

.atlas-download-dialog-actions .secondary-button {
  border-color: var(--portal-line, rgba(16, 24, 32, 0.14));
  background: #ffffff;
  color: var(--portal-ink, #101820);
}

@media (max-width: 600px) {
  .atlas-download-dialog-card {
    gap: 13px;
    padding: 20px;
  }

  .atlas-download-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .atlas-download-dialog-actions button {
    min-width: 0;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.91), rgba(245, 241, 233, 0.98)),
    repeating-linear-gradient(90deg, rgba(10, 102, 87, 0.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(185, 93, 121, 0.025) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(135deg, rgba(98, 89, 133, 0.02) 0 1px, transparent 1px 28px);
  color: var(--ink);
  font-family: "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.42) 38% 39%, transparent 39% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 62%);
  mix-blend-mode: multiply;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 1px solid #111820;
  border-radius: 8px;
  background: linear-gradient(180deg, #202832, #111820);
  color: #fffefa;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

button:hover,
.button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(23, 32, 42, 0.18);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.app-shell {
  display: block;
  min-height: 100vh;
}

.app-shell > *,
main,
.panel,
.workspace > *,
.viewer-grid > *,
.upload-grid > *,
.asset-layout > *,
.evidence-summary > *,
.metric-grid > *,
.status-strip > *,
.readiness-grid > *,
.pipeline-steps > *,
.job-options > * {
  min-width: 0;
}

.side-nav {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  width: min(calc(100% - 32px), var(--site-max));
  margin: 12px auto 0;
  min-height: 76px;
  padding: 12px 14px 12px 16px;
  border-right: 0;
  border: 1px solid rgba(116, 101, 82, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(246, 243, 236, 0.93)),
    linear-gradient(100deg, rgba(10, 102, 87, 0.08), transparent 34%),
    linear-gradient(270deg, rgba(41, 79, 116, 0.06), transparent 32%);
  overflow: visible;
  box-shadow: 0 12px 30px rgba(48, 39, 29, 0.075);
  backdrop-filter: blur(12px);
}

.brand {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  width: fit-content;
  padding: 0;
  border-bottom: 0;
  color: inherit;
  text-decoration: none;
}

.brand::after {
  content: "H&E -> ST";
  position: static;
  margin-left: 2px;
  padding: 2px 7px;
  border: 1px solid rgba(189, 96, 122, 0.22);
  border-radius: 999px;
  background: var(--panel);
  color: var(--rose);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #171b20 0%, #171b20 44%, var(--green) 45%, var(--green) 68%, var(--rose) 69%);
  color: #fffefa;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(23, 27, 32, 0.18);
}

.brand strong,
.brand span {
  display: block;
}

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

.side-nav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
  margin: 0;
  padding: 4px;
  justify-self: end;
  min-width: 0;
  border: 1px solid rgba(183, 170, 152, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(246, 242, 234, 0.74));
}

.side-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 760;
  font-size: 14px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.side-nav a:hover,
.side-nav a.active {
  background: rgba(255, 253, 248, 0.86);
  border-color: rgba(10, 106, 91, 0.18);
  color: var(--green);
  box-shadow: none;
}

.side-nav a:hover {
  transform: translateY(-1px);
}

.side-nav a.active::before {
  content: none;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
}

main {
  width: min(calc(100% - 32px), var(--site-max));
  margin: 0 auto;
  padding: 20px 0 54px;
}

.top-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
  align-items: end;
  padding: 26px 0 18px;
}

.page-heading {
  padding: 28px 0 18px;
}

body[data-page="slide"] .slide-page-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.24fr) minmax(0, 0.76fr);
  gap: 4px 18px;
  align-items: end;
  padding: 6px 0 8px;
}

body[data-page="slide"] .slide-page-heading h1 {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1;
}

body[data-page="slide"] .slide-page-heading .kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

body[data-page="slide"] .slide-page-heading .lead {
  margin: 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.42;
}

.page-heading h1 {
  font-size: clamp(34px, 4.6vw, 56px);
}

.kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 960px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
  color: #12161c;
}

h1::selection,
h2::selection,
p::selection,
td::selection,
th::selection {
  background: rgba(185, 93, 121, 0.2);
}

.lead {
  max-width: 960px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.status-strip,
.metric-grid,
.filter-grid,
.viewer-grid,
.upload-grid,
.evidence-summary,
.asset-controls {
  display: grid;
  gap: 14px;
}

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

.status-strip div,
.metric-card,
.panel,
.evidence-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 253, 248, 0.94)),
    var(--panel);
  border: 1px solid rgba(116, 101, 82, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-strip div {
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.status-strip div::before,
.metric-card::before,
.evidence-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--green), var(--amber));
  opacity: 0.75;
}

.status-strip span,
.metric-card span,
.evidence-card span,
.asset-detail-copy span {
  color: var(--muted);
  font-size: 12px;
}

.status-strip b,
.metric-card b,
.evidence-card b {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.evidence-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 10px 0 18px;
}

.evidence-card {
  position: relative;
  padding: 16px;
  min-height: 128px;
  overflow: hidden;
}

.evidence-card p,
.metric-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.muted-card {
  background: var(--panel-strong);
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 22px;
}

.overview-lab-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin: 10px 0 18px;
}

.tech-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(116, 101, 82, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 253, 248, 0.95)),
    var(--panel);
  box-shadow: var(--shadow);
}

.tech-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 102, 87, 0.045) 0 1px, transparent 1px 42px),
    linear-gradient(0deg, rgba(185, 93, 121, 0.035) 0 1px, transparent 1px 38px);
  opacity: 0.62;
}

.tech-panel > * {
  position: relative;
  z-index: 1;
}

.tech-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 16px 8px;
}

.tech-panel-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.tech-panel-head b {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
  text-align: right;
}

.pipeline-panel {
  grid-row: span 2;
  min-height: 390px;
  background:
    linear-gradient(135deg, rgba(23, 26, 31, 0.97), rgba(31, 42, 45, 0.94)),
    #171a1f;
  color: #fffefa;
}

.pipeline-panel::before {
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.075) 0 1px, transparent 1px 48px),
    linear-gradient(0deg, rgba(255, 253, 248, 0.06) 0 1px, transparent 1px 40px);
  opacity: 0.72;
}

.pipeline-panel .tech-panel-head b {
  color: #fffefa;
}

.pipeline-panel .tech-panel-head span {
  color: #9ce1d0;
}

.pipeline-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(190px, 0.72fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: stretch;
  min-height: 430px;
  margin: 8px 16px 0;
  padding: 18px;
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(156, 225, 208, 0.1) 0 1px, transparent 1px 48px),
    linear-gradient(0deg, rgba(255, 253, 248, 0.055) 0 1px, transparent 1px 42px),
    linear-gradient(115deg, rgba(185, 93, 121, 0.12), transparent 36%),
    linear-gradient(295deg, rgba(10, 102, 87, 0.2), transparent 48%),
    rgba(255, 253, 248, 0.035);
}

.pipeline-visual::before,
.pipeline-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(156, 225, 208, 0.95), rgba(243, 182, 198, 0.92), transparent);
  box-shadow: 0 0 18px rgba(156, 225, 208, 0.28);
  pointer-events: none;
}

.pipeline-visual::before {
  left: 27%;
  right: 56%;
}

.pipeline-visual::after {
  left: 56%;
  right: 27%;
}

.workflow-pane,
.workflow-engine {
  position: relative;
  z-index: 1;
}

.workflow-pane {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 12px;
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(236, 229, 218, 0.9)),
    var(--panel);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.workflow-pane-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}

.workflow-pane-head span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.workflow-pane-head b {
  color: var(--ink);
  font-size: 17px;
}

.workflow-image {
  position: relative;
  flex: 1;
  min-height: 250px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(116, 101, 82, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(10, 102, 87, 0.045) 0 1px, transparent 1px 22px),
    linear-gradient(0deg, rgba(185, 93, 121, 0.035) 0 1px, transparent 1px 20px),
    #f8f5ee;
}

.workflow-image img {
  width: 100%;
  height: 100%;
  display: block;
}

.he-preview img {
  object-fit: cover;
  object-position: center 60%;
  filter: saturate(1.04) contrast(1.03);
}

.st-preview img {
  object-fit: cover;
  object-position: center 58%;
  background: #fbfaf6;
  filter: saturate(1.12) contrast(1.04);
}

.workflow-output .workflow-image {
  background:
    linear-gradient(90deg, rgba(10, 102, 87, 0.06) 0 1px, transparent 1px 18px),
    linear-gradient(0deg, rgba(185, 93, 121, 0.05) 0 1px, transparent 1px 18px),
    #fbfaf6;
}

.workflow-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.workflow-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.workflow-pane > small {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.workflow-engine {
  align-self: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  width: 100%;
  padding: 20px 10px;
}

.engine-ring {
  position: relative;
  width: min(168px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(156, 225, 208, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(23, 26, 31, 0.95) 0 56%, transparent 57%),
    conic-gradient(from 210deg, #9ce1d0, #f3b6c6, #c79a45, #9ce1d0);
  box-shadow:
    0 0 0 8px rgba(255, 253, 248, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.26);
  text-align: center;
}

.engine-ring span,
.engine-ring b,
.engine-ring small {
  position: relative;
  z-index: 1;
  display: block;
}

.engine-ring span {
  position: absolute;
  top: 14px;
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: #9ce1d0;
}

.engine-ring b {
  color: #fffefa;
  font-size: 18px;
}

.engine-ring small {
  margin-top: 6px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 11px;
  text-transform: uppercase;
}

.engine-metrics {
  display: grid;
  gap: 7px;
  width: 100%;
}

.engine-metrics i {
  display: block;
  padding: 7px 9px;
  border: 1px solid rgba(255, 253, 248, 0.15);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.07);
  color: rgba(255, 253, 248, 0.8);
  font-size: 12px;
  font-style: normal;
  text-align: center;
}

.pipeline-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
}

.pipeline-foot span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.06);
  color: rgba(255, 253, 248, 0.76);
  font-size: 12px;
}

.cohort-panel,
.availability-panel {
  min-height: 190px;
}

.cohort-band-list {
  display: grid;
  gap: 12px;
  padding: 4px 16px 16px;
}

.cohort-band {
  display: grid;
  gap: 6px;
}

.cohort-band > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.cohort-band strong {
  color: var(--ink);
}

.cohort-band span,
.cohort-band small {
  color: var(--muted);
  font-size: 12px;
}

.band-stack {
  position: relative;
  height: 28px;
  border: 1px solid rgba(183, 170, 152, 0.62);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.68);
  overflow: hidden;
}

.band-stack i {
  position: absolute;
  left: 0;
  height: 8px;
  border-radius: 999px;
}

.band-slide {
  top: 4px;
  background: linear-gradient(90deg, var(--green), rgba(10, 102, 87, 0.34));
}

.band-tile {
  top: 10px;
  background: linear-gradient(90deg, var(--blue), rgba(41, 79, 116, 0.26));
}

.band-he {
  top: 16px;
  background: linear-gradient(90deg, var(--rose), rgba(185, 93, 121, 0.22));
}

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

.availability-cell {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 10px 8px;
  border: 1px solid rgba(183, 170, 152, 0.6);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.7);
}

.lab-ring {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(var(--ring-color) 0 var(--ring), rgba(215, 207, 191, 0.58) var(--ring) 360deg);
}

.lab-ring::before {
  content: "";
  position: absolute;
}

.lab-ring b {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fffdf8;
  color: var(--ink);
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(183, 170, 152, 0.52);
}

.availability-cell span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.availability-cell small {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.tone-green {
  --ring-color: var(--green);
}

.tone-blue {
  --ring-color: var(--blue);
}

.tone-rose {
  --ring-color: var(--rose);
}

.tone-amber {
  --ring-color: var(--amber);
}

.feature-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 16px 16px;
  border: 1px solid rgba(183, 170, 152, 0.6);
  border-radius: 8px;
  overflow: hidden;
}

.feature-ribbon span {
  display: grid;
  gap: 2px;
  padding: 9px 8px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.feature-ribbon b {
  color: var(--ink);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.survival-spotlight {
  margin: 0 0 18px;
}

.survival-card {
  display: grid;
  grid-template-columns: minmax(420px, 0.72fr) minmax(420px, 0.88fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(116, 101, 82, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(246, 242, 234, 0.96)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.survival-copy {
  padding: 18px;
  border: 1px solid rgba(255, 253, 248, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 26, 31, 0.98), rgba(34, 43, 46, 0.96));
  color: rgba(255, 253, 248, 0.82);
}

.survival-copy span {
  color: #9ce1d0;
  font-size: 12px;
  font-weight: 800;
}

.survival-copy h2 {
  margin: 8px 0 10px;
  max-width: 740px;
  color: #fffefa;
  font-size: clamp(25px, 2.05vw, 34px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.survival-copy p {
  max-width: 720px;
  margin: 0 0 12px;
  color: rgba(255, 253, 248, 0.72);
  line-height: 1.65;
}

.survival-method-grid {
  display: grid;
  gap: 0;
  margin: 12px 0;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.045);
  overflow: hidden;
}

.survival-method-grid .kv {
  grid-template-columns: minmax(92px, 0.2fr) minmax(0, 0.8fr);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.1);
}

.survival-method-grid .kv:last-child {
  border-bottom: 0;
}

.survival-method-grid .kv span {
  color: rgba(156, 225, 208, 0.9);
}

.survival-method-grid .kv div {
  color: rgba(255, 253, 248, 0.78);
  line-height: 1.55;
}

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

.ghost-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.06);
  color: #fffefa;
  text-decoration: none;
  font-weight: 700;
}

.ghost-link:hover {
  background: rgba(255, 253, 248, 0.12);
  transform: translateY(-1px);
}

.survival-figure {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 18px;
  border: 1px solid rgba(183, 170, 152, 0.64);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(246, 242, 234, 0.92));
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.survival-figure img {
  display: block;
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(183, 170, 152, 0.58);
}

.metric-card {
  position: relative;
  padding: 18px;
  min-height: 168px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.metric-card:hover {
  border-color: rgba(10, 106, 91, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(47, 38, 30, 0.13);
}

.metric-card h3 {
  margin: 8px 0 12px;
  font-size: 20px;
}

.coverage-bar {
  height: 10px;
  background: #e9e1d4;
  border: 1px solid rgba(183, 170, 152, 0.4);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}

.coverage-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--green), var(--amber));
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 0.58fr);
  gap: 18px;
  align-items: start;
}

.wide-workspace {
  grid-template-columns: minmax(300px, 0.34fr) minmax(0, 0.66fr);
}

body[data-page="slides"] .slides-page-heading {
  display: grid;
  grid-template-columns: minmax(310px, 0.36fr) minmax(0, 0.64fr);
  gap: 4px 22px;
  align-items: end;
  padding: 8px 0 12px;
}

body[data-page="slides"] .slides-page-heading h1 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1;
  white-space: nowrap;
}

body[data-page="slides"] .slides-page-heading .kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

body[data-page="slides"] .slides-page-heading .lead {
  margin: 0;
  max-width: 880px;
  line-height: 1.55;
}

body[data-page="slides"] .slides-index-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

body[data-page="slides"] .filter-strip {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 13px 14px;
  margin-bottom: 0;
  border-color: rgba(183, 170, 152, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(247, 243, 234, 0.94)),
    repeating-linear-gradient(90deg, rgba(10, 102, 87, 0.032) 0 1px, transparent 1px 38px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(23, 32, 42, 0.1);
}

body[data-page="slides"] .filter-strip-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

body[data-page="slides"] .filter-strip-head .panel-title {
  margin: 0;
}

body[data-page="slides"] .filter-strip-head .panel-title h2 {
  white-space: nowrap;
}

body[data-page="slides"] .filter-strip .filter-grid {
  display: grid;
  grid-template-columns: 0.65fr 0.75fr 0.95fr 0.75fr 0.75fr 1.25fr 0.95fr 0.62fr;
  gap: 9px;
  align-items: end;
}

body[data-page="slides"] .filter-strip .filter-grid label {
  min-width: 0;
}

body[data-page="slides"] .filter-strip label {
  gap: 4px;
  font-size: 12px;
  font-weight: 750;
  color: #43504b;
}

body[data-page="slides"] .filter-strip select,
body[data-page="slides"] .filter-strip input[type="search"] {
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
}

body[data-page="slides"] .filter-strip .toolbar {
  flex-wrap: nowrap;
  margin-top: 0;
}

body[data-page="slides"] .filter-strip .toolbar button {
  min-height: 36px;
  padding: 7px 10px;
  white-space: nowrap;
}

body[data-page="slides"] .slide-index-panel {
  margin-bottom: 0;
}

body[data-page="slides"] .table-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 8px;
}

body[data-page="slides"] .table-panel-head .panel-title {
  margin-bottom: 0;
}

body[data-page="slides"] .slide-stats {
  justify-content: flex-end;
  margin-bottom: 0;
}

body[data-page="slides"] .pagination-bar {
  justify-content: flex-start;
  margin-bottom: 10px;
}

body[data-page="slides"] .table-wrap {
  max-height: calc(100vh - 310px);
  min-height: 420px;
}

body[data-page="slides"] table {
  min-width: 1210px;
}

body[data-page="slides"] th,
body[data-page="slides"] td {
  white-space: nowrap;
}

body[data-page="slides"] td:nth-child(3),
body[data-page="slides"] td:nth-child(6) {
  white-space: normal;
}

.panel {
  padding: 18px;
  margin-bottom: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.compact-title {
  margin-bottom: 8px;
}

.panel-title span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f4e4dd, #e7f2ec);
  color: var(--rust);
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
  border: 1px solid rgba(169, 80, 67, 0.12);
}

.panel-title h2 {
  margin: 0;
  font-size: 22px;
  color: #151a20;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

select,
input[type="search"] {
  width: 100%;
  border: 1px solid rgba(183, 170, 152, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fffefa, #fbf7ef);
  color: var(--ink);
  padding: 10px 11px;
  min-height: 42px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

select:focus,
input[type="search"]:focus {
  outline: 2px solid rgba(10, 102, 87, 0.17);
  border-color: var(--green);
  background: #fffefa;
  box-shadow: 0 0 0 4px rgba(10, 102, 87, 0.07);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.toolbar button:last-child {
  background: linear-gradient(180deg, #345d84, var(--blue));
  border-color: var(--blue);
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pagination-bar span {
  color: var(--muted);
  font-size: 13px;
}

body[data-page="slides"] #pageStatus {
  display: inline-flex;
  justify-content: center;
  width: 278px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pagination-bar button {
  padding: 8px 11px;
}

.slide-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.slide-stats span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #edf7f1, var(--soft-green));
  color: var(--green);
  font-size: 12px;
  font-weight: 720;
  border: 1px solid rgba(10, 102, 87, 0.13);
}

.map-ready {
  background: linear-gradient(180deg, #edf4fa, var(--soft-blue));
  color: var(--blue);
  border-color: rgba(41, 79, 116, 0.18);
}

.map-missing {
  background: linear-gradient(180deg, #fbf2ea, #f4eadf);
  color: var(--rust);
  border-color: rgba(154, 84, 72, 0.18);
}

.he-ready {
  background: linear-gradient(180deg, #edf6ec, #e2efe1);
  color: var(--green);
  border: 1px solid rgba(13, 107, 87, 0.18);
}

.he-missing {
  background: linear-gradient(180deg, #fff5ef, #fbebe4);
  color: var(--rust);
  border: 1px solid rgba(154, 84, 72, 0.16);
}

.slide-stats b {
  margin-left: 4px;
}

.table-wrap {
  overflow: auto;
  max-height: 540px;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(183, 170, 152, 0.7);
  border-radius: 8px;
  background: #fffefa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
  background: #fffefa;
}

th,
td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(215, 207, 191, 0.78);
  vertical-align: top;
  font-size: 13px;
}

td a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

td a:hover {
  text-decoration: underline;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, #f5f3eb, #e9eee6);
  color: #394840;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(183, 170, 152, 0.8);
}

tr {
  cursor: pointer;
}

tr:hover,
tr.selected {
  background: linear-gradient(90deg, rgba(228, 237, 245, 0.92), rgba(245, 227, 233, 0.4));
}

.viewer-grid,
.upload-grid {
  grid-template-columns: minmax(0, 0.54fr) minmax(320px, 0.46fr);
}

body[data-page="slide"] .viewer-grid {
  grid-template-columns: minmax(560px, 1fr) minmax(280px, 340px);
  align-items: start;
}

body[data-page="slide"] .selected-card {
  padding: 14px;
}

body[data-page="slide"] .selected-card .panel-title {
  margin-bottom: 8px;
}

body[data-page="slide"] .state-card {
  position: sticky;
  top: 18px;
}

.detail-header {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-summary-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(183, 170, 152, 0.6);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fffefa, #f6f7f0);
  box-shadow: var(--shadow-tight);
}

.detail-summary-strip h2 {
  margin: 4px 0 0;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-summary-strip p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-header h3 {
  margin: 0;
  font-size: 20px;
  word-break: break-word;
}

.detail-header h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.detail-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.back-link {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.back-link:hover {
  text-decoration: underline;
}

.detail-selectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  position: sticky;
  top: 12px;
  z-index: 5;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid rgba(183, 170, 152, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(246, 242, 234, 0.95));
  box-shadow: 0 11px 28px rgba(23, 32, 42, 0.1);
  backdrop-filter: blur(8px);
}

.detail-selectors label {
  position: relative;
  gap: 3px;
  color: #405049;
  font-size: 12px;
  font-weight: 700;
}

.detail-selectors select,
.detail-selectors input[type="range"] {
  width: 100%;
  min-height: 32px;
}

.muted-control {
  opacity: 0.54;
}

.detail-selectors input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.detail-selectors label[data-value]::after {
  content: attr(data-value);
  position: absolute;
  top: 0;
  right: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: linear-gradient(180deg, #345d84, var(--blue));
  color: #fffefa;
  text-decoration: none;
}

.kv {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 0.68fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed #dfe3da;
  font-size: 13px;
}

.kv span {
  color: var(--muted);
}

code {
  display: inline-block;
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef1ec;
  color: #324035;
  overflow-wrap: anywhere;
}

.viewer-placeholder,
.backend-banner {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(10, 102, 87, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #edf7f1, var(--soft-green));
  color: #285246;
}

.viewer-placeholder p {
  margin: 6px 0 0;
  line-height: 1.6;
}

.spatial-result-panel {
  margin-top: 16px;
  border: 1px solid rgba(183, 170, 152, 0.64);
  border-radius: 8px;
  background: #fbfdf9;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.interactive-map-panel {
  margin-top: 10px;
  border: 1px solid rgba(183, 170, 152, 0.64);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fffefa, #f7faf4);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.spatial-result-copy {
  padding: 0;
}

.spatial-result-copy b {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.spatial-result-copy p {
  margin: 7px 0;
  color: var(--muted);
  line-height: 1.65;
}

.spatial-map-link {
  display: block;
  padding: 10px;
  background: #eef3ee;
}

.spatial-map-link img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
}

.interactive-map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(183, 170, 152, 0.62);
  background:
    linear-gradient(90deg, rgba(10, 102, 87, 0.1), rgba(185, 93, 121, 0.07)),
    #f7f6ef;
}

.interactive-map-toolbar div {
  display: grid;
  gap: 3px;
}

.interactive-map-toolbar span {
  font-weight: 700;
  color: var(--green);
}

.interactive-map-toolbar small {
  color: var(--muted);
  font-size: 12px;
}

.interactive-map-toolbar a {
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
}

.interactive-map-toolbar a:hover {
  text-decoration: underline;
}

.map-canvas-frame {
  position: relative;
  padding: 10px 12px 0;
  background:
    linear-gradient(180deg, #fffefa, #faf7f0);
}

#spatialCanvas {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: #fffefa;
  border: 1px solid rgba(183, 170, 152, 0.7);
  border-bottom: 1px solid rgba(183, 170, 152, 0.7);
  border-radius: 8px 8px 0 0;
}

.map-caption {
  padding: 10px 14px 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.map-tooltip {
  position: fixed;
  z-index: 1000;
  min-width: 190px;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 32, 42, 0.2);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 16px 34px rgba(23, 32, 42, 0.2);
  pointer-events: none;
  color: var(--ink);
  font-size: 12px;
}

.map-tooltip b,
.map-tooltip span {
  display: block;
}

.map-tooltip b {
  margin-bottom: 5px;
}

.map-tooltip span {
  color: var(--muted);
  line-height: 1.45;
}

.metadata-panel,
.map-method-panel {
  margin-top: 12px;
  border: 1px solid rgba(183, 170, 152, 0.7);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffefa, #fbf8f1);
  box-shadow: var(--shadow-tight);
}

.metadata-panel summary,
.map-method-panel summary {
  cursor: pointer;
  padding: 11px 13px;
  color: var(--ink);
  font-weight: 800;
}

.metadata-grid,
.map-method-panel .spatial-result-copy {
  padding: 0 13px 12px;
}

.spatial-missing-box {
  border-color: #e0c6b9;
  background: #fbf1eb;
  color: #6b3c2c;
}

.state-list {
  display: grid;
  gap: 10px;
  max-height: 580px;
  overflow-y: auto;
  overflow-x: hidden;
}

.state-item {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(183, 170, 152, 0.62);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffefa, #fbf8f1);
  box-shadow: 0 8px 18px rgba(48, 39, 29, 0.045);
}

.state-item b,
.state-item small,
.state-item em {
  display: block;
}

.state-item small {
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.state-item em {
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft-rust);
  color: var(--rust);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.asset-controls {
  grid-template-columns: repeat(2, minmax(0, 240px));
  margin-bottom: 14px;
}

.asset-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
  gap: 16px;
  align-items: start;
}

.asset-gallery {
  display: grid;
  gap: 10px;
  max-height: 720px;
  overflow: auto;
}

.asset-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(183, 170, 152, 0.68);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffefa, #fbf8f1);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.asset-card:hover,
.asset-card.selected {
  border-color: var(--green);
  background: linear-gradient(180deg, #eef7f1, var(--soft-green));
  transform: translateY(-1px);
  box-shadow: var(--shadow-tight);
}

.asset-card img {
  width: 96px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}

.asset-card b,
.asset-card small {
  display: block;
}

.asset-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.asset-detail {
  min-height: 460px;
  border: 1px solid rgba(183, 170, 152, 0.68);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffefa, #fbf8f1);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.asset-detail-figure {
  background:
    repeating-linear-gradient(90deg, rgba(10, 102, 87, 0.035) 0 1px, transparent 1px 42px),
    #f3f5f1;
  border-bottom: 1px solid rgba(183, 170, 152, 0.68);
  padding: 10px;
}

.asset-detail-figure img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 6px;
}

.asset-detail-copy {
  padding: 16px;
}

.asset-detail-copy h3 {
  margin: 4px 0 12px;
  font-size: 22px;
}

.asset-detail-copy h2 {
  margin: 4px 0 12px;
  font-size: 24px;
}

body[data-page="evidence"] .evidence-heading {
  grid-template-columns: minmax(0, 1fr);
}

.manuscript-figure-shell {
  display: grid;
  gap: 16px;
}

.figure-atlas-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.52fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(116, 101, 82, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(10, 102, 87, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 244, 237, 0.94));
  box-shadow: 0 12px 30px rgba(48, 39, 29, 0.06);
}

.figure-atlas-copy span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.figure-atlas-copy h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 2.4vw, 42px);
  line-height: 1.12;
}

.figure-atlas-copy p {
  max-width: 980px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

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

.figure-atlas-stats div {
  padding: 14px;
  border: 1px solid rgba(183, 170, 152, 0.44);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.figure-atlas-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.figure-atlas-stats b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.figure-atlas-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 280px));
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(183, 170, 152, 0.32);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.68);
}

.figure-atlas-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.3fr) minmax(0, 0.7fr);
  gap: 16px;
  align-items: start;
}

.figure-rail {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 160px);
  overflow: auto;
  position: sticky;
  top: 16px;
  padding-right: 4px;
}

.figure-rail-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(183, 170, 152, 0.54);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(250, 247, 241, 0.9));
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.figure-rail-card:hover,
.figure-rail-card.selected {
  transform: translateY(-1px);
  border-color: rgba(10, 102, 87, 0.44);
  background:
    linear-gradient(180deg, rgba(238, 247, 241, 0.98), rgba(255, 253, 248, 0.96));
  box-shadow: 0 10px 24px rgba(48, 39, 29, 0.08);
}

.figure-rail-thumb {
  height: 86px;
  border: 1px solid rgba(183, 170, 152, 0.42);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.figure-rail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.figure-rail-copy {
  display: grid;
  gap: 4px;
  align-content: start;
}

.figure-rail-copy span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.figure-rail-copy b {
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.figure-rail-copy small {
  color: var(--muted);
  line-height: 1.42;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.figure-detail {
  border: 1px solid rgba(116, 101, 82, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 244, 237, 0.94));
  box-shadow: 0 14px 34px rgba(48, 39, 29, 0.07);
  overflow: hidden;
}

.figure-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(183, 170, 152, 0.34);
}

.figure-detail-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.figure-detail-head h2 {
  margin: 7px 0 0;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.figure-open-link {
  padding: 9px 12px;
  border: 1px solid rgba(10, 102, 87, 0.28);
  border-radius: 8px;
  background: rgba(227, 240, 234, 0.74);
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.figure-detail-stage {
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(10, 102, 87, 0.03) 0 1px, transparent 1px 34px),
    linear-gradient(0deg, rgba(185, 93, 121, 0.024) 0 1px, transparent 1px 30px),
    #fffefa;
}

.figure-detail-stage img {
  display: block;
  width: 100%;
  max-height: 860px;
  object-fit: contain;
  border: 1px solid rgba(183, 170, 152, 0.42);
  border-radius: 6px;
  background: #fff;
}

.figure-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0 20px 20px;
}

.figure-detail-grid .kv {
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid rgba(183, 170, 152, 0.34);
}

.figure-detail-grid .kv:nth-child(odd) {
  padding-right: 18px;
}

.figure-detail-grid .kv:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid rgba(183, 170, 152, 0.26);
}

.interactive-evidence-shell {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.evidence-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(183, 170, 152, 0.34);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.evidence-jump-nav a {
  padding: 7px 10px;
  border: 1px solid rgba(10, 102, 87, 0.18);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  background: rgba(236, 246, 240, 0.62);
}

.interactive-evidence {
  display: grid;
  gap: 16px;
}

.evidence-module {
  padding: 16px;
  border: 1px solid rgba(116, 101, 82, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(246, 243, 236, 0.94)),
    #fffdf8;
  box-shadow: 0 12px 28px rgba(48, 39, 29, 0.055);
}

.evidence-module-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 16px;
  align-items: start;
}

.evidence-module-head span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-module-head h2 {
  margin: 6px 0 8px;
  font-size: 24px;
  line-height: 1.18;
}

.evidence-module-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.evidence-boundary {
  padding: 12px;
  border: 1px solid rgba(185, 93, 121, 0.22);
  border-radius: 8px;
  background: rgba(255, 247, 247, 0.76);
}

.evidence-boundary b,
.evidence-boundary span {
  display: block;
}

.evidence-boundary b {
  margin-bottom: 5px;
  color: #934b5f;
  font-size: 12px;
}

.evidence-boundary span {
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.evidence-claim {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  background: rgba(236, 246, 240, 0.72);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 750;
}

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

.redrawn-chart-card {
  min-width: 0;
  border: 1px solid rgba(183, 170, 152, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 252, 0.86);
  overflow: hidden;
}

.redrawn-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(183, 170, 152, 0.28);
}

.redrawn-chart-head span {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.redrawn-chart-head b {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  text-align: right;
}

.mini-chart {
  display: block;
  width: 100%;
  height: auto;
  padding: 6px;
  box-sizing: border-box;
  background:
    linear-gradient(90deg, rgba(10, 102, 87, 0.035) 0 1px, transparent 1px 38px),
    linear-gradient(0deg, rgba(185, 93, 121, 0.026) 0 1px, transparent 1px 34px),
    #fffefa;
}

.chart-axis,
.chart-zero {
  stroke: rgba(89, 77, 63, 0.35);
  stroke-width: 1.4;
}

.chart-zero {
  stroke-dasharray: 4 4;
}

.chart-label {
  fill: #41382f;
  font-size: 12px;
  font-weight: 760;
}

.chart-value,
.chart-legend text {
  fill: #6e6256;
  font-size: 11px;
  font-weight: 760;
}

.chart-empty {
  padding: 18px;
  border: 1px dashed rgba(183, 170, 152, 0.54);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.76);
}

.evidence-mini-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.evidence-mini-cards article {
  padding: 10px;
  border: 1px solid rgba(183, 170, 152, 0.32);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.evidence-mini-cards span,
.evidence-mini-cards small,
.evidence-mini-cards em {
  display: block;
}

.evidence-mini-cards span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.evidence-mini-cards b {
  display: block;
  margin: 4px 0;
  color: var(--ink);
}

.evidence-mini-cards small {
  color: var(--muted);
  line-height: 1.35;
}

.evidence-mini-cards em {
  margin-top: 6px;
  color: #934b5f;
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
}

.drop-zone {
  min-height: 164px;
  border: 2px dashed rgba(10, 102, 87, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fbfdf8, #eef7f1);
  place-items: center;
  text-align: center;
  padding: 24px;
  margin-top: 12px;
}

.drop-zone input {
  display: none;
}

.drop-zone strong {
  font-size: 18px;
  color: var(--ink);
}

.drop-zone span {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.6;
}

.job-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.job-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
}

.sampling-panel {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(23, 46, 44, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19, 97, 89, 0.08), rgba(176, 123, 58, 0.06)),
    rgba(255, 253, 248, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.sampling-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.sampling-panel-head span {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sampling-panel-head b {
  display: block;
  color: var(--ink);
  font-size: 17px;
}

.sampling-panel-head small {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.55;
  text-align: right;
}

.density-mode-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.density-mode-row label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(23, 46, 44, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.density-mode-row label:has(input:checked) {
  border-color: rgba(10, 102, 87, 0.58);
  background: rgba(226, 243, 235, 0.88);
  color: #0a6657;
}

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

.density-controls label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.density-controls span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.density-controls b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.density-controls input[type="range"] {
  width: 100%;
  accent-color: #0a6657;
}

.density-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

pre {
  min-height: 308px;
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #17202a;
  color: #eaf1e8;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.selected-empty,
.error-panel,
.index-mode-note {
  color: var(--muted);
  line-height: 1.7;
}

.upload-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: end;
}

.backend-status-card {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(116, 101, 82, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 253, 248, 0.95)),
    var(--panel);
  box-shadow: var(--shadow-soft);
}

.backend-status-card b,
.job-status-card b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.backend-status-card small,
.job-status-card span {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(185, 133, 46, 0.14);
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(10, 102, 87, 0.14);
}

.status-dot.offline {
  background: var(--rust);
  box-shadow: 0 0 0 5px rgba(154, 84, 72, 0.14);
}

.prediction-workbench {
  position: relative;
  overflow: hidden;
}

.prediction-workbench::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(10, 102, 87, 0.16);
  background:
    repeating-linear-gradient(90deg, rgba(10, 102, 87, 0.10) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(0deg, rgba(185, 93, 121, 0.08) 0 1px, transparent 1px 12px);
  opacity: 0.75;
  pointer-events: none;
}

.prediction-workbench > * {
  position: relative;
  z-index: 1;
}

.drop-zone {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.drop-zone.drag-active {
  border-color: var(--rose);
  background:
    linear-gradient(180deg, #fff9fb, #eef7f1);
  transform: translateY(-1px);
}

.drop-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto 4px;
  border: 1px solid rgba(10, 102, 87, 0.28);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--green);
  font-size: 26px;
  line-height: 1;
}

.selected-file-panel {
  margin-top: 14px;
  padding-top: 4px;
}

.file-queue {
  display: grid;
  gap: 8px;
  max-height: 210px;
  overflow: auto;
}

.file-queue.empty {
  padding: 12px 0;
  color: var(--muted);
  line-height: 1.6;
}

.file-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #dfe3da;
}

.file-row > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 79, 116, 0.22);
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.file-row b {
  display: block;
  overflow-wrap: anywhere;
}

.file-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

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

.path-job-panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(41, 79, 116, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(228, 237, 245, 0.72), rgba(255, 253, 248, 0.82));
}

.path-job-panel p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}

.path-job-panel textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 88px;
  resize: vertical;
  margin-bottom: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(116, 101, 82, 0.28);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.path-job-panel textarea:focus {
  outline: 2px solid rgba(10, 102, 87, 0.22);
  border-color: rgba(10, 102, 87, 0.38);
}

.ghost-button {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(244, 229, 222, 0.86));
  color: var(--rust);
  border-color: rgba(154, 84, 72, 0.24);
}

.prediction-status-panel {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 14px;
}

.progress-hero {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(41, 79, 116, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 239, 238, 0.95), rgba(255, 253, 248, 0.96) 52%, rgba(245, 227, 233, 0.64)),
    var(--panel);
  box-shadow: var(--shadow-soft);
}

.progress-hero[data-tone="running"] {
  border-color: rgba(41, 79, 116, 0.30);
  background:
    linear-gradient(135deg, rgba(228, 237, 245, 0.96), rgba(255, 253, 248, 0.95) 58%, rgba(227, 240, 234, 0.72));
}

.progress-hero[data-tone="success"] {
  border-color: rgba(10, 102, 87, 0.30);
  background:
    linear-gradient(135deg, rgba(227, 240, 234, 0.98), rgba(255, 253, 248, 0.95) 62%, rgba(233, 243, 235, 0.86));
}

.progress-hero[data-tone="warning"] {
  border-color: rgba(185, 133, 46, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 245, 221, 0.98), rgba(255, 253, 248, 0.95) 62%, rgba(244, 229, 222, 0.72));
}

.progress-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.progress-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.progress-hero-top b {
  display: block;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.1;
}

.progress-hero-top strong {
  min-width: 64px;
  text-align: right;
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.job-progress-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 42, 0.10);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.90), rgba(232, 226, 216, 0.82));
  box-shadow: inset 0 1px 3px rgba(23, 32, 42, 0.12);
}

.job-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.28) 0 10px, transparent 10px 20px),
    linear-gradient(90deg, var(--green), var(--blue) 58%, var(--rose));
  transition: width 360ms ease;
}

.progress-hero[data-tone="running"] .job-progress-track i {
  background-size: 42px 42px, auto;
  animation: progress-stripes 1.2s linear infinite;
}

@keyframes progress-stripes {
  to {
    background-position: 42px 0, 0 0;
  }
}

.job-progress-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.job-progress-steps div {
  min-width: 0;
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 8px 4px;
  border: 1px solid rgba(116, 101, 82, 0.15);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.62);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.job-progress-steps i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(116, 101, 82, 0.18);
  border-radius: 999px;
  background: #fffdf8;
  color: inherit;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.job-progress-steps .done {
  border-color: rgba(10, 102, 87, 0.18);
  background: rgba(227, 240, 234, 0.72);
  color: var(--green);
}

.job-progress-steps .current {
  border-color: rgba(41, 79, 116, 0.28);
  background: rgba(228, 237, 245, 0.84);
  color: var(--blue);
}

.job-progress-steps .current i {
  background: var(--blue);
  color: #fffefa;
}

.job-status-card {
  padding: 14px;
  border: 1px solid rgba(116, 101, 82, 0.20);
  border-radius: 8px;
  background: #f8f4ec;
}

.job-status-card.running {
  border-color: rgba(41, 79, 116, 0.25);
  background: var(--soft-blue);
}

.job-status-card.success {
  border-color: rgba(10, 102, 87, 0.25);
  background: var(--soft-green);
}

.job-status-card.warning {
  border-color: rgba(185, 133, 46, 0.32);
  background: #fff5dd;
}

.job-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.job-technical-details {
  border: 1px solid rgba(116, 101, 82, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.job-technical-details summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.job-technical-details[open] summary {
  border-bottom: 1px solid rgba(116, 101, 82, 0.14);
  color: var(--ink);
}

.job-technical-details pre {
  margin: 0;
  max-height: 420px;
  border: 0;
  border-radius: 0 0 8px 8px;
}

.upload-result-browser {
  margin-top: 0;
  overflow: hidden;
}

.result-browser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.result-browser-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.result-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed rgba(116, 101, 82, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(228, 237, 245, 0.72), rgba(255, 253, 248, 0.92));
  color: var(--muted);
  line-height: 1.65;
}

.result-empty b {
  color: var(--ink);
  font-size: 17px;
}

.result-browser-content {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.result-side {
  display: grid;
  gap: 14px;
}

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

.result-summary-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(116, 101, 82, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(246, 242, 234, 0.82));
}

.result-summary-card span,
.feature-picker span,
.spot-size-control span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-summary-card b {
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.feature-picker,
.spot-size-control {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(41, 79, 116, 0.16);
  border-radius: 8px;
  background: rgba(228, 237, 245, 0.50);
}

.feature-picker select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(41, 79, 116, 0.28);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

.spot-size-control input {
  width: 100%;
  accent-color: var(--green);
}

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

.result-chip-row button {
  padding: 7px 10px;
  border: 1px solid rgba(10, 102, 87, 0.20);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.result-chip-row button.active {
  background: var(--green);
  color: #fffdf8;
  box-shadow: 0 8px 18px rgba(10, 102, 87, 0.18);
}

.result-scale-note {
  display: grid;
  gap: 7px;
  padding: 12px;
  border-left: 3px solid var(--amber);
  background: #fff5dd;
  color: var(--muted);
  line-height: 1.58;
  font-size: 13px;
}

.result-scale-note b {
  color: #7a5219;
}

.result-quality-warning {
  padding: 9px 10px;
  border: 1px solid rgba(154, 84, 72, 0.28);
  border-radius: 8px;
  background: rgba(244, 229, 222, 0.92);
  color: var(--rust);
  font-weight: 800;
}

.result-stage-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(20, 31, 38, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 24, 31, 0.96), rgba(10, 15, 20, 0.98));
  box-shadow: 0 22px 48px rgba(18, 24, 31, 0.20);
}

.result-stage-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.result-stage-toolbar button {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #dce7df;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.result-stage-toolbar button.active {
  border-color: rgba(156, 225, 208, 0.52);
  background: rgba(10, 102, 87, 0.78);
  color: #fffdf8;
}

.upload-result-canvas-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #0d1419;
}

#uploadResultCanvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.result-caption {
  margin: 10px 2px 0;
  color: #b7c4cc;
  line-height: 1.62;
  font-size: 13px;
}

.result-image-stage {
  margin: 0;
}

.result-image-stage img {
  display: block;
  width: 100%;
  max-height: 780px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #fffdf8;
}

.result-image-stage figcaption {
  margin-top: 10px;
  color: #b7c4cc;
  line-height: 1.55;
  font-size: 13px;
}

.job-history {
  margin-top: 0;
}

.job-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.job-history-list {
  display: grid;
  gap: 10px;
}

.job-history-row,
.job-history-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(116, 101, 82, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(246, 242, 234, 0.86));
}

.job-history-empty {
  grid-template-columns: 1fr;
  color: var(--muted);
  line-height: 1.65;
}

.job-history-empty.warning {
  border-color: rgba(185, 133, 46, 0.28);
  background: #fff5dd;
}

.job-history-meta {
  min-width: 0;
}

.job-history-meta b,
.job-history-meta small,
.job-history-meta p {
  display: block;
  overflow-wrap: anywhere;
}

.job-history-meta b {
  margin: 5px 0 4px;
  color: var(--ink);
}

.job-history-meta small,
.job-history-meta p {
  color: var(--muted);
}

.job-history-meta p {
  margin: 4px 0 0;
  line-height: 1.45;
}

.job-mode {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid rgba(10, 102, 87, 0.18);
  border-radius: 999px;
  background: rgba(227, 240, 234, 0.75);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.job-history-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.job-history-actions .report-link,
.job-links .report-link {
  border-color: rgba(41, 79, 116, 0.24);
  color: var(--blue);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(228, 237, 245, 0.86));
}

.job-history-actions .command-job,
.job-links .command-job-inline {
  border-color: rgba(185, 133, 46, 0.28);
  color: #7a5219;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(255, 245, 221, 0.88));
}

.job-history-actions .start-inference-job,
.job-links .start-inference-inline,
.job-history-actions .real-report-link,
.job-links .real-report-link,
.job-history-actions .real-download-link,
.job-links .real-download-link {
  border-color: rgba(10, 102, 87, 0.26);
  color: var(--green);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(227, 240, 234, 0.90));
}

.job-history-actions .log-link,
.job-links .log-link {
  border-color: rgba(111, 96, 73, 0.22);
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(241, 236, 226, 0.86));
}

.disabled-link {
  opacity: 0.52;
  pointer-events: none;
}

.prediction-pipeline {
  margin-top: 0;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 12px;
}

.readiness-summary,
.readiness-card {
  max-width: 100%;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(116, 101, 82, 0.20);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
}

.readiness-summary {
  grid-column: span 2;
  background:
    linear-gradient(180deg, rgba(255, 245, 221, 0.92), rgba(255, 253, 248, 0.92));
}

.readiness-summary.ready,
.readiness-card.ready {
  border-color: rgba(10, 102, 87, 0.22);
  background:
    linear-gradient(180deg, rgba(227, 240, 234, 0.92), rgba(255, 253, 248, 0.92));
}

.readiness-summary.blocked,
.readiness-card.blocked {
  border-color: rgba(185, 133, 46, 0.28);
}

.readiness-card.warning {
  border-color: rgba(41, 79, 116, 0.20);
  background:
    linear-gradient(180deg, rgba(228, 237, 245, 0.80), rgba(255, 253, 248, 0.92));
}

.readiness-card.command-card {
  grid-column: span 2;
  background:
    linear-gradient(180deg, rgba(228, 237, 245, 0.72), rgba(255, 253, 248, 0.92));
}

.readiness-summary b,
.readiness-card b {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.readiness-summary span,
.readiness-card span {
  display: block;
  color: var(--muted);
  line-height: 1.62;
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 12px;
}

.pipeline-steps div {
  position: relative;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(116, 101, 82, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(246, 242, 234, 0.82));
}

.pipeline-steps b {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
}

.pipeline-steps span,
.pipeline-note {
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.pipeline-note {
  margin: 14px 0 0;
}

.index-mode-note b {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 6px;
}

.index-mode-note p {
  margin: 6px 0;
}

@media (max-width: 1180px) {
  .side-nav {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    min-height: 0;
  }

  .side-nav nav {
    justify-content: flex-start;
    justify-self: stretch;
  }

  .top-panel,
  .workspace,
  .wide-workspace,
  .viewer-grid,
  .upload-grid,
  .result-browser-content,
  .asset-layout,
  .overview-lab-grid,
  .survival-card {
    grid-template-columns: 1fr;
  }

  .pipeline-panel {
    grid-row: auto;
  }

  .survival-card {
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(246, 242, 234, 0.96)),
      var(--panel);
  }

  body[data-page="slide"] .viewer-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="slide"] .state-card {
    position: static;
  }

  body[data-page="slides"] .filter-strip {
    position: static;
  }

  body[data-page="slides"] .filter-strip .filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 1080px) {
  .figure-atlas-header,
  .figure-atlas-layout {
    grid-template-columns: 1fr;
  }

  .figure-rail {
    position: static;
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  main {
    width: 100%;
    padding: 18px 18px 18px;
  }

  .side-nav {
    width: calc(100% - 20px);
    margin: 8px auto 0;
    overflow-x: hidden;
  }

  .brand {
    flex-wrap: wrap;
  }

  .brand::after {
    position: static;
    right: auto;
    bottom: auto;
    margin-left: 0;
    white-space: nowrap;
  }

  .side-nav nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .side-nav a {
    text-align: center;
  }

  .metric-grid,
  .evidence-summary,
  .filter-grid,
  .status-strip,
  .job-options,
  .density-mode-row,
  .density-controls,
  .asset-controls,
  .upload-heading,
  .readiness-grid,
  .pipeline-steps {
    grid-template-columns: 1fr;
  }

  .figure-atlas-header,
  .figure-atlas-controls,
  .figure-detail-head,
  .figure-detail-grid,
  .figure-rail {
    grid-template-columns: 1fr;
  }

  .figure-atlas-stats {
    grid-template-columns: 1fr 1fr;
  }

  .figure-detail-grid .kv:nth-child(odd),
  .figure-detail-grid .kv:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

  .figure-open-link {
    width: fit-content;
  }

  .sampling-panel-head {
    display: grid;
  }

  .sampling-panel-head small {
    max-width: none;
    text-align: left;
  }

  .progress-hero {
    padding: 14px;
  }

  .progress-hero-top {
    align-items: start;
  }

  .progress-hero-top strong {
    min-width: 52px;
    font-size: 24px;
  }

  .job-progress-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .job-progress-steps div {
    padding: 7px 3px;
  }

  .readiness-summary,
  .readiness-card.command-card {
    grid-column: auto;
  }

  h1 {
    font-size: 34px;
  }

  .tech-panel-head {
    flex-direction: column;
    gap: 4px;
  }

  .tech-panel-head b {
    text-align: left;
  }

  .pipeline-visual {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 14px;
  }

  .pipeline-visual::before,
  .pipeline-visual::after {
    left: 50%;
    right: auto;
    width: 2px;
    height: 22px;
    background: linear-gradient(180deg, rgba(156, 225, 208, 0.9), rgba(243, 182, 198, 0.78));
  }

  .pipeline-visual::before {
    top: calc(33.3% - 8px);
  }

  .pipeline-visual::after {
    top: calc(66.6% - 8px);
  }

  .workflow-pane {
    min-height: auto;
  }

  .workflow-image {
    flex: none;
    min-height: 0;
    height: 220px;
  }

  .workflow-input .workflow-image {
    height: 250px;
  }

  .workflow-engine {
    padding: 6px 0;
  }

  .engine-ring {
    width: 128px;
  }

  .engine-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .survival-card {
    padding: 14px;
  }

  .survival-method-grid .kv {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  body[data-page="slides"] .slides-page-heading {
    grid-template-columns: 1fr;
  }

  body[data-page="slides"] .slides-page-heading h1 {
    white-space: normal;
  }

  body[data-page="slides"] .filter-strip-head,
  body[data-page="slides"] .table-panel-head,
  .result-browser-head,
  .job-history-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-browser-actions {
    justify-content: flex-start;
  }

  .result-summary-grid {
    grid-template-columns: 1fr;
  }

  .upload-result-canvas-wrap {
    min-height: 380px;
  }

  .job-history-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .job-history-actions {
    justify-content: flex-start;
  }

  body[data-page="slides"] .filter-strip .toolbar {
    flex-wrap: wrap;
  }

  body[data-page="slides"] .filter-strip .filter-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="slides"] #pageStatus {
    justify-content: flex-start;
    width: 100%;
  }

  body[data-page="slide"] .slide-page-heading {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  body[data-page="slide"] .slide-page-heading .lead {
    font-size: 13px;
  }

  .kv {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-selectors {
    grid-template-columns: 1fr;
    position: static;
  }

  .detail-summary-strip {
    grid-template-columns: 1fr;
  }

  .interactive-map-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .asset-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .asset-card img {
    width: 84px;
    height: 64px;
  }
}

/* 2026-06-09 homepage polish: lighter research-dashboard first screen */
body[data-page="overview"] main {
  width: min(calc(100% - 32px), var(--site-max));
}

body[data-page="overview"] .top-panel {
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.5fr);
  gap: 22px;
  align-items: center;
  padding: 14px 0 10px;
}

body[data-page="overview"] .status-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="overview"] .status-strip div {
  min-height: 82px;
  padding: 12px 13px;
}

body[data-page="overview"] .status-strip b {
  font-size: 22px;
}

body[data-page="overview"] .top-panel h1 {
  max-width: 1080px;
  font-size: clamp(38px, 4.1vw, 58px);
  white-space: nowrap;
}

body[data-page="overview"] .lead {
  max-width: 980px;
  margin: 14px 0 0;
  line-height: 1.62;
}

body[data-page="overview"] .overview-lab-grid {
  grid-template-columns: minmax(620px, 1.16fr) minmax(360px, 0.84fr);
  grid-template-areas:
    "pipeline cohort"
    "availability availability";
  gap: 20px;
  align-items: stretch;
  margin: 10px 0 22px;
}

body[data-page="overview"] .tech-panel {
  border-color: rgba(38, 74, 86, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 254, 249, 0.98), rgba(246, 242, 234, 0.96)),
    var(--panel);
  box-shadow: 0 18px 48px rgba(45, 50, 45, 0.08);
}

body[data-page="overview"] .tech-panel::before {
  background:
    linear-gradient(90deg, rgba(10, 102, 87, 0.028) 0 1px, transparent 1px 48px),
    linear-gradient(0deg, rgba(41, 79, 116, 0.023) 0 1px, transparent 1px 42px);
  opacity: 1;
}

body[data-page="overview"] .tech-panel-head {
  padding: 16px 18px 10px;
}

body[data-page="overview"] .tech-panel-head span {
  color: var(--green);
  letter-spacing: 0;
  text-transform: none;
}

body[data-page="overview"] .tech-panel-head b {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(19px, 2.1vw, 30px);
}

body[data-page="overview"] .pipeline-panel {
  grid-area: pipeline;
  grid-row: auto;
  min-height: 0;
  color: var(--ink);
}

body[data-page="overview"] .cohort-panel {
  grid-area: cohort;
}

body[data-page="overview"] .availability-panel {
  grid-area: availability;
}

body[data-page="overview"] .pipeline-panel .tech-panel-head b {
  color: var(--ink);
}

body[data-page="overview"] .pipeline-panel .tech-panel-head span {
  color: var(--green);
}

body[data-page="overview"] .pipeline-visual {
  grid-template-columns: minmax(210px, 0.92fr) minmax(170px, 0.48fr) minmax(210px, 0.92fr);
  gap: 14px;
  min-height: 0;
  margin: 6px 18px 0;
  padding: 12px;
  border-color: rgba(156, 225, 208, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.045) 0 1px, transparent 1px 52px),
    linear-gradient(0deg, rgba(255, 253, 248, 0.038) 0 1px, transparent 1px 44px),
    linear-gradient(135deg, rgba(11, 20, 24, 0.98), rgba(20, 34, 36, 0.96) 58%, rgba(26, 41, 39, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.05);
}

body[data-page="overview"] .pipeline-visual::before,
body[data-page="overview"] .pipeline-visual::after {
  top: 50%;
  height: 1px;
  opacity: 0.75;
  background: linear-gradient(90deg, transparent, rgba(156, 225, 208, 0.8), rgba(185, 93, 121, 0.58), transparent);
  box-shadow: none;
}

body[data-page="overview"] .pipeline-visual::before {
  left: 29%;
  right: 57%;
}

body[data-page="overview"] .pipeline-visual::after {
  left: 57%;
  right: 29%;
}

body[data-page="overview"] .workflow-pane {
  min-height: 292px;
  padding: 11px;
  border-color: rgba(255, 253, 248, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(239, 234, 225, 0.94));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body[data-page="overview"] .workflow-pane:hover {
  transform: translateY(-2px);
  border-color: rgba(156, 225, 208, 0.52);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

body[data-page="overview"] .workflow-pane-head {
  margin-bottom: 8px;
}

body[data-page="overview"] .workflow-pane-head b {
  font-size: 17px;
}

body[data-page="overview"] .workflow-image {
  flex: none;
  height: 238px;
  min-height: 204px;
  border-color: rgba(116, 101, 82, 0.22);
  background: #fbfaf5;
}

body[data-page="overview"] .st-preview img {
  object-fit: contain;
  object-position: center;
}

body[data-page="overview"] .he-preview img {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  margin: auto;
  object-fit: contain;
  object-position: center;
}

body[data-page="overview"] .st-preview img {
  padding: 2px;
}

body[data-page="overview"] .workflow-engine {
  align-self: stretch;
  align-content: center;
  gap: 12px;
  padding: 14px 6px;
}

body[data-page="overview"] .engine-tag {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(156, 225, 208, 0.28);
  border-radius: 999px;
  color: #9ce1d0;
  font-size: 11px;
  font-weight: 900;
}

body[data-page="overview"] .engine-ring {
  width: min(132px, 100%);
  border-radius: 16px;
  aspect-ratio: 1.06;
  background:
    radial-gradient(circle at 50% 0%, rgba(156, 225, 208, 0.24), transparent 46%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.11), rgba(255, 253, 248, 0.04));
  border-color: rgba(156, 225, 208, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.05), 0 18px 36px rgba(0, 0, 0, 0.22);
}

body[data-page="overview"] .engine-ring span {
  top: 16px;
  background: linear-gradient(90deg, #9ce1d0, #f3b6c6);
}

body[data-page="overview"] .engine-ring b {
  font-size: 17px;
}

body[data-page="overview"] .engine-metrics {
  gap: 8px;
}

body[data-page="overview"] .engine-metrics i {
  border-color: rgba(255, 253, 248, 0.12);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.06);
}

body[data-page="overview"] .pipeline-foot {
  padding: 12px 18px 16px;
}

body[data-page="overview"] .pipeline-foot span {
  border-color: rgba(38, 74, 86, 0.16);
  background: rgba(255, 253, 248, 0.78);
  color: var(--muted);
}

body[data-page="overview"] .cohort-panel,
body[data-page="overview"] .availability-panel {
  min-height: 0;
}

body[data-page="overview"] .cohort-band-list {
  gap: 14px;
  padding: 4px 18px 18px;
}

body[data-page="overview"] .cohort-band {
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(183, 170, 152, 0.28);
}

body[data-page="overview"] .cohort-band:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body[data-page="overview"] .cohort-band strong {
  font-size: 18px;
  letter-spacing: 0.01em;
}

body[data-page="overview"] .cohort-band span {
  font-variant-numeric: tabular-nums;
}

body[data-page="overview"] .band-stack {
  height: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-page="overview"] .band-stack i {
  height: 5px;
  box-shadow: 0 1px 8px rgba(23, 26, 31, 0.08);
}

body[data-page="overview"] .band-slide {
  top: 1px;
}

body[data-page="overview"] .band-tile {
  top: 9px;
}

body[data-page="overview"] .band-he {
  top: 17px;
}

body[data-page="overview"] .availability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 18px 12px;
}

body[data-page="overview"] .availability-cell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 8px;
  align-items: end;
  justify-items: stretch;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(183, 170, 152, 0.3);
  border-top: 1px solid rgba(183, 170, 152, 0.2);
  background: transparent;
}

body[data-page="overview"] .availability-cell:last-child {
  border-bottom: 0;
}

body[data-page="overview"] .availability-cell div {
  display: grid;
  gap: 2px;
  align-items: start;
}

body[data-page="overview"] .availability-cell span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

body[data-page="overview"] .availability-cell b {
  color: var(--green);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

body[data-page="overview"] .availability-cell small {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

body[data-page="overview"] .availability-cell i {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(215, 207, 191, 0.42);
}

body[data-page="overview"] .availability-cell i em {
  display: block;
  width: var(--ratio);
  height: 100%;
  border-radius: inherit;
  background: var(--ring-color);
}

body[data-page="overview"] .feature-ribbon {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 18px 16px;
}

body[data-page="overview"] .feature-ribbon span {
  padding: 9px 6px;
}

body[data-page="overview"] .feature-ribbon b {
  font-size: 18px;
}

@media (max-width: 1180px) {
  body[data-page="overview"] .top-panel,
  body[data-page="overview"] .overview-lab-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "pipeline"
      "cohort"
      "availability";
  }

  body[data-page="overview"] .pipeline-panel {
    grid-row: auto;
  }

  body[data-page="overview"] .status-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-page="overview"] main {
    width: 100%;
  }

  body[data-page="overview"] .top-panel h1 {
    white-space: normal;
  }

  body[data-page="overview"] .top-panel {
    padding-top: 18px;
  }

  body[data-page="overview"] .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="overview"] .pipeline-visual {
    grid-template-columns: 1fr;
    margin: 6px 12px 0;
    padding: 12px;
  }

  body[data-page="overview"] .pipeline-visual::before,
  body[data-page="overview"] .pipeline-visual::after {
    left: 50%;
    right: auto;
    width: 1px;
    height: 22px;
    background: linear-gradient(180deg, rgba(156, 225, 208, 0.86), rgba(185, 93, 121, 0.58));
  }

  body[data-page="overview"] .pipeline-visual::before {
    top: calc(33.3% - 8px);
  }

  body[data-page="overview"] .pipeline-visual::after {
    top: calc(66.6% - 8px);
  }

  body[data-page="overview"] .workflow-pane {
    min-height: 0;
  }

  body[data-page="overview"] .workflow-image {
    height: 240px;
    min-height: 0;
  }

  body[data-page="overview"] .engine-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="overview"] .availability-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="overview"] .feature-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 2026-06-09 homepage harmony pass: one coherent research-site surface */
body[data-page="overview"] .top-panel {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.46fr);
  gap: 24px;
  padding: 18px 0 18px;
  border-top: 1px solid rgba(183, 170, 152, 0.26);
  border-bottom: 1px solid rgba(183, 170, 152, 0.26);
}

body[data-page="overview"] .top-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 168px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--rose), var(--amber));
}

body[data-page="overview"] .top-panel h1 {
  font-size: clamp(36px, 3.4vw, 52px);
}

body[data-page="overview"] .top-panel .kicker {
  margin-bottom: 6px;
  color: var(--green);
}

body[data-page="overview"] .top-panel .lead {
  max-width: 1060px;
  margin-top: 10px;
  color: #4f575a;
  font-size: 14px;
  line-height: 1.7;
}

body[data-page="overview"] .status-strip {
  align-self: stretch;
  align-content: center;
  gap: 8px;
}

body[data-page="overview"] .status-strip div {
  min-height: 72px;
  padding: 10px 12px;
  border-color: rgba(183, 170, 152, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(248, 245, 238, 0.72));
  box-shadow: none;
}

body[data-page="overview"] .status-strip div::before {
  height: 2px;
}

body[data-page="overview"] .status-strip span {
  font-size: 11px;
}

body[data-page="overview"] .status-strip b {
  font-size: 21px;
}

body[data-page="overview"] .overview-lab-grid {
  gap: 20px;
  margin-top: 18px;
}

body[data-page="overview"] .tech-panel {
  border-color: rgba(183, 170, 152, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(248, 245, 238, 0.92));
  box-shadow: 0 12px 30px rgba(48, 39, 29, 0.055);
}

body[data-page="overview"] .tech-panel::before {
  opacity: 0.42;
}

body[data-page="overview"] .tech-panel-head {
  align-items: baseline;
  padding: 15px 18px 9px;
}

body[data-page="overview"] .tech-panel-head span {
  font-size: 11px;
}

body[data-page="overview"] .tech-panel-head b {
  font-size: clamp(19px, 1.7vw, 27px);
}

body[data-page="overview"] .pipeline-visual {
  grid-template-columns: minmax(220px, 0.96fr) minmax(150px, 0.42fr) minmax(240px, 1.04fr);
  gap: 12px;
  margin: 4px 18px 0;
  padding: 12px;
  border-color: rgba(183, 170, 152, 0.38);
  background:
    linear-gradient(90deg, rgba(10, 102, 87, 0.042) 0 1px, transparent 1px 46px),
    linear-gradient(0deg, rgba(41, 79, 116, 0.034) 0 1px, transparent 1px 40px),
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(239, 245, 241, 0.86));
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.5);
}

body[data-page="overview"] .pipeline-visual::before,
body[data-page="overview"] .pipeline-visual::after {
  top: 50%;
  height: 2px;
  opacity: 0.58;
  background: linear-gradient(90deg, transparent, rgba(10, 102, 87, 0.7), rgba(185, 93, 121, 0.46), transparent);
}

body[data-page="overview"] .workflow-pane {
  min-height: 0;
  padding: 10px;
  border-color: rgba(183, 170, 152, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(250, 247, 241, 0.96));
  box-shadow: none;
}

body[data-page="overview"] .workflow-pane:hover {
  border-color: rgba(10, 102, 87, 0.42);
  box-shadow: 0 10px 26px rgba(48, 39, 29, 0.08);
}

body[data-page="overview"] .workflow-pane-head {
  margin-bottom: 7px;
}

body[data-page="overview"] .workflow-pane-head b {
  font-size: 16px;
}

body[data-page="overview"] .workflow-image {
  height: 218px;
  min-height: 0;
  border-color: rgba(183, 170, 152, 0.42);
  background:
    linear-gradient(90deg, rgba(10, 102, 87, 0.025) 0 1px, transparent 1px 24px),
    linear-gradient(0deg, rgba(185, 93, 121, 0.024) 0 1px, transparent 1px 22px),
    #fffefa;
}

body[data-page="overview"] .workflow-pane > small {
  margin-top: 8px;
  font-size: 11px;
}

body[data-page="overview"] .workflow-engine {
  align-self: center;
  min-height: 262px;
  padding: 12px 8px;
  border: 1px solid rgba(23, 26, 31, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 32, 36, 0.98), rgba(25, 43, 42, 0.96));
  box-shadow: 0 14px 30px rgba(23, 26, 31, 0.16);
}

body[data-page="overview"] .engine-tag {
  border-color: rgba(156, 225, 208, 0.24);
  background: rgba(255, 253, 248, 0.05);
}

body[data-page="overview"] .engine-ring {
  width: min(120px, 100%);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(156, 225, 208, 0.2), rgba(185, 93, 121, 0.12)),
    linear-gradient(180deg, rgba(255, 253, 248, 0.1), rgba(255, 253, 248, 0.035));
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.06);
}

body[data-page="overview"] .engine-ring b {
  font-size: 15px;
}

body[data-page="overview"] .engine-ring small {
  font-size: 10px;
}

body[data-page="overview"] .engine-metrics {
  gap: 6px;
}

body[data-page="overview"] .engine-metrics i {
  padding: 7px;
  border-radius: 6px;
}

body[data-page="overview"] .pipeline-foot {
  padding: 10px 18px 15px;
}

body[data-page="overview"] .pipeline-foot span {
  border-color: rgba(183, 170, 152, 0.42);
  background: rgba(255, 253, 248, 0.62);
}

body[data-page="overview"] .cohort-band strong {
  font-size: 17px;
}

body[data-page="overview"] .cohort-band span,
body[data-page="overview"] .cohort-band small,
body[data-page="overview"] .pipeline-foot span {
  font-size: 11px;
}

body[data-page="overview"] .availability-panel .tech-panel-head {
  padding-bottom: 6px;
}

body[data-page="overview"] .availability-cell {
  padding: 7px 0;
}

body[data-page="overview"] .feature-ribbon {
  border-color: rgba(183, 170, 152, 0.42);
}

@media (max-width: 1180px) {
  body[data-page="overview"] .top-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body[data-page="overview"] .top-panel {
    border-top: 0;
  }

  body[data-page="overview"] .top-panel h1 {
    max-width: 100%;
    font-size: clamp(32px, 10.8vw, 42px);
    line-height: 1.05;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body[data-page="overview"] .top-panel .lead {
    max-width: 100%;
    font-size: 13px;
  }

  body[data-page="overview"] .status-strip {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  body[data-page="overview"] .status-strip div {
    min-width: 0;
  }

  body[data-page="overview"] .pipeline-visual {
    grid-template-columns: 1fr;
  }

  body[data-page="overview"] .workflow-engine {
    min-height: 0;
  }
}

@media (max-width: 500px) {
  body[data-page="overview"] .status-strip {
    grid-template-columns: 1fr;
  }
}

/* Homepage evidence route */
body[data-page="overview"] .home-evidence-paths {
  margin: 20px 0 18px;
}

body[data-page="overview"] .home-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.48fr);
  gap: 24px;
  align-items: end;
  padding: 22px 24px;
  border: 1px solid rgba(116, 101, 82, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(10, 102, 87, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 244, 237, 0.93));
  box-shadow: 0 12px 30px rgba(48, 39, 29, 0.06);
}

body[data-page="overview"] .home-section-head p {
  grid-column: 1;
  margin: 0 0 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

body[data-page="overview"] .home-section-head h2 {
  grid-column: 1;
  margin: 0;
  max-width: 820px;
  font-size: clamp(28px, 2.4vw, 42px);
  line-height: 1.12;
}

body[data-page="overview"] .home-section-head span {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  display: block;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

body[data-page="overview"] .evidence-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

body[data-page="overview"] .evidence-path-card {
  display: grid;
  grid-template-rows: 176px minmax(0, 1fr);
  min-height: 438px;
  border: 1px solid rgba(116, 101, 82, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 253, 248, 0.97));
  box-shadow: 0 12px 28px rgba(48, 39, 29, 0.065);
  overflow: hidden;
}

body[data-page="overview"] .evidence-path-figure {
  display: block;
  padding: 10px;
  border-bottom: 1px solid rgba(183, 170, 152, 0.32);
  background:
    linear-gradient(90deg, rgba(41, 79, 116, 0.035) 0 1px, transparent 1px 26px),
    linear-gradient(0deg, rgba(10, 102, 87, 0.032) 0 1px, transparent 1px 24px),
    #fffefa;
}

body[data-page="overview"] .evidence-path-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

body[data-page="overview"] .figure-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(116, 101, 82, 0.34);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
}

body[data-page="overview"] .evidence-path-copy {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: 15px;
}

body[data-page="overview"] .evidence-path-copy > div {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

body[data-page="overview"] .evidence-path-copy span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

body[data-page="overview"] .evidence-path-copy b {
  padding: 4px 7px;
  border: 1px solid rgba(183, 170, 152, 0.42);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink-soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body[data-page="overview"] .evidence-path-copy h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.24;
}

body[data-page="overview"] .evidence-path-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
  font-size: 13px;
}

body[data-page="overview"] .evidence-path-copy a {
  width: fit-content;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

body[data-page="overview"] .evidence-path-copy a:hover {
  color: var(--green);
  text-decoration: underline;
}

body[data-page="overview"] .cohort-finding-board {
  display: grid;
  grid-template-columns: minmax(320px, 0.62fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(116, 101, 82, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 26, 31, 0.98), rgba(28, 48, 46, 0.96));
  color: rgba(255, 253, 248, 0.82);
  box-shadow: 0 16px 34px rgba(23, 26, 31, 0.16);
}

body[data-page="overview"] .cohort-finding-copy {
  padding: 15px 16px;
}

body[data-page="overview"] .cohort-finding-copy span {
  color: #9ce1d0;
  font-size: 12px;
  font-weight: 900;
}

body[data-page="overview"] .cohort-finding-copy h3 {
  margin: 8px 0 10px;
  max-width: 660px;
  color: #fffefa;
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.18;
}

body[data-page="overview"] .cohort-finding-copy p {
  margin: 0;
  color: rgba(255, 253, 248, 0.68);
  line-height: 1.7;
  font-size: 14px;
}

body[data-page="overview"] .cohort-finding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="overview"] .cohort-finding-card {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 190px;
  padding: 15px;
  border: 1px solid rgba(255, 253, 248, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.09), rgba(255, 253, 248, 0.04));
  color: rgba(255, 253, 248, 0.78);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

body[data-page="overview"] .cohort-finding-card:hover {
  transform: translateY(-1px);
  border-color: rgba(156, 225, 208, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.13), rgba(255, 253, 248, 0.055));
}

body[data-page="overview"] .cohort-finding-card span {
  color: #9ce1d0;
  font-size: 11px;
  font-weight: 900;
}

body[data-page="overview"] .cohort-finding-card h4 {
  margin: 0;
  color: #fffefa;
  font-size: 21px;
}

body[data-page="overview"] .cohort-finding-card b {
  color: rgba(255, 253, 248, 0.88);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

body[data-page="overview"] .cohort-finding-card p {
  margin: 0;
  color: rgba(255, 253, 248, 0.62);
  line-height: 1.62;
  font-size: 13px;
}

body[data-page="overview"] .home-action-strip {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) repeat(2, minmax(260px, 0.72fr));
  gap: 14px;
  margin: 0 0 28px;
}

body[data-page="overview"] .home-action-card {
  position: relative;
  display: grid;
  gap: 9px;
  align-content: start;
  min-height: 212px;
  padding: 20px;
  border: 1px solid rgba(116, 101, 82, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 244, 237, 0.94));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(48, 39, 29, 0.06);
  overflow: hidden;
}

body[data-page="overview"] .home-action-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green), var(--rose), var(--amber));
  opacity: 0.75;
}

body[data-page="overview"] .home-action-card:hover {
  border-color: rgba(10, 102, 87, 0.42);
  box-shadow: 0 16px 36px rgba(48, 39, 29, 0.095);
}

body[data-page="overview"] .home-action-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

body[data-page="overview"] .home-action-card h2,
body[data-page="overview"] .home-action-card h3 {
  margin: 0;
  line-height: 1.18;
}

body[data-page="overview"] .home-action-card h2 {
  max-width: 760px;
  font-size: clamp(26px, 2.05vw, 38px);
}

body[data-page="overview"] .home-action-card h3 {
  font-size: 24px;
}

body[data-page="overview"] .home-action-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

body[data-page="overview"] .home-action-card b {
  margin-top: auto;
  color: var(--ink);
  font-size: 13px;
}

body[data-page="overview"] .primary-action {
  background:
    linear-gradient(115deg, rgba(227, 240, 234, 0.92), rgba(255, 253, 248, 0.96) 58%),
    var(--panel);
}

@media (max-width: 1320px) {
  body[data-page="overview"] .evidence-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body[data-page="overview"] .home-section-head,
  body[data-page="overview"] .cohort-finding-board {
    grid-template-columns: 1fr;
  }

  body[data-page="overview"] .home-action-strip {
    grid-template-columns: 1fr;
  }

  body[data-page="overview"] .home-section-head p,
  body[data-page="overview"] .home-section-head h2,
  body[data-page="overview"] .home-section-head span {
    grid-column: auto;
    grid-row: auto;
  }

  body[data-page="overview"] .cohort-finding-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body[data-page="overview"] .home-section-head {
    padding: 18px;
  }

  body[data-page="overview"] .evidence-path-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="overview"] .evidence-path-card {
    grid-template-rows: 160px minmax(0, 1fr);
    min-height: 0;
  }

  body[data-page="overview"] .home-action-card {
    min-height: 0;
    padding: 18px;
  }
}

/* 2026-06-09 research-resource UI rethink pass */
:root {
  --site-max: 1680px;
  --ink: #11161a;
  --ink-soft: #283238;
  --muted: #687277;
  --paper: #f7f6f2;
  --panel: #fffefb;
  --panel-strong: #eef5f1;
  --line: #d8d7cf;
  --green: #0b6a5c;
  --blue: #24516d;
  --rose: #b54f70;
  --amber: #b9842d;
  --shadow: 0 22px 54px rgba(28, 34, 33, 0.11);
  --shadow-soft: 0 12px 34px rgba(28, 34, 33, 0.075);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(246, 245, 240, 0.98)),
    linear-gradient(90deg, rgba(11, 106, 92, 0.035) 0 1px, transparent 1px 64px),
    linear-gradient(0deg, rgba(36, 81, 109, 0.028) 0 1px, transparent 1px 64px);
}

body::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), transparent 46%),
    linear-gradient(115deg, transparent 0 42%, rgba(11, 106, 92, 0.035) 42% 42.4%, transparent 42.4% 100%);
  mix-blend-mode: normal;
}

.side-nav,
main {
  width: min(calc(100% - 56px), var(--site-max));
}

.side-nav {
  grid-template-columns: minmax(280px, auto) minmax(0, 1fr);
  min-height: 72px;
  margin-top: 18px;
  padding: 11px 12px;
  border: 1px solid rgba(17, 22, 26, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.97), rgba(248, 247, 243, 0.94));
  box-shadow: 0 16px 42px rgba(28, 34, 33, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  min-width: 0;
  padding-left: 2px;
}

.brand::after {
  content: "鐠佺儤鏋冪挧鍕爱闂傘劍鍩?;
  margin-left: 4px;
  border-color: rgba(11, 106, 92, 0.2);
  background: rgba(238, 245, 241, 0.82);
  color: var(--green);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, #11161a 0 42%, #0b6a5c 42% 69%, #b54f70 69% 100%);
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0;
}

.brand span {
  margin-top: 2px;
  font-size: 12px;
}

.side-nav nav {
  gap: 4px;
  padding: 3px;
  border-color: rgba(17, 22, 26, 0.1);
  border-radius: 10px;
  background: rgba(255, 254, 251, 0.7);
}

.side-nav a {
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 780;
}

.side-nav nav a:last-child {
  margin-left: 4px;
  border-color: rgba(17, 22, 26, 0.84);
  background: #11161a;
  color: #fffefb;
}

.side-nav nav a:last-child:hover,
.side-nav nav a:last-child.active {
  border-color: #11161a;
  background: linear-gradient(135deg, #11161a, #16493f);
  color: #fffefb;
}

.side-nav a:hover,
.side-nav a.active {
  background: rgba(238, 245, 241, 0.92);
  border-color: rgba(11, 106, 92, 0.2);
  color: var(--green);
}

main {
  padding-top: 18px;
}

.page-heading {
  padding: 28px 0 22px;
  border-bottom: 1px solid rgba(17, 22, 26, 0.1);
}

.page-heading h1,
.top-panel h1 {
  letter-spacing: 0;
}

.kicker {
  color: var(--green);
  font-weight: 900;
}

.lead {
  color: #4f5b5e;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(17, 22, 26, 0.13);
  border-radius: 8px;
  background: rgba(255, 254, 251, 0.82);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(28, 34, 33, 0.055);
}

.hero-actions a:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 106, 92, 0.28);
  color: var(--green);
}

.hero-actions .hero-primary-link {
  border-color: #11161a;
  background: #11161a;
  color: #fffefb;
}

.hero-actions .hero-primary-link:hover {
  color: #fffefb;
  background: linear-gradient(135deg, #11161a, #16493f);
}

body[data-page="overview"] .top-panel {
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.48fr);
  gap: 28px;
  align-items: center;
  padding: 26px 0 24px;
  border-top: 0;
  border-bottom: 1px solid rgba(17, 22, 26, 0.12);
}

body[data-page="overview"] .top-panel::before {
  width: 230px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--rose));
}

body[data-page="overview"] .top-panel h1 {
  max-width: 780px;
  font-size: clamp(42px, 4.2vw, 76px);
  line-height: 1.02;
}

body[data-page="overview"] .top-panel h1 span {
  display: inline-block;
}

body[data-page="overview"] .hero-title-main {
  margin-right: 0.2em;
}

body[data-page="overview"] .top-panel .lead {
  max-width: 980px;
  font-size: 16px;
  line-height: 1.78;
}

body[data-page="overview"] .status-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: center;
  gap: 10px;
}

body[data-page="overview"] .status-strip div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(17, 22, 26, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(249, 248, 244, 0.94));
  box-shadow: var(--shadow-soft);
}

body[data-page="overview"] .status-strip span {
  color: var(--muted);
  font-size: 12px;
}

body[data-page="overview"] .status-strip b {
  margin-top: 8px;
  font-size: clamp(24px, 2.5vw, 34px);
}

body[data-page="overview"] .overview-lab-grid {
  margin-top: 22px;
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.58fr);
  grid-template-areas:
    "pipeline cohort"
    "pipeline availability";
}

body[data-page="overview"] .tech-panel,
.panel,
body[data-page="overview"] .home-section-head,
body[data-page="overview"] .evidence-path-card,
body[data-page="overview"] .home-action-card {
  border-radius: 12px;
  border-color: rgba(17, 22, 26, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.985), rgba(248, 247, 243, 0.95));
  box-shadow: var(--shadow-soft);
}

body[data-page="overview"] .pipeline-panel {
  min-height: 100%;
}

body[data-page="overview"] .pipeline-visual {
  grid-template-columns: minmax(260px, 0.92fr) minmax(170px, 0.44fr) minmax(280px, 1fr);
  min-height: 360px;
  margin-top: 10px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(11, 106, 92, 0.06) 0 1px, transparent 1px 44px),
    linear-gradient(0deg, rgba(181, 79, 112, 0.045) 0 1px, transparent 1px 44px),
    linear-gradient(135deg, #fffefb, #eef5f1);
}

body[data-page="overview"] .workflow-pane {
  border-radius: 10px;
}

body[data-page="overview"] .workflow-image {
  height: 260px;
  border-radius: 10px;
}

body[data-page="overview"] .workflow-image img {
  object-fit: cover;
}

body[data-page="overview"] .workflow-output .workflow-image img,
body[data-page="overview"] .evidence-path-figure img {
  object-fit: contain;
}

body[data-page="overview"] .workflow-engine {
  border-radius: 10px;
}

body[data-page="overview"] .home-section-head {
  margin-top: 8px;
  background:
    linear-gradient(90deg, rgba(11, 106, 92, 0.09), transparent 32%),
    linear-gradient(180deg, rgba(255, 254, 251, 0.99), rgba(248, 247, 243, 0.95));
}

body[data-page="overview"] .evidence-path-grid {
  gap: 16px;
}

body[data-page="overview"] .evidence-path-card {
  grid-template-rows: 190px minmax(0, 1fr);
  min-height: 430px;
}

body[data-page="overview"] .cohort-finding-board {
  border-radius: 12px;
  background:
    linear-gradient(135deg, #11161a, #173e3a 58%, #21475d);
}

body[data-page="overview"] .home-action-strip {
  margin-top: 18px;
}

body[data-page="slides"] .filter-strip,
body[data-page="slides"] .slide-index-panel {
  border-radius: 12px;
}

body[data-page="slides"] .pagination-bar {
  min-height: 44px;
}

#pageStatus {
  display: inline-flex;
  justify-content: center;
  min-width: 190px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1180px) {
  .side-nav {
    grid-template-columns: 1fr;
  }

  .side-nav nav {
    justify-self: stretch;
    justify-content: flex-start;
  }

  body[data-page="overview"] .overview-lab-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "pipeline"
      "cohort"
      "availability";
  }

}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .side-nav,
  main {
    width: min(calc(100% - 28px), var(--site-max));
  }

  .side-nav {
    margin-top: 10px;
    padding: 10px;
  }

  .brand::after {
    display: none;
  }

  .side-nav nav {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .side-nav a {
    white-space: nowrap;
  }

  body[data-page="overview"] .top-panel {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  body[data-page="overview"] .top-panel h1 {
    font-size: clamp(32px, 10.2vw, 42px);
    max-width: 100%;
    line-height: 1.04;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body[data-page="overview"] .top-panel h1 span {
    display: block;
  }

  body[data-page="overview"] .hero-title-main {
    margin-right: 0;
  }

  body[data-page="overview"] .top-panel .lead {
    font-size: 14px;
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  body[data-page="overview"] .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="overview"] .pipeline-visual {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body[data-page="overview"] .workflow-image {
    height: 210px;
  }

}

@media (max-width: 480px) {
  body[data-page="overview"] .status-strip {
    grid-template-columns: 1fr;
  }
}

/* Cohort discovery page */
.cohort-discovery-root {
  display: grid;
  gap: 18px;
}

.cohort-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.42fr);
  gap: 18px;
  align-items: stretch;
}

.cohort-argument-card,
.cohort-cross-card,
.cohort-detail-shell,
.cohort-story-tab {
  border: 1px solid rgba(17, 22, 26, 0.11);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.99), rgba(248, 247, 243, 0.95));
  box-shadow: var(--shadow-soft);
}

.cohort-argument-card {
  position: relative;
  min-height: 292px;
  padding: 28px;
  overflow: hidden;
}

.cohort-argument-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--green), var(--blue), var(--rose));
}

.cohort-argument-card > span,
.cohort-cross-card > span,
.cohort-detail-head span,
.cohort-story-tab span,
.cohort-evidence-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.cohort-argument-card h2 {
  max-width: 920px;
  margin: 10px 0 12px;
  font-size: clamp(30px, 2.6vw, 48px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.cohort-argument-card p,
.cohort-cross-card p,
.cohort-method-stack .kv div,
.cohort-evidence-card p {
  color: var(--muted);
  line-height: 1.75;
}

.cohort-global-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.cohort-global-stats div,
.cohort-resource-metrics div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(17, 22, 26, 0.1);
  border-radius: 10px;
  background: rgba(255, 254, 251, 0.76);
}

.cohort-global-stats span,
.cohort-resource-metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.cohort-global-stats b,
.cohort-resource-metrics b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(22px, 1.8vw, 30px);
  font-variant-numeric: tabular-nums;
}

.cohort-cross-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
}

.cohort-cross-card h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.cohort-cross-card img {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  border: 1px solid rgba(17, 22, 26, 0.1);
  border-radius: 10px;
  background: #fff;
}

.cohort-story-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cohort-story-tab {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 170px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.cohort-story-tab::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--green);
}

.cohort-story-tab.tone-rose::before,
.cohort-detail-shell.tone-rose .cohort-detail-head::before {
  background: var(--rose);
}

.cohort-story-tab.tone-blue::before,
.cohort-detail-shell.tone-blue .cohort-detail-head::before {
  background: var(--blue);
}

.cohort-story-tab:hover,
.cohort-story-tab.selected {
  transform: translateY(-1px);
  border-color: rgba(11, 106, 92, 0.26);
  box-shadow: var(--shadow);
}

.cohort-story-tab h3 {
  margin: 0;
  font-size: 28px;
}

.cohort-story-tab p,
.cohort-story-tab b {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.cohort-story-tab b {
  margin-top: auto;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.cohort-detail-shell {
  overflow: hidden;
}

.cohort-detail-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 24px 26px;
  border-bottom: 1px solid rgba(17, 22, 26, 0.1);
}

.cohort-detail-head::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 0;
  width: 190px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: var(--green);
}

.cohort-detail-head h2 {
  max-width: 980px;
  margin: 8px 0 0;
  font-size: clamp(30px, 2.5vw, 48px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.cohort-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.cohort-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 0.38fr);
  gap: 16px;
  padding: 18px;
}

.cohort-method-panel,
.cohort-resource-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

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

.cohort-method-stack .kv {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 190px;
  padding: 16px;
  border: 1px solid rgba(17, 22, 26, 0.1);
  border-radius: 10px;
  background: rgba(255, 254, 251, 0.72);
  font-size: 14px;
}

.cohort-method-stack .kv div {
  line-height: 1.74;
}

.cohort-method-stack .kv span {
  color: var(--green);
  font-weight: 900;
}

.cohort-sample-types {
  padding: 16px;
  border: 1px solid rgba(17, 22, 26, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(11, 106, 92, 0.055), transparent 38%),
    rgba(255, 254, 251, 0.72);
}

.cohort-sample-types h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.sample-type-row {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.sample-type-row div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.sample-type-row b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.sample-type-row i {
  height: 7px;
  border-radius: 999px;
  background: rgba(17, 22, 26, 0.08);
  overflow: hidden;
}

.sample-type-row em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--rose));
}

.cohort-resource-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cohort-resource-metrics div:last-child {
  grid-column: 1 / -1;
}

.cohort-slide-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(17, 22, 26, 0.1);
  border-radius: 10px;
  background: rgba(255, 254, 251, 0.72);
  color: inherit;
  text-decoration: none;
}

.cohort-slide-preview span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.cohort-slide-preview b,
.cohort-slide-preview small {
  display: block;
}

.cohort-slide-preview b {
  margin-top: 5px;
  color: var(--blue);
  overflow-wrap: anywhere;
}

.cohort-slide-preview small {
  margin-top: 4px;
  color: var(--muted);
}

.cohort-slide-preview img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border: 1px solid rgba(17, 22, 26, 0.1);
  border-radius: 10px;
  background: #fff;
}

.cohort-evidence-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px 18px;
}

.cohort-evidence-card {
  display: grid;
  grid-template-rows: 220px minmax(0, 1fr);
  min-height: 392px;
  border: 1px solid rgba(17, 22, 26, 0.1);
  border-radius: 10px;
  background: rgba(255, 254, 251, 0.78);
  overflow: hidden;
}

.cohort-evidence-image {
  display: block;
  padding: 10px;
  border-bottom: 1px solid rgba(17, 22, 26, 0.1);
  background:
    linear-gradient(90deg, rgba(11, 106, 92, 0.04) 0 1px, transparent 1px 28px),
    linear-gradient(0deg, rgba(181, 79, 112, 0.035) 0 1px, transparent 1px 28px),
    #fffefb;
}

.cohort-evidence-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.cohort-evidence-card > div {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
}

.cohort-evidence-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.cohort-evidence-card p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .cohort-overview-grid,
  .cohort-detail-grid {
    grid-template-columns: 1fr;
  }

  .cohort-method-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .cohort-story-tabs,
  .cohort-evidence-row,
  .cohort-global-stats {
    grid-template-columns: 1fr;
  }

  .cohort-detail-head {
    grid-template-columns: 1fr;
  }

  .cohort-detail-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .cohort-argument-card,
  .cohort-cross-card,
  .cohort-detail-head,
  .cohort-detail-grid {
    padding: 16px;
  }

  .cohort-detail-grid {
    gap: 12px;
  }

  .cohort-argument-card h2,
  .cohort-detail-head h2 {
    font-size: clamp(28px, 9.4vw, 36px);
    line-height: 1.12;
  }

  .cohort-cross-card h3 {
    font-size: 24px;
  }

  .cohort-resource-metrics {
    grid-template-columns: 1fr;
  }

  .cohort-resource-metrics div:last-child {
    grid-column: auto;
  }

  .cohort-evidence-row {
    padding: 0 12px 12px;
  }

  .cohort-evidence-card {
    grid-template-rows: 190px minmax(0, 1fr);
    min-height: 0;
  }
}

/* Mobile resource-site guardrails, 2026-06-09
   Keep public pages readable on narrow screens without horizontal page scroll. */
@media (max-width: 760px) {
  .side-nav,
  main,
  .top-panel,
  .page-heading,
  .overview-lab-grid,
  .cohort-discovery-root,
  .gene-explorer-root,
  .viewer-grid,
  .upload-grid {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .side-nav nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    overflow-x: visible;
    flex-wrap: wrap;
  }

  .side-nav a {
    min-width: 0;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .side-nav nav a:last-child {
    margin-left: 0;
  }

  .lead,
  .cohort-argument-card p,
  .cohort-method-stack .kv div,
  .spatial-result-copy p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* Gene-centered atlas page */
.gene-explorer-root {
  display: grid;
  gap: 18px;
}

.gene-control-panel,
.gene-context-panel,
.gene-preview-card {
  border: 1px solid rgba(17, 22, 26, 0.11);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.99), rgba(248, 247, 243, 0.95));
  box-shadow: var(--shadow-soft);
}

.gene-control-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 0.38fr);
  gap: 18px;
  align-items: end;
  padding: 24px;
}

.gene-control-copy span,
.gene-context-main span,
.gene-preview-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.gene-control-copy h2 {
  max-width: 960px;
  margin: 8px 0 10px;
  font-size: clamp(30px, 2.6vw, 48px);
  line-height: 1.1;
}

.gene-control-copy p,
.gene-context-main p,
.gene-preview-meta span {
  color: var(--muted);
  line-height: 1.72;
}

.gene-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.gene-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.gene-controls select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(17, 22, 26, 0.16);
  border-radius: 10px;
  background: rgba(255, 254, 251, 0.86);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
}

.gene-context-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 0.48fr);
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
}

.gene-context-main h2 {
  margin: 4px 0 6px;
  font-size: clamp(44px, 4vw, 72px);
  line-height: 0.98;
}

.gene-context-main p {
  max-width: 980px;
  margin: 0;
}

.gene-context-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.gene-context-metrics div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(17, 22, 26, 0.1);
  border-radius: 10px;
  background: rgba(255, 254, 251, 0.74);
}

.gene-context-metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.gene-context-metrics b {
  display: block;
  margin-top: 5px;
  font-size: clamp(20px, 1.6vw, 28px);
  font-variant-numeric: tabular-nums;
}

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

.gene-preview-card {
  position: relative;
  overflow: hidden;
}

.gene-preview-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--green);
}

.gene-preview-card.tone-rose::before {
  background: var(--rose);
}

.gene-preview-card.tone-blue::before {
  background: var(--blue);
}

.gene-preview-head {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  padding: 17px 17px 12px;
  border-bottom: 1px solid rgba(17, 22, 26, 0.1);
}

.gene-preview-head h3 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.gene-preview-head a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid rgba(36, 81, 109, 0.24);
  border-radius: 8px;
  background: rgba(228, 237, 245, 0.72);
  color: var(--blue);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.gene-canvas-wrap {
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(11, 106, 92, 0.04) 0 1px, transparent 1px 30px),
    linear-gradient(0deg, rgba(181, 79, 112, 0.032) 0 1px, transparent 1px 30px),
    #fffefb;
}

.gene-preview-canvas {
  display: block;
  width: 100%;
  border: 1px solid rgba(17, 22, 26, 0.1);
  border-radius: 10px;
  background: #fff;
}

.gene-preview-meta {
  display: grid;
  gap: 5px;
  padding: 14px 17px 17px;
}

.gene-preview-meta b {
  color: var(--blue);
  overflow-wrap: anywhere;
}

.gene-preview-meta span {
  font-size: 13px;
}

@media (max-width: 1180px) {
  .gene-control-panel,
  .gene-context-panel {
    grid-template-columns: 1fr;
  }

  .gene-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .gene-control-panel,
  .gene-context-panel {
    padding: 17px;
  }

  .gene-control-copy h2 {
    font-size: clamp(28px, 9.2vw, 38px);
    overflow-wrap: anywhere;
  }

  .gene-context-main h2 {
    font-size: clamp(40px, 14vw, 58px);
  }

  .gene-context-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .gene-preview-head {
    display: grid;
  }

  .gene-preview-head a {
    width: fit-content;
  }
}

@media (max-width: 460px) {
  .gene-context-metrics {
    grid-template-columns: 1fr;
  }
}

/* Prediction workbench polish, 2026-06-09 */
body[data-page="upload"] .page-heading,
body[data-page="result"] .page-heading {
  padding: 46px 0 34px;
  border-bottom: 1px solid rgba(116, 101, 82, 0.18);
}

body[data-page="upload"] .upload-heading,
body[data-page="result"] .result-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 28px;
  align-items: center;
}

body[data-page="upload"] .page-heading h1,
body[data-page="result"] .page-heading h1 {
  margin-bottom: 14px;
  max-width: 850px;
  font-size: 58px;
  line-height: 1.02;
}

body[data-page="upload"] .page-heading .lead,
body[data-page="result"] .page-heading .lead {
  max-width: 930px;
  color: #3f474b;
  font-size: 16px;
}

body[data-page="upload"] .backend-status-card,
body[data-page="result"] .backend-status-card {
  align-self: center;
  border-color: rgba(10, 102, 87, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(244, 249, 246, 0.95)),
    repeating-linear-gradient(90deg, rgba(10, 102, 87, 0.06) 0 1px, transparent 1px 18px);
}

body[data-page="upload"] .upload-grid {
  grid-template-columns: minmax(620px, 1.18fr) minmax(380px, 0.82fr);
  gap: 16px;
  align-items: start;
}

body[data-page="upload"] .prediction-workbench,
body[data-page="upload"] .prediction-status-panel,
body[data-page="upload"] .upload-result-browser,
body[data-page="upload"] .job-history,
body[data-page="result"] .result-report-browser {
  border-color: rgba(116, 101, 82, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(249, 247, 241, 0.94)),
    var(--panel);
}

body[data-page="upload"] .prediction-workbench::after {
  top: 20px;
  right: 20px;
  width: 118px;
  height: 118px;
  opacity: 0.45;
}

body[data-page="upload"] .backend-banner {
  padding: 13px 15px 13px 17px;
  border: 1px solid rgba(10, 102, 87, 0.18);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(239, 248, 243, 0.96), rgba(255, 253, 248, 0.96));
  color: #2f4643;
  line-height: 1.65;
}

body[data-page="upload"] .drop-zone {
  min-height: 185px;
  padding: 28px 24px;
  border: 2px dashed rgba(10, 102, 87, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(238, 248, 242, 0.88)),
    repeating-linear-gradient(90deg, rgba(10, 102, 87, 0.06) 0 1px, transparent 1px 22px);
  text-align: center;
}

body[data-page="upload"] .drop-zone strong {
  color: var(--ink);
  font-size: 18px;
}

body[data-page="upload"] .drop-zone span:last-child {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.65;
}

body[data-page="upload"] .drop-icon {
  width: 50px;
  height: 50px;
  background:
    linear-gradient(135deg, #101820 0 48%, var(--green) 49% 100%);
  color: #fffdf8;
  font-size: 30px;
}

body[data-page="upload"] .selected-file-panel {
  margin-top: 18px;
}

body[data-page="upload"] .collection-consent {
  display: grid;
  gap: 13px;
  margin: 18px 0 0;
  padding: 17px 0;
  border-top: 1px solid rgba(116, 101, 82, 0.17);
  border-bottom: 1px solid rgba(116, 101, 82, 0.17);
}

body[data-page="upload"] .collection-consent h3 {
  margin: 4px 0 7px;
  font-size: 17px;
  line-height: 1.3;
}

body[data-page="upload"] .collection-consent p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

body[data-page="upload"] .collection-consent small {
  display: block;
  margin-top: 7px;
  color: var(--blue);
  font-weight: 700;
}

body[data-page="upload"] .collection-consent-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  background: rgba(237, 247, 241, 0.72);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

body[data-page="upload"] .collection-consent-check input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

body[data-page="upload"] .job-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

body[data-page="upload"] .job-options label,
body[data-page="upload"] .density-mode-row label {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(116, 101, 82, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--ink-soft);
  font-weight: 700;
}

body[data-page="upload"] .job-options input,
body[data-page="upload"] .density-mode-row input {
  accent-color: var(--green);
}

body[data-page="upload"] .sampling-panel {
  border-color: rgba(41, 79, 116, 0.18);
  background:
    linear-gradient(180deg, rgba(232, 240, 245, 0.72), rgba(255, 253, 248, 0.95));
}

body[data-page="upload"] .upload-actions {
  margin-top: 16px;
}

body[data-page="upload"] #submitPredictionJob {
  min-width: 150px;
}

body[data-page="upload"] .path-job-panel {
  background:
    linear-gradient(180deg, rgba(249, 247, 241, 0.96), rgba(255, 253, 248, 0.96));
}

body[data-page="upload"] .prediction-status-panel {
  position: sticky;
  top: 14px;
}

body[data-page="upload"] .progress-hero {
  min-height: 250px;
  border-color: rgba(41, 79, 116, 0.20);
  background:
    linear-gradient(135deg, rgba(232, 240, 245, 0.98), rgba(255, 253, 248, 0.96) 54%, rgba(230, 244, 237, 0.78));
}

body[data-page="upload"] .progress-eyebrow {
  color: var(--green);
}

body[data-page="upload"] .job-technical-details {
  opacity: 0.82;
}

body[data-page="upload"] .upload-result-browser,
body[data-page="result"] .result-report-browser {
  padding: 18px;
}

body[data-page="upload"] .result-browser-head,
body[data-page="result"] .result-browser-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(116, 101, 82, 0.14);
}

body[data-page="upload"] .result-empty,
body[data-page="result"] .result-empty {
  min-height: 132px;
  padding: 22px;
  border-color: rgba(41, 79, 116, 0.22);
  background:
    linear-gradient(135deg, rgba(232, 240, 245, 0.82), rgba(255, 253, 248, 0.96)),
    repeating-linear-gradient(90deg, rgba(41, 79, 116, 0.045) 0 1px, transparent 1px 24px);
}

body[data-page="upload"] .result-browser-content,
body[data-page="result"] .result-browser-content {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 18px;
}

body[data-page="upload"] .result-stage-card,
body[data-page="result"] .result-stage-card {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(13, 20, 25, 0.98), rgba(8, 13, 17, 0.99));
}

body[data-page="upload"] .result-stage-toolbar,
body[data-page="result"] .result-stage-toolbar {
  justify-content: flex-start;
}

body[data-page="upload"] .result-stage-toolbar button,
body[data-page="result"] .result-stage-toolbar button {
  min-height: 38px;
}

body[data-page="upload"] .upload-result-canvas-wrap,
body[data-page="result"] .upload-result-canvas-wrap {
  min-height: 560px;
}

body[data-page="upload"] .job-history {
  padding: 18px;
}

body[data-page="upload"] .job-history-row {
  grid-template-columns: minmax(0, 1fr) minmax(240px, auto);
}

body[data-page="upload"] .job-history-actions .report-link,
body[data-page="upload"] .job-links .report-link {
  color: var(--green);
  border-color: rgba(10, 102, 87, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(227, 240, 234, 0.90));
}

body[data-page="result"] .result-job-line {
  margin-top: 18px;
}

body[data-page="result"] .backend-status-card {
  max-width: 390px;
}

@media (max-width: 1180px) {
  body[data-page="upload"] .upload-grid,
  body[data-page="upload"] .upload-heading,
  body[data-page="result"] .result-heading,
  body[data-page="upload"] .result-browser-content,
  body[data-page="result"] .result-browser-content {
    grid-template-columns: 1fr;
  }

  body[data-page="upload"] .prediction-status-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  body[data-page="upload"],
  body[data-page="result"] {
    overflow-x: hidden;
  }

  body[data-page="upload"] *,
  body[data-page="result"] * {
    max-width: 100%;
  }

  .side-nav,
  main {
    width: min(calc(100% - 36px), var(--site-max));
  }

  .side-nav nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    overflow-x: visible;
    flex-wrap: wrap;
  }

  .side-nav a {
    min-width: 0;
    padding: 9px 6px;
    white-space: normal;
    text-align: center;
  }

  .side-nav nav a:last-child {
    margin-left: 0;
  }

  body[data-page="upload"] .page-heading,
  body[data-page="result"] .page-heading {
    padding: 30px 0 24px;
  }

  body[data-page="upload"] .page-heading h1,
  body[data-page="result"] .page-heading h1 {
    font-size: 38px;
    overflow-wrap: anywhere;
  }

  body[data-page="upload"] .page-heading .lead,
  body[data-page="result"] .page-heading .lead,
  body[data-page="upload"] .backend-banner,
  body[data-page="upload"] .drop-zone span,
  body[data-page="upload"] .density-note,
  body[data-page="upload"] .job-status-card span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body[data-page="upload"] .job-options {
    grid-template-columns: 1fr;
  }

  body[data-page="upload"] .drop-zone {
    min-height: 160px;
    padding: 22px 16px;
  }

  body[data-page="upload"] .progress-hero {
    min-height: 0;
  }

  body[data-page="upload"] .upload-result-canvas-wrap,
  body[data-page="result"] .upload-result-canvas-wrap {
    min-height: 380px;
  }

  body[data-page="upload"] .job-history-row {
    grid-template-columns: 1fr;
  }
}

/* Homepage container alignment fix, 2026-06-09
   Keep the homepage content rails exactly aligned with the top navigation. */
body[data-page="overview"] .side-nav,
body[data-page="overview"] main {
  width: min(calc(100% - 56px), var(--site-max));
}

body[data-page="overview"] main {
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 760px) {
  body[data-page="overview"] .side-nav,
  body[data-page="overview"] main {
    width: min(calc(100% - 36px), var(--site-max));
  }

  body[data-page="overview"] main {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Homepage evidence layout refinement, 2026-06-09
   Workflow owns the first row; cohort atlas and availability form a balanced second row. */
body[data-page="overview"] .overview-lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "pipeline pipeline"
    "cohort availability";
  gap: 18px;
  align-items: stretch;
  margin: 22px 0 24px;
}

body[data-page="overview"] .pipeline-panel {
  grid-area: pipeline;
  min-height: 0;
}

body[data-page="overview"] .cohort-panel {
  grid-area: cohort;
}

body[data-page="overview"] .availability-panel {
  grid-area: availability;
}

body[data-page="overview"] .pipeline-panel .tech-panel-head {
  align-items: end;
  padding: 20px 22px 12px;
}

body[data-page="overview"] .pipeline-panel .tech-panel-head b {
  max-width: 900px;
  font-size: clamp(24px, 2.25vw, 34px);
  text-align: right;
}

body[data-page="overview"] .pipeline-visual {
  grid-template-columns: minmax(320px, 1.1fr) minmax(220px, 0.58fr) minmax(340px, 1.16fr);
  gap: 18px;
  min-height: 386px;
  margin: 8px 22px 0;
  padding: 16px;
}

body[data-page="overview"] .pipeline-visual > * {
  min-width: 0;
}

body[data-page="overview"] .workflow-pane {
  min-height: 336px;
}

body[data-page="overview"] .workflow-image {
  height: 278px;
  min-height: 248px;
}

body[data-page="overview"] .workflow-output .workflow-image {
  padding: 0;
}

body[data-page="overview"] .workflow-output .workflow-image img {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}

body[data-page="overview"] .workflow-input .workflow-image {
  padding: 0;
  background:
    linear-gradient(90deg, rgba(15, 54, 73, 0.055) 0 1px, transparent 1px 18px),
    linear-gradient(0deg, rgba(15, 54, 73, 0.045) 0 1px, transparent 1px 18px),
    #fbfaf6;
}

body[data-page="overview"] .workflow-input .workflow-image img {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}

body[data-page="overview"] .workflow-engine {
  padding: 18px 10px;
}

body[data-page="overview"] .engine-ring {
  width: min(154px, 100%);
}

body[data-page="overview"] .pipeline-foot {
  padding: 13px 22px 20px;
}

body[data-page="overview"] .cohort-panel,
body[data-page="overview"] .availability-panel {
  min-height: 288px;
}

body[data-page="overview"] .cohort-panel .tech-panel-head,
body[data-page="overview"] .availability-panel .tech-panel-head {
  padding: 18px 20px 12px;
}

body[data-page="overview"] .cohort-panel .tech-panel-head b,
body[data-page="overview"] .availability-panel .tech-panel-head b {
  font-size: clamp(22px, 2vw, 30px);
}

body[data-page="overview"] .cohort-band-list {
  padding: 4px 20px 20px;
}

body[data-page="overview"] .cohort-band {
  padding-bottom: 13px;
}

body[data-page="overview"] .availability-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 4px 20px 14px;
}

body[data-page="overview"] .availability-cell {
  min-height: 70px;
  padding: 10px 0 12px;
}

body[data-page="overview"] .feature-ribbon {
  margin: 2px 20px 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  body[data-page="overview"] .overview-lab-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "pipeline"
      "cohort"
      "availability";
  }

  body[data-page="overview"] .pipeline-visual {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  body[data-page="overview"] .pipeline-panel .tech-panel-head,
  body[data-page="overview"] .cohort-panel .tech-panel-head,
  body[data-page="overview"] .availability-panel .tech-panel-head {
    display: grid;
    gap: 6px;
    padding: 16px 16px 10px;
  }

  body[data-page="overview"] .pipeline-panel .tech-panel-head b,
  body[data-page="overview"] .cohort-panel .tech-panel-head b,
  body[data-page="overview"] .availability-panel .tech-panel-head b {
    text-align: left;
  }

  body[data-page="overview"] .pipeline-visual {
    margin: 6px 16px 0;
    padding: 12px;
    width: auto;
    max-width: 100%;
    overflow: hidden;
  }

  body[data-page="overview"] .workflow-pane {
    min-height: 0;
    max-width: 100%;
    overflow: hidden;
  }

  body[data-page="overview"] .workflow-pane-head {
    display: grid;
    justify-content: stretch;
    gap: 4px;
  }

  body[data-page="overview"] .workflow-pane-head b {
    font-size: 15px;
    line-height: 1.2;
    text-align: left;
  }

  body[data-page="overview"] .workflow-image {
    height: 214px;
    min-height: 190px;
  }

  body[data-page="overview"] .workflow-engine {
    max-width: 100%;
    overflow: hidden;
  }

  body[data-page="overview"] .engine-metrics {
    grid-template-columns: 1fr;
    width: min(100%, 240px);
  }

  body[data-page="overview"] .engine-metrics i {
    overflow-wrap: anywhere;
    text-align: center;
  }

  body[data-page="overview"] .availability-grid,
  body[data-page="overview"] .feature-ribbon {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body[data-page="overview"] {
    overflow-x: hidden;
  }

  body[data-page="overview"] .top-panel,
  body[data-page="overview"] .status-strip,
  body[data-page="overview"] .overview-lab-grid,
  body[data-page="overview"] .tech-panel,
  body[data-page="overview"] .pipeline-visual,
  body[data-page="overview"] .workflow-pane,
  body[data-page="overview"] .workflow-engine {
    max-width: 100%;
  }

  body[data-page="overview"] .top-panel,
  body[data-page="overview"] .overview-lab-grid {
    min-width: 0;
    overflow: hidden;
  }

  body[data-page="overview"] .top-panel .lead,
  body[data-page="overview"] .pipeline-panel .tech-panel-head b,
  body[data-page="overview"] .workflow-pane-head b,
  body[data-page="overview"] .workflow-pane > small,
  body[data-page="overview"] .pipeline-foot span {
    overflow-wrap: anywhere;
  }
}

/* 2026-06-10 compact research portal density pass
   The site is a paper companion and data resource, not a marketing landing page. */
:root {
  --site-max: 1840px;
  --ink: #12171c;
  --ink-soft: #26313a;
  --muted: #647078;
  --paper: #f7f8f5;
  --panel: #fffefa;
  --panel-strong: #eef5f1;
  --line: #d9ded7;
  --line-strong: #bfc8c0;
  --green: #086b5c;
  --blue: #24536f;
  --rose: #b54f70;
  --amber: #a97424;
  --shadow: 0 12px 30px rgba(29, 38, 36, 0.08);
  --shadow-soft: 0 7px 20px rgba(29, 38, 36, 0.06);
  --shadow-tight: 0 4px 12px rgba(29, 38, 36, 0.075);
  --radius: 7px;
  --radius-sm: 5px;
}

html {
  scroll-padding-top: 86px;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(247, 248, 245, 0.99)),
    linear-gradient(90deg, rgba(8, 107, 92, 0.026) 0 1px, transparent 1px 56px),
    linear-gradient(0deg, rgba(36, 83, 111, 0.02) 0 1px, transparent 1px 56px);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.48;
}

body::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 44%),
    linear-gradient(115deg, transparent 0 44%, rgba(8, 107, 92, 0.026) 44% 44.25%, transparent 44.25% 100%);
}

.side-nav,
main {
  width: min(calc(100% - 48px), var(--site-max));
}

main {
  padding: 12px 0 38px;
}

.side-nav {
  grid-template-columns: minmax(235px, auto) minmax(0, 1fr);
  gap: 14px;
  min-height: 58px;
  margin-top: 10px;
  padding: 7px 9px 7px 11px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.brand {
  gap: 9px;
}

.brand::after {
  content: "鐠у嫭绨梻銊﹀煕";
  margin-left: 2px;
  padding: 1px 6px;
  font-size: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 14px;
}

.brand strong {
  font-size: 15px;
  line-height: 1.12;
}

.brand span {
  margin-top: 1px;
  font-size: 11px;
}

.side-nav nav {
  gap: 2px;
  padding: 2px;
  border-radius: var(--radius);
}

.side-nav a {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.2;
}

.side-nav nav a:last-child {
  padding-inline: 14px;
}

.page-heading {
  padding: 14px 0 12px;
}

.kicker {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.25;
}

h1,
.page-heading h1,
.top-panel h1,
body[data-page="slides"] .slides-page-heading h1,
body[data-page="slide"] .slide-page-heading h1,
body[data-page="upload"] .page-heading h1 {
  max-width: 900px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

body[data-page="overview"] .top-panel h1 {
  max-width: 760px;
  font-size: 42px;
  line-height: 1.04;
}

.lead,
body[data-page="overview"] .top-panel .lead,
body[data-page="slides"] .slides-page-heading .lead,
body[data-page="slide"] .slide-page-heading .lead,
body[data-page="upload"] .page-heading .lead {
  max-width: 940px;
  margin-top: 7px;
  color: #4f5b61;
  font-size: 14px;
  line-height: 1.55;
}

button,
.button-link,
.ghost-link,
.hero-actions a,
body[data-page="upload"] .job-history-actions .report-link,
body[data-page="upload"] .job-links .report-link {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.2;
}

.hero-actions {
  gap: 8px;
  margin-top: 12px;
}

.panel,
.metric-card,
.evidence-card,
.tech-panel,
.asset-detail,
.asset-card,
.cohort-argument-card,
.cohort-cross-card,
.cohort-detail-shell,
.cohort-story-tab,
.gene-control-panel,
.gene-context-panel,
.gene-preview-card,
body[data-page="upload"] .prediction-workbench,
body[data-page="upload"] .prediction-status-panel,
body[data-page="upload"] .upload-result-browser,
body[data-page="upload"] .job-history {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 14px;
}

.panel-title {
  gap: 8px;
  margin-bottom: 10px;
}

.panel-title span {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  font-size: 11px;
}

.panel-title h2,
.tech-panel-head b,
.asset-detail-copy h2,
.asset-detail-copy h3 {
  font-size: 18px;
  line-height: 1.2;
}

label {
  gap: 4px;
  font-size: 12px;
}

select,
input[type="search"],
body[data-page="upload"] .job-options input,
body[data-page="upload"] .density-mode-row input {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.status-pill,
.slide-stats span {
  min-height: 22px;
  padding: 3px 7px;
  font-size: 11px;
}

.metric-card {
  min-height: 116px;
  padding: 13px;
}

.metric-card b,
.evidence-card b {
  font-size: 20px;
}

.metric-card h3 {
  margin: 6px 0 8px;
  font-size: 17px;
}

.metric-card p,
.evidence-card p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
}

body[data-page="overview"] .top-panel {
  grid-template-columns: minmax(0, 1fr) minmax(470px, 0.54fr);
  gap: 18px;
  align-items: center;
  padding: 16px 0 14px;
  border-bottom: 1px solid rgba(18, 23, 28, 0.1);
}

body[data-page="overview"] .top-panel::before {
  width: 178px;
  height: 3px;
}

body[data-page="overview"] .top-panel h1 span {
  display: inline;
}

body[data-page="overview"] .hero-title-main {
  margin-right: 0.18em;
}

body[data-page="overview"] .status-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

body[data-page="overview"] .status-strip div {
  min-height: 58px;
  padding: 8px 9px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-tight);
}

body[data-page="overview"] .status-strip span {
  font-size: 11px;
}

body[data-page="overview"] .status-strip b {
  margin-top: 3px;
  font-size: 24px;
  line-height: 1.05;
}

body[data-page="overview"] .overview-lab-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "pipeline pipeline"
    "cohort availability";
  gap: 12px;
  margin: 12px 0 14px;
}

body[data-page="overview"] .tech-panel-head,
body[data-page="overview"] .pipeline-panel .tech-panel-head,
body[data-page="overview"] .cohort-panel .tech-panel-head,
body[data-page="overview"] .availability-panel .tech-panel-head {
  padding: 12px 14px 8px;
}

body[data-page="overview"] .tech-panel-head span {
  font-size: 11px;
}

body[data-page="overview"] .pipeline-panel .tech-panel-head b,
body[data-page="overview"] .cohort-panel .tech-panel-head b,
body[data-page="overview"] .availability-panel .tech-panel-head b {
  max-width: 760px;
  font-size: 22px;
}

body[data-page="overview"] .pipeline-visual {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.38fr) minmax(280px, 1.08fr);
  gap: 12px;
  min-height: 0;
  margin: 6px 14px 0;
  padding: 10px;
  border-radius: var(--radius);
}

body[data-page="overview"] .workflow-pane {
  min-height: 0;
  padding: 9px;
  border-radius: var(--radius);
}

body[data-page="overview"] .workflow-pane-head {
  margin-bottom: 6px;
}

body[data-page="overview"] .workflow-pane-head span {
  font-size: 10px;
}

body[data-page="overview"] .workflow-pane-head b {
  font-size: 15px;
}

body[data-page="overview"] .workflow-image {
  height: 172px;
  min-height: 0;
  border-radius: var(--radius-sm);
}

body[data-page="overview"] .workflow-input .workflow-image img,
body[data-page="overview"] .workflow-output .workflow-image img,
body[data-page="overview"] .workflow-image img {
  object-fit: contain;
}

body[data-page="overview"] .workflow-pane > small {
  margin-top: 6px;
  font-size: 11px;
}

body[data-page="overview"] .workflow-engine {
  gap: 8px;
  padding: 8px 4px;
  border-radius: var(--radius);
}

body[data-page="overview"] .engine-tag {
  padding: 3px 7px;
  font-size: 10px;
}

body[data-page="overview"] .engine-ring {
  width: min(110px, 100%);
  border-radius: var(--radius);
}

body[data-page="overview"] .engine-ring b {
  font-size: 15px;
}

body[data-page="overview"] .engine-metrics {
  gap: 6px;
}

body[data-page="overview"] .engine-metrics i {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

body[data-page="overview"] .pipeline-foot {
  padding: 9px 14px 12px;
}

body[data-page="overview"] .pipeline-foot span {
  padding: 5px 8px;
  font-size: 11px;
}

body[data-page="overview"] .cohort-panel,
body[data-page="overview"] .availability-panel {
  min-height: 0;
}

body[data-page="overview"] .cohort-band-list {
  gap: 8px;
  padding: 2px 14px 12px;
}

body[data-page="overview"] .cohort-band {
  gap: 5px;
  padding-bottom: 8px;
}

body[data-page="overview"] .cohort-band strong {
  font-size: 15px;
}

body[data-page="overview"] .cohort-band span {
  font-size: 12px;
}

body[data-page="overview"] .band-stack {
  height: 18px;
}

body[data-page="overview"] .band-stack i {
  height: 4px;
}

body[data-page="overview"] .band-tile {
  top: 7px;
}

body[data-page="overview"] .band-he {
  top: 13px;
}

body[data-page="overview"] .availability-grid {
  gap: 6px 12px;
  padding: 2px 14px 8px;
}

body[data-page="overview"] .availability-cell {
  min-height: 50px;
  padding: 7px 0 8px;
}

body[data-page="overview"] .availability-cell b {
  font-size: 15px;
}

body[data-page="overview"] .feature-ribbon {
  margin: 0 14px 12px;
}

body[data-page="overview"] .feature-ribbon span {
  padding: 7px 5px;
  font-size: 11px;
}

body[data-page="overview"] .feature-ribbon b {
  font-size: 15px;
}

body[data-page="overview"] .survival-spotlight,
body[data-page="overview"] .home-evidence-paths,
body[data-page="overview"] .home-action-strip {
  margin-top: 12px;
}

body[data-page="overview"] .home-section-head {
  margin-top: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
}

body[data-page="overview"] .home-section-head h2,
body[data-page="overview"] .cohort-finding-copy h3,
.survival-copy h2 {
  font-size: 24px;
  line-height: 1.18;
}

body[data-page="overview"] .home-section-head span,
body[data-page="overview"] .cohort-finding-copy p,
.survival-copy p {
  font-size: 13px;
  line-height: 1.5;
}

body[data-page="overview"] .evidence-path-grid {
  gap: 10px;
}

body[data-page="overview"] .evidence-path-card {
  grid-template-rows: 132px minmax(0, 1fr);
  min-height: 300px;
  border-radius: var(--radius);
}

body[data-page="overview"] .evidence-path-copy {
  padding: 12px;
}

body[data-page="overview"] .evidence-path-copy h3 {
  font-size: 17px;
}

body[data-page="overview"] .cohort-finding-board {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius);
}

body[data-page="overview"] .cohort-finding-grid {
  gap: 8px;
}

body[data-page="overview"] .cohort-finding-card,
body[data-page="overview"] .home-action-card {
  min-height: 0;
  padding: 12px;
  border-radius: var(--radius);
}

body[data-page="overview"] .cohort-finding-card h4,
body[data-page="overview"] .home-action-card h3 {
  font-size: 17px;
}

body[data-page="overview"] .home-action-grid {
  gap: 10px;
}

body[data-page="slides"] .slides-page-heading {
  gap: 3px 16px;
  padding: 12px 0 10px;
}

body[data-page="slides"] .filter-strip {
  top: 0;
  gap: 9px;
  padding: 11px 13px;
  border-radius: var(--radius);
}

body[data-page="slides"] .filter-strip .filter-grid {
  gap: 7px;
}

body[data-page="slides"] .filter-strip select,
body[data-page="slides"] .filter-strip input[type="search"],
body[data-page="slides"] .filter-strip .toolbar button {
  min-height: 32px;
  padding: 6px 8px;
}

body[data-page="slides"] .table-panel-head {
  gap: 12px;
}

body[data-page="slides"] .pagination-bar {
  min-height: 34px;
  margin-bottom: 6px;
}

#pageStatus {
  min-width: 160px;
}

.table-wrap {
  max-height: 640px;
  border-radius: var(--radius);
}

body[data-page="slides"] .table-wrap {
  max-height: calc(100vh - 250px);
  min-height: 360px;
}

th,
td {
  padding: 8px 10px;
  font-size: 12.5px;
}

th {
  font-size: 12px;
}

.kv {
  grid-template-columns: minmax(105px, 0.28fr) minmax(0, 0.72fr);
  gap: 9px;
  padding: 7px 0;
  font-size: 12.5px;
}

body[data-page="slide"] .slide-page-heading {
  grid-template-columns: minmax(140px, 0.2fr) minmax(0, 0.8fr);
  padding: 8px 0 10px;
}

body[data-page="slide"] .viewer-grid {
  grid-template-columns: minmax(620px, 1fr) minmax(260px, 320px);
  gap: 12px;
}

body[data-page="slide"] .selected-card {
  padding: 12px;
}

.detail-selectors {
  gap: 8px;
}

.spatial-result-panel,
.metadata-panel,
.map-method-panel {
  margin-top: 10px;
  border-radius: var(--radius);
}

.map-canvas-frame {
  padding: 8px 10px 0;
}

.map-caption {
  padding: 8px 11px 11px;
  font-size: 12px;
  line-height: 1.45;
}

.spatial-result-copy b {
  font-size: 16px;
}

.spatial-result-copy p {
  margin: 5px 0;
  font-size: 12.5px;
  line-height: 1.5;
}

body[data-page="evidence"] .evidence-heading,
body[data-page="genes"] .genes-heading,
body[data-page="cohorts"] .page-heading {
  padding-bottom: 12px;
}

.asset-layout {
  grid-template-columns: minmax(250px, 0.28fr) minmax(0, 0.72fr);
  gap: 12px;
}

.asset-gallery {
  gap: 8px;
  max-height: 680px;
}

.asset-card {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 9px;
  padding: 8px;
}

.asset-card img {
  width: 82px;
  height: 58px;
}

.asset-detail {
  min-height: 400px;
}

.asset-detail-figure {
  padding: 8px;
}

.asset-detail-figure img {
  max-height: 500px;
}

.asset-detail-copy {
  padding: 12px;
}

.figure-atlas-layout {
  gap: 12px;
}

.figure-rail {
  gap: 8px;
}

.figure-detail {
  border-radius: var(--radius);
}

.cohort-overview-grid,
.cohort-detail-grid {
  gap: 12px;
}

.cohort-argument-card,
.cohort-cross-card,
.cohort-detail-head,
.cohort-method-panel,
.cohort-resource-panel {
  padding: 14px;
}

.cohort-argument-card h2,
.cohort-detail-head h2 {
  font-size: 25px;
}

.cohort-cross-card h3,
.cohort-story-tab h3,
.cohort-evidence-card h3 {
  font-size: 17px;
}

.cohort-global-stats,
.cohort-resource-metrics {
  gap: 7px;
}

.cohort-global-stats div,
.cohort-resource-metrics div {
  padding: 8px;
  border-radius: var(--radius-sm);
}

.cohort-global-stats b,
.cohort-resource-metrics b {
  font-size: 18px;
}

.cohort-story-tabs {
  gap: 8px;
}

.cohort-story-tab {
  padding: 11px;
}

.cohort-detail-head {
  gap: 10px;
}

.cohort-method-stack {
  gap: 4px;
}

.cohort-slide-preview {
  min-height: 154px;
  border-radius: var(--radius);
}

.cohort-slide-preview img {
  max-height: 150px;
}

.cohort-evidence-row {
  gap: 10px;
}

.cohort-evidence-card {
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px;
  padding: 9px;
}

.cohort-evidence-image {
  min-height: 92px;
}

.gene-control-panel {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.48fr);
  gap: 14px;
  padding: 14px 16px;
}

.gene-control-copy h2 {
  font-size: 26px;
}

.gene-control-copy p {
  font-size: 13px;
  line-height: 1.5;
}

.gene-controls {
  gap: 8px;
}

.gene-context-panel {
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.44fr);
  gap: 12px;
  padding: 14px 16px;
}

.gene-context-main h2 {
  font-size: 40px;
  line-height: 1;
}

.gene-context-main p {
  font-size: 13px;
  line-height: 1.5;
}

.gene-context-metrics {
  gap: 7px;
}

.gene-context-metrics div {
  padding: 8px;
  border-radius: var(--radius-sm);
}

.gene-context-metrics b {
  font-size: 18px;
}

.gene-preview-grid {
  gap: 10px;
}

.gene-preview-head {
  padding: 12px 12px 9px;
}

.gene-preview-head h3 {
  font-size: 18px;
}

.gene-preview-head a {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 12px;
}

.gene-canvas-wrap {
  padding: 0 12px;
}

.gene-preview-canvas {
  border-radius: var(--radius-sm);
}

.gene-preview-meta {
  padding: 10px 12px 12px;
}

.gene-preview-meta span {
  font-size: 12px;
}

body[data-page="upload"] .upload-heading {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 14px;
}

body[data-page="upload"] .page-heading,
body[data-page="upload"] .upload-heading {
  padding-top: 12px;
  padding-bottom: 12px;
}

body[data-page="upload"] .backend-status-card {
  min-height: 0;
  padding: 12px;
}

body[data-page="upload"] .upload-grid {
  grid-template-columns: minmax(360px, 0.43fr) minmax(0, 0.57fr);
  gap: 12px;
}

body[data-page="upload"] .prediction-workbench,
body[data-page="upload"] .prediction-status-panel,
body[data-page="upload"] .upload-result-browser,
body[data-page="upload"] .job-history {
  padding: 14px;
}

body[data-page="upload"] .drop-zone {
  min-height: 150px;
  padding: 18px;
  border-radius: var(--radius);
}

body[data-page="upload"] .drop-zone strong {
  font-size: 17px;
}

body[data-page="upload"] .drop-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
}

body[data-page="upload"] .job-options {
  gap: 8px;
}

body[data-page="upload"] .sampling-panel,
body[data-page="upload"] .selected-file-panel,
body[data-page="upload"] .path-job-panel {
  padding: 10px;
  border-radius: var(--radius);
}

body[data-page="upload"] .progress-hero {
  padding: 12px;
  border-radius: var(--radius);
}

body[data-page="upload"] .result-browser-head {
  padding: 12px;
}

body[data-page="upload"] .result-browser-content {
  gap: 12px;
}

body[data-page="upload"] .result-stage-card {
  padding: 10px;
  border-radius: var(--radius);
}

body[data-page="upload"] .upload-result-canvas-wrap,
body[data-page="result"] .upload-result-canvas-wrap {
  min-height: 420px;
}

body[data-page="upload"] .job-history-row {
  padding: 10px;
  border-radius: var(--radius);
}

@media (max-width: 1320px) {
  body[data-page="overview"] .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="overview"] .pipeline-visual {
    grid-template-columns: minmax(220px, 1fr) minmax(135px, 0.36fr) minmax(220px, 1fr);
  }

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

@media (max-width: 1180px) {
  .side-nav {
    grid-template-columns: 1fr;
  }

  body[data-page="overview"] .top-panel,
  body[data-page="overview"] .overview-lab-grid,
  body[data-page="upload"] .upload-heading,
  body[data-page="upload"] .upload-grid,
  .gene-control-panel,
  .gene-context-panel,
  body[data-page="slide"] .viewer-grid,
  .asset-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="overview"] .overview-lab-grid {
    grid-template-areas:
      "pipeline"
      "cohort"
      "availability";
  }

  body[data-page="overview"] .pipeline-visual {
    grid-template-columns: 1fr;
  }

  body[data-page="overview"] .workflow-image {
    height: 230px;
  }
}

@media (max-width: 760px) {
  .side-nav,
  main {
    width: min(calc(100% - 28px), var(--site-max));
  }

  .side-nav a,
  button,
  .button-link,
  .ghost-link,
  .hero-actions a {
    min-height: 42px;
  }

  h1,
  .page-heading h1,
  .top-panel h1,
  body[data-page="overview"] .top-panel h1,
  body[data-page="slides"] .slides-page-heading h1,
  body[data-page="slide"] .slide-page-heading h1,
  body[data-page="upload"] .page-heading h1 {
    font-size: 30px;
  }

  body[data-page="overview"] .top-panel h1 span {
    display: block;
  }

  body[data-page="overview"] .status-strip,
  body[data-page="overview"] .availability-grid,
  body[data-page="overview"] .feature-ribbon,
  .gene-preview-grid,
  .evidence-summary {
    grid-template-columns: 1fr;
  }

  body[data-page="overview"] .workflow-image {
    height: 210px;
  }

  body[data-page="overview"] .cohort-finding-board {
    grid-template-columns: 1fr;
  }

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

/* Evidence page density refinement, 2026-06-10 */
.manuscript-figure-shell {
  gap: 10px;
}

.figure-atlas-header {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.46fr);
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
}

.figure-atlas-copy h2 {
  margin: 5px 0 7px;
  font-size: 30px;
  line-height: 1.12;
}

.figure-atlas-copy p {
  max-width: 980px;
  font-size: 13px;
  line-height: 1.55;
}

.figure-atlas-stats {
  gap: 7px;
}

.figure-atlas-stats div {
  min-height: 66px;
  padding: 10px 12px;
  border-radius: var(--radius);
}

.figure-atlas-stats b {
  margin-top: 3px;
  font-size: 24px;
}

.figure-atlas-controls {
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius);
}

.figure-rail-card {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 9px;
  padding: 8px;
  border-radius: var(--radius);
}

.figure-rail-thumb {
  height: 68px;
}

.figure-rail-copy b {
  font-size: 13px;
}

.figure-rail-copy small {
  font-size: 11px;
}

.figure-detail-head {
  gap: 12px;
  padding: 14px 16px;
}

.figure-detail-head h2 {
  margin-top: 5px;
  font-size: 25px;
  line-height: 1.14;
}

.figure-detail-stage {
  padding: 10px;
}

.figure-detail-stage img {
  max-height: 720px;
}

.figure-detail-grid {
  padding: 0 16px 14px;
}

.figure-detail-grid .kv {
  padding: 10px 0;
}

@media (max-width: 1180px) {
  .figure-atlas-header {
    grid-template-columns: 1fr;
  }
}

/* Mobile navigation should wrap into a stable grid, not require horizontal scrolling. */
@media (max-width: 760px) {
  .side-nav {
    gap: 8px;
  }

  .side-nav nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }

  .side-nav a {
    justify-content: center;
    width: 100%;
    padding-inline: 8px;
    white-space: normal;
    text-align: center;
  }

  .side-nav nav a:last-child {
    margin-left: 0;
  }
}

/* Desktop workflow engine alignment fix, 2026-06-10 */
body[data-page="overview"] .workflow-engine {
  justify-items: center;
  text-align: center;
}

body[data-page="overview"] .engine-tag {
  margin-inline: auto;
  text-align: center;
}

body[data-page="overview"] .engine-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body[data-page="overview"] .engine-ring span {
  left: 50%;
  transform: translateX(-50%);
}

body[data-page="overview"] .engine-ring b,
body[data-page="overview"] .engine-ring small {
  width: 100%;
  text-align: center;
}

body[data-page="overview"] .engine-metrics i {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Desktop workflow model card text fit, 2026-06-10 */
@media (min-width: 761px) {
  body[data-page="overview"] .workflow-engine {
    justify-items: center;
  }

  body[data-page="overview"] .engine-ring {
    box-sizing: border-box;
    width: min(150px, calc(100% - 24px));
    min-width: 138px;
    padding: 14px 12px;
    overflow: hidden;
  }

  body[data-page="overview"] .engine-ring b {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    text-overflow: clip;
  }

  body[data-page="overview"] .engine-ring small {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
  }
}

/* Bilingual navigation control, 2026-06-10 */
html[data-lang="en"] .brand::after {
  content: "Resource";
}

.language-toggle {
  display: inline-grid;
  grid-template-columns: auto 18px auto;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(10, 106, 91, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.78);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.language-toggle:hover {
  border-color: rgba(10, 106, 91, 0.32);
  color: var(--green);
  transform: translateY(-1px);
}

.language-toggle span {
  position: relative;
  z-index: 1;
}

.language-toggle i {
  position: relative;
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: rgba(17, 22, 26, 0.14);
  box-shadow: inset 0 0 0 1px rgba(17, 22, 26, 0.08);
}

.language-toggle i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  transition: transform 160ms ease;
}

.language-toggle.is-en {
  border-color: rgba(17, 22, 26, 0.22);
  background: #11161a;
  color: #fffefb;
}

.language-toggle.is-en i {
  background: rgba(255, 255, 255, 0.18);
}

.language-toggle.is-en i::after {
  transform: translateX(8px);
  background: #9ce1d0;
}

/* Stable desktop navigation rails for bilingual labels, 2026-06-10 */
@media (min-width: 1181px) {
  .side-nav nav {
    display: grid;
    grid-template-columns: 92px 96px 146px 92px 172px;
    justify-content: end;
    align-items: center;
    gap: 3px;
  }

  .side-nav nav a,
  .side-nav nav .language-toggle {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin-left: 0;
    justify-content: center;
    white-space: nowrap;
  }

  .side-nav nav a {
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-inline: 8px;
  }

  .side-nav nav .language-toggle {
    grid-template-columns: 1fr 18px 1fr;
    padding-inline: 8px;
  }

  html[data-lang="en"] .side-nav nav a {
    font-size: 12.5px;
  }
}

/* Evidence page compact data-redraw pass, 2026-06-15 */
body[data-page="evidence"] .page-heading {
  padding-bottom: 10px;
}

body[data-page="evidence"] .page-heading h1 {
  font-size: clamp(34px, 4.2vw, 56px);
}

body[data-page="evidence"] .page-heading .lead {
  max-width: 1080px;
}

body[data-page="evidence"] .figure-atlas-header {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  padding: 14px 16px;
}

body[data-page="evidence"] .figure-atlas-copy h2 {
  font-size: clamp(24px, 2vw, 34px);
}

body[data-page="evidence"] .figure-atlas-stats b {
  font-size: 22px;
}

/* Source-data evidence dashboard, 2026-06-15 */
body[data-page="evidence"] {
  --ink: #101820;
  --ink-soft: #24333a;
  --muted: #5f6d73;
  --paper: #f6f8f3;
  --panel: #fffffb;
  --green: #006d6f;
  --blue: #2f6f89;
  --rose: #b0476f;
  --amber: #c1862f;
  --violet: #665c99;
  --rust: #9b6041;
  background:
    linear-gradient(180deg, rgba(248, 250, 245, 0.98), rgba(240, 244, 238, 0.96)),
    repeating-linear-gradient(90deg, rgba(0, 109, 111, 0.035) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(47, 111, 137, 0.025) 0 1px, transparent 1px 64px);
}

body[data-page="evidence"] main {
  padding-top: 14px;
}

body[data-page="evidence"] .interactive-evidence-shell {
  gap: 12px;
}

body[data-page="evidence"] .evidence-jump-nav {
  position: sticky;
  top: 8px;
  z-index: 4;
  align-items: center;
  padding: 8px;
  border-color: rgba(16, 32, 39, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.96), rgba(242, 247, 243, 0.94));
  box-shadow: 0 12px 26px rgba(16, 32, 39, 0.07);
  backdrop-filter: blur(10px);
}

body[data-page="evidence"] .evidence-jump-nav a {
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.82);
}

.evidence-overview-panel {
  display: grid;
  grid-template-columns: minmax(360px, 0.42fr) minmax(0, 0.58fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(16, 32, 39, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(0, 109, 111, 0.09), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 251, 0.99), rgba(244, 248, 243, 0.95));
  box-shadow: 0 18px 40px rgba(16, 32, 39, 0.075);
}

.evidence-overview-copy span,
.evidence-overview-card span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-overview-copy h2 {
  margin: 6px 0 8px;
  font-size: 28px;
  line-height: 1.12;
}

.evidence-overview-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.evidence-overview-card {
  display: grid;
  align-content: start;
  min-height: 112px;
  padding: 10px;
  border: 1px solid rgba(16, 32, 39, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 251, 0.78);
  color: var(--ink);
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.evidence-overview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 102, 87, 0.34);
  box-shadow: 0 12px 26px rgba(48, 39, 29, 0.08);
}

.evidence-overview-card b {
  margin: 10px 0 5px;
  font-size: 15px;
  line-height: 1.2;
}

.evidence-overview-card small {
  color: var(--muted);
  line-height: 1.35;
}

body[data-page="evidence"] .evidence-module {
  position: relative;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.995), rgba(244, 248, 243, 0.95));
}

body[data-page="evidence"] .evidence-module::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--green);
}

.evidence-module.tone-application::before,
.evidence-overview-card.tone-application {
  --tone: var(--rose);
}

.evidence-module.tone-domain::before,
.evidence-overview-card.tone-domain {
  --tone: var(--blue);
}

.evidence-module.tone-cohort::before,
.evidence-overview-card.tone-cohort {
  --tone: var(--violet);
}

.evidence-module.tone-spatial::before,
.evidence-overview-card.tone-spatial {
  --tone: var(--amber);
}

.evidence-module.tone-pathology::before,
.evidence-overview-card.tone-pathology {
  --tone: var(--rust);
}

.evidence-module.tone-closure::before,
.evidence-overview-card.tone-closure {
  --tone: #2f68a0;
}

.evidence-module[class*="tone-"]::before {
  background: var(--tone, var(--green));
}

.evidence-overview-card[class*="tone-"] {
  border-top: 4px solid var(--tone, var(--green));
}

body[data-page="evidence"] .evidence-module-head {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.42fr);
  padding: 18px 20px 14px 24px;
  border-bottom: 1px solid rgba(16, 32, 39, 0.12);
}

body[data-page="evidence"] .evidence-module-head h2 {
  margin-top: 5px;
  font-size: 27px;
}

.evidence-module-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.evidence-module-pills span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(16, 32, 39, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 251, 0.78);
}

.evidence-module-pills em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.evidence-module-pills b {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.evidence-logic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0 20px 0 24px;
  border-bottom: 1px solid rgba(16, 32, 39, 0.12);
}

.evidence-logic-grid div {
  padding: 14px 16px 14px 0;
}

.evidence-logic-grid div + div {
  padding-left: 16px;
  border-left: 1px solid rgba(16, 32, 39, 0.12);
}

.evidence-logic-grid b {
  color: var(--green);
  font-size: 12px;
}

.evidence-logic-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

body[data-page="evidence"] .redrawn-chart-grid {
  padding: 14px 16px 18px 24px;
  gap: 14px;
}

body[data-page="evidence"] .redrawn-chart-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(247, 250, 246, 0.92));
  box-shadow: 0 10px 24px rgba(16, 32, 39, 0.055);
}

body[data-page="evidence"] .redrawn-chart-head {
  align-items: start;
}

body[data-page="evidence"] .redrawn-chart-head b {
  display: block;
  margin-top: 3px;
  text-align: left;
}

body[data-page="evidence"] .redrawn-chart-head em {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(16, 32, 39, 0.11);
  border-radius: 999px;
  color: #5f6d73;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  background: rgba(246, 248, 243, 0.9);
}

body[data-page="evidence"] .mini-chart {
  min-height: 210px;
}

.redrawn-chart-footnote {
  display: grid;
  gap: 7px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(16, 32, 39, 0.11);
  background: rgba(250, 252, 248, 0.84);
}

.redrawn-chart-footnote code {
  width: fit-content;
  max-width: 100%;
  padding: 3px 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 109, 111, 0.18);
  border-radius: 6px;
  background: rgba(234, 247, 244, 0.72);
  color: var(--green);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.redrawn-chart-footnote strong {
  color: var(--ink);
  font-weight: 900;
}

body[data-page="evidence"] .mini-chart {
  background:
    linear-gradient(90deg, rgba(0, 109, 111, 0.035) 0 1px, transparent 1px 42px),
    linear-gradient(0deg, rgba(47, 111, 137, 0.026) 0 1px, transparent 1px 38px),
    #fffffb;
}

body[data-page="evidence"] .chart-axis,
body[data-page="evidence"] .chart-zero {
  stroke: rgba(16, 32, 39, 0.32);
}

body[data-page="evidence"] .chart-guide {
  stroke: rgba(16, 32, 39, 0.12);
  stroke-width: 1.2;
}

body[data-page="evidence"] .chart-row-line {
  stroke: rgba(16, 32, 39, 0.08);
  stroke-width: 1;
}

body[data-page="evidence"] .chart-stem {
  stroke: rgba(16, 32, 39, 0.22);
  stroke-width: 2.2;
  stroke-linecap: round;
}

body[data-page="evidence"] .chart-cell {
  fill: rgba(246, 248, 243, 0.72);
  stroke: rgba(16, 32, 39, 0.07);
}

body[data-page="evidence"] .mini-chart [data-tooltip],
body[data-page="evidence"] .coverage-tiles [data-tooltip],
body[data-page="evidence"] .metric-tile-chart [data-tooltip],
body[data-page="evidence"] .composition-track [data-tooltip] {
  cursor: crosshair;
}

.composition-chart {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: #fffffb;
}

.composition-track {
  position: relative;
  height: 24px;
  overflow: hidden;
  border: 1px solid rgba(16, 32, 39, 0.12);
  border-radius: 999px;
  background: rgba(16, 32, 39, 0.06);
}

.composition-track span {
  position: absolute;
  top: 0;
  bottom: 0;
}

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

.composition-legend div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(16, 32, 39, 0.1);
  border-radius: 8px;
  background: rgba(247, 250, 246, 0.8);
}

.composition-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.composition-legend b,
.composition-legend span {
  min-width: 0;
  font-size: 12px;
}

.composition-legend b {
  color: var(--ink);
}

.composition-legend span {
  grid-column: 2;
  color: var(--muted);
}

.coverage-tiles,
.metric-tile-chart {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: #fffffb;
}

.coverage-tiles article,
.metric-tile-chart article {
  position: relative;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(16, 32, 39, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.98), rgba(244, 249, 247, 0.88));
  box-shadow: 0 8px 18px rgba(16, 32, 39, 0.045);
}

.coverage-tiles span,
.metric-tile-chart span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.coverage-tiles b,
.metric-tile-chart b {
  display: block;
  margin: 5px 0 2px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.coverage-tiles small,
.coverage-tiles em,
.metric-tile-chart small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.coverage-stack {
  display: flex;
  height: 9px;
  margin: 12px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 32, 39, 0.08);
}

.coverage-stack i {
  display: block;
  height: 100%;
}

.metric-tile-chart strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.metric-tile-chart i {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 4px;
  border-radius: 999px;
}

.chart-tooltip {
  position: fixed;
  z-index: 1000;
  display: grid;
  gap: 3px;
  max-width: 320px;
  padding: 9px 10px;
  border: 1px solid rgba(16, 32, 39, 0.18);
  border-radius: 8px;
  background: rgba(16, 24, 32, 0.94);
  color: #fffffb;
  box-shadow: 0 16px 38px rgba(16, 32, 39, 0.22);
  pointer-events: none;
}

.chart-tooltip b {
  font-size: 12px;
  line-height: 1.3;
}

.chart-tooltip span {
  color: rgba(255, 255, 251, 0.78);
  font-size: 11px;
  line-height: 1.25;
}

.redrawn-chart-footnote p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .evidence-overview-panel,
  body[data-page="evidence"] .evidence-module-head,
  .evidence-logic-grid {
    grid-template-columns: 1fr;
  }

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

  .evidence-logic-grid div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(183, 170, 152, 0.24);
  }
}

/* Spatial Lab redesign, 2026-06-16
   Direction: compact research resource site with a light reading surface and
   a controlled dark workflow band. This block intentionally sits last. */
:root {
  --ink: #111820;
  --ink-soft: #24313a;
  --muted: #627179;
  --paper: #f7f9f6;
  --panel: #fffffc;
  --panel-strong: #f0f5f2;
  --line: #d9e1dc;
  --line-strong: #aebdb7;
  --green: #006d6f;
  --blue: #315f7d;
  --rose: #b64b73;
  --amber: #b9812e;
  --violet: #6a619a;
  --rust: #986044;
  --soft-green: #e7f3f0;
  --soft-blue: #e7eff4;
  --soft-rust: #f3e8e1;
  --soft-rose: #f6e5eb;
  --radius: 10px;
  --radius-sm: 6px;
  --site-max: 1460px;
  --shadow: 0 18px 42px rgba(16, 24, 32, 0.09);
  --shadow-soft: 0 10px 26px rgba(16, 24, 32, 0.065);
  --shadow-tight: 0 6px 16px rgba(16, 24, 32, 0.075);
}

html {
  scroll-padding-top: 92px;
}

body,
body[data-page="evidence"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(246, 249, 246, 0.99) 42%, rgba(240, 245, 243, 0.98)),
    repeating-linear-gradient(90deg, rgba(0, 109, 111, 0.026) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(49, 95, 125, 0.018) 0 1px, transparent 1px 64px);
  color: var(--ink);
  font-family: "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

body::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), transparent 34%),
    linear-gradient(120deg, transparent 0 54%, rgba(0, 109, 111, 0.035) 54% 54.18%, transparent 54.18% 100%);
}

.side-nav,
main {
  width: min(calc(100% - 48px), var(--site-max));
}

main {
  padding: 12px 0 44px;
}

.side-nav {
  grid-template-columns: minmax(250px, auto) minmax(0, 1fr);
  min-height: 58px;
  margin-top: 10px;
  padding: 7px 8px 7px 10px;
  border: 1px solid rgba(17, 24, 32, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(247, 250, 247, 0.95)),
    linear-gradient(90deg, rgba(0, 109, 111, 0.06), transparent 42%);
  box-shadow: 0 14px 30px rgba(16, 24, 32, 0.07);
  backdrop-filter: blur(16px);
}

.brand {
  gap: 10px;
}

.brand::after {
  content: "Resource";
  margin-left: 4px;
  padding: 3px 7px;
  border-color: rgba(0, 109, 111, 0.18);
  border-radius: 999px;
  background: #f4faf8;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}

html[data-lang="en"] .brand::after {
  content: "Resource";
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, #101820 0 54%, #006d6f 54% 75%, #b64b73 75%);
  box-shadow: 0 10px 22px rgba(16, 24, 32, 0.16);
  font-size: 13px;
}

.brand strong {
  color: #101820;
  font-size: 15px;
  line-height: 1.08;
}

.brand span {
  margin-top: 2px;
  color: #627179;
  font-size: 11px;
}

.side-nav nav {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(17, 24, 32, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 252, 0.72);
}

.side-nav a {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 7px;
  color: #26333b;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.2;
}

.side-nav nav a:last-child {
  margin-left: 4px;
  border-color: rgba(0, 109, 111, 0.18);
  background: rgba(231, 243, 240, 0.86);
  color: var(--green);
}

.side-nav a:hover,
.side-nav a.active {
  background: #111820;
  border-color: #111820;
  color: #fffffc;
  box-shadow: 0 8px 18px rgba(16, 24, 32, 0.14);
}

.side-nav nav a:last-child:hover,
.side-nav nav a:last-child.active {
  background: var(--green);
  border-color: var(--green);
  color: #fffffc;
}

.language-toggle {
  min-height: 34px;
  border-color: rgba(17, 24, 32, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 252, 0.86);
  color: #54636b;
}

.language-toggle.is-en {
  background: #111820;
  color: #fffffc;
}

@media (min-width: 1181px) {
  .side-nav nav {
    display: grid;
    grid-template-columns: 92px 96px 146px 92px 172px;
    justify-content: end;
    align-items: center;
    gap: 3px;
  }

  .side-nav nav a,
  .side-nav nav .language-toggle {
    width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
  }

  html[data-lang="en"] .side-nav nav a {
    font-size: 12px;
  }
}

.kicker,
.page-heading .kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

h1,
.page-heading h1,
.top-panel h1,
body[data-page="overview"] .top-panel h1,
body[data-page="slides"] .slides-page-heading h1,
body[data-page="slide"] .slide-page-heading h1,
body[data-page="upload"] .page-heading h1 {
  color: #0f1720;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead,
body[data-page="overview"] .top-panel .lead,
body[data-page="slides"] .slides-page-heading .lead,
body[data-page="slide"] .slide-page-heading .lead,
body[data-page="upload"] .page-heading .lead {
  max-width: 980px;
  color: #5b6971;
  font-size: 13.5px;
  line-height: 1.62;
}

button,
.button-link,
.ghost-link,
.hero-actions a,
body[data-page="upload"] .job-history-actions .report-link,
body[data-page="upload"] .job-links .report-link {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-color: #111820;
  background: #111820;
  color: #fffffc;
  font-size: 13px;
  font-weight: 850;
}

.ghost-link,
.ghost-button,
.hero-actions a:not(.hero-primary-link),
body[data-page="upload"] .job-history-actions .report-link {
  border-color: rgba(17, 24, 32, 0.16);
  background: rgba(255, 255, 252, 0.84);
  color: #17222a;
}

.hero-actions {
  gap: 8px;
  margin-top: 12px;
}

.panel,
.metric-card,
.evidence-card,
.tech-panel,
.asset-detail,
.asset-card,
.cohort-argument-card,
.cohort-cross-card,
.cohort-detail-shell,
.cohort-story-tab,
.gene-control-panel,
.gene-context-panel,
.gene-preview-card,
body[data-page="upload"] .prediction-workbench,
body[data-page="upload"] .prediction-status-panel,
body[data-page="upload"] .upload-result-browser,
body[data-page="upload"] .job-history {
  border: 1px solid rgba(17, 24, 32, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(248, 251, 248, 0.95));
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 14px;
}

.page-heading {
  padding: 16px 0 12px;
}

.panel-title h2,
.tech-panel-head b,
.asset-detail-copy h2,
.asset-detail-copy h3 {
  color: #111820;
  font-size: 18px;
  line-height: 1.18;
}

.panel-title span {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #111820;
  color: #fffffc;
  font-size: 11px;
}

body[data-page="overview"] .top-panel {
  position: relative;
  grid-template-columns: minmax(0, 0.95fr) minmax(500px, 0.72fr);
  gap: 28px;
  align-items: center;
  min-height: 210px;
  padding: 18px 0 18px;
  border-bottom: 1px solid rgba(17, 24, 32, 0.1);
}

body[data-page="overview"] .top-panel::before {
  width: 190px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--rose), transparent);
}

body[data-page="overview"] .top-panel h1 {
  max-width: 780px;
  font-size: clamp(32px, 3.05vw, 44px);
}

body[data-page="overview"] .top-panel h1 span {
  display: inline;
}

body[data-page="overview"] .hero-title-main {
  margin-right: 0.2em;
}

body[data-page="overview"] .status-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body[data-page="overview"] .status-strip div {
  min-height: 86px;
  padding: 12px 13px;
  border-color: rgba(17, 24, 32, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(247, 250, 248, 0.94));
  box-shadow: var(--shadow-tight);
}

body[data-page="overview"] .status-strip div::before {
  height: 3px;
  background: linear-gradient(90deg, var(--green), rgba(0, 109, 111, 0.12));
}

body[data-page="overview"] .status-strip span {
  color: #5e6d75;
  font-size: 11px;
  font-weight: 850;
}

body[data-page="overview"] .status-strip b {
  margin-top: 8px;
  color: #0b5557;
  font-size: 28px;
  line-height: 1;
}

body[data-page="overview"] .overview-lab-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "pipeline pipeline"
    "cohort availability";
  gap: 12px;
  margin: 12px 0 14px;
}

body[data-page="overview"] .pipeline-panel {
  grid-area: pipeline;
  overflow: hidden;
  border-color: rgba(255, 255, 252, 0.12);
  background:
    linear-gradient(135deg, rgba(17, 24, 32, 0.98), rgba(25, 38, 43, 0.96)),
    #111820;
  color: rgba(255, 255, 252, 0.86);
  box-shadow: 0 24px 52px rgba(16, 24, 32, 0.19);
}

body[data-page="overview"] .pipeline-panel::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 252, 0.055) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(255, 255, 252, 0.04) 0 1px, transparent 1px 50px);
}

body[data-page="overview"] .pipeline-panel .tech-panel-head {
  align-items: center;
  padding: 14px 16px 8px;
}

body[data-page="overview"] .pipeline-panel .tech-panel-head span {
  color: #9edfd5;
}

body[data-page="overview"] .pipeline-panel .tech-panel-head b {
  color: #fffffc;
  font-size: 22px;
  text-align: right;
}

body[data-page="overview"] .pipeline-visual {
  grid-template-columns: minmax(280px, 0.95fr) minmax(170px, 0.38fr) minmax(300px, 1fr);
  gap: 14px;
  min-height: 0;
  margin: 8px 16px 0;
  padding: 14px;
  border-color: rgba(255, 255, 252, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(158, 223, 213, 0.08) 0 1px, transparent 1px 54px),
    linear-gradient(0deg, rgba(255, 255, 252, 0.05) 0 1px, transparent 1px 46px),
    rgba(255, 255, 252, 0.035);
}

body[data-page="overview"] .pipeline-visual::before,
body[data-page="overview"] .pipeline-visual::after {
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(158, 223, 213, 0.94), rgba(182, 75, 115, 0.82), transparent);
}

body[data-page="overview"] .workflow-pane {
  min-height: 0;
  padding: 10px;
  border-color: rgba(255, 255, 252, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(241, 246, 244, 0.93));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

body[data-page="overview"] .workflow-pane-head {
  margin-bottom: 8px;
}

body[data-page="overview"] .workflow-pane-head span {
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
}

body[data-page="overview"] .workflow-pane-head b {
  font-size: 15px;
}

body[data-page="overview"] .workflow-image {
  height: 190px;
  min-height: 0;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(90deg, rgba(0, 109, 111, 0.04) 0 1px, transparent 1px 24px),
    linear-gradient(0deg, rgba(182, 75, 115, 0.035) 0 1px, transparent 1px 24px),
    #fbfcf8;
}

body[data-page="overview"] .workflow-input .workflow-image img,
body[data-page="overview"] .workflow-output .workflow-image img,
body[data-page="overview"] .workflow-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body[data-page="overview"] .workflow-pane > small {
  margin-top: 7px;
  color: #627179;
  font-size: 11px;
}

body[data-page="overview"] .workflow-engine {
  gap: 9px;
  align-self: center;
  padding: 10px 4px;
  text-align: center;
}

body[data-page="overview"] .engine-tag {
  display: inline-flex;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid rgba(158, 223, 213, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 252, 0.07);
  color: #9edfd5;
  font-size: 10px;
  font-weight: 900;
}

body[data-page="overview"] .engine-ring {
  width: min(128px, 100%);
  min-width: 120px;
  border: 1px solid rgba(158, 223, 213, 0.42);
  border-radius: 16px;
  background:
    radial-gradient(circle at center, rgba(17, 24, 32, 0.95) 0 54%, transparent 55%),
    conic-gradient(from 220deg, #9edfd5, #b64b73, #b9812e, #9edfd5);
}

body[data-page="overview"] .engine-ring b {
  color: #fffffc;
  font-size: 14px;
}

body[data-page="overview"] .engine-ring small {
  color: rgba(255, 255, 252, 0.68);
  font-size: 10px;
}

body[data-page="overview"] .engine-metrics {
  gap: 6px;
}

body[data-page="overview"] .engine-metrics i {
  padding: 6px 8px;
  border-color: rgba(255, 255, 252, 0.13);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 252, 0.065);
  color: rgba(255, 255, 252, 0.78);
  font-size: 11px;
}

body[data-page="overview"] .pipeline-foot {
  padding: 10px 16px 14px;
}

body[data-page="overview"] .pipeline-foot span {
  padding: 5px 8px;
  border-color: rgba(255, 255, 252, 0.13);
  color: rgba(255, 255, 252, 0.72);
  font-size: 11px;
}

body[data-page="overview"] .cohort-panel {
  grid-area: cohort;
}

body[data-page="overview"] .availability-panel {
  grid-area: availability;
}

body[data-page="overview"] .cohort-panel,
body[data-page="overview"] .availability-panel {
  min-height: 212px;
}

body[data-page="overview"] .tech-panel-head,
body[data-page="overview"] .cohort-panel .tech-panel-head,
body[data-page="overview"] .availability-panel .tech-panel-head {
  padding: 13px 15px 8px;
}

body[data-page="overview"] .tech-panel-head span {
  color: var(--green);
  font-size: 11px;
}

body[data-page="overview"] .cohort-panel .tech-panel-head b,
body[data-page="overview"] .availability-panel .tech-panel-head b {
  font-size: 20px;
}

body[data-page="overview"] .cohort-band-list {
  gap: 9px;
  padding: 4px 15px 14px;
}

body[data-page="overview"] .cohort-band {
  gap: 6px;
}

body[data-page="overview"] .cohort-band strong {
  color: #111820;
  font-size: 14px;
}

body[data-page="overview"] .cohort-band span,
body[data-page="overview"] .cohort-band small {
  color: #66757d;
  font-size: 11.5px;
}

body[data-page="overview"] .band-stack {
  height: 18px;
  border-color: rgba(17, 24, 32, 0.1);
}

body[data-page="overview"] .band-stack i {
  height: 4px;
}

body[data-page="overview"] .band-tile {
  top: 7px;
}

body[data-page="overview"] .band-he {
  top: 13px;
}

body[data-page="overview"] .availability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 4px 15px 10px;
}

body[data-page="overview"] .availability-cell {
  min-height: 74px;
  padding: 10px 8px;
  border-color: rgba(17, 24, 32, 0.1);
  background: rgba(255, 255, 252, 0.78);
}

body[data-page="overview"] .availability-cell b {
  color: #111820;
  font-size: 15px;
}

body[data-page="overview"] .feature-ribbon {
  margin: 0 15px 14px;
  border-color: rgba(17, 24, 32, 0.1);
}

body[data-page="overview"] .feature-ribbon span {
  padding: 8px 6px;
  background: rgba(255, 255, 252, 0.76);
}

body[data-page="overview"] .survival-card {
  grid-template-columns: minmax(340px, 0.42fr) minmax(420px, 0.58fr);
  gap: 12px;
  padding: 12px;
  border-color: rgba(17, 24, 32, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(247, 250, 248, 0.95));
}

.survival-copy {
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #111820, #1a2b30);
}

.survival-copy h2 {
  font-size: clamp(20px, 1.55vw, 27px);
  line-height: 1.2;
}

.survival-copy p,
.survival-method-grid .kv div {
  font-size: 12.5px;
  line-height: 1.55;
}

.survival-figure {
  min-height: 270px;
  padding: 12px;
}

.survival-figure img {
  max-height: 340px;
}

body[data-page="overview"] .home-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(360px, 0.42fr);
  gap: 14px;
  align-items: end;
  padding: 15px 18px;
  border: 1px solid rgba(17, 24, 32, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(0, 109, 111, 0.08), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(247, 250, 248, 0.94));
  box-shadow: var(--shadow-soft);
}

body[data-page="overview"] .home-section-head p {
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
}

body[data-page="overview"] .home-section-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.18;
}

body[data-page="overview"] .home-section-head span {
  color: #627179;
  font-size: 13px;
  line-height: 1.55;
}

body[data-page="overview"] .evidence-path-grid {
  gap: 10px;
  margin-top: 10px;
}

body[data-page="overview"] .evidence-path-card {
  grid-template-rows: 120px minmax(0, 1fr);
  min-height: 286px;
  overflow: hidden;
  border-color: rgba(17, 24, 32, 0.12);
  background: #fffffc;
  box-shadow: var(--shadow-tight);
}

body[data-page="overview"] .evidence-path-figure {
  border-bottom-color: rgba(17, 24, 32, 0.09);
  background: #f7faf7;
}

body[data-page="overview"] .evidence-path-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body[data-page="overview"] .evidence-path-copy {
  padding: 12px;
}

body[data-page="overview"] .evidence-path-copy h3 {
  font-size: 16px;
  line-height: 1.24;
}

body[data-page="overview"] .evidence-path-copy p {
  font-size: 12.5px;
  line-height: 1.48;
}

body[data-page="overview"] .cohort-finding-board {
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 0.58fr);
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border-color: rgba(17, 24, 32, 0.12);
  background:
    linear-gradient(135deg, rgba(17, 24, 32, 0.98), rgba(24, 37, 42, 0.95));
}

body[data-page="overview"] .cohort-finding-copy span {
  color: #9edfd5;
}

body[data-page="overview"] .cohort-finding-copy h3 {
  color: #fffffc;
  font-size: 23px;
}

body[data-page="overview"] .cohort-finding-copy p {
  color: rgba(255, 255, 252, 0.72);
}

body[data-page="overview"] .cohort-finding-card {
  border-color: rgba(255, 255, 252, 0.13);
  background: rgba(255, 255, 252, 0.065);
  color: rgba(255, 255, 252, 0.82);
}

body[data-page="overview"] .cohort-finding-card h4,
body[data-page="overview"] .cohort-finding-card b {
  color: #fffffc;
}

body[data-page="overview"] .home-action-strip {
  margin-top: 12px;
}

body[data-page="overview"] .home-action-grid,
body[data-page="overview"] .home-action-strip {
  gap: 10px;
}

body[data-page="overview"] .home-action-card {
  min-height: 154px;
  padding: 15px;
  border-color: rgba(17, 24, 32, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(247, 250, 248, 0.94));
}

body[data-page="overview"] .home-action-card.primary-action {
  background:
    linear-gradient(135deg, rgba(0, 109, 111, 0.12), transparent 48%),
    #fffffc;
}

body[data-page="overview"] .home-action-card h2,
body[data-page="overview"] .home-action-card h3 {
  font-size: 18px;
  line-height: 1.22;
}

body[data-page="slides"] .filter-strip {
  top: 0;
  padding: 11px 12px;
  border-color: rgba(17, 24, 32, 0.12);
  background: rgba(255, 255, 252, 0.95);
}

body[data-page="slides"] .table-wrap {
  max-height: calc(100vh - 250px);
  border-color: rgba(17, 24, 32, 0.11);
}

th {
  background: #edf4f1;
  color: #26333b;
}

td,
th {
  padding: 8px 10px;
  font-size: 12.5px;
}

.gene-control-panel {
  grid-template-columns: minmax(0, 0.7fr) minmax(380px, 0.3fr);
  gap: 14px;
  padding: 15px 16px;
  background:
    linear-gradient(90deg, rgba(0, 109, 111, 0.08), transparent 48%),
    #fffffc;
}

.gene-control-copy h2 {
  font-size: 25px;
  line-height: 1.18;
}

.gene-controls {
  align-content: center;
  gap: 8px;
}

.gene-context-panel {
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 0.28fr);
  gap: 12px;
  padding: 14px 16px;
}

.gene-context-main h2 {
  font-size: 38px;
}

.gene-preview-grid {
  gap: 10px;
}

.gene-preview-card {
  overflow: hidden;
  background: #fffffc;
}

.gene-preview-head {
  padding: 12px 12px 8px;
}

.gene-preview-head h3 {
  font-size: 18px;
}

.gene-preview-canvas {
  border-radius: var(--radius-sm);
  background: #f5f8f5;
}

.cohort-overview-grid,
.cohort-detail-grid,
.cohort-evidence-row {
  gap: 12px;
}

.cohort-argument-card,
.cohort-cross-card,
.cohort-detail-head,
.cohort-method-panel,
.cohort-resource-panel {
  padding: 14px;
}

.cohort-story-tab {
  padding: 12px;
}

.cohort-story-tab.selected {
  border-color: rgba(0, 109, 111, 0.4);
  background:
    linear-gradient(180deg, rgba(231, 243, 240, 0.92), rgba(255, 255, 252, 0.95));
}

body[data-page="evidence"] .evidence-jump-nav {
  top: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 252, 0.96);
}

.evidence-overview-panel {
  grid-template-columns: minmax(360px, 0.38fr) minmax(0, 0.62fr);
  gap: 14px;
  padding: 15px;
}

.evidence-overview-copy h2 {
  font-size: 26px;
}

.evidence-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="evidence"] .evidence-module-head {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.38fr);
  padding: 16px 18px 14px 22px;
}

body[data-page="evidence"] .redrawn-chart-card {
  border-color: rgba(17, 24, 32, 0.11);
  background: #fffffc;
}

body[data-page="evidence"] .mini-chart {
  min-height: 220px;
  background:
    linear-gradient(90deg, rgba(0, 109, 111, 0.032) 0 1px, transparent 1px 42px),
    linear-gradient(0deg, rgba(49, 95, 125, 0.024) 0 1px, transparent 1px 38px),
    #fffffc;
}

body[data-page="upload"] .upload-heading {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: 14px;
  padding-top: 14px;
  padding-bottom: 12px;
}

body[data-page="upload"] .backend-status-card {
  padding: 12px;
  border-radius: var(--radius);
}

body[data-page="upload"] .upload-grid {
  grid-template-columns: minmax(380px, 0.4fr) minmax(0, 0.6fr);
  gap: 12px;
}

body[data-page="upload"] .prediction-workbench,
body[data-page="upload"] .prediction-status-panel,
body[data-page="upload"] .upload-result-browser,
body[data-page="upload"] .job-history {
  padding: 14px;
}

body[data-page="upload"] .drop-zone {
  min-height: 150px;
  padding: 18px;
  border-color: rgba(0, 109, 111, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 109, 111, 0.08), transparent 54%),
    #fbfdfb;
}

body[data-page="upload"] .drop-zone strong {
  font-size: 17px;
}

body[data-page="upload"] .drop-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: #111820;
  color: #fffffc;
}

body[data-page="upload"] .job-options {
  gap: 8px;
}

body[data-page="upload"] .job-options label,
body[data-page="upload"] .density-mode-row label {
  border-color: rgba(17, 24, 32, 0.1);
  background: #fffffc;
}

body[data-page="upload"] .sampling-panel,
body[data-page="upload"] .selected-file-panel,
body[data-page="upload"] .path-job-panel {
  padding: 10px;
  border-radius: var(--radius);
  background: #fbfdfb;
}

body[data-page="upload"] .progress-hero {
  padding: 12px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(17, 24, 32, 0.98), rgba(25, 38, 43, 0.95));
}

body[data-page="upload"] .progress-hero b,
body[data-page="upload"] .progress-hero strong {
  color: #fffffc;
}

body[data-page="upload"] .progress-hero .job-status-card b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0;
}

body[data-page="upload"] .progress-hero .job-status-card span {
  color: #4f5e66;
}

body[data-page="upload"] .progress-eyebrow,
body[data-page="upload"] .job-progress-steps span {
  color: rgba(255, 255, 252, 0.68);
}

body[data-page="upload"] .result-browser-head {
  padding: 12px;
}

body[data-page="upload"] .result-browser-content {
  gap: 12px;
}

body[data-page="upload"] .result-stage-card {
  padding: 10px;
  border-radius: var(--radius);
}

body[data-page="upload"] .upload-result-canvas-wrap,
body[data-page="result"] .upload-result-canvas-wrap {
  min-height: 430px;
}

@media (max-width: 1320px) {
  body[data-page="overview"] .top-panel {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.55fr);
  }

  body[data-page="overview"] .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="overview"] .pipeline-visual {
    grid-template-columns: minmax(220px, 1fr) minmax(130px, 0.36fr) minmax(220px, 1fr);
  }
}

@media (max-width: 1180px) {
  .side-nav {
    grid-template-columns: 1fr;
  }

  body[data-page="overview"] .top-panel,
  body[data-page="overview"] .overview-lab-grid,
  body[data-page="overview"] .survival-card,
  body[data-page="overview"] .home-section-head,
  body[data-page="overview"] .cohort-finding-board,
  body[data-page="upload"] .upload-heading,
  body[data-page="upload"] .upload-grid,
  .gene-control-panel,
  .gene-context-panel,
  .evidence-overview-panel,
  body[data-page="evidence"] .evidence-module-head {
    grid-template-columns: 1fr;
  }

  body[data-page="overview"] .overview-lab-grid {
    grid-template-areas:
      "pipeline"
      "cohort"
      "availability";
  }

  body[data-page="overview"] .pipeline-visual {
    grid-template-columns: 1fr;
  }

  body[data-page="overview"] .workflow-image {
    height: 230px;
  }
}

@media (max-width: 760px) {
  .side-nav,
  main {
    width: min(calc(100% - 28px), var(--site-max));
  }

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

  body[data-page="overview"] .top-panel h1 span {
    display: block;
  }

  body[data-page="overview"] .status-strip,
  body[data-page="overview"] .availability-grid,
  .evidence-overview-grid,
  .gene-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* Evidence console redesign, 2026-06-16
   Scope: data-evidence page only. The page should read like a source-data
   result console: compact, traceable, and chart-first. */
body[data-page="evidence"] {
  --evidence-ink: #111820;
  --evidence-panel: #fffffc;
  --evidence-subtle: #f4f7f3;
  --evidence-line: rgba(17, 24, 32, 0.12);
  --evidence-line-strong: rgba(17, 24, 32, 0.2);
  --evidence-teal: #006d6f;
  --evidence-rose: #b64b73;
  --evidence-gold: #b9812e;
  --evidence-blue: #315f7d;
  background:
    linear-gradient(180deg, rgba(247, 249, 246, 0.98), rgba(239, 244, 239, 0.96)),
    linear-gradient(90deg, rgba(0, 109, 111, 0.035) 0 1px, transparent 1px 64px),
    linear-gradient(0deg, rgba(49, 95, 125, 0.022) 0 1px, transparent 1px 54px);
}

body[data-page="evidence"] main {
  gap: 14px;
  padding-top: 12px;
}

body[data-page="evidence"] .page-heading {
  min-height: auto;
  margin-bottom: 4px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--evidence-line);
}

body[data-page="evidence"] .page-heading .kicker {
  color: var(--evidence-teal);
}

body[data-page="evidence"] .page-heading h1 {
  font-size: clamp(34px, 3.2vw, 54px);
  letter-spacing: 0;
}

body[data-page="evidence"] .page-heading .lead {
  max-width: 1180px;
  color: #5f6f75;
  font-size: 14px;
  line-height: 1.65;
}

#evidenceDataHeader.figure-atlas-header {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.evidence-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.54fr);
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 32, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(17, 24, 32, 0.985), rgba(22, 38, 42, 0.96) 64%, rgba(0, 109, 111, 0.9)),
    #111820;
  box-shadow: 0 22px 52px rgba(17, 24, 32, 0.16);
}

.evidence-hero-copy {
  position: relative;
  min-height: 216px;
  padding: 24px 26px;
  color: rgba(255, 255, 252, 0.82);
}

.evidence-hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 252, 0.06) 0 1px, transparent 1px 60px),
    linear-gradient(0deg, rgba(255, 255, 252, 0.045) 0 1px, transparent 1px 50px);
  pointer-events: none;
}

.evidence-hero-copy > * {
  position: relative;
}

.evidence-hero-copy span,
.evidence-hero-readorder span,
.evidence-jump-label,
.evidence-overview-copy span,
.evidence-chart-section-head span,
.evidence-module-kicker {
  color: #9edfd5;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.evidence-hero-copy h2 {
  max-width: 780px;
  margin: 9px 0 10px;
  color: #fffffc;
  font-size: clamp(28px, 2.45vw, 40px);
  line-height: 1.12;
}

.evidence-hero-copy p {
  max-width: 930px;
  margin: 0;
  color: rgba(255, 255, 252, 0.72);
  font-size: 13.5px;
  line-height: 1.68;
}

.evidence-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.evidence-hero-tags span {
  padding: 6px 9px;
  border: 1px solid rgba(158, 223, 213, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 252, 0.06);
  color: rgba(255, 255, 252, 0.78);
  font-size: 11px;
  text-transform: none;
}

.evidence-hero-dashboard {
  display: grid;
  align-content: stretch;
  gap: 10px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.96), rgba(240, 246, 242, 0.93));
}

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

.evidence-hero-stats div,
.evidence-hero-readorder {
  border: 1px solid var(--evidence-line);
  border-radius: var(--radius-sm);
  background: #fffffc;
  box-shadow: 0 8px 18px rgba(17, 24, 32, 0.04);
}

.evidence-hero-stats div {
  min-height: 78px;
  padding: 13px;
}

.evidence-hero-stats span,
.evidence-hero-readorder span {
  display: block;
  color: #66757d;
  font-size: 11px;
  font-weight: 850;
}

.evidence-hero-stats b {
  display: block;
  margin-top: 7px;
  color: #0b5557;
  font-size: 31px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.evidence-hero-readorder {
  padding: 13px;
}

.evidence-hero-readorder b {
  display: block;
  margin: 6px 0 5px;
  color: #111820;
  font-size: 16px;
}

.evidence-hero-readorder small {
  display: block;
  color: #5f6f75;
  font-size: 12px;
  line-height: 1.45;
}

body[data-page="evidence"] .evidence-jump-nav {
  position: static;
  display: grid;
  grid-template-columns: 150px repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--evidence-line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(245, 249, 246, 0.95));
  box-shadow: 0 10px 26px rgba(17, 24, 32, 0.055);
}

.evidence-jump-label {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  min-height: 50px;
  border-right: 1px solid var(--evidence-line);
  color: var(--evidence-teal);
  text-align: center;
}

body[data-page="evidence"] .evidence-jump-nav a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid rgba(17, 24, 32, 0.1);
  border-radius: var(--radius-sm);
  background: #fffffc;
  color: #17232a;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

body[data-page="evidence"] .evidence-jump-nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 109, 111, 0.28);
  box-shadow: 0 10px 22px rgba(17, 24, 32, 0.08);
}

body[data-page="evidence"] .evidence-jump-nav a span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: #111820;
  color: #fffffc;
  font-size: 11px;
  font-weight: 900;
}

body[data-page="evidence"] .evidence-jump-nav a b {
  overflow: hidden;
  color: #17232a;
  font-size: 12px;
  line-height: 1.22;
  text-overflow: ellipsis;
}

.evidence-overview-panel {
  grid-template-columns: minmax(300px, 0.33fr) minmax(0, 0.67fr);
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--evidence-line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(0, 109, 111, 0.075), transparent 42%),
    #fffffc;
  box-shadow: 0 12px 30px rgba(17, 24, 32, 0.06);
}

.evidence-overview-copy {
  padding: 5px 4px 5px 2px;
}

.evidence-overview-copy span {
  color: var(--evidence-teal);
}

.evidence-overview-copy h2 {
  margin: 7px 0 8px;
  color: #111820;
  font-size: 24px;
  line-height: 1.16;
}

.evidence-overview-copy p {
  margin: 0;
  color: #627179;
  font-size: 13px;
  line-height: 1.58;
}

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

.evidence-route-node {
  position: relative;
  min-height: 92px;
  padding: 11px;
  border: 1px solid rgba(17, 24, 32, 0.1);
  border-top: 4px solid var(--tone, var(--evidence-teal));
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(248, 251, 248, 0.92));
  color: #111820;
  text-decoration: none;
}

.evidence-route-node::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 28px;
  width: 8px;
  height: 1px;
  background: rgba(17, 24, 32, 0.18);
}

.evidence-route-node:nth-child(4n)::after,
.evidence-route-node:last-child::after {
  display: none;
}

.evidence-route-node span,
.evidence-route-node b,
.evidence-route-node small {
  display: block;
}

.evidence-route-node span {
  color: var(--tone, var(--evidence-teal));
  font-size: 11px;
  font-weight: 950;
}

.evidence-route-node b {
  margin: 8px 0 4px;
  font-size: 15px;
  line-height: 1.18;
}

.evidence-route-node small {
  color: #63727a;
  font-size: 12px;
  line-height: 1.32;
}

.evidence-module.tone-resource,
.evidence-route-node.tone-resource {
  --tone: var(--evidence-teal);
}

.evidence-module.tone-method,
.evidence-route-node.tone-method {
  --tone: #0f7d8c;
}

.evidence-module.tone-domain,
.evidence-route-node.tone-domain {
  --tone: var(--evidence-blue);
}

.evidence-module.tone-application,
.evidence-route-node.tone-application {
  --tone: var(--evidence-rose);
}

.evidence-module.tone-cohort,
.evidence-route-node.tone-cohort {
  --tone: #6a619a;
}

.evidence-module.tone-spatial,
.evidence-route-node.tone-spatial {
  --tone: var(--evidence-gold);
}

.evidence-module.tone-pathology,
.evidence-route-node.tone-pathology {
  --tone: #986044;
}

.evidence-module.tone-closure,
.evidence-route-node.tone-closure {
  --tone: #245f89;
}

body[data-page="evidence"] .evidence-module {
  border: 1px solid var(--evidence-line);
  border-radius: var(--radius);
  background: var(--evidence-panel);
  box-shadow: 0 16px 34px rgba(17, 24, 32, 0.065);
}

body[data-page="evidence"] .evidence-module::before {
  width: 4px;
  background: var(--tone, var(--evidence-teal));
}

body[data-page="evidence"] .evidence-module-head {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.36fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px 18px 14px 22px;
  border-bottom: 1px solid var(--evidence-line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tone, var(--evidence-teal)) 9%, transparent), transparent 38%),
    #fffffc;
}

.evidence-module-title {
  align-self: center;
}

.evidence-module-kicker {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--tone, var(--evidence-teal));
}

.evidence-module-kicker i,
.evidence-module-kicker b {
  font-style: normal;
}

.evidence-module-kicker i {
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  background: var(--tone, var(--evidence-teal));
  color: #fffffc;
}

.evidence-module-kicker b {
  color: var(--tone, var(--evidence-teal));
}

body[data-page="evidence"] .evidence-module-head h2 {
  margin: 9px 0 8px;
  color: #111820;
  font-size: 25px;
  line-height: 1.16;
}

body[data-page="evidence"] .evidence-module-head p {
  max-width: 960px;
  color: #5f6f75;
  font-size: 13.5px;
  line-height: 1.58;
}

.evidence-module-pills {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: stretch;
}

.evidence-module-pills span {
  min-height: 74px;
  border-color: rgba(17, 24, 32, 0.1);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(245, 249, 246, 0.92));
}

.evidence-module-pills span:nth-child(2) {
  grid-column: span 2;
}

.evidence-module-pills em {
  color: #66757d;
  font-size: 10.5px;
}

.evidence-module-pills b {
  color: #111820;
  font-size: 13px;
}

.evidence-logic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  border-bottom: 1px solid var(--evidence-line);
  background: #fbfdfb;
}

.evidence-logic-grid article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 10px;
  align-content: start;
  min-height: 132px;
  padding: 15px 16px;
}

.evidence-logic-grid article + article {
  border-left: 1px solid var(--evidence-line);
}

.evidence-logic-grid span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(17, 24, 32, 0.1);
  border-radius: var(--radius-sm);
  background: #fffffc;
  color: var(--tone, var(--evidence-teal));
  font-size: 11px;
  font-weight: 950;
}

.evidence-logic-grid b {
  color: #111820;
  font-size: 13px;
}

.evidence-logic-grid p {
  grid-column: 2;
  margin: 2px 0 0;
  color: #627179;
  font-size: 12.5px;
  line-height: 1.55;
}

.logic-result {
  background: rgba(0, 109, 111, 0.035);
}

.logic-boundary {
  background: rgba(182, 75, 115, 0.035);
}

.evidence-chart-section-head {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 0.66fr);
  gap: 12px;
  align-items: end;
  padding: 14px 18px 0 22px;
}

.evidence-chart-section-head span {
  color: var(--tone, var(--evidence-teal));
}

.evidence-chart-section-head b {
  display: block;
  margin-top: 4px;
  color: #111820;
  font-size: 18px;
  line-height: 1.2;
}

.evidence-chart-section-head p {
  margin: 0;
  color: #66757d;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: right;
}

body[data-page="evidence"] .redrawn-chart-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px 18px 22px;
}

body[data-page="evidence"] .redrawn-chart-card {
  grid-column: span 6;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 32, 0.11);
  border-radius: var(--radius);
  background: #fffffc;
  box-shadow: 0 10px 24px rgba(17, 24, 32, 0.055);
}

body[data-page="evidence"] .redrawn-chart-card.is-wide {
  grid-column: span 12;
}

body[data-page="evidence"] .redrawn-chart-card.is-compact {
  grid-column: span 6;
}

body[data-page="evidence"] .redrawn-chart-card.is-lead-chart:not(.is-wide) {
  border-color: color-mix(in srgb, var(--tone, var(--evidence-teal)) 30%, rgba(17, 24, 32, 0.1));
}

body[data-page="evidence"] .redrawn-chart-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 13px 10px;
  border-bottom: 1px solid var(--evidence-line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tone, var(--evidence-teal)) 7%, transparent), transparent 48%),
    #fffffc;
}

body[data-page="evidence"] .redrawn-chart-head span {
  color: var(--tone, var(--evidence-teal));
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

body[data-page="evidence"] .redrawn-chart-head b {
  display: block;
  margin-top: 4px;
  color: #111820;
  font-size: 15px;
  line-height: 1.25;
}

.redrawn-chart-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  white-space: nowrap;
}

.redrawn-chart-meta strong,
body[data-page="evidence"] .redrawn-chart-head em {
  border: 1px solid rgba(17, 24, 32, 0.1);
  border-radius: 999px;
  background: #f6faf7;
  color: #5f6f75;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 850;
}

.redrawn-chart-meta strong {
  padding: 3px 7px;
}

body[data-page="evidence"] .redrawn-chart-head em {
  padding: 3px 7px;
}

.chart-stage {
  min-width: 0;
  overflow-x: auto;
  background:
    linear-gradient(90deg, rgba(0, 109, 111, 0.024) 0 1px, transparent 1px 44px),
    linear-gradient(0deg, rgba(49, 95, 125, 0.02) 0 1px, transparent 1px 40px),
    #fbfdfb;
}

body[data-page="evidence"] .mini-chart {
  display: block;
  width: 100%;
  min-height: 190px;
  padding: 8px;
  background: transparent;
}

body[data-page="evidence"] .is-wide .mini-chart {
  width: min(100%, 1040px);
  min-height: 260px;
  margin: 0 auto;
}

body[data-page="evidence"] .chart-axis,
body[data-page="evidence"] .chart-zero {
  stroke: rgba(17, 24, 32, 0.34);
  stroke-width: 1.25;
}

body[data-page="evidence"] .chart-zero {
  stroke-dasharray: 4 4;
}

body[data-page="evidence"] .chart-guide,
body[data-page="evidence"] .chart-row-line {
  stroke: rgba(17, 24, 32, 0.1);
}

body[data-page="evidence"] .chart-stem {
  stroke: rgba(17, 24, 32, 0.22);
  stroke-width: 2;
}

body[data-page="evidence"] .chart-label {
  fill: #1f2b32;
  font-size: 11.5px;
  font-weight: 820;
  paint-order: stroke;
  stroke: rgba(255, 255, 252, 0.78);
  stroke-width: 2px;
}

body[data-page="evidence"] .chart-value,
body[data-page="evidence"] .chart-legend text {
  fill: #5f6f75;
  font-size: 10.8px;
  font-weight: 760;
}

body[data-page="evidence"] .mini-scatter-chart circle,
body[data-page="evidence"] .mini-beeswarm circle {
  stroke: rgba(255, 255, 252, 0.58);
  stroke-width: 0.7;
}

body[data-page="evidence"] .mini-faceted-scatter {
  width: min(100%, 1040px);
  min-height: 278px;
  margin: 0 auto;
}

body[data-page="evidence"] .facet-panel-bg {
  fill: rgba(255, 255, 252, 0.72);
  stroke: rgba(17, 24, 32, 0.085);
}

body[data-page="evidence"] .mini-faceted-scatter .chart-guide {
  stroke: rgba(17, 24, 32, 0.065);
}

body[data-page="evidence"] .mini-faceted-scatter .chart-label {
  font-size: 12px;
  font-weight: 900;
}

body[data-page="evidence"] .mini-forest-chart circle,
body[data-page="evidence"] .mini-rank-dotplot circle,
body[data-page="evidence"] .mini-lollipop-chart circle,
body[data-page="evidence"] .mini-dotplot circle {
  stroke: rgba(255, 255, 252, 0.72);
  stroke-width: 1;
}

body[data-page="evidence"] .chart-cell {
  fill: rgba(255, 255, 252, 0.68);
  stroke: rgba(17, 24, 32, 0.08);
}

body[data-page="evidence"] .mini-gain-lanes {
  min-height: 250px;
}

body[data-page="evidence"] .mini-gain-lanes .chart-row-line {
  stroke: rgba(17, 24, 32, 0.085);
  stroke-width: 1;
}

body[data-page="evidence"] .gain-lane-legend text {
  font-size: 10.5px;
  font-weight: 850;
}

body[data-page="evidence"] .gain-value {
  font-size: 11px;
  font-weight: 900;
}

body[data-page="evidence"] .gain-value.is-positive {
  fill: var(--evidence-teal);
}

body[data-page="evidence"] .gain-value.is-negative {
  fill: var(--evidence-rose);
}

body[data-page="evidence"] .composition-chart,
body[data-page="evidence"] .coverage-tiles,
body[data-page="evidence"] .metric-tile-chart,
body[data-page="evidence"] .evidence-mini-cards {
  background: transparent;
}

body[data-page="evidence"] .composition-chart {
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) minmax(0, 0.64fr);
  gap: 14px;
  align-items: center;
  padding: 15px;
}

.composition-donut-wrap {
  display: grid;
  place-items: center;
  min-height: 184px;
  border: 1px solid rgba(17, 24, 32, 0.08);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at center, rgba(255, 255, 252, 0.98) 0 38%, transparent 39%),
    linear-gradient(135deg, rgba(0, 109, 111, 0.055), rgba(182, 75, 115, 0.035));
}

.composition-donut {
  width: min(100%, 188px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(17, 24, 32, 0.08));
}

.composition-donut path {
  stroke: #fffffc;
  stroke-width: 2;
  transition: opacity 140ms ease, transform 140ms ease;
  transform-origin: center;
}

.composition-donut path:hover {
  opacity: 0.82;
  transform: scale(1.012);
}

.composition-total {
  fill: #111820;
  font-size: 22px;
  font-weight: 950;
  text-anchor: middle;
  font-variant-numeric: tabular-nums;
}

.composition-unit {
  fill: #66757d;
  font-size: 10px;
  font-weight: 850;
  text-anchor: middle;
  text-transform: uppercase;
}

body[data-page="evidence"] .composition-legend {
  align-content: center;
  grid-template-columns: 1fr;
}

body[data-page="evidence"] .composition-legend div,
body[data-page="evidence"] .coverage-tiles article,
body[data-page="evidence"] .metric-tile-chart article,
body[data-page="evidence"] .evidence-mini-cards article {
  border-color: rgba(17, 24, 32, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 252, 0.86);
  box-shadow: 0 7px 16px rgba(17, 24, 32, 0.035);
}

body[data-page="evidence"] .coverage-tiles,
body[data-page="evidence"] .metric-tile-chart {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

body[data-page="evidence"] .coverage-tiles b,
body[data-page="evidence"] .metric-tile-chart b {
  color: #111820;
  font-size: 27px;
}

body[data-page="evidence"] .coverage-tiles span,
body[data-page="evidence"] .metric-tile-chart span,
body[data-page="evidence"] .evidence-mini-cards span {
  color: var(--tone, var(--evidence-teal));
}

body[data-page="evidence"] .coverage-stack {
  height: 8px;
}

body[data-page="evidence"] .redrawn-chart-footnote {
  gap: 6px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--evidence-line);
  background: #f8fbf8;
}

body[data-page="evidence"] .redrawn-chart-footnote code {
  max-width: 100%;
  border-color: rgba(0, 109, 111, 0.2);
  background: rgba(231, 243, 240, 0.78);
  color: #0b5557;
  font-size: 10.5px;
}

body[data-page="evidence"] .redrawn-chart-footnote p {
  color: #627179;
  font-size: 12px;
  line-height: 1.48;
}

body[data-page="evidence"] .chart-tooltip {
  border-radius: var(--radius-sm);
  background: rgba(17, 24, 32, 0.96);
}

body[data-page="evidence"] .manuscript-figure-shell {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body[data-page="evidence"] #figureAtlasHeader.figure-atlas-header {
  padding: 14px;
  border-color: rgba(17, 24, 32, 0.1);
  background:
    linear-gradient(90deg, rgba(49, 95, 125, 0.07), transparent 42%),
    #fffffc;
}

/* Home manuscript figure previews, 2026-07-06.
   These cards show final assembled figures with a fixed display width and
   figure-specific height, matching the manuscript figures' fixed-width layout. */
body[data-page="overview"] .evidence-path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

body[data-page="overview"] .evidence-path-card {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

body[data-page="overview"] .evidence-path-figure {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--figure-ratio, 1.25);
  padding: 12px;
  border-bottom: 1px solid rgba(17, 24, 32, 0.1);
  background:
    linear-gradient(90deg, rgba(17, 24, 32, 0.03) 0 1px, transparent 1px 34px),
    linear-gradient(0deg, rgba(17, 24, 32, 0.024) 0 1px, transparent 1px 34px),
    #f8faf7;
}

body[data-page="overview"] .evidence-path-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid rgba(17, 24, 32, 0.12);
  border-radius: 6px;
  background: #fff;
}

body[data-page="overview"] .evidence-path-copy {
  padding: 13px 14px 14px;
}

body[data-page="overview"] .evidence-path-copy h3 {
  font-size: 16px;
  line-height: 1.28;
}

body[data-page="overview"] .evidence-path-copy p {
  font-size: 12.5px;
  line-height: 1.52;
}

body[data-page="evidence"] #figureAtlasHeader .figure-atlas-copy h2 {
  font-size: 24px;
}

body[data-page="evidence"] .figure-detail {
  border-color: rgba(17, 24, 32, 0.14);
  background: #fffffc;
  box-shadow: 0 18px 42px rgba(17, 24, 32, 0.1);
}

body[data-page="evidence"] .figure-detail-stage {
  background:
    linear-gradient(90deg, rgba(17, 24, 32, 0.035) 0 1px, transparent 1px 38px),
    linear-gradient(0deg, rgba(17, 24, 32, 0.028) 0 1px, transparent 1px 38px),
    #f7f8f4;
}

body[data-page="evidence"] .figure-detail-stage img {
  max-height: min(82vh, 1180px);
  border-color: rgba(17, 24, 32, 0.16);
  background: #fff;
}

.figure-legend-box {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  border-top: 1px solid var(--evidence-line);
  background:
    linear-gradient(90deg, rgba(0, 109, 111, 0.055), transparent 34%),
    #fffffc;
}

.figure-legend-box div {
  display: grid;
  align-content: start;
  gap: 6px;
}

.figure-legend-box span {
  color: var(--evidence-teal);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.figure-legend-box b {
  color: var(--evidence-ink);
  font-size: 13px;
  line-height: 1.35;
}

.figure-legend-box p {
  margin: 0;
  color: rgba(17, 24, 32, 0.8);
  font-size: 13px;
  line-height: 1.72;
}

.figure-legend-box.is-missing {
  background:
    linear-gradient(90deg, rgba(185, 129, 46, 0.08), transparent 34%),
    #fffdf8;
}

body[data-page="evidence"] .interactive-evidence-shell {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--evidence-line);
}

@media (max-width: 1180px) {
  .figure-legend-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1320px) {
  .evidence-hero-panel,
  .evidence-overview-panel,
  body[data-page="evidence"] .evidence-module-head,
  .evidence-chart-section-head {
    grid-template-columns: 1fr;
  }

  body[data-page="evidence"] .evidence-jump-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .evidence-jump-label {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 34px;
    border-right: 0;
    border-bottom: 1px solid var(--evidence-line);
  }

  .evidence-chart-section-head p {
    text-align: left;
  }
}

@media (max-width: 980px) {
  .evidence-route-map,
  body[data-page="evidence"] .evidence-jump-nav,
  .evidence-logic-grid,
  body[data-page="evidence"] .redrawn-chart-grid {
    grid-template-columns: 1fr;
  }

  .evidence-route-node::after {
    display: none;
  }

  .evidence-logic-grid article + article {
    border-top: 1px solid var(--evidence-line);
    border-left: 0;
  }

body[data-page="evidence"] .redrawn-chart-card,
body[data-page="evidence"] .redrawn-chart-card.is-wide,
body[data-page="evidence"] .redrawn-chart-card.is-compact {
  grid-column: auto;
}
}

/* Public scientific-resource guardrails */
[hidden] {
  display: none !important;
}

.scientific-caveat {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 109, 111, 0.18);
  border-left: 4px solid #006d6f;
  border-radius: 6px;
  background: rgba(245, 249, 245, 0.88);
  color: #43515a;
  font-size: 13px;
  line-height: 1.55;
}

.status-pill {
  white-space: nowrap;
}

.interactive-map-panel .map-method-panel strong,
.gene-context-main .scientific-caveat {
  color: #102027;
}

/* Slide detail adapts when cohort state evidence is unavailable. */
body[data-page="slide"] .viewer-grid.state-panel-empty {
  grid-template-columns: minmax(0, 1fr);
}

body[data-page="slide"] .viewer-grid.state-panel-empty .selected-card {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}

body[data-page="slide"] .viewer-grid.state-panel-empty .map-canvas-frame {
  display: flex;
  justify-content: center;
}

/* Resource information architecture, 2026-07-09.
   Public nav now exposes Home / Atlas / Evidence / Methods / language / Upload. */
@media (min-width: 1181px) {
  .side-nav nav {
    grid-template-columns: 96px 96px 104px 112px 92px 172px;
  }
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.methods-card {
  position: relative;
  min-height: 238px;
  padding: 22px 22px 20px;
  overflow: hidden;
}

.methods-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--rose));
  opacity: 0.9;
}

.primary-methods-card {
  grid-column: span 2;
}

.method-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(0, 109, 111, 0.1);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.methods-card h2 {
  margin: 0 0 10px;
  color: #101820;
  font-size: 20px;
  line-height: 1.2;
}

.methods-card p,
.methods-card li {
  color: #4c5a62;
  font-size: 14px;
  line-height: 1.68;
}

.methods-card p {
  margin: 0 0 10px;
}

.methods-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
}

@media (max-width: 1180px) {
  .methods-grid,
  .primary-methods-card {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
}

/* Resource portal upgrade, 2026-07-09.
   Direction: quiet scientific data portal. The UI should foreground resource
   search, atlas browsing, and upload prediction instead of internal narrative. */
body {
  background: #f7f8f6;
}

body::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 280px);
}

.side-nav,
main {
  width: min(calc(100% - 56px), 1380px);
}

.side-nav {
  margin-top: 14px;
  border: 1px solid rgba(18, 27, 34, 0.1);
  background: rgba(255, 255, 252, 0.96);
  box-shadow: 0 10px 28px rgba(18, 27, 34, 0.055);
}

body[data-page="overview"] .top-panel {
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: center;
  padding: 32px 0 22px;
  border-bottom: 1px solid rgba(18, 27, 34, 0.08);
}

body[data-page="overview"] .top-panel h1 {
  max-width: 860px;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.94;
  letter-spacing: 0;
}

body[data-page="overview"] .lead {
  max-width: 820px;
  color: #43515a;
  font-size: 17px;
  line-height: 1.6;
}

body[data-page="overview"] .status-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="overview"] .status-strip div {
  min-height: 92px;
  border: 1px solid rgba(18, 27, 34, 0.09);
  border-radius: 10px;
  background: #fffffc;
  box-shadow: none;
}

body[data-page="overview"] .hero-actions {
  gap: 8px;
}

body[data-page="overview"] .hero-actions a {
  border-radius: 8px;
  box-shadow: none;
}

body[data-page="overview"] #survivalSpotlight {
  display: none !important;
}

.resource-home-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 16px;
  margin-top: 18px;
}

.resource-search-panel,
.resource-summary-panel,
.resource-cohort-panel {
  border: 1px solid rgba(18, 27, 34, 0.1);
  border-radius: 12px;
  background: #fffffc;
  box-shadow: 0 12px 30px rgba(18, 27, 34, 0.055);
}

.resource-search-panel {
  grid-row: span 2;
  display: grid;
  align-content: center;
  gap: 22px;
  min-height: 430px;
  padding: 34px;
}

.resource-search-panel h2,
.resource-summary-head h2 {
  margin: 0;
  color: #101820;
  font-size: 28px;
  line-height: 1.18;
}

.resource-search-panel p {
  max-width: 700px;
  margin: 12px 0 0;
  color: #4e5c63;
  font-size: 16px;
  line-height: 1.65;
}

.resource-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: #006d6f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.resource-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(18, 27, 34, 0.1);
  border-radius: 12px;
  background: #f7f8f6;
}

.resource-search-form label {
  display: grid;
  gap: 5px;
}

.resource-search-form label span {
  padding-left: 10px;
  color: #5f6e75;
  font-size: 12px;
  font-weight: 800;
}

.resource-search-form input {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #fffffc;
  color: #101820;
  padding: 0 12px;
  outline: none;
}

.resource-search-form button {
  align-self: end;
  min-height: 44px;
  border-radius: 8px;
  white-space: nowrap;
}

.quick-query-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick-query-row a {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(18, 27, 34, 0.09);
  border-radius: 10px;
  background: #f9fbf9;
  color: inherit;
  text-decoration: none;
}

.quick-query-row a:hover,
.resource-cohort-list a:hover {
  border-color: rgba(0, 109, 111, 0.28);
  background: #f2faf7;
}

.quick-query-row b {
  color: #101820;
  font-size: 17px;
}

.quick-query-row span {
  color: #5f6e75;
  font-size: 13px;
}

.resource-summary-panel,
.resource-cohort-panel {
  padding: 22px;
}

.resource-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.resource-metric-row div {
  padding: 14px;
  border-radius: 9px;
  background: #f5f8f6;
}

.resource-metric-row span,
.resource-availability-list span,
.resource-cohort-list span {
  display: block;
  color: #5c6970;
  font-size: 12px;
  font-weight: 800;
}

.resource-metric-row b {
  display: block;
  margin-top: 7px;
  color: #006d6f;
  font-size: 22px;
}

.resource-availability-list,
.resource-cohort-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.resource-availability-list div,
.resource-cohort-list a {
  display: grid;
  gap: 8px;
}

.resource-availability-list b,
.resource-cohort-list small {
  color: #26323a;
  font-size: 13px;
}

.resource-availability-list i,
.resource-cohort-list i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ece8;
}

.resource-availability-list em,
.resource-cohort-list em {
  display: block;
  width: var(--pct);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #006d6f, #2f6f9f);
}

.resource-cohort-list a {
  padding: 13px 0 14px;
  border-bottom: 1px solid rgba(18, 27, 34, 0.08);
  color: inherit;
  text-decoration: none;
}

.resource-cohort-list a:last-child {
  border-bottom: 0;
}

.resource-cohort-list a > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.resource-cohort-list b {
  color: #101820;
  font-size: 17px;
}

body[data-page="overview"] .home-evidence-paths {
  margin-top: 18px;
}

body[data-page="overview"] .home-section-head {
  max-width: 820px;
  margin-bottom: 14px;
}

body[data-page="overview"] .home-section-head h2 {
  font-size: 28px;
}

body[data-page="overview"] .evidence-path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-page="overview"] .evidence-path-card {
  border-radius: 12px;
  box-shadow: none;
}

body[data-page="overview"] .evidence-path-figure {
  max-height: 190px;
  overflow: hidden;
  background: #f4f6f3;
}

body[data-page="overview"] .evidence-path-copy p,
body[data-page="overview"] .cohort-finding-board {
  display: none;
}

body[data-page="slides"] .slide-index-panel .table-wrap {
  max-height: 650px;
}

body[data-page="slides"] table {
  font-size: 13px;
}

body[data-page="slides"] td,
body[data-page="slides"] th {
  padding-top: 9px;
  padding-bottom: 9px;
}

.evidence-chart-drawer {
  margin-top: 18px;
  border: 1px solid rgba(18, 27, 34, 0.1);
  border-radius: 12px;
  background: #fffffc;
}

.evidence-chart-drawer summary {
  display: grid;
  grid-template-columns: minmax(160px, auto) minmax(0, 1fr) minmax(220px, 0.8fr);
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.evidence-chart-drawer summary::-webkit-details-marker {
  display: none;
}

.evidence-chart-drawer summary::after {
  content: "+";
  justify-self: end;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef4f1;
  color: #006d6f;
  font-weight: 900;
}

.evidence-chart-drawer[open] summary::after {
  content: "-";
}

.evidence-chart-drawer summary span {
  color: #006d6f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.evidence-chart-drawer summary b {
  color: #101820;
  font-size: 16px;
}

.evidence-chart-drawer summary em {
  color: #65737a;
  font-size: 13px;
  font-style: normal;
}

.evidence-chart-drawer .evidence-chart-section-head,
.evidence-chart-drawer .redrawn-chart-grid {
  margin: 0;
  padding: 0 18px 18px;
}

.evidence-chart-drawer .evidence-chart-section-head {
  display: block;
}

.evidence-chart-drawer:not([open]) .evidence-chart-section-head,
.evidence-chart-drawer:not([open]) .redrawn-chart-grid {
  display: none;
}

@media (max-width: 1100px) {
  body[data-page="overview"] .top-panel,
  .resource-home-overview,
  body[data-page="overview"] .evidence-path-grid {
    grid-template-columns: 1fr;
  }

  .quick-query-row,
  .resource-metric-row {
    grid-template-columns: 1fr;
  }

  .evidence-chart-drawer summary {
    grid-template-columns: 1fr;
  }
}

/* Resource portal upgrade, pass 2: slide inspection and upload workflow. */
body[data-page="slide"] .slide-page-heading,
body[data-page="upload"] .upload-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding-top: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(18, 27, 34, 0.08);
}

body[data-page="slide"] .slide-page-heading h1,
body[data-page="upload"] .upload-heading h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.98;
}

body[data-page="slide"] .slide-page-heading .lead,
body[data-page="upload"] .upload-heading .lead {
  max-width: 820px;
  color: #43515a;
  font-size: 16px;
}

body[data-page="slide"] .viewer-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  margin-top: 16px;
}

body[data-page="slide"] .slide-workbench-card {
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(18, 27, 34, 0.055);
}

body[data-page="slide"] .slide-workbench-card > .panel-title {
  display: none;
}

body[data-page="slide"] .slide-control-bar {
  position: sticky;
  top: 8px;
  z-index: 5;
  display: grid;
  grid-template-columns: 150px minmax(150px, 1fr) minmax(170px, 1fr) 140px 160px 130px;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid rgba(18, 27, 34, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 252, 0.96);
  box-shadow: 0 8px 20px rgba(18, 27, 34, 0.06);
  backdrop-filter: blur(12px);
}

body[data-page="slide"] .slide-control-bar label {
  display: grid;
  gap: 5px;
  color: #5b6870;
  font-size: 12px;
  font-weight: 850;
}

body[data-page="slide"] .slide-control-bar select,
body[data-page="slide"] .slide-control-bar input[type="range"] {
  width: 100%;
}

body[data-page="slide"] .detail-summary-strip {
  margin-bottom: 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(18, 27, 34, 0.08);
}

body[data-page="slide"] .detail-summary-strip h2 {
  font-size: clamp(20px, 2vw, 28px);
}

body[data-page="slide"] .interactive-map-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="slide"] .interactive-map-toolbar {
  margin-bottom: 10px;
  border-radius: 10px;
  background: #f6f8f5;
}

body[data-page="slide"] .map-canvas-frame {
  min-height: 580px;
  border-radius: 12px;
  background: #fffffc;
}

body[data-page="slide"] .map-method-panel {
  margin-top: 10px;
  border: 1px solid rgba(18, 27, 34, 0.1);
  border-radius: 10px;
  background: #fffffc;
}

body[data-page="slide"] .map-method-panel summary {
  padding: 12px 14px;
  cursor: pointer;
  color: #006d6f;
  font-weight: 900;
}

body[data-page="slide"] .state-card {
  align-self: start;
  padding: 18px;
  border-radius: 12px;
  box-shadow: none;
}

body[data-page="upload"] .upload-flow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

body[data-page="upload"] .upload-flow-strip article {
  padding: 18px;
  border: 1px solid rgba(18, 27, 34, 0.1);
  border-radius: 12px;
  background: #fffffc;
  box-shadow: 0 10px 24px rgba(18, 27, 34, 0.045);
}

body[data-page="upload"] .upload-flow-strip span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 24px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #edf7f4;
  color: #006d6f;
  font-size: 12px;
  font-weight: 950;
}

body[data-page="upload"] .upload-flow-strip b {
  display: block;
  color: #101820;
  font-size: 18px;
}

body[data-page="upload"] .upload-flow-strip p {
  margin: 8px 0 0;
  color: #546169;
  font-size: 14px;
  line-height: 1.55;
}

body[data-page="upload"] .upload-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 14px;
}

body[data-page="upload"] .prediction-workbench,
body[data-page="upload"] .prediction-status-panel,
body[data-page="upload"] .upload-result-browser,
body[data-page="upload"] .private-history-panel {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(18, 27, 34, 0.045);
}

body[data-page="upload"] .backend-banner {
  border-radius: 10px;
}

body[data-page="upload"] .drop-zone {
  border-radius: 12px;
}

body[data-page="upload"] .private-history-panel {
  margin-top: 14px;
}

body[data-page="upload"] .private-history-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

body[data-page="upload"] .private-history-panel summary::-webkit-details-marker {
  display: none;
}

body[data-page="upload"] .private-history-panel summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #edf7f4;
  color: #006d6f;
  font-weight: 950;
}

body[data-page="upload"] .private-history-panel[open] summary::after {
  content: "-";
}

body[data-page="upload"] .private-history-panel summary small {
  margin-left: auto;
  color: #65737a;
  font-size: 13px;
}

body[data-page="upload"] .private-history-panel:not([open]) .job-history-head,
body[data-page="upload"] .private-history-panel:not([open]) .job-history-list {
  display: none;
}

body[data-page="upload"] .job-history-head,
body[data-page="upload"] .job-history-list {
  padding-left: 18px;
  padding-right: 18px;
}

body[data-page="upload"] .job-history-list {
  padding-bottom: 18px;
}

body[data-page="result"] .result-inspector-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding-top: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(18, 27, 34, 0.08);
}

body[data-page="result"] .result-inspector-heading h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.98;
}

body[data-page="result"] .result-inspector-heading .lead {
  max-width: 900px;
  color: #43515a;
  font-size: 16px;
}

.result-inspector-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.result-inspector-shell article {
  padding: 18px;
  border: 1px solid rgba(18, 27, 34, 0.1);
  border-radius: 12px;
  background: #fffffc;
  box-shadow: 0 10px 24px rgba(18, 27, 34, 0.045);
}

.result-inspector-shell span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 24px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #edf7f4;
  color: #006d6f;
  font-size: 12px;
  font-weight: 950;
}

.result-inspector-shell b {
  display: block;
  color: #101820;
  font-size: 18px;
}

.result-inspector-shell p {
  margin: 8px 0 0;
  color: #546169;
  font-size: 14px;
  line-height: 1.55;
}

body[data-page="result"] .result-inspector-browser {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(18, 27, 34, 0.045);
}

body[data-page="result"] .result-browser-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(18, 27, 34, 0.08);
}

body[data-page="result"] .result-browser-content {
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 14px;
}

body[data-page="result"] .result-stage-card {
  border-radius: 12px;
}

body[data-page="result"] .upload-result-canvas-wrap {
  min-height: 620px;
  border-radius: 10px;
}

body[data-page="result"] .result-job-line {
  width: fit-content;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(18, 27, 34, 0.1);
  border-radius: 999px;
  background: #fffffc;
  color: #546169;
}

body[data-page="result"] .result-job-line code {
  color: #006d6f;
  font-weight: 900;
}

@media (max-width: 1180px) {
  body[data-page="slide"] .viewer-grid,
  body[data-page="upload"] .upload-grid,
  body[data-page="upload"] .upload-flow-strip,
  body[data-page="result"] .result-browser-content,
  .result-inspector-shell {
    grid-template-columns: 1fr;
  }

  body[data-page="slide"] .slide-control-bar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Resource portal IA reset, 2026-07-10. */
:root {
  --portal-bg: #f6f7f4;
  --portal-paper: #fffffc;
  --portal-panel: #ffffff;
  --portal-ink: #101820;
  --portal-soft: #4d5a61;
  --portal-muted: #728087;
  --portal-line: rgba(16, 24, 32, 0.11);
  --portal-teal: #006d6f;
  --portal-blue: #315f86;
  --portal-plum: #7b5d75;
  --portal-sage: #e8f1ed;
  --portal-warm: #fbfaf6;
  --portal-max: 1328px;
}

body {
  background: var(--portal-bg);
  color: var(--portal-ink);
}

body::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 260px);
}

.side-nav,
main {
  width: min(calc(100% - 48px), var(--portal-max));
}

.side-nav {
  min-height: 64px;
  margin-top: 14px;
  padding: 10px 12px;
  grid-template-columns: minmax(210px, 0.88fr) minmax(720px, 1.12fr);
  gap: 18px;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  background: rgba(255, 255, 252, 0.97);
  box-shadow: 0 10px 26px rgba(16, 24, 32, 0.055);
}

.brand {
  min-width: 0;
}

.brand::after {
  content: "H&E to ST";
  padding: 2px 8px;
  border-color: rgba(0, 109, 111, 0.2);
  background: #f2f8f5;
  color: var(--portal-teal);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #101820 0 56%, var(--portal-teal) 56% 76%, var(--portal-plum) 76%);
}

.brand strong {
  font-size: 16px;
  line-height: 1.05;
}

.brand span {
  max-width: 230px;
  color: var(--portal-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-nav nav {
  display: grid;
  grid-template-columns: 94px 94px 104px 104px 90px 168px;
  justify-content: end;
  gap: 4px;
  width: fit-content;
  padding: 4px;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 9px;
  background: #f6f8f5;
}

.side-nav a,
.side-nav nav .language-toggle {
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.side-nav a {
  padding: 8px 10px;
}

.side-nav a:hover,
.side-nav a.active {
  background: var(--portal-paper);
  border-color: rgba(0, 109, 111, 0.22);
  color: var(--portal-teal);
  transform: none;
}

.side-nav nav a:last-child {
  background: #101820;
  color: #fffefa;
}

.side-nav nav a:last-child:hover,
.side-nav nav a:last-child.active {
  background: var(--portal-teal);
  color: #fffefa;
}

.language-toggle {
  padding: 6px 8px;
  border: 1px solid rgba(16, 24, 32, 0.1);
  background: var(--portal-paper);
  color: var(--portal-soft);
  box-shadow: none;
}

main {
  padding-top: 18px;
}

.kicker,
.resource-label {
  color: var(--portal-teal);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lead {
  color: var(--portal-soft);
}

body[data-page="overview"] .top-panel {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 22px;
  align-items: center;
  padding: 26px 0 20px;
  border-bottom: 0;
}

body[data-page="overview"] .top-panel::before {
  content: none;
}

body[data-page="overview"] .top-panel h1 {
  max-width: 700px;
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 0.98;
  overflow-wrap: normal;
}

body[data-page="overview"] .top-panel h1 span {
  display: block;
}

body[data-page="overview"] .top-panel h1 .hero-title-sub {
  color: var(--portal-teal);
}

body[data-page="overview"] .top-panel .lead {
  max-width: 780px;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.58;
}

.hero-actions {
  margin-top: 18px;
  gap: 8px;
}

.hero-actions a {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 13px;
}

.hero-actions .hero-primary-link {
  background: #101820;
}

body[data-page="overview"] .status-strip {
  gap: 8px;
}

body[data-page="overview"] .status-strip div {
  min-height: 82px;
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--portal-paper);
  box-shadow: none;
}

.status-strip div::before,
.metric-card::before,
.evidence-card::before {
  height: 2px;
  background: linear-gradient(90deg, var(--portal-teal), var(--portal-blue));
}

.status-strip span {
  color: var(--portal-muted);
  font-size: 11px;
}

.status-strip b {
  color: var(--portal-ink);
  font-size: 22px;
}

body[data-page="overview"] .resource-home-overview-v7 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 4px;
}

body[data-page="overview"] #overviewLabGrid.resource-home-overview-v7 {
  grid-template-columns: minmax(0, 1fr);
}

body[data-page="overview"] #overviewLabGrid.resource-home-overview-v7 > * {
  grid-column: 1 / -1;
}

.resource-command-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 18px;
  min-height: 430px;
  padding: 18px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(232, 241, 237, 0.64), transparent 48%),
    var(--portal-paper);
  box-shadow: 0 14px 34px rgba(16, 24, 32, 0.055);
}

.resource-command-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 12px 10px 12px 8px;
}

.resource-command-copy h2,
.resource-support-head h2 {
  margin: 0;
  color: var(--portal-ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.resource-command-copy p,
.resource-support-head p {
  max-width: 760px;
  margin: 0;
  color: var(--portal-soft);
  font-size: 15px;
  line-height: 1.65;
}

.resource-search-form {
  max-width: 760px;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
  padding: 7px;
  border-color: rgba(16, 24, 32, 0.1);
  border-radius: 10px;
  background: #f1f5f2;
}

.resource-search-form label span {
  padding-left: 8px;
  color: var(--portal-muted);
  font-size: 11px;
}

.resource-search-form input {
  min-height: 42px;
  border-radius: 7px;
}

.resource-search-form button {
  min-height: 42px;
  padding-inline: 12px;
  border-radius: 7px;
}

.resource-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-primary-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: 8px;
  background: var(--portal-panel);
  color: var(--portal-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.resource-primary-actions .primary-resource-action {
  border-color: #101820;
  background: #101820;
  color: #fffefa;
}

.resource-preview-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 390px;
  padding: 14px;
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: 12px;
  background: #f7f8f5;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.resource-preview-head,
.resource-preview-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.resource-preview-head span,
.resource-preview-foot span,
.cohort-resource-card span,
.cohort-resource-card small,
.resource-integrity-strip span,
.resource-support-card span {
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 800;
}

.resource-preview-head b {
  color: var(--portal-ink);
  font-size: 15px;
  overflow-wrap: anywhere;
  text-align: right;
}

.resource-preview-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 280px;
  margin: 12px 0;
}

.resource-preview-split figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.resource-preview-split img,
.resource-preview-empty {
  width: 100%;
  height: 100%;
  min-height: 252px;
  border: 1px solid rgba(16, 24, 32, 0.09);
  border-radius: 10px;
  background: var(--portal-paper);
}

.resource-preview-split img {
  display: block;
  object-fit: cover;
}

.resource-preview-split figure:nth-child(2) img {
  object-fit: contain;
  padding: 8px;
}

.resource-preview-empty {
  display: grid;
  place-items: center;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

.resource-preview-split figcaption {
  color: var(--portal-soft);
  font-size: 12px;
  font-weight: 800;
}

.cohort-resource-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cohort-resource-card,
.resource-support-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 158px;
  padding: 17px;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: var(--portal-panel);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.04);
}

.cohort-resource-card h3,
.resource-support-card h3 {
  margin: 0;
  color: var(--portal-ink);
  font-size: 24px;
  line-height: 1.05;
}

.cohort-resource-card p,
.resource-support-card p {
  margin: 0;
  color: var(--portal-soft);
  font-size: 13px;
  line-height: 1.5;
}

.cohort-resource-meter {
  height: 7px;
  margin: 5px 0;
  border-radius: 999px;
  background: #e7ece8;
  overflow: hidden;
}

.cohort-resource-meter i {
  display: block;
  width: var(--pct);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--portal-teal), var(--portal-blue));
}

.resource-integrity-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: var(--portal-line);
  overflow: hidden;
}

.resource-integrity-strip div {
  min-height: 84px;
  padding: 14px;
  background: var(--portal-paper);
}

.resource-integrity-strip b {
  display: block;
  margin-top: 7px;
  color: var(--portal-ink);
  font-size: 16px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

body[data-page="overview"] .home-evidence-paths {
  margin-top: 16px;
}

.resource-support-head {
  max-width: 860px;
  margin-bottom: 12px;
}

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

.resource-support-card {
  min-height: 172px;
}

.resource-support-card b {
  margin-top: auto;
  color: var(--portal-teal);
  font-size: 13px;
}

body[data-page="overview"] .evidence-path-grid,
body[data-page="overview"] .cohort-finding-board {
  display: none !important;
}

.page-heading {
  padding-top: 24px;
  padding-bottom: 16px;
}

.page-heading h1,
body[data-page="slide"] .slide-page-heading h1,
body[data-page="upload"] .upload-heading h1,
body[data-page="result"] .result-inspector-heading h1 {
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1;
}

.page-heading .lead,
body[data-page="slide"] .slide-page-heading .lead,
body[data-page="upload"] .upload-heading .lead,
body[data-page="result"] .result-inspector-heading .lead {
  max-width: 900px;
  font-size: 15px;
  line-height: 1.58;
}

.panel,
.workspace > *,
.upload-flow-strip article,
.result-inspector-shell article {
  border-color: var(--portal-line);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.04);
}

@media (max-width: 1180px) {
  .side-nav,
  main {
    width: min(calc(100% - 28px), var(--portal-max));
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .side-nav nav {
    justify-content: stretch;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="overview"] .top-panel,
  .resource-command-panel,
  .cohort-resource-strip,
  .resource-integrity-strip,
  .resource-support-grid {
    grid-template-columns: 1fr;
  }
}

/* Public navigation hardening, 2026-07-10.
   The navbar is a fixed component: no JS insertion, no per-page width drift. */
.side-nav .primary-nav {
  display: grid !important;
  grid-template-columns: repeat(4, 112px) 92px 180px !important;
  grid-auto-columns: unset !important;
  justify-content: end;
  align-items: center;
  gap: 4px;
  width: auto;
  min-width: calc(112px * 4 + 92px + 180px + 20px);
}

.side-nav .primary-nav a,
.side-nav .primary-nav .language-toggle {
  width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  padding: 0 10px;
  justify-content: center;
  text-align: center;
  transform: none !important;
  box-shadow: none;
}

.side-nav .primary-nav a:hover,
.side-nav .primary-nav a.active,
.side-nav .primary-nav .language-toggle:hover {
  transform: none !important;
}

.side-nav .primary-nav a[data-nav-page="upload"] {
  padding-inline: 12px;
}

.side-nav .primary-nav .language-toggle {
  display: inline-grid;
  grid-template-columns: 28px 24px 24px;
  align-items: center;
  gap: 4px;
}

@media (max-width: 1180px) {
  .side-nav .primary-nav {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Final public portal navigation and layout lock, 2026-07-10.
   Keep the resource portal visually stable across pages and languages. */
:root {
  --portal-max: 1440px;
  --portal-nav-main: 112px;
  --portal-nav-lang: 92px;
  --portal-nav-upload: 184px;
  --portal-nav-gap: 4px;
}

html:not(.app-ready) .side-nav,
html:not(.app-ready) .side-nav *,
html:not(.app-ready) .hero-actions *,
html:not(.app-ready) .language-toggle i::after {
  transition: none !important;
  animation: none !important;
}

.side-nav,
main {
  width: min(calc(100% - 48px), var(--portal-max)) !important;
}

.side-nav {
  grid-template-columns: minmax(300px, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 68px !important;
  margin-top: 14px !important;
  padding: 10px 12px 10px 14px !important;
  border: 1px solid rgba(16, 24, 32, 0.1) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 252, 0.98) !important;
  box-shadow: 0 10px 26px rgba(16, 24, 32, 0.055) !important;
}

.brand {
  min-width: 0 !important;
  max-width: 100% !important;
}

.brand > div:last-child {
  min-width: 0;
}

.brand strong {
  line-height: 1.05;
}

.brand span {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-nav .primary-nav {
  display: grid !important;
  grid-template-columns:
    repeat(4, var(--portal-nav-main))
    var(--portal-nav-lang)
    var(--portal-nav-upload) !important;
  gap: var(--portal-nav-gap) !important;
  justify-self: end !important;
  justify-content: end !important;
  align-items: center !important;
  width: calc(var(--portal-nav-main) * 4 + var(--portal-nav-lang) + var(--portal-nav-upload) + var(--portal-nav-gap) * 5) !important;
  min-width: calc(var(--portal-nav-main) * 4 + var(--portal-nav-lang) + var(--portal-nav-upload) + var(--portal-nav-gap) * 5) !important;
  padding: 4px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(16, 24, 32, 0.08) !important;
  background: #f5f7f4 !important;
}

.side-nav .primary-nav > a,
.side-nav .primary-nav > .language-toggle {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 7px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transform: none !important;
  box-shadow: none !important;
}

.side-nav .primary-nav > a:hover,
.side-nav .primary-nav > a.active,
.side-nav .primary-nav > .language-toggle:hover {
  transform: none !important;
}

.side-nav .primary-nav > a[data-nav-page="upload"] {
  padding-inline: 12px !important;
}

.side-nav .primary-nav > .language-toggle {
  display: inline-grid !important;
  grid-template-columns: 28px 24px 24px !important;
  gap: 4px !important;
  border-color: rgba(16, 24, 32, 0.12) !important;
  background: #fffefb !important;
  color: var(--portal-soft) !important;
}

html[data-lang="en"] .side-nav .primary-nav > .language-toggle,
.side-nav .primary-nav > .language-toggle.is-en {
  border-color: rgba(16, 24, 32, 0.22) !important;
  background: #101820 !important;
  color: #fffefb !important;
}

html[data-lang="en"] .side-nav .primary-nav > .language-toggle i,
.side-nav .primary-nav > .language-toggle.is-en i {
  background: rgba(255, 255, 255, 0.18) !important;
}

html[data-lang="en"] .side-nav .primary-nav > .language-toggle i::after,
.side-nav .primary-nav > .language-toggle.is-en i::after {
  transform: translateX(8px) !important;
  background: #9ce1d0 !important;
}

@media (max-width: 1180px) {
  .side-nav,
  main {
    width: min(calc(100% - 28px), var(--portal-max)) !important;
  }

  .side-nav {
    grid-template-columns: 1fr !important;
  }

  .side-nav .primary-nav {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}


/* Slide detail header spacing fix, 2026-07-10. */
body[data-page="slide"] .detail-summary-strip {
  align-items: center !important;
  gap: 18px !important;
  margin-bottom: 14px !important;
  padding: 18px 22px !important;
  border: 1px solid rgba(16, 24, 32, 0.11) !important;
  border-radius: 12px !important;
  background: #fffefb !important;
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.04) !important;
}

body[data-page="slide"] .detail-summary-strip > div:first-child {
  min-width: 0;
  display: grid;
  gap: 8px;
}

body[data-page="slide"] .detail-summary-strip .back-link {
  width: fit-content;
  margin: 0;
  color: var(--portal-teal);
  font-size: 14px;
  line-height: 1.2;
}

body[data-page="slide"] .detail-summary-strip h2 {
  margin: 0 !important;
  max-width: 100%;
  font-size: clamp(28px, 3.1vw, 44px) !important;
  line-height: 1.05 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  overflow: visible !important;
  text-overflow: clip !important;
}

body[data-page="slide"] .detail-summary-strip p {
  margin: 0 !important;
  color: #6a7a82;
  font-size: 15px;
  line-height: 1.35;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body[data-page="slide"] .detail-summary-strip > .status-pill {
  align-self: center;
  justify-self: end;
  margin: 0;
  padding: 8px 13px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 860px) {
  body[data-page="slide"] .detail-summary-strip {
    grid-template-columns: 1fr !important;
    padding: 16px 18px !important;
  }

  body[data-page="slide"] .detail-summary-strip > .status-pill {
    justify-self: start;
  }
}

/* Slide interactive map toolbar spacing fix, 2026-07-10. */
body[data-page="slide"] .interactive-map-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  margin-bottom: 14px !important;
  padding: 18px 22px !important;
  border: 1px solid rgba(16, 24, 32, 0.1) !important;
  border-radius: 12px !important;
  background: #fffefb !important;
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.035) !important;
}

body[data-page="slide"] .interactive-map-toolbar div {
  min-width: 0;
  display: grid;
  gap: 7px;
}

body[data-page="slide"] .interactive-map-toolbar span {
  color: var(--portal-ink);
  font-size: 15px;
  line-height: 1.25;
}

body[data-page="slide"] .interactive-map-toolbar small {
  color: #6a7a82;
  font-size: 13px;
  line-height: 1.45;
}

body[data-page="slide"] .interactive-map-toolbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(0, 109, 111, 0.18);
  border-radius: 999px;
  background: #f2f8f5;
  color: var(--portal-teal);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

body[data-page="slide"] .interactive-map-toolbar a:hover {
  border-color: rgba(0, 109, 111, 0.32);
  background: #e8f1ed;
  text-decoration: none;
}

@media (max-width: 860px) {
  body[data-page="slide"] .interactive-map-toolbar {
    grid-template-columns: 1fr !important;
    padding: 16px 18px !important;
  }

  body[data-page="slide"] .interactive-map-toolbar a {
    justify-self: start;
    white-space: normal;
  }
}

/* Home Figure 1 workflow preview, 2026-07-10. */
body[data-page="overview"] .workflow-figure-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 392px;
  padding: 14px;
  border-radius: 14px;
  background: #fffefb;
  overflow: hidden;
}

body[data-page="overview"] .workflow-figure-preview .resource-preview-head {
  margin-bottom: 10px;
}

body[data-page="overview"] .workflow-figure-stage {
  min-height: 0;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8faf7);
  overflow: hidden;
}

body[data-page="overview"] .workflow-figure-stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 330px;
  object-fit: contain;
  object-position: center;
}

body[data-page="overview"] .workflow-figure-preview .resource-preview-foot {
  margin-top: 10px;
}

@media (max-width: 1180px) {
  body[data-page="overview"] .workflow-figure-preview {
    min-height: 320px;
  }

  body[data-page="overview"] .workflow-figure-stage img {
    max-height: 300px;
  }
}

/* Public resource portal v18, 2026-07-10.
   One aligned navigation system, one homepage entry, and one reading path. */
:root {
  --portal-max: 1440px;
  --portal-bg: #f4f6f4;
  --portal-paper: #ffffff;
  --portal-ink: #111a22;
  --portal-soft: #536169;
  --portal-muted: #748088;
  --portal-line: #dce3df;
  --portal-teal: #006d6f;
  --portal-teal-soft: #e9f3f0;
  --portal-blue: #315f86;
  --portal-rose: #a44f6e;
}

body {
  background: var(--portal-bg) !important;
  color: var(--portal-ink);
  font-family: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", sans-serif;
}

body::before {
  display: none !important;
}

.side-nav,
main {
  width: min(calc(100% - 64px), var(--portal-max)) !important;
}

.side-nav {
  position: relative !important;
  grid-template-columns: minmax(280px, 1fr) auto !important;
  align-items: center !important;
  gap: 28px !important;
  min-height: 72px !important;
  margin: 0 auto !important;
  padding: 15px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--portal-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand {
  gap: 11px !important;
  min-width: 0 !important;
  width: fit-content !important;
}

.brand::after {
  display: none !important;
}

.brand-mark {
  width: 42px !important;
  height: 42px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.brand strong {
  color: var(--portal-ink) !important;
  font-size: 18px !important;
  line-height: 1.05 !important;
}

.brand span {
  max-width: 270px !important;
  margin-top: 3px !important;
  color: var(--portal-muted) !important;
  font-size: 11.5px !important;
  line-height: 1.2 !important;
}

.side-nav .primary-nav {
  display: grid !important;
  grid-template-columns: repeat(4, 96px) 86px 166px !important;
  gap: 5px !important;
  justify-self: end !important;
  width: 661px !important;
  min-width: 661px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.side-nav .primary-nav > a,
.side-nav .primary-nav > .language-toggle {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #26333b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  transform: none !important;
}

.side-nav .primary-nav > a:hover,
.side-nav .primary-nav > a.active {
  border-color: #c8ddd7 !important;
  background: var(--portal-teal-soft) !important;
  color: var(--portal-teal) !important;
}

.side-nav .primary-nav > a[data-nav-page="upload"],
.side-nav .primary-nav > a[data-nav-page="upload"]:hover,
.side-nav .primary-nav > a[data-nav-page="upload"].active {
  border-color: var(--portal-ink) !important;
  background: var(--portal-ink) !important;
  color: #ffffff !important;
}

.side-nav .primary-nav > a:focus-visible,
.side-nav .primary-nav > .language-toggle:focus-visible {
  outline: 3px solid rgba(0, 109, 111, 0.2) !important;
  outline-offset: 2px !important;
}

.side-nav .primary-nav > .language-toggle,
html[data-lang="en"] .side-nav .primary-nav > .language-toggle,
.side-nav .primary-nav > .language-toggle.is-en {
  display: inline-grid !important;
  grid-template-columns: 24px 22px 24px !important;
  gap: 3px !important;
  border-color: var(--portal-line) !important;
  background: var(--portal-paper) !important;
  color: var(--portal-soft) !important;
}

main {
  padding: 0 0 64px !important;
}

body[data-page="overview"] .top-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.72fr) !important;
  gap: 30px 72px !important;
  align-items: center !important;
  min-height: 0 !important;
  padding: 58px 0 0 !important;
  border: 0 !important;
}

body[data-page="overview"] .top-panel::before {
  content: none !important;
}

body[data-page="overview"] .hero-copy {
  min-width: 0;
  max-width: 760px;
}

body[data-page="overview"] .kicker {
  margin: 0 0 12px !important;
  color: var(--portal-teal) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body[data-page="overview"] .top-panel h1 {
  max-width: 760px !important;
  margin: 0 !important;
  color: var(--portal-ink) !important;
  font-size: 52px !important;
  font-weight: 760 !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

body[data-page="overview"] .top-panel h1 span {
  display: block !important;
}

body[data-page="overview"] .top-panel h1 .hero-title-sub {
  max-width: 720px;
  margin-top: 8px;
  color: var(--portal-teal) !important;
  font-size: 0.64em;
  font-weight: 690;
  line-height: 1.16;
}

body[data-page="overview"] .top-panel .lead {
  max-width: 700px !important;
  margin: 18px 0 0 !important;
  color: var(--portal-soft) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

body[data-page="overview"] .hero-actions {
  display: flex;
  gap: 9px !important;
  margin-top: 22px !important;
}

body[data-page="overview"] .hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px !important;
  padding: 9px 15px !important;
  border: 1px solid #ccd5d1 !important;
  border-radius: 6px !important;
  background: var(--portal-paper) !important;
  color: var(--portal-ink) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  text-decoration: none;
}

body[data-page="overview"] .hero-actions .hero-primary-link {
  border-color: var(--portal-ink) !important;
  background: var(--portal-ink) !important;
  color: #ffffff !important;
}

.hero-atlas-search {
  min-width: 0;
  padding: 23px 24px 24px;
  border: 1px solid var(--portal-line);
  border-left: 3px solid var(--portal-teal);
  border-radius: 8px;
  background: var(--portal-paper);
}

.resource-label {
  color: var(--portal-teal) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.3;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

.hero-atlas-search h2 {
  max-width: 430px;
  margin: 8px 0 7px;
  color: var(--portal-ink);
  font-size: 24px;
  font-weight: 730;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-atlas-search > p {
  max-width: 450px;
  margin: 0;
  color: var(--portal-soft);
  font-size: 13px;
  line-height: 1.55;
}

.hero-search-form {
  margin-top: 18px;
}

.hero-search-form > label {
  display: block;
  margin-bottom: 7px;
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 700;
}

.hero-search-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 7px;
}

.hero-search-form input,
.hero-search-form button {
  min-height: 44px;
  border-radius: 6px;
  font: inherit;
}

.hero-search-form input {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #cfd8d4;
  background: #fbfcfb;
  color: var(--portal-ink);
  font-size: 13px;
}

.hero-search-form input:focus {
  border-color: var(--portal-teal);
  outline: 3px solid rgba(0, 109, 111, 0.12);
}

.hero-search-form button {
  border: 1px solid var(--portal-ink);
  background: var(--portal-ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.home-resource-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
  border-top: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
}

.home-resource-metrics > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 68px;
  padding: 17px 22px;
  border-right: 1px solid var(--portal-line);
}

.home-resource-metrics > div:first-child {
  padding-left: 0;
}

.home-resource-metrics > div:last-child {
  border-right: 0;
}

.home-resource-metrics b {
  color: var(--portal-ink);
  font-size: 25px;
  font-weight: 760;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.home-resource-metrics span {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

body[data-page="overview"] #overviewLabGrid.resource-home-overview-v8 {
  display: block !important;
  margin-top: 44px !important;
}

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 18px;
}

.home-section-heading h2 {
  max-width: 880px;
  margin: 7px 0 6px;
  color: var(--portal-ink);
  font-size: 30px;
  font-weight: 730;
  line-height: 1.18;
  letter-spacing: 0;
}

.home-section-heading p {
  max-width: 790px;
  margin: 0;
  color: var(--portal-soft);
  font-size: 13.5px;
  line-height: 1.58;
}

.home-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--portal-teal);
  color: var(--portal-teal);
  font-size: 12.5px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.cohort-resource-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.cohort-resource-card {
  position: relative;
  display: grid !important;
  align-content: start !important;
  gap: 13px !important;
  min-height: 224px !important;
  padding: 19px 20px !important;
  border: 1px solid var(--portal-line) !important;
  border-top: 3px solid var(--portal-rose) !important;
  border-radius: 8px !important;
  background: var(--portal-paper) !important;
  box-shadow: none !important;
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.cohort-resource-card:nth-child(2) {
  border-top-color: var(--portal-blue) !important;
}

.cohort-resource-card:nth-child(3) {
  border-top-color: var(--portal-teal) !important;
}

.cohort-resource-card:hover {
  border-color: #aac8c0 !important;
  background: #fbfdfc !important;
}

.cohort-card-code {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.cohort-card-code span {
  color: var(--portal-muted);
  font-size: 10.5px;
  font-weight: 800;
}

.cohort-card-code b {
  color: var(--portal-ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.cohort-resource-card h3 {
  min-height: 42px;
  margin: 0 !important;
  color: var(--portal-ink) !important;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.25 !important;
}

.cohort-resource-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 1px 0 0;
  border-top: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
}

.cohort-resource-card dl > div {
  min-width: 0;
  padding: 11px 10px 11px 0;
  border-right: 1px solid var(--portal-line);
}

.cohort-resource-card dl > div:not(:first-child) {
  padding-left: 10px;
}

.cohort-resource-card dl > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.cohort-resource-card dt {
  color: var(--portal-muted);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.25;
}

.cohort-resource-card dd {
  margin: 5px 0 0;
  color: var(--portal-ink);
  font-size: 16px;
  font-weight: 740;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.cohort-resource-cta {
  margin-top: auto;
  color: var(--portal-teal) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}

.workflow-home-section {
  margin-top: 58px;
  padding-top: 36px;
  border-top: 1px solid var(--portal-line);
}

body[data-page="overview"] .workflow-figure-preview {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--portal-line) !important;
  border-radius: 8px !important;
  background: var(--portal-paper) !important;
  box-shadow: none !important;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

body[data-page="overview"] .workflow-figure-stage {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  overflow: hidden;
}

body[data-page="overview"] .workflow-figure-stage img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}

.workflow-figure-caption {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 15px 18px;
  border-top: 1px solid var(--portal-line);
}

.workflow-figure-caption span,
.workflow-figure-caption b {
  font-size: 12px;
  font-weight: 750;
}

.workflow-figure-caption span {
  color: var(--portal-muted);
}

.workflow-figure-caption p {
  margin: 0;
  color: var(--portal-soft);
  font-size: 12.5px;
  line-height: 1.52;
}

.workflow-figure-caption b {
  color: var(--portal-teal);
  white-space: nowrap;
}

body[data-page="overview"] .home-evidence-paths,
body[data-page="overview"] .survival-spotlight {
  display: none !important;
}

.page-heading {
  padding: 34px 0 18px !important;
}

.page-heading h1,
body[data-page="slides"] .slides-page-heading h1,
body[data-page="upload"] .upload-heading h1,
body[data-page="result"] .result-inspector-heading h1 {
  font-size: 42px !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.page-heading .lead,
body[data-page="slides"] .slides-page-heading .lead,
body[data-page="upload"] .upload-heading .lead,
body[data-page="result"] .result-inspector-heading .lead {
  max-width: 880px !important;
  font-size: 14px !important;
  line-height: 1.62 !important;
}

@media (max-width: 1180px) {
  .side-nav,
  main {
    width: min(calc(100% - 40px), var(--portal-max)) !important;
  }

  .side-nav {
    grid-template-columns: minmax(230px, 1fr) auto !important;
  }

  .side-nav .primary-nav {
    grid-template-columns: repeat(4, 84px) 80px 148px !important;
    width: 589px !important;
    min-width: 589px !important;
  }

  body[data-page="overview"] .top-panel {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr) !important;
    gap: 28px 42px !important;
  }

  body[data-page="overview"] .top-panel h1 {
    font-size: 46px !important;
  }

  .cohort-resource-card dl {
    grid-template-columns: 1fr;
  }

  .cohort-resource-card dl > div,
  .cohort-resource-card dl > div:not(:first-child) {
    padding: 7px 0;
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
  }

  .cohort-resource-card dl > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 980px) {
  .side-nav {
    grid-template-columns: 1fr !important;
  }

  .side-nav .primary-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body[data-page="overview"] .top-panel,
  .cohort-resource-strip,
  .home-section-heading {
    grid-template-columns: 1fr !important;
  }

  .home-section-link {
    justify-self: start;
  }

  .home-resource-metrics {
    grid-template-columns: 1fr;
  }

  .home-resource-metrics > div,
  .home-resource-metrics > div:first-child {
    padding-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
  }

  .home-resource-metrics > div:last-child {
    border-bottom: 0;
  }

  .workflow-figure-caption {
    grid-template-columns: 1fr;
  }
}

/* Guide and evidence reading system v19, 2026-07-10. */
.guide-heading {
  position: relative;
  padding-bottom: 26px !important;
  border-bottom: 1px solid var(--portal-line);
}

.guide-heading .lead {
  max-width: 790px !important;
}

.guide-heading-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.guide-heading-actions a,
.guide-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #cbd6d1;
  border-radius: 6px;
  background: var(--portal-paper);
  color: var(--portal-ink);
  font-size: 12.5px;
  font-weight: 750;
  text-decoration: none;
}

.guide-heading-actions a:first-child,
.guide-inline-link {
  border-color: var(--portal-ink);
  background: var(--portal-ink);
  color: #ffffff;
}

.guide-quickstart {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--portal-line);
}

.guide-quickstart a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 3px 12px;
  min-height: 84px;
  padding: 18px 22px;
  border-right: 1px solid var(--portal-line);
  color: inherit;
  text-decoration: none;
}

.guide-quickstart a:first-child {
  padding-left: 0;
}

.guide-quickstart a:last-child {
  border-right: 0;
}

.guide-quickstart a > span {
  grid-row: 1 / span 2;
  color: var(--portal-teal);
  font-size: 12px;
  font-weight: 800;
}

.guide-quickstart b {
  color: var(--portal-ink);
  font-size: 15px;
  line-height: 1.25;
}

.guide-quickstart small {
  color: var(--portal-muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.guide-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  margin-top: 40px;
}

.guide-toc {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-top: 2px solid var(--portal-ink);
  border-bottom: 1px solid var(--portal-line);
}

.guide-toc > span {
  margin-bottom: 6px;
  color: var(--portal-muted);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-toc a {
  padding: 7px 0;
  color: var(--portal-soft);
  font-size: 12.5px;
  font-weight: 680;
  line-height: 1.3;
  text-decoration: none;
}

.guide-toc a:hover {
  color: var(--portal-teal);
}

.guide-content {
  min-width: 0;
  max-width: 1100px;
}

.guide-section {
  scroll-margin-top: 24px;
  margin-bottom: 38px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--portal-line);
}

.guide-section:last-child {
  margin-bottom: 0;
}

.guide-section-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.guide-section-head > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #c8ddd7;
  border-radius: 6px;
  background: var(--portal-teal-soft);
  color: var(--portal-teal);
  font-size: 11px;
  font-weight: 800;
}

.guide-section h2 {
  margin: 0;
  color: var(--portal-ink);
  font-size: 25px;
  font-weight: 730;
  line-height: 1.2;
  letter-spacing: 0;
}

.guide-section-head p {
  max-width: 830px;
  margin: 6px 0 0;
  color: var(--portal-soft);
  font-size: 13.5px;
  line-height: 1.58;
}

.guide-steps {
  display: grid;
  margin: 0 0 18px 56px;
  padding: 0;
  border-top: 1px solid var(--portal-line);
  list-style: none;
}

.guide-steps li {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--portal-line);
}

.guide-steps b {
  color: var(--portal-ink);
  font-size: 13px;
  line-height: 1.4;
}

.guide-steps p {
  margin: 0;
  color: var(--portal-soft);
  font-size: 13px;
  line-height: 1.6;
}

.guide-inline-link {
  margin-left: 56px;
}

.guide-table-wrap {
  margin-left: 56px;
  overflow-x: auto;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.guide-output-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--portal-paper);
}

.guide-output-table th,
.guide-output-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--portal-line);
  color: var(--portal-soft);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.guide-output-table th {
  background: #f3f6f4;
  color: var(--portal-ink);
  font-size: 11px;
  font-weight: 800;
}

.guide-output-table tr:last-child td {
  border-bottom: 0;
}

.guide-output-table code {
  color: var(--portal-teal);
  font-size: 12px;
  font-weight: 800;
}

.guide-boundary-list,
.guide-reuse-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px 56px;
}

.guide-boundary-list > div,
.guide-reuse-grid > div {
  padding: 16px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: var(--portal-paper);
}

.guide-boundary-list > div {
  border-top: 3px solid var(--portal-rose);
}

.guide-boundary-list > div:nth-child(2) {
  border-top-color: var(--portal-blue);
}

.guide-boundary-list > div:nth-child(3) {
  border-top-color: var(--portal-teal);
}

.guide-boundary-list b,
.guide-reuse-grid b {
  color: var(--portal-ink);
  font-size: 13px;
  line-height: 1.35;
}

.guide-boundary-list p,
.guide-reuse-grid p {
  margin: 7px 0 0;
  color: var(--portal-soft);
  font-size: 12.5px;
  line-height: 1.58;
}

body[data-page="evidence"] .evidence-heading {
  padding-bottom: 24px !important;
}

.evidence-reading-path {
  display: grid;
  grid-template-columns: 120px repeat(3, minmax(0, 1fr));
  align-items: stretch;
  border-top: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
}

.evidence-reading-label {
  align-self: center;
  color: var(--portal-muted);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.evidence-reading-path a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 10px;
  min-height: 72px;
  padding: 14px 18px;
  border-left: 1px solid var(--portal-line);
  color: inherit;
  text-decoration: none;
}

.evidence-reading-path a b {
  grid-row: 1 / span 2;
  color: var(--portal-teal);
  font-size: 11px;
}

.evidence-reading-path a span {
  color: var(--portal-ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.evidence-reading-path a small {
  color: var(--portal-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

body[data-page="evidence"] .interactive-evidence-shell {
  margin-top: 24px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
  scroll-margin-top: 24px;
}

body[data-page="evidence"] .evidence-hero-panel {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.52fr) !important;
  gap: 0 !important;
  border: 1px solid var(--portal-line) !important;
  border-radius: 8px !important;
  background: var(--portal-paper) !important;
  box-shadow: none !important;
}

body[data-page="evidence"] .evidence-hero-copy {
  min-height: 0 !important;
  padding: 24px 26px !important;
  color: var(--portal-soft) !important;
}

body[data-page="evidence"] .evidence-hero-copy::before {
  content: none !important;
}

body[data-page="evidence"] .evidence-hero-copy span {
  color: var(--portal-teal) !important;
}

body[data-page="evidence"] .evidence-hero-copy h2 {
  max-width: 760px !important;
  margin: 8px 0 !important;
  color: var(--portal-ink) !important;
  font-size: 27px !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

body[data-page="evidence"] .evidence-hero-copy p {
  max-width: 800px !important;
  color: var(--portal-soft) !important;
  font-size: 13px !important;
  line-height: 1.62 !important;
}

body[data-page="evidence"] .evidence-hero-tags {
  gap: 6px !important;
  margin-top: 15px !important;
}

body[data-page="evidence"] .evidence-hero-tags span {
  padding: 5px 8px !important;
  border: 1px solid #c9ddd7 !important;
  border-radius: 5px !important;
  background: var(--portal-teal-soft) !important;
  color: var(--portal-teal) !important;
  font-size: 10.5px !important;
}

body[data-page="evidence"] .evidence-hero-dashboard {
  gap: 8px !important;
  padding: 14px !important;
  border-left: 1px solid var(--portal-line);
  background: #f5f8f6 !important;
}

body[data-page="evidence"] .evidence-hero-stats div,
body[data-page="evidence"] .evidence-hero-readorder {
  border-color: var(--portal-line) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

body[data-page="evidence"] .evidence-hero-stats div {
  min-height: 64px !important;
  padding: 11px 12px !important;
}

body[data-page="evidence"] .evidence-hero-stats b {
  margin-top: 5px !important;
  font-size: 24px !important;
}

body[data-page="evidence"] .evidence-hero-readorder {
  padding: 11px 12px !important;
}

body[data-page="evidence"] .evidence-hero-readorder b {
  margin: 4px 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

body[data-page="evidence"] .evidence-hero-readorder small {
  font-size: 10.5px !important;
}

body[data-page="evidence"] .evidence-jump-nav {
  margin-top: 12px !important;
}

body[data-page="evidence"] .manuscript-figure-shell {
  scroll-margin-top: 24px;
  margin-top: 52px !important;
  padding-top: 34px !important;
  border-top: 1px solid var(--portal-line) !important;
}

@media (max-width: 1100px) {
  .guide-layout,
  body[data-page="evidence"] .evidence-hero-panel {
    grid-template-columns: 1fr !important;
  }

  .guide-toc {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-toc > span {
    grid-column: 1 / -1;
  }

  .guide-steps li,
  .guide-boundary-list,
  .guide-reuse-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="evidence"] .evidence-hero-dashboard {
    border-top: 1px solid var(--portal-line);
    border-left: 0;
  }
}

@media (max-width: 820px) {
  .guide-quickstart,
  .evidence-reading-path {
    grid-template-columns: 1fr;
  }

  .guide-quickstart a,
  .evidence-reading-path a {
    padding-left: 0;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--portal-line);
  }

  .guide-steps,
  .guide-inline-link,
  .guide-table-wrap,
  .guide-boundary-list,
  .guide-reuse-grid {
    margin-left: 0;
  }
}

/* Slide inspector: keep the prediction map inside the first viewport. */
body[data-page="slide"] .viewer-grid {
  margin-top: 12px !important;
}

body[data-page="slide"] .slide-workbench-card {
  padding: 12px !important;
}

body[data-page="slide"] .slide-identity {
  margin-bottom: 8px;
}

body[data-page="slide"] .detail-summary-strip {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 14px !important;
  min-height: 58px;
  margin: 0 !important;
  padding: 9px 12px !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

body[data-page="slide"] .detail-summary-strip .back-link {
  align-self: center;
  padding-right: 13px;
  border-right: 1px solid var(--portal-line);
  font-size: 12px;
  white-space: nowrap;
}

body[data-page="slide"] .slide-identity-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body[data-page="slide"] .slide-identity-copy h1 {
  margin: 0;
  color: var(--portal-ink);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

body[data-page="slide"] .slide-identity-copy p {
  margin: 0 !important;
  font-size: 12px;
  line-height: 1.25;
}

body[data-page="slide"] .detail-summary-strip > .status-pill {
  padding: 6px 10px !important;
  font-size: 11px;
}

body[data-page="slide"] .slide-control-bar {
  position: sticky;
  top: 8px;
  grid-template-columns: 120px minmax(220px, 1fr) 145px 170px 118px !important;
  gap: 7px !important;
  margin: 0 0 8px !important;
  padding: 8px !important;
  border-radius: 9px !important;
  box-shadow: 0 6px 16px rgba(16, 24, 32, 0.055) !important;
}

body[data-page="slide"] .slide-control-bar .muted-control {
  display: none;
}

body[data-page="slide"] .slide-control-bar label {
  gap: 3px !important;
  font-size: 11px !important;
}

body[data-page="slide"] .slide-control-bar select,
body[data-page="slide"] .slide-control-bar input[type="range"] {
  min-height: 34px;
}

body[data-page="slide"] .interactive-map-panel {
  margin-top: 0 !important;
}

body[data-page="slide"] .interactive-map-toolbar {
  min-height: 46px;
  gap: 12px !important;
  margin-bottom: 8px !important;
  padding: 7px 10px !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

body[data-page="slide"] .interactive-map-toolbar div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

body[data-page="slide"] .interactive-map-toolbar span {
  flex: 0 0 auto;
  font-size: 14px;
}

body[data-page="slide"] .interactive-map-toolbar small {
  min-width: 0;
  overflow: hidden;
  color: var(--portal-muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="slide"] .interactive-map-toolbar a {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 11px;
}

body[data-page="slide"] .map-canvas-frame {
  min-height: 540px;
  padding-top: 6px;
}

body[data-page="slide"] .detail-actions,
body[data-page="slide"] .metadata-panel,
body[data-page="slide"] .map-method-panel {
  margin-top: 8px;
}

@media (max-width: 1180px) {
  body[data-page="slide"] .slide-control-bar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body[data-page="slide"] .detail-summary-strip {
    grid-template-columns: 1fr auto !important;
  }

  body[data-page="slide"] .detail-summary-strip .back-link {
    grid-column: 1 / -1;
    padding-right: 0;
    padding-bottom: 7px;
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
  }

  body[data-page="slide"] .slide-control-bar {
    grid-template-columns: 1fr !important;
  }

  body[data-page="slide"] .interactive-map-toolbar div {
    display: grid;
    gap: 3px;
  }

  body[data-page="slide"] .interactive-map-toolbar small {
    white-space: normal;
  }
}

/* Homepage narrative order: method, resource scale, then cohort atlas. */
body[data-page="overview"] #overviewLabGrid.resource-home-overview-v9 {
  display: block !important;
  margin-top: 44px !important;
}

body[data-page="overview"] .resource-home-overview-v9 .workflow-home-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body[data-page="overview"] .resource-home-overview-v9 .home-resource-metrics {
  margin-top: 30px;
}

body[data-page="overview"] .resource-home-overview-v9 .cohort-atlas-section {
  margin-top: 58px;
  padding-top: 36px;
  border-top: 1px solid var(--portal-line);
}

/* Homepage compact resource presentation and five-item public navigation. */
@media (min-width: 1181px) {
  .side-nav .primary-nav {
    grid-template-columns: repeat(3, 96px) 86px 166px !important;
    width: 560px !important;
    min-width: 560px !important;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .side-nav .primary-nav {
    grid-template-columns: repeat(3, 84px) 80px 148px !important;
    width: 500px !important;
    min-width: 500px !important;
  }
}

body[data-page="overview"] .top-panel {
  gap: 22px 56px !important;
  padding-top: 28px !important;
}

body[data-page="overview"] .top-panel h1 {
  font-size: 46px !important;
}

body[data-page="overview"] .top-panel h1 .hero-title-sub {
  margin-top: 5px;
}

body[data-page="overview"] .top-panel .lead {
  margin-top: 11px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

body[data-page="overview"] .hero-actions {
  margin-top: 14px !important;
}

body[data-page="overview"] .hero-atlas-search {
  padding: 16px 18px 18px;
}

body[data-page="overview"] .hero-atlas-search h2 {
  margin: 5px 0 0;
  font-size: 21px;
}

body[data-page="overview"] .hero-search-form {
  margin-top: 12px;
}

body[data-page="overview"] #overviewLabGrid.resource-home-overview-v9 {
  margin-top: 24px !important;
}

body[data-page="overview"] .resource-home-overview-v9 .home-section-heading {
  margin-bottom: 10px;
}

body[data-page="overview"] .resource-home-overview-v9 .home-section-heading h2 {
  margin-bottom: 0;
  font-size: 27px;
}

body[data-page="overview"] .resource-home-overview-v9 .workflow-figure-preview {
  margin: 0 !important;
}

body[data-page="overview"] .resource-home-overview-v9 .home-resource-metrics {
  margin-top: 20px;
}

body[data-page="overview"] .resource-home-overview-v9 .cohort-atlas-section {
  margin-top: 42px;
  padding-top: 0;
  border-top: 0;
}

body[data-page="overview"] .cohort-resource-card {
  gap: 10px !important;
  min-height: 0 !important;
}

.cohort-example-slide {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.cohort-example-image {
  display: grid;
  place-items: center;
  min-height: 232px;
  padding: 6px;
  border: 1px solid var(--portal-line);
  border-radius: 6px;
  background: #f7f9f7;
  overflow: hidden;
}

.cohort-example-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cohort-example-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  background: #fffefa;
}

.cohort-example-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cohort-example-copy small {
  color: var(--portal-muted);
  font-size: 10px;
  font-weight: 700;
}

.cohort-example-copy b {
  color: var(--portal-ink);
  font-size: 11.5px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cohort-example-slide:hover .cohort-example-copy b {
  color: var(--portal-teal);
}

.cohort-resource-card .cohort-resource-cta {
  display: inline-flex;
  width: fit-content;
  text-decoration: none;
}

/* Upload workbench: align both primary cards and their section headings. */
body[data-page="upload"] .upload-grid {
  align-items: stretch;
}

body[data-page="upload"] .prediction-workbench,
body[data-page="upload"] .prediction-status-panel {
  height: 100%;
}

body[data-page="upload"] .prediction-workbench {
  display: flex;
  flex-direction: column;
}

body[data-page="upload"] .prediction-workbench > .panel-title,
body[data-page="upload"] .prediction-status-panel > .panel-title {
  flex: 0 0 auto;
  min-height: 40px;
  margin: 0 0 16px;
}

body[data-page="upload"] .selected-file-panel {
  padding-top: 12px;
}

body[data-page="upload"] .prediction-status-panel {
  display: flex;
  flex-direction: column;
}

body[data-page="upload"] .prediction-status-panel .progress-hero {
  flex: 1 1 auto;
  min-height: 0;
}

/* Upload workbench mobile layout, 2026-07-14. */
@media (max-width: 760px) {
  body[data-page="upload"] main {
    width: calc(100% - 24px) !important;
    padding-bottom: 36px !important;
  }

  body[data-page="upload"] .upload-heading {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
    padding: 22px 0 18px !important;
  }

  body[data-page="upload"] .upload-heading > div,
  body[data-page="upload"] .upload-heading h1,
  body[data-page="upload"] .upload-heading .lead {
    min-width: 0;
    width: 100%;
  }

  body[data-page="upload"] .upload-heading h1 {
    margin: 0 0 8px !important;
    font-size: 34px !important;
    line-height: 1.04 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body[data-page="upload"] .upload-heading .lead {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body[data-page="upload"] .backend-status-card {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  body[data-page="upload"] .upload-flow-strip {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    margin: 12px 0 !important;
  }

  body[data-page="upload"] .upload-flow-strip article {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 3px 10px;
    align-items: start;
    padding: 12px 14px !important;
  }

  body[data-page="upload"] .upload-flow-strip article > span {
    grid-row: 1 / span 2;
    margin: 0 !important;
  }

  body[data-page="upload"] .upload-flow-strip b {
    font-size: 16px;
    line-height: 1.25;
  }

  body[data-page="upload"] .upload-flow-strip p {
    margin: 2px 0 0 !important;
    font-size: 12px;
    line-height: 1.45;
  }

  body[data-page="upload"] .upload-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  body[data-page="upload"] .prediction-workbench,
  body[data-page="upload"] .prediction-status-panel,
  body[data-page="upload"] .upload-result-browser {
    height: auto !important;
    padding: 12px !important;
  }

  body[data-page="upload"] .prediction-workbench > .panel-title,
  body[data-page="upload"] .prediction-status-panel > .panel-title {
    min-height: 32px;
    margin-bottom: 12px;
  }

  body[data-page="upload"] .panel-title h2 {
    font-size: 18px;
    line-height: 1.2;
  }

  body[data-page="upload"] .backend-banner {
    padding: 12px;
    font-size: 12px;
    line-height: 1.5;
  }

  body[data-page="upload"] .collection-consent {
    margin-top: 14px;
    padding: 14px 0;
  }

  body[data-page="upload"] .collection-consent p,
  body[data-page="upload"] .collection-consent-check {
    font-size: 11px;
  }

  body[data-page="upload"] .drop-zone {
    min-height: 150px;
    padding: 18px 14px;
  }

  body[data-page="upload"] .drop-zone > span:last-child {
    font-size: 11px;
    line-height: 1.45;
  }

  body[data-page="upload"] .advanced-settings summary small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
  }

  body[data-page="upload"] .job-options,
  body[data-page="upload"] .density-mode-row,
  body[data-page="upload"] .density-controls {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-page="upload"] .upload-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="upload"] .upload-actions button {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
    white-space: normal;
  }

  body[data-page="upload"] .progress-hero {
    min-height: 0 !important;
    padding: 14px !important;
  }

  body[data-page="upload"] .progress-hero-top b {
    font-size: 22px;
  }

  body[data-page="upload"] .job-progress-steps {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body[data-page="upload"] .job-progress-steps div {
    display: grid !important;
    min-height: 58px;
    padding: 7px 5px !important;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
  }

  body[data-page="upload"] .job-progress-steps span {
    display: block;
    min-width: 0;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  body[data-page="upload"] .job-status-card {
    padding: 12px;
  }

  body[data-page="upload"] .result-browser-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0 0 12px !important;
  }

  body[data-page="upload"] .result-browser-actions,
  body[data-page="upload"] .job-links,
  body[data-page="upload"] .job-history-actions {
    width: 100%;
    justify-content: stretch;
  }

  body[data-page="upload"] .result-browser-actions > *,
  body[data-page="upload"] .job-links > *,
  body[data-page="upload"] .job-history-actions > * {
    flex: 1 1 auto;
    min-width: 0;
  }

  body[data-page="upload"] .result-browser-content {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  body[data-page="upload"] .result-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="upload"] .result-stage-card {
    min-width: 0;
    padding: 8px !important;
  }

  body[data-page="upload"] .result-stage-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body[data-page="upload"] .result-stage-toolbar button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 7px 6px;
    white-space: normal;
  }

  body[data-page="upload"] .upload-result-canvas-wrap {
    min-height: 300px !important;
  }

  body[data-page="upload"] .private-history-panel summary {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 6px 10px;
    align-items: center;
    padding: 13px 14px !important;
  }

  body[data-page="upload"] .private-history-panel summary small {
    grid-column: 1;
    margin: 0 !important;
    font-size: 11px;
    line-height: 1.35;
  }

  body[data-page="upload"] .private-history-panel summary::after {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  body[data-page="upload"] .job-history-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
  }

  body[data-page="upload"] .job-history-meta b,
  body[data-page="upload"] .job-history-meta small {
    overflow-wrap: anywhere;
  }
}

/* Compact mobile navigation, 2026-07-14. */
.mobile-nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  .side-nav {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 42px !important;
    align-items: center !important;
    gap: 10px !important;
    width: calc(100% - 24px) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 10px 0 !important;
  }

  .side-nav .brand {
    justify-self: start !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 9px !important;
    text-align: left !important;
  }

  .side-nav .brand-mark {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px;
  }

  .side-nav .brand strong {
    font-size: 17px !important;
  }

  .side-nav .brand span {
    display: block !important;
    max-width: 190px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .mobile-nav-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--portal-line);
    border-radius: 7px;
    background: var(--portal-paper);
    color: var(--portal-ink);
    box-shadow: none;
  }

  .mobile-nav-toggle:hover,
  .mobile-nav-toggle:focus-visible {
    border-color: #b8d5ce;
    background: var(--portal-teal-soft);
    color: var(--portal-teal);
    transform: none;
  }

  .mobile-nav-toggle:focus-visible {
    outline: 3px solid rgba(0, 109, 111, 0.18);
    outline-offset: 2px;
  }

  .mobile-nav-toggle span,
  .mobile-nav-toggle span::before,
  .mobile-nav-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .mobile-nav-toggle span {
    position: relative;
  }

  .mobile-nav-toggle span::before,
  .mobile-nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .mobile-nav-toggle span::before {
    top: -6px;
  }

  .mobile-nav-toggle span::after {
    top: 6px;
  }

  .side-nav.mobile-nav-open .mobile-nav-toggle span {
    background: transparent;
  }

  .side-nav.mobile-nav-open .mobile-nav-toggle span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .side-nav.mobile-nav-open .mobile-nav-toggle span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .side-nav .primary-nav {
    display: none !important;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 4px 0 0 !important;
  }

  .side-nav.mobile-nav-open .primary-nav {
    display: grid !important;
  }

  .side-nav .primary-nav > a,
  .side-nav .primary-nav > .language-toggle {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 9px !important;
    border: 1px solid var(--portal-line) !important;
    border-radius: 7px !important;
    background: var(--portal-paper) !important;
    color: var(--portal-ink) !important;
    font-size: 13px !important;
  }

  .side-nav .primary-nav > a[data-nav-page="upload"] {
    grid-column: 1 / -1;
    border-color: var(--portal-ink) !important;
    background: var(--portal-ink) !important;
    color: #ffffff !important;
  }

  .side-nav .primary-nav > .language-toggle,
  html[data-lang="en"] .side-nav .primary-nav > .language-toggle,
  .side-nav .primary-nav > .language-toggle.is-en {
    display: inline-grid !important;
    grid-template-columns: 24px 22px 24px !important;
    justify-content: center !important;
    color: var(--portal-soft) !important;
  }
}
