:root {
  color-scheme: light;
  --bg: #f4f6f5;
  --panel: #ffffff;
  --panel-muted: #f8faf9;
  --ink: #172120;
  --muted: #5f6b68;
  --quiet: #69736d;
  --line: #d3dcd7;
  --line-soft: #e7ece9;
  --blue: #245f58;
  --blue-soft: #e6f1ee;
  --teal: #28736a;
  --teal-dark: #1f6f66;
  --teal-soft: #e6f1ee;
  --orange: #a96d28;
  --orange-soft: #fff3e4;
  --red: #a94448;
  --red-soft: #faeaeb;
  --accepted-ring: #a7d8d2;
  --shadow: 0 10px 26px rgba(20, 34, 31, 0.09);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:where(a, button, input, select):focus-visible {
  outline: 3px solid #2d766d;
  outline-offset: 2px;
}

.static-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  background: var(--panel);
}

[hidden] {
  display: none !important;
}

.app-header,
.catalog-load-progress,
.snapshot-band {
  flex-shrink: 0;
}

#catalogView {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.app-header {
  display: grid;
  grid-template-columns: minmax(220px, max-content) auto minmax(280px, 1fr) max-content;
  min-height: 64px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 0 24px;
}

.catalog-load-progress {
  --load-progress: 0;
  height: 3px;
  overflow: hidden;
  background: #e5ece8;
  opacity: 1;
  transition: opacity 180ms ease;
}

.catalog-load-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--load-progress));
  transform-origin: left center;
  background: var(--teal);
  transition: transform 160ms ease;
}

.catalog-load-progress.complete {
  opacity: 0;
}

.brand-lockup {
  display: flex;
  min-width: max-content;
  align-items: baseline;
  gap: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.brand-lockup strong {
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-lockup span {
  color: #3d4652;
  font-size: 12px;
}

.brand-lockup:hover strong {
  color: var(--teal-dark);
}

.top-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 10px;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #273241;
  cursor: pointer;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 520;
  text-decoration: none;
}

.nav-tab.active {
  border-bottom-color: var(--blue);
  color: #0f172a;
  font-weight: 600;
}

a.nav-tab:hover {
  text-decoration: none;
}

.global-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-self: end;
  width: min(460px, 100%);
  align-items: center;
  border: 1px solid #ccd8d2;
  border-radius: 6px;
  background: var(--panel);
  padding: 0 7px 0 10px;
}

.global-search input {
  width: 100%;
  min-height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.global-search kbd {
  min-width: 20px;
  border: 1px solid #cbd8d2;
  border-radius: 4px;
  background: #f6f8f7;
  color: var(--quiet);
  text-align: center;
  font: 12px/18px ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.header-actions {
  display: flex;
  min-width: max-content;
  align-items: center;
  gap: 12px;
}

.download-menu {
  position: relative;
}

.download-menu summary {
  gap: 8px;
  border-color: rgba(40, 107, 98, 0.34);
  color: var(--blue);
  list-style: none;
  user-select: none;
}

.download-menu summary::-webkit-details-marker {
  display: none;
}

.download-menu[open] summary {
  border-color: #8aa89f;
  background: var(--blue-soft);
}

.download-options {
  position: absolute;
  z-index: 90;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: 330px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 6px;
}

.download-options a {
  display: grid;
  gap: 2px;
  border-radius: 4px;
  color: var(--ink);
  padding: 9px 10px;
  text-decoration: none;
}

.download-options a:hover,
.download-options a:focus-visible {
  background: var(--blue-soft);
  outline: 0;
  text-decoration: none;
}

.download-options strong {
  font-size: 12px;
  font-weight: 650;
}

.download-options span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.download-options .corpus-request-link {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 4px 4px;
  padding-top: 11px;
}

.search-suggestions {
  position: fixed;
  z-index: 85;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
  max-height: min(320px, calc(100vh - 80px));
  overflow: auto;
  padding: 8px;
}

.suggestion-title {
  color: var(--muted);
  padding: 2px 4px 4px;
  font-size: 11px;
  font-weight: 600;
}

.search-suggestions button {
  min-height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #172120;
  cursor: pointer;
  padding: 5px 7px;
  text-align: left;
  font-size: 12px;
}

.search-suggestions button:hover,
.search-suggestions button:focus,
.search-suggestions button[aria-selected="true"] {
  background: #eef7f5;
  outline: 0;
}

.button,
.text-button,
.icon-button {
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0;
}

.button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #1f2937;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.button.secondary:hover:not(:disabled) {
  border-color: #a9bbb4;
  background: var(--blue-soft);
  text-decoration: none;
}

.text-button,
.icon-button {
  border: 0;
  background: transparent;
  color: #273241;
  font-size: 13px;
}

.text-button {
  color: #0b64c0;
  padding: 0;
}

.icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #354151;
  font-size: 20px;
}

.icon-button:hover:not(:disabled),
.text-button:hover:not(:disabled) {
  background: #f0f5f3;
}

.text-button:hover:not(:disabled) {
  background: transparent;
  color: #074f99;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.snapshot-band {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 14px 24px;
}

.snapshot-overview {
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(440px, 1fr) max-content;
  align-items: center;
  gap: 24px;
}

.snapshot-overview .summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: auto;
  padding: 0;
}

.snapshot-overview .summary-card {
  grid-column: auto;
  gap: 3px;
  border-top: 0;
  border-left: 1px solid var(--line);
  padding: 0 20px;
}

.snapshot-overview .summary-card:first-child {
  border-left: 0;
  padding-left: 0;
}

.snapshot-overview .summary-card span,
.snapshot-overview .snapshot-line > span {
  font-size: 12px;
  line-height: 1.3;
}

