/* ===== FONTS ===== */
@font-face {
  font-family: 'OpenRunde';
  src: url('../../fonts/OpenRunde-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OpenRunde';
  src: url('../../fonts/OpenRunde-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OpenRunde';
  src: url('../../fonts/OpenRunde-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OpenRunde';
  src: url('../../fonts/OpenRunde-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exposure';
  src: url('../../fonts/Exposure-VAR.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exposure';
  src: url('../../fonts/Exposure-VAR-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #147EFB;
  --accent-hover: #1070E0;
  --accent-glow: rgba(20, 126, 251, 0.25);
  --body-text: rgb(26, 31, 43);
  --black: #000000;
  --gray-200: rgb(238, 237, 235);
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: rgb(78, 89, 105);
  --bg: #FFFFFF;
  --radius: 20px;
  --selection: #147EFB40;
}

::selection {
  background: var(--selection);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'OpenRunde', sans-serif;
  color: var(--body-text);
  background: var(--bg);
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== LAYOUT ===== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 56px;
}

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 16px 0 16px;
  display: flex;
  justify-content: center;
}

.nav-outer {
  display: flex;
  width: 100%;
  max-width: 720px;
  flex-direction: column;
}

.nav-glass {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: rgba(248, 248, 248, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
}

.nav-inner {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.nav-logo-icon-wrap {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9.22px;
  overflow: hidden;
}

.nav-logo-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.nav-logo-text {
  font-family: 'Exposure', Georgia, serif;
  font-variation-settings: "EXPO" -20;
  font-size: 18px;
  color: var(--black);
  user-select: none;
  letter-spacing: normal;
  white-space: nowrap;
  text-decoration: none;
}

a.nav-logo,
a.nav-logo:hover,
a.nav-logo:visited {
  text-decoration: none;
  color: inherit;
}

.nav-logo-light {
  color: rgba(0, 0, 0, 0.45);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.15s ease-out;
}

.nav-back:hover {
  color: var(--black);
}

/* ===== VIEWS ===== */
.view {
  width: 100%;
  padding-top: 120px;
}

.view[hidden] {
  display: none;
}

/* ===== UPLOAD VIEW ===== */
.upload-header {
  text-align: center;
  margin-bottom: 32px;
}

.upload-title {
  font-family: 'Exposure', Georgia, serif;
  font-variation-settings: "EXPO" -10;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 8px;
}

.upload-subtitle {
  font-size: 15px;
  color: var(--gray-600);
  font-weight: 400;
}

/* Dropzone */
.dropzone {
  position: relative;
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(20, 126, 251, 0.03);
}

.dropzone.drag-over {
  background: rgba(20, 126, 251, 0.06);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dropzone-icon {
  color: var(--gray-400);
}

.dropzone.drag-over .dropzone-icon {
  color: var(--accent);
}

.dropzone-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
}

.dropzone-or {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 400;
}

.btn-browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: inset 0 0 6px 3px rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}

.btn-browse:hover {
  box-shadow: inset 0 0 8px 4px rgba(255, 255, 255, 0.55);
}

.btn-browse:active {
  transform: scale(0.98);
}

.dropzone-hint {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 400;
}

/* File selected state */
.file-selected {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.file-selected[hidden] {
  display: none;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  background: #fff;
}

.file-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.file-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.file-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-size: 12px;
  color: var(--gray-500);
}

.file-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  transition: color 0.15s ease, background-color 0.15s ease;
  flex-shrink: 0;
}

.file-remove:hover {
  color: #ef4444;
  background: #fee2e2;
}

/* CTA button (reused from landing page) */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  padding-left: 32px;
  padding-right: 32px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  border: 1px solid var(--accent);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 6px 3px rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.btn-cta:hover {
  box-shadow: inset 0 0 8px 4px rgba(255, 255, 255, 0.55);
}

.btn-cta:active {
  transform: scale(0.98);
}

.btn-cta .cta-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Error banner */
.error-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  margin-top: 16px;
}

.error-banner[hidden] {
  display: none;
}

.error-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #991b1b;
  font-size: 14px;
  font-weight: 500;
}

.error-content svg {
  flex-shrink: 0;
}

.error-retry {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #991b1b;
  cursor: pointer;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.error-retry:hover {
  background: rgba(153, 27, 27, 0.08);
}

/* Footer note */
.upload-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 400;
}

/* ===== PROCESSING VIEW ===== */
.view-processing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
}

.view-processing[hidden] {
  display: none;
}

.view-processing .container {
  display: flex;
  justify-content: center;
}

.processing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.processing-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.processing-ring-svg {
  width: 100%;
  height: 100%;
  animation: processing-rotate 3s linear infinite;
}

@keyframes processing-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.processing-ring-progress {
  transition: stroke-dashoffset 1s ease;
}

.processing-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: processing-pulse 2s ease-in-out infinite;
}

@keyframes processing-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.processing-status {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  text-align: center;
}

.processing-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.processing-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 500;
  transition: color 0.3s ease;
}

