/* ==========================================================
   hippie.css — single source of truth for all HIPPIE styles
   ========================================================== */

/* ==========================================================
   Design tokens
   ========================================================== */
:root {
  --hippie-bg:           #f7f5f0;
  --hippie-surface:      #ffffff;
  --hippie-border:       #e2ddd6;
  --hippie-ink:          #1a1612;
  --hippie-ink-muted:    #6b6560;
  --hippie-accent:       #c0392b;
  --hippie-accent-soft:  #f9e8e6;
  --hippie-teal:         #1a6b6b;
  --hippie-teal-soft:    #e3f0f0;
  --hippie-score-high:   #1a6b6b;
  --hippie-score-med:    #b87c1a;
  --hippie-score-low:    #c0392b;

  --nav-top-bg:          #ffffff;
  --nav-bottom-bg:       #2c4a1e;
  --nav-bottom-active:   #1a6b6b;
  --nav-bottom-hover:    rgba(255,255,255,.08);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --shadow-card: 0 1px 3px rgba(26,22,18,.08), 0 4px 16px rgba(26,22,18,.06);
}

/* ==========================================================
   Base
   ========================================================== */
html, body {
  background: var(--hippie-bg);
  color: var(--hippie-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
}
code, kbd, pre, .mono {
  font-family: var(--font-mono);
  font-size: .875em;
}
a { color: var(--hippie-teal); text-decoration: none; }
a:hover { color: var(--hippie-accent); text-decoration: underline; }

/* ==========================================================
   Navigation
   ========================================================== */
.hippie-topbar {
  background: var(--nav-top-bg);
  border-bottom: 1px solid var(--hippie-border);
}
.hippie-topbar .navbar-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--hippie-ink);
  letter-spacing: -.03em;
  padding: .65rem 0;
  text-decoration: none;
}
.hippie-topbar .navbar-brand:hover { color: var(--hippie-teal); text-decoration: none; }
.hippie-topbar .brand-accent { color: var(--hippie-accent); }
.hippie-topbar .brand-version {
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hippie-ink-muted);
  font-family: var(--font-mono);
  margin-left: .4rem;
  vertical-align: middle;
}
.hippie-topbar .utility-link {
  font-size: .8rem;
  font-weight: 500;
  color: var(--hippie-ink-muted);
  padding: .25rem 0;
  text-decoration: none;
  transition: color .15s;
}
.hippie-topbar .utility-link:hover { color: var(--hippie-teal); }
.hippie-topbar .utility-link.dropdown-toggle::after { vertical-align: .15em; margin-left: .3em; }
.hippie-dropdown {
  font-size: .8rem;
  border-color: var(--hippie-border);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  min-width: 11rem;
}
.hippie-dropdown .dropdown-item { color: var(--hippie-ink); padding: .4rem .9rem; }
.hippie-dropdown .dropdown-item:hover,
.hippie-dropdown .dropdown-item:focus { background: var(--hippie-bg); color: var(--hippie-teal); }