.snapshot-overview .summary-card strong,
.snapshot-overview .snapshot-line strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.snapshot-overview .snapshot-meta {
  display: grid;
  grid-column: auto;
  grid-template-columns: max-content repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 20px;
  border-top: 0;
  border-left: 1px solid var(--line);
  padding: 0 0 0 24px;
}

.snapshot-overview .snapshot-title {
  grid-column: auto;
  grid-row: auto;
  margin: 0;
  font-size: 12px;
}

.snapshot-overview .snapshot-line {
  grid-template-columns: 1fr;
  grid-row: auto;
  gap: 3px;
}

.snapshot-overview .snapshot-line strong {
  min-width: 0;
  text-align: left;
}

.snapshot-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.snapshot-controls .snapshot-date {
  margin: 0;
  font-size: 12px !important;
}

.counts-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: var(--blue);
  white-space: nowrap;
}

.counts-toggle[aria-expanded="true"] > span {
  transform: rotate(180deg);
}

.snapshot-breakdown {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  gap: 24px;
  max-height: 38vh;
  overflow: auto;
  border-top: 1px solid var(--line-soft);
  margin-top: 14px;
  padding-top: 16px;
}

.snapshot-breakdown .summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: auto;
  align-content: start;
  padding: 0;
}

.snapshot-breakdown .summary-card {
  grid-column: auto;
  border-top: 0;
  padding: 0 14px;
}

.snapshot-breakdown .summary-card strong {
  font-size: 18px;
}

.snapshot-breakdown .evidence-summary {
  grid-column: auto;
  border-top: 0;
  padding-top: 0;
}

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

.summary-card {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 0 15px;
}

.summary-card:first-child {
  border-left: 0;
  padding-left: 0;
}

.summary-card span {
  color: #596675;
  font-size: 12px;
  line-height: 1.25;
}

.summary-card strong {
  color: #050b14;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.12;
}

.evidence-summary,
.snapshot-meta {
  border-left: 1px solid var(--line);
}

.evidence-summary {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 0 18px;
}

.evidence-summary-title {
  color: #596675;
  font-size: 12px;
}

.evidence-segment-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.evidence-segment {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 3px;
  align-items: start;
  color: #1e2937;
  font-size: 12px;
  min-width: 0;
}

.evidence-stat {
  display: flex;
  grid-column: 2;
  align-items: baseline;
  gap: 7px;
}

.evidence-stat strong {
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.evidence-stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.summary-distribution {
  display: flex;
  width: 100%;
  height: 4px;
  gap: 2px;
  overflow: hidden;
  background: var(--line-soft);
}

.summary-distribution span {
  min-width: 0;
}

.review-distribution .accepted {
  background: var(--teal);
}

.review-distribution .review {
  background: var(--orange);
}

.review-distribution .unresolved {
  background: #7d8783;
}

.evidence-axis {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
}

.evidence-axis-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  color: #44504d;
  font-size: 11px;
}

.evidence-axis-items span {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
  cursor: help;
}

.evidence-axis-items span:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.evidence-axis-items i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.evidence-axis-items strong {
  color: #27312f;
  font-weight: 600;
}

.evidence-axis-items .paper,
.evidence-distribution .paper {
  background: var(--teal);
}

.evidence-axis-items .linked,
.evidence-distribution .linked {
  background: #647d8a;
}

.evidence-axis-items .note,
.evidence-distribution .note {
  background: #8a5a14;
}

.evidence-axis-items .source,
.evidence-distribution .source {
  background: #7d8783;
}

.evidence-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--quiet);
}

.evidence-dot.accepted {
  background: var(--teal);
}

.check-row.accepted input {
  accent-color: var(--teal);
}

.evidence-dot.review {
  background: var(--orange);
}

.check-row.review input {
  accent-color: var(--orange);
}

.evidence-dot.unresolved {
  background: #7d8783;
}

.state-badge small {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1;
}

.state-badge-copy {
  display: grid;
  text-align: left;
}

.check-row.unresolved input {
  accent-color: #6f7b76;
}

.snapshot-meta {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding-left: 18px;
}

.snapshot-meta > * {
  min-width: 0;
}

.snapshot-meta span {
  color: #596675;
  font-size: 12px;
  line-height: 1.2;
}

.snapshot-meta strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.12;
}

.snapshot-title {
  margin-bottom: 1px;
}

.snapshot-date {
  margin-top: 3px;
  color: var(--quiet) !important;
  font-size: 10.5px !important;
}

.snapshot-date code {
  color: #596675;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
}

.snapshot-line {
  display: grid;
  grid-template-columns: minmax(62px, max-content) minmax(0, 1fr);
  gap: 7px;
  align-items: baseline;
  line-height: 1.05;
}

.snapshot-line strong {
  min-width: 62px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.snapshot-line span {
  line-height: 1.05;
  white-space: nowrap;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  flex: 1;
  min-height: 340px;
}

body.detail-open .workbench {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 29%);
}

.filter-rail,
.table-panel,
.detail-panel {
  background: var(--panel);
}

.filter-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: min(320px, calc(100vw - 36px));
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 12px 0 30px rgba(20, 34, 31, 0.12);
  padding: 16px 16px 28px;
  transform: translateX(calc(-100% - 18px));
  visibility: hidden;
  pointer-events: none;
  transition: transform 160ms ease, visibility 160ms ease;
}

.rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.rail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-toggle {
  display: inline-flex;
  gap: 7px;
  width: max-content;
}

.close-filters {
  display: inline-grid;
}

.filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 75;
  border: 0;
  background: rgba(20, 34, 31, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

body.filters-open .filter-rail {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

body.filters-open .filter-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.filter-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 9px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  padding: 0 5px;
  font-size: 10.5px;
  font-weight: 650;
}

.rail-heading strong {
  font-size: 15px;
}

.filter-section input,
.records-tools select,
.pagination select {
  width: 100%;
}

.filter-section input,
.records-tools select,
.pagination select {
  min-height: 34px;
  border: 1px solid #d0d7df;
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  padding: 6px 9px;
  font-size: 12.5px;
}

.filter-section input:focus-visible,
.records-tools select:focus-visible,
.pagination select:focus-visible {
  outline: 3px solid var(--teal-dark);
  border-color: #7db4ab;
}

.filter-section {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line-soft);
  padding: 12px 0;
}

.filter-section-title {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: #1f2937;
  padding: 0;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.filter-section-title span {
  color: #4b5563;
}

.filter-section:not(.open) .check-stack,
.filter-section:not(.open) input {
  display: none;
}

.check-stack {
  display: grid;
  gap: 9px;
}

.check-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #2d3744;
  font-size: 12.5px;
}

.check-row input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.check-row strong {
  color: #657182;
  font-size: 11px;
  font-weight: 500;
}

.status-guide {
  border-top: 1px solid var(--line-soft);
  margin-top: 4px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.status-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--blue);
  cursor: pointer;
  font-weight: 550;
  list-style: none;
}

.status-guide summary::-webkit-details-marker {
  display: none;
}

.status-guide summary::after {
  content: "+";
  color: var(--quiet);
  font-size: 14px;
}

.status-guide[open] summary::after {
  content: "-";
}

.status-guide-body {
  display: grid;
  gap: 6px;
  padding-top: 8px;
}

.status-guide-body p {
  margin: 0;
}

.status-guide-body strong {
  color: #273b36;
  font-weight: 600;
}

.review-profile {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line-soft);
  margin-top: 3px;
  padding-top: 8px;
}

.review-profile > span {
  color: #46524f;
  font-weight: 600;
}

.review-profile p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.review-profile p strong {
  color: #5f6b68;
  font-variant-numeric: tabular-nums;
}

.table-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.records-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, auto);
  min-height: 60px;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 10px 16px;
}

.records-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.records-title strong {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}

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

.records-tools {
  display: grid;
  grid-template-columns: auto auto 180px;
  align-items: center;
  gap: 8px;
  color: #273241;
  font-size: 12px;
}

.records-tools .button {
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--panel);
}

.table-scroll-controls {
  display: none;
}

table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
  table-layout: fixed;
}

.col-enzyme {
  width: 18%;
}

.col-ec {
  width: 9%;
}

.col-organism {
  width: 12%;
}

.col-substrate {
  width: 15%;
}

.col-kcat {
  width: 8%;
}

.col-km {
  width: 8%;
}

.col-efficiency {
  width: 9%;
}

.col-temp {
  width: 6%;
}

.col-ph {
  width: 5%;
}

.col-state {
  width: 8%;
}

.col-open {
  width: 2%;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  border-right: 0;
  padding: 10px 11px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
  overflow-wrap: break-word;
  word-break: normal;
}

th:nth-child(4),
td:nth-child(4),
th:nth-child(9),
td:nth-child(9) {
  border-right: 1px solid var(--line);
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 48px;
  background: var(--panel-muted);
  color: #182235;
  font-size: 12.25px;
  font-weight: 600;
  line-height: 1.24;
  white-space: normal;
}

.header-unit {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

th:nth-child(n+5):nth-child(-n+9),
td:nth-child(n+5):nth-child(-n+9) {
  text-align: right;
}

td:nth-child(n+5):nth-child(-n+9) {
  white-space: nowrap;
}

td:nth-child(2) {
  white-space: nowrap;
}

th:nth-child(10),
td:nth-child(10),
th:nth-child(11),
td:nth-child(11) {
  text-align: center;
}

th:nth-child(10),
td:nth-child(10) {
  padding-left: 7px;
  padding-right: 7px;
}

tbody tr {
  height: 56px;
  cursor: pointer;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

tbody tr:nth-child(even) {
  background: #fbfcfb;
}

tbody tr:hover,
tbody tr:focus-visible,
tbody tr.selected {
  background: #f3faf8;
}

tbody tr:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--teal);
  outline-offset: -2px;
}

tbody tr.selected {
  background: #edf7f4;
  box-shadow: inset 3px 0 0 var(--teal);
}

tbody tr.selected .row-arrow {
  color: var(--teal-dark);
}

.primary-cell {
  min-width: 0;
}

.primary-cell strong {
  display: block;
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.32;
  overflow-wrap: break-word;
}

.primary-cell .primary-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 2px;
}

.primary-cell .name-source {
  color: #2f3b49;
  font-size: 11.5px;
}

.primary-cell .enzyme-form {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid #c6ddd7;
  border-radius: 4px;
  background: #edf6f3;
  padding: 1px 5px;
  color: #235e57;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.organism-cell {
  min-width: 0;
}

.substrate-cell {
  min-width: 0;
}

.metric-cell {
  min-width: 0;
  white-space: nowrap;
}

.metric-cell strong {
  color: #182235;
  font-weight: 400;
}

.metric-with-note,
.source-efficiency-value {
  white-space: nowrap;
  display: grid;
  gap: 2px;
}

.metric-origin,
.source-efficiency-value small {
  color: #6a756f;
  font-size: 9px;
  font-style: normal;
  font-weight: 550;
  line-height: 1.2;
  text-transform: none;
}

.metric-inline-unit {
  display: inline;
  margin-left: 4px;
  color: #6a756f;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
}

.scientific-number {
  display: inline-block;
  white-space: nowrap;
}

.scientific-number sup {
  position: relative;
  top: -0.12em;
  font-size: 0.72em;
  line-height: 0;
}

.loading-row {
  height: 180px;
  cursor: default;
}

.loading-row:hover {
  background: var(--panel);
}

.loading-row td {
  border-right: 0;
  text-align: center !important;
}

