:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #eef3f2;
  --ink: #18212f;
  --muted: #5c6875;
  --line: #d9e0e4;
  --teal: #0f766e;
  --blue: #2563eb;
  --red: #b42318;
  --gold: #a16207;
  --violet: #6d28d9;
  --shadow: 0 16px 38px rgba(24, 33, 47, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(245, 247, 248, 0) 260px),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  min-height: 40px;
}

button:hover:not(:disabled) {
  border-color: #94a3b8;
  box-shadow: 0 6px 18px rgba(24, 33, 47, 0.08);
}

button:disabled {
  color: #9aa5af;
  cursor: not-allowed;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 40px;
  padding: 0 12px;
}

textarea {
  min-height: 58px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.4;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 1px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: 18px;
}

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

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #12343b;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

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

h1 {
  font-size: 22px;
  line-height: 1.1;
}

h2 {
  font-size: 15px;
  line-height: 1.25;
}

h3 {
  font-size: 13px;
  line-height: 1.25;
}

.brand-block p,
#statusText,
.source-strip,
.insight-card span,
.map-header span,
.answer-header span,
.matrix-header span,
.record-meta,
.record-abstract,
.empty-state,
.ai-output {
  color: var(--muted);
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: 13px;
}

.source-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.search-panel,
.question-panel,
.compare-panel,
.compound-panel,
.filter-panel,
.study-panel,
.results-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 14px;
  margin-bottom: 14px;
}

.question-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 14px;
  margin-bottom: 14px;
  background: #ffffff;
}

.compare-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  margin-bottom: 14px;
  background: #ffffff;
}

.compound-panel {
  padding: 14px;
  margin-bottom: 14px;
  background: #ffffff;
}

.compound-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.compound-head p {
  max-width: 980px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 4px;
}

#compoundStatus {
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #bfd0ff;
  border-radius: 999px;
  background: #eaf1ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
}

.compound-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 190px 180px 132px;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.compound-grid label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.compound-grid input,
.compound-grid select {
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.compound-grid button,
#dossierSearchBtn {
  min-height: 40px;
  background: #12343b;
  color: #fff;
  border-color: #12343b;
  font-weight: 750;
}

.compound-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.compound-presets button {
  min-height: 34px;
  padding: 0 11px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 700;
}

.compare-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 108px;
  gap: 10px;
  align-items: end;
  margin-top: 8px;
}

.compare-inputs label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.compare-inputs input {
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.compare-inputs button {
  min-height: 40px;
  background: #12343b;
  color: #fff;
  border-color: #12343b;
  font-weight: 750;
}

.compare-output {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
  margin-top: 8px;
}

.search-form input {
  min-height: 46px;
  font-weight: 650;
  font-size: 16px;
}

.search-form button {
  min-height: 46px;
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  font-weight: 750;
}

.query-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.query-tools button,
.question-actions button {
  padding: 0 12px;
  background: var(--surface-2);
}

.question-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 250px;
}

.question-actions button.is-active {
  background: #12343b;
  color: #fff;
  border-color: #12343b;
  font-weight: 750;
}

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

.filter-panel,
.study-panel {
  position: sticky;
  top: 14px;
  overflow: hidden;
}

.panel-section {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-section:last-child {
  border-bottom: 0;
}

.panel-section h2 {
  margin-bottom: 12px;
}

.panel-section label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 10px;
}

.panel-section label input,
.panel-section label select {
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.metric-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-2);
}

.metric-grid span {
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.metric-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

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

.check-row {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin-bottom: 0 !important;
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin: 0 !important;
  accent-color: var(--teal);
}

.term-cloud,
.record-tags,
.link-row,
.ai-chip-row,
.model-stats,
.query-intent,
.dossier-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.source-pill {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 8px;
}

.source-pill strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.source-pill span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.term-chip,
.badge,
.link-pill,
.ai-chip,
.model-pill,
.lane-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  line-height: 1;
  border: 1px solid var(--line);
  background: #fff;
}

.term-chip {
  color: #0f4f4a;
  background: #e6f4f1;
  border-color: #b8dcd6;
}

