:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef6f7;
  --ink: #13202f;
  --muted: #64748b;
  --line: #d8e1ea;
  --brand: #146c73;
  --brand-dark: #0c4a50;
  --accent: #e4a11b;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(20, 45, 70, 0.11);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 34rem),
    linear-gradient(180deg, #f8fbfd 0%, var(--bg) 42%, #eef3f8 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  min-height: 100vh;
  padding: 28px 0 48px;
}

.container {
  max-width: 1180px;
}

.hero-panel {
  background:
    linear-gradient(135deg, #d9ecff 0%, #eef7ff 54%, #d6eff6 100%),
    linear-gradient(90deg, rgba(47, 116, 181, 0.08) 1px, transparent 1px);
  background-size: auto, 42px 42px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  margin-bottom: 28px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  position: relative;
}

.hero-panel::after {
  background: rgba(47, 116, 181, 0.16);
  content: "";
  height: 180%;
  position: absolute;
  right: 22%;
  top: -40%;
  transform: rotate(18deg);
  width: 1px;
}

.eyebrow {
  color: #d9a441;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(1.8rem, 3.25vw, 3.25rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 850px;
}

.hero-copy {
  color: #40566f;
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
}

.hero-metrics {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.metric-pill {
  align-items: center;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px 18px;
}

.metric-value {
  color: #1d4f86;
  font-size: 1.55rem;
  font-weight: 800;
}

.metric-label {
  color: #4a5f77;
  font-size: 0.92rem;
  text-align: right;
}

.section-heading {
  margin-bottom: 18px;
}

.section-title {
  color: var(--ink);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
}

.small-title {
  font-size: 1.35rem;
}

.section-subtitle,
.panel-hint,
.field-hint {
  color: var(--muted);
}

.section-subtitle {
  font-size: 1rem;
  margin: 8px 0 0;
}

.work-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 45, 70, 0.08);
  height: 100%;
  padding: 22px;
}

.flow-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 45, 70, 0.08);
  margin-bottom: 24px;
  padding: 22px;
}

.clinical-flow {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr 1.25fr 1fr;
  margin-bottom: 14px;
}

.competitive-flow {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 14px;
}

.flow-node {
  align-items: center;
  background: #f8fbfd;
  border: 1px solid #cfdbe7;
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 76px;
  padding: 14px;
  position: relative;
  text-align: center;
}

.clinical-flow > .flow-node:not(.cost-node)::after,
.competitive-flow > .flow-node:not(.cost-node)::after,
.flow-split::after {
  color: var(--brand);
  content: "→";
  font-size: 1.5rem;
  font-weight: 900;
  position: absolute;
  right: -23px;
  top: 50%;
  transform: translateY(-50%);
}

.flow-split {
  display: grid;
  gap: 10px;
  position: relative;
}

.split-node {
  min-height: 56px;
}

.warning-node {
  background: #fff7e6;
  border-color: #f0c36a;
  color: #7a4b00;
}

.cost-node {
  background: #e8f3f4;
  border-color: rgba(20, 108, 115, 0.35);
  color: var(--brand-dark);
}

.flow-caption {
  color: #435166;
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
}

.feature-link-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: -10px 0 22px;
}

.top-feature-link {
  margin: 0 0 14px;
}

.feature-link,
.back-link {
  background: #1d4f86;
  border: 1px solid #1d4f86;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.feature-link:hover,
.back-link:hover {
  background: #163f6b;
  border-color: #163f6b;
  color: #fff;
}

.accent-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f1fafa 100%);
  border-color: rgba(20, 108, 115, 0.26);
}

.dictionary-panel {
  margin-top: 18px;
}

