:root {
  color-scheme: light;
  --ink: #17212b;
  --ink-soft: #344454;
  --muted: #647384;
  --subtle: #8b98a6;
  --line: #c8d5da;
  --line-strong: #9fb2bb;
  --panel: #ffffff;
  --soft: #edf3f4;
  --page: #d9e4e7;
  --workspace: #dfeaec;
  --section: #eef4f5;
  --navy: #142b3b;
  --accent: #16766f;
  --accent-strong: #105d58;
  --accent-soft: #e8f4f2;
  --focus: #c46a32;
  --warning: #b85b2b;
  --cds: #16766f;
  --exon: #3f70b5;
  --utr: #d17a32;
  --intron: #98a5b1;
  --shadow-sm: 0 1px 2px rgba(20, 43, 59, 0.06);
  --shadow-md: 0 10px 28px rgba(20, 43, 59, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #cbdadd;
  font-size: 14px;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.app-mode-nav {
  position: sticky;
  top: 89px;
  z-index: 9;
  display: flex;
  gap: 8px;
  padding: 8px 28px;
  border-bottom: 1px solid #cbd9dc;
  background: rgba(235, 243, 244, 0.97);
  box-shadow: 0 3px 12px rgba(20, 43, 59, 0.04);
  backdrop-filter: blur(14px);
}

.app-mode-button {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 9px;
  min-width: 260px;
  padding: 8px 13px;
  border-color: transparent;
  color: #526971;
  background: transparent;
  text-align: left;
  box-shadow: none;
}

.app-mode-button > span {
  grid-row: 1 / 3;
  align-self: center;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #4d6b72;
  background: #d7e4e5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.app-mode-button strong { color: inherit; font-size: 13px; }
.app-mode-button small { color: #71848b; font-size: 10px; font-weight: 500; }
.app-mode-button.active { color: #fff; background: #175f5c; box-shadow: 0 5px 14px rgba(20, 85, 82, .16); }
.app-mode-button.active > span { color: #174a4a; background: #d9f0eb; }
.app-mode-button.active small { color: #d7ece9; }
.body-mode .top-controls { visibility: hidden; }

.body-length-workspace {
  min-width: 0;
  padding: 24px 28px 46px;
  background:
    linear-gradient(135deg, rgba(215, 229, 231, .97), rgba(230, 239, 240, .98)),
    url("/static/daphnia-scientific-bg-v2.webp") center / cover fixed;
}

.body-length-hero,
.body-length-layout,
.body-length-steps,
.body-results-panel {
  width: min(1680px, 100%);
  margin-inline: auto;
}

.body-length-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid #c7dada;
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-md);
}

.body-length-hero h2 { margin-top: 4px; color: #17343c; font-size: 24px; }
.body-length-hero p { max-width: 820px; margin-top: 5px; color: #5c7078; }
.body-length-privacy { display: grid; grid-template-columns: auto auto; column-gap: 8px; min-width: 260px; padding: 11px 13px; border-radius: 11px; color: #245b56; background: #e7f5f1; }
.body-length-privacy i { grid-row: 1 / 3; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #2c9a72; box-shadow: 0 0 0 4px rgba(44,154,114,.13); }
.body-length-privacy strong { font-size: 12px; }
.body-length-privacy span { color: #597570; font-size: 10px; }

.body-length-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.body-length-steps > div { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #aebfc2; border-radius: 11px; color: #596e75; background: rgba(247,250,250,.96); box-shadow: 0 2px 7px rgba(24,58,64,.055); }
.body-length-steps b { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; color: #587079; background: #e2eaea; font-size: 11px; }
.body-length-steps span { display: grid; }
.body-length-steps strong { font-size: 11px; }
.body-length-steps small { font-size: 9px; }
.body-length-steps > div.active { border-color: #78aaa4; color: #154f4d; background: #e8f5f2; }
.body-length-steps > div.active b { color: #fff; background: var(--accent); }
.body-length-steps > div.complete { color: #285f4d; background: #edf7f2; }
.body-length-steps > div.complete b { color: #fff; background: #39845f; }

.body-length-layout {
  display: grid;
  grid-template-columns: minmax(210px, .62fr) minmax(520px, 2fr) minmax(300px, .88fr);
  gap: 12px;
  align-items: start;
  margin-top: 12px;
}
.body-sample-panel,
.body-canvas-panel,
.body-inspector-panel,
.body-results-panel { border: 1px solid #9fb8bb; border-radius: 15px; background: rgba(249,252,252,.98); box-shadow: 0 8px 26px rgba(18,58,63,.09); }
.body-sample-panel,
.body-inspector-panel { padding: 16px; }
.body-canvas-panel { min-width: 0; overflow: hidden; }
.body-panel-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 13px; }
.body-panel-head > div { display: grid; }
.body-panel-head > div > span { color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .11em; }
.body-panel-head > div > strong { color: #203a43; font-size: 15px; }
.body-panel-head > span { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 9px; color: #315d62; background: #e6efef; font-size: 11px; font-weight: 800; }

.body-upload-button { display: flex; justify-content: center; gap: 7px; align-items: center; width: 100%; padding: 10px; border: 1px solid var(--accent); border-radius: 8px; color: #fff; background: var(--accent); cursor: pointer; font-weight: 750; }
.body-upload-button span { font-size: 18px; line-height: 1; }
.body-native-file-input { width: 100%; padding: 5px; border: 1px solid #719c98; border-radius: 9px; color: #446168; background: #edf5f4; font-size: 10px; cursor: pointer; }
.body-native-file-input::file-selector-button { margin-right: 8px; padding: 8px 11px; border: 0; border-radius: 7px; color: #fff; background: var(--accent); font-weight: 750; cursor: pointer; }
.body-native-file-input:hover { border-color: var(--accent); background: #e4f0ee; }
.body-drop-zone { display: grid; gap: 4px; margin-top: 9px; padding: 18px 12px; border: 1px dashed #739a98; border-radius: 10px; color: #385d63; background: #eaf2f2; text-align: center; }
.body-drop-zone.dragging { border-color: var(--focus); background: #fff5ed; }
.body-drop-zone strong { font-size: 11px; }
.body-drop-zone span { color: #75878d; font-size: 9px; line-height: 1.45; }
.body-sample-list { display: grid; gap: 6px; max-height: 430px; margin-top: 10px; overflow: auto; }
.body-sample-item { display: grid; grid-template-columns: 37px minmax(0,1fr) auto; gap: 8px; align-items: center; width: 100%; padding: 7px; border: 1px solid #dce6e6; border-radius: 9px; color: #38535a; background: #fff; text-align: left; box-shadow: none; }
.body-sample-item:hover { border-color: #94bbb7; background: #f5faf9; }
.body-sample-item.active { border-color: var(--accent); color: #164e4c; background: #eaf5f3; }
.body-sample-item img { width: 37px; height: 37px; border-radius: 7px; object-fit: cover; background: #dae4e4; }
.body-sample-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 10px; font-weight: 700; }
.body-sample-item strong,.body-sample-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.body-sample-item small { margin-top: 2px; color: #718489; font-size: 8px; font-weight: 600; }
.body-sample-item b { width: 8px; height: 8px; border-radius: 50%; background: #b8c5c7; }
.body-sample-item b.saved { background: #2f956d; }
.body-clear-button { width: 100%; margin-top: 10px; }

.body-canvas-toolbar { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; padding: 11px; border-bottom: 1px solid #afc1c3; background: #e8f0f0; }
.body-tool-group { display: flex; gap: 3px; padding: 3px; border: 1px solid #ccdbdb; border-radius: 9px; background: #e7efef; }
.body-tool { display: flex; gap: 6px; align-items: center; padding: 7px 9px; border: 0; color: #49646b; background: transparent; box-shadow: none; font-size: 11px; }
.body-tool.active { color: #fff; background: #176f6a; }
.point-a,.point-b,.point-scale { display: inline-block; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; }
.point-a { background: #e33f47; box-shadow: 0 0 0 2px rgba(227,63,71,.16); }
.point-b { background: #2879d0; box-shadow: 0 0 0 2px rgba(40,121,208,.16); }
.point-scale { background: #00aab8; box-shadow: 0 0 0 2px rgba(0,170,184,.16); }
.body-zoom-control { display: flex; gap: 6px; align-items: center; margin-left: auto; color: #61767d; font-size: 10px; font-weight: 700; }
.body-zoom-control input { width: 90px; padding: 0; box-shadow: none; }
.body-zoom-control output { min-width: 34px; }
.body-canvas-viewport { display: grid; place-items: center; width: 100%; height: min(62vh, 680px); min-height: 430px; overflow: auto; background: #17242a; }
.body-canvas-placeholder { display: grid; place-items: center; gap: 6px; max-width: 420px; padding: 34px; color: #bfd0d3; text-align: center; }
.body-canvas-placeholder span { color: #81999e; font-size: 11px; }
.body-placeholder-mark { display: grid; place-items: center; width: 105px; height: 64px; margin-bottom: 8px; border: 1px solid #456069; border-radius: 16px; color: #e9f3f3; font-size: 17px; font-weight: 800; background: #24373e; }
#bodyLengthCanvas { display: block; max-width: none; cursor: crosshair; background: #fff; box-shadow: 0 0 0 1px #52636a; }
.body-canvas-status { min-height: 35px; padding: 9px 13px; border-top: 1px solid #dce5e5; color: #43636a; background: #f7faf9; font-size: 11px; }
.body-canvas-status.warning { color: #93491f; background: #fff5e8; }
.body-landmark-definition { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; border-top: 1px solid #d6e2e2; background: #d6e2e2; }
.body-landmark-definition > div { display: flex; gap: 8px; padding: 11px; background: #fff; }
.body-landmark-definition span { display: grid; color: #667a80; font-size: 9px; line-height: 1.45; }
.body-landmark-definition strong { color: #294a51; font-size: 10px; }
.body-line-key { width: 18px; height: 3px; flex: 0 0 18px; margin-top: 4px; background: #f0b800; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }

.body-field-grid { display: grid; gap: 9px; }
.body-field-grid label,
.body-calibration-card label { display: grid; gap: 4px; color: #60747b; font-size: 10px; font-weight: 700; }
.body-field-grid input,
.body-field-grid select,
.body-calibration-card input,
.body-calibration-card select { width: 100%; padding: 8px 9px; }
.body-calibration-card { display: grid; gap: 9px; margin-top: 12px; padding: 12px; border: 1px solid #aec2c2; border-radius: 11px; background: #edf4f3; }
.body-calibration-card > div:first-child { display: grid; }
.body-calibration-card > div:first-child span { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.body-calibration-card > div:first-child strong { color: #29474e; font-size: 12px; }
.body-calibration-card label > div { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.body-calibration-card label b { padding: 0 7px; color: #526b71; }
.body-calibration-card small { color: #7b898e; font-size: 9px; line-height: 1.45; }
.body-calibration-card .body-shared-calibration { display: flex; gap: 7px; align-items: flex-start; font-weight: 600; line-height: 1.4; }
.body-shared-calibration input { width: auto; margin-top: 2px; }
.body-result-card { margin-top: 12px; padding: 14px; border-radius: 12px; color: #d8efec; background: linear-gradient(145deg,#14343d,#20545a); }
.body-result-card > span { display: block; font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.body-result-card > strong { display: block; margin: 5px 0; color: #fff; font-size: 25px; }
.body-result-card > div { display: flex; justify-content: space-between; gap: 8px; color: #b7d0d0; font-size: 9px; }
.body-qc-checklist { display: grid; gap: 6px; margin-top: 12px; padding: 10px; border: 1px solid #aec1c2; border-radius: 10px; color: #304f55; background: #f0f5f5; }
.body-qc-checklist > span { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.body-qc-checklist label { display: flex; gap: 8px; align-items: flex-start; padding-top: 5px; border-top: 1px solid #e7eeee; }
.body-qc-checklist input { width: auto; margin-top: 3px; }
.body-qc-checklist label span { display: grid; }
.body-qc-checklist strong { font-size: 10px; }
.body-qc-checklist small { color: #78898e; font-size: 9px; line-height: 1.35; }
.body-qc-checklist .body-qc-outcome { display: grid; }
.body-qc-outcome > span { gap: 5px; }
.body-qc-outcome select,.body-qc-outcome input { width: 100%; padding: 7px 8px; }
.body-action-grid { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 11px; }
.body-science-note { margin-top: 12px; padding: 10px; border-left: 3px solid #c87539; border-radius: 6px; color: #6b5d53; background: #fff6ed; font-size: 9px; line-height: 1.5; }
.body-qc-badge { width: auto !important; padding: 0 8px !important; color: #7b4a2b !important; background: #fff0df !important; }
.body-qc-badge.ready { color: #236146 !important; background: #dff2e8 !important; }

.body-results-panel { margin-top: 12px; overflow: hidden; }
.body-results-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 15px 17px; border-bottom: 1px solid #d8e3e3; background: #f8fbfa; }
.body-results-head h3 { color: #213e45; }
.body-results-head p { margin-top: 3px; color: #6b7d82; font-size: 10px; }
.body-results-head > div:last-child { display: flex; gap: 7px; }
.body-results-table-wrap { overflow-x: auto; }
.body-results-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.body-results-table th,.body-results-table td { padding: 9px 12px; border-bottom: 1px solid #e2eaea; text-align: left; white-space: nowrap; }
.body-results-table th { color: #5d7379; background: #f5f8f8; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.body-results-table tbody tr[data-record-index] { cursor: pointer; }
.body-results-table tbody tr[data-record-index]:hover { background: #f3f9f8; }
.body-results-table tbody tr.selected { background: #e5f3f0; }
.body-qc-pass,.body-qc-warn,.body-qc-exclude { display: inline-block; padding: 3px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.body-qc-pass { color: #246245; background: #dff2e8; }
.body-qc-warn { color: #87501f; background: #fff0d8; }
.body-qc-exclude { color: #8b3540; background: #f8dfe2; }
.body-empty-row { color: #7a898e; text-align: center !important; }
.body-results-panel footer { padding: 10px 14px; color: #74868b; background: #fafcfc; font-size: 9px; }

@media (max-width: 1250px) {
  .body-length-layout { grid-template-columns: 230px minmax(480px,1fr); }
  .body-inspector-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .body-inspector-panel .body-panel-head { grid-column: 1 / -1; }
  .body-inspector-panel .body-result-card { margin-top: 0; }
}

@media (max-width: 900px) {
  .body-length-layout { grid-template-columns: 1fr; }
  .body-sample-panel,.body-canvas-panel,.body-inspector-panel { grid-column: 1; }
  .body-inspector-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .body-canvas-viewport { min-height: 360px; height: 55vh; }
  .body-landmark-definition { grid-template-columns: 1fr; }
  .body-length-steps { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 650px) {
  .app-mode-nav { grid-template-columns: 1fr; }
  .body-length-hero,.body-results-head { align-items: flex-start; flex-direction: column; }
  .body-inspector-panel { display: block; }
  .body-inspector-panel > * + * { margin-top: 12px; }
  .body-length-steps { grid-template-columns: 1fr; }
  .body-results-head > div:last-child { width: 100%; flex-wrap: wrap; }
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 660px);
  gap: 32px;
  align-items: center;
  box-shadow: 0 4px 18px rgba(20, 43, 59, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid #d17a32;
  font-size: 13px;
  font-weight: 850;
}

.brand-copy {
  min-width: 0;
}

.eyebrow,
.pane-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

h1 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.toolbar p,
.detail-head p,
.empty-state p,
.sequence-summary,
.section-head p {
  color: var(--muted);
}

.toolbar p {
  margin-top: 3px;
  font-size: 12px;
}

.project-credit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.015em;
}

.project-credit .credit-label {
  color: var(--accent);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.project-credit strong {
  color: var(--ink-soft);
  font-weight: 750;
}

.credit-divider {
  width: 1px;
  height: 10px;
  margin: 0 2px;
  background: var(--line-strong);
}

.credit-dot {
  color: var(--focus);
  font-weight: 800;
}

.top-controls {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(280px, 1.28fr);
  gap: 12px;
  align-items: end;
}

.dataset-control,
.sequence-controls label,
.protein-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.sequence-controls .wide-control {
  grid-column: span 3;
  min-width: min(560px, 100%);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

input,
select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 1px 1px rgba(20, 43, 59, 0.025);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(196, 106, 50, 0.14);
}

button,
.link-button {
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: white;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

button:hover,
.link-button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 4px 10px rgba(16, 93, 88, 0.16);
  transform: translateY(-1px);
}

button:active,
.link-button:active {
  transform: translateY(0);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
  min-height: 0;
}

.results-pane,
.detail-pane {
  min-height: 0;
  overflow: auto;
}

.results-pane {
  background: #f4f7f7;
  border-right: 1px solid #cfdadd;
}

.pane-header {
  position: sticky;
  top: 0;
  background: rgba(244, 247, 247, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 17px 18px 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.pane-header h2 {
  margin-top: 2px;
}

.pane-header h2,
.detail-head h2 {
  font-size: 18px;
}

#resultCount {
  color: var(--accent-strong);
  font-weight: 700;
  min-width: 28px;
  padding: 3px 8px;
  text-align: center;
  border: 1px solid #c9dfdc;
  border-radius: 999px;
  background: var(--accent-soft);
}

.results {
  display: grid;
}

.result-item {
  border: 0;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  display: grid;
  gap: 5px;
  padding: 14px 18px 14px 15px;
  text-align: left;
  white-space: normal;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease;
}

.result-item:hover,
.result-item.active {
  background: var(--accent-soft);
  border-left-color: var(--accent);
  color: var(--ink);
  transform: none;
  box-shadow: none;
}

.result-item.active {
  background: #e8f4f2;
}

.result-name {
  font-weight: 800;
  color: var(--navy);
}

.result-legacy {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 750;
}

.result-meta,
.result-product {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.detail-pane {
  padding: 26px 30px 44px;
  background:
    linear-gradient(135deg, rgba(235, 244, 245, 0.82), rgba(239, 246, 246, 0.72)),
    url("/static/daphnia-water-bg.webp") center / cover no-repeat,
    var(--workspace);
}

.empty-state,
.gene-detail {
  max-width: 1360px;
  margin: 0 auto;
}

.empty-state {
  min-height: 58vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 48px 24px;
}

.empty-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid #bfd6d3;
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.empty-state h2 {
  margin-bottom: 8px;
}

.hidden {
  display: none;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
  padding: 2px 2px 0;
}

.detail-head h2 {
  color: var(--navy);
  font-size: 24px;
}

.detail-head .link-button {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: none;
}

.detail-head .link-button:hover {
  background: var(--accent-soft);
}

.detail-head p {
  margin-top: 6px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.detail-tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  gap: 5px;
  margin: 0 0 16px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid #cbd7db;
  border-radius: 10px;
  background: rgba(235, 241, 243, 0.97);
  box-shadow: 0 5px 16px rgba(20, 43, 59, 0.08);
  scrollbar-width: thin;
}

.detail-tab {
  min-width: max-content;
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 11px;
  border-color: transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
}

.detail-tab:hover {
  border-color: #cbd8dc;
  background: #fff;
  color: var(--accent-strong);
  box-shadow: none;
  transform: none;
}

.detail-tab.active,
.detail-tab.active:hover {
  border-color: #a8d1cb;
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 2px 8px rgba(16, 93, 88, 0.12), inset 0 -3px 0 var(--accent);
  transform: none;
}

.detail-tab:focus-visible {
  outline: 3px solid rgba(196, 106, 50, 0.22);
  outline-offset: 1px;
}

.tab-code {
  display: inline-grid;
  min-width: 29px;
  height: 22px;
  place-items: center;
  padding: 0 5px;
  border-radius: 5px;
  background: #e5eaed;
  color: #536372;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
}

.detail-tab.active .tab-code {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.tab-panel[hidden] {
  display: none !important;
}

.tab-panel.active {
  padding: 14px;
  border: 1px solid #d4dee2;
  border-radius: 12px;
  background: rgba(249, 251, 251, 0.82);
  box-shadow: 0 5px 18px rgba(20, 43, 59, 0.055);
  animation: tab-panel-in 150ms ease-out;
}

@keyframes tab-panel-in {
  from { opacity: .35; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .tab-panel.active { animation: none; }
}

.info-cell,
.annotation-card,
.map-panel,
.workflow-panel,
.crispr-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-cell {
  padding: 13px 14px;
  min-height: 78px;
  border: 0;
  border-radius: 0;
}

.info-label {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 7px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.info-value {
  overflow-wrap: anywhere;
  line-height: 1.35;
  font-weight: 650;
}

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

.section-head h3 {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--navy);
}

.section-head p {
  font-size: 12px;
}

.map-panel,
.workflow-panel,
.crispr-panel {
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 7px rgba(20, 43, 59, 0.07);
}

.map-panel {
  border-top: 3px solid var(--navy);
}

.workflow-panel {
  border-top: 3px solid var(--accent);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.map-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.legend-exon { background: var(--exon); }
.legend-cds { background: var(--cds); }
.legend-utr { background: var(--utr); }
.legend-intron { background: var(--intron); }

.gene-map {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 14px;
}

.map-ruler,
.map-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.map-stats {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 10px;
}

.map-stats span {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  padding: 4px 8px;
}

.map-track {
  position: relative;
  height: 24px;
  margin-top: 10px;
}

.gene-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 2px;
  background: var(--line-strong);
}

.feature-block {
  position: absolute;
  border-radius: 3px;
  min-width: 3px;
}

.exon-block {
  top: 3px;
  height: 18px;
  background: rgba(79, 127, 196, 0.45);
  border: 1px solid rgba(79, 127, 196, 0.8);
}

.cds-block {
  top: 6px;
  height: 12px;
  background: var(--cds);
}

.utr-block {
  top: 8px;
  height: 8px;
  background: var(--utr);
}

.intron-block {
  top: 10px;
  height: 4px;
  background: var(--intron);
  opacity: 0.7;
}

.map-empty {
  color: var(--muted);
  padding: 14px;
}

.annotated-sequence {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.sequence-toggle {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: none;
}

.sequence-toggle:hover {
  background: var(--accent-soft);
}

.annotated-sequence-body {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.sequence-viewer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.sequence-viewer-head strong {
  color: var(--navy);
}

.sequence-viewer-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.sequence-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.sequence-pagination button {
  min-width: 78px;
  padding: 7px 10px;
  background: #fff;
  color: var(--accent-strong);
  box-shadow: none;
}

.sequence-pagination button:hover:not(:disabled) {
  background: var(--accent-soft);
}

#sequencePageLabel {
  min-width: 86px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.annotated-sequence-rows {
  padding: 8px 0;
  max-height: 520px;
  overflow: auto;
}

.annotated-sequence-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 82px;
  align-items: start;
  gap: 10px;
  padding: 5px 12px;
}

.annotated-sequence-row:nth-child(even) {
  background: #fafbfc;
}

.annotated-sequence-row code {
  min-width: 0;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.sequence-coordinate {
  padding-top: 2px;
  color: var(--subtle);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  text-align: right;
}

.sequence-coordinate-end {
  text-align: left;
}

.sequence-exon,
.sequence-cds,
.sequence-utr,
.sequence-intron,
.sequence-unannotated {
  padding: 2px 0;
}

.sequence-exon {
  color: #244e88;
  background: rgba(79, 127, 196, 0.18);
  box-shadow: inset 0 -2px 0 var(--exon);
}

.sequence-cds {
  color: #0b514d;
  background: rgba(15, 118, 110, 0.18);
  box-shadow: inset 0 2px 0 var(--exon), inset 0 -2px 0 var(--cds);
}

.sequence-utr {
  color: #8a4c11;
  background: rgba(194, 122, 26, 0.2);
  box-shadow: inset 0 2px 0 var(--exon), inset 0 -2px 0 var(--utr);
}

.sequence-intron {
  color: #58697a;
  background: rgba(147, 164, 183, 0.2);
  box-shadow: inset 0 -2px 0 var(--intron);
}

.sequence-unannotated {
  color: var(--muted);
}

.annotation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.annotation-card {
  padding: 15px 16px;
  box-shadow: var(--shadow-sm);
}

.annotation-card h3 {
  font-size: 12px;
  margin: 0 0 8px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.annotation-card ul {
  margin: 0;
  padding-left: 18px;
}

.annotation-card li {
  margin-bottom: 6px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.analysis-suite {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.quick-annotation-suite { margin-bottom: 14px; }
.phylogeny-suite { margin-bottom: 14px; }

.quick-annotation-panel {
  background: linear-gradient(145deg, #fff 48%, #eef8f5);
}

.quick-annotation-panel::before { background: #178479; }
.quick-annotation-panel .analysis-icon { background: #0f665f; }

.phylogeny-panel {
  background: linear-gradient(145deg, #fff 50%, #f4f7fa);
}

.phylogeny-panel::before { background: #334c63; }
.phylogeny-panel .analysis-icon { background: #253d52; font-size: 8px; }
.phylogeny-panel .analysis-kicker { color: #496a83; }

.advanced-analysis {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #edf2f4;
}

.advanced-analysis > summary {
  padding: 11px 14px;
  color: var(--navy);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.advanced-analysis > summary span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.advanced-analysis .analysis-suite {
  margin: 0;
  padding: 0 10px 10px;
}

.analysis-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, #fff 55%, #f3f8f7);
  box-shadow: 0 2px 8px rgba(20, 43, 59, 0.075);
}

.analysis-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.orthology-panel {
  background: linear-gradient(145deg, #fff 55%, #f5f3fa);
}

.orthology-panel::before { background: #6b57a5; }

.analysis-panel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.analysis-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
}

.orthology-panel .analysis-icon { background: #554184; }

.analysis-kicker {
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.orthology-panel .analysis-kicker { color: #655294; }
.analysis-panel h3 { margin: 2px 0 4px; color: var(--navy); font-size: 16px; }
.analysis-panel-head p { color: var(--muted); font-size: 12px; }
.analysis-panel-head button { padding: 8px 11px; font-size: 12px; }

.analysis-status {
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.82);
  color: var(--muted);
  font-size: 12px;
}

.analysis-status.success { border-color: #9fcfc8; background: #edf8f6; color: #0c5d56; }
.analysis-status.warning { border-color: #e5c29f; background: #fff8ef; color: #8a4c11; }
.analysis-results { margin-top: 12px; }

.domain-track-head,
.domain-track-row {
  display: grid;
  grid-template-columns: 82px minmax(120px, 1fr) 70px;
  align-items: center;
  gap: 9px;
}

.domain-track-head {
  margin: 3px 1px 5px;
  color: var(--subtle);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
}

.domain-track-head span:last-child { text-align: right; }

.domain-track-list {
  display: grid;
  gap: 3px;
  max-height: 256px;
  padding: 5px 7px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.76);
}

.domain-track-row {
  min-height: 24px;
  padding: 2px 0;
}

.domain-track-row + .domain-track-row { border-top: 1px solid rgba(215,224,231,.65); }

.domain-track-source {
  overflow: hidden;
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-track-scale {
  position: relative;
  display: block;
  height: 16px;
}

.domain-track-line {
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #c8d2da;
}

.domain-block {
  position: absolute;
  top: 1px;
  min-width: 4px;
  height: 14px;
  border: 1px solid color-mix(in srgb, var(--domain-color) 72%, #263746);
  border-radius: 4px;
  background: var(--domain-color);
  box-shadow: 0 2px 5px color-mix(in srgb, var(--domain-color) 25%, transparent);
}

.domain-track-range {
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  text-align: right;
  white-space: nowrap;
}

.domain-track-axis {
  display: flex;
  justify-content: space-between;
  margin: 3px 76px 0 92px;
  color: var(--subtle);
  font-size: 9px;
}

.interpro-details {
  margin-top: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.7);
}

.interpro-details summary {
  padding: 9px 11px;
  color: var(--navy);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.interpro-details summary span {
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 9px;
}

.interpro-details .evidence-list {
  max-height: 300px;
  margin: 0;
  padding: 0 8px 8px;
  overflow-y: auto;
}

@media (max-width: 620px) {
  .domain-track-head,
  .domain-track-row { grid-template-columns: 64px minmax(90px, 1fr) 58px; gap: 6px; }
  .domain-track-axis { margin-right: 62px; margin-left: 70px; }
}

.evidence-list { display: grid; gap: 7px; margin-top: 14px; }
.evidence-row { padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 12px; }
.evidence-row strong { color: var(--navy); }
.evidence-meta { display: block; margin-top: 3px; color: var(--muted); }
.term-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.term-chip { padding: 3px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 10px; font-weight: 750; }
.prediction-callout { padding: 13px; border-radius: 8px; background: #efeafa; border: 1px solid #d5cbea; }
.prediction-callout span { display: block; color: #655294; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.prediction-callout strong { display: block; margin-top: 3px; color: #332653; font-size: 17px; overflow-wrap: anywhere; }

.quick-prediction {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, .7fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid #a9d6cf;
  border-radius: 9px;
  background: linear-gradient(135deg, #eaf8f5, #f7fbfa);
}

.quick-prediction span {
  display: block;
  margin-bottom: 3px;
  color: #36756f;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
}

.quick-prediction strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.confidence-badge {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.confidence-badge.high { background: #cfeee8; color: #0b665e; }
.confidence-badge.moderate { background: #fff0d5; color: #8a5510; }

.quick-no-call {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid #e5c29f;
  border-radius: 9px;
  background: #fff8ef;
}

.quick-no-call strong { color: #7b4510; }
.quick-no-call span { color: var(--muted); font-size: 11px; }
.quick-hit-list { display: grid; gap: 7px; margin-top: 10px; }

.quick-hit-row {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quick-hit-head { display: flex; justify-content: space-between; gap: 12px; }
.quick-hit-head strong { color: var(--navy); font-size: 12px; }
.quick-hit-head a { flex: 0 0 auto; color: var(--accent-strong); font-size: 10px; font-weight: 800; }
.quick-hit-organism { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }

.quick-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.quick-metrics span {
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--muted);
  font-size: 9px;
}

.quick-metrics b { color: var(--navy); }

.tree-interpretation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #c8d5df;
  border-radius: 9px;
  background: #f7fafc;
}

.tree-interpretation span {
  color: #577189;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
}

.tree-interpretation strong { display: block; margin-top: 3px; color: var(--navy); font-size: 14px; }
.tree-interpretation p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.tree-legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.tree-legend i, .tree-legend b { width: 9px; height: 9px; border-radius: 50%; }
.tree-legend i { background: #c9232d; }
.tree-legend b { margin-left: 6px; background: #1d2730; }

.tree-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.tree-toolbar span { color: var(--muted); font-size: 10px; }
.tree-toolbar button { padding: 6px 10px; background: #fff; color: #334c63; box-shadow: none; font-size: 10px; }
.tree-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.tree-view-toggle { display: inline-flex; padding: 2px; border: 1px solid #c7d4de; border-radius: 7px; background: #edf3f6; }
.tree-view-toggle button { border: 0; border-radius: 5px; background: transparent; color: #617584; }
.tree-view-toggle button.active { background: #334c63; color: #fff; box-shadow: 0 1px 3px rgba(24, 48, 65, .18); }

.phylogeny-canvas {
  max-height: 720px;
  margin-top: 8px;
  overflow: auto;
  border: 1px solid #cbd6df;
  border-radius: 9px;
  background: #fff;
}

.phylogeny-svg { display: block; min-width: 100%; font-family: Inter, "Segoe UI", Arial, sans-serif; }
.phylogeny-canvas.circular-canvas { max-height: none; overflow: hidden; }
.phylogeny-svg.circular-tree { width: 100%; height: auto; }
.tree-branch { stroke: #29343c; stroke-width: 1.15; fill: none; shape-rendering: geometricPrecision; }
.tree-query-branch { stroke: #c9232d; stroke-width: 2; }

.expression-panel { border-left-color: #6b4fa1; }
.expression-icon { background: #5e438f; font-size: 10px; }
.expression-suite { display: grid; gap: 18px; }
.atlas-panel { border-left-color: #246d72; }
.atlas-icon { background: #1f686c; font-size: 10px; }
.expression-source-link { margin-left: auto; align-self: flex-start; padding: 8px 12px; border: 1px solid #b8a9cf; border-radius: 7px; color: #53377e; background: #faf8fd; font-weight: 700; text-decoration: none; }
.expression-source-link:hover { background: #f1ebf8; }
.atlas-panel .expression-source-link { border-color: #9ec8c8; color: #155c60; background: #f3fbfa; }
.atlas-panel .expression-source-link:hover { background: #e6f5f3; }
.atlas-summary { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(160px, .7fr) auto; gap: 12px; align-items: center; padding: 13px 15px; border: 1px solid #c8dcdd; border-radius: 9px; background: linear-gradient(135deg, #f3faf9, #f8fbfc); }
.atlas-summary > div { display: grid; gap: 3px; }
.atlas-summary span, .atlas-mapping span { color: #668186; font-size: 9px; font-weight: 850; letter-spacing: .09em; }
.atlas-summary strong { color: #173f45; font-size: 15px; }
.atlas-summary small { color: #6d7f85; font-size: 10px; }
.atlas-summary em { padding: 6px 9px; border-radius: 999px; color: #17614f; background: #dff3ea; font-size: 10px; font-style: normal; font-weight: 850; white-space: nowrap; }
.atlas-visual-layout { display: grid; grid-template-columns: minmax(330px, .9fr) minmax(430px, 1.1fr); gap: 12px; align-items: stretch; }
.atlas-efp-card { min-width: 0; padding: 14px; border: 1px solid #cadcdd; border-radius: 10px; background: linear-gradient(145deg, #f7fbfa, #eef5f4); display: grid; grid-template-rows: auto 1fr auto auto; }
.atlas-efp-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.atlas-efp-heading > div { display: grid; gap: 2px; }
.atlas-efp-heading span { color: #39747a; font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.atlas-efp-heading strong { color: #193f46; font-size: 13px; }
.atlas-efp-heading small { color: #71868a; font-size: 9px; }
.daphnia-efp { width: 100%; min-height: 305px; overflow: visible; filter: drop-shadow(0 7px 9px rgba(23, 63, 69, .08)); }
.efp-body, .efp-head, .efp-eggs ellipse { stroke: #38535c; stroke-width: 2; transition: filter .18s ease, opacity .18s ease; }
.efp-body { fill-opacity: .72; }
.efp-head { fill-opacity: .94; }
.efp-carapace { fill: none; stroke-width: 8; stroke-linecap: round; opacity: .88; transition: filter .18s ease; }
.efp-gut-outline { fill: none; stroke: #344d55; stroke-width: 25; stroke-linecap: round; stroke-linejoin: round; opacity: .72; }
.efp-gut { fill: none; stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.efp-gut-detail { fill: none; stroke: rgba(255,255,255,.62); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 5; pointer-events: none; }
.efp-antennae { fill: none; stroke-width: 15; stroke-linecap: round; }
.efp-antenna-setae path { fill: none; stroke: #50666e; stroke-width: 1.8; stroke-linecap: round; opacity: .78; }
.efp-antenna-joints path { fill: none; stroke: rgba(34,52,60,.72); stroke-width: 2.4; stroke-linecap: round; }
.efp-eye { fill: #152c38; stroke: #f5f7f6; stroke-width: 2.5; }
.efp-eye-glint { fill: #fff; }
.efp-ocellus { fill: #243d46; opacity: .82; }
.efp-hemocytes circle { stroke: #fff; stroke-width: 1.5; }
.efp-rostrum { fill: rgba(236,243,241,.82); stroke: #38535c; stroke-width: 2; stroke-linejoin: round; }
.efp-brood-chamber { fill: rgba(255,255,255,.2); stroke: rgba(52,77,85,.58); stroke-width: 2.5; }
.efp-thoracic-limbs path { fill: none; stroke: #526b70; stroke-width: 3; stroke-linecap: round; opacity: .67; }
.efp-heart { fill: rgba(255,255,255,.32); stroke: rgba(61,79,83,.5); stroke-width: 1.5; }
.efp-tail { fill: rgba(222,234,232,.72); stroke: #38535c; stroke-width: 2; stroke-linejoin: round; }
.efp-postabdomen, .efp-postabdomen-claws, .efp-shell-detail { fill: none; stroke: #456067; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .62; }
.efp-postabdomen-claws { stroke-width: 3; }
.efp-callouts path { fill: none; stroke: #536e72; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.efp-labels { pointer-events: none; fill: #435d64; font-size: 15px; font-weight: 850; letter-spacing: .04em; }
.reference-anatomy { background: #fff; }
.efp-reference-body { fill-opacity: .64; }
.efp-reference-carapace { fill-opacity: .72; }
.efp-reference-head { fill-opacity: .68; }
.efp-reference-antennae { fill: none; stroke-width: 19; stroke-linecap: round; stroke-linejoin: round; opacity: .72; }
.efp-reference-gut { fill: none; stroke-width: 42; stroke-linecap: round; stroke-linejoin: round; opacity: .76; }
.efp-reference-eggs ellipse { fill-opacity: .78; }
.efp-reference-hemocytes circle { fill-opacity: .88; stroke: #fff; stroke-width: 2.5; }
.efp-reference-lines { pointer-events: none; mix-blend-mode: multiply; }
.daphnia-efp path:hover, .daphnia-efp ellipse:hover, .daphnia-efp .efp-hemocytes:hover { filter: brightness(.87) saturate(1.18); }
.atlas-efp-legend { display: grid; grid-template-columns: auto minmax(90px, 1fr) auto; gap: 7px; align-items: center; color: #6b8084; font-size: 9px; }
.atlas-efp-legend i { height: 8px; border: 1px solid #b9c2c6; border-radius: 999px; background: linear-gradient(90deg, rgb(37,99,168), rgb(244,241,232) 50%, rgb(201,47,63)); }
.atlas-efp-legend b { grid-column: 1 / -1; justify-self: center; color: #506d71; font-size: 9px; font-weight: 750; }
.atlas-efp-card > p { margin: 7px 0 0; color: #77898c; font-size: 8px; line-height: 1.35; }
.atlas-efp-card > p a { color: #426f85; font-weight: 750; }
.atlas-profile { display: grid; gap: 9px; padding: 16px; border: 1px solid #d4e0e2; border-radius: 10px; background: #fbfdfd; }

.ko-browser-suite { display: grid; gap: 14px; }
.ko-browser-head { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: start; padding: 18px; border: 1px solid #cddadd; border-left: 4px solid #183d55; border-radius: 12px; background: linear-gradient(135deg, #f9fcfc, #eef5f6); }
.ko-browser-head h3 { margin: 2px 0 4px; color: #17344b; }
.ko-browser-head p { margin: 0; color: #61777b; line-height: 1.45; }
.ko-icon { background: #173f5b; }
.ko-guardrail { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px 15px; border: 1px solid #e3c98c; border-radius: 10px; background: #fff9eb; color: #6d5726; font-size: 12px; line-height: 1.45; }
.ko-guardrail strong { color: #9a5c09; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.ko-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ko-summary-grid > div { display: grid; gap: 3px; padding: 14px 15px; border: 1px solid #d4e0e2; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(27, 56, 63, .04); }
.ko-summary-grid span { color: #708386; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ko-summary-grid strong { color: #173f5b; font-size: 22px; }
.ko-summary-grid small { color: #778a8d; }
.ko-control-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; padding: 13px; border: 1px solid #d4e0e2; border-radius: 10px; background: #f6f9fa; }
.ko-control-grid label, .ko-jbrowse-toolbar label { display: grid; gap: 5px; color: #5a7176; font-size: 10px; font-weight: 800; }
.ko-control-grid select, .ko-control-grid input, .ko-jbrowse-toolbar input { min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #c7d5d8; border-radius: 7px; background: #fff; color: #17344b; }
.ko-sample-fieldset { margin: 0; padding: 12px 13px 13px; border: 1px solid #d4e0e2; border-radius: 10px; background: #fff; }
.ko-sample-fieldset legend { padding: 0 7px; color: #254850; font-size: 11px; font-weight: 850; }
.ko-sample-fieldset legend span { margin-left: 8px; color: #7b8d90; font-weight: 500; }
.ko-sample-filters { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
.ko-sample-filters label { position: relative; cursor: pointer; }
.ko-sample-filters input { position: absolute; opacity: 0; pointer-events: none; }
.ko-sample-filters span { display: grid; gap: 2px; padding: 8px 9px; border: 1px solid #d5e0e2; border-radius: 8px; background: #f8fbfb; transition: .15s ease; }
.ko-sample-filters b { color: #2e5057; font-size: 10px; }
.ko-sample-filters small { overflow: hidden; color: #819194; font-size: 8px; text-overflow: ellipsis; }
.ko-sample-filters input:checked + span { border-color: #247d78; background: #e5f3f1; box-shadow: inset 0 0 0 1px #247d78; }
.ko-jbrowse-toolbar { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(210px, 300px) auto auto auto; gap: 9px; align-items: end; padding: 12px 14px; border: 1px solid #ccdadd; border-radius: 10px 10px 0 0; background: #eaf1f3; }
.ko-jbrowse-toolbar > div { display: grid; gap: 2px; align-self: center; }
.ko-jbrowse-toolbar strong { color: #183d55; }
.ko-jbrowse-toolbar span { color: #71868b; font-size: 9px; }
.ko-jbrowse-toolbar button { height: 36px; white-space: nowrap; }
.ko-jbrowse-frame { display: block; width: 100%; height: 590px; margin-top: -14px; border: 1px solid #cbd8db; border-top: 0; border-radius: 0 0 10px 10px; background: #fff; }
.ko-evidence-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.ko-table-card { min-width: 0; overflow: hidden; border: 1px solid #d3dfe1; border-radius: 10px; background: #fff; }
.ko-table-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid #dbe5e7; background: #f7fafb; }
.ko-table-head > div { display: grid; gap: 2px; }
.ko-table-head span { color: #23776f; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.ko-table-head strong { color: #183d55; font-size: 12px; }
.ko-table-head b { color: #557078; font-size: 10px; white-space: nowrap; }
.ko-table-wrap { max-height: 350px; overflow: auto; }
.ko-table-wrap table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 9px; white-space: nowrap; }
.ko-table-wrap th { position: sticky; top: 0; z-index: 1; padding: 8px 9px; border-bottom: 1px solid #cfdbde; background: #eef4f5; color: #536b70; text-align: left; font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.ko-table-wrap td { padding: 7px 9px; border-bottom: 1px solid #edf2f3; color: #425c62; }
.ko-table-wrap tr:hover td { background: #f4f9f9; }
.ko-table-wrap code { color: #243f58; font-family: Consolas, monospace; font-size: 9px; }
.ko-locus-button { padding: 0; border: 0; background: none; color: #176f82; font-size: inherit; font-weight: 800; text-decoration: underline; text-decoration-color: #a9c9cf; text-underline-offset: 2px; }
.ko-class, .ko-coverage { display: inline-flex; padding: 3px 6px; border-radius: 999px; font-size: 8px; font-weight: 850; }
.ko-class.sample_private { background: #e7f1fb; color: #285f91; }
.ko-class.ko_pair_shared { background: #e7f5ee; color: #1e7454; }
.ko-coverage.sufficient { background: #e4f5e7; color: #27713d; }
.ko-coverage.insufficient { background: #fff0dd; color: #975a0a; }
.ko-empty { padding: 20px !important; color: #7f9093 !important; text-align: center; }
.ko-offtarget-card .ko-table-wrap { max-height: 300px; }
.ko-provenance { padding: 10px 13px; border: 1px dashed #c9d7da; border-radius: 8px; background: #f8fbfb; color: #718487; font-size: 9px; }

@media (max-width: 1100px) {
  .ko-control-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ko-sample-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ko-jbrowse-toolbar { grid-template-columns: 1fr 1fr auto; }
  .ko-jbrowse-toolbar > div { grid-column: 1 / -1; }
  .ko-evidence-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .ko-browser-head { grid-template-columns: auto 1fr; }
  .ko-browser-head > a { grid-column: 1 / -1; }
  .ko-summary-grid, .ko-control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ko-sample-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ko-jbrowse-toolbar { grid-template-columns: 1fr 1fr; }
  .ko-jbrowse-toolbar label { grid-column: 1 / -1; }
  .ko-jbrowse-frame { height: 500px; }
}
.atlas-row { display: grid; grid-template-columns: minmax(95px, 135px) 1fr 82px; gap: 12px; align-items: center; }
.atlas-row > strong { color: #294751; font-size: 11px; }
.atlas-row > div:last-child { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; color: #42646a; }
.atlas-row b { font-size: 12px; }
.atlas-row small { color: #819297; font-size: 9px; }
.atlas-track { position: relative; height: 18px; border-radius: 5px; background: linear-gradient(90deg, #edf3f3, #e7efef); box-shadow: inset 0 0 0 1px #dce7e7; }
.atlas-track > span { display: block; height: 100%; min-width: 1px; border-radius: inherit; background: linear-gradient(90deg, #65aaa5, #276f76); opacity: .78; }
.atlas-replicate-dot { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border: 2px solid #fff; border-radius: 50%; background: #173d47; box-shadow: 0 0 0 1px rgba(23,61,71,.25); }
.atlas-mapping { display: grid; grid-template-columns: 1.35fr .8fr 1fr; border: 1px solid #d6e0e2; border-radius: 9px; overflow: hidden; background: #fff; }
.atlas-mapping > div { min-width: 0; padding: 11px 12px; display: grid; gap: 3px; border-left: 1px solid #e0e7e8; }
.atlas-mapping > div:first-child { border-left: 0; }
.atlas-mapping strong, .atlas-mapping small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atlas-mapping strong { color: #2b4852; font-size: 11px; }
.atlas-mapping small { color: #7a8b90; font-size: 9px; }
.atlas-coverage-note { color: #708187; font-size: 10px; }
.atlas-batch-panel { border-left-color: #527485; }
.atlas-export-icon { background: #466b7c; }
.atlas-batch-controls { display: grid; gap: 8px; padding: 15px; border: 1px solid #d3dfe3; border-radius: 10px; background: #f8fbfc; }
.atlas-batch-controls label { display: flex; justify-content: space-between; gap: 12px; color: #34515e; font-size: 11px; font-weight: 800; }
.atlas-batch-controls label span { color: #7a8c94; font-size: 9px; font-weight: 600; }
.atlas-batch-controls textarea { width: 100%; min-height: 104px; resize: vertical; padding: 11px 12px; border: 1px solid #bfced4; border-radius: 8px; background: #fff; color: #243d49; font: 11px/1.55 Consolas, "Courier New", monospace; }
.atlas-batch-controls textarea:focus { outline: 2px solid rgba(36,109,114,.18); border-color: #42868a; }
.atlas-batch-controls > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.atlas-batch-controls small { color: #71828a; font-size: 9px; line-height: 1.4; }
.atlas-batch-controls button { flex: 0 0 auto; }
.expression-progress-card { padding: 14px 16px; border: 1px solid #d9d0e7; border-radius: 9px; background: #fbf9fd; display: grid; gap: 7px; }
.expression-progress-card span, .expression-progress-card small { color: #687985; }
.expression-progress { height: 8px; border-radius: 999px; overflow: hidden; background: #e5dfed; }
.expression-progress i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #7655a7, #2f8f8a); transition: width .3s ease; }
.expression-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 15px; border: 1px solid #d7e0e6; border-radius: 9px; background: #f7fafb; }
.expression-summary-row div { display: grid; gap: 3px; }
.expression-summary-row span { color: #71818d; font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.expression-summary-row strong { color: #243b4b; font-size: 15px; }
.expression-bias { padding: 5px 9px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 800; }
.expression-bias.male { color: #245581; background: #e5f0fa; }
.expression-bias.female { color: #8b315d; background: #fae9f2; }
.expression-bias.neutral { color: #53636e; background: #eaf0f3; }
.expression-chart { height: 285px; display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 16px; padding: 20px 18px 12px; border: 1px solid #d7e0e6; border-radius: 10px; background: linear-gradient(to top, rgba(116,136,149,.09) 1px, transparent 1px) 0 0 / 100% 25%; }
.expression-group { min-width: 0; display: grid; grid-template-rows: 1fr auto auto auto; justify-items: center; gap: 3px; text-align: center; }
.expression-plot { position: relative; width: min(72px, 80%); height: 190px; align-self: end; border-bottom: 1px solid #9babb5; }
.expression-mean-bar { position: absolute; left: 18%; right: 18%; bottom: 0; min-height: 1px; border-radius: 6px 6px 0 0; background: #8b72b6; opacity: .78; }
.expression-group.line_a_male .expression-mean-bar { background: #7666a7; }
.expression-group.line_b_male .expression-mean-bar { background: #566e9d; }
.expression-group.wt_male .expression-mean-bar { background: #2d668d; }
.expression-replicate-dot { position: absolute; width: 8px; height: 8px; margin: 0 0 -4px -4px; border: 2px solid #fff; border-radius: 50%; background: #263c4a; box-shadow: 0 0 0 1px rgba(38,60,74,.28); z-index: 2; }
.expression-group > strong { color: #263f50; font-size: 12px; }
.expression-group > span { color: #553d80; font-size: 12px; font-weight: 800; }
.expression-group > small { color: #7c8a94; font-size: 10px; }
.deseq-panel { padding: 15px; border: 1px solid #cec2df; border-radius: 10px; background: linear-gradient(135deg, #fbf9fd, #f6fafb); display: grid; gap: 12px; }
.deseq-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.deseq-heading > div { display: grid; gap: 3px; }
.deseq-heading span, .deseq-heading label { color: #725b92; font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.deseq-heading strong { color: #263d4c; font-size: 14px; }
.deseq-heading label { min-width: 245px; display: grid; gap: 4px; }
.deseq-heading select { width: 100%; padding: 7px 30px 7px 9px; border: 1px solid #c9bfd8; border-radius: 7px; background: #fff; color: #344b5a; font-size: 11px; font-weight: 700; letter-spacing: 0; }
.deseq-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #dbe2e7; border-radius: 8px; overflow: hidden; background: #fff; }
.deseq-metrics > div { min-width: 0; padding: 11px 12px; display: grid; gap: 3px; border-left: 1px solid #e2e7eb; }
.deseq-metrics > div:first-child { border-left: 0; }
.deseq-metrics span { overflow: hidden; color: #7b8993; font-size: 8px; font-weight: 850; letter-spacing: .07em; text-overflow: ellipsis; white-space: nowrap; }
.deseq-metrics strong { color: #293f50; font-size: 15px; }
.deseq-metrics small { overflow: hidden; color: #82909a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.deseq-callout { display: flex; align-items: center; gap: 9px; color: #60717d; font-size: 10px; }
.deseq-callout em { padding: 5px 8px; border-radius: 999px; font-style: normal; font-weight: 850; }
.deseq-callout.significant em { color: #176345; background: #dcf2e7; }
.deseq-callout.not-significant em { color: #5e6870; background: #e9eef1; }
.deseq-callout.not-tested em { color: #8b6022; background: #fff0d7; }
.deseq-empty { padding: 12px; display: grid; gap: 4px; border-radius: 8px; color: #6f7e88; background: #fff4e2; font-size: 11px; }
.deseq-empty strong { color: #805b26; }
.deseq-panel > p { margin: 0; color: #76858f; font-size: 10px; line-height: 1.45; }
.expression-footnote { display: flex; flex-wrap: wrap; gap: 5px 16px; color: #71818d; font-size: 11px; }
.expression-footnote a { margin-left: auto; color: #496b82; font-weight: 700; }

@media (max-width: 760px) {
  .atlas-summary { grid-template-columns: 1fr 1fr; }
  .atlas-summary em { grid-column: 1 / -1; justify-self: start; }
  .atlas-row { grid-template-columns: 90px 1fr 66px; gap: 8px; }
  .atlas-mapping { grid-template-columns: 1fr; }
  .atlas-mapping > div { border-top: 1px solid #e0e7e8; border-left: 0; }
  .atlas-mapping > div:first-child { border-top: 0; }
  .expression-chart { height: auto; grid-template-columns: repeat(2, minmax(120px, 1fr)); row-gap: 22px; }
  .expression-plot { height: 150px; }
  .expression-source-link { margin-left: 0; }
  .atlas-visual-layout { grid-template-columns: 1fr; }
  .daphnia-efp { min-height: 220px; }
  .atlas-batch-controls label, .atlas-batch-controls > div { align-items: stretch; flex-direction: column; }
  .atlas-batch-controls button { width: 100%; }
  .deseq-heading { align-items: stretch; flex-direction: column; }
  .deseq-heading label { min-width: 0; }
  .deseq-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deseq-metrics > div:nth-child(3) { border-left: 0; border-top: 1px solid #e2e7eb; }
  .deseq-metrics > div:nth-child(4) { border-top: 1px solid #e2e7eb; }
}
.tree-leaf-dot { fill: #1d2730; }
.tree-query-dot { fill: #c9232d; stroke: #fff; stroke-width: 1.5; }
.tree-leaf-label { fill: #161d23; font-size: 10px; }
.tree-leaf-label.query { fill: #c9232d; font-size: 11px; font-weight: 850; }
.tree-support { fill: #778794; font-size: 7px; }
.tree-support.circular { paint-order: stroke; stroke: #fff; stroke-width: 2.5px; stroke-linejoin: round; }
.tree-title { fill: #334c63; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.tree-scale { stroke: #526675; stroke-width: 1; }
.tree-scale-label { fill: #6d7e8b; font-size: 8px; }
.tree-outer-guide { fill: none; stroke: #dce4e9; stroke-width: 1; stroke-dasharray: 2 4; }
.tree-leaf-label.circular { font-size: 11px; }
.tree-leaf-label.circular.query { font-size: 12px; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }

.nearest-details {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nearest-details summary { padding: 9px 11px; color: var(--navy); cursor: pointer; font-size: 11px; font-weight: 800; }
.nearest-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 0 8px 8px; }
.nearest-hit { min-width: 0; padding: 8px; border-radius: 6px; background: var(--soft); }
.nearest-hit strong, .nearest-hit span, .nearest-hit em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nearest-hit strong { color: var(--navy); font-size: 10px; }
.nearest-hit span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.nearest-hit em { margin-top: 4px; color: #536b7e; font-size: 8px; font-style: normal; }

@media (max-width: 760px) {
  .quick-prediction { grid-template-columns: 1fr; gap: 9px; }
  .confidence-badge { justify-self: start; }
  .tree-interpretation { grid-template-columns: 1fr; }
  .tree-legend { white-space: normal; }
  .tree-toolbar { align-items: flex-start; flex-direction: column; }
  .tree-toolbar-actions { width: 100%; justify-content: space-between; }
  .nearest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.text-action {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #655294;
  box-shadow: none;
  font-size: 11px;
}
.text-action:hover { background: transparent; border: 0; box-shadow: none; color: #403064; }

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

.sequence-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 180px)) minmax(220px, 1fr) repeat(4, auto);
  gap: 10px;
  align-items: end;
}

.sequence-controls button,
.protein-controls button {
  min-height: 40px;
}

#previewButton,
#mapGeneButton,
#blastProteinButton,
#crisprDesignButton {
  background: #fff;
  color: var(--accent-strong);
}

#previewButton:hover,
#mapGeneButton:hover,
#blastProteinButton:hover,
#crisprDesignButton:hover {
  background: var(--accent-soft);
}

#downloadGenbankButton {
  background: var(--navy);
  border-color: var(--navy);
}

#downloadGenbankButton:hover {
  background: #0d202d;
  border-color: #0d202d;
}

.protein-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
  align-self: center;
  padding-top: 18px;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.crispr-panel {
  margin-top: 10px;
  padding: 14px;
}

.crispr-panel {
  border-top: 3px solid var(--warning);
}

.crispr-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.crispr-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.crispr-head p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

.crispr-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1040px;
  background: #fff;
}

.crispr-table th,
.crispr-table td {
  border-top: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.35;
}

.crispr-table thead th {
  border-top: 0;
  background: #f3f6f7;
  position: sticky;
  top: 0;
  z-index: 1;
}

.crispr-table th {
  color: var(--accent-strong);
  font-size: 11px;
  text-transform: uppercase;
}

.crispr-table code {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.sequence-summary {
  margin: 14px 2px 8px;
  min-height: 20px;
}

.sequence-preview {
  background: #14232d;
  color: #e8f3ee;
  border-radius: 8px;
  padding: 16px;
  min-height: 220px;
  max-height: 52vh;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid #263a48;
  box-shadow: var(--shadow-md);
}

@media (max-width: 1100px) {
  .toolbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .top-controls {
    grid-template-columns: minmax(180px, 0.65fr) minmax(280px, 1.35fr);
  }

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

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

  .analysis-suite { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .toolbar,
  .workspace,
  .sequence-controls,
  .protein-controls,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .analysis-panel-head { grid-template-columns: auto minmax(0, 1fr); }
  .analysis-panel-head button { grid-column: 1 / -1; width: max-content; }

  .toolbar {
    position: relative;
    padding: 14px 16px;
  }

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

  .detail-pane {
    padding: 20px 16px 36px;
  }

  .workspace {
    min-height: auto;
  }

  .results-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 42vh;
  }

  .detail-head,
  .section-head {
    display: grid;
  }

  .detail-head .link-button {
    width: max-content;
    min-width: 140px;
  }

  .sequence-controls .wide-control {
    grid-column: auto;
    min-width: 0;
  }

  .sequence-viewer-head {
    display: grid;
  }

  .sequence-pagination {
    justify-content: space-between;
  }

  .annotated-sequence-row {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .sequence-coordinate-end {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    display: none;
  }

  h1 {
    font-size: 18px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .map-legend {
    width: 100%;
  }

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

/* 2026-07 scientific product visual refresh */
:root {
  --ink: #122129;
  --ink-soft: #304650;
  --muted: #60747d;
  --subtle: #8b9ca3;
  --line: #d5e1e2;
  --line-strong: #b8cbcc;
  --panel: rgba(255, 255, 255, 0.94);
  --soft: #f2f7f6;
  --page: #e4eeef;
  --workspace: #e9f1f1;
  --section: rgba(248, 251, 250, 0.94);
  --navy: #102c35;
  --accent: #0f7c73;
  --accent-strong: #09665f;
  --accent-soft: #e3f3f0;
  --focus: #b66d32;
  --shadow-sm: 0 2px 8px rgba(15, 53, 60, 0.07);
  --shadow-md: 0 18px 45px rgba(15, 53, 60, 0.11);
}

html {
  scrollbar-color: #a9c4c3 transparent;
}

body {
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, Arial, sans-serif;
  background: #dce9e9;
  letter-spacing: -0.005em;
}

.toolbar {
  min-height: 92px;
  padding: 15px 30px;
  grid-template-columns: minmax(430px, 1fr) minmax(460px, 700px);
  background:
    linear-gradient(90deg, rgba(251, 253, 252, 0.98), rgba(245, 250, 249, 0.94));
  border-bottom: 1px solid rgba(166, 194, 194, 0.65);
  box-shadow: 0 10px 35px rgba(17, 54, 61, 0.08);
  backdrop-filter: blur(22px) saturate(1.15);
}

.brand {
  gap: 15px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  padding: 8px;
  border: 1px solid rgba(132, 191, 184, 0.3);
  border-bottom: 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 28% 22%, rgba(86, 193, 180, 0.34), transparent 35%),
    linear-gradient(145deg, #163b44, #0a625c);
  box-shadow:
    0 10px 24px rgba(10, 82, 78, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.daphnia-shell,
.daphnia-core,
.daphnia-antenna {
  fill: none;
  stroke: rgba(231, 251, 246, 0.92);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.daphnia-shell {
  stroke-width: 2.1;
}

.daphnia-core,
.daphnia-antenna {
  stroke-width: 1.5;
}

.daphnia-eye {
  fill: #f2c184;
}

.daphnia-egg {
  fill: rgba(130, 216, 200, 0.82);
}

.eyebrow {
  margin-bottom: 2px;
  color: #13796f;
  font-size: 9px;
  letter-spacing: 0.18em;
}

h1 {
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.toolbar p {
  margin-top: 2px;
  color: #5c7079;
  font-size: 11px;
}

.project-credit {
  margin-top: 5px;
  gap: 6px;
  font-size: 9.5px;
}

.workspace-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  padding: 3px 7px;
  border: 1px solid #c9dedb;
  border-radius: 999px;
  background: rgba(235, 247, 244, 0.9);
  color: #3c655f;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.workspace-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #24a68f;
  box-shadow: 0 0 0 3px rgba(36, 166, 143, 0.12);
}

.top-controls {
  gap: 10px;
}

.dataset-control > span {
  padding-left: 2px;
  color: #587078;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

input,
select {
  min-height: 43px;
  border-color: #cbdadb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 2px 8px rgba(14, 60, 65, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input:focus,
select:focus {
  border-color: #5ca89f;
  box-shadow: 0 0 0 4px rgba(15, 124, 115, 0.11);
}

button,
.link-button {
  border-radius: 10px;
  background: linear-gradient(145deg, #11877c, #0b6b64);
  box-shadow: 0 5px 14px rgba(9, 102, 95, 0.15);
}

button:hover,
.link-button:hover {
  background: linear-gradient(145deg, #0d766e, #075c57);
  box-shadow: 0 8px 20px rgba(9, 102, 95, 0.2);
}

.workspace {
  grid-template-columns: minmax(300px, 336px) minmax(0, 1fr);
}

.results-pane {
  padding: 0 10px 14px;
  border-right-color: rgba(168, 194, 194, 0.72);
  background: rgba(242, 248, 247, 0.96);
}

.pane-header {
  margin: 0 -10px 8px;
  padding: 18px 20px 14px;
  background: rgba(245, 250, 249, 0.92);
  border-bottom-color: rgba(197, 216, 215, 0.76);
  backdrop-filter: blur(18px);
}

.pane-kicker {
  color: #368078;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.pane-header h2,
.detail-head h2 {
  font-weight: 740;
  letter-spacing: -0.025em;
}

#resultCount {
  border-color: #bfd9d5;
  background: rgba(227, 243, 240, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.results {
  gap: 7px;
}

.result-item {
  border: 1px solid rgba(208, 222, 222, 0.95);
  border-left: 3px solid transparent;
  border-radius: 11px;
  padding: 13px 14px 13px 13px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 3px 10px rgba(19, 59, 64, 0.035);
}

.result-item:hover {
  border-color: #abd1cb;
  border-left-color: #29978b;
  background: rgba(241, 250, 248, 0.98);
}

.result-item.active {
  border-color: #8fc6be;
  border-left-color: #08776e;
  background:
    linear-gradient(110deg, rgba(222, 243, 239, 0.98), rgba(246, 251, 250, 0.98));
  box-shadow: 0 7px 18px rgba(13, 108, 99, 0.1);
}

.result-name {
  color: #153b43;
  letter-spacing: -0.01em;
}

.detail-pane {
  padding: 30px 34px 48px;
  background:
    linear-gradient(90deg, rgba(239, 247, 246, 0.9) 0%, rgba(239, 247, 246, 0.84) 58%, rgba(231, 243, 243, 0.62) 100%),
    url("/static/daphnia-scientific-bg-v2.webp") center right / cover no-repeat,
    var(--workspace);
}

.empty-state {
  width: min(620px, 100%);
  min-height: auto;
  margin-top: clamp(50px, 12vh, 150px);
  padding: 60px 54px;
  border: 1px solid rgba(194, 215, 214, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 26px 70px rgba(19, 59, 64, 0.13);
  backdrop-filter: blur(18px) saturate(1.08);
}

.empty-mark {
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  border: 1px solid rgba(108, 174, 166, 0.4);
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 22%, rgba(105, 205, 191, 0.3), transparent 34%),
    linear-gradient(145deg, #153b44, #0b7169);
  color: #f3fbf9;
  box-shadow: 0 14px 32px rgba(11, 102, 95, 0.2);
  font-size: 11px;
}

.empty-state h2 {
  margin-bottom: 8px;
  color: #173740;
  font-size: 24px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.empty-state p {
  max-width: 470px;
  color: #5b7078;
  line-height: 1.65;
}

.gene-detail {
  max-width: 1280px;
}

.detail-head {
  padding: 20px 22px;
  border: 1px solid rgba(205, 220, 220, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 9px 28px rgba(20, 61, 66, 0.07);
  backdrop-filter: blur(14px);
}

.info-grid > *,
.map-panel,
.workflow-panel,
.crispr-panel,
.analysis-panel,
.advanced-analysis,
.annotation-grid > * {
  border-color: rgba(202, 219, 218, 0.94);
  box-shadow: 0 8px 26px rgba(18, 58, 63, 0.065);
}

.detail-tabs {
  padding: 5px;
  border: 1px solid rgba(197, 216, 215, 0.9);
  border-radius: 14px;
  background: rgba(244, 249, 248, 0.88);
  box-shadow: 0 6px 20px rgba(18, 58, 63, 0.05);
  backdrop-filter: blur(14px);
}

.detail-tab {
  border-radius: 9px;
}

.detail-tab.active {
  background: #fff;
  box-shadow:
    0 4px 12px rgba(14, 85, 80, 0.09),
    inset 0 -2px 0 #16877d;
}

.analysis-panel,
.map-panel,
.workflow-panel,
.crispr-panel {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.sequence-preview {
  border-radius: 14px;
  background: linear-gradient(145deg, #102831, #173640);
  border-color: #244650;
  box-shadow: 0 14px 30px rgba(10, 36, 44, 0.16);
}

@media (max-width: 1100px) {
  .toolbar {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .workspace-badge {
    display: none;
  }
}

@media (max-width: 900px) {
  .toolbar {
    min-height: auto;
    padding: 14px 16px;
  }

  .detail-pane {
    padding: 22px 16px 38px;
    background:
      linear-gradient(rgba(239, 247, 246, 0.84), rgba(239, 247, 246, 0.9)),
      url("/static/daphnia-scientific-bg-v2.webp") 72% center / cover no-repeat,
      var(--workspace);
  }

  .results-pane {
    padding-bottom: 10px;
  }

  .empty-state {
    margin-top: 28px;
    padding: 44px 26px;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 14px;
  }

  h1 {
    font-size: 20px;
  }

  .credit-divider,
  .credit-dot {
    display: none;
  }

  .project-credit {
    gap: 4px 8px;
  }

  .empty-state h2 {
    font-size: 21px;
  }
}
.primer-blast-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #bdd8d4;
  border-left: 5px solid #157a74;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #f3f9f8 100%);
  box-shadow: 0 8px 24px rgba(22, 63, 69, 0.07);
}

.primer-blast-head { align-items: flex-start; }
.primer-blast-head h3 { margin: 4px 0 5px; }
.primer-blast-head p { margin: 0; color: #566c75; }
.local-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #176860;
  background: #e1f3ef;
  font-size: 12px;
  font-weight: 700;
}

.primer-mode-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 20px 0 14px;
  padding: 4px;
  border: 1px solid #cadcd9;
  border-radius: 10px;
  background: #edf5f4;
}
.primer-mode-tab {
  border: 0;
  border-radius: 7px;
  padding: 9px 14px;
  color: #49636a;
  background: transparent;
  box-shadow: none;
}
.primer-mode-tab.active { color: #fff; background: #197a74; }

.primer-form-panel { padding: 16px; border: 1px solid #d2e2e0; border-radius: 12px; background: #fff; }
.primer-sequence-field { display: grid; gap: 7px; }
.primer-sequence-field textarea {
  width: 100%;
  min-height: 94px;
  resize: vertical;
  box-sizing: border-box;
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: .04em;
}
.primer-parameter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(105px, 1fr)) minmax(150px, auto);
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}
.primer-parameter-grid label, .primer-pair-inputs label { display: grid; gap: 6px; }
.primer-parameter-grid span, .primer-pair-inputs span, .primer-sequence-field > span { color: #526971; font-size: 12px; font-weight: 700; }
.primer-parameter-grid input, .primer-pair-inputs input { width: 100%; box-sizing: border-box; }
.primer-pair-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.primer-pair-inputs input { font-family: Consolas, "Courier New", monospace; text-transform: uppercase; }
.check-grid { grid-template-columns: repeat(2, minmax(120px, 180px)) minmax(180px, auto); justify-content: start; }
.primer-method-note { margin: 13px 2px 0; color: #667981; font-size: 12px; line-height: 1.55; }
.primer-blast-status { min-height: 20px; margin-top: 12px; color: #31565d; font-size: 13px; }
.primer-blast-status.error { color: #a54235; }
.primer-blast-results { display: grid; gap: 12px; }

.primer-summary-strip, .primer-property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid #cfdfdd;
  border-radius: 10px;
  background: #cfdfdd;
}
.primer-summary-cell, .primer-property-card { padding: 12px; background: #fff; }
.primer-summary-cell span, .primer-property-card .label { display: block; color: #71838b; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.primer-summary-cell strong { display: block; margin-top: 4px; color: #173b46; }
.primer-result-card { overflow: hidden; border: 1px solid #c7dcd9; border-radius: 12px; background: #fff; }
.primer-result-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 13px 15px; background: #eef7f5; }
.primer-result-title h4 { margin: 0; color: #173b46; }
.primer-rating { padding: 5px 9px; border-radius: 999px; background: #dff1e8; color: #216345; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.primer-rating.caution, .primer-rating.poor { color: #8b4a25; background: #fff0dd; }
.primer-result-body { padding: 14px 15px; }
.primer-seq-row { display: grid; grid-template-columns: 70px minmax(180px, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid #edf2f2; }
.primer-seq-row code { overflow-wrap: anywhere; color: #0d5d60; font-weight: 700; }
.primer-seq-row small { color: #6a7d84; }
.primer-locus { margin-top: 10px; color: #4c646c; font-size: 12px; }
.primer-result-card details { margin-top: 11px; border-top: 1px solid #e3eceb; padding-top: 10px; }
.primer-result-card summary { cursor: pointer; color: #1a6c68; font-weight: 700; }
.amplicon-sequence { max-height: 180px; overflow: auto; white-space: pre-wrap; word-break: break-all; padding: 10px; border-radius: 8px; background: #f3f7f7; color: #314e56; font-family: Consolas, "Courier New", monospace; font-size: 11px; }
.amplicon-table-wrap { overflow-x: auto; margin-top: 10px; }
.amplicon-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.amplicon-table th, .amplicon-table td { padding: 8px; border-bottom: 1px solid #e1eaea; text-align: left; white-space: nowrap; }
.amplification-match { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.amplification-match.strong { color: #216345; background: #dff1e8; }
.amplification-match.possible { color: #8b5b1e; background: #fff0d7; }
.primer-orientation-note { margin: 12px 0; padding: 10px 12px; border-left: 4px solid #4d8da0; border-radius: 7px; color: #315b68; background: #edf7fa; font-size: 12px; line-height: 1.5; }
.secondary-button { margin-top: 12px; background: #fff; color: #176b66; border: 1px solid #78aaa5; }

@media (max-width: 950px) {
  .primer-parameter-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .primer-pair-inputs, .primer-property-grid, .primer-summary-strip { grid-template-columns: 1fr; }
}

/* 2026.08.11 single-workspace usability refresh */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #91aaae;
  background: linear-gradient(100deg, rgba(250,252,252,.99), rgba(235,244,244,.98));
  box-shadow: 0 8px 28px rgba(16,53,60,.12);
}

.top-controls {
  align-self: center;
  padding: 10px;
  border: 1px solid #b2c7c9;
  border-radius: 14px;
  background: rgba(244,249,249,.92);
  box-shadow: inset 0 1px 0 #fff, 0 5px 16px rgba(18,58,63,.06);
}

.search-row { grid-template-columns: minmax(260px,1fr) auto; }
.dataset-control { grid-row: 1 / 3; }
.search-row,.search-help { grid-column: 2; }
.search-row input { border-color: #9db6b9; background: #fff; }
.search-row button { min-width: 92px; }
.search-help { display: flex; gap: 6px; align-items: center; min-height: 20px; padding: 0 3px; color: #667a80; font-size: 9px; }
.search-help > span:first-child { color: #236f69; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.search-help code { padding: 2px 6px; border: 1px solid #c4d6d6; border-radius: 999px; color: #315f62; background: #fff; font-family: inherit; font-weight: 700; }

.workspace { grid-template-columns: minmax(310px,360px) minmax(0,1fr); background: #d5e1e3; }
.results-pane { border-right: 1px solid #9fb5b8; background: #e7efef; }
.pane-header { border-bottom: 1px solid #aec1c3; background: rgba(238,245,245,.98); box-shadow: 0 4px 12px rgba(20,56,62,.05); }
.results { padding: 0 2px; }
.results-start { display: grid; gap: 5px; margin: 10px 4px; padding: 18px 16px; border: 1px dashed #9eb6b7; border-radius: 12px; color: #61757b; background: rgba(247,250,250,.82); text-align: center; }
.results-start strong { color: #315c60; font-size: 12px; }
.results-start span { font-size: 10px; line-height: 1.5; }
.result-item { border-color: #b8c9cb; background: #f9fbfb; box-shadow: 0 3px 10px rgba(19,59,64,.055); }
.result-item:hover { border-color: #6daea7; background: #f1faf8; }
.result-item.active { border-color: #4b9f96; box-shadow: 0 7px 18px rgba(13,108,99,.13); }

.detail-pane {
  padding: 26px clamp(22px,3vw,46px) 52px;
  background: linear-gradient(100deg, rgba(224,236,236,.96), rgba(236,244,243,.92)), url("/static/daphnia-scientific-bg-v2.webp") center right / cover no-repeat;
}
.gene-detail { max-width: 1440px; margin-inline: auto; }
.detail-head { border-color: #aebfc1; background: rgba(250,252,252,.97); box-shadow: 0 10px 30px rgba(17,55,61,.1); }
.detail-tabs { top: 0; border-color: #a9bec0; background: rgba(229,239,239,.98); box-shadow: 0 7px 20px rgba(18,58,63,.09); }
.tab-panel.active { border-color: #aabfc1; background: rgba(247,250,250,.98); box-shadow: 0 12px 32px rgba(18,58,63,.08); }
.info-grid > *, .map-panel, .workflow-panel, .crispr-panel, .analysis-panel, .advanced-analysis, .annotation-grid > * { border-color: #b2c5c6; background-color: rgba(250,252,252,.98); }

.empty-state { border-color: #9fb8ba; background: rgba(247,251,250,.92); }
.empty-guide { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 24px; }
.empty-guide > div { display: flex; gap: 9px; align-items: center; padding: 11px; border: 1px solid #bacbcc; border-radius: 11px; color: #506970; background: #f5f9f8; text-align: left; }
.empty-guide b { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; color: #fff; background: #277b74; font-size: 10px; }
.empty-guide span { display: grid; }
.empty-guide strong { color: #244b50; font-size: 10px; }
.empty-guide small { margin-top: 2px; color: #708186; font-size: 8px; line-height: 1.35; }

@media (max-width: 1100px) {
  .toolbar { position: relative; }
  .search-help { flex-wrap: wrap; }
  .workspace { grid-template-columns: minmax(270px,310px) minmax(0,1fr); }
}

@media (max-width: 620px) {
  .top-controls { grid-template-columns: 1fr; }
  .dataset-control,.search-row,.search-help { grid-column: 1; grid-row: auto; }
  .search-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .workspace { grid-template-columns: 1fr; }
  .results-pane { max-height: 38vh; border-right: 0; border-bottom: 1px solid #9fb5b8; }
  .empty-guide { grid-template-columns: 1fr; }
  .detail-pane { padding: 18px 14px 36px; }
}