.loading-indicator {
  color: var(--muted);
  font-size: 12.5px;
}

.state-badge {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 580;
  line-height: 1.15;
  white-space: nowrap;
}

.state-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
}

.state-badge.accepted {
  color: var(--teal-dark);
}

.state-badge.review {
  color: #9a6100;
}

.state-badge.unresolved {
  color: #5f6b68;
}

.state-badge.disputed {
  color: #c2141a;
}

.row-arrow {
  width: 100%;
  color: #374151;
  font-size: 23px;
  text-align: center;
}

.pagination {
  display: flex;
  min-height: 58px;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: #fbfcfb;
  padding: 10px 16px;
  color: #273241;
  font-size: 12px;
}

.pagination select {
  width: 58px;
}

#pageLabel {
  min-width: 116px;
  text-align: center;
}

.detail-panel {
  display: none;
  position: relative;
  grid-column: 2;
  min-height: 0;
  max-height: 100%;
  border-left: 1px solid var(--line);
  overflow: auto;
  overscroll-behavior: contain;
}

body.detail-open .detail-panel {
  display: block;
}

.detail-empty,
#detailContent {
  padding: 16px 18px 20px;
}

.detail-empty {
  color: var(--muted);
  font-size: 13px;
}

.detail-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  margin: -16px -18px 0;
  padding: 16px 56px 14px 18px;
}

.detail-top h2 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.detail-top p {
  margin: 0;
  color: #344051;
  font-size: 13px;
}

.close-detail {
  position: absolute;
  top: 10px;
  right: 12px;
}

.detail-status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.evidence-source {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.detail-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.detail-section h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}

.review-outcome-section p {
  margin: 0;
  color: #34434f;
  font-size: 12.5px;
  line-height: 1.5;
}

.detail-kv {
  display: grid;
  gap: 6px;
}

.kv-line {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 12px;
}

.kv-line span {
  color: #596675;
}

.kv-line strong {
  min-width: 0;
  color: #162033;
  font-weight: 520;
  overflow-wrap: anywhere;
}

.reference-link {
  text-decoration-line: underline;
  text-decoration-color: rgba(36, 95, 88, 0.34);
  text-underline-offset: 2px;
}

.reference-link::after {
  content: "\2197";
  display: inline-block;
  margin-left: 4px;
  color: var(--quiet);
  font-size: 0.8em;
  text-decoration: none;
}

.evidence-note-list {
  display: grid;
  gap: 12px;
}

.evidence-note-item,
.evidence-note-plain {
  border-left: 2px solid var(--line);
  padding-left: 10px;
  color: #283445;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.evidence-note-item {
  display: grid;
  gap: 6px;
}

.evidence-note-plain {
  margin: 0;
}

.evidence-note-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.evidence-note-line span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 550;
}

.evidence-note-line p {
  margin: 0;
}

.measurement-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.measurement-strip.has-ki {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.measurement-value {
  display: grid;
  min-width: 0;
  gap: 4px;
  border-left: 1px solid var(--line);
  padding: 10px 8px;
}

.measurement-value:first-child {
  border-left: 0;
  padding-left: 0;
}

.measurement-value span {
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.measurement-value small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
}

.measurement-value strong {
  color: #10201e;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.measurement-conditions {
  margin-top: 12px;
}

.identity-section {
  display: grid;
  gap: 10px;
}

.copy-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.copy-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.copy-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  padding: 2px 0;
  font-size: 11px;
  font-weight: 600;
}

.copy-button:hover {
  text-decoration: underline;
}

.copy-field code {
  display: block;
  max-height: 92px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--panel-muted);
  color: #24312f;
  padding: 9px 10px;
  font: 11px/1.5 "SF Mono", "JetBrains Mono", Menlo, Monaco, monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.sequence-disclosure {
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}

.sequence-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  color: #172120;
  font-size: 12px;
  font-weight: 500;
}

.sequence-disclosure summary span {
  color: var(--muted);
  font-weight: 500;
}

.sequence-field {
  margin-top: 9px;
}

.sequence-disclosure > .copy-field {
  margin-top: 9px;
}

.sequence-disclosure > summary::before {
  content: "+";
  margin-right: 8px;
  color: var(--quiet);
}

.sequence-disclosure[open] > summary::before {
  content: "-";
}

.sequence-disclosure > summary > span {
  margin-left: auto;
}

.review-notes p,
.review-notes h3 {
  font-size: 12.5px;
  margin: 0 0 12px;
}

.review-notes .evidence-note-list {
  padding-bottom: 14px;
}

#downloadSelectedJson {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #ffffff;
  min-height: 38px;
}

#downloadSelectedJson:hover {
  background: #195c55;
}

.reference-list {
  display: grid;
  gap: 3px;
}

.detail-disclosure {
  border-bottom: 1px solid var(--line-soft);
}

.detail-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 14px 0;
  color: #111827;
  font-size: 12.5px;
  font-weight: 600;
  list-style: none;
}

.detail-disclosure summary::-webkit-details-marker {
  display: none;
}

.detail-disclosure summary::after {
  content: "+";
  color: var(--quiet);
  font-size: 15px;
}

.detail-disclosure[open] summary::after {
  content: "-";
}

.detail-disclosure .detail-kv {
  padding-bottom: 14px;
}

.detail-load-error {
  display: grid;
  gap: 5px;
  margin: 16px 18px;
  border-left: 3px solid var(--orange);
  background: var(--orange-soft);
  padding: 12px 14px;
  color: #4f3a21;
  font-size: 12.5px;
}

.detail-load-error strong {
  color: #3f2c16;
  font-weight: 600;
}

.detail-load-error .button {
  width: max-content;
  margin-top: 6px;
  border-color: #d3b17c;
}