.panel-heading-inline {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.step-badge {
  align-items: center;
  background: #e8f3f4;
  border: 1px solid rgba(20, 108, 115, 0.22);
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.step-badge.selected {
  background: var(--brand);
  color: #fff;
}

.panel-title {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
}

.panel-hint {
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 4px 0 0;
}

.lab-list {
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 300px;
  list-style: none;
  margin: 0;
  overflow-y: auto;
  padding: 10px;
}

.lab-list li,
#lista-disponibles li,
#lista-seleccionados li {
  align-items: center;
  background: #fff;
  border: 1px solid #e3ebf2;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-weight: 650;
  justify-content: space-between;
  margin-bottom: 8px;
  min-height: 42px;
  padding: 10px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lab-list li:hover,
#lista-disponibles li:hover,
#lista-seleccionados li:hover {
  border-color: rgba(20, 108, 115, 0.5);
  box-shadow: 0 8px 18px rgba(20, 45, 70, 0.1);
  transform: translateY(-1px);
}

#lista-disponibles li::after {
  color: var(--brand);
  content: "+";
  font-size: 1.15rem;
  font-weight: 800;
}

#lista-seleccionados li::after {
  color: var(--danger);
  content: "x";
  font-size: 0.95rem;
  font-weight: 800;
}

.toggle-button {
  border: 0;
  box-shadow: 0 10px 24px rgba(228, 161, 27, 0.2);
  font-weight: 800;
}

.field-title {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  margin: 20px 0 6px;
}

.help-label {
  border-bottom: 1px dotted rgba(29, 79, 134, 0.65);
  cursor: help;
  display: inline-block;
}

.option-list {
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.option-list label {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e3ebf2;
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-weight: 650;
  gap: 8px;
  line-height: 1.35;
  margin: 0;
  padding: 10px 12px;
}

.field-hint {
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.form-control,
.Select-control,
.dash-dropdown {
  border-radius: 8px;
}

.code-area {
  background: #fbfdff;
  border: 1px solid #cfdbe7;
  border-radius: 8px;
  color: #243449;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  min-height: 200px;
  padding: 14px;
  resize: vertical;
  width: 100%;
}

.code-area:focus {
  background: #ffffff;
  border-color: rgba(20, 108, 115, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(20, 108, 115, 0.12);
  color: #243449;
}

.compact-area {
  min-height: 180px;
}

.short-area {
  min-height: 72px;
}

.action-row,
.analysis-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button-group {
  margin-bottom: 12px;
}

.analysis-button {
  box-shadow: 0 12px 28px rgba(20, 108, 115, 0.22);
  font-weight: 800;
  padding: 0.72rem 1.1rem;
}

.status-message {
  color: var(--brand-dark);
  font-weight: 750;
}

.results-area {
  margin-top: 24px;
}

.results-area > h5,
.result-title {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
  margin: 26px 0 12px;
}

.graph-card,
.js-plotly-plot {
  background: #fff;
  border-radius: 8px;
}

.results-area .dash-graph {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 45, 70, 0.08);
  margin-bottom: 10px;
  padding: 10px;
}

.result-caption {
  background: #f8fbfd;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  color: #435166;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 26px;
  padding: 12px 14px;
}

.dei-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 45, 70, 0.08);
  padding: 22px;
}

.complete-message {
  background: #e9f7ef;
  border: 1px solid #b7e4c7;
  border-radius: 8px;
  color: #17633a;
  font-weight: 800;
  margin-top: 18px;
  padding: 14px 16px;
}

.concept-divider {
  background: linear-gradient(180deg, #eef7ff 0%, #ffffff 100%);
  border: 1px solid rgba(96, 165, 250, 0.38);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 45, 70, 0.08);
  margin: 34px 0 18px;
  padding: 22px;
}

.dash-table-container {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 45, 70, 0.08);
  margin-bottom: 24px;
  overflow: hidden;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-secondary {
  background: #334155;
  border-color: #334155;
}

.healthdecision-page {
  --hd-ink: #102033;
  --hd-teal: #146c73;
  --hd-blue: #1d4f86;
  --hd-gold: #c78212;
}

.hd-home-page {
  display: grid;
  gap: 18px;
}

.hd-home-header {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 45, 70, 0.08);
  display: grid;
  gap: 18px;
  padding: 18px;
}

.hd-app-name {
  color: var(--hd-ink);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0;
}

