:root {
  --navy: #4b2d47;
  --navy-dark: #342334;
  --blue: #834b75;
  --teal: #8c5d7e;
  --ink: #3b303b;
  --muted: #756774;
  --line: #e7dce4;
  --soft: #f7f1f5;
  --white: #ffffff;
  --green-bg: #e8f5ef;
  --green: #176b4d;
  --amber-bg: #fff3d6;
  --amber: #8b5a00;
  --shadow: 0 6px 24px rgba(75, 45, 71, 0.045);
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-padding-top: 90px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
button, input, select { font-family: inherit; }
button, .button { cursor: pointer; }

body {
  margin: 0;
  color: var(--ink);
  background: #fbf9fa;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--blue); }
a:hover { color: var(--navy-dark); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  word-break: break-word;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--ink);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-dark);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark { padding: 5px 11px; border-radius: 9px; color: var(--white); background: var(--navy); font-size: 21px; font-weight: 750; letter-spacing: 0.02em; }
.brand-name { max-width: 220px; white-space: normal; line-height: 1.35; font-size: 12px; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 5px; }
.site-nav a {
  display: flex;
  align-items: center;
  padding: 8px 13px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  font-weight: 600;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--soft); }

.header-inner.bilingual-header { grid-template-columns: minmax(280px, 1fr) auto auto; gap: 14px; }
.language-switch { display: inline-flex; padding: 2px; border: 1px solid rgba(255,255,255,0.45); border-radius: 4px; }
.language-switch button { min-width: 42px; padding: 4px 7px; color: #e7f0f7; background: transparent; border: 0; border-radius: 2px; cursor: pointer; font: inherit; font-size: 12px; }
.language-switch button[aria-pressed="true"] { color: var(--navy-dark); background: var(--white); font-weight: 750; }
.language-switch button:focus-visible { outline: 2px solid #9fd2f0; outline-offset: 2px; }

.hero { background: linear-gradient(115deg, #f5edf2, #fbf9fa 80%); border-bottom: 1px solid var(--line); }
.hero-inner { padding: 72px 0 64px; }
.hero h1 { max-width: 820px; margin: 14px 0 18px; font-family: var(--font-sans); font-size: clamp(34px, 4.2vw, 54px); letter-spacing: -.035em; line-height: 1.16; font-weight: 650; color: var(--navy-dark); }
.hero p:not(.eyebrow) { max-width: 760px; margin: 0; font-size: 18px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-actions .button { gap: 16px; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  gap: 12px;
  transition: background-color .15s, border-color .15s;
}
.button.primary { color: var(--white); background: var(--blue); border-color: var(--blue); }
.button:hover { color: var(--navy-dark); background: var(--soft); }
.button.primary:hover { color: var(--white); background: var(--navy); }
.button.disabled { color: #8794a0; background: #edf1f4; border-color: var(--line); cursor: not-allowed; }

.eyebrow { margin: 0; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stat-strip div { padding: 20px 24px; border-right: 1px solid var(--line); }
.stat-strip div:last-child { border-right: 0; }
.stat-strip strong { display: block; font-size: 28px; line-height: 1.2; color: var(--navy); }
.stat-strip span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-top: 34px; padding-bottom: 56px; }
.feature-grid article { padding: 22px; border-top: 4px solid #83b7d8; background: var(--soft); }
.feature-grid h2 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.feature-grid p { margin: 0; color: var(--muted); }

main.page-shell { padding-top: 34px; padding-bottom: 60px; min-width: 0; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.page-heading h1 { margin: 6px 0 12px; letter-spacing: -.035em; font-family: var(--font-sans); font-size: 36px; line-height: 1.2; color: var(--navy-dark); }
.page-heading p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--muted); }
.count-box { min-width: 130px; padding: 12px 18px; text-align: center; background: var(--soft); border: 1px solid var(--line); }
.count-box strong { display: block; color: var(--navy); font-size: 25px; }
.count-box span { color: var(--muted); font-size: 12px; }

.filters {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 10px;
  padding: 15px;
  margin-bottom: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.filters.genome-filters { grid-template-columns: 1.6fr repeat(3, 1fr); }
.filters label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 650; }
.filters input,
.filters select { width: 100%; min-width: 0; height: 38px; padding: 6px 8px; color: var(--ink); background: var(--white); border: 1px solid #aebbc6; border-radius: 3px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.source-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.source-table th { padding: 10px 12px; color: #eaf3f8; background: var(--navy); text-align: left; font-weight: 650; white-space: nowrap; }
.source-table td { padding: 11px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.source-table tbody tr:nth-child(even) { background: #fbf9fa; }
.source-table tbody tr:hover { background: #edf5fa; }
.source-table small { display: block; margin-top: 3px; color: var(--muted); }
.source-table .number { text-align: right; font-variant-numeric: tabular-nums; }
.source-table td strong { color: var(--navy); }
.source-id { font-weight: 750; text-decoration: none; }
.actions { white-space: nowrap; }
.actions a { display: block; }
.empty-state { padding: 24px; text-align: center; color: var(--muted); border: 1px solid var(--line); border-top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.genome-directory { max-width: 1180px; }
.directory-heading { margin-bottom: 18px; }
.directory-heading p:not(.eyebrow) { max-width: 860px; }
.directory-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: var(--white);
}
.directory-stats div { padding: 14px 18px; border-right: 1px solid var(--line); }
.directory-stats div:last-child { border-right: 0; }
.directory-stats strong { display: block; color: var(--navy); font-size: 23px; line-height: 1.2; }
.directory-stats span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.genome-directory .genome-filters { margin-bottom: 10px; }
.catalog-selection {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 9px 12px;
  color: var(--muted);
  background: #edf5fa;
  border: 1px solid #b8cddd;
  border-bottom: 0;
}
.catalog-selection > div { display: flex; gap: 14px; }
.catalog-selection p { margin: 0; text-align: center; font-size: 13px; }
.catalog-selection p strong { color: var(--navy); font-size: 16px; }
.text-button {
  padding: 0;
  color: var(--blue);
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  cursor: pointer;
}
.catalog-download-status { min-height: 0; margin: 0; padding: 0 12px; }
.catalog-download-status:not(:empty) { min-height: 32px; padding-top: 5px; padding-bottom: 5px; background: #f2faf7; border: 1px solid #b8d7ca; }
.genome-table-wrap { border-top: 1px solid var(--line); }
.genome-table { table-layout: fixed; font-size: 13px; }
.genome-table th:nth-child(1) { width: 44px; }
.genome-table th:nth-child(2) { width: 28%; }
.genome-table th:nth-child(3) { width: 22%; }
.genome-table th:nth-child(4) { width: 22%; }
.genome-table th:nth-child(5) { width: 90px; text-align: right; }
.genome-table th:nth-child(6) { width: 145px; }
.genome-table td { padding-top: 14px; padding-bottom: 14px; vertical-align: middle; }
.genome-name { display: block; color: var(--navy-dark); font-size: 14px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.genome-identity small { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 5px; }
.external-accession { font-size: 11px; text-decoration: none; }
.experiment-summary strong { display: block; color: var(--ink) !important; font-weight: 650; line-height: 1.4; }
.experiment-summary small { margin-top: 5px; }
.evidence-summary { color: #435261; font-size: 12px; line-height: 1.45; }
.evidence-summary .badge { display: table; margin-top: 6px; }
.endpoint-total strong { font-size: 15px; }
.row-actions { white-space: nowrap; }
.row-action { display: inline-flex; min-height: 31px; align-items: center; justify-content: center; padding: 4px 9px; border-radius: 3px; font-size: 12px; font-weight: 700; text-decoration: none; }
.row-action.primary { color: var(--white); background: var(--blue); border: 1px solid var(--blue); }
.row-action.secondary { margin-left: 6px; color: var(--navy); background: var(--white); border: 1px solid #9cb0c1; }
.row-action.edge { margin: 6px 0 0; color: #6b3d08; background: #fff7e6; border: 1px solid #d5a24a; }
.row-action:hover { color: var(--white); background: var(--navy); border-color: var(--navy); }
.directory-footnote { margin: 12px 0 0; color: var(--muted); font-size: 12px; }

.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-published { color: var(--green); background: var(--green-bg); }
.badge-audit { color: var(--amber); background: var(--amber-bg); }

.breadcrumbs { display: flex; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.record-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.record-heading h1 { margin: 4px 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; color: var(--navy-dark); }
.record-title { max-width: 800px; margin: 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 20px 0; background: var(--line); border: 1px solid var(--line); }
.metric { min-width: 0; padding: 14px; background: var(--white); }
.metric span { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: block; margin-top: 4px; color: var(--navy); font-size: 15px; overflow-wrap: anywhere; }

.record-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 0.75fr); gap: 20px; }
.record-main,
.record-side { display: grid; gap: 18px; align-content: start; }
.panel { padding: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel.compact { padding: 18px; box-shadow: none; }
.panel h2 { margin: 0 0 14px; color: var(--navy); font-size: 18px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.data-list { display: grid; grid-template-columns: 175px 1fr; margin: 0; border-top: 1px solid var(--line); }
.data-list dt,
.data-list dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.data-list dt { color: var(--muted); font-weight: 650; }
.section-note { margin: -7px 0 14px; color: var(--muted); }

.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.download-card { display: grid; gap: 4px; padding: 12px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); text-decoration: none; }
.download-card:hover { color: var(--navy); border-color: #8faabd; background: #edf5fa; }
.download-card code,
.download-card span { color: var(--muted); font-size: 12px; }
.download-disabled { opacity: 0.72; }
.download-card.featured { border-left: 4px solid var(--blue); background: #eef6fb; }
.compact-downloads { max-width: 680px; }
.evidence-note { padding: 12px 14px; color: #4a5661; background: #eef5fa; border-left: 4px solid #77a9c9; }
.browser-guide { border-top: 3px solid #4f86ad; box-shadow: none; }
.browser-guide .eyebrow { margin: 0 0 3px; }
.browser-guide .panel-header { align-items: flex-start; margin-bottom: 15px; }
.browser-guide .panel-header h2 { margin-bottom: 0; }
.browser-guide-hint { padding: 5px 9px; color: var(--navy); background: #eef5fa; border-radius: 3px; font-size: 12px; font-weight: 700; }
.strand-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 17px; }
.strand-legend > div { display: grid; grid-template-columns: 18px auto; column-gap: 8px; align-items: center; padding: 12px; background: var(--soft); border: 1px solid var(--line); }
.strand-legend > div > span:last-child { grid-column: 2; color: var(--muted); font-size: 12px; }
.strand-swatch { width: 12px; height: 12px; border-radius: 50%; }
.strand-swatch.plus { background: #2563a6; }
.strand-swatch.minus { background: #d2691e; }
.browser-guide .section-note { margin: 0; }
.browser-page {
  min-height: calc(100vh - 130px);
  padding: 18px 20px 34px;
  background: #f5f8fa;
}
.browser-info,
.browser-frame-panel {
  width: min(1440px, 100%);
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.browser-info { padding: 17px 20px 13px; }
.browser-info-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.browser-info-heading h1 { margin: 2px 0 2px; color: var(--navy-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.browser-assembly-line { display: flex; flex-wrap: wrap; gap: 7px; align-items: baseline; margin: 0; color: var(--muted); font-size: 13px; }
.browser-assembly-line a { font-weight: 750; text-decoration: none; }
.browser-info-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.browser-info-actions .button { min-height: 34px; padding: 5px 11px; font-size: 12px; }
.browser-source-row { display: grid; grid-template-columns: auto minmax(220px, 390px) 1fr; gap: 10px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.browser-source-row label { color: var(--muted); font-size: 12px; font-weight: 750; }
.browser-source-row select { min-width: 0; height: 34px; padding: 4px 8px; color: var(--ink); background: var(--white); border: 1px solid #aebbc6; border-radius: 3px; font: inherit; font-size: 13px; }
.browser-source-note { color: var(--muted); font-size: 12px; }
.browser-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 13px; margin-top: 11px; font-size: 12px; }
.browser-links-label { color: var(--navy); font-weight: 750; }
.browser-links a { font-weight: 700; }
.browser-link-row { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 9px; font-size: 12px; font-weight: 700; }
.browser-raw-links { display: inline-flex; flex-wrap: wrap; gap: 6px 13px; }
.browser-study-links { display: inline-flex; flex-wrap: wrap; gap: 5px 10px; width: 100%; padding-top: 3px; }
.browser-study-links-item { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 4px 8px; background: #f5f8fa; border: 1px solid var(--line); }
.browser-study-links-item strong { color: var(--navy); }
.browser-status { min-height: 19px; margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.browser-frame-panel { margin-top: 14px; overflow: hidden; }
.browser-frame-panel iframe { display: block; width: 100%; height: min(78vh, 920px); min-height: 620px; border: 0; background: var(--white); }
.browser-frame-note { margin: 0; padding: 7px 13px; color: var(--muted); background: #f7fafc; border-top: 1px solid var(--line); font-size: 11px; }

.assembly-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}
.assembly-summary p { max-width: 760px; margin: 0; color: var(--muted); }
.assembly-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.edge-button { color: #6b3d08; background: #fff7e6; border-color: #d5a24a; }
.edge-prototype-callout { display: flex; align-items: center; justify-content: space-between; gap: 26px; border-left: 4px solid #d5a24a; box-shadow: none; }
.edge-prototype-callout h2 { margin-bottom: 7px; }
.edge-prototype-callout p { max-width: 800px; margin: 0; color: var(--muted); }
.edge-prototype-callout > a { flex: 0 0 auto; font-weight: 750; }

.badge-pilot { color: #6b3d08; background: #fff1cf; }
.edge-demo { max-width: 1180px; }
.edge-search-heading { margin-bottom: 20px; }
.edge-search-heading .record-title { max-width: 760px; }
.edge-query-panel { display: grid; grid-template-columns: minmax(420px, 0.9fr) 1fr; gap: 26px; align-items: end; padding: 20px; background: #f7fafc; border-top: 3px solid var(--blue); box-shadow: none; }
.edge-query-panel form label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.edge-query-panel form > div { display: flex; gap: 8px; }
.edge-query-panel input { min-width: 0; flex: 1; padding: 10px 12px; color: var(--ink); background: var(--white); border: 1px solid #8da3b4; border-radius: 3px; font: inherit; }
.edge-query-panel input:focus { outline: 2px solid #a9d3eb; outline-offset: 1px; border-color: var(--blue); }
.edge-query-status { min-height: 22px; margin: 0; color: var(--muted); }
.edge-query-status.success { color: var(--green); }
.edge-query-status.error { color: #9b2c2c; }
.edge-query-status.loading { color: var(--blue); }
.organism-profile { padding: 0; overflow: hidden; box-shadow: none; }
.organism-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding: 24px; }
.organism-heading h2 { margin: 3px 0 7px; font-size: clamp(24px, 3vw, 34px); }
.organism-heading h2 span { margin-left: 5px; font-family: var(--font-sans); font-size: 0.58em; font-weight: 650; font-style: normal; }
.organism-heading p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted); }
.organism-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; background: #f5f8fa; border-top: 1px solid var(--line); }
.organism-facts div { min-width: 0; padding: 14px 16px; border-right: 1px solid var(--line); }
.organism-facts div:last-child { border-right: 0; }
.organism-facts dt { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: 0.02em; text-transform: uppercase; }
.organism-facts dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--navy); font-weight: 750; }
.edge-studies { margin-top: 30px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.section-heading h2 { margin: 3px 0 5px; }
.section-heading p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--muted); }
.study-card-list { display: grid; gap: 12px; }
.source-dataset-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr); gap: 18px 28px; padding: 21px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); box-shadow: var(--shadow); }
.source-dataset-card header h3 { margin: 7px 0 0; color: var(--navy); font-size: 19px; line-height: 1.35; }
.source-card-meta { color: var(--muted); font-size: 12px; font-weight: 700; }
.source-card-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.source-card-facts div { min-width: 0; padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.source-card-facts dt { color: var(--muted); font-size: 11px; font-weight: 750; }
.source-card-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--ink); font-size: 13px; line-height: 1.4; }
.source-dataset-card footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.study-link { font-weight: 700; }
.interpretation-list { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.interpretation-list li { padding: 10px 12px; background: var(--soft); border-left: 3px solid #8faabd; }
.edge-downloads { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(360px, 0.9fr); gap: 28px; align-items: center; margin-top: 18px; box-shadow: none; }
.edge-downloads h2 { margin-bottom: 6px; }
.edge-downloads p:not(.eyebrow) { margin: 0; color: var(--muted); }
.edge-downloads .download-grid { margin: 0; }
.service-note { margin: 16px 0 0; padding: 13px 16px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); }
.service-note summary { color: var(--navy); cursor: pointer; font-weight: 700; }
.service-note p { margin: 10px 0 0; max-width: 900px; }

.download-toolbar {
  position: sticky;
  top: 72px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #edf5fa;
  border: 1px solid #b8cddd;
  box-shadow: var(--shadow);
}
.download-toolbar > div:first-child { display: flex; gap: 8px; }
.download-toolbar button { cursor: pointer; }
.download-toolbar button:disabled { opacity: 0.55; cursor: not-allowed; }
.selection-summary { color: var(--muted); text-align: center; }
.selection-summary strong { color: var(--navy); font-size: 18px; }
.download-status { min-height: 24px; margin: 0 0 8px; color: var(--teal); font-weight: 650; }
.select-cell { width: 44px; text-align: center !important; }
.select-cell input { width: 17px; height: 17px; accent-color: var(--blue); cursor: pointer; }
.download-help { margin-top: 20px; box-shadow: none; }
.file-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.file-pair div { display: grid; gap: 4px; padding: 14px; background: var(--soft); border: 1px solid var(--line); }
.file-pair code { color: var(--navy); font-weight: 750; }
.file-pair span { color: var(--muted); font-size: 13px; }

.link-list { margin: 0; padding-left: 18px; }
.accession-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.accession-list li { min-width: 0; }
.accession-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 13px; color: var(--navy); background: var(--soft); border: 1px solid var(--line); text-decoration: none; }
.accession-list a:hover { border-color: #8faabd; background: #edf5fa; }
.accession-list code { color: var(--blue); font-weight: 750; }
.accession-list span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.accession-list.compact { grid-template-columns: 1fr; gap: 6px; }
.accession-list.compact a { display: grid; justify-content: initial; gap: 1px; padding: 8px 10px; }
.mini-list { margin: 0; }
.mini-list dt { margin-top: 8px; color: var(--muted); font-size: 12px; }
.mini-list dd { margin: 0; overflow-wrap: anywhere; }

.prose { max-width: 880px; }
.prose section { margin: 28px 0; }
.prose h2 { margin-bottom: 6px; color: var(--navy); font-size: 21px; border-bottom: 1px solid var(--line); }
.prose p { color: var(--muted); }

.site-footer { color: var(--muted); background: var(--white); border-top: 1px solid var(--line); }
.footer-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 12px; }
.site-footer a { color: var(--navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 22px; }
.source-notes { margin-top: 12px; color: var(--muted); font-size: 12px; }
.source-notes summary { cursor: pointer; color: var(--navy); }
.source-notes dl { margin-bottom: 0; }
.source-notes dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; margin-top: 8px; }
.source-notes dt { font-weight: 600; }
.source-notes dd { margin: 0; overflow-wrap: anywhere; }

.usage-range { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0; padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.usage-range label { font-size: 14px; font-weight: 600; }
.usage-range select { min-height: 40px; padding: 8px 30px 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: 14px; }
.usage-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.usage-metrics > div { padding: 22px 26px; border-right: 1px solid var(--line); }
.usage-metrics > div:last-child { border: 0; }
.usage-metrics span { display: block; color: var(--muted); font-size: 13px; }
.usage-metrics strong { display: block; margin-top: 5px; color: var(--navy-dark); font-size: 32px; font-weight: 650; font-variant-numeric: tabular-nums; }
.usage-panel { min-width: 0; margin-bottom: 22px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.usage-panel h2 { margin: 0 0 20px; color: var(--navy-dark); font-size: 18px; font-weight: 650; }
.usage-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.usage-map, .usage-trend { margin: 0; }
.usage-map svg { display: block; width: 100%; max-height: 440px; }
.usage-map-sphere { fill: #faf6f9; stroke: var(--line); }
.usage-map-country { stroke: white; stroke-width: .5; }
.usage-map-country:hover { stroke: var(--navy); stroke-width: 1.2; }
.usage-map figcaption, .usage-trend figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.usage-map figcaption { justify-content: center; }
.usage-map-scale { width: 140px; height: 9px; border-radius: 3px; background: linear-gradient(to right, #f1ebef, #eadbe6, #d5b6cc, #bb8cac, #995f86, #753e64); }
.usage-trend svg { display: block; width: 100%; height: 150px; border-bottom: 1px solid var(--line); }
.usage-table-wrap { overflow: auto; max-height: 360px; }
.usage-panel table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13px; }
.usage-panel th, .usage-panel td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; font-variant-numeric: tabular-nums; }
.usage-panel th:first-child { text-align: left; }
.usage-panel thead th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: var(--soft); font-size: 12px; font-weight: 600; }
.usage-panel tbody th { font-weight: 500; overflow-wrap: anywhere; }
.usage-panel small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.usage-share { display: inline-flex; justify-content: flex-end; align-items: center; gap: 8px; white-space: nowrap; }
.usage-share-track { width: 52px; height: 4px; background: var(--soft); }
.usage-share-track i { display: block; height: 100%; background: var(--blue); }
.usage-footnote, #usage-status { color: var(--muted); font-size: 13px; }
@media (max-width: 700px) {
  .usage-columns { grid-template-columns: 1fr; gap: 0; }
  .usage-panel { padding: 16px; }
  .usage-metrics > div { padding: 16px 12px; }
  .usage-metrics strong { font-size: 25px; }
  .usage-metrics span { font-size: 12px; }
  .usage-trend figcaption { font-size: 10px; }
}

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .brand-name { display: none; }
  .header-inner.bilingual-header { grid-template-columns: 1fr auto; }
  .site-nav { overflow-x: auto; }
  .site-nav a { min-height: 38px; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .filters.genome-filters { grid-template-columns: repeat(2, 1fr); }
  .genome-table { min-width: 940px; }
  .catalog-selection { grid-template-columns: 1fr auto; }
  .catalog-selection p { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .record-layout { grid-template-columns: 1fr; }
  .download-toolbar { top: 108px; grid-template-columns: 1fr auto; }
  .selection-summary { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .organism-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .header-inner, .footer-inner, .page-shell { width: min(100% - 24px, 1180px); }
  .brand-name { display: none; }
  .hero-inner { padding: 46px 0; }
  .stat-strip, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip div:nth-child(2) { border-right: 0; }
  .stat-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .directory-stats div { padding: 12px; }
  .directory-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-stats div:nth-child(2) { border-right: 0; }
  .directory-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .directory-stats strong { font-size: 20px; }
  .catalog-selection { grid-template-columns: 1fr; }
  .catalog-selection p { grid-column: auto; grid-row: auto; }
  .catalog-selection .button.primary { width: 100%; }
  .page-heading, .record-heading { align-items: flex-start; flex-direction: column; }
  .assembly-summary { align-items: flex-start; flex-direction: column; }
  .assembly-actions { justify-content: flex-start; }
  .edge-prototype-callout, .organism-heading, .section-heading { align-items: flex-start; flex-direction: column; }
  .edge-query-panel, .edge-downloads, .source-dataset-card { grid-template-columns: 1fr; }
  .organism-facts, .source-card-facts { grid-template-columns: 1fr; }
  .organism-facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .organism-facts div:last-child { border-bottom: 0; }
  .edge-query-panel form > div { align-items: stretch; flex-direction: column; }
  .download-grid { grid-template-columns: 1fr; }
  .download-toolbar { position: static; grid-template-columns: 1fr; }
  .selection-summary { grid-column: auto; grid-row: auto; }
  .download-toolbar .button.primary { width: 100%; }
  .file-pair { grid-template-columns: 1fr; }
  .strand-legend { grid-template-columns: 1fr; }
  .data-list { grid-template-columns: 1fr; }
  .data-list dt { border-bottom: 0; padding-bottom: 0; }
  .browser-page { padding: 10px 8px 22px; }
  .browser-info { padding: 14px 13px 10px; }
  .browser-info-heading { flex-direction: column; }
  .browser-info-actions { justify-content: flex-start; }
  .browser-source-row { grid-template-columns: 1fr; gap: 5px; }
  .browser-source-row select { width: 100%; }
  .browser-frame-panel iframe { min-height: 560px; height: 75vh; }
  .footer-inner { padding: 18px 0; align-items: flex-start; flex-direction: column; }
}
.source-dataset-card header { position: relative; }
.source-status-badge { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.source-status-badge.status-signal_endpoints { color: var(--green); background: var(--green-bg); }
.source-status-badge.status-endpoints_only { color: #4b5563; background: #f3f4f6; }
.source-status-badge.status-metadata_only { color: var(--amber); background: var(--amber-bg); }

/* BTED v0.4.0 genome-first pages */
.hero-compact .hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 54px; padding-top: 64px; padding-bottom: 64px; }
.hero-copy > p:not(.eyebrow) { max-width: 490px; font-size: 17px; }
.release-label { margin-left: 8px; padding: 3px 7px; border: 1px solid #dddced; border-radius: 5px; font-size: 10px; letter-spacing: 0; text-transform: none; }
.hero-diagram { padding: 22px 20px 14px; border: 1px solid #e4d3df; border-radius: 16px; background: var(--white); box-shadow: 0 12px 40px #4b2d4708; }
.hero-diagram { margin: 0; }
.hero-diagram img { display: block; width: 100%; height: auto; }
.diagram-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 0 4px 18px; }
.diagram-tag { color: var(--muted); font-size: 11px; }
.hero-diagram figcaption { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.hero-diagram figcaption strong { color: var(--navy); font-weight: 600; }
.hero-diagram figcaption span { display: block; margin-top: 3px; }
.hero-compact h1 { max-width: 780px; }
.home-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.home-summary > div { display: grid; gap: 3px; padding: 20px 24px; background: var(--white); }
.home-summary strong { color: var(--navy); font-size: 28px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.home-summary span { color: var(--muted); font-size: 12px; }
.home-content { padding-top: 16px; padding-bottom: 50px; }
.home-phyla { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 36px; margin-bottom: 28px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.home-phyla h2 { margin: 5px 0 12px; color: var(--navy-dark); font-size: 24px; letter-spacing: -.025em; }
.home-phyla p:not(.eyebrow) { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.home-phyla small { color: var(--muted); font-size: 11px; }
.home-phyla-chart { display: grid; gap: 12px; }
.home-phylum-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 55px; align-items: center; gap: 12px; font-size: 12px; }
.home-phylum-row a { color: var(--navy); text-decoration: none; }
.home-phylum-row a:hover { text-decoration: underline; }
.home-phylum-row strong { color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }
.home-phylum-bar { height: 9px; border-radius: 5px; background: var(--soft); overflow: hidden; }
.home-phylum-bar i { display: block; height: 100%; background: #b27a9f; border-radius: inherit; }
@media (max-width: 800px) {
  .home-phyla { grid-template-columns: 1fr; gap: 22px; padding: 22px 18px; }
  .home-phylum-row { grid-template-columns: 130px minmax(0, 1fr) 50px; gap: 8px; font-size: 11px; }
}
.home-reference { display: grid; grid-template-columns: 1fr 2.4fr; gap: 40px; padding: 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.home-reference h2 { margin: 4px 0 8px; font-size: 27px; color: var(--navy-dark); }
.home-reference p { margin-top: 0; color: var(--muted); font-size: 14px; }
.home-reference .home-citation { color: var(--ink); line-height: 1.8; }
.home-reference .home-doi { font-size: 12px; overflow-wrap: anywhere; }
.home-reference-links { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 360px) {
  .header-inner { grid-template-columns: 1fr; gap: 4px; padding-top: 8px; padding-bottom: 6px; }
  .site-nav { justify-content: space-between; }
}
@media (max-width: 700px) {
  .home-summary { grid-template-columns: repeat(2, 1fr); }
  .home-reference { grid-template-columns: 1fr; gap: 15px; padding: 22px; }
  .site-nav a { padding: 8px; font-size: 12px; white-space: nowrap; }
}
.genome-results { padding-top: 44px; padding-bottom: 44px; }
.genome-results .section-heading { align-items: center; }
.genome-results .section-heading h2 { margin: 1px 0; }
.genome-results .section-heading > p { margin: 0; color: var(--muted); font-size: 13px; }
.genome-directory-panel { box-shadow: var(--shadow); margin-top: 22px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.genome-filters-form { margin: 0; border-bottom: 1px solid var(--line); }
.genome-filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 14px; align-items: end; margin: 0; padding: 18px; }
.genome-filters-form label { display: grid; gap: 7px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.genome-filters-form select, .genome-filters-form input { width: 100%; min-width: 0; height: 42px; padding: 0 10px; color: var(--ink); background: var(--white); border: 1px solid #d8c8d3; border-radius: 5px; font: inherit; font-size: 13px; text-transform: none; }
.genome-filters-form select:disabled { color: #8a7d87; background: #f5f2f4; border-color: var(--line); cursor: not-allowed; }
.genome-refine-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; padding: 0 18px; }
.genome-taxonomy-panel { min-width: 0; margin: 0 18px 18px; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 7px; background: #fcf8fa; }
.genome-taxonomy-panel legend { padding: 0 6px; color: var(--navy); font-size: 13px; font-weight: 700; }
.genome-taxonomy-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.genome-filter-search-field { position: relative; display: block; }
.genome-filter-search-field svg { position: absolute; top: 11px; left: 11px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.genome-filter-search-field input { padding-left: 39px; }
.genome-filter-reset { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid #d8c8d3; border-radius: 5px; background: var(--white); color: var(--muted); cursor: pointer; }
.genome-filter-reset svg, .batter-pagination svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.genome-filter-reset:hover { color: var(--navy); border-color: var(--blue); }
.genome-filters-form select:focus-visible, .genome-filters-form input:focus-visible, .genome-filter-reset:focus-visible, .genome-directory-table button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.genome-result-count { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0; padding: 11px 18px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.genome-load-status { margin: 0; padding: 14px 18px; color: var(--muted); font-size: 12px; }
.genome-load-status:empty { display: none; }
[data-genome-results][hidden], .genome-result-count[hidden] { display: none !important; }
.genome-table-scroll { overflow-x: auto; max-width: 100%; }
.genome-table-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.genome-directory-table th button { min-height: 28px; }
.genome-directory-table { width: 100%; min-width: 1080px; border-collapse: collapse; font-size: 13px; }
.genome-directory-table th { padding: 11px 13px; color: var(--navy-dark); background: #f4edf2; text-align: left; white-space: nowrap; font-weight: 750; }
.genome-directory-table th button { padding: 0; color: inherit; background: none; border: 0; cursor: pointer; font: inherit; text-align: left; }
.genome-directory-table button[data-sort-direction="asc"]::after { content: " ↑"; }
.genome-directory-table button[data-sort-direction="desc"]::after { content: " ↓"; }
.genome-directory-table td { padding: 17px 13px; vertical-align: middle; border-top: 1px solid var(--line); }
.genome-directory-table tbody tr:hover { background: #fbf4f8; }
.genome-directory-table tbody tr[hidden] { display: none; }
.genome-directory-table .number { text-align: right; font-variant-numeric: tabular-nums; }
.genome-table-name { color: var(--navy-dark); font-weight: 750; text-decoration: none; }
.genome-table-name:hover { text-decoration: underline; }
.genome-directory-table td code { white-space: nowrap; font-size: 12px; }
.genome-directory-table small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.genome-organism { font-style: italic; font-weight: 650; }
.genome-data-counts { display: grid; justify-items: start; gap: 5px; white-space: nowrap; }
.genome-assay-tags { display: flex; flex-wrap: wrap; gap: 5px; min-width: 110px; max-width: 220px; }
.genome-assay-tag { display: inline-block; padding: 3px 7px; border-radius: 4px; color: #256456; background: #eaf5f0; font-size: 12px; line-height: 1.5; }
.genome-evidence, .genome-annotation { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 7px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.genome-evidence b { font-weight: 750; font-variant-numeric: tabular-nums; }
.genome-evidence.experimental { color: #256456; background: #eaf5f0; }
.genome-evidence.prediction { color: #90581e; background: #fcf1e3; }
.genome-evidence.training, .genome-annotation { color: var(--navy); background: #eaf0f8; }
.genome-evidence.unavailable, .genome-annotation.unavailable { color: var(--muted); background: #f1f2f5; }
.genome-directory-table td [data-source-filter] { display: none; }
.genome-directory-panel .search-empty { margin: 0; border-top: 1px solid var(--line); }
.genome-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.genome-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; padding: 17px 19px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid #bf95b0; box-shadow: var(--shadow); }
.genome-card[hidden] { display: none; }
.genome-card .eyebrow { margin-bottom: 3px; }
.genome-card h2 { margin: 0; color: var(--navy-dark); font-size: 17px; line-height: 1.3; }
.genome-card h2 a { color: inherit; text-decoration: none; }
.genome-card h2 a:hover { text-decoration: underline; }
.assembly-id { margin: 5px 0 0; color: var(--muted); font-family: var(--font-mono, Consolas, monospace); font-size: 12px; }
.genome-card-facts { display: flex; gap: 17px; margin: 0; }
.genome-card-facts div { display: grid; gap: 2px; }
.genome-card-facts dt { color: var(--muted); font-size: 10px; }
.genome-card-facts dd { margin: 0; color: var(--navy); font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.card-open { grid-column: 1 / -1; justify-self: start; color: var(--blue); font-size: 12px; font-weight: 750; text-decoration: none; }
.card-open:hover { text-decoration: underline; }
.search-empty { margin: 0 0 15px; padding: 13px; color: var(--muted); background: var(--soft); }
.genome-page { padding-bottom: 46px; }
.breadcrumbs { display: flex; gap: 8px; margin: 18px 0 16px; color: var(--muted); font-size: 12px; }
.genome-title { padding: 28px 30px; background: linear-gradient(110deg, #f7eef4, #fff); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; overflow-wrap: anywhere; }
.genome-title h1 { margin: 6px 0 0; color: var(--navy-dark); font-family: var(--font-sans); font-size: clamp(24px, 3vw, 32px); line-height: 1.25; letter-spacing: -.025em; }
.genome-summary { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 24px; padding: 18px 6px; border-bottom: 1px solid var(--line); }
.genome-summary div { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; }
.genome-summary strong { color: var(--navy); font-size: 23px; font-variant-numeric: tabular-nums; }
.genome-summary span { color: var(--muted); font-size: 12px; }
.genome-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; margin: 18px 0 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); overflow: hidden; }
.genome-counts > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; padding: 20px 24px; border-right: 1px solid var(--line); }
.genome-counts > div:last-child { border-right: 0; }
.genome-counts strong { font-size: 28px; line-height: 1.25; }
.genome-counts strong.count-missing { font-size: 19px; line-height: 1.85; color: var(--muted); }
.genome-counts span { font-size: 13px; color: var(--navy); }
.genome-counts small { color: var(--muted); font-size: 11px; }
.browser-panel { margin: 0 0 24px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.browser-panel-heading { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; }
.browser-panel-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; }
.browser-panel-heading h2 { margin: 0; color: var(--navy); font-size: 20px; }
.browser-track-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #5e6b78; font-size: 11px; }
.browser-track-legend span { display: inline-flex; align-items: center; gap: 6px; }
.track-swatch { width: 24px; height: 10px; background: no-repeat center / 24px 10px; }
.track-swatch-plus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10'%3E%3Cpath d='M1 4h8l5 2-5 2H1Z' fill='%230f766e'/%3E%3C/svg%3E"); }
.track-swatch-minus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10'%3E%3Cpath d='M23 4h-8l-5 2 5 2h8Z' fill='%23be123c'/%3E%3C/svg%3E"); }
.track-swatch-markers { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10'%3E%3Cpath d='M1 5h5m0-3 4 3-4 3M15 2h7v3h-7Zm0 0V9' fill='none' stroke='%23737780' stroke-width='1.2'/%3E%3C/svg%3E"); }
.browser-panel-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }
.browser-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; }
.browser-open { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 13px; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 8px; font: 600 12px var(--font-sans); line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.browser-open svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.browser-open:hover { background: var(--soft); border-color: #cdbdca; }
.browser-open--full { color: var(--white); background: var(--blue); border-color: var(--blue); }
.browser-open--full:hover { background: var(--navy); border-color: var(--navy); }
.browser-open[hidden] { display: none; }
.browser-open:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.browser-open:disabled { opacity: .55; cursor: wait; }
.browser-share-status { margin: 0; padding: 0 20px; color: var(--navy); font-size: 12px; }
.browser-share-status:not(:empty) { padding-bottom: 10px; }
.browser-share-manual { display: block; width: calc(100% - 40px); margin: 0 20px 12px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; font: 12px var(--font-sans); }
.browser-share-manual[hidden] { display: none; }
.browser-panel iframe { display: block; box-sizing: border-box; width: calc(100% - 16px); height: var(--browser-frame-height, 400px); margin: 0 8px 8px; border: 1px solid #c9b9c3; border-radius: 6px; background: #fff; }
.browser-unavailable { padding: 20px; }
.browser-unavailable h2 { margin: 2px 0 5px; }
.browser-unavailable p:last-child { margin-bottom: 0; color: var(--muted); }
.genome-studies > .section-heading { margin-bottom: 13px; }
.genome-studies > .section-heading h2 { margin: 2px 0; color: var(--navy); font-size: 22px; }
.genome-studies > .section-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.study-card { margin: 14px 0; padding: 23px 25px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.study-card > header { display: flex; justify-content: space-between; gap: 18px 28px; align-items: flex-start; padding-bottom: 16px; }
.study-card > header > div:first-child { min-width: 0; }
.study-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 13px; }
.study-links a { color: var(--blue); font-weight: 650; text-decoration: none; }
.study-links a:hover { text-decoration: underline; }
.study-citation { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.study-citation a { white-space: nowrap; }
.source-signal { margin-top: 14px; padding: 12px 16px; border-left: 2px solid var(--line); background: var(--soft); font-size: 13px; }
.source-signal p { margin: 4px 0; }
.source-signal > div + div { margin-top: 12px; }
.study-count { flex-shrink: 0; text-align: right; }
.study-count strong { display: block; font-size: 25px; line-height: 1.25; color: var(--navy); font-variant-numeric: tabular-nums; }
.study-count span { font-size: 11px; color: var(--muted); }
.genome-studies .section-heading p { margin: 5px 0 0; font-size: 13px; color: var(--muted); }
.study-card > header h3 { max-width: 860px; margin: 2px 0 0; color: var(--navy); font-size: 17px; line-height: 1.4; }
.study-card > header h3 a { color: inherit; text-decoration: none; }
.study-card > header h3 a:hover { text-decoration: underline; }
.study-source-list { display: grid; gap: 0; }
.source-evidence { min-width: 0; padding: 16px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.source-evidence.source-highlight { outline: 2px solid var(--blue); outline-offset: 2px; background: var(--soft); }
.source-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.source-heading h4 { margin: 0; color: var(--navy); font-size: 14px; overflow-wrap: anywhere; }
.source-heading strong { color: var(--navy); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.source-caveat { margin: 7px 0 0; color: #5a4a28; font-size: 12px; line-height: 1.45; }
.source-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.source-links:empty { display: none; }
.signal-present { color: var(--navy); font-weight: 700; }
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 12px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.badge-published { color: var(--green); background: var(--green-bg); }
.badge-review { color: #78510c; background: #fff2d7; }
.study-downloads { margin-top: 3px; }
.study-downloads .download-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.study-downloads .download-card { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; width: auto; padding: 6px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); color: var(--navy); font-size: 12px; font-weight: 650; text-decoration: none; box-shadow: none; }
.study-downloads .download-card:hover { background: #efe1eb; }
.genome-downloads { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-top: 24px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.genome-downloads h2 { margin: 2px 0 4px; color: var(--navy); font-size: 19px; }
.genome-downloads p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }
.genome-download-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.genome-download-actions .button { min-height: 38px; padding: 7px 11px; gap: 7px; font-size: 12px; }
.genome-download-actions .button::before, .study-downloads .download-card::before { content: ""; width: 16px; height: 16px; flex: 0 0 16px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zM14 2v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E") center / contain no-repeat; }
.genome-download-actions [data-download-genome-package]::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m-5-5 5 5 5-5M4 16v4a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-4'/%3E%3C/svg%3E"); }
.genome-download-actions button:disabled { opacity: .65; cursor: wait; }
.genome-download-actions .package-status { flex: 1 0 100%; min-height: 14px; color: var(--muted); font-size: 11px; }
.genome-download-actions .package-status:empty { display: none; }
.genome-computational-files { margin-top: 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.genome-computational-files summary { color: var(--navy); font-size: 13px; font-weight: 650; cursor: pointer; }
.genome-computational-files .genome-download-actions { margin-top: 12px; }
.audit-card { background: #fbfaf6; border-left: 3px solid #d0aa55; box-shadow: none; }
.audit-card > p { margin: 12px 0 0; color: #57534b; font-size: 12px; }
.muted, .empty-state { color: var(--muted); }
.empty-state { padding: 15px; background: var(--soft); }

@media (max-width: 800px) {
  .hero-compact .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-diagram { max-width: 440px; }
  .genome-directory-panel { overflow: visible; border: 0; background: transparent; }
  .genome-filters-form { border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
  .genome-taxonomy-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .genome-result-count { border: 0; }
  .genome-card-grid { grid-template-columns: 1fr; }
  .study-source-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .genome-counts { grid-template-columns: 1fr; gap: 0; }
  .genome-counts > div { padding: 14px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .genome-counts > div:last-child { border-bottom: 0; }
  .genome-counts strong { font-size: 25px; }
  .genome-counts span { font-size: 13px; }
  .study-card > header { flex-direction: column; gap: 14px; }
  .study-count { display: flex; align-items: baseline; gap: 8px; text-align: left; }
  .genome-filter-bar { grid-template-columns: 1fr 42px; padding: 12px; }
  .genome-refine-filters { grid-template-columns: 1fr; gap: 12px; padding: 0 12px; }
  .genome-filter-search { grid-column: 1; }
  .genome-filter-reset { grid-column: 2; grid-row: 1; }
  .genome-filter-bar label:nth-of-type(n):not(.genome-filter-search) { grid-column: 1 / -1; }
  .genome-taxonomy-panel { margin: 0 12px 12px; padding: 10px; }
  .genome-taxonomy-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-compact .hero-inner { padding-top: 34px; padding-bottom: 30px; }
  .home-summary > div { padding: 12px 10px; }
  .home-summary strong { font-size: 19px; }
  .home-summary span { font-size: 10px; }
  .genome-card { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .genome-card-facts { justify-content: flex-start; }
  .card-open { grid-column: auto; min-height: 28px; display: flex; align-items: center; }
  .browser-panel-heading { align-items: stretch; flex-direction: column; padding: 15px 13px 9px; }
  .browser-panel-title { align-items: flex-start; flex-direction: column; gap: 12px; }
  .browser-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .browser-open--full { grid-column: 1 / -1; }
  .browser-share-status { padding-inline: 13px; }
  .browser-share-manual { width: calc(100% - 26px); margin-inline: 13px; }
  .browser-panel iframe { min-height: 300px; }
  .study-card { padding: 15px 12px; }
  .study-downloads .download-card { min-height: 36px; }
}
/* The genome directory shares its layout across experimental and training data. */
.batter-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 22px 0; }
.batter-pagination .button { min-height: 40px; gap: 7px; padding: 8px 13px; font-size: 12px; }
.batter-pagination [data-genome-page-number] { min-width: 76px; color: var(--muted); text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* Shared navigation and readable content for the current portal. */
main { flex: 1; min-width: 0; }
main:focus { outline: none; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 50; padding: 10px 18px; color: white; background: var(--navy); border-radius: 6px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); color: white; }
.text-link { flex-shrink: 0; color: var(--blue); font-size: 13px; font-weight: 650; text-underline-offset: 4px; }
.catalog-status { display: inline-flex; align-items: center; gap: 7px; margin-right: 8px; color: #834b75; font-weight: 650; }
.catalog-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ad7698; }
.home-explore { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 32px; }
.home-explore > a { padding: 23px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-decoration: none; transition: border-color .15s; }
.home-explore > a:hover { border-color: var(--blue); }
.home-explore h2 { display: flex; justify-content: space-between; gap: 12px; margin: 13px 0 8px; color: var(--navy); font-size: 18px; line-height: 1.4; letter-spacing: -.02em; }
.home-explore h2 span { color: var(--blue); }
.home-explore p { margin: 0; color: var(--muted); font-size: 13px; }
.notes-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 50px; align-items: start; }
.notes-nav { position: sticky; top: 104px; display: grid; gap: 8px; padding: 20px 0; }
.notes-nav > span { margin-bottom: 8px; }
.notes-nav a { padding: 7px 0; color: var(--muted); font-size: 13px; text-decoration: none; }
.notes-nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
.notes-content { min-width: 0; }
.notes-content section { margin-bottom: 24px; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.notes-content h2 { margin: 8px 0 18px; color: var(--navy); font-size: 25px; letter-spacing: -.025em; }
.notes-content p { color: var(--muted); }
.notes-content p:last-child { margin-bottom: 0; }
.evidence-callout { padding: 14px 18px; border-left: 3px solid #bd883e; background: #fcf7ed; color: #725525 !important; }
.evidence-guide { margin: 22px 0; }
.evidence-guide > div { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.evidence-guide dt { color: var(--navy); font-weight: 650; }
.evidence-guide dd { margin: 0; color: var(--muted); }
.notes-table-scroll { overflow-x: auto; }
.notes-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.notes-table th, .notes-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.notes-table thead { color: var(--navy); background: var(--soft); }
.notes-table tbody th { min-width: 150px; font-weight: 600; }
#usage-status:not(:empty) { padding: 16px 20px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.source-notes summary { width: fit-content; min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-weight: 600; list-style-position: inside; }
.source-notes summary:hover, .source-notes[open] summary { color: var(--blue); background: var(--soft); border-color: #cdbdca; }
.source-notes[open] summary { margin-bottom: 10px; }
.genome-directory-table a:focus-visible { outline-offset: 5px; }
.genome-provenance { margin: 0 0 24px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.genome-provenance h2 { margin: 0 0 18px; color: var(--navy); font-size: 18px; }
.genome-provenance dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.genome-provenance dt { color: var(--muted); font-size: 12px; }
.genome-provenance dd { margin: 4px 0 0; color: var(--navy); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.genome-overview { margin: 0 0 24px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.genome-overview h2 { margin: 0 0 18px; color: var(--navy); font-size: 18px; }
.genome-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.genome-facts dt, .taxonomy-lineage dt, .source-context dt { color: var(--muted); font-size: 13px; }
.genome-facts dd, .taxonomy-lineage dd { margin: 5px 0 0; color: var(--navy); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.genome-taxonomy { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.taxonomy-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.taxonomy-heading h2, .taxonomy-heading h3 { margin: 0; color: var(--navy); font-size: 16px; }
.taxonomy-heading span { color: var(--muted); font-size: 13px; }
.taxonomy-lineage { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0; }
.taxonomy-lineage > div { min-width: 0; border-left: 2px solid var(--line); padding-left: 10px; }
.source-context { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 12px 0; }
.source-context dd { margin: 3px 0 0; color: var(--navy); font-size: 15px; }
.source-reuse { margin: 10px 0; font-size: 12px; color: var(--muted); }
@media (max-width: 1000px) {
  .taxonomy-lineage { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .home-explore { gap: 12px; }
  .home-explore > a { padding: 18px; }
  .notes-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 800px) {
  .notes-layout { grid-template-columns: 1fr; gap: 20px; }
  .notes-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; padding: 16px; background: var(--soft); border-radius: 8px; }
  .notes-nav > span { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .genome-overview { padding: 18px 16px; }
  .genome-facts, .taxonomy-lineage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .genome-provenance { padding: 20px 16px; }
  .genome-provenance dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .home-explore { grid-template-columns: 1fr; }
  .home-explore h2 { margin-top: 8px; }
  .home-summary strong { font-size: clamp(19px, 5.5vw, 26px); }
  .home-summary span { font-size: 11px; }
  .hero-diagram { padding: 14px 10px 10px; }
  .genome-filters-form input, .genome-filters-form select { font-size: 16px; }
  .genome-title { padding: 22px 18px; }
  .source-heading { flex-wrap: wrap; }
  .source-notes dl > div { grid-template-columns: 1fr; gap: 2px; }
  .notes-content section { padding: 22px 18px; }
  .notes-content h2 { font-size: 23px; }
  .evidence-guide > div { grid-template-columns: 1fr; gap: 5px; }
  .usage-range { padding: 14px; }
  .usage-metrics { grid-template-columns: 1fr; }
  .usage-metrics > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-links { flex-wrap: wrap; gap: 12px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Promoter-style external details: no iframe drawer or page-bottom jump. */
.browser-workspace { position: relative; min-width: 0; }
.browser-feature-details { position: fixed; top: 90px; right: 18px; z-index: 25; display: flex; flex-direction: column; width: min(384px, calc(100% - 24px)); max-height: calc(100dvh - 108px); border: 1px solid #c9b9c3; border-radius: 8px; background: #fff; overflow: hidden; box-shadow: 0 8px 28px rgba(75,45,71,.16); }
.browser-feature-details[hidden] { display: none; }
.browser-feature-details-heading { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.browser-feature-details-heading h2 { margin: 0; font-size: 16px; }
.browser-feature-details-heading button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.browser-feature-details-heading button:hover { background: #faf7f9; }
.browser-feature-details-heading button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[data-feature-details-content] { display: block; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 8px; }
.browser-widget-note { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (min-width: 1640px) {
  .browser-workspace:has(.browser-feature-details:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) 384px; align-items: start; gap: 16px; width: calc(100% + 400px); margin-left: -200px; }
  .browser-feature-details { position: sticky; top: 90px; right: auto; z-index: 1; width: 100%; box-shadow: none; }
}
@media (max-width: 600px) {
  .browser-feature-details { top: 84px; right: 12px; max-height: calc(100dvh - 96px); }
}

.genome-evidence[hidden] { display: none; }

/* Separate releases, one familiar browsing interface. */
.collection-home { padding-top: 58px; padding-bottom: 56px; }
.collection-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 40px; margin-bottom: 38px; }
.collection-intro { max-width: 780px; }
.collection-intro h1 { margin: 12px 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; letter-spacing: -.025em; }
.collection-intro > p:not(.eyebrow) { font-size: 18px; color: var(--muted); line-height: 1.65; }
.collection-primary { background: var(--navy); color: #fff; padding: 12px 20px; margin-top: 8px; }
.collection-primary:hover { background: var(--blue); color: #fff; }
.collection-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.collection-card { padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.collection-card-primary { border-top: 4px solid var(--blue); padding-top: 23px; }
.collection-card h2 { margin: 12px 0 24px; font-size: 23px; line-height: 1.3; }
.collection-card h2 a { color: var(--ink); text-decoration: none; }
.collection-card h2 a:hover { color: var(--blue); text-decoration: underline; }
.collection-card h2 span { color: var(--blue); }
.collection-number { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.collection-number strong { font-size: 36px; line-height: 1.2; color: var(--navy); font-variant-numeric: tabular-nums; }
.collection-card > p { line-height: 1.65; }
.collection-version { color: var(--muted); font-size: 14px; line-height: 1.65; }
.collection-progress { font-size: 14px; line-height: 1.65; color: var(--navy); }
.collection-help { font-size: 14px; color: var(--muted); line-height: 1.65; margin-top: 20px; }
.assembly-related { max-width: 760px; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.assembly-related a { display: inline-block; margin: 0 8px 0 4px; }
.collection-phyla { margin-top: 28px; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.collection-phyla-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.collection-phyla-heading h2 { margin: 5px 0 10px; color: var(--navy-dark); font-size: 24px; letter-spacing: -.025em; }
.collection-phyla-heading p:not(.eyebrow) { max-width: 670px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.collection-phyla-heading label { display: grid; gap: 7px; min-width: 190px; color: var(--muted); font-size: 12px; font-weight: 600; }
.collection-phyla-heading select { height: 40px; padding: 0 10px; color: var(--ink); background: #fff; border: 1px solid #d8c8d3; border-radius: 5px; font: inherit; font-size: 13px; }
.collection-phyla-status { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.collection-phyla .home-phyla-chart { max-width: 760px; }
.collection-phyla .home-phylum-row > span:first-child { overflow-wrap: anywhere; }
.collection-phyla [data-phylum-link] { display: inline-block; margin-top: 20px; }
.collection-guide { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 22px; max-width: 900px; line-height: 1.8; }
.collection-guide h2 { font-size: 22px; }
.collection-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 0; align-items: stretch; width: min(1180px, calc(100% - 40px)); margin: 24px auto 0; border-bottom: 1px solid #d8c7d3; }
.genome-page > .collection-nav { width: 100%; margin: 0 0 20px; }
.collection-nav a { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 14px 16px; margin: 0 0 -1px; border: 1px solid #dfd3dc; border-top: 3px solid transparent; border-radius: 8px 8px 0 0; background: #f1ebef; color: var(--muted); font-size: 16px; line-height: 1.4; text-align: center; text-decoration: none; font-weight: 600; }
.collection-nav a:hover:not([aria-current="page"]) { background: #e8dce5; color: var(--navy); }
.collection-nav a[aria-current="page"] { background: #fbf9fa; border-color: #d8c7d3; border-top-color: var(--blue); border-bottom-color: #fbf9fa; color: var(--navy-dark); }
[data-collection="gtdb"] .genome-counts > div:not(:nth-child(2)),
[data-collection="experimental"] .genome-counts > div:nth-child(3),
[data-collection="gem"] .genome-counts > div:first-child { display: none; }
[data-collection] .genome-counts { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 900px) { .collection-hero { grid-template-columns: 1fr; gap: 24px; } .collection-hero .hero-diagram { width: 100%; max-width: 520px; } .collection-cards { grid-template-columns: 1fr; } .collection-card h2 { margin-bottom: 14px; } .collection-phyla-heading { align-items: stretch; flex-direction: column; gap: 16px; } .collection-phyla-heading label { min-width: 0; } }
@media (max-width: 760px) { .collection-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } .collection-nav a { padding: 12px 8px; min-height: 68px; font-size: 15px; } }
@media (max-width: 600px) { .collection-home { padding-top: 28px; } .collection-card { padding: 22px; } .collection-nav { width: calc(100% - 24px); } }

/* Collection identity, reference context, then the scientific workspace. */
.collection-directory .genome-results { padding-top: 28px; }
.collection-directory .page-heading { margin-bottom: 20px; align-items: center; }
.collection-directory .page-heading h1 { font-size: clamp(28px, 3vw, 36px); }
.collection-directory .page-heading .text-link { white-space: nowrap; }
.collection-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.collection-meta p { margin: 0; }
.collection-meta .collection-version { padding: 5px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.collection-directory .genome-filter-bar { grid-template-columns: minmax(0, 1fr) auto; padding: 22px; }
.collection-directory .genome-filter-reset { grid-column: 2; }
@media (min-width: 801px) {
  .collection-directory .genome-filter-reset { grid-row: 1; }
}
.collection-directory [hidden] { display: none !important; }
.collection-directory .genome-filters-form label { font-size: 13px; }
.collection-directory .genome-filters-form input, .collection-directory .genome-filters-form select { font-size: 14px; height: 44px; border-color: #d8cdd5; }
.collection-directory .genome-refine-filters { padding: 0 22px; }
.collection-directory .genome-taxonomy-panel { margin: 18px 22px 22px; background: #faf8fa; }
.collection-directory [data-genome-load-status]:empty { display: none; }
.collection-directory [data-genome-load-status]:not(:empty) { padding: 12px 22px; }
.collection-directory .genome-directory-table { font-size: 14px; }
.collection-directory .genome-directory-table td { padding-top: 18px; padding-bottom: 18px; }
.collection-directory .genome-directory-table small { font-size: 12px; }
.collection-directory .genome-directory-table td code { font-size: 12px; }
.collection-directory .genome-evidence, .collection-directory .genome-annotation { font-size: 12px; }
.collection-directory .genome-result-count { padding: 13px 22px; font-size: 14px; }
.genome-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.genome-heading .genome-title { padding: 0; border: 0; border-radius: 0; background: none; }
.genome-heading .genome-title h1 { font-size: clamp(24px, 2.5vw, 32px); }
.genome-heading .assembly-id { font-size: 14px; margin-top: 10px; }
.genome-heading .genome-counts { display: flex; margin: 0; border: 0; border-radius: 0; }
.genome-heading .genome-counts > div { padding: 4px 0 4px 24px; border: 0; border-left: 1px solid var(--line); max-width: 210px; }
.genome-heading .genome-counts > div + div { margin-left: 24px; }
.genome-heading .genome-counts strong { font-size: 30px; }
.genome-heading .genome-counts small { font-size: 13px; }
.genome-section-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 24px; }
.reference-status { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; margin-top: 6px; padding: 4px 9px; border-radius: 5px; font-size: 12px; line-height: 1.45; font-weight: 600; white-space: normal; }
.reference-status-original { color: #79501a; background: #fff4df; border: 1px solid #ead5ae; }
.assembly-id .reference-status { margin: 0 0 0 10px; vertical-align: middle; }
.source-processing { color: var(--muted); font-size: 14px; line-height: 1.75; }
.genome-section-nav a { color: var(--blue); font-size: 14px; text-decoration: none; padding: 4px 0; }
.genome-section-nav a:hover { text-decoration: underline; }
.genome-page :is(#genome-overview, #genome-browser, #genome-studies, #genome-downloads) { scroll-margin-top: 96px; }
.genome-reference { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 24px; }
.genome-reference .genome-provenance, .genome-reference .genome-overview { border: 0; background: none; margin: 0; }
.genome-reference .genome-overview { border-top: 1px solid var(--line); border-radius: 0; }
.overview-heading { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.overview-heading h2 { margin: 0; }
.overview-heading > a { font-size: 14px; }
.taxonomy-heading .taxonomy-default { padding: 3px 9px; color: var(--navy); background: var(--soft); border-radius: 4px; }
.taxonomy-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.taxonomy-supplement { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.taxonomy-supplement summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 14px; line-height: 1.6; }
.taxonomy-supplement[open] summary { margin-bottom: 16px; }
.genome-page .study-card { padding: 24px; border-radius: 10px; }
.genome-page .study-card > header h3 { font-size: 19px; line-height: 1.5; }
.genome-page .study-citation { font-size: 14px; line-height: 1.7; }
.genome-page .source-context { gap: 16px 32px; margin: 16px 0; }
.genome-page .source-evidence p, .genome-page .source-links, .genome-page .source-reuse { font-size: 14px; line-height: 1.75; }
[data-study-load-status]:empty, [data-package-status]:empty { display: none; }
.study-download-panel { margin: 28px 0; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.study-download-panel .section-heading { flex-wrap: wrap; gap: 12px 24px; }
.study-download-panel h2, .study-download-panel h3 { margin: 0; }
.study-download-panel [data-download-summary] { margin: 8px 0 0; font-size: 14px; }
.study-download-group { border-top: 1px solid var(--line); }
.study-download-group summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding: 16px 0; cursor: pointer; font-size: 14px; color: var(--navy); }
.study-download-group summary::before { content: "+"; width: 12px; font-weight: 600; }
.study-download-group[open] summary::before { content: "−"; }
.study-download-group summary span:first-of-type { font-weight: 600; }
.study-download-group summary span:last-child { margin-left: auto; color: var(--muted); }
.study-download-group ul, .study-metadata-download { margin: 0 0 16px; padding: 0; list-style: none; }
.study-download-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px auto; align-items: center; gap: 12px 20px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.download-filename { overflow-wrap: anywhere; color: var(--navy); }
.study-download-row small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.download-size { color: var(--muted); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.study-download-row a { white-space: nowrap; }
.prediction-downloads { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .genome-heading { grid-template-columns: 1fr; gap: 20px; }
  .genome-heading .genome-counts { border-top: 1px solid var(--line); padding-top: 18px; }
  .genome-heading .genome-counts > div { padding: 0 20px 0 0; border-left: 0; max-width: none; }
  .collection-directory .genome-taxonomy-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .collection-directory .genome-results { padding-top: 22px; }
  .collection-directory .page-heading { align-items: flex-start; gap: 12px; }
  .collection-meta { gap: 10px; }
  .collection-directory .genome-filter-bar { padding: 16px; grid-template-columns: minmax(0, 1fr) auto; }
  .collection-directory .genome-filter-search { grid-column: 1; }
  .collection-directory .genome-filter-reset { grid-column: 2; grid-row: 1; }
  .collection-directory .genome-refine-filters { padding: 0 16px; }
  .collection-directory .genome-taxonomy-panel { margin: 16px; }
  .collection-directory .genome-taxonomy-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-directory .genome-filters-form input, .collection-directory .genome-filters-form select { font-size: 16px; }
  .genome-heading { padding: 22px 18px; }
  .genome-heading .genome-counts strong { font-size: 26px; }
  .genome-section-nav { gap: 6px 18px; }
  .genome-page .study-card { padding: 20px 16px; }
  .genome-page .study-card > header h3 { font-size: 18px; }
  .overview-heading { gap: 10px; }
  .study-download-panel { padding: 20px 16px; }
  .study-download-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .study-download-row > div { grid-column: 1 / -1; }
  .download-size { text-align: left; }
}
