/* =========================================================
  BRFSS Insights — Premium Dark Portal Theme
   ========================================================= */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Institutional Light Palette */
  --bg-base: #f4f6ff;
  /* Very light cool grey */
  --bg-surface: #ffffff;
  --bg-surface-solid: #ffffff;
  --border-subtle: #e2e8f0;
  --border-accent: #bae6fd;
  --border-hover: #94a3b8;

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-cyan: #2a5c82;
  --accent-indigo: #334155;
  --accent-green: #059669;
  --accent-emerald: #10b981;
  --accent-amber: #d97706;
  --accent-red: #dc2626;

  --input-bg: #f8fafc;
  --input-border: #cbd5e1;

  --form-section-border: #e2e8f0;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-heading: 'Source Serif 4', Georgia, serif;

  /* Spacing */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  /* Premium Dark Portal Theme */
  --bg-base: #0a0e1a;
  --bg-surface: rgba(15, 23, 42, 0.65);
  --bg-surface-solid: #111827;
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-accent: rgba(56, 189, 248, 0.3);
  --border-hover: rgba(148, 163, 184, 0.36);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #5c8eb8;
  /* Muted slate blue */
  --accent-indigo: #64748b;
  --accent-green: #34d399;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;
  --accent-red: #f87171;

  --input-bg: rgba(15, 23, 42, 0.6);
  --input-border: var(--border-subtle);

  --form-section-border: rgba(148, 163, 184, 0.12);
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-primary);
}

.theme-toggle:focus-visible,
.btn-voice:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.clinic-finder__btn:focus-visible,
.resource-pill:focus-visible,
.clinic-card__meta a:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-family);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Ambient Background Orbs --- */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 20s ease-in-out infinite alternate;
}

.bg-orb--1 {
  width: 600px;
  height: 600px;
  background: var(--accent-indigo);
  top: -200px;
  left: -100px;
  display: none;
}

.bg-orb--2 {
  width: 500px;
  height: 500px;
  background: var(--accent-cyan);
  bottom: -150px;
  right: -100px;
  animation-delay: -7s;
  display: none;
}

.bg-orb--3 {
  width: 350px;
  height: 350px;
  background: var(--accent-green);
  top: 40%;
  left: 50%;
  opacity: 0.08;
  animation-delay: -13s;
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(40px, -30px) scale(1.08);
  }
}

/* --- Top Bar --- */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.top-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: max(2rem, env(safe-area-inset-left)) max(2rem, env(safe-area-inset-right));
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar__logo svg {
  display: block;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.3));
  transition: filter 0.4s ease;
}

.top-bar__logo:hover svg {
  filter: drop-shadow(0 0 12px rgba(129, 140, 248, 0.5));
}

.top-bar__title {
  font-size: 1.25rem;
  font-family: var(--font-family-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.top-bar__title--accent {
  color: var(--accent-cyan);
}

.top-bar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
}

.top-bar__badge--model {
  color: var(--accent-cyan);
  border-color: var(--border-accent);
  background: rgba(56, 189, 248, 0.06);
}

/* --- Main Layout --- */
.main-layout {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 3rem;
  align-items: start;
  min-height: calc(100vh - 56px - 60px);
}

.top-bar__inner,
.main-layout,
.tool-panel,
.card,
.form-row,
.card__header {
  min-width: 0;
}

/* --- Hero Panel --- */
.hero-panel {
  position: sticky;
  top: 80px;
}

.hero-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.hero-panel__eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
}

.hero-panel__heading {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-family: var(--font-family-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-panel__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
}

.hero-panel__list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 6px 0 12px;
  max-width: 460px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Staggered entrance animation for hero content */
.hero-panel__inner>* {
  animation: slideUp 0.6s var(--ease-out) both;
}

.hero-panel__inner>*:nth-child(1) {
  animation-delay: 0.05s;
}

.hero-panel__inner>*:nth-child(2) {
  animation-delay: 0.15s;
}

.hero-panel__inner>*:nth-child(3) {
  animation-delay: 0.25s;
}

.hero-panel__inner>*:nth-child(4) {
  animation-delay: 0.35s;
}

.hero-panel__inner>*:nth-child(5) {
  animation-delay: 0.45s;
}

.hero-panel__inner>*:nth-child(6) {
  animation-delay: 0.55s;
}

.hero-panel__section {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hero-panel__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hero-panel__section-title svg {
  color: var(--accent-indigo);
}

.hero-panel__disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.hero-panel__disclaimer svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--text-muted);
}