.hd-app-copy {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 5px 0 0;
  max-width: 780px;
}

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

.hd-stat-card {
  background: #f8fbfd;
  border: 1px solid #e3ebf2;
  border-radius: 8px;
  min-height: 92px;
  padding: 14px;
}

.hd-stat-value {
  color: var(--hd-blue);
  display: block;
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1;
}

.hd-stat-label {
  color: var(--hd-ink);
  display: block;
  font-size: 0.88rem;
  font-weight: 850;
  margin-top: 8px;
}

.hd-stat-hint {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 3px;
}

.hd-idea-tabs {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 45, 70, 0.08);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 8px;
}

.hd-idea-tab {
  align-items: center;
  background: #f8fbfd;
  border: 1px solid #e3ebf2;
  border-radius: 8px;
  color: #334155;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 850;
  gap: 7px;
  justify-content: center;
  line-height: 1.15;
  min-height: 48px;
  padding: 8px;
  text-align: center;
  white-space: normal;
}

.hd-idea-tab:hover,
.hd-idea-tab:focus {
  background: #eef6f7;
  border-color: rgba(20, 108, 115, 0.35);
  color: var(--hd-teal);
}

.hd-idea-tab.active {
  background: var(--hd-teal);
  border-color: var(--hd-teal);
  color: #ffffff;
}