.detail-load-progress {
  display: grid;
  gap: 4px;
  margin: 18px;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
  padding: 13px 14px;
  color: #29423e;
  font-size: 12.5px;
}

.detail-load-progress strong {
  color: #183a35;
  font-weight: 650;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin: 18px -18px -20px;
  background: #fbfcfb;
  padding: 16px 18px;
}

.guide-view {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.guide-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 44px 32px 56px;
}

.guide-heading {
  max-width: 760px;
}

.guide-heading h1 {
  margin: 0;
  color: #0f172a;
  font-size: 32px;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.15;
}

.guide-heading > p:last-child {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.guide-workflow {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: start;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.guide-figure {
  min-width: 0;
  max-width: 780px;
  margin: 0 auto;
}

.guide-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 720 / 392;
  object-fit: contain;
}

.guide-step-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-self: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-content: center;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 15px 0;
}

.guide-step:first-child {
  border-top: 0;
}

.guide-step > span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-dark);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.guide-step h2,
.guide-reference h2,
.guide-downloads h2 {
  color: #152321;
  letter-spacing: 0;
}

.guide-step h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 650;
}

.guide-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.guide-step .guide-field-line {
  margin-top: 5px;
  color: #314a45;
  font-size: 11.5px;
  font-weight: 600;
}

.guide-record-depth {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0 36px;
}

.guide-record-depth-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 48px;
  align-items: start;
}

.guide-record-depth-heading h2 {
  margin: 0;
  color: #152321;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0;
}

.guide-record-depth-heading p {
  max-width: 700px;
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.guide-record-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 28px 0 0;
}

.guide-record-example figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 24px;
  min-width: 0;
}

.guide-record-example figcaption > span {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 650;
}

.guide-record-example figcaption > strong {
  display: block;
  color: #152321;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

.guide-record-example figcaption > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.guide-record-example figcaption > .guide-example-source {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  justify-content: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 0;
  color: var(--muted);
  font-size: 11.5px;
}

.guide-example-source a {
  font-weight: 600;
}

.guide-example-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.guide-example-level {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
  height: 100%;
  border: 1px solid var(--line);
  border-top-width: 3px;
  border-radius: 6px;
  padding: 18px 20px 20px;
}

.guide-example-level.public {
  border-top-color: var(--teal);
  background: #f5faf8;
}

.guide-example-level.research {
  border-top-color: var(--orange);
  background: #fffbf5;
}

.guide-example-level header > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.guide-example-level header > h3 {
  margin: 3px 0 16px;
  color: #152321;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0;
}

.guide-example-value {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 14px;
}

.guide-example-value strong {
  color: #12201e;
  font-size: 22px;
  font-weight: 650;
}

.guide-example-value span {
  color: var(--muted);
  font-size: 11.5px;
}

.guide-example-level dl {
  display: grid;
  align-content: start;
  gap: 0;
  margin: 10px 0 0;
}

.guide-example-level dl > div {
  display: grid;
  grid-template-columns: minmax(82px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  padding: 7px 0;
}

.guide-example-level dl > div:last-child {
  border-bottom: 0;
}

.guide-example-level dt,
.guide-example-level dd {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
}

.guide-example-level dt {
  color: var(--muted);
}

.guide-example-level dd {
  color: #253330;
  font-weight: 600;
}

.guide-example-plus {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--quiet);
  font-size: 19px;
  text-align: center;
}

.guide-choice-link {
  grid-row: 4;
  align-self: end;
  justify-self: start;
  min-height: 34px;
  margin-top: 14px;
  background: var(--panel);
  white-space: nowrap;
}

.guide-reference-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  border-bottom: 1px solid var(--line);
}

.guide-reference {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 30px 36px 32px;
}

.guide-reference:first-child {
  border-left: 0;
  padding-left: 0;
}

.guide-reference:last-child {
  padding-right: 0;
}

.guide-reference h2 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 650;
}

.guide-reference dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.guide-reference dl > div {
  display: grid;
  gap: 3px;
}

.guide-reference dt {
  color: #253330;
  font-size: 12px;
  font-weight: 650;
}

.guide-reference dd,
.guide-note {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.guide-note {
  margin-top: 16px;
}

.guide-downloads {
  border-bottom: 1px solid var(--line);
  padding: 30px 0 34px;
}

.guide-downloads-heading {
  display: block;
}

.guide-downloads h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

.guide-download-list {
  margin: 22px 0 0;
  border-top: 1px solid var(--line-soft);
}

.guide-download-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 0;
}

.guide-download-list > div:last-child {
  border-bottom: 0;
}

.guide-download-list dt {
  color: #253330;
  font-size: 12.5px;
  font-weight: 650;
}

.guide-download-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.guide-download-list dd > span {
  color: #314a45;
  font-weight: 650;
}

.guide-citation {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(360px, 1fr) max-content;
  gap: 28px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 30px 0 34px;
}

.guide-citation h2 {
  margin: 0;
  color: #152321;
  font-size: 18px;
  font-weight: 650;
}

.guide-citation p {
  max-width: 440px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.guide-citation-meta {
  display: grid;
  gap: 7px;
  margin: 0;
}

.guide-citation-meta > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
}

.guide-citation-meta dt,
.guide-citation-meta dd {
  margin: 0;
  font-size: 12.5px;
}

.guide-citation-meta dt {
  color: var(--muted);
}

.guide-citation-meta dd {
  color: #253330;
  font-weight: 600;
}

.guide-citation-meta code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11.5px;
}

.guide-citation-links {
  display: grid;
  gap: 8px;
  justify-items: start;
  font-size: 12.5px;
  font-weight: 600;
}

.guide-status-list dt {
  display: flex;
  align-items: center;
  gap: 7px;
}

.guide-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--quiet);
}

.guide-status-dot.accepted {
  background: var(--teal);
}