/* --- Cards --- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.card:hover {
  border-color: rgba(148, 163, 184, 0.2);
}

.card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.card__header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
}

.card__title {
  font-size: 1.1rem;
  font-family: var(--font-family-heading);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.btn-voice {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.btn-voice:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-voice.is-listening {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
  animation: pulse-listening 2s infinite;
}

@keyframes pulse-listening {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.highlight-voice {
  position: relative;
  background: rgba(56, 189, 248, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin: -8px;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.5);
  transition: all 0.3s ease;
  z-index: 10;
}

.error-highlight {
  position: relative;
  background: rgba(239, 68, 68, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin: -8px;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5);
  transition: all 0.3s ease;
  z-index: 10;
}

/* --- Form Fieldsets --- */
.form-section {
  border: 1px solid var(--form-section-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem 0;
  margin-bottom: 24px;
  background: transparent;
}

.form-section__title {
  font-family: var(--font-family-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0 8px;
  background: var(--bg-surface);
}

.form-section__intro {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 12px;
  padding: 0;
}

/* --- Form --- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row--full {
  grid-template-columns: 1fr;
}

.form-row--height {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

.form-row--toggles {
  margin-top: 4px;
}

/* BMI preview chip */
.bmi-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin-bottom: 16px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  min-width: 72px;
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.bmi-preview--active {
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.1);
}

.bmi-preview__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bmi-preview__value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.tooltip-term {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: help;
  text-decoration: underline dotted var(--text-muted);
  text-underline-offset: 3px;
}

.tooltip-term:hover {
  text-decoration-color: var(--accent-cyan);
}

.tooltip-term::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  z-index: 50;
}

.tooltip-term:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

.tooltip-icon {
  width: 13px;
  height: 13px;
  color: var(--accent-cyan);
  opacity: 0.8;
}

.form-group__unit {
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input[type="number"],
.form-group input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
  appearance: textfield;
}

.form-group select {
  width: 100%;
  padding: 10px 42px 10px 14px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Custom chevron keeps selects visually consistent across browsers. */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-group select:hover {
  border-color: var(--border-hover);
}

.form-group select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.form-group select[aria-invalid="true"] {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16);
}

.form-group select option {
  color: var(--text-primary);
  background: var(--bg-surface-solid);
}

/* Keep the unselected "Select one" state visually muted. */
.form-group select:required:invalid {
  color: var(--text-muted);
}

.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.form-group input[type="number"]::placeholder,
.form-group input[type="text"]::placeholder {
  color: var(--text-muted);
}

.form-group input[type="number"]:focus,
.form-group input[type="text"]:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.form-group input[aria-invalid="true"] {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16);
}

/* Toggle buttons */
.toggle-group {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.form-row--full .toggle-group {
  width: 100%;
  max-width: 320px;
}

.toggle-option {
  flex: 1;
  cursor: pointer;
}

.toggle-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-option__label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease-out);
}

.toggle-option input[type="radio"]:checked+.toggle-option__label {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.1);
}

.toggle-option:hover .toggle-option__label {
  border-color: rgba(148, 163, 184, 0.25);
}

.toggle-option input[type="radio"]:focus-visible+.toggle-option__label {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3);
  border-color: var(--accent-cyan);
}

/* Consent section styling */
.form-consent {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 24px;
}