/* Shown on every page while no ReleaseMeta row exists (see base.html). */
.hippie-release-missing {
  background: #b02a37;
  color: #fff;
  padding: .9rem 1rem;
  text-align: center;
  font-size: .95rem;
  border-bottom: 4px solid #6a1a21;
}
.hippie-release-missing code { color: #fff; background: rgba(0, 0, 0, .25); padding: .1rem .35rem; border-radius: 3px; }

/* "More details" link appended to filter help pop-ups (InfoPopover). */
.popover .popover-more { display: block; margin-top: .4rem; font-size: .78rem; font-weight: 600; }

.hippie-navbar { background: var(--nav-bottom-bg); }
.hippie-navbar .nav-link {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(255,255,255,.7);
  padding: .45rem 1rem;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.hippie-navbar .nav-link:hover {
  background: var(--nav-bottom-hover);
  color: #fff;
}
.hippie-navbar .nav-link.active {
  background: var(--nav-bottom-active);
  color: #fff;
}

/* ==========================================================
   Main + Footer
   ========================================================== */
.hippie-main {
  min-height: calc(100vh - 130px);
  padding: 2.5rem 0 4rem;
}
.hippie-footer {
  background: var(--hippie-surface);
  border-top: 1px solid var(--hippie-border);
  padding: 1.25rem 0;
  font-size: .8rem;
  color: var(--hippie-ink-muted);
}

/* ==========================================================
   Cards
   ========================================================== */
.hippie-card {
  background: var(--hippie-surface);
  border: 1px solid var(--hippie-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
}
.hippie-card--muted {
  background: var(--hippie-bg);
  border: 1px solid var(--hippie-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* ==========================================================
   Notes / callouts
   Left accent bar + tinted background. Promoted here from a page-local block
   in ml.html so the ML Splits page (and anything else) can use them too.
   ========================================================== */
.hippie-note {
  border-left: 4px solid var(--hippie-border);
  background: var(--hippie-bg);
  padding: .75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: .875rem;
  margin: .75rem 0;
}
.hippie-note--info {
  border-left-color: var(--hippie-teal);
  background: var(--hippie-teal-soft);
}
.hippie-note--warn {
  border-left-color: #dc3545;
  background: #fdf0f1;
}
.hippie-note--ok {
  border-left-color: #2e7d5b;
  background: #eef7f1;
}

/* ==========================================================
   Hero
   ========================================================== */
.hippie-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--hippie-border);
  margin-bottom: 2.5rem;
}
.hippie-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: .75rem;
}
.hippie-hero p {
  font-size: 1rem;
  color: var(--hippie-ink-muted);
  max-width: 60ch;
  margin-bottom: 0;
}
.page-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hippie-ink-muted);
  margin-bottom: .5rem;
}
.page-subtitle {
  font-size: 1rem;
  color: var(--hippie-ink-muted);
  max-width: 60ch;
  margin-bottom: 0;
}

/* ==========================================================
   Section labels
   ========================================================== */
.section-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hippie-ink-muted);
  margin-bottom: .75rem;
  display: block;
}
.section-label--inline {
  display: inline-block;
  margin-bottom: .5rem;
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn-hippie {
  background: var(--hippie-teal);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem 1.25rem;
  cursor: pointer;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}
.btn-hippie:hover:not(:disabled) {
  background: #145555;
  color: #fff;
  text-decoration: none;
}
.btn-hippie:disabled { background: var(--hippie-ink-muted); cursor: not-allowed; }
.btn-hippie--attached {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: .65rem 1.4rem;
}

/* ==========================================================
   Score badges
   ========================================================== */
.score-badge {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  padding: .15rem .5rem;
  border-radius: 100px;
  display: inline-block;
}
.score-high { background: var(--hippie-teal-soft);   color: var(--hippie-score-high); }
.score-med  { background: #fef3e2;                   color: var(--hippie-score-med);  }
.score-low  { background: var(--hippie-accent-soft); color: var(--hippie-score-low);  }

/* Small muted marker for proteins whose review status is unreviewed. */
.unreviewed-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  color: var(--hippie-ink-muted);
  margin-left: .35rem;
  white-space: nowrap;
  vertical-align: baseline;
}

/* Dot on the Search button signalling unapplied filter changes. */
.search-dirty-dot {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #fff;
  margin-left: .4rem;
  vertical-align: middle;
}

/* ==========================================================
   Table
   ========================================================== */
.hippie-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .875rem;
}
.hippie-table thead th {
  background: var(--hippie-bg);
  border-bottom: 2px solid var(--hippie-border);
  border-top: 1px solid var(--hippie-border);
  padding: .6rem .85rem;
  font-size: .75rem; font-family: var(--font-mono); font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--hippie-ink-muted); white-space: nowrap; user-select: none; cursor: pointer;
}
.hippie-table thead th.no-sort      { cursor: default; }
.hippie-table thead th:not(.no-sort):hover { color: var(--hippie-ink); }
.hippie-table thead th.sorted-asc::after  { content: ' ↑'; color: var(--hippie-teal); }
.hippie-table thead th.sorted-desc::after { content: ' ↓'; color: var(--hippie-teal); }
.hippie-table tbody tr { border-bottom: 1px solid var(--hippie-border); transition: background .1s; }
.hippie-table tbody tr:hover { background: var(--hippie-bg); }
.hippie-table tbody td { padding: .6rem .85rem; vertical-align: middle; }
.hippie-table tbody tr:last-child td { border-bottom: none; }