.guide-status-dot.review {
  background: var(--orange);
}

.guide-status-dot.provisional {
  background: #7d8783;
}

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

.hidden {
  display: none !important;
}

@media (min-width: 1181px) {
  .table-panel {
    border-right: 0;
  }

  body.detail-open .table-panel {
    border-right: 1px solid var(--line);
  }

  body.detail-open table {
    min-width: 760px;
  }

  body.detail-open .col-enzyme {
    width: 22%;
  }

  body.detail-open .col-ec {
    width: 9%;
  }

  body.detail-open .col-organism {
    width: 14%;
  }

  body.detail-open .col-substrate {
    width: 17%;
  }

  body.detail-open .col-kcat {
    width: 8%;
  }

  body.detail-open .col-km {
    width: 8%;
  }

  body.detail-open .col-efficiency {
    width: 9%;
  }

  body.detail-open .col-temp {
    width: 7%;
  }

  body.detail-open .col-ph {
    width: 6%;
  }

  body.detail-open .col-state,
  body.detail-open .col-open {
    width: 0;
  }

  body.detail-open th:nth-child(10),
  body.detail-open td:nth-child(10),
  body.detail-open th:nth-child(11),
  body.detail-open td:nth-child(11) {
    display: none;
  }

  .detail-empty {
    display: none;
  }
}

@media (max-width: 1400px) {
  .snapshot-overview {
    grid-template-columns: minmax(210px, 0.6fr) minmax(380px, 1fr) max-content;
    gap: 18px;
  }

  .snapshot-overview .snapshot-meta {
    gap: 16px;
    padding-left: 18px;
  }

  .snapshot-controls {
    display: grid;
    gap: 0;
    padding-left: 18px;
  }
}