.checkbox-container {
  display: flex;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  user-select: none;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 1px;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.checkbox-container:hover input~.checkmark {
  border-color: rgba(148, 163, 184, 0.4);
}

.checkbox-container input:focus-visible~.checkmark {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
  border-color: var(--accent-cyan);
}

.checkbox-container input:checked~.checkmark {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked~.checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid rgba(15, 23, 42, 0.9);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Submit */
.form-submit-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 0;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 0;
  margin-top: 8px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: var(--accent-cyan);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), filter 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary[data-loading="true"] {
  opacity: 0.92;
  cursor: progress;
}

.btn-primary[data-loading="true"] svg {
  animation: spin 0.9s linear infinite;
}

.btn-primary svg {
  transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover svg {
  transform: rotate(90deg);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* --- Form Progress Bar --- */
.form-progress {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px 6px;
  margin: 8px -1.75rem -1.75rem;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  background: var(--bg-surface-solid);
  border-top: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.form-progress__track {
  flex: 1;
  height: 6px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 100px;
  overflow: hidden;
}

.form-progress__fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: linear-gradient(90deg, #34d399, #6ee7b7, #a7f3d0);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-progress__fill[data-complete="true"] {
  background: linear-gradient(90deg, #22c55e, #4ade80, #86efac);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.form-progress__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* --- Results Card --- */
.card--result {
  margin-top: 16px;
  border-color: var(--border-accent);
  animation: slideUp 0.5s var(--ease-out) both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gauge */
.gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 4px;
}

.gauge-svg {
  width: 200px;
  height: 120px;
}

.gauge-track,
.gauge-fill {
  stroke-linecap: round;
}

.gauge-fill {
  transition: stroke-dashoffset 1s var(--ease-out);
}

.gauge-value {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: -20px;
  color: var(--text-primary);
}

.gauge-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Risk Badge */
.risk-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
}

.risk-badge__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.15);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }
}

.risk-badge__text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.risk-badge__sublabel {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Risk colors */
.risk-badge--low .risk-badge__dot {
  background: var(--accent-green);
}

.risk-badge--low .risk-badge__text {
  color: var(--accent-green);
}

.risk-badge--moderate .risk-badge__dot {
  background: var(--accent-amber);
}

.risk-badge--moderate .risk-badge__text {
  color: var(--accent-amber);
}

.risk-badge--high .risk-badge__dot {
  background: var(--accent-red);
}

.risk-badge--high .risk-badge__text {
  color: var(--accent-red);
}

/* --- Explainability Panel --- */
.explain-panel {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.explain-panel__title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.explain-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.explain-bar {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(120px, 1fr);
  align-items: start;
  gap: 12px;
  animation: fadeInBar 0.4s var(--ease-out) both;
}

.explain-bar:nth-child(1) {
  animation-delay: 0.1s;
}

.explain-bar:nth-child(2) {
  animation-delay: 0.2s;
}

.explain-bar:nth-child(3) {
  animation-delay: 0.3s;
}

.explain-bar:nth-child(4) {
  animation-delay: 0.4s;
}

.explain-bar:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes fadeInBar {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.explain-bar__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.explain-bar__track {
  height: 8px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.08);
  overflow: hidden;
  position: relative;
  margin-top: 4px;
}

.explain-bar__fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s var(--ease-out);
  min-width: 2px;
}

.explain-bar__fill--positive {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.6), var(--accent-red));
}

.explain-bar__fill--negative {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.6), var(--accent-green));
}

.explain-bar__value {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 48px;
  text-align: right;
  margin-top: 1px;
}

.explain-bar__value--positive {
  color: var(--accent-red);
}

.explain-bar__value--negative {
  color: var(--accent-green);
}

.explain-panel__note {
  margin-top: 16px;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--text-muted);
  padding: 10px 14px;
  background: rgba(148, 163, 184, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* --- What-If Scenario Card --- */
.card--whatif {
  margin-top: 16px;
  border-color: rgba(245, 158, 11, 0.25);
  animation: slideUp 0.5s var(--ease-out) both;
  animation-delay: 0.1s;
}

.card__header-icon--whatif {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
}

.whatif-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.whatif-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.whatif-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.whatif-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.whatif-group__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.whatif-group__value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-amber);
  font-variant-numeric: tabular-nums;
}

/* Base styling for our range sliders */
.whatif-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 4px;
  outline: none;
}

.whatif-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-amber);
  cursor: pointer;
  transition: transform 0.1s;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.whatif-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.whatif-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent-amber);
  position: sticky;
  bottom: 24px;
  z-index: 10;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.whatif-result__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.whatif-result__value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.whatif-result__badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 12px;
}

/* --- Health Insights Card --- */
.card--insights {
  margin-top: 16px;
  border-color: rgba(129, 140, 248, 0.25);
  animation: slideUp 0.5s var(--ease-out) both;
  animation-delay: 0.15s;
}

.card__header-icon--insights {
  background: rgba(129, 140, 248, 0.12);
  color: var(--accent-indigo);
}