/* ==========================================================
   Pagination
   ========================================================== */
.hippie-pagination {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}
.hippie-pagination button {
  border: 1px solid var(--hippie-border); background: var(--hippie-surface);
  color: var(--hippie-ink); border-radius: var(--radius-sm);
  padding: .25rem .6rem; font-size: .8rem; cursor: pointer;
  font-family: var(--font-mono); transition: background .1s;
}
.hippie-pagination button:hover:not(:disabled) { background: var(--hippie-bg); }
.hippie-pagination button.active { background: var(--hippie-teal); color: #fff; border-color: var(--hippie-teal); }
.hippie-pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ==========================================================
   Spinners
   ========================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 28px; height: 28px;
  border: 3px solid var(--hippie-border);
  border-top-color: var(--hippie-teal);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner-sm {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--hippie-border);
  border-top-color: var(--hippie-teal);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}

/* Full-viewport loading overlay (browse pages). The fade-in is delayed so a
   fast response never flashes it; the card pops in once it does show. */
@keyframes overlayFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes overlayPop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 22, 18, .18);
  animation: overlayFadeIn .2s ease-out .15s both;
}
.loading-overlay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem 2rem;
  background: var(--hippie-surface);
  border: 1px solid var(--hippie-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(26, 22, 18, .15);
  color: var(--hippie-ink-muted);
  font-family: var(--font-mono);
  font-size: .85rem;
  animation: overlayPop .25s cubic-bezier(.34, 1.56, .64, 1) .15s both;
}
.loading-overlay-card .spinner {
  width: 48px; height: 48px;
  border-width: 4px;
}

/* ==========================================================
   Export bar
   ========================================================== */
.export-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.export-bar button {
  background: var(--hippie-surface);
  border: 1px solid var(--hippie-border);
  border-radius: var(--radius-sm);
  color: var(--hippie-ink-muted);
  font-size: .78rem; font-family: var(--font-mono);
  padding: .25rem .7rem; cursor: pointer; transition: background .12s, color .12s;
}
.export-bar button:hover { background: var(--hippie-bg); color: var(--hippie-ink); }

/* ==========================================================
   Empty state
   ========================================================== */
.state-box {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--hippie-ink-muted);
}
.state-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: .75rem;
  opacity: .4;
}

/* ==========================================================
   Utilities
   ========================================================== */
.text-muted-sm {
  font-size: .8rem;
  color: var(--hippie-ink-muted);
}
.tag-chip {
  display: inline-block; background: var(--hippie-bg); border: 1px solid var(--hippie-border);
  border-radius: 100px; padding: .1rem .6rem;
  font-size: .75rem; font-family: var(--font-mono); color: var(--hippie-ink-muted);
}
.example-chip {
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.example-chip:hover {
  background: var(--hippie-teal-soft); color: var(--hippie-teal); border-color: var(--hippie-teal);
}
.results-title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0; }
.back-link { font-size: .85rem; margin-bottom: 1.25rem; display: inline-flex; align-items: center; gap: .35rem; }

/* ==========================================================
   Filter components (browse + protein query pages)
   ========================================================== */
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.btn-filter-toggle {
  background: var(--hippie-surface);
  border: 1.5px solid var(--hippie-border);
  border-radius: var(--radius-md);
  color: var(--hippie-ink-muted);
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font-body);
  padding: .55rem 1rem;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-filter-toggle:hover { border-color: var(--hippie-teal); color: var(--hippie-teal); }