.model-pill {
  color: #334155;
  background: #f8fafc;
}

.badge {
  color: #26323f;
  background: #f8fafc;
}

.badge.teal {
  color: #075e57;
  background: #e6f4f1;
  border-color: #b8dcd6;
}

.badge.blue {
  color: #1d4ed8;
  background: #eaf1ff;
  border-color: #bfd0ff;
}

.badge.gold {
  color: #845306;
  background: #fff7db;
  border-color: #ecd18a;
}

.badge.red {
  color: #9f1d14;
  background: #fff0ee;
  border-color: #f2b8b0;
}

.badge.violet {
  color: #5b21b6;
  background: #f2eafd;
  border-color: #d7c2f6;
}

.results-panel {
  min-width: 0;
  padding: 14px;
}

.results-toolbar,
.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

#statusText {
  margin-top: 4px;
  font-size: 13px;
}

#loadMoreBtn {
  min-width: 112px;
  padding: 0 12px;
  background: #12343b;
  color: #fff;
  border-color: #12343b;
  font-weight: 750;
}

.view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.view-tabs button {
  min-height: 34px;
  padding: 0 12px;
  background: #f8fafc;
  font-weight: 700;
}

.view-tabs button.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

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

.insight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  min-height: 88px;
}

.insight-card strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  margin: 8px 0 4px;
}

.insight-card span {
  display: block;
  font-size: 12px;
}

.map-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  margin-bottom: 14px;
}

.answer-card,
.matrix-card,
.dossier-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  margin-bottom: 14px;
}

.answer-header,
.matrix-header,
.dossier-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.dossier-header button {
  flex: 0 0 auto;
  min-width: 158px;
  padding: 0 12px;
}

.dossier-header button:disabled {
  background: #f8fafc;
  color: #9aa5af;
  border-color: var(--line);
}

.answer-output {
  border: 1px solid #e5eaee;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
  color: #26323f;
  font-size: 14px;
  line-height: 1.55;
}

.compound-dossier {
  display: grid;
  gap: 10px;
  color: #26323f;
  font-size: 14px;
  line-height: 1.5;
}

.dossier-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.dossier-summary div,
.dossier-block {
  border: 1px solid #e5eaee;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 11px;
}

.dossier-summary strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.dossier-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

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

.dossier-block h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.dossier-block p {
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.identity-table,
.assay-table {
  display: grid;
  gap: 6px;
}

.identity-row,
.assay-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px;
  border-top: 1px solid #e5eaee;
  padding-top: 7px;
  color: #334155;
  font-size: 12px;
}

.identity-row:first-child,
.assay-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.identity-row span:first-child,
.assay-row span:first-child {
  color: var(--muted);
  font-weight: 800;
}

.assay-row {
  grid-template-columns: 144px minmax(0, 1fr) 102px;
}

.endpoint-bars {
  display: grid;
  gap: 8px;
}

.endpoint-bar {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  color: #334155;
  font-size: 12px;
  font-weight: 750;
}

.endpoint-track {
  height: 8px;
  border-radius: 999px;
  background: #e5eaee;
  overflow: hidden;
}

.endpoint-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

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

.dossier-action-row button {
  min-height: 34px;
  padding: 0 11px;
  background: #f8fafc;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 750;
}

.answer-output h4 {
  margin: 0 0 6px;
  font-size: 14px;
}

.answer-output ol,
.answer-output ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.answer-output li {
  margin-bottom: 7px;
}

.evidence-matrix {
  display: grid;
  gap: 8px;
}

.matrix-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: start;
  border: 1px solid #e5eaee;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.matrix-title {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.matrix-detail {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 4px;
}

.matrix-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.lane-pill {
  justify-content: center;
  background: #eaf1ff;
  border-color: #bfd0ff;
  color: #1d4ed8;
  font-weight: 750;
}

.lane-pill.mechanism {
  color: #075e57;
  background: #e6f4f1;
  border-color: #b8dcd6;
}