.hd-tab-number {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: var(--hd-blue);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.72rem;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.hd-idea-tab.active .hd-tab-number {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.hd-selected-panel {
  min-height: 330px;
}

.hd-detail-heading {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.hd-detail-main {
  max-width: 820px;
}

.hd-detail-status {
  flex: 0 0 auto;
  margin-top: 2px;
}

.hd-detail-block {
  background: #f8fbfd;
  border: 1px solid #e3ebf2;
  border-radius: 8px;
  height: 100%;
  padding: 16px;
}

.hd-example-list,
.hd-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hd-example-chip {
  background: #ffffff;
  border: 1px solid #d8e1ea;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 8px 11px;
}

.hd-action-link {
  background: var(--hd-blue);
  border: 1px solid var(--hd-blue);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 850;
  padding: 9px 12px;
  text-decoration: none;
}

.hd-action-link:hover {
  background: #163f6b;
  border-color: #163f6b;
  color: #ffffff;
}

.hd-muted-action {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.hd-hero {
  background:
    linear-gradient(135deg, #e3f5f3 0%, #f6fbff 48%, #e8f0fb 100%),
    linear-gradient(90deg, rgba(20, 108, 115, 0.08) 1px, transparent 1px);
  background-size: auto, 38px 38px;
}

.hd-title {
  color: var(--hd-ink);
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0 0 18px;
}

.hd-section {
  margin-bottom: 28px;
}

.hd-module-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 45, 70, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 250px;
  padding: 20px;
}

.hd-card-topline {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.hd-status,
.hd-layer-badge {
  background: #eef6f7;
  border: 1px solid rgba(20, 108, 115, 0.24);
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 10px;
}

.hd-idea-number {
  color: var(--hd-blue);
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1;
}

.hd-card-link {
  color: var(--hd-blue);
  font-weight: 800;
  text-decoration: none;
}

.hd-card-link:hover {
  color: #163f6b;
  text-decoration: underline;
}

.hd-card-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.hd-card-link.secondary {
  color: var(--hd-teal);
}

.hd-module-kpi {
  align-items: baseline;
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.hd-module-metric {
  color: var(--hd-blue);
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
}

.hd-module-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.hd-card-title {
  color: var(--hd-ink);
  font-size: 1.14rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.hd-card-copy {
  color: #44546a;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.hd-data-panel {
  min-height: 360px;
}

.hd-layer-list,
.hd-priority-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.hd-layer-row {
  align-items: flex-start;
  background: #f8fbfd;
  border: 1px solid #e3ebf2;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  padding: 14px;
}

.hd-layer-badge {
  flex: 0 0 86px;
  justify-content: center;
}

.hd-layer-title {
  color: var(--hd-ink);
  font-size: 1rem;
  font-weight: 850;
  margin: 0 0 4px;
}

.hd-layer-copy {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
}

.hd-priority-row {
  background: #f8fbfd;
  border: 1px solid #e3ebf2;
  border-left: 4px solid var(--hd-blue);
  border-radius: 8px;
  color: var(--hd-ink);
  font-weight: 800;
  padding: 14px 16px;
}

.hd-priority-row.high {
  background: #fff8ea;
  border-left-color: var(--hd-gold);
}

.hd-roadmap {
  margin-top: 18px;
}

.hd-alert-copy {
  background: #fff8ea;
  border: 1px solid #f0c36a;
  border-left: 4px solid var(--hd-gold);
  border-radius: 8px;
  color: #684000;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.55;
  margin-top: 18px;
  padding: 16px;
}

.hd-detail-list {
  color: #44546a;
  display: grid;
  gap: 10px;
  line-height: 1.5;
  margin: 18px 0 0;
  padding-left: 20px;
}

.hd-detail-list li::marker {
  color: var(--hd-teal);
  font-weight: 800;
}

.hd-demo-panel {
  display: grid;
  gap: 18px;
}

.hd-demo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hd-filter-token {
  background: #f8fbfd;
  border: 1px solid #d8e1ea;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 8px 12px;
}

.hd-filter-token.active {
  background: #e8f3f4;
  border-color: rgba(20, 108, 115, 0.35);
  color: var(--hd-teal);
}

.hd-demo-kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.hd-demo-kpi {
  background: #f8fbfd;
  border: 1px solid #e3ebf2;
  border-radius: 8px;
  padding: 16px;
}

.hd-demo-kpi-value {
  color: var(--hd-blue);
  display: block;
  font-size: 1.7rem;
  font-weight: 850;
  line-height: 1;
}

.hd-demo-kpi-label {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.35;
  margin-top: 7px;
}

.hd-demo-table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  width: 100%;
}

.hd-demo-table th,
.hd-demo-table td {
  border-bottom: 1px solid #e3ebf2;
  color: #334155;
  font-size: 0.92rem;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.hd-demo-table th {
  background: #1d4f86;
  color: #ffffff;
  font-weight: 850;
}

.hd-demo-table tr:last-child td {
  border-bottom: 0;
}

.hd-priority-chip {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 5px 9px;
}

.hd-priority-chip.alta {
  background: #fff0cf;
  color: #684000;
}

.hd-priority-chip.media {
  background: #e8f3f4;
  color: var(--hd-teal);
}

.hd-demo-recommendation {
  background: #eef6f7;
  border: 1px solid rgba(20, 108, 115, 0.24);
  border-left: 4px solid var(--hd-teal);
  border-radius: 8px;
  padding: 16px;
}

@media (max-width: 767px) {
  .hd-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hd-idea-tabs {
    display: flex;
    overflow-x: auto;
  }

  .hd-idea-tab {
    flex: 0 0 168px;
  }

  .hd-detail-heading {
    display: grid;
  }

  .hd-layer-row {
    display: grid;
  }

  .hd-layer-badge {
    justify-content: flex-start;
    width: max-content;
  }

  .hd-demo-kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-shell {
    padding-top: 14px;
  }

  .hero-panel,
  .work-panel {
    padding: 20px;
  }

  .hero-panel::after {
    display: none;
  }

  .clinical-flow {
    gap: 22px;
    grid-template-columns: 1fr;
  }

  .competitive-flow {
    gap: 22px;
    grid-template-columns: 1fr;
  }

  .clinical-flow > .flow-node:not(.cost-node)::after,
  .competitive-flow > .flow-node:not(.cost-node)::after,
  .flow-split::after {
    bottom: -24px;
    content: "↓";
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
  }

  .feature-link-row {
    justify-content: stretch;
  }

  .feature-link,
  .back-link {
    justify-content: center;
    width: 100%;
  }

  .metric-pill {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .metric-label {
    text-align: left;
  }

  .action-row .btn,
  .analysis-row .btn {
    width: 100%;
  }
}