@media (max-width: 1180px) {
  .snapshot-overview {
    grid-template-columns: minmax(200px, 0.5fr) minmax(360px, 1fr);
    gap: 10px 24px;
  }

  .snapshot-controls {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    border: 0;
    padding: 0;
  }

  .snapshot-breakdown {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .snapshot-breakdown .evidence-summary {
    border-left: 0;
    padding-left: 0;
  }

  .app-header {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    grid-template-areas:
      "brand nav actions"
      "search search search";
    column-gap: 18px;
    row-gap: 10px;
    padding: 10px 16px;
  }

  .brand-lockup {
    grid-area: brand;
  }

  .top-nav {
    grid-area: nav;
    justify-self: start;
  }

  .global-search {
    grid-area: search;
    justify-self: stretch;
    width: 100%;
  }

  .header-actions {
    grid-area: actions;
  }

  .workbench,
  body.detail-open .workbench {
    grid-template-columns: 1fr;
  }

  .snapshot-band {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
    gap: 0;
  }

  .summary-grid {
    grid-column: 1 / -1;
    padding-bottom: 16px;
  }

  .evidence-summary {
    grid-column: 1;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
  }

  .snapshot-meta {
    grid-column: 2;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    padding: 16px 0 0 18px;
  }

  .filter-rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: min(320px, calc(100vw - 36px));
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: auto;
    border-right: 1px solid var(--line);
    box-shadow: 18px 0 36px rgba(15, 23, 42, 0.14);
    padding: 16px 14px 28px;
    transform: translateX(calc(-100% - 18px));
    visibility: hidden;
    pointer-events: none;
    transition: transform 160ms ease, visibility 160ms ease;
  }

  .table-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .filter-toggle {
    display: inline-flex;
    gap: 7px;
    width: max-content;
  }

  .close-filters {
    display: inline-grid;
  }

  .filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 75;
    border: 0;
    background: rgba(15, 23, 42, 0.28);
    cursor: default;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 160ms ease;
  }

  body.filters-open,
  body.detail-open {
    overflow: hidden;
  }

  body.filters-open .filter-rail {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  body.filters-open .filter-backdrop {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .detail-panel {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 70;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: 100vh;
    max-height: 100dvh;
    width: min(440px, 100vw);
    overflow: auto;
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 36px rgba(15, 23, 42, 0.16);
    transform: translateX(calc(100% + 18px));
    visibility: hidden;
    pointer-events: none;
    transition: transform 160ms ease, visibility 160ms ease;
  }

  body.detail-open .detail-panel {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .detail-empty {
    display: none;
  }

  .guide-record-depth-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .guide-citation-links {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .table-scroll-controls {
    display: flex;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    padding: 2px;
  }

  .table-scroll-controls > span {
    align-self: center;
    padding: 0 4px 0 6px;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
  }

  .table-scroll-controls .icon-button {
    width: 28px;
    height: 28px;
    min-height: 28px;
    font-size: 18px;
  }

  .table-wrap {
    overscroll-behavior-x: contain;
  }

  .table-wrap.can-scroll-right {
    box-shadow: inset -12px 0 10px -12px rgba(23, 33, 32, 0.62);
  }

  .table-wrap.can-scroll-left {
    box-shadow: inset 12px 0 10px -12px rgba(23, 33, 32, 0.45);
  }

  .table-wrap.can-scroll-left.can-scroll-right {
    box-shadow:
      inset 12px 0 10px -12px rgba(23, 33, 32, 0.45),
      inset -12px 0 10px -12px rgba(23, 33, 32, 0.62);
  }

  table {
    min-width: 980px;
  }

  .col-enzyme { width: 170px; }
  .col-ec { width: 80px; }
  .col-organism { width: 120px; }
  .col-substrate { width: 145px; }
  .col-kcat { width: 80px; }
  .col-km { width: 80px; }
  .col-efficiency { width: 90px; }
  .col-temp { width: 60px; }
  .col-ph { width: 50px; }
  .col-state { width: 100px; }
  .col-open { width: 23px; }

  th:first-child,
  td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--panel);
    box-shadow: 1px 0 0 var(--line), 8px 0 12px rgba(20, 34, 31, 0.05);
  }

  th:first-child {
    z-index: 3;
    background: var(--panel-muted);
  }

  tbody tr:nth-child(even) td:first-child {
    background: #fbfcfb;
  }

  tbody tr:hover td:first-child,
  tbody tr:focus-visible td:first-child {
    background: #f3faf8;
  }

  tbody tr.selected td:first-child {
    background: #edf7f4;
  }
}

@media (max-width: 1100px) {
  .guide-workflow {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 26px;
    padding: 18px 0 0;
  }

  .guide-figure {
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
  }

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

  .guide-step,
  .guide-step:first-child,
  .guide-step:last-child {
    border-top: 1px solid var(--line);
    padding: 18px;
  }

  .guide-step:nth-child(-n + 2) {
    border-top: 0;
  }

  .guide-step:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .guide-step:nth-child(even) {
    border-left: 1px solid var(--line);
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .snapshot-overview {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .snapshot-overview .snapshot-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 16px;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding: 8px 0 0;
  }

  .snapshot-overview .snapshot-title {
    grid-column: 1 / -1;
  }

  .snapshot-overview .summary-card strong,
  .snapshot-overview .snapshot-line strong {
    font-size: 18px;
  }

  .guide-figure {
    display: none;
  }

  .app-header {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas:
      "brand actions"
      "nav nav"
      "search search";
    column-gap: 12px;
    row-gap: 8px;
  }

  .brand-lockup {
    flex-wrap: wrap;
    min-width: 0;
  }

  .header-actions,
  .top-nav {
    flex-wrap: wrap;
  }

  .download-options {
    width: min(330px, calc(100vw - 32px));
  }

  .snapshot-band {
    padding: 16px;
  }

  .detail-panel {
    width: 100vw;
    border-left: 0;
  }

  .records-header,
  .records-title,
  .records-tools,
  .detail-actions {
    grid-template-columns: 1fr;
  }

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

  .summary-card {
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    padding: 12px;
  }

  .summary-card:nth-child(odd) {
    border-left: 0;
  }

  .summary-card:nth-child(-n + 2) {
    border-top: 0;
  }

  .summary-card:first-child {
    padding-left: 12px;
  }

  .summary-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .records-title {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
  }

  .records-title > span {
    grid-column: 2;
    grid-row: 1;
  }

  .pagination {
    display: grid;
    grid-template-columns: max-content 58px minmax(0, 1fr) 28px 28px;
    gap: 6px;
    padding: 8px 12px;
  }

  .pagination-label-detail {
    display: none;
  }

  .pagination .icon-button {
    width: 28px;
  }

  #pageLabel {
    min-width: 0;
    font-size: 11px;
  }

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

  .guide-shell {
    padding: 30px 18px 42px;
  }

  .guide-heading h1 {
    font-size: 28px;
  }

  .guide-record-depth {
    margin-top: 28px;
    padding: 26px 0 30px;
  }

  .guide-record-example figcaption {
    grid-template-columns: 1fr;
  }

  .guide-record-example figcaption > .guide-example-source {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    margin-top: 8px;
  }

  .guide-example-compare {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guide-example-level {
    height: auto;
  }

  .guide-example-plus {
    margin: -2px 0;
  }

  .guide-reference-grid {
    grid-template-columns: 1fr;
  }

  .guide-reference,
  .guide-reference:first-child,
  .guide-reference:last-child {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 24px 0;
  }

  .guide-reference:first-child {
    border-top: 0;
  }

  .guide-download-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 14px 0;
  }

  .table-scroll-controls {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    padding: 2px;
  }

  .table-scroll-controls > span {
    display: none;
    align-self: center;
    padding: 0 4px 0 6px;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
  }

  .table-scroll-controls .icon-button {
    width: 28px;
    height: 28px;
    min-height: 28px;
    font-size: 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .catalog-load-progress,
  .catalog-load-progress > span,
  .detail-panel,
  .filter-rail,
  .filter-backdrop {
    transition: none;
  }
}

@media (max-width: 640px) {
  .snapshot-band {
    grid-template-columns: 1fr;
    padding: 9px 14px 10px;
  }

  .summary-grid,
  .evidence-summary,
  .snapshot-meta {
    grid-column: 1;
  }

  .snapshot-meta {
    border-left: 0;
    padding-left: 0;
  }

  .summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: 8px;
  }

  .summary-card,
  .summary-card:nth-child(-n + 2) {
    gap: 3px;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 4px 8px;
  }

  .summary-card:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .summary-card:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .summary-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .summary-card span {
    font-size: 10px;
  }

  .summary-card strong {
    font-size: 17px;
  }

  .evidence-summary {
    gap: 5px;
    padding-top: 8px;
  }

  .evidence-segment-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .evidence-axis-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    font-size: 10px;
  }

  .evidence-segment {
    grid-template-columns: 10px minmax(0, 1fr);
    column-gap: 5px;
    font-size: 11px;
  }

  .evidence-dot {
    width: 7px;
    height: 7px;
    margin-top: 4px;
  }

  .evidence-stat {
    gap: 5px;
  }

  .evidence-stat strong {
    font-size: 12.5px;
  }

  .evidence-stat span {
    font-size: 10px;
  }

  .snapshot-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px 10px;
    padding-top: 8px;
  }

  .snapshot-title {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .snapshot-date {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: left;
    white-space: normal;
  }

  .snapshot-line {
    grid-template-columns: 1fr;
    grid-row: 2;
    gap: 1px;
  }

  .snapshot-line strong {
    min-width: 0;
    text-align: left;
    font-size: 15px;
  }

  .snapshot-line span {
    font-size: 10.5px;
  }

  .records-tools {
    grid-template-columns: max-content max-content minmax(0, 1fr);
  }
}