.lane-pill.dose {
  color: #845306;
  background: #fff7db;
  border-color: #ecd18a;
}

.lane-pill.preclinical {
  color: #5b21b6;
  background: #f2eafd;
  border-color: #d7c2f6;
}

.lane-pill.assay {
  color: #0e7490;
  background: #e7f7fb;
  border-color: #a8dce8;
}

.map-card canvas {
  width: 100%;
  height: 260px;
  display: block;
  margin-top: 8px;
  border: 1px solid #e5eaee;
  border-radius: 8px;
  background: #fbfcfd;
}

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

.record-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.record-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.record-card:hover {
  border-color: #b8c6d3;
}

.record-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.record-title {
  display: block;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  min-height: 0;
  text-align: left;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.35;
}

.record-title:hover {
  color: var(--blue);
  box-shadow: none;
}

.record-score {
  flex: 0 0 auto;
  min-width: 72px;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  background: #eef3f2;
  border: 1px solid #cbdedb;
}

.record-score strong {
  display: block;
  font-size: 18px;
}

.record-score span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
}

.record-abstract {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.record-tags,
.link-row {
  margin-top: 10px;
}

.dose-snippet {
  border-left: 3px solid #a16207;
  background: #fffaf0;
  color: #563b06;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 10px;
}

.link-pill {
  text-decoration: none;
  color: #1d4ed8;
  background: #f8fafc;
}

.empty-state,
.ai-output {
  border: 1px dashed #cbd5df;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
  font-size: 14px;
  line-height: 1.45;
}

.selected-title {
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.selected-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.selected-abstract {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.22);
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(720px, 100vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 42px rgba(24, 33, 47, 0.18);
  transform: translateX(102%);
  transition: transform 180ms ease;
}

.detail-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.drawer-header span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 6px;
}

.drawer-header h2 {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.3;
}

.drawer-header button {
  flex: 0 0 auto;
  min-width: 74px;
  padding: 0 12px;
}

.drawer-content {
  overflow: auto;
  padding: 18px;
}

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

.drawer-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fbfcfd;
}

.drawer-stat strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.drawer-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.drawer-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  margin-bottom: 12px;
}

.drawer-section h3 {
  margin-bottom: 8px;
}

.drawer-section p {
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.drawer-section ol,
.drawer-section ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}

.drawer-section li {
  margin-bottom: 7px;
}

.related-list {
  display: grid;
  gap: 8px;
}

.related-item {
  border: 1px solid #e5eaee;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
}

.related-item button {
  border: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
  line-height: 1.35;
}

.related-item button:hover {
  color: var(--blue);
  box-shadow: none;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.tool-grid button {
  background: #f8fafc;
  font-weight: 700;
}

.ai-output {
  min-height: 160px;
  white-space: pre-line;
}

.ai-output h3 {
  margin: 0 0 8px;
}

.ai-output ul,
.ai-output ol {
  margin: 8px 0 0;
  padding-left: 18px;
}

.ai-output li {
  margin-bottom: 6px;
}

.app-footer {
  padding: 16px 2px 2px;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 1240px) {
  .workspace {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .study-panel {
    position: static;
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .app-shell {
    padding: 12px;
  }

  .app-header,
  .search-panel,
  .question-panel,
  .compare-panel,
  .compound-head {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .source-strip,
  .query-tools,
  .question-actions {
    justify-content: flex-start;
  }

  .question-actions {
    min-width: 0;
  }

  .compare-inputs {
    grid-template-columns: 1fr;
  }

  .compound-grid,
  .dossier-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-panel {
    position: static;
  }

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

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

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

  .matrix-meta {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .record-topline {
    display: block;
  }

  .record-score {
    display: inline-block;
    margin-top: 10px;
  }
}

@media (max-width: 560px) {
  .search-form {
    grid-template-columns: 1fr;
  }

  .year-row,
  .metric-grid,
  .tool-grid,
  .question-actions,
  .insight-grid,
  .source-stats,
  .dossier-summary,
  .assay-row,
  .endpoint-bar {
    grid-template-columns: 1fr;
  }
}