.btn-filter-toggle.active {
  background: var(--hippie-teal-soft);
  border-color: var(--hippie-teal);
  color: var(--hippie-teal);
}

.filter-panel {
  border: 1.5px solid var(--hippie-teal);
  border-radius: var(--radius-lg);
  background: var(--hippie-surface);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  margin-bottom: 1rem;
  animation: slideDown .15s ease;
}
.filter-section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--hippie-ink-muted);
  border-bottom: 1px solid var(--hippie-border);
  padding-bottom: .3rem;
  margin-bottom: .75rem;
  font-family: var(--font-mono);
}
.filter-panel .form-label { font-size: .82rem; color: var(--hippie-ink-muted); margin-bottom: .25rem; }
.filter-panel .form-control,
.filter-panel .form-select { font-size: .85rem; padding: .35rem .65rem; }
.filter-panel .form-range { padding: 0; }

.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--hippie-teal-soft);
  border: 1px solid var(--hippie-teal);
  border-radius: 100px;
  color: var(--hippie-teal);
  font-size: .72rem;
  font-weight: 600;
  padding: .1rem .55rem;
  font-family: var(--font-mono);
}
.active-filter-badge button {
  background: none; border: none; padding: 0;
  color: var(--hippie-teal); cursor: pointer; font-size: .8rem; line-height: 1;
}

/* ==========================================================
   Mode toggle (protein query + interaction query pages)
   ========================================================== */
