/**
 * Biomarker atlas pages — Research Tracker theme
 * Extends tracker.css with atlas-specific layout and components.
 */
body.biomarker-page {
    --primary: var(--primary-dark, #0e1444);
    --secondary: var(--accent-orange, #ff9800);
    --secondary-dark: var(--accent-deep-orange, #e64a19);
    --text-dark: var(--primary-dark, #0e1444);
    --text-light: var(--text-gray, #6c757d);
    --bg-light: var(--light-gray, #f8f9fa);
    --bg-white: var(--white, #ffffff);
    --border: rgba(14, 20, 68, 0.12);
    --up-bg: #fef2f2;
    --up-text: #dc2626;
    --down-bg: #e8eeff;
    --down-text: #1a2266;
    --mixed-bg: #fff3e0;
    --mixed-text: #e65100;
}

/* Hub page */
body.biomarker-page .atlas-hub-section {
    padding: 4rem 2rem;
}

body.biomarker-page .atlas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

body.biomarker-page .atlas-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

body.biomarker-page .atlas-card:hover {
    box-shadow: 0 10px 28px rgba(14, 20, 68, 0.1);
    border-color: rgba(255, 152, 0, 0.45);
    transform: translateY(-2px);
}

body.biomarker-page .atlas-card .icon { font-size: 2rem; margin-bottom: 0.75rem; }
body.biomarker-page .atlas-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}
body.biomarker-page .atlas-card .abbrev {
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}
body.biomarker-page .atlas-card p {
    font-size: 0.9375rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}
body.biomarker-page .atlas-card .stats { display: flex; gap: 0.75rem; flex-wrap: wrap; }
body.biomarker-page .atlas-card .stat {
    font-size: 0.75rem;
    background: var(--light-gray);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    color: var(--text-gray);
}
body.biomarker-page .atlas-card .cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-orange);
    margin-top: 1rem;
}

body.biomarker-page .overlap-section { background: var(--light-gray); }

body.biomarker-page .overlap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

body.biomarker-page .overlap-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

body.biomarker-page .overlap-card h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

body.biomarker-page .overlap-card p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Condition atlas sections */
body.biomarker-page section {
    padding: 4rem 2rem;
}

body.biomarker-page .container {
    max-width: 1200px;
    margin: 0 auto;
}

body.biomarker-page .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

body.biomarker-page .section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

body.biomarker-page .section-header h2 .highlight {
    color: var(--accent-orange);
}

body.biomarker-page .section-header p {
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

body.biomarker-page .overview-section { background: var(--light-gray); }

body.biomarker-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

body.biomarker-page .stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

body.biomarker-page .stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-orange);
}

body.biomarker-page .stat-card .label {
    font-size: 0.8125rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.25rem;
}

body.biomarker-page .mechanism-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

body.biomarker-page .mechanism-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

body.biomarker-page .mechanism-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

body.biomarker-page .mechanism-card p {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Table & controls */
body.biomarker-page .marker-loinc {
    font-size: 0.6875rem;
    color: #2e7d32;
    font-weight: 600;
    margin-top: 0.25rem;
    font-family: ui-monospace, monospace;
}

body.biomarker-page .marker-name { font-weight: 600; color: var(--primary-dark); }
body.biomarker-page .marker-alias { font-size: 0.75rem; color: var(--text-gray); margin-top: 0.125rem; }

body.biomarker-page .direction-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

body.biomarker-page .direction-up { background: var(--up-bg); color: var(--up-text); }
body.biomarker-page .direction-down { background: var(--down-bg); color: var(--down-text); }
body.biomarker-page .direction-mixed { background: var(--mixed-bg); color: var(--mixed-text); }

body.biomarker-page .category-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

body.biomarker-page .cat-inflammatory { background: #fee2e2; color: #991b1b; }
body.biomarker-page .cat-metabolic { background: #e8eeff; color: #1a2266; }
body.biomarker-page .cat-coagulation { background: #fce7f3; color: #9d174d; }
body.biomarker-page .cat-vascular { background: #e0e7ff; color: #3730a3; }
body.biomarker-page .cat-neurological { background: #f3e8ff; color: #6b21a8; }
body.biomarker-page .cat-immune { background: #d1fae5; color: #065f46; }
body.biomarker-page .cat-proteomic { background: #fef3c7; color: #92400e; }
body.biomarker-page .cat-microbiome { background: #ecfccb; color: #3f6212; }
body.biomarker-page .cat-viral { background: #f1f5f9; color: #475569; }
body.biomarker-page .cat-lipidomic { background: #ffedd5; color: #9a3412; }
body.biomarker-page .cat-serologic { background: #e8f5e9; color: #2e7d32; }
body.biomarker-page .cat-csf { background: #e3f2fd; color: #1565c0; }
body.biomarker-page .cat-autonomic { background: #fff3e0; color: #e65100; }
body.biomarker-page .cat-mitochondrial { background: #f3e5f5; color: #6a1b9a; }
body.biomarker-page .cat-exposure { background: #efebe9; color: #4e342e; }
body.biomarker-page .cat-overlap { background: #fff8e1; color: #f57f17; }

body.biomarker-page .ref-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
}

body.biomarker-page .ref-link:hover { color: var(--accent-orange); text-decoration: underline; }

body.biomarker-page .controls-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

body.biomarker-page .search-box { flex: 1; min-width: 200px; position: relative; }

body.biomarker-page .search-box input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--primary-dark);
}

body.biomarker-page .search-box input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.15);
}

body.biomarker-page .search-box::before {
    content: '🔍';
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
}

body.biomarker-page .filter-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }

body.biomarker-page .filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--primary-dark);
}

body.biomarker-page .filter-btn:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

body.biomarker-page .filter-btn.active {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

body.biomarker-page .results-count {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

body.biomarker-page .table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: min(70vh, 640px);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    scrollbar-gutter: stable;
}

body.biomarker-page table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

body.biomarker-page thead {
    background: var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 2;
}

body.biomarker-page th {
    text-align: left;
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

body.biomarker-page td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

body.biomarker-page tr:last-child td { border-bottom: none; }
body.biomarker-page tr:hover td { background: #fff8f0; }
body.biomarker-page tr.hidden { display: none; }

body.biomarker-page .category-section { background: var(--white); }
body.biomarker-page .category-section:nth-child(even) { background: var(--light-gray); }

body.biomarker-page .category-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

body.biomarker-page .detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

body.biomarker-page .detail-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
}

body.biomarker-page .detail-card ul { list-style: none; padding: 0; }

body.biomarker-page .detail-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

body.biomarker-page .detail-card li:last-child { border-bottom: none; }

body.biomarker-page .timeline-note {
    background: linear-gradient(135deg, #fff8f0 0%, #f8f9fa 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-orange);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

body.biomarker-page .timeline-note h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    color: var(--accent-deep-orange);
}

body.biomarker-page .timeline-note p {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.7;
}

body.biomarker-page .refs-section { background: var(--light-gray); }

body.biomarker-page .refs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

body.biomarker-page .ref-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

body.biomarker-page .ref-card .ref-type {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-orange);
    margin-bottom: 0.375rem;
}

body.biomarker-page .ref-card h4 {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.375rem;
    color: var(--primary-dark);
}

body.biomarker-page .ref-card .ref-meta {
    font-size: 0.75rem;
    color: var(--text-gray);
}

body.biomarker-page .ref-card a {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
}

body.biomarker-page .ref-card a:hover { color: var(--accent-orange); text-decoration: underline; }

body.biomarker-page .disclaimer {
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-top: 2rem;
}

body.biomarker-page .atlas-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

body.biomarker-page .atlas-links a {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--primary-dark);
    text-decoration: none;
}

body.biomarker-page .atlas-links a:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

body.biomarker-page .tracker-crosslink {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

body.biomarker-page .tracker-crosslink a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
}

body.biomarker-page .tracker-crosslink a:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

@media (max-width: 1024px) {
    body.biomarker-page .stats-grid { grid-template-columns: repeat(2, 1fr); }
    body.biomarker-page .mechanism-cards { grid-template-columns: 1fr; }
    body.biomarker-page .category-detail-grid { grid-template-columns: 1fr; }
    body.biomarker-page .refs-grid { grid-template-columns: 1fr; }
    body.biomarker-page .atlas-grid { grid-template-columns: 1fr; }
    body.biomarker-page .overlap-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body.biomarker-page section,
    body.biomarker-page .atlas-hub-section { padding: 2.5rem 1rem; }
    body.biomarker-page .stats-grid { grid-template-columns: 1fr 1fr; }
    body.biomarker-page thead { top: 0; }
}

/* Trials, lab links, filters, hub database search */
body.biomarker-page .lab-cell { min-width: 120px; }
body.biomarker-page .lab-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
body.biomarker-page .lab-none { color: var(--text-gray); font-size: 0.8125rem; }

body.biomarker-page .trial-cell { min-width: 140px; }
body.biomarker-page .trial-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; align-items: center; }
body.biomarker-page .trial-chip {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: ui-monospace, monospace;
    border: 1px solid transparent;
}
body.biomarker-page .trial-chip.trial-primary { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
body.biomarker-page .trial-chip.trial-secondary { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
body.biomarker-page .trial-chip:hover { text-decoration: underline; }
body.biomarker-page .trial-none { color: var(--text-gray); font-size: 0.8125rem; }
body.biomarker-page .trial-more { font-size: 0.6875rem; color: var(--text-gray); }

body.biomarker-page .intervention-cell { min-width: 160px; }
body.biomarker-page .intervention-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; align-items: center; }
body.biomarker-page .intervention-chip {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #ddd6fe;
    background: #f5f3ff;
    color: #5b21b6;
}
body.biomarker-page a.intervention-chip:hover { text-decoration: underline; }
body.biomarker-page .intervention-none { color: var(--text-gray); font-size: 0.8125rem; }
body.biomarker-page .intervention-more { font-size: 0.6875rem; color: var(--text-gray); }
body.biomarker-page .scroll-panel-sm {
    max-height: 7rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    padding-right: 0.25rem;
}
body.biomarker-page .scroll-panel-sm::-webkit-scrollbar,
body.biomarker-page .database-results::-webkit-scrollbar,
body.biomarker-page .table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
body.biomarker-page .scroll-panel-sm::-webkit-scrollbar-track,
body.biomarker-page .database-results::-webkit-scrollbar-track,
body.biomarker-page .table-wrapper::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 4px;
}
body.biomarker-page .scroll-panel-sm::-webkit-scrollbar-thumb,
body.biomarker-page .database-results::-webkit-scrollbar-thumb,
body.biomarker-page .table-wrapper::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
body.biomarker-page .scroll-panel-sm::-webkit-scrollbar-thumb:hover,
body.biomarker-page .database-results::-webkit-scrollbar-thumb:hover,
body.biomarker-page .table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
body.biomarker-page .scroll-panel-sm,
body.biomarker-page .database-results,
body.biomarker-page .table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #e2e8f0;
}

body.biomarker-page a.marker-link { color: var(--primary); text-decoration: none; font-weight: 600; }
body.biomarker-page a.marker-link:hover { text-decoration: underline; }
body.biomarker-page .marker-detail-link {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
body.biomarker-page .marker-detail-link:hover { text-decoration: underline; }
body.biomarker-page tr.marker-row-active { background: #f0f9ff; }
body.biomarker-page tr.marker-row-active td:first-child { box-shadow: inset 3px 0 0 var(--primary); }

body.biomarker-page .marker-detail-panel {
    margin-top: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
body.biomarker-page .marker-detail-inner { padding: 1.25rem 1.5rem 1.5rem; }
body.biomarker-page .marker-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
body.biomarker-page .marker-detail-header h3 { margin: 0; font-size: 1.25rem; }
body.biomarker-page .marker-detail-close {
    border: none;
    background: #f3f4f6;
    color: #374151;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-size: 1.25rem;
    cursor: pointer;
}
body.biomarker-page .marker-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}
body.biomarker-page .marker-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
body.biomarker-page .marker-detail-block { margin-bottom: 1.25rem; padding-top: 0.25rem; border-top: 1px solid #f3f4f6; }
body.biomarker-page .marker-detail-block h4 {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-gray);
}
body.biomarker-page .marker-detail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.875rem; }
body.biomarker-page .marker-detail-list > li {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafafa;
}
body.biomarker-page .marker-detail-item-head { display: flex; flex-wrap: wrap; gap: 0.375rem; align-items: center; margin-bottom: 0.375rem; }
body.biomarker-page .marker-detail-articles a { color: var(--primary); text-decoration: none; }
body.biomarker-page .intervention-chip-preview { cursor: default; }
body.biomarker-page a.consumable-chip { text-decoration: none; }

body.biomarker-page .filter-trials {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-gray);
    white-space: nowrap;
}
body.biomarker-page .filter-trials input { accent-color: var(--accent-orange); }

body.biomarker-page .lab-links { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; align-items: center; }
body.biomarker-page .lab-chip {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid transparent;
}
body.biomarker-page .lab-chip.lab-commercial { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
body.biomarker-page .lab-chip.lab-specialty { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
body.biomarker-page .lab-chip.lab-reference { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
body.biomarker-page .lab-chip:hover { text-decoration: underline; }
body.biomarker-page .lab-note { font-size: 0.625rem; color: var(--text-gray); width: 100%; margin-top: 0.25rem; line-height: 1.4; }

body.biomarker-page .consumable-chip {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    vertical-align: middle;
}

body.biomarker-page .database-section { background: var(--light-gray); padding: 3rem 1.5rem; }
body.biomarker-page .database-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
body.biomarker-page .database-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}
body.biomarker-page .database-controls .search-box { flex: 1; min-width: 220px; }
body.biomarker-page .database-controls select {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--white);
}
body.biomarker-page .database-count { font-size: 0.8125rem; color: var(--text-gray); margin-bottom: 0.75rem; }
body.biomarker-page .database-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 520px;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    padding-right: 0.25rem;
}
body.biomarker-page .db-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    align-items: start;
}
body.biomarker-page .db-row:hover { border-color: var(--accent-orange); background: #fff8f0; }
body.biomarker-page .db-name { font-weight: 600; color: var(--accent-orange); text-decoration: none; font-size: 0.9375rem; }
body.biomarker-page .db-name:hover { text-decoration: underline; }
body.biomarker-page .db-alias { font-size: 0.8125rem; color: var(--text-gray); margin-top: 0.125rem; }
body.biomarker-page .db-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
body.biomarker-page .db-meta span {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    background: var(--light-gray);
    color: var(--text-gray);
}
body.biomarker-page .db-condition { background: #fff7ed !important; color: #c2410c !important; }
body.biomarker-page .db-side {
    text-align: right;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
body.biomarker-page .db-side-section { display: flex; flex-direction: column; gap: 0.25rem; }
body.biomarker-page .db-side-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-gray);
}
body.biomarker-page .db-trials,
body.biomarker-page .db-labs,
body.biomarker-page .db-interventions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-end;
}
body.biomarker-page .db-interventions .intervention-chip-consumable {
    text-decoration: none;
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}
body.biomarker-page .db-interventions .intervention-chip-consumable:hover { text-decoration: underline; }
body.biomarker-page .db-view { font-size: 0.75rem; color: var(--accent-orange); text-decoration: none; }
body.biomarker-page .db-view:hover { text-decoration: underline; }
body.biomarker-page .database-empty,
body.biomarker-page .database-more { font-size: 0.875rem; color: var(--text-gray); padding: 1rem 0; }

@media (max-width: 768px) {
    body.biomarker-page .db-row { grid-template-columns: 1fr; }
    body.biomarker-page .db-side { text-align: left; }
    body.biomarker-page .db-trials,
    body.biomarker-page .db-labs,
    body.biomarker-page .db-interventions { justify-content: flex-start; }
}