/* Summary callout */
.insights-summary {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.insights-summary--low {
  background: rgba(52, 211, 153, 0.06);
  border-left: 3px solid var(--accent-green);
}

.insights-summary--moderate {
  background: rgba(251, 191, 36, 0.06);
  border-left: 3px solid var(--accent-amber);
}

.insights-summary--high {
  background: rgba(248, 113, 113, 0.06);
  border-left: 3px solid var(--accent-red);
}

.insights-summary strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Factor insight mini-cards */
.insights-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.insight-card {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-cyan);
  animation: slideUp 0.4s var(--ease-out) both;
}

.insight-card:nth-child(1) {
  animation-delay: 0.2s;
}

.insight-card:nth-child(2) {
  animation-delay: 0.35s;
}

.insight-card:nth-child(3) {
  animation-delay: 0.5s;
}

.insight-card--risk {
  border-left-color: var(--accent-red);
}

.insight-card--protective {
  border-left-color: var(--accent-green);
}

.insight-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.insight-card__icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.insight-card__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.insight-card__body {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.insight-card__body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.insight-card__source {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.insight-card__source:hover {
  color: var(--accent-indigo);
}

/* Resources section */
.insights-resources {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.insights-resources__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.insights-resources__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
}

.resource-pill:hover {
  color: var(--accent-cyan);
  border-color: var(--border-accent);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-1px);
}

.resource-pill__icon {
  font-size: 0.85rem;
  line-height: 1;
}

/* Clinic Finder */
.clinic-finder {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.clinic-finder__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.clinic-finder__desc {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.clinic-finder__search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.clinic-finder__input {
  flex: 1;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.clinic-finder__input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

.clinic-finder__input::placeholder {
  color: var(--text-muted);
}

.clinic-finder__btn {
  padding: 9px 20px;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--bg-card);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.clinic-finder__btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.clinic-finder__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.clinic-finder__source {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.clinic-finder__source a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.clinic-finder__source a:hover {
  text-decoration: underline;
}

/* Clinic result cards */
.clinic-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clinic-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-emerald);
  animation: slideUp 0.35s var(--ease-out) both;
}

.clinic-card:nth-child(1) {
  animation-delay: 0.05s;
}

.clinic-card:nth-child(2) {
  animation-delay: 0.1s;
}

.clinic-card:nth-child(3) {
  animation-delay: 0.15s;
}

.clinic-card:nth-child(4) {
  animation-delay: 0.2s;
}

.clinic-card:nth-child(5) {
  animation-delay: 0.25s;
}

.clinic-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.clinic-card__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.clinic-card__distance {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  padding: 2px 8px;
  border-radius: 100px;
  white-space: nowrap;
}

.clinic-card__address {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 6px;
}

.clinic-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.7rem;
}

.clinic-card__meta a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s;
}

.clinic-card__meta a:hover {
  color: var(--accent-indigo);
  text-decoration: underline;
}

.clinic-card__meta span {
  color: var(--text-secondary);
}

.clinic-results--loading {
  text-align: center;
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.clinic-results--error {
  padding: 12px;
  font-size: 0.78rem;
  color: var(--accent-red);
  background: rgba(248, 113, 113, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 113, 113, 0.15);
}

.clinic-results--empty {
  padding: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* Disclaimer */
.insights-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.insights-disclaimer svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--text-muted);
}

/* --- Error Card --- */
.card--error {
  margin-top: 16px;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.06);
  animation: slideUp 0.4s var(--ease-out) both;
}

.card--error__inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--accent-red);
  font-size: 0.88rem;
  line-height: 1.5;
}