.mode-toggle {
  display: inline-flex;
  border: 1.5px solid var(--hippie-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--hippie-bg);
}
.mode-toggle button {
  background: none;
  border: none;
  padding: .4rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--hippie-ink-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.mode-toggle button.active {
  background: var(--hippie-surface);
  color: var(--hippie-ink);
  box-shadow: 0 1px 4px rgba(26,22,18,.08);
}
.mode-toggle button:hover:not(.active) { color: var(--hippie-ink); }

/* ==========================================================
   Progress bar (browse + interaction query pages)
   ========================================================== */
.batch-progress { height: 3px; background: var(--hippie-border); border-radius: 100px; overflow: hidden; }
.batch-progress-fill { height: 100%; background: var(--hippie-teal); border-radius: 100px; transition: width .3s ease; }

/* ==========================================================
   Browse page
   ========================================================== */
.browse-search .form-control {
  border: 1.5px solid var(--hippie-border);
  border-radius: var(--radius-md);
  background: var(--hippie-surface);
  font-family: var(--font-mono);
  font-size: .9rem;
  padding: .55rem 1rem;
  color: var(--hippie-ink);
  box-shadow: none;
  transition: border-color .15s;
}
.browse-search .form-control:focus {
  border-color: var(--hippie-teal);
  box-shadow: 0 0 0 3px rgba(26,107,107,.12);
}

/* Browse table: rows are clickable (scoped to React mount point) */
#hippie-browse-app .hippie-table tbody tr { cursor: pointer; }
#hippie-browse-app .hippie-table tbody tr:hover { background: var(--hippie-teal-soft); }

/* ==========================================================
   Protein query page (index)
   ========================================================== */
.hippie-search-form .form-control {
  border: 1.5px solid var(--hippie-border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: var(--hippie-surface);
  font-family: var(--font-mono);
  font-size: .95rem;
  padding: .65rem 1rem;
  color: var(--hippie-ink);
  box-shadow: none;
}
.hippie-search-form .form-control:focus {
  border-color: var(--hippie-teal);
  box-shadow: 0 0 0 3px rgba(26,107,107,.12);
}

/* Non-interaction rows in results table */
.hippie-table tbody tr.row-noninteraction { background: #f0eeeb; }
.hippie-table tbody tr.row-noninteraction:hover { background: #e8e5e1; }

/* ==========================================================
   Interaction query page
   ========================================================== */
.pair-textarea {
  border: 1.5px solid var(--hippie-border);
  border-radius: var(--radius-md);
  background: var(--hippie-surface);
  font-family: var(--font-mono);
  font-size: .85rem;
  padding: .75rem 1rem;
  color: var(--hippie-ink);
  width: 100%;
  resize: vertical;
  min-height: 140px;
  box-shadow: none;
  transition: border-color .15s;
  line-height: 1.7;
}
.pair-textarea:focus {
  outline: none;
  border-color: var(--hippie-teal);
  box-shadow: 0 0 0 3px rgba(26,107,107,.12);
}
.pair-textarea::placeholder { color: var(--hippie-ink-muted); }

.file-dropzone {
  border: 2px dashed var(--hippie-border);
  border-radius: var(--radius-md);
  background: var(--hippie-bg);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  padding: 1.5rem;
  text-align: center;
}
.file-dropzone:hover, .file-dropzone.drag-over {
  border-color: var(--hippie-teal);
  background: var(--hippie-teal-soft);
}
.file-dropzone.has-file {
  border-style: solid;
  border-color: var(--hippie-teal);
  background: var(--hippie-teal-soft);
}
.file-dropzone i { font-size: 1.75rem; color: var(--hippie-ink-muted); }
.file-dropzone.has-file i { color: var(--hippie-teal); }

.btn-submit {
  background: var(--hippie-teal);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: .6rem 1.5rem;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.btn-submit:hover:not(:disabled) { background: #145555; }
.btn-submit:disabled { background: var(--hippie-ink-muted); cursor: not-allowed; }

/* Not-found rows in interaction query results */
.hippie-table tbody tr.row-not-found { background: var(--hippie-accent-soft); }
.hippie-table tbody tr.row-not-found:hover { background: #f5dedd; }

/* ==========================================================
   Network query page
   ========================================================== */
.nq-sidebar {
  width: 300px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .nq-sidebar { width: 100%; }
}

.form-section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--hippie-ink-muted);
  border-bottom: 1px solid var(--hippie-border);
  padding-bottom: .35rem;
  margin-bottom: .75rem;
  font-family: var(--font-mono);
}

.nq-sidebar .form-control,
.nq-sidebar .form-select { font-size: .85rem; padding: .35rem .65rem; }
.nq-sidebar .form-label {
  font-size: .82rem;
  margin-bottom: .25rem;
  color: var(--hippie-ink);
  font-weight: 500;
}
.nq-sidebar .form-check-label { font-size: .82rem; }
.nq-sidebar .form-text        { font-size: .75rem; }
.nq-sidebar textarea.form-control { font-family: var(--font-mono); font-size: .8rem; }
.nq-sidebar .form-check { margin-bottom: .2rem; }

.score-display {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--hippie-ink-muted);
}

.btn-nq-submit {
  background: var(--hippie-teal);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .875rem;
  padding: .55rem 1.25rem;
  width: 100%;
  cursor: pointer;
  transition: background .15s;
}
.btn-nq-submit:hover { background: #145555; }

.nq-results-placeholder {
  border: 2px dashed var(--hippie-border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--hippie-ink-muted);
}
.nq-results-placeholder i {
  font-size: 2.5rem;
  opacity: .3;
  display: block;
  margin-bottom: .75rem;
}

/* ==========================================================
   Protein detail page
   ========================================================== */
.protein-hero {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--hippie-border);
  margin-bottom: 2rem;
}
.protein-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .4rem; }

.id-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}
.id-grid dt {
  font-size: .7rem;
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hippie-ink-muted);
}
.id-grid dd { font-family: var(--font-mono); font-size: .9rem; margin: 0; }

.stat-box {
  background: var(--hippie-surface);
  border: 1px solid var(--hippie-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.stat-box .stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--hippie-teal);
}
.stat-box .stat-label {
  font-size: .78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--hippie-ink-muted);
  margin-top: .35rem;
}