@media (max-width: 460px) {
  .brand-lockup span:not(.visually-hidden) {
    display: none;
  }

  .guide-step-grid {
    grid-template-columns: 1fr;
  }

  .guide-step,
  .guide-step:first-child,
  .guide-step:last-child,
  .guide-step:nth-child(odd),
  .guide-step:nth-child(even) {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 20px 0;
  }

  .guide-step:first-child {
    border-top: 0;
  }

  .guide-example-level {
    padding: 16px;
  }

  .guide-choice-link {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }
}

@media print {
  @page {
    size: landscape;
    margin: 10mm;
  }

  html,
  body,
  .static-app,
  .table-panel,
  .table-wrap {
    background: #ffffff !important;
  }

  .static-app,
  #catalogView {
    display: block;
    height: auto;
    overflow: visible;
  }

  .snapshot-controls,
  .snapshot-breakdown {
    display: none !important;
  }

  body {
    color: #111111;
  }

  .app-header {
    display: block;
    min-height: 0;
    border-bottom: 1px solid #aeb7b2;
    padding: 0 0 8px;
  }

  .brand-lockup strong {
    color: #000000;
    font-size: 18px;
  }

  .top-nav,
  .guide-view,
  .global-search,
  .header-actions,
  .search-suggestions,
  .filter-rail,
  .filter-backdrop,
  .filter-toggle,
  .records-tools,
  .pagination,
  .detail-panel,
  .row-arrow {
    display: none !important;
  }

  .snapshot-band {
    grid-template-columns: 0.9fr 1.1fr 0.4fr;
    min-height: 0;
    border-bottom: 1px solid #aeb7b2;
    padding: 10px 0;
  }

  .workbench {
    display: block;
    min-height: 0;
  }

  .table-panel,
  body.detail-open .table-panel {
    overflow: visible;
    border: 0;
  }

  .records-header {
    display: block;
    min-height: 0;
    padding: 8px 0;
  }

  .table-wrap {
    max-height: none;
    overflow: visible;
  }

  .table-scroll-controls {
    display: none !important;
  }

  table,
  body.detail-open table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  th,
  td {
    position: static !important;
    border-color: #c8cfcb;
    box-shadow: none !important;
    padding: 5px 6px;
    font-size: 8pt;
  }

  th {
    height: auto;
    background: #f1f3f2 !important;
    color: #111111;
  }

  tbody tr,
  tbody tr:nth-child(even),
  tbody tr.selected {
    height: auto;
    background: #ffffff !important;
    box-shadow: none;
    break-inside: avoid;
  }

  .primary-cell strong,
  .state-badge,
  a {
    color: #111111 !important;
  }
}

/* Value caveats, unit markers, load notices, and source attribution */
.metric-unit-missing {
  display: block;
  max-width: 100%;
  margin-top: 1px;
  color: #8a5a14;
  font-size: 9px;
  font-style: normal;
  font-weight: 550;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: normal;
  cursor: help;
}

.state-badge small {
  white-space: normal;
}

.measurement-value .metric-unit-missing {
  margin-top: 2px;
}

.value-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #e3c08a;
  border-radius: 10px;
  background: var(--orange-soft);
  padding: 1px 6px 1px 4px;
  color: #7a4b0f;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  cursor: help;
}

.value-flag::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.measurement-value strong .value-flag {
  margin-left: 6px;
  vertical-align: middle;
}

.condition-flag-line {
  align-items: start;
}

.condition-flag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.condition-flag-list li {
  border: 1px solid #e3c08a;
  border-radius: 999px;
  background: var(--orange-soft);
  padding: 2px 8px;
  color: #7a4b0f;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.3;
}

.catalog-load-failed .records-title {
  display: flex;
  flex-wrap: wrap;
}

.catalog-load-failed .records-title > strong,
.catalog-load-failed .records-title > span {
  flex-basis: 100%;
}

.catalog-load-failed .table-wrap table {
  min-width: 0;
}

.catalog-load-failed .table-wrap colgroup,
.catalog-load-failed .table-wrap thead {
  display: none;
}

.load-notice {
  display: grid;
  gap: 6px;
  max-width: 520px;
  margin: 0 auto;
  border-left: 3px solid var(--orange);
  background: var(--orange-soft);
  padding: 14px 16px;
  color: #4f3a21;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.load-notice strong {
  color: #3f2c16;
  font-weight: 650;
}

.load-notice .button {
  width: max-content;
  margin-top: 4px;
  border-color: #d3b17c;
}

.catalog-load-progress.stalled > span {
  transform: scaleX(1);
  background: var(--orange);
  opacity: 0.6;
}

.catalog-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 14px 24px 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.catalog-footer .footer-label {
  color: #253330;
  font-weight: 650;
}

.catalog-footer .footer-sources {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.catalog-footer .footer-source + .footer-source::before {
  content: "\00b7";
  margin: 0 8px;
  color: var(--quiet);
}

.catalog-footer .footer-source small {
  color: var(--quiet);
  font-size: 11px;
}

.catalog-footer a,
.guide-source-list a {
  color: var(--blue);
}

.catalog-footer .footer-license {
  flex-basis: 100%;
  color: var(--quiet);
}

.catalog-footer .footer-report {
  font-weight: 600;
}

.guide-sources {
  border-bottom: 1px solid var(--line);
  padding: 30px 0 34px;
}

.guide-sources h2 {
  margin: 0;
  color: #152321;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
}

.guide-sources .guide-note {
  max-width: 760px;
}

.guide-curation-license {
  color: #253330;
  font-weight: 550;
}

@media (max-width: 640px) {
  .catalog-footer {
    padding: 12px 16px 16px;
  }

  .guide-citation {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