.card--error__inner svg {
  flex-shrink: 0;
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

/* --- Utility --- */
.hidden {
  display: none !important;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .main-layout {
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-inline: max(1.25rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-right));
    gap: 1.6rem;
  }

  .hero-panel,
  .hero-panel__inner {
    display: contents;
  }

  /* Reorder mobile layout to push info cards beneath the form */
  .hero-panel__eyebrow {
    order: 1;
  }

  .hero-panel__heading {
    order: 2;
  }

  .tool-panel {
    order: 3;
    margin-bottom: 2rem;
  }

  .hero-panel__section {
    order: 4;
  }

  .hero-panel__disclaimer {
    order: 5;
  }

  .hero-panel__heading {
    font-size: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row--height {
    grid-template-columns: 1fr 1fr auto;
  }

  .top-bar__inner {
    padding-inline: max(1.25rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-right));
  }

  .tool-panel,
  .card {
    width: 100%;
  }

  .card__header {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .card__header > div {
    min-width: 0;
  }

  .card__title {
    overflow-wrap: anywhere;
  }

  .btn-voice {
    margin-left: auto;
  }

}

@media (max-width: 500px) {
  .hero-panel__stats {
    flex-direction: column;
  }

  .stat-chip {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }

  .card {
    padding: 1.25rem;
  }

  .form-progress {
    margin: 8px -1.25rem -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .form-progress__label {
    min-width: 72px;
    font-size: 0.66rem;
  }

  .toggle-group {
    gap: 6px;
  }

  .explain-bar {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .explain-bar__track {
    margin-top: 0;
  }

  .explain-bar__value {
    text-align: left;
    margin-top: 0;
  }
}

/* --- Doctor Questions --- */
.doctor-questions {
  margin: 32px 0 24px;
  padding: 24px;
  background: rgba(52, 211, 153, 0.05);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-md);
}

.doctor-questions__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.doctor-questions__list {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.doctor-questions__list li {
  margin-bottom: 8px;
}

/* --- Action Bar --- */
.action-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  margin-bottom: 32px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.btn-secondary:hover {
  background: var(--input-bg);
  border-color: var(--text-muted);
}

/* --- Print Styles --- */
@page {
  size: letter;
  margin: 0.35in 0.4in;
}

@media print {

  .hide-on-print,
  .top-bar,
  .hero-panel,
  .card--form,
  .card--whatif,
  .clinic-finder,
  .insights-cards,
  .insights-resources,
  .action-bar,
  #themeToggle {
    display: none !important;
  }

  /* Hide doctor questions when JS has set display:none */
  .doctor-questions[style*="display: none"] {
    display: none !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body {
    background: white !important;
    color: black !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .main-layout {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  .tool-panel {
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 4px 0 !important;
    page-break-inside: avoid;
    background: transparent !important;
  }

  /* Force side-by-side layout for Gauge and Bars to save space */
  #result.card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
  }

  .card__header {
    width: 100%;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .card__title {
    font-size: 1rem !important;
    margin-bottom: 2px !important;
  }

  .risk-badge {
    margin: 0 !important;
    padding: 2px 8px !important;
    width: 100%;
  }

  .gauge-container {
    width: 42%;
    page-break-inside: avoid;
    transform: scale(0.65);
    transform-origin: top left;
    margin: 0 !important;
    padding: 0 !important;
    height: 80px !important;
  }

  .gauge-svg {
    width: 100% !important;
  }

  .gauge-value {
    font-size: 1.3rem !important;
  }

  .gauge-label {
    font-size: 0.7rem !important;
  }

  .explain-panel {
    width: 55%;
    margin-top: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  }

  .explain-bar {
    margin-bottom: 1px !important;
    gap: 4px !important;
  }

  .explain-bar__label {
    font-size: 0.75rem !important;
  }

  .explain-bar__track {
    height: 8px !important;
  }

  .explain-bar__value {
    font-size: 0.7rem !important;
  }

  .explain-panel__title {
    font-size: 0.9rem !important;
    margin-bottom: 3px !important;
  }

  .explain-panel__note {
    font-size: 0.65rem !important;
    line-height: 1.15 !important;
    margin-top: 3px !important;
  }

  .doctor-questions {
    margin: 4px 0 !important;
    padding: 8px 10px !important;
    border: 1px solid #ccc !important;
    background: transparent !important;
    page-break-inside: avoid;
  }

  .doctor-questions__title {
    font-size: 0.85rem !important;
    margin-bottom: 4px !important;
  }

  .doctor-questions__list {
    margin: 0 !important;
    padding-left: 18px !important;
    font-size: 0.75rem !important;
    line-height: 1.25 !important;
  }

  .doctor-questions__list li {
    margin-bottom: 2px !important;
  }

  .insights-summary {
    font-size: 0.75rem !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
    padding: 6px 8px !important;
  }

  .insights-disclaimer {
    font-size: 0.6rem !important;
    line-height: 1.15 !important;
    padding: 6px 8px !important;
    margin-top: 2px !important;
  }

  .footer {
    display: none !important;
  }
}