.processing-step.active {
  color: var(--accent);
}

.processing-step.done {
  color: #22c55e;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.processing-step.active .step-dot {
  background: var(--accent);
}

.processing-step.done .step-dot {
  background: #22c55e;
}

/* ===== RESULTS VIEW ===== */
.view-results .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1080px;
}

/* Two-column grid */
.results-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.results-card-biomarkers,
.results-card-plan {
  min-width: 0;
}

/* Biomarkers toggle (mobile only) */
.biomarkers-toggle {
  display: none;
  width: 100%;
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--gray-200);
  font-family: inherit;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
}

.biomarkers-toggle .results-label {
  pointer-events: none;
}

.toggle-chevron {
  color: var(--gray-400);
  transition: transform 0.2s ease;
}

.biomarkers-toggle.open .toggle-chevron {
  transform: rotate(180deg);
}

/* Desktop: hide toggle, show header */
.desktop-only {
  display: block;
}

/* Plan loading state */
.plan-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 24px;
}

.plan-loading[hidden] {
  display: none;
}

.plan-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: plan-spin 0.8s linear infinite;
}

@keyframes plan-spin {
  to { transform: rotate(360deg); }
}

.plan-loading-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
}

/* Plan error state */
.plan-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  background: #fef2f2;
  border-top: 1px solid #fecaca;
}

.plan-error[hidden] {
  display: none;
}

.plan-error-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #991b1b;
  font-size: 14px;
  font-weight: 500;
}

.plan-error-content svg {
  flex-shrink: 0;
}

.plan-retry-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #991b1b;
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.plan-retry-btn:hover {
  background: rgba(153, 27, 27, 0.08);
}

/* Score Card */
.results-score-card {
  border-radius: 24px;
  background: #fff;
  padding: 28px 24px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.06), 0 20px 50px -10px var(--accent-glow);
}

.results-score-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.results-score-ring {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.score-ring-svg {
  width: 100%;
  height: 100%;
}

.score-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 30px;
}

.score-number {
  font-family: 'Exposure', Georgia, serif;
  font-variation-settings: "EXPO" -10;
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}

.score-max {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}

.results-score-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.results-score-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
}

.score-headline {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

.results-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.results-marker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 500;
}

.marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.marker-optimal {
  background: #22c55e;
}

.marker-normal {
  background: #3b82f6;
}

.marker-attention {
  background: #f59e0b;
}

.marker-critical {
  background: #ef4444;
}

/* Results Cards */
.results-card {
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: #fff;
  overflow: hidden;
}

.results-card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.results-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.results-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 0;
  padding: 8px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--gray-200);
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.category-tab:hover {
  color: var(--black);
  background: rgba(0, 0, 0, 0.03);
}

.category-tab.active {
  color: var(--accent);
  background: rgba(20, 126, 251, 0.08);
}

/* Biomarkers Table */
.biomarkers-table {
  display: flex;
  flex-direction: column;
}

.biomarker-row {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  gap: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.biomarker-row:last-child {
  border-bottom: none;
}

.biomarker-row[hidden] {
  display: none;
}

.biomarker-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  min-width: 80px;
  white-space: nowrap;
}

