:root {
  color-scheme: light;
  --ink: #15322b;
  --muted: #52685f;
  --forest: #113b34;
  --leaf: #226a58;
  --paper: #f6f7f2;
  --line: #dbe3d7;
  --white: #fff;
  --soft: #e9f2e9;
  --amber: #775319;
  --sans: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--sans); }
a { color: var(--leaf); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #c17326; outline-offset: 3px; }
.skip { position: fixed; top: 12px; left: 12px; transform: translateY(-180%); z-index: 10; background: var(--white); padding: 8px; }
.skip:focus { transform: none; }
[data-icon] { display: inline-flex; align-items: center; flex: 0 0 auto; }
.icon { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
main { max-width: 1570px; padding: 28px 35px 52px; margin: 0 auto; outline-offset: -4px; }
.hero { position: relative; overflow: hidden; min-height: 313px; isolation: isolate; border-radius: 15px; padding: 35px 38px 34px; display: grid; align-items: center; background: #0a322d; color: #fff; }
.hero h1 { font: 500 clamp(49px,6vw,77px)/1 Georgia, serif; letter-spacing: -.065em; margin: 0 0 11px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; appearance: none; border: 1px solid #cad9cd; background: var(--white); color: var(--ink); border-radius: 7px; padding: 8px 13px; min-height: 38px; font-size: 13px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.button:hover { background: #eaf4e9; text-decoration: none; }
.button.primary { background: var(--leaf); color: #fff; border-color: var(--leaf); }
.button.primary:hover { background: #185342; }
.button:disabled { cursor: default; opacity: .55; }
.hero .button.primary { background: #dceecf; border-color: #dceecf; color: #143a2b; }
.hero .button.primary:hover { background: #c6e3b5; }
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin: 16px 0 25px; }
.metric { display: block; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 12px 17px 13px; color: var(--ink); }
.metric:hover { border-color: #7eac95; text-decoration: none; }
.metric-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: #316652; font-size: 13px; }
.metric strong { display: block; margin-top: 6px; font-size: clamp(25px,3vw,39px); line-height: 1.08; letter-spacing: -.055em; font-weight: 650; font-variant-numeric: tabular-nums; }
.overview-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 15px; }
.panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 11px; padding: 20px; }
.panel h2, .panel h3 { margin: 0 0 9px; letter-spacing: -.02em; }
.panel h2 { font-size: 18px; }
.panel h3 { font-size: 16px; }
.panel > p { margin: 6px 0 13px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.panel-head a { font-size: 13px; white-space: nowrap; }
.page-head { margin: 0 0 19px; }
.page-head h1 { font-size: clamp(25px,4vw,36px); letter-spacing: -.04em; line-height: 1.25; margin: 4px 0 7px; }
.page-head p, .muted { color: var(--muted); }
.page-head p { margin: 0; }
.flag { display: inline-block; padding: 2px 8px; border-radius: 5px; background: var(--soft); color: #235b45; font-size: 11px; font-weight: 660; white-space: nowrap; }
.flag.hold { background: #f7efdc; color: var(--amber); }
.flag.none { background: #edf0ed; color: #4b6056; }
.breakdown { display: grid; gap: 9px; margin-top: 15px; }
.breakdown-line { display: grid; grid-template-columns: minmax(100px, 1fr) 1fr 31px; align-items: center; gap: 9px; font-size: 12px; }
.breakdown-line em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breakdown-line strong { text-align: right; font-variant-numeric: tabular-nums; }
.bar { overflow: hidden; height: 7px; border-radius: 10px; background: #edf2ed; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: #459479; }
.bar > i.alt { background: #80ad89; }
.notice { border: 1px solid #eadbb8; border-left: 3px solid #b48842; background: #fbf7ed; padding: 10px 13px; border-radius: 6px; color: #63491e; font-size: 13px; margin: 13px 0; }
.controls { display: flex; flex-wrap: wrap; align-items: end; gap: 11px; margin-bottom: 13px; }
.controls > label { display: grid; gap: 3px; font-size: 12px; color: var(--muted); min-width: 0; }
.controls > .search { min-width: 200px; flex: 1; }
.search-wrap { position: relative; display: block; }
.search-wrap .icon { position: absolute; width: 15px; height: 15px; top: 12px; left: 10px; color: #486c5e; }
input, select { color: var(--ink); background: white; border: 1px solid #c4d5c9; border-radius: 7px; padding: 8px 9px; min-height: 39px; width: 100%; }
.search-wrap input { padding-left: 32px; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { color: var(--muted); font-size: 11px; white-space: nowrap; font-weight: 650; letter-spacing: .015em; background: #f1f5f0; }
td, th { padding: 9px 10px; border-bottom: 1px solid #e2ebe3; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f7faf6; }
tbody strong, td .mono { white-space: nowrap; }
.mono { font-family: var(--mono); letter-spacing: -.02em; }
.nums, .range { font-variant-numeric: tabular-nums; }
.link-button { border: 0; padding: 0; color: var(--leaf); text-align: left; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.range { color: var(--muted); font-size: 12px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.pagination .button { min-height: 32px; padding: 4px 10px; }
.empty, .loading { padding: 28px 10px; text-align: center; color: var(--muted); }
.model-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(260px,1fr); gap: 14px; margin-bottom: 14px; }
.model-grid table td, .model-grid table th { padding: 8px; }
.solve-form { display: grid; gap: 10px; }
.solve-form label { display: grid; gap: 3px; color: var(--muted); font-size: 12px; }
.solve-form button { width: max-content; }
.solve-output { font-size: 13px; background: #eef5ee; padding: 10px; border-radius: 6px; overflow-wrap: anywhere; }
.solve-output:empty { display: none; }
.stack { display: grid; gap: 14px; }
.case-table { margin-top: 9px; }
.case-table td, .case-table th { white-space: nowrap; }
.source-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.source { padding: 12px; border-radius: 7px; border: 1px solid var(--line); }
.source a { overflow-wrap: anywhere; font-size: 12px; }
.source p { font-size: 12px; margin: 5px 0; }
.detail-list { display: grid; grid-template-columns: 125px minmax(0,1fr); margin: 9px 0 17px; font-size: 13px; }
.detail-list > * { margin: 0; padding: 7px 7px; border-bottom: 1px solid #e5ede6; overflow-wrap: anywhere; }
.detail-list dt { color: var(--muted); }
dialog { color: var(--ink); border: 1px solid var(--line); border-radius: 13px; width: min(650px, calc(100vw - 28px)); max-height: 85vh; box-shadow: 0 25px 95px #103c3655; padding: 22px; }
dialog::backdrop { background: #102c28a0; }
dialog h2 { margin: 0; }
dialog form { margin: 0; }
details summary { cursor: pointer; }
.hashes td:last-child { white-space: normal; word-break: break-all; }
@media (max-width: 1050px) {
  main { padding-inline: 23px; }
  .overview-grid, .model-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  main { padding: 14px 12px 28px; }
  .hero { min-height: 275px; padding: 23px 19px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 7px; margin: 9px 0 14px; }
  .metric { padding: 10px; }
  .source-grid { grid-template-columns: 1fr 1fr; }
  .panel { padding: 13px; }
  .controls > label { flex: 1 1 135px; }
  .controls > .search { flex-basis: 100%; }
}
@media (max-width: 380px) {
  .source-grid { grid-template-columns: 1fr; }
}

.example-banner { background: #e8f1e7; border: 1px solid #c8dcca; border-radius: 11px; padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.example-banner h2 { margin: 0; font-size: 16px; }
.example-banner p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.tutorial { margin: 7px 0 15px; padding-left: 25px; }
.tutorial li { padding: 3px 0; }
.digest { display: inline-block; min-width: 16ch; overflow-wrap: anywhere; }
.api-actions { margin-top: 11px; }
.solve-output .button { display: block; margin-top: 8px; }
.source-grid .source .flag { white-space: normal; }
@media (max-width: 700px) {
  .case-table th { white-space: normal; }
}

.evidence-output { margin-top: 14px; }
.evidence-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.evidence-metrics div { display: grid; align-content: start; border-left: 2px solid #7caa90; padding-left: 8px; }
.evidence-metrics strong { font-size: clamp(19px, 3vw, 33px); letter-spacing: -.05em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.evidence-metrics span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.reaction-equation { background: #eef5ee; border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px; overflow-wrap: anywhere; }
.details-gap { margin-top: 12px !important; }
.identity-examples { margin-bottom: 10px; }
.reaction-set { margin-bottom: 10px; }
.reaction-set summary { cursor: pointer; }
@media (max-width: 700px) {
  .evidence-output .panel { min-width: 0; }
  .evidence-metrics { gap: 5px; }
  .evidence-metrics span { line-height: 1.35; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.global-search { display: flex; align-items: center; gap: 6px; width: min(46%, 570px); }
.global-search label { flex: 1; min-width: 0; }
.global-search input { min-height: 34px; padding-block: 6px; font-size: 12px; }
.global-search .search-wrap .icon { top: 9px; }
.global-search .button { min-height: 34px; padding-block: 4px; }
.catalog-result { margin-top: 14px; }
.locus-panel { overflow: hidden; }
.locus-panel > p { overflow-wrap: anywhere; }
.locus-panel details { margin: 8px 0; }
.locus-panel .mono { overflow-wrap: anywhere; }
.locus-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.genome-figure { padding: 11px 11px 10px; margin: 12px 0; background: #f6f9f2; border: 1px solid #d2e2d1; border-radius: 8px; overflow: hidden; }
.genome-axis { display: flex; justify-content: space-between; margin-left: 121px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.genome-lane { display: grid; grid-template-columns: 113px minmax(0,1fr); gap: 8px; font-size: 11px; margin-top: 4px; align-items: center; }
.genome-lane div { height: 20px; background: #eaf1e6; position: relative; }
.genome-lane span { display: block; position: absolute; height: 8px; top: 6px; min-width: 2px; border-radius: 2px; background: #659482; }
.genome-lane .focus-feature, .genome-lane .coding-feature { background: #235e50; }
.genome-lane .exon-feature { background: #83bda3; height: 13px; top: 3px; }
.genome-lane .mask-feature { background: #6c9d68; }
.genome-lane .variant-feature { background: #b87927; width: 2px; height: 14px; top: 3px; }
.pathway-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(154px, 1fr)); gap: 7px; margin-top: 11px; }
.pathway-tile { border: 1px solid #d3e4d6; border-radius: 6px; padding: 7px 9px; font-size: 12px; background: #f1f7ed; color: var(--ink); line-height: 1.4; }
.pathway-tile span { display: block; font: 600 11px/1.6 var(--mono); }
.pathway-tile.pathway-changed { border-left: 3px solid #b7893a; background: #f8f1df; }
#batch-catalogue textarea { width: 100%; display: block; margin-top: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; font: 13px/1.5 var(--mono); color: var(--ink); }
@media (max-width: 850px) { .locus-comparison { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .genome-axis { margin-left: 93px; }
  .genome-lane { grid-template-columns: 85px minmax(0, 1fr); }
  .pathway-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
}


main { padding: 23px 28px 42px; }
.hero {
  background: #0b352d;
  display: grid;
  min-height: 302px;
  border-radius: 13px;
  padding: clamp(21px, 4vw, 48px);
  margin-bottom: 16px;
  align-content: center;
}
.hero-art { position: absolute; inset: 0 0 0 auto; width: 67%; height: 100%; object-fit: cover; object-position: right 48%; z-index: -2; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#0b352d 0%,#0b352d 24%,#0b352de9 43%,#0b352d41 77%,#0b352d00 100%);
}
.hero-copy { max-width: 700px; }
.hero h1 {
  color: #fcfbef;
  font: 400 clamp(36px,5.1vw,73px)/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
  margin: 0 0 24px;
}
.hero h1 em { color: #d6edcb; font-weight: inherit; }
.hero .button { min-height: 39px; }
.metrics { gap: 0; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.metric { padding: 12px 16px 14px; border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.metric:last-child { border-right: 0; }
.metric:hover { background: #edf4eb; }
.metric:focus-visible { outline-offset: -3px; }
.metric-head { font-size: 12px; }
.metric strong { font-size: clamp(25px,3vw,36px); margin-top: 3px; }
.breakdown { margin-top: 13px; gap: 11px; }
.breakdown-line { grid-template-columns: minmax(100px, 1.15fr) minmax(24px, 1fr) 28px; }
.breakdown-line > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-head { margin: 0 0 13px; }
.page-head h1 { margin: 0; font-weight: 680; }
.panel { padding: 16px; border-radius: 10px; }
.panel h2 { font-size: 17px; }
.controls { gap: 9px; margin-bottom: 10px; }
.controls:last-child { margin-bottom: 0; }
td, th { padding: 8px 9px; }
th { background: #eff4ed; }
td a { text-underline-offset: 3px; }
.table-scroll { overscroll-behavior-inline: contain; }
.status-line, .study-links, .track-caption { display: flex; flex-wrap: wrap; gap: 5px 11px; align-items: baseline; margin: 8px 0; color: var(--muted); font-size: 12px; }
.track-caption { justify-content: space-between; margin-top: 0; }
.scope-note, .release-detail { color: var(--muted); font-size: 12px; margin: 7px 0; }
.scope-note > summary, .release-detail > summary { color: var(--leaf); font-weight: 650; }
.scope-note p { margin: 4px 0 0 15px; max-width: 68ch; }
.release-detail[open] > summary { margin-bottom: 8px; }
.study-links .scope-note { margin: 0; }
.pathway-legend { display: flex; align-items: center; gap: 7px; width: fit-content; color: var(--muted); font-size: 12px; }
.pathway-legend span { display: inline-block; width: 11px; height: 11px; border: 1px solid #bc9146; border-radius: 3px; background: #f8f1df; }
@media (max-width: 700px) {
  main { padding: 12px 11px 28px; }
  .hero { min-height: 226px; padding: 17px 14px; margin-bottom: 9px; }
  .hero h1 { font-size: clamp(31px,9vw,48px); margin-bottom: 14px; }
  .hero-art { width: 88%; object-position: 67% 50%; }
  .hero::after { background: linear-gradient(90deg,#0b352dfb 0%,#0b352dea 43%,#0b352d88 100%); }
  .hero .button { min-height: 34px; padding: 5px 8px; font-size: 12px; }
  .metrics { margin: 0 0 9px; }
  .metric { padding: 8px 9px; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metric-head { font-size: 11px; }
  .panel { padding: 13px; }
}

/* Evidence explorer and record cross-links */
.hero-copy > p { color: #eff6ef; font-size: 15px; max-width: 36rem; margin: 0 0 16px; }
.workbench-section-head h2 { font: 500 25px/1.2 Georgia, serif; letter-spacing: -.025em; margin: 0; }
.certificate-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.workbench-header { display: flex; justify-content: space-between; align-items: start; gap: 12px 20px; flex-wrap: wrap; margin: 5px 0 18px; }
.workbench-header h1 { font: 500 clamp(30px, 4.2vw, 48px)/1.08 Georgia, serif; letter-spacing: -.035em; margin: 4px 0 8px; }
.workbench-header p { margin: 0; }

.snapshot-label { background: #e9f1e7; color: #305a49; padding: 5px 8px; border: 1px solid #d3e2d2; border-radius: 5px; font: 11px/1.4 var(--mono); }
.workbench-tabs { display: flex; flex-wrap: wrap; gap: 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.workbench-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 9px 10px; border-bottom: 2px solid transparent; font-weight: 620; font-size: 13px; }
.workbench-tabs a[aria-current] { border-bottom-color: var(--leaf); color: var(--ink); }
.workbench-section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px 18px; margin-bottom: 13px; }
.workbench-section-head p { margin: 3px 0 0; font-size: 13px; }
.locus-certificate { display: flex; flex-direction: column; }
.locus-certificate-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.locus-certificate-top h3 { font-size: 17px; margin-bottom: 3px; }
.locus-certificate-top .mono { font-size: 12px; }
.locus-certificate .detail-list, .study-certificate .detail-list { margin: 12px 0; }
.locus-certificate .detail-list { grid-template-columns: minmax(0,1fr); gap: 0; }
.locus-certificate .detail-list dt { font-size: 11px; padding-bottom: 0; border-bottom: 0; }
.locus-certificate .detail-list dd { padding-top: 2px; margin-bottom: 3px; }
.locus-certificate .actions { margin-top: auto; gap: 6px; }
.residue { font: 600 30px/1 Georgia, serif; color: #245744; background: #e5f1e4; min-width: 46px; padding: 5px 7px; border-radius: 7px; text-align: center; }
.residue small { display: block; margin-top: 3px; font: 11px var(--mono); }
.reference-list { display: grid; gap: 7px; padding-left: 20px; margin-bottom: 0; }
.reference-list span { margin-left: 6px; color: var(--muted); font-size: 13px; }
.probe-baselines, .probe-set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.probe-baselines > div { display: grid; gap: 4px; background: #f2f6f0; border: 1px solid var(--line); padding: 12px 14px; border-radius: 8px; }
.probe-baselines > div > span { font-size: 13px; color: var(--muted); }
.probe-baselines strong { font-size: 22px; }
.probe-status { color: #365649; }
.probe-status.positive { color: #1c5c47; }
.probe-status.zero { color: #795419; }
.probe-status.infeasible { color: #493953; }
.distribution { display: grid; grid-template-columns: 163px minmax(0,1fr); gap: 7px 14px; align-items: start; margin: 11px 0; }
.distribution > span { font-weight: 630; font-size: 13px; }
.distribution-bar { display: flex; height: 9px; border-radius: 6px; overflow: hidden; background: #e9efe8; margin-top: 4px; }
.distribution-bar .positive { background: #4b8a72; }
.distribution-bar .zero { background: #b68a45; }
.distribution-bar .infeasible { background: #75637c; }
.distribution-bar .other { background: #69786b; }
.distribution-key, .probe-members { display: flex; flex-wrap: wrap; gap: 5px 13px; margin: 6px 0; font-size: 12px; }
.probe-members a { padding: 2px 6px; border-radius: 5px; background: #edf4eb; }
.probe-set details { margin-top: 10px; }
#probe-reactions form { margin-top: 8px; }
#probe-reactions .table-scroll { max-height: 405px; }
#probe-reactions th { position: sticky; top: 0; }
.study-certificate .panel-head { flex-wrap: wrap; gap: 6px 12px; }
.study-certificate .panel-head h3 { margin: 0; }
.locus-crosslinks { padding: 8px 0 11px; }
@media(max-width:1030px) { .certificate-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,205px),1fr)); } }
@media(max-width:700px) { .probe-set-grid { grid-template-columns: 1fr; } }
@media(max-width:480px) {
  .hero-copy > p { font-size: 13px; }
  .workbench-tabs { gap: 2px 6px; }
  .workbench-tabs a { gap: 4px; padding-inline: 4px; font-size: 12px; }
  .workbench-tabs .icon { width: 14px; height: 14px; }
  .distribution { grid-template-columns: 1fr; }
  .probe-baselines { grid-template-columns: 1fr; }
}

/* Conditional phenotype search */
.phenotype-head { display:flex; align-items:start; justify-content:space-between; flex-wrap:wrap; gap:8px; margin:5px 0 16px; }
.phenotype-head h1 { font:500 clamp(30px,4vw,47px)/1.12 Georgia,serif; letter-spacing:-.04em; margin:0 0 6px; }
.phenotype-head p { margin:0; color:var(--muted); }
.phenotype-filter { border-top:3px solid #7ea88c; }
.phenotype-query { display:flex; gap:9px; align-items:end; padding-bottom:12px; }
.phenotype-query label { flex:1; min-width:0; }
.phenotype-query > a { padding:7px 4px; flex:none; }
.phenotype-facets { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px 12px; padding:4px 0; }
.phenotype-filter label { min-width:0; display:grid; gap:4px; font-size:12px; color:var(--muted); }
.phenotype-filter input, .phenotype-filter select { max-width:100%; }
.phenotype-more { margin-top:10px; border-top:1px solid var(--line); padding-top:8px; }
.phenotype-more .phenotype-facets { padding-top:8px; }
.phenotype-active { margin-left:9px; padding:1px 6px; border-radius:5px; background:var(--soft); color:var(--leaf); font-size:11px; }
.phenotype-model summary { font-weight:650; }
.phenotype-legacy { display:block; max-width:25rem; }
.phenotype-examples { border-top:1px solid var(--line); display:flex; align-items:center; flex-wrap:wrap; gap:5px 15px; padding-top:10px; margin-top:8px; font-size:13px; }
.phenotype-examples span { font-weight:650; color:var(--muted); }
.phenotype-table .workbench-section-head { margin-bottom:10px; }
.phenotype-table .table-scroll td { vertical-align:top; }
.phenotype-table .table-scroll td small { display:block; color:var(--muted); font-size:11px; }
.phenotype-table .table-scroll td:nth-child(4) { min-width:105px; }
.phenotype-table .table-scroll td:last-child { min-width:116px; }
.phenotype-table .table-scroll details { margin-top:3px; }
.phenotype-table .table-scroll details[open] { min-width:190px; }
.phenotype-table .detail-list { grid-template-columns:minmax(0,1fr); }
.phenotype-table .detail-list dt { padding-bottom:0; border-bottom:0; }
.phenotype-table .detail-list dd { padding-top:0; margin-bottom:3px; }
.reported-value { font:600 13px/1.45 var(--mono); }
.phenotype-empty { padding:24px 12px; border-top:1px solid var(--line); }
.phenotype-empty p { margin:0 0 5px; }
[data-share-status] { font-size:12px; color:var(--leaf); }
@media(max-width:950px) { .phenotype-facets { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:450px) {
  .phenotype-table .table-scroll table { display:block; }
  .phenotype-table .table-scroll thead { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
  .phenotype-table .table-scroll tbody { display:grid; gap:8px; }
  .phenotype-table .table-scroll tr { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:5px 7px;
    border:1px solid var(--line); border-radius:7px; padding:8px; }
  .phenotype-table .table-scroll td { border:0; padding:3px 1px; min-width:0; overflow-wrap:anywhere; }
  .phenotype-table .table-scroll td:nth-child(1) { grid-area:1 / 1; }
  .phenotype-table .table-scroll td:nth-child(4) { grid-area:1 / 2; text-align:right; }
  .phenotype-table .table-scroll td:nth-child(4)::before { content:"Reported value"; display:block; color:var(--muted); font-size:11px; }
  .phenotype-table .table-scroll td:nth-child(5) { grid-column:1 / -1; }
  .phenotype-filter input,.phenotype-filter select,.phenotype-filter .button { min-height:42px; }
}


.gene-lead { font-size: 1.1rem; font-weight: 600; }
.gene-evidence-block { display: grid; gap: .75rem; margin: 1.25rem 0; }
.gene-evidence-block h3 { margin: .6rem 0 0; }
.expression-chart { display: grid; gap: .48rem; max-width: 44rem; margin: 1rem 0; }
.expression-line { display: grid; grid-template-columns: minmax(6rem, 1.4fr) minmax(6rem, 3fr) 4rem; gap: .7rem; align-items: center; }
.expression-line strong { font-variant-numeric: tabular-nums; text-align: right; }
.expression-track { height: .8rem; position: relative; border-radius: .25rem; background: #eef0e9; overflow: hidden; }
.expression-track::before { content: ""; position: absolute; height: 100%; left: 50%; border-left: 1px solid #536750; }
.expression-track i { position: absolute; height: 100%; }
.expression-track .higher { left: 50%; background: #28654b; }
.expression-track .lower { right: 50%; background: #a34e31; }
.batch-inputs { display: grid; gap: .45rem; }
.batch-inputs input { max-width: 100%; }

/* Horizontal site navigation and homepage */
.site-header { background: #fbfcf8; border-bottom: 1px solid var(--line); }
.topbar, .nav { max-width: 1570px; margin: 0 auto; padding-inline: 28px; }
.topbar { display: flex; min-height: 60px; align-items: center; gap: 10px 20px; }
.brand { display: inline-flex; gap: 9px; align-items: center; color: #193d32; font: 700 25px/1.1 Georgia, serif; letter-spacing: -.6px; }
.brand:hover { text-decoration: none; }
.brand-mark { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; background: #dcebd3; position: relative; }
.brand-mark i { position: absolute; border: 1.5px solid var(--forest); border-radius: 50%; transform: rotate(-30deg); }
.brand-mark i:nth-child(1) { width: 16px; height: 20px; left: 8px; top: 9px; }
.brand-mark i:nth-child(2) { width: 10px; height: 12px; left: 19px; top: 5px; }
.brand-mark i:nth-child(3) { width: 5px; height: 7px; left: 13px; top: 15px; background: var(--forest); }
.top-link { margin-left: auto; font: 12px/1.4 var(--mono); color: #2e6754; }
.global-search { margin-left: auto; }
.global-search + .top-link { flex: none; }
body[data-view="overview"] .global-search { display: none; }
.nav { display: flex; overflow-x: auto; overscroll-behavior-inline: contain; gap: 4px; padding-block: 2px 6px; scrollbar-width: thin; scrollbar-color: #86a699 #edf3ea; }
.nav a { flex: none; white-space: nowrap; border-radius: 6px; padding: 7px 9px; color: #345047; font-size: 13px; font-weight: 600; }
.nav a:hover { background: #edf3e9; text-decoration: none; }
.nav a[aria-current="page"] { background: #dfecdf; color: #164535; }
.nav a:focus-visible { outline-offset: -3px; }

.hero { min-height: 0; padding: clamp(21px, 3.4vw, 48px); }
.hero h1 { font-size: clamp(34px, 5.2vw, 71px); margin-bottom: 15px; }
.hero-copy > p { max-width: 55ch; margin-bottom: 18px; }
.home-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; max-width: 34rem; }
.home-search label { min-width: 0; }
.home-search .search-wrap { display: block; margin: 0; color: var(--leaf); }
.home-search input { width: 100%; min-height: 42px; padding-left: 34px; font-size: 14px; }
.home-search .search-wrap .icon { top: 13px; }
.home-search .button { min-height: 42px; padding-inline: 15px; }
.home-search-examples { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; margin-top: 9px; color: #d2e6d9; font-size: 12px; }
.home-search-examples a { color: #eff9e9; text-decoration: underline; text-underline-offset: 3px; font-family: var(--mono); }
.home-section { margin: 18px 0; }
.home-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 10px; }
.home-section-head h2 { font: 500 clamp(22px,2.2vw,28px)/1.2 Georgia, serif; letter-spacing: -.025em; margin: 0; }
.home-section-head > a { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 650; }
.home-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.home-case { display: flex; flex-direction: column; min-width: 0; padding: 15px 17px 8px; background: #edf5eb; border: 1px solid #d1e2d1; border-top: 3px solid #629479; border-radius: 9px; }
.home-case:nth-child(2) { background: #f5f6eb; border-top-color: #929c63; }
.home-case:nth-child(3) { background: #f3f5ef; border-top-color: #658981; }
.home-case h3, .home-directory h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 17px; line-height: 1.3; }
.home-case h3 .icon { flex: none; color: var(--leaf); }
.home-case p { margin: 3px 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.home-case .home-entry-links { margin-top: auto; }
.home-entry-links { list-style: none; padding: 0; margin: 0; }
.home-entry-links li { border-top: 1px solid #dce6da; }
.home-entry-links a { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 5px; font-size: 13px; font-weight: 630; }
.home-entry-links .icon, .home-section-head .icon { width: 14px; height: 14px; flex: none; }
.home-directory { gap: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.home-directory > div { min-width: 0; padding: 14px 17px 5px; }
.home-directory > div + div { border-left: 1px solid var(--line); }
.home-directory h3 { margin-bottom: 10px; }
.home-footer-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 11px; }
.home-footer-panel .home-section-head { margin-bottom: 10px; }
.home-footer-panel h2 { font: 650 17px/1.3 var(--sans); }
.home-footer-panel .mono { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.home-footer-panel .breakdown { margin-top: 5px; gap: 6px; }

@media (max-width: 1050px) {
  .topbar, .nav { padding-inline: 21px; }
}
@media (max-width: 700px) {
  .topbar { min-height: 48px; flex-wrap: wrap; padding: 6px 12px; gap: 6px 12px; }
  .brand { font-size: 22px; }
  .top-link { font-size: 11px; }
  .global-search { order: 2; width: 100%; margin: 0; }
  .nav { padding-inline: 9px; }
  .nav a { font-size: 12px; padding: 7px 8px; }
  .hero { padding: 21px 15px; }
  .hero h1 { font-size: clamp(30px,8.2vw,46px); }
  .hero-copy > p { margin-bottom: 13px; }
  .home-search .button { padding-inline: 10px; }
  .home-search input { font-size: 16px; }
  .home-columns, .home-footer-grid { grid-template-columns: 1fr; gap: 8px; }
  .home-directory { gap: 0; }
  .home-directory > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .home-entry-links a { min-height: 40px; }
}