/* ==========================================================
   Interaction / Non-interaction detail pages
   ========================================================== */
.detail-hero {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--hippie-border);
  margin-bottom: 2rem;
}
.detail-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .5rem; }

.evidence-card {
  background: var(--hippie-surface);
  border: 1px solid var(--hippie-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  height: 100%;
}
.evidence-card h4 { font-size: 1rem; margin-bottom: 1rem; }

.evidence-list { list-style: none; padding: 0; margin: 0; }
.evidence-list li {
  padding: .4rem 0;
  border-bottom: 1px solid var(--hippie-border);
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.evidence-list li:last-child { border-bottom: none; }

.pmid-link { font-family: var(--font-mono); font-size: .8rem; }

.exp-score-pill {
  background: var(--hippie-bg);
  border: 1px solid var(--hippie-border);
  border-radius: 100px;
  padding: .1rem .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--hippie-ink-muted);
  margin-left: auto;
}

.protein-card {
  background: var(--hippie-bg);
  border: 1px solid var(--hippie-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}
.protein-card .protein-name { font-family: var(--font-display); font-size: 1.4rem; }

.id-row { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: .5rem; }
.id-row dt {
  font-size: .7rem; font-family: var(--font-mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--hippie-ink-muted);
}
.id-row dd { font-family: var(--font-mono); font-size: .85rem; margin: 0; }

.detection-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.detection-stat-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: .25rem;
}
.detection-stat-label {
  font-size: .7rem;
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hippie-ink-muted);
}
.detection-stat-value.pending { color: var(--hippie-ink-muted); font-size: 1.1rem; }

/* ==========================================================
   Download page
   ========================================================== */
.format-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.format-table th {
  text-align: left; padding: .5rem .75rem;
  background: var(--hippie-bg); border-bottom: 2px solid var(--hippie-border);
  font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--hippie-ink-muted);
}
.format-table td { padding: .55rem .75rem; border-bottom: 1px solid var(--hippie-border); vertical-align: top; }
.format-table tr:last-child td { border-bottom: none; }
.format-table code {
  font-size: .8rem; background: var(--hippie-bg);
  padding: .1rem .35rem; border-radius: var(--radius-sm);
}
.col-badge {
  display: inline-block; background: var(--hippie-teal-soft); color: var(--hippie-teal);
  font-family: var(--font-mono); font-size: .72rem; padding: .1rem .45rem;
  border-radius: 100px; border: 1px solid var(--hippie-teal); white-space: nowrap;
}

/* ==========================================================
   ML Splits page
   ========================================================== */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--hippie-teal-soft);
  border: 1px solid var(--hippie-teal);
  border-radius: 100px;
  color: var(--hippie-teal);
  font-size: .78rem;
  font-weight: 600;
  padding: .15rem .65rem;
  font-family: var(--font-mono);
}
.filter-chip.none {
  background: var(--hippie-bg);
  border-color: var(--hippie-border);
  color: var(--hippie-ink-muted);
}


/* ==========================================================
   Information page
   ========================================================== */
.info-section { margin-bottom: 2.5rem; }
.info-section h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.source-chip {
  background: var(--hippie-bg); border: 1px solid var(--hippie-border);
  border-radius: var(--radius-md); padding: .6rem .85rem;
  font-size: .82rem; display: flex; flex-direction: column; gap: .2rem;
}
.source-chip strong { font-size: .85rem; }
.source-chip a { font-size: .75rem; font-family: var(--font-mono); }
.formula-box {
  background: var(--hippie-bg); border: 1px solid var(--hippie-border);
  border-radius: var(--radius-md); padding: 1rem 1.25rem;
  font-family: var(--font-mono); font-size: .875rem; line-height: 1.9;
  overflow-x: auto;
}
.score-tier {
  display: flex; align-items: center; gap: .75rem;
  padding: .45rem 0; border-bottom: 1px solid var(--hippie-border);
}
.score-tier:last-child { border-bottom: none; }