.biomarker-value {
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}

.biomarker-value.optimal {
  background: #dcfce7;
  color: #15803d;
}

.biomarker-value.normal {
  background: #dbeafe;
  color: #1e40af;
}

.biomarker-value.attention {
  background: #fef3c7;
  color: #92400e;
}

.biomarker-value.critical {
  background: #fee2e2;
  color: #991b1b;
}

.biomarker-range {
  font-size: 11px;
  color: var(--gray-500);
  margin-left: auto;
  white-space: nowrap;
}

.biomarker-note {
  font-size: 11px;
  color: var(--gray-500);
  display: none;
}

/* Show note on rows that have attention/critical status */
.biomarker-row.has-note .biomarker-note {
  display: block;
}

/* Expandable biomarker row layout */
.biomarker-main {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.biomarker-extra {
  padding: 0 24px 12px 24px;
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Category group header */
.category-group-header {
  padding: 10px 24px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  background: #fafafa;
  border-bottom: 1px solid var(--gray-200);
}

/* ===== PLAN STYLES ===== */
.plan-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-group-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plan-group-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
}

.plan-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.plan-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.plan-item:last-child {
  border-bottom: none;
}

.plan-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 2px;
}

.plan-item-detail {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Plan Timeline */
.plan-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.plan-week {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.plan-week:last-child {
  border-bottom: none;
}

.week-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  min-width: 70px;
}

.week-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ===== DISCLAIMER ===== */
.disclaimer-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid var(--gray-200);
}

.disclaimer-card svg {
  flex-shrink: 0;
  color: var(--gray-400);
  margin-top: 1px;
}

.disclaimer-card p {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== RESULTS ACTIONS ===== */
.results-actions {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  background: #fff;
  color: var(--black);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--gray-400);
  background: #fafafa;
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  padding: 32px 24px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015px;
  color: rgba(0, 0, 0, 0.5);
}

.footer-center {
  color: rgba(0, 0, 0, 0.5);
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease-out;
}

.footer-right a:hover {
  color: var(--black);
}

/* ===== SCORE RING ANIMATION ===== */
#score-ring-fill {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESPONSIVE — DESKTOP ===== */
@media (min-width: 768px) {
  .navbar {
    padding-top: 28px;
  }

  .nav-glass {
    border-radius: 9999px;
  }

  .view {
    padding-top: 140px;
  }

  .upload-title {
    font-size: 40px;
  }

  .upload-subtitle {
    font-size: 17px;
  }

  .dropzone {
    padding: 64px 32px;
  }

  .results-score-card {
    padding: 32px 28px;
  }

  .results-score-ring {
    width: 110px;
    height: 110px;
  }

  .score-number {
    font-size: 32px;
  }

  .score-value {
    padding-top: 34px;
  }

  .score-max {
    font-size: 14px;
  }

  /* Desktop: biomarkers collapsible always visible */
  .biomarkers-collapsible {
    display: block !important;
  }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 767px) {
  .footer-content {
    flex-direction: column-reverse;
    gap: 12px;
    text-align: center;
  }

  .footer-right { order: 1; }
  .footer-center { order: 2; }
  .footer-left { order: 3; }

  .btn-cta {
    padding-left: 28px;
    padding-right: 28px;
    height: 52px;
    font-size: 16px;
  }

  .results-score-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .results-score-ring {
    align-self: center;
  }

  .biomarker-row {
    padding: 12px 16px;
  }

  .category-group-header {
    padding: 10px 16px 6px;
  }

  /* Mobile: single column, plan first */
  .results-columns {
    grid-template-columns: 1fr;
  }

  .results-card-biomarkers {
    order: 1;
  }

  .results-card-plan {
    order: 2;
  }

  /* Mobile: hide desktop header, show toggle */
  .desktop-only {
    display: none;
  }

  .biomarkers-toggle {
    display: flex;
  }

  /* Mobile: biomarkers collapsed by default */
  .biomarkers-collapsible {
    display: none;
  }

  .biomarkers-collapsible.open {
    display: block;
  }
}
