:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #60716d;
  --line: #dbe8e4;
  --surface: #ffffff;
  --soft: #f5fbf8;
  --mint: #def7ec;
  --aqua: #17b8ae;
  --teal: #08766e;
  --teal-dark: #053f3c;
  --coral: #f46f5f;
  --coral-dark: #bd3e30;
  --gold: #c88a16;
  --blue: #246fe5;
  --violet: #6f55d8;
  --shadow: 0 18px 46px rgba(20, 37, 33, 0.11);
  --shadow-strong: 0 24px 70px rgba(20, 37, 33, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(23, 184, 174, 0.18), transparent 28%),
    radial-gradient(circle at 86% 5%, rgba(244, 111, 95, 0.16), transparent 26%),
    linear-gradient(135deg, #f7fcfa 0%, #eef8f5 46%, #fff9f4 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

button:hover {
  transform: translateY(-1px);
}

.app-shell {
  min-height: 100vh;
  padding: 24px;
}

.workspace {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(8, 118, 110, 0.16);
}

.brand-mark {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(8, 118, 110, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(224, 250, 242, 0.92)),
    linear-gradient(135deg, var(--teal), var(--aqua));
  box-shadow: 0 14px 30px rgba(8, 118, 110, 0.16);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after {
  content: "";
  position: absolute;
  background: var(--teal);
}

.brand-mark::before {
  width: 24px;
  height: 8px;
  border-radius: 8px;
}

.brand-mark::after {
  width: 8px;
  height: 24px;
  border-radius: 8px;
}

.brand-mark span::before {
  right: 11px;
  bottom: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--coral);
}

.brand-mark span::after {
  left: 10px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  color: var(--teal-dark);
  font-size: 1.26rem;
  line-height: 1;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.88;
}

h2 {
  max-width: 800px;
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 4vw, 3.7rem);
  line-height: 1;
}

h3 {
  margin-bottom: 16px;
  color: #1f2d29;
  font-size: 1.08rem;
}

h4 {
  color: #1f2d29;
}

p {
  color: var(--muted);
  line-height: 1.58;
}

.trust-pill,
.live-pill,
.network-pill,
.install-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(22, 32, 29, 0.08);
}

.trust-pill {
  border: 1px solid rgba(249, 115, 91, 0.38);
  color: var(--coral-dark);
}

.live-pill {
  border: 1px solid rgba(32, 184, 176, 0.34);
  color: var(--teal);
}

.network-pill {
  border: 1px solid rgba(36, 111, 229, 0.28);
  color: var(--blue);
}

.network-pill.offline {
  border-color: rgba(249, 115, 91, 0.35);
  color: var(--coral-dark);
  background: #fff7f5;
}

.install-button {
  border: 1px solid rgba(15, 118, 110, 0.34);
  color: #fff;
  background: var(--teal);
  cursor: pointer;
}

.install-button:hover {
  background: var(--teal-dark);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.52fr);
  align-items: stretch;
  gap: 24px;
  min-height: 430px;
  margin-bottom: 16px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(227, 249, 243, 0.92)),
    linear-gradient(120deg, rgba(36, 111, 229, 0.12), rgba(244, 111, 95, 0.12));
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
}

.hero-copy {
  display: grid;
  align-content: center;
  justify-items: start;
}

.hero-copy p {
  max-width: 700px;
  margin-bottom: 0;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 950;
  text-decoration: none;
}

.primary-link {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal), var(--aqua));
  box-shadow: 0 16px 28px rgba(8, 118, 110, 0.24);
}

.secondary-link {
  border: 1px solid rgba(8, 118, 110, 0.18);
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.88);
}

.inline-link {
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 950;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.hero-visual {
  display: grid;
  align-items: center;
}

.care-loop-card {
  display: grid;
  gap: 20px;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(5, 63, 60, 0.94), rgba(8, 118, 110, 0.92)),
    linear-gradient(135deg, rgba(36, 111, 229, 0.2), rgba(244, 111, 95, 0.18));
  box-shadow: 0 22px 44px rgba(5, 63, 60, 0.22);
}

.loop-status {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  padding: 8px 10px;
  color: #e7fff7;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-weight: 950;
}

.signal-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: min(230px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 28%, transparent 29%),
    conic-gradient(from 190deg, var(--aqua), var(--coral), var(--gold), var(--blue), var(--aqua));
}

.signal-ring::before {
  content: "CW";
  display: grid;
  place-items: center;
  width: 96px;
  aspect-ratio: 1;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #fff;
  font-size: 1.55rem;
  font-weight: 950;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.16);
}

.signal-ring span {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: var(--coral);
}

.signal-ring span:nth-child(1) {
  top: 24px;
  left: 38px;
}

.signal-ring span:nth-child(2) {
  right: 26px;
  top: 74px;
  background: var(--gold);
}

.signal-ring span:nth-child(3) {
  right: 62px;
  bottom: 26px;
  background: var(--blue);
}

.loop-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.loop-steps span {
  display: grid;
  gap: 4px;
  min-height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 11px;
  color: #eafff8;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 850;
}

.loop-steps strong {
  color: #93fff0;
  font-size: 0.74rem;
}

.overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.overview-strip article {
  display: grid;
  gap: 5px;
  min-height: 94px;
  border: 1px solid rgba(219, 232, 228, 0.92);
  border-radius: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(20, 37, 33, 0.08);
}

.overview-strip strong {
  color: var(--teal-dark);
  font-size: 0.98rem;
}

.overview-strip span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1.4;
}

.hero-meter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-meter span {
  display: grid;
  align-content: center;
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(22, 32, 29, 0.08);
}

.hero-meter strong {
  color: var(--teal-dark);
  font-size: 1rem;
}

.hero-meter small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.quick-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
  border: 1px solid rgba(220, 232, 227, 0.9);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(22, 32, 29, 0.08);
  backdrop-filter: blur(14px);
}

.quick-nav a {
  flex: 0 0 auto;
  min-height: 36px;
  border-radius: 7px;
  padding: 9px 13px;
  color: var(--teal-dark);
  background: var(--soft);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.quick-nav a:hover {
  color: #fff;
  background: var(--teal);
}

.quick-nav a.active,
.team-nav a.active,
.progress-rail a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  box-shadow: 0 10px 20px rgba(8, 118, 110, 0.18);
}

.app-section[hidden] {
  display: none !important;
}

.app-section {
  animation: workspaceFade 180ms ease both;
}

@keyframes workspaceFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

/* Final V1 frontend polish */
body {
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.92), rgba(248, 250, 252, 0.96) 38%, #ffffff 100%);
}

.app-shell {
  padding: 18px;
}

.workspace {
  width: min(1120px, 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: -4px 0 14px;
  border: 1px solid rgba(204, 251, 241, 0.75);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.08);
  backdrop-filter: blur(18px);
}

.brand-logo {
  border: 1px solid #ccfbf1;
  background: #f0fdfa;
}

.topbar-actions .network-pill {
  display: none;
}

.trust-pill,
.live-pill,
.install-button {
  min-height: 34px;
  box-shadow: none;
}

.hero-panel {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  min-height: 520px;
  border-color: #ccfbf1;
  background:
    linear-gradient(135deg, #ffffff 0%, #f0fdfa 54%, #e0f2fe 100%);
  box-shadow: 0 24px 70px rgba(15, 118, 110, 0.12);
}

.hero-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(3.2rem, 8vw, 6.9rem);
}

.hero-copy h2 {
  max-width: 760px;
  color: #0f172a;
}

.hero-copy p {
  max-width: 640px;
  color: #475569;
  font-size: 1.08rem;
}

.report-preview-card {
  align-self: center;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(204, 251, 241, 0.92);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 60px rgba(15, 118, 110, 0.16);
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 900;
}

.preview-topline strong {
  border-radius: 999px;
  padding: 8px 11px;
  color: #115e59;
  background: #ccfbf1;
}

.preview-score-ring {
  display: grid;
  place-items: center;
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #ffffff 0 52%, transparent 53%),
    conic-gradient(#0f766e 0 73%, #dbeafe 73% 100%);
}

.preview-score-ring::before {
  content: "73";
  color: #0f766e;
  font-size: clamp(3rem, 8vw, 4.8rem);
  font-weight: 950;
}

.preview-score-ring span {
  position: absolute;
  transform: translateY(48px);
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 950;
}

.preview-finding-list {
  display: grid;
  gap: 9px;
}

.preview-finding-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.preview-finding-list span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 900;
}

.preview-finding-list strong {
  color: #0f766e;
  text-align: right;
}

.overview-strip article,
.panel,
.quick-nav {
  border-color: #e2e8f0;
  background: rgba(255, 255, 255, 0.94);
}

.quick-nav {
  top: 78px;
  justify-content: center;
}

.quick-nav a {
  min-width: 112px;
  text-align: center;
}

.home-panel,
.account-panel,
.report-panel,
.saved-panel {
  box-shadow: 0 18px 44px rgba(15, 118, 110, 0.08);
}

.home-grid {
  align-items: center;
}

.flow-steps article {
  border-color: #ccfbf1;
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
}

.report-spotlight article {
  border-color: #bae6fd;
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
}

.file-input-card {
  border: 1px dashed #14b8a6;
  border-radius: 8px;
  padding: 14px;
  background: #f0fdfa;
}

#report-text {
  min-height: 180px;
}

.sync-grid {
  align-items: stretch;
}

#sample-report-text,
#analyze-report,
#upload-report {
  min-height: 52px;
}

#upload-report {
  border-style: dashed;
}

.v1-report-dashboard article,
.v1-chart-grid article,
.v1-chat-card,
.saved-plan-row,
.v1-history-list article {
  border-color: #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.06);
}

.v1-report-dashboard .health-score-card {
  border-color: #99f6e4;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.v1-chat-card {
  background: linear-gradient(135deg, #f0fdfa, #f8fafc);
}

.connection-settings {
  display: none;
}

.account-grid {
  grid-template-columns: 1fr 1fr;
}

.account-panel .inline-action {
  min-height: 42px;
}

body::before {
  content: "FollowThrough Health V1";
}

@media (max-width: 940px) {
  .hero-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .report-preview-card {
    max-width: 520px;
    margin: 0 auto;
  }

  .quick-nav {
    justify-content: start;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding: 10px;
  }

  .topbar {
    position: static;
  }

  .topbar-actions {
    justify-content: start;
  }

  .trust-pill {
    display: none;
  }

  .quick-nav {
    top: 0;
    margin-inline: -2px;
  }

  .quick-nav a {
    min-width: auto;
    flex: 1 0 auto;
  }

  .hero-panel {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .report-preview-card {
    padding: 14px;
  }

  .preview-finding-list article {
    display: grid;
  }

  .preview-finding-list strong {
    text-align: left;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  body::before {
    display: none;
  }
}

/* 10/10 V1 demo polish */
.file-input-card {
  display: grid;
  gap: 8px;
  min-height: 170px;
  align-content: center;
  text-align: center;
}

.file-input-card > span {
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.file-input-card > strong {
  color: #0f172a;
  font-size: 1.08rem;
}

.file-input-card > small {
  max-width: 34ch;
  margin: 0 auto;
  color: #64748b;
  font-weight: 800;
  line-height: 1.45;
}

.file-input-card input {
  max-width: 100%;
  margin: 6px auto 0;
}

.empty-result-card,
.privacy-assurance article {
  display: grid;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.empty-result-card strong,
.privacy-assurance strong {
  color: #0f766e;
}

.empty-result-card span,
.privacy-assurance span {
  color: #64748b;
  font-weight: 800;
  line-height: 1.45;
}

.privacy-assurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.v1-result-card {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

.result-hero > div:first-child {
  display: grid;
  gap: 6px;
}

.result-hero span {
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.result-hero strong {
  color: #0f172a;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.result-hero p {
  max-width: 58ch;
  margin: 0;
  color: #475569;
  font-weight: 800;
}

.result-score {
  display: grid;
  place-items: center;
  min-width: 136px;
  aspect-ratio: 1;
  border: 10px solid #ccfbf1;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.12);
}

.result-score strong {
  color: #0f766e;
  font-size: 2.6rem;
  line-height: 0.9;
}

.result-score span {
  color: #64748b;
  font-size: 0.82rem;
}

.result-score small {
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 950;
  text-align: center;
}

.result-sections {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.result-sections section {
  display: grid;
  gap: 10px;
}

.result-sections h4 {
  margin: 0;
  color: #0f172a;
}

.section-heading-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-heading-action h4 {
  margin: 0;
}

.inline-action-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inline-action-group .primary-button,
.inline-action-group select {
  width: auto;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.detected-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.7rem;
}

.detected-values-grid article {
  display: grid;
  gap: 0.25rem;
  border: 1px solid #d8e8e1;
  border-radius: 8px;
  padding: 0.85rem;
  background: #ffffff;
}

.detected-values-grid strong {
  color: #0f172a;
  font-size: 0.88rem;
}

.detected-values-grid span {
  color: #0f766e;
  font-size: 1rem;
  font-weight: 950;
}

.detected-values-grid small {
  color: #64748b;
  font-weight: 850;
}

.result-sections ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-sections li {
  display: grid;
  grid-template-columns: minmax(110px, 0.28fr) minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.result-sections li strong {
  color: #0f766e;
}

.result-sections li span {
  color: #334155;
  font-weight: 780;
  line-height: 1.45;
}

.safety-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin: 0 18px 18px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 13px;
  background: #fff7ed;
}

.safety-note strong {
  color: #9a3412;
}

.safety-note span {
  color: #7c2d12;
  font-weight: 800;
  line-height: 1.45;
}

.v1-history-list article {
  position: relative;
  overflow: hidden;
}

.v1-history-list article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #0f766e, #38bdf8);
}

@media (max-width: 760px) {
  .privacy-assurance,
  .result-hero,
  .result-sections li,
  .safety-note {
    grid-template-columns: 1fr;
  }

  .result-score {
    justify-self: start;
    min-width: 118px;
  }
}

.intake-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.home-panel {
  margin-bottom: 18px;
}

.progress-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.progress-rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid #d8e8e1;
  border-radius: 8px;
  padding: 10px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(22, 32, 29, 0.06);
}

.progress-rail a.complete {
  border-color: rgba(8, 118, 110, 0.26);
  background: linear-gradient(135deg, #f0fff9, #ffffff);
}

.progress-rail strong {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  aspect-ratio: 1;
  border-radius: 999px;
  color: #fff;
  background: var(--aqua);
  font-size: 0.82rem;
}

.progress-rail a.complete strong {
  background: var(--teal);
}

.progress-rail a.complete strong::before {
  content: "";
  width: 10px;
  height: 6px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translateY(-1px);
}

.progress-rail a.complete strong {
  color: transparent;
}

.progress-rail span {
  font-size: 0.88rem;
  font-weight: 950;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: center;
}

.panel-intro {
  max-width: 760px;
  margin: -4px 0 14px;
  font-weight: 760;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.flow-steps article {
  display: grid;
  gap: 6px;
  min-height: 150px;
  border: 1px solid #d8e8e1;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, #f4fffb);
}

.flow-steps strong {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
}

.flow-steps span {
  color: var(--teal-dark);
  font-size: 1rem;
  font-weight: 950;
}

.flow-steps small {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 780;
  line-height: 1.38;
}

.home-readiness {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 16px;
}

.home-readiness article {
  display: grid;
  gap: 4px;
  border: 1px solid #d8e8e1;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.home-readiness article.ready {
  border-color: rgba(8, 118, 110, 0.25);
  background: #f0fff9;
}

.home-readiness article.pending {
  border-color: rgba(244, 111, 95, 0.24);
  background: #fff7f5;
}

.home-readiness strong {
  color: var(--teal-dark);
  font-size: 0.84rem;
}

.home-readiness span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.team-tools {
  margin-bottom: 14px;
  border: 1px solid rgba(220, 232, 227, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(22, 32, 29, 0.06);
}

.team-tools summary {
  min-height: 42px;
  padding: 11px 13px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 950;
  cursor: pointer;
}

.team-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #e3eeea;
  padding: 10px;
}

.team-nav a {
  min-height: 34px;
  border-radius: 7px;
  padding: 8px 11px;
  color: var(--teal-dark);
  background: #f8fcfa;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.primary-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.primary-action-row .secondary-button,
.primary-action-row .primary-button,
.primary-action-row .inline-action {
  flex: 1 1 160px;
}

.inline-action {
  min-height: 42px;
}

.secondary-actions {
  opacity: 0.88;
}

.connection-settings,
.advanced-actions {
  margin-top: 12px;
  border: 1px solid #d8e8e1;
  border-radius: 8px;
  background: #fbfffd;
}

.connection-settings summary,
.advanced-actions summary {
  padding: 11px 13px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 930;
  cursor: pointer;
}

.connection-settings label {
  padding: 0 13px 13px;
}

.advanced-actions .sync-grid,
.advanced-actions .account-grid {
  padding: 0 13px 13px;
}

.consent-action-card {
  display: grid;
  gap: 12px;
}

.panel,
.result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 34px rgba(22, 32, 29, 0.08);
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--aqua), var(--blue), var(--coral), var(--gold));
}

.intake-panel::before {
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.plans-panel::before {
  background: linear-gradient(90deg, var(--violet), var(--aqua));
}

.medication-panel::before {
  background: linear-gradient(90deg, var(--coral), var(--gold));
}

.checkin-panel::before {
  background: linear-gradient(90deg, var(--blue), var(--aqua));
}

.review-panel::before {
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

.backend-panel::before {
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--aqua));
}

.account-panel::before {
  background: linear-gradient(90deg, var(--coral), var(--aqua), var(--blue));
}

.export-panel::before {
  background: linear-gradient(90deg, var(--teal), var(--violet));
}

.report-panel::before {
  background: linear-gradient(90deg, var(--blue), var(--aqua), var(--gold));
}

.payment-panel::before {
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
}

.legal-panel::before {
  background: linear-gradient(90deg, var(--teal-dark), var(--blue));
}

.mobile-panel::before {
  background: linear-gradient(90deg, var(--coral), var(--violet), var(--aqua));
}

.launch-panel::before {
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--gold));
}

label,
legend {
  display: grid;
  gap: 8px;
  color: #253430;
  font-size: 0.9rem;
  font-weight: 900;
}

textarea,
input[type="number"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="month"],
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbdcd5;
  border-radius: 7px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfffd;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

textarea {
  resize: vertical;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(32, 184, 176, 0.16);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 16px 0;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #fbfffd, #f4fbf8);
}

legend {
  padding: 0 6px;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  line-height: 1.35;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--teal);
}

.primary-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal), var(--aqua));
  box-shadow: 0 12px 22px rgba(8, 117, 111, 0.24);
  font-weight: 950;
  cursor: pointer;
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  box-shadow: 0 14px 26px rgba(8, 117, 111, 0.28);
}

.secondary-button {
  min-height: 42px;
  border: 1px solid #cfe1db;
  border-radius: 7px;
  padding: 0 13px;
  color: var(--teal-dark);
  background: #fff;
  font-weight: 950;
  cursor: pointer;
}

.secondary-button:hover {
  border-color: var(--aqua);
  box-shadow: 0 10px 20px rgba(22, 32, 29, 0.08);
}

.secondary-button.compact {
  min-height: 36px;
  font-size: 0.84rem;
}

.field-button {
  width: 100%;
  margin-top: 2px;
}

.profile-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-grid textarea {
  min-height: 78px;
}

.checkin-panel,
.saved-panel,
.consent-panel,
.medication-panel,
.review-panel,
.report-panel,
.payment-panel,
.legal-panel,
.mobile-panel,
.launch-panel,
.export-panel {
  margin-top: 18px;
}

.checkin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.checkin-grid label:last-child {
  grid-column: span 2;
}

.narrow-button {
  width: auto;
  padding: 0 18px;
}

.trend-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, var(--soft), #fff);
}

.trend-card p {
  margin-bottom: 0;
}

.status-line {
  min-height: 22px;
  margin: 8px 0 18px;
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 900;
}

.plan-options {
  display: grid;
  gap: 12px;
}

.plan-card {
  position: relative;
  display: grid;
  gap: 6px;
  border: 1px solid #d8e6e1;
  border-radius: 8px;
  padding: 14px 14px 14px 42px;
  background: linear-gradient(135deg, #ffffff, #f2fbf8);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.plan-card:hover {
  border-color: var(--aqua);
  box-shadow: 0 10px 22px rgba(22, 32, 29, 0.08);
  transform: translateY(-1px);
}

.plan-card:has(input:checked) {
  border-color: var(--teal);
  background: linear-gradient(135deg, #e9fff7, #ffffff);
}

.plan-card input {
  position: absolute;
  left: 14px;
  top: 18px;
}

.plan-card strong {
  color: var(--teal-dark);
  font-size: 1.26rem;
}

.plan-name {
  color: var(--teal);
  font-weight: 950;
}

.plan-card span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.consent-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: 18px;
  align-items: center;
}

.backend-panel {
  margin-bottom: 18px;
}

.account-panel {
  margin-bottom: 18px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.sync-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 950;
}

.sync-badge.online {
  color: var(--teal-dark);
  background: #dbfff2;
}

.sync-badge.offline {
  color: var(--coral-dark);
  background: #fff1ed;
}

.consent-check {
  border: 1px solid #d5e8df;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #f2fff8, #ffffff);
}

.med-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.med-grid label:last-child {
  grid-column: span 2;
}

.export-actions,
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.data-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.data-control-grid article {
  display: grid;
  gap: 5px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #ffffff, #f6fbf9);
}

.data-control-grid strong {
  color: var(--teal-dark);
}

.data-control-grid span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.42;
}

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.symptom-grid .symptom-wide {
  grid-column: 1 / -1;
}

.symptom-list {
  display: grid;
  gap: 10px;
}

.symptom-list article {
  display: grid;
  gap: 7px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #ffffff, #f6fbf9);
}

.symptom-list .symptom-summary {
  border-color: #b8ded4;
  background: linear-gradient(135deg, #f3fffb, #ffffff);
}

.symptom-list article div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.symptom-list strong {
  color: var(--teal-dark);
}

.symptom-list span,
.symptom-list small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.symptom-list p {
  margin: 0;
  color: #40534a;
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.45;
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.goal-grid .goal-wide {
  grid-column: 1 / -1;
}

.goal-list {
  display: grid;
  gap: 10px;
}

.goal-list article {
  display: grid;
  gap: 7px;
  border: 1px solid #dde7ef;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #ffffff, #f7f9fc);
}

.goal-list .goal-summary {
  border-color: #b8ded4;
  background: linear-gradient(135deg, #f3fffb, #ffffff);
}

.goal-list article div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.goal-list strong {
  color: var(--teal-dark);
}

.goal-list span,
.goal-list small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.goal-list p {
  margin: 0;
  color: #40534a;
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.45;
}

.barrier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.barrier-grid .barrier-wide {
  grid-column: 1 / -1;
}

.barrier-list {
  display: grid;
  gap: 10px;
}

.barrier-list article {
  display: grid;
  gap: 7px;
  border: 1px solid #e6dfce;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #ffffff, #fffaf2);
}

.barrier-list .barrier-summary {
  border-color: #f0c98f;
  background: linear-gradient(135deg, #fff8ed, #ffffff);
}

.barrier-list article div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.barrier-list strong {
  color: #8a4b0f;
}

.barrier-list span,
.barrier-list small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.barrier-list p {
  margin: 0;
  color: #40534a;
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.45;
}

.reminder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.reminder-grid .reminder-wide {
  grid-column: 1 / -1;
}

.reminder-list {
  display: grid;
  gap: 10px;
}

.reminder-list article {
  display: grid;
  gap: 7px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #ffffff, #f6fbf9);
}

.reminder-list article div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.reminder-list strong {
  color: var(--teal-dark);
}

.reminder-list span,
.reminder-list small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.reminder-list p {
  margin: 0;
  color: #40534a;
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.45;
}

.monthly-calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.monthly-calendar-grid .monthly-calendar-wide {
  grid-column: 1 / -1;
}

.monthly-calendar-list {
  display: grid;
  gap: 10px;
}

.monthly-calendar-list article {
  display: grid;
  gap: 8px;
  border: 1px solid #d8e5f5;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #ffffff, #f5f9ff);
}

.monthly-calendar-list .monthly-calendar-summary {
  border-color: #bad1f2;
  background: linear-gradient(135deg, #eef5ff, #ffffff);
}

.monthly-calendar-list article div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.monthly-calendar-list strong {
  color: #1d4e89;
}

.monthly-calendar-list span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.monthly-calendar-list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.48;
}

.navigation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.navigation-grid .navigation-wide {
  grid-column: 1 / -1;
}

.navigation-list {
  display: grid;
  gap: 10px;
}

.navigation-list article {
  display: grid;
  gap: 8px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #ffffff, #f6fbf9);
}

.navigation-list article div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.navigation-list strong {
  color: var(--teal-dark);
}

.navigation-list span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.navigation-list p {
  margin: 0;
  color: #40534a;
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.45;
}

.navigation-list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.48;
}

.care-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.care-team-grid .care-team-wide {
  grid-column: 1 / -1;
}

.care-team-list {
  display: grid;
  gap: 10px;
}

.care-team-list article {
  display: grid;
  gap: 8px;
  border: 1px solid #d9e7ef;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #ffffff, #f5fbff);
}

.care-team-list .care-team-summary {
  border-color: #b8d8e8;
  background: linear-gradient(135deg, #f0faff, #ffffff);
}

.care-team-list article div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.care-team-list strong {
  color: #155e75;
}

.care-team-list span,
.care-team-list small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.care-team-list p {
  margin: 0;
  color: #40534a;
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.45;
}

.visit-brief-readiness {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.visit-brief-readiness article {
  display: grid;
  gap: 5px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.visit-brief-readiness article.complete {
  border-color: #bfe8d3;
  background: #f0fbf5;
}

.visit-brief-readiness article.pending {
  background: #fffdfa;
}

.visit-brief-readiness strong {
  color: var(--teal-dark);
}

.visit-brief-readiness span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.visit-brief-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.visit-brief-list article {
  display: grid;
  gap: 8px;
  border: 1px solid #d8e5f5;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #ffffff, #f5f9ff);
}

.visit-brief-list .visit-brief-summary {
  border-color: #bad1f2;
  background: linear-gradient(135deg, #eef5ff, #ffffff);
}

.visit-brief-list article div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.visit-brief-list strong {
  color: #1d4e89;
}

.visit-brief-list span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.visit-brief-list p {
  margin: 0;
  color: #40534a;
  font-size: 0.9rem;
  font-weight: 790;
  line-height: 1.45;
}

.visit-brief-list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.48;
}

.visit-brief-output {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border: 1px solid #d8e5f5;
  border-radius: 8px;
  padding: 13px;
  color: #263833;
  background: #ffffff;
  font: 0.86rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.support-grid .support-wide {
  grid-column: 1 / -1;
}

.support-list {
  display: grid;
  gap: 10px;
}

.support-list article {
  display: grid;
  gap: 8px;
  border: 1px solid #dde7ef;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #ffffff, #f7f9fc);
}

.support-list article div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.support-list strong {
  color: #155e75;
}

.support-list span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.support-list p {
  margin: 0;
  color: #40534a;
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.45;
}

.support-list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.48;
}

.qa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.qa-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.qa-results article {
  display: grid;
  gap: 7px;
  border: 1px solid #dfe8e4;
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
}

.qa-results article div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.qa-results .qa-summary {
  grid-column: 1 / -1;
  border-color: #b8ded4;
  background: linear-gradient(135deg, #f3fffb, #ffffff);
}

.qa-results article.complete {
  border-color: #b9e1ce;
  background: linear-gradient(135deg, #f6fffa, #ffffff);
}

.qa-results article.pending {
  border-color: #f3d1ad;
  background: linear-gradient(135deg, #fffaf2, #ffffff);
}

.qa-results strong {
  color: var(--teal-dark);
}

.qa-results b {
  color: #334155;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.qa-results span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.review-notes {
  margin-top: 12px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.session-card {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  border: 1px solid #d8e8e1;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #f7fffb, #ffffff);
}

.session-card strong {
  color: var(--teal-dark);
}

.session-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.45;
}

.team-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, #f2faf7);
}

.team-account-card div:first-child {
  display: grid;
  gap: 4px;
}

.team-account-card strong {
  color: var(--teal-dark);
}

.team-account-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.4;
}

.team-account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.mvp-alert {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  border: 1px solid rgba(200, 138, 22, 0.28);
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #fffaf0, #ffffff);
}

.mvp-alert strong {
  color: var(--gold);
}

.mvp-alert span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.45;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.report-grid label:last-child {
  grid-column: 1 / -1;
}

.report-meta-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-person-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.history-person-filter select {
  width: auto;
}

input[type="file"] {
  width: 100%;
  min-height: 46px;
  border: 1px dashed #a9c9bf;
  border-radius: 7px;
  padding: 10px;
  color: var(--muted);
  background: #fbfffd;
}

.report-spotlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.report-spotlight article {
  display: grid;
  gap: 5px;
  min-height: 104px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, #f5fffb);
}

.report-spotlight strong {
  color: var(--teal-dark);
}

.lab-trend-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.lab-trend-grid .lab-trend-wide {
  grid-column: 1 / -1;
}

.lab-trend-list {
  display: grid;
  gap: 10px;
}

.lab-trend-list article {
  display: grid;
  gap: 8px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #ffffff, #f7fffb);
}

.lab-trend-list .lab-trend-summary {
  border-color: #bfe8d3;
  background: linear-gradient(135deg, #eefcf4, #ffffff);
}

.lab-trend-list article div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.lab-trend-list strong {
  color: var(--teal-dark);
}

.lab-trend-list span,
.lab-trend-list small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.lab-trend-list p {
  margin: 0;
  color: #40534a;
  font-size: 0.9rem;
  font-weight: 790;
  line-height: 1.45;
}

.meal-planner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.meal-planner-grid .meal-planner-wide {
  grid-column: 1 / -1;
}

.meal-plan-list {
  display: grid;
  gap: 10px;
}

.meal-plan-list article {
  display: grid;
  gap: 8px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #ffffff, #f8fffb);
}

.meal-plan-list .meal-plan-summary {
  border-color: #bfe8d3;
  background: linear-gradient(135deg, #eefcf4, #ffffff);
}

.meal-plan-list article div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.meal-plan-list strong {
  color: var(--teal-dark);
}

.meal-plan-list span,
.meal-plan-list small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.meal-plan-list p {
  margin: 0;
  color: #40534a;
  font-size: 0.9rem;
  font-weight: 790;
  line-height: 1.45;
}

.meal-plan-list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.48;
}

.safety-check-list {
  display: grid;
  gap: 10px;
}

.safety-check-list article {
  display: grid;
  gap: 8px;
  border: 1px solid #f1dcc6;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #ffffff, #fffaf3);
}

.safety-check-list .safety-check-summary {
  border-color: #efc78d;
  background: linear-gradient(135deg, #fff4dc, #ffffff);
}

.safety-check-list article div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.safety-check-list strong {
  color: #7c4a03;
}

.safety-check-list span,
.safety-check-list small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.safety-check-list p {
  margin: 0;
  color: #40534a;
  font-size: 0.9rem;
  font-weight: 790;
  line-height: 1.45;
}

.report-spotlight span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.4;
}

.report-eval-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 10px;
  border: 1px solid rgba(36, 111, 229, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
}

.report-eval-card div:first-child {
  display: grid;
  gap: 4px;
}

.report-eval-card strong {
  color: var(--blue);
}

.report-eval-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.42;
}

.report-eval-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.report-eval-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.report-eval-results article {
  display: grid;
  gap: 6px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
}

.report-eval-results article.complete {
  border-color: #bfe8d3;
  background: #f0fbf5;
}

.report-eval-results article.pending {
  background: #fffdfa;
}

.report-eval-results strong {
  color: var(--teal-dark);
}

.report-eval-results span,
.report-eval-results small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

.report-eval-results p {
  margin: 0;
  color: #40534a;
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.42;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-stats article,
.payment-grid article,
.legal-grid article {
  display: grid;
  gap: 5px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, #f6fbf9);
}

.dashboard-stats strong {
  color: var(--teal-dark);
  font-size: 1.65rem;
  line-height: 1;
}

.dashboard-stats span,
.payment-grid span,
.mobile-roadmap span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.review-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.review-pipeline article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 11px;
  background: #ffffff;
}

.review-pipeline strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e8f6f1;
  color: var(--teal-dark);
  font-size: 0.82rem;
}

.review-pipeline span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.3;
}

.review-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.review-sync-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.review-sync-summary article {
  display: grid;
  gap: 4px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.review-sync-summary strong {
  color: var(--teal-dark);
}

.review-sync-summary span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.35;
}

.review-demo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, #f2faf7);
}

.review-demo-card div:first-child {
  display: grid;
  gap: 4px;
}

.review-demo-card strong {
  color: var(--teal-dark);
}

.review-demo-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 830;
  line-height: 1.42;
}

.review-demo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.review-demo-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.review-demo-checklist article {
  display: grid;
  gap: 5px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.review-demo-checklist strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef2f7;
  color: #495565;
  font-size: 0.82rem;
}

.review-demo-checklist span {
  color: var(--teal-dark);
  font-weight: 920;
  line-height: 1.25;
}

.review-demo-checklist small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.35;
}

.review-demo-checklist article.complete {
  border-color: #bfe8d3;
  background: #f0fbf5;
}

.review-demo-checklist article.complete strong {
  background: #d8f5e4;
  color: #0f6b3d;
}

.review-demo-checklist article.pending {
  background: #fffdfa;
}

.review-demo-guidance {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  border: 1px solid #cfe3db;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f6fbf9;
}

.review-demo-guidance strong {
  color: var(--teal-dark);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.review-demo-guidance span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.42;
}

.review-demo-outcome {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  border: 1px solid #bfe8d3;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f0fbf5;
}

.review-demo-outcome strong {
  color: #0f6b3d;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.review-demo-outcome span {
  color: #315c44;
  font-size: 0.92rem;
  font-weight: 860;
  line-height: 1.42;
}

.review-demo-outcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.review-demo-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.review-demo-timeline article {
  display: grid;
  gap: 5px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.review-demo-timeline article.complete {
  border-color: #bfe8d3;
  background: #f0fbf5;
}

.review-demo-timeline strong {
  color: var(--teal-dark);
}

.review-demo-timeline span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 840;
  line-height: 1.35;
}

.review-filter {
  border: 1px solid #cddfd8;
  border-radius: 999px;
  padding: 8px 12px;
  background: #ffffff;
  color: var(--teal-dark);
  font-weight: 900;
  cursor: pointer;
}

.review-filter.active {
  border-color: var(--teal);
  background: #dff5ee;
  color: #075e55;
}

.review-next-step {
  display: grid;
  gap: 3px;
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f4fbf8;
}

.review-next-step strong {
  color: var(--teal-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.review-next-step span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.42;
}

.saved-plan-top b.status-pending {
  background: #fff7df;
  color: #8a5a00;
}

.saved-plan-top b.status-approved {
  background: #e5f8ed;
  color: #0f6b3d;
}

.saved-plan-top b.status-changes {
  background: #ffe9df;
  color: #9a3d12;
}

.saved-plan-top b.status-closed {
  background: #eef2f7;
  color: #495565;
}

.payment-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.legal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}

.payment-grid strong,
.legal-grid strong {
  color: var(--teal-dark);
  font-size: 1rem;
}

.legal-grid article > span {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--teal-dark);
  background: #e6fff6;
  font-size: 0.74rem;
  font-weight: 950;
}

.payment-grid p,
.legal-grid p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.48;
}

.payment-grid ul {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.5;
}

.payment-note {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  border: 1px solid rgba(36, 111, 229, 0.18);
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #f4f8ff, #ffffff);
}

.payment-note strong {
  color: var(--blue);
}

.payment-note span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.45;
}

.legal-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 13px;
  background: #fff;
}

.legal-checklist strong {
  flex: 1 1 100%;
  color: var(--teal-dark);
}

.legal-checklist span {
  border: 1px solid #d8e8e1;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  background: #f8fcfa;
  font-size: 0.82rem;
  font-weight: 900;
}

.mobile-roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.legal-document {
  display: grid;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.legal-document .panel {
  padding: 28px;
}

.legal-document h1 {
  margin-bottom: 8px;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  line-height: 0.95;
}

.legal-document h2 {
  margin: 22px 0 8px;
  color: var(--teal-dark);
  font-size: 1.25rem;
  line-height: 1.15;
}

.legal-document ul {
  color: var(--muted);
  line-height: 1.6;
}

.legal-document .document-meta {
  color: var(--muted);
  font-weight: 850;
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.launch-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.launch-metrics article {
  display: grid;
  gap: 5px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, #ffffff, #f2fffa);
}

.launch-metrics strong {
  color: var(--teal-dark);
  font-size: 1.08rem;
}

.launch-metrics span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.launch-blockers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.launch-blockers article {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(190, 18, 60, 0.18);
  border-radius: 8px;
  padding: 13px;
  background: #fff7ed;
}

.launch-blockers strong {
  color: #7f1d1d;
  font-size: 0.92rem;
}

.launch-blockers span {
  color: #475569;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.launch-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.launch-proof article {
  display: grid;
  gap: 5px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
}

.launch-proof article.complete {
  border-color: #bfe8d3;
  background: #f0fbf5;
}

.launch-proof article.pending {
  background: #fffdfa;
}

.launch-proof strong {
  color: var(--teal-dark);
  font-size: 0.96rem;
}

.launch-proof span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.launch-proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.preflight-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 10px;
  border: 1px solid rgba(8, 118, 110, 0.2);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, #f3fffb);
}

.preflight-card div {
  display: grid;
  gap: 4px;
}

.preflight-card strong {
  color: var(--teal-dark);
}

.preflight-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
}

.preflight-report {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.preflight-report article {
  display: grid;
  gap: 5px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.preflight-report article.complete {
  border-color: #bfe8d3;
  background: #f0fbf5;
}

.preflight-report article.pending {
  background: #fffdfa;
}

.preflight-report strong {
  color: var(--teal-dark);
  font-size: 0.94rem;
}

.preflight-report span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

.demo-script {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(8, 118, 110, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #f3fffb, #ffffff);
}

.demo-script-heading,
.demo-script-results article div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.demo-script-heading > div:first-child {
  display: grid;
  gap: 4px;
}

.demo-script-heading strong,
.demo-script-results strong {
  color: var(--teal-dark);
}

.demo-script-heading span,
.demo-script-results span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 820;
  line-height: 1.45;
}

.demo-script-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-script-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.demo-script-results article {
  display: grid;
  gap: 7px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.demo-script-results .demo-script-summary {
  grid-column: 1 / -1;
  border-color: #b8ded4;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.demo-script-results article.complete {
  border-color: #b9e1ce;
}

.demo-script-results article.pending {
  border-color: #f3d1ad;
  background: linear-gradient(135deg, #fffaf2, #ffffff);
}

.demo-script-results a {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
}

.investor-brief-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(36, 111, 229, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, #f5f8ff);
}

.investor-brief-card div {
  display: grid;
  gap: 4px;
}

.investor-brief-card strong {
  color: var(--blue);
}

.investor-brief-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.42;
}

.investor-brief-output {
  width: 100%;
  min-height: 210px;
  margin: 0 0 8px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 12px;
  color: #314139;
  background: #fbfffd;
  font: 0.82rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}

.pilot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 10px;
  border: 1px solid rgba(8, 118, 110, 0.2);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, #f3fffb);
}

.pilot-card div {
  display: grid;
  gap: 4px;
}

.pilot-card strong {
  color: var(--teal-dark);
}

.pilot-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.42;
}

.pilot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.pilot-grid .pilot-wide {
  grid-column: 1 / -1;
}

.pilot-leads {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.pilot-leads article {
  display: grid;
  gap: 7px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
}

.pilot-leads article div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.pilot-leads strong {
  color: var(--teal-dark);
}

.pilot-leads span,
.pilot-leads small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.pilot-leads p {
  margin: 0;
  color: #40534a;
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.45;
}

.launch-grid article {
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.launch-grid strong {
  display: block;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.launch-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.readiness-grid article {
  min-height: 78px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.readiness-grid strong,
.readiness-grid span {
  display: block;
}

.readiness-grid strong {
  color: var(--teal-dark);
  font-size: 0.9rem;
}

.readiness-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.readiness-grid article.ready {
  border-color: #a9d9c8;
  background: #f3fbf8;
}

.readiness-grid article.pending {
  border-color: #ead6a3;
  background: #fffaf0;
}

.mobile-roadmap article {
  display: grid;
  gap: 6px;
  min-height: 72px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 13px;
  background: #fff;
}

.mobile-roadmap strong {
  color: var(--teal-dark);
}

.mobile-roadmap span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1.42;
}

.store-disclosure-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 10px;
  border: 1px solid rgba(36, 111, 229, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
}

.store-disclosure-card div {
  display: grid;
  gap: 4px;
}

.store-disclosure-card strong {
  color: var(--blue);
}

.store-disclosure-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.42;
}

.store-disclosure-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.store-disclosure-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
}

.store-disclosure-grid strong {
  color: var(--teal-dark);
}

.store-disclosure-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1.4;
}

.store-disclosure-output {
  width: 100%;
  min-height: 180px;
  margin: 2px 0 8px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  padding: 12px;
  color: #314139;
  background: #fbfffd;
  font: 0.82rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}

.audit-block {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.audit-block h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.audit-row {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.audit-row span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.audit-row p {
  margin-bottom: 0;
}

#export-output {
  width: 100%;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
}

.v1-report-dashboard {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.v1-report-dashboard article,
.v1-chart-grid article,
.v1-history-list article {
  display: grid;
  gap: 7px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 15px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.v1-report-dashboard .health-score-card {
  border-color: #99f6e4;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.v1-report-dashboard span,
.v1-history-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.v1-report-dashboard strong {
  color: var(--teal-dark);
  font-size: 1.18rem;
}

.v1-report-dashboard .health-score-card strong {
  font-size: clamp(2.1rem, 7vw, 4rem);
  line-height: 0.95;
}

.v1-report-dashboard p,
.v1-chart-grid p,
.v1-history-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

.v1-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.v1-secondary-control {
  display: none;
}

.v1-chat-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 14px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #f0fdfa, #ffffff);
}

.v1-chat-card h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.02rem;
}

.v1-chat-card p {
  margin: 0;
}

.v1-chat-card label {
  margin: 0;
}

.v1-chat-card .status-line {
  grid-column: 1 / -1;
  margin: 0;
}

.trend-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 96px;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.trend-bars span {
  flex: 1;
  min-height: 18px;
  border-radius: 999px 999px 4px 4px;
  background: #0f766e;
}

.trend-bars.blue span {
  background: #38bdf8;
}

.trend-bars.teal span {
  background: #14b8a6;
}

.v1-history-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.v1-history-list article div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.v1-history-list strong {
  color: var(--teal-dark);
}

body::before {
  content: "V1: Report Explainer";
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  border: 1px solid #ccfbf1;
  border-radius: 999px;
  padding: 8px 11px;
  color: #115e59;
  background: rgba(240, 253, 250, 0.94);
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.14);
  font-size: 0.76rem;
  font-weight: 950;
}

.progress-rail,
.team-tools,
.backend-panel,
.consent-panel,
.intake-panel,
#plans-title,
.plan-options,
.meal-planner-panel,
.medication-panel,
.safety-check-panel,
.symptom-panel,
.checkin-panel,
.goals-panel,
.barriers-panel,
.reminder-panel,
.monthly-calendar-panel,
.navigation-panel,
.care-team-panel,
.visit-brief-panel,
.care-packet-panel,
.support-panel,
.qa-panel,
.review-panel,
.payment-panel,
.legal-panel,
.mobile-panel,
.launch-panel,
.security-panel,
.export-panel,
.report-eval-card,
#report-eval-results,
#report-eval-status,
#results {
  display: none !important;
}

.intake-grid {
  display: block;
}

.plans-panel {
  max-width: 920px;
  margin: 0 auto;
}

.account-panel .panel-intro {
  max-width: 58ch;
}

.panel-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.saved-plans-list {
  display: grid;
  gap: 10px;
}

.saved-plan-row {
  border: 1px solid #e0ece7;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, #f7fffb);
}

.saved-plan-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.saved-plan-top > div {
  display: grid;
  gap: 3px;
}

.saved-plan-top b {
  border-radius: 999px;
  padding: 6px 9px;
  color: #fff;
  background: var(--teal);
  font-size: 0.78rem;
  line-height: 1;
}

.saved-plan-row span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.saved-plan-row p {
  margin: 10px 0;
  color: var(--teal-dark);
  font-weight: 900;
}

.saved-plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.saved-plan-meta span {
  border: 1px solid #d8e8e1;
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff;
  font-size: 0.78rem;
}

.saved-plan-summary {
  margin-top: 10px;
  border-top: 1px solid #e0ece7;
  padding-top: 10px;
}

.saved-plan-summary summary {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 950;
  cursor: pointer;
}

.saved-plan-summary pre {
  max-height: 240px;
  overflow: auto;
  margin: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  color: #314139;
  background: #fff;
  font: 0.8rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.result-card {
  min-height: 180px;
  padding: 18px;
}

.result-section {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(22, 32, 29, 0.08);
  overflow: hidden;
}

.result-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 14px 16px;
  cursor: pointer;
}

.result-section summary span {
  display: grid;
  gap: 4px;
}

.result-section summary strong {
  color: var(--teal-dark);
  font-size: 1rem;
}

.result-section summary small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.result-section summary b {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 0.82rem;
}

.result-section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 14px;
  background: linear-gradient(135deg, #fbfffd, #ffffff);
}

.snapshot-card {
  grid-column: 1 / -1;
  border-color: rgba(36, 111, 229, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(233, 255, 247, 0.95)),
    linear-gradient(120deg, rgba(36, 111, 229, 0.1), rgba(23, 184, 174, 0.08));
}

.snapshot-card h3 {
  font-size: 1.45rem;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.snapshot-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid #d8e8e1;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.snapshot-grid strong {
  color: var(--teal);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.snapshot-grid span {
  color: var(--teal-dark);
  font-weight: 950;
  line-height: 1.3;
}

.clinical-note {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  border: 1px solid rgba(200, 138, 22, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: #fffaf0;
}

.clinical-note strong {
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.clinical-note span {
  color: #5f5140;
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.45;
}

.empty-results-card .hero-actions,
.snapshot-card .hero-actions {
  margin-top: 14px;
}

.result-card h3 {
  margin-bottom: 10px;
}

.result-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.result-card li + li {
  margin-top: 6px;
}

.disease-card {
  grid-column: span 2;
}

.movement-card,
.meal-card,
.summary-card {
  grid-column: span 2;
}

.summary-card pre {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  color: #314139;
  background: #f8fbfa;
  font: 0.82rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.mini-plan {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.mini-plan h4 {
  margin: 0;
  font-size: 0.98rem;
}

.mini-plan p {
  margin-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
}

.badge.gold {
  background: var(--gold);
}

.badge.blue {
  background: var(--blue);
}

.badge.danger {
  background: var(--coral-dark);
}

.warning-card {
  grid-column: 1 / -1;
  border-color: rgba(249, 115, 91, 0.28);
  background: linear-gradient(135deg, #fff, #fff4f1);
}

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

  .topbar,
  .hero-panel,
  .home-grid,
  .intake-grid,
  .results-grid,
  .result-section-grid,
  .consent-panel,
  .overview-strip,
  .v1-report-dashboard,
  .v1-chart-grid,
  .v1-chat-card,
  .progress-rail {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: start;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .hero-panel {
    min-height: auto;
    padding: 22px;
  }

  .care-loop-card {
    min-height: auto;
  }

  .hero-meter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .disease-card,
  .movement-card,
  .meal-card,
  .summary-card {
    grid-column: auto;
  }

  .checkin-grid,
  .symptom-grid,
  .med-grid,
  .account-grid,
  .flow-steps,
  .sync-grid,
  .lab-trend-grid,
  .meal-planner-grid,
  .goal-grid,
  .barrier-grid,
  .reminder-grid,
  .monthly-calendar-grid,
  .navigation-grid,
  .care-team-grid,
  .visit-brief-readiness,
  .support-grid,
  .qa-results,
  .demo-script-results,
  .pilot-grid,
  .report-grid,
  .dashboard-stats,
  .payment-grid,
  .legal-grid,
  .launch-metrics,
  .launch-blockers,
  .launch-grid,
  .launch-proof,
  .mobile-roadmap,
  .store-disclosure-grid,
  .review-pipeline,
  .review-sync-summary,
  .review-demo-checklist,
  .review-demo-timeline,
  .report-eval-results,
  .report-spotlight,
  .snapshot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .checkin-grid label:last-child,
  .med-grid label:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 2.32rem;
    line-height: 0.94;
  }

  h2 {
    font-size: 1.28rem;
    line-height: 1.08;
  }

  .panel {
    padding: 18px;
  }

  .hero-panel {
    gap: 12px;
    padding: 18px;
  }

  .hero-copy p {
    font-size: 0.96rem;
    line-height: 1.48;
  }

  .hero-actions {
    margin-top: 12px;
  }

  .primary-link,
  .secondary-link {
    min-height: 40px;
    padding: 0 14px;
  }

  .care-loop-card {
    gap: 9px;
    padding: 12px;
  }

  .signal-ring {
    width: 108px;
  }

  .signal-ring::before {
    width: 52px;
    font-size: 0.95rem;
  }

  .signal-ring span {
    width: 10px;
    height: 10px;
    border-width: 2px;
  }

  .loop-steps {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .loop-steps span {
    min-height: 46px;
    padding: 7px;
    font-size: 0.8rem;
  }

  .hero-meter,
  .field-row,
  fieldset,
  .checkin-grid,
  .symptom-grid,
  .med-grid,
  .account-grid,
  .readiness-grid,
  .sync-grid,
  .lab-trend-grid,
  .meal-planner-grid,
  .goal-grid,
  .barrier-grid,
  .reminder-grid,
  .monthly-calendar-grid,
  .navigation-grid,
  .care-team-grid,
  .visit-brief-readiness,
  .support-grid,
  .qa-results,
  .demo-script-results,
  .pilot-grid,
  .launch-blockers,
  .launch-proof,
  .preflight-report,
  .review-pipeline,
  .review-sync-summary {
    grid-template-columns: 1fr;
  }

  .preflight-card {
    align-items: stretch;
    flex-direction: column;
  }

  .report-eval-card {
    align-items: stretch;
    flex-direction: column;
  }

  .report-eval-actions {
    justify-content: stretch;
  }

  .investor-brief-card {
    align-items: stretch;
    flex-direction: column;
  }

  .pilot-card {
    align-items: stretch;
    flex-direction: column;
  }

  .store-disclosure-card {
    align-items: stretch;
    flex-direction: column;
  }

  .review-demo-checklist {
    grid-template-columns: 1fr;
  }

  .review-demo-timeline {
    grid-template-columns: 1fr;
  }

  .team-account-card {
    align-items: stretch;
    flex-direction: column;
  }

  .review-demo-card {
    align-items: stretch;
    flex-direction: column;
  }

  .team-account-actions,
  .review-demo-actions {
    justify-content: stretch;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .primary-link,
  .secondary-link,
  .primary-action-row .secondary-button,
  .primary-action-row .primary-button,
  .primary-action-row .inline-action {
    width: 100%;
  }

  .topbar {
    gap: 12px;
  }

  .panel-heading-row {
    align-items: start;
    flex-direction: column;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .toolbar-actions .secondary-button {
    flex: 1 1 150px;
  }

  .narrow-button,
  .secondary-button,
  .primary-button,
  .review-filter {
    width: 100%;
  }

  .report-grid,
  .dashboard-stats,
  .payment-grid,
  .legal-grid,
  .launch-metrics,
  .launch-grid,
  .mobile-roadmap,
  .store-disclosure-grid,
  .report-eval-results,
  .report-spotlight,
  .snapshot-grid,
  .result-section-grid,
  .home-readiness,
  .v1-report-dashboard,
  .v1-chart-grid,
  .v1-chat-card,
  .data-control-grid {
    grid-template-columns: 1fr;
  }
}

/* Final V1 frontend polish override */
body {
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.92), rgba(248, 250, 252, 0.96) 38%, #ffffff 100%);
}

.app-shell {
  padding: 18px;
}

.workspace {
  width: min(1120px, 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: -4px 0 14px;
  border: 1px solid rgba(204, 251, 241, 0.75);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.08);
  backdrop-filter: blur(18px);
}

.brand-logo {
  border: 1px solid #ccfbf1;
  background: #f0fdfa;
}

.topbar-actions .network-pill {
  display: none;
}

.trust-pill,
.live-pill,
.install-button {
  min-height: 34px;
  box-shadow: none;
}

.hero-panel {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  min-height: 520px;
  border-color: #ccfbf1;
  background:
    linear-gradient(135deg, #ffffff 0%, #f0fdfa 54%, #e0f2fe 100%);
  box-shadow: 0 24px 70px rgba(15, 118, 110, 0.12);
}

.hero-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(3.2rem, 8vw, 6.9rem);
}

.hero-copy h2 {
  max-width: 760px;
  color: #0f172a;
}

.hero-copy p {
  max-width: 640px;
  color: #475569;
  font-size: 1.08rem;
}

.report-preview-card {
  align-self: center;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(204, 251, 241, 0.92);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 60px rgba(15, 118, 110, 0.16);
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 900;
}

.preview-topline strong {
  border-radius: 999px;
  padding: 8px 11px;
  color: #115e59;
  background: #ccfbf1;
}

.preview-score-ring {
  display: grid;
  place-items: center;
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #ffffff 0 52%, transparent 53%),
    conic-gradient(#0f766e 0 73%, #dbeafe 73% 100%);
}

.preview-score-ring::before {
  content: "73";
  color: #0f766e;
  font-size: clamp(3rem, 8vw, 4.8rem);
  font-weight: 950;
}

.preview-score-ring span {
  position: absolute;
  transform: translateY(48px);
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 950;
}

.preview-finding-list {
  display: grid;
  gap: 9px;
}

.preview-finding-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.preview-finding-list span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 900;
}

.preview-finding-list strong {
  color: #0f766e;
  text-align: right;
}

.overview-strip article,
.panel,
.quick-nav {
  border-color: #e2e8f0;
  background: rgba(255, 255, 255, 0.94);
}

.quick-nav {
  top: 78px;
  justify-content: center;
}

.quick-nav a {
  min-width: 112px;
  text-align: center;
}

.home-panel,
.account-panel,
.report-panel,
.saved-panel {
  box-shadow: 0 18px 44px rgba(15, 118, 110, 0.08);
}

.home-grid {
  align-items: center;
}

.flow-steps article {
  border-color: #ccfbf1;
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
}

.report-spotlight article {
  border-color: #bae6fd;
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
}

.file-input-card {
  border: 1px dashed #14b8a6;
  border-radius: 8px;
  padding: 14px;
  background: #f0fdfa;
}

#report-text {
  min-height: 180px;
}

.sync-grid {
  align-items: stretch;
}

#sample-report-text,
#analyze-report,
#upload-report {
  min-height: 52px;
}

#upload-report {
  border-style: dashed;
}

.v1-report-dashboard article,
.v1-chart-grid article,
.v1-chat-card,
.saved-plan-row,
.v1-history-list article {
  border-color: #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.06);
}

.v1-report-dashboard .health-score-card {
  border-color: #99f6e4;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.v1-chat-card {
  background: linear-gradient(135deg, #f0fdfa, #f8fafc);
}

.connection-settings {
  display: none;
}

.account-grid {
  grid-template-columns: 1fr 1fr;
}

.account-panel .inline-action {
  min-height: 42px;
}

body::before {
  content: "FollowThrough Health V1";
}

@media (max-width: 940px) {
  .hero-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .report-preview-card {
    max-width: 520px;
    margin: 0 auto;
  }

  .quick-nav {
    justify-content: start;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding: 10px;
  }

  .topbar {
    position: static;
  }

  .topbar-actions {
    justify-content: start;
  }

  .trust-pill {
    display: none;
  }

  .quick-nav {
    top: 0;
    margin-inline: -2px;
  }

  .quick-nav a {
    min-width: auto;
    flex: 1 0 auto;
  }

  .hero-panel {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .report-preview-card {
    padding: 14px;
  }

  .preview-finding-list article {
    display: grid;
  }

  .preview-finding-list strong {
    text-align: left;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  body::before {
    display: none;
  }
}

/* ---------------------------------------------------------------
   Premium polish layer: brand type (matches the pitch deck), calmer
   weights, softer surfaces. Loaded last so it overrides the base
   styles above without changing any markup the app scripts use.
   --------------------------------------------------------------- */
:root {
  --cw-ink: #14302c;
  --cw-ink-soft: #3e5450;
  --cw-deep: #0b3b36;
  --cw-teal: #0f766e;
  --cw-line: #d5e5e1;
  --cw-surface: #ffffff;
  --cw-mist: #f4f8f6;
  --cw-font: "DM Sans", "Segoe UI", Arial, sans-serif;
  --cw-display: "Domine", Georgia, serif;
}

body {
  font-family: var(--cw-font) !important;
  color: var(--cw-ink);
  background: linear-gradient(180deg, #f4f8f6 0%, #eef6f3 100%);
  -webkit-font-smoothing: antialiased;
}

.app-shell :is(button, input, select, textarea) {
  font-family: var(--cw-font) !important;
}

/* Calmer weights: text reads as text, emphasis stays meaningful. */
.app-shell :is(p, span, small, li, label, td, dd, pre) {
  font-weight: 450 !important;
}

.app-shell :is(strong, b, h3, h4, th, legend, summary) {
  font-weight: 650 !important;
}

.app-shell :is(button, .primary-link, .secondary-link, .install-button) {
  font-weight: 600 !important;
  letter-spacing: 0;
}

.app-shell :is(h1, h2) {
  font-family: var(--cw-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: var(--cw-deep);
}

.eyebrow {
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  color: var(--cw-teal) !important;
}

/* The floating "FollowThrough Health V1" build badge is internal, not for users. */
body::before {
  content: none !important;
  display: none !important;
}

/* Header */
.topbar {
  border-color: var(--cw-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 8px 24px rgba(11, 59, 54, 0.06);
}

.trust-pill {
  border: 1px solid var(--cw-line) !important;
  background: var(--cw-mist) !important;
  color: var(--cw-ink-soft) !important;
}

/* Hero */
.hero-panel {
  border-color: var(--cw-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 20%, rgba(15, 118, 110, 0.1), transparent 45%),
    linear-gradient(160deg, #ffffff 0%, #f1f8f5 100%);
  box-shadow: 0 24px 60px rgba(11, 59, 54, 0.08);
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4.4vw, 4rem) !important;
  line-height: 1.08 !important;
  max-width: 13ch;
  margin: 8px 0 18px;
}

.hero-copy > p:not(.eyebrow) {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--cw-ink-soft);
  max-width: 34rem;
}

.hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--cw-ink-soft);
  font-size: 0.92rem;
}

.hero-assurances li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--cw-teal);
  font-weight: 700;
}

.report-preview-card {
  border-color: var(--cw-line);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(11, 59, 54, 0.12);
}

.preview-score-ring {
  width: min(220px, 100%);
}

.preview-score-ring::before {
  font-family: var(--cw-display);
  font-weight: 700;
}

/* Buttons */
.primary-link,
.primary-button {
  border-radius: 12px !important;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-link:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.28);
}

.secondary-link,
.secondary-button {
  border-radius: 12px !important;
  border-color: var(--cw-line) !important;
}

/* Surfaces */
.panel,
.saved-plan-row,
.detected-values-grid article {
  border-color: var(--cw-line);
  border-radius: 18px;
}

.panel {
  box-shadow: 0 12px 32px rgba(11, 59, 54, 0.05);
}

.detected-values-grid article strong {
  color: var(--cw-deep);
}

/* Keep section titles clear of the sticky header when jumped to. */
.app-shell :is(.panel, #report-results, [id$="-title"]) {
  scroll-margin-top: 150px;
}

@media (max-width: 560px) {
  .trust-pill,
  .live-pill {
    display: none !important;
  }

  .preview-score-ring {
    width: min(170px, 100%);
  }

  .hero-copy h1 {
    font-size: 2.1rem !important;
  }
}

.how-it-works {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.how-it-works strong {
  display: flex;
  align-items: center;
  gap: 10px;
}

.how-it-works .step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cw-teal);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .how-it-works {
    grid-template-columns: 1fr;
  }
}

/* Lifetime health record */
.record-panel .panel-heading-row {
  align-items: flex-start;
}

.record-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.record-summary-card {
  border: 1px solid var(--cw-line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
}

.record-summary-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--cw-deep);
}

.record-summary-card ul {
  margin: 0;
  padding-left: 18px;
}

.record-summary-card li span,
.record-summary-card p {
  display: block;
  color: var(--cw-ink-soft);
  font-size: 0.88rem;
  margin: 0;
}

.record-summary-warn {
  border-color: #e7b7a3;
  background: #fdf5f1;
}

.record-summary-warn strong {
  color: #9a3b17;
}

.record-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.record-form label {
  display: grid;
  gap: 6px;
}

.record-form .record-ongoing {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.record-form .record-notes,
.record-form .primary-action-row {
  grid-column: 1 / -1;
}

.record-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 18px 0 8px;
}

.record-toolbar label:first-child {
  display: grid;
  gap: 6px;
  margin-right: auto;
}

.record-import {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.record-year h4 {
  margin: 18px 0 8px;
  font-family: var(--cw-serif, "Domine", Georgia, serif);
  color: var(--cw-deep);
}

.record-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--cw-line);
  border-left: 4px solid var(--cw-teal);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #fff;
}

.record-item strong {
  display: block;
}

.record-item small,
.record-item p {
  color: var(--cw-ink-soft);
  margin: 2px 0 0;
}

.record-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cw-teal);
  margin-bottom: 2px;
}

.record-reaction { border-left-color: #c2552d; }
.record-reaction .record-chip { color: #9a3b17; }
.record-medicine { border-left-color: #2563eb; }
.record-medicine .record-chip { color: #1d4ed8; }
.record-habit { border-left-color: #a16207; }
.record-habit .record-chip { color: #854d0e; }
.record-procedure { border-left-color: #6b7280; }
.record-procedure .record-chip { color: #4b5563; }

.record-empty {
  color: var(--cw-ink-soft);
}

@media (max-width: 760px) {
  .record-summary,
  .record-form {
    grid-template-columns: 1fr;
  }

  .record-item {
    flex-direction: column;
  }
}

.record-item > button {
  align-self: center;
  flex: none;
}

.record-form input:disabled {
  opacity: 0.55;
}

@media (max-width: 620px) {
  .quick-nav.patient-nav {
    gap: 4px;
    justify-content: space-between;
  }

  .quick-nav.patient-nav a {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 4px;
    font-size: 0.86rem;
  }
}

/* Personal plan */
.personal-plan {
  grid-column: 1 / -1;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plan-card {
  border: 1px solid var(--cw-line);
  border-top: 4px solid var(--cw-teal);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
}

.plan-card > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cw-deep);
  font-size: 1.02rem;
}

.plan-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.plan-card li small {
  display: block;
  margin-top: 2px;
  color: var(--cw-ink-soft);
  font-size: 0.8rem;
}

.plan-move { border-top-color: #2563eb; }
.plan-track { border-top-color: #a16207; }
.plan-safety { border-top-color: #c2552d; background: #fdf8f5; }
.personal-plan-urgent .plan-move { border-top-color: #b91c1c; background: #fdf2f2; }

@media (max-width: 760px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

.result-sections .plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.result-sections .plan-card li {
  display: list-item;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  line-height: 1.45;
}

.result-sections .plan-card li small {
  margin-top: 3px;
}

.result-sections .plan-card ul {
  align-content: start;
}

.plan-grid {
  align-items: start;
}

/* All tests on the report */
.lab-panel {
  grid-column: 1 / -1;
}

.lab-panel-note {
  margin: 0 0 10px;
  color: var(--cw-ink-soft);
  font-size: 0.88rem;
}

.lab-panel-table {
  border: 1px solid var(--cw-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.lab-panel-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--cw-line);
  align-items: center;
}

.lab-panel-head {
  border-top: 0;
  background: #eef6f4;
  font-weight: 650;
  font-size: 0.85rem;
  color: var(--cw-deep);
}

.lab-panel-row small {
  display: block;
  color: var(--cw-ink-soft);
  font-size: 0.8rem;
}

.lab-panel-row em {
  font-style: normal;
  font-weight: 650;
  font-size: 0.85rem;
  color: var(--cw-teal);
}

.lab-status-above em,
.lab-status-below em,
.lab-status-outside em {
  color: #9a3b17;
}

.lab-status-critical {
  background: #fdf2f2;
}

.lab-status-critical em {
  color: #b91c1c;
}

.lab-status-unknown em {
  color: var(--cw-ink-soft);
}

@media (max-width: 760px) {
  .lab-panel-head {
    display: none;
  }

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

  .lab-panel-row span:first-child {
    grid-column: 1 / -1;
  }
}

/* Scan report explainer */
.scan-explainer {
  grid-column: 1 / -1;
}

.scan-critical {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #f1b8b8;
  border-radius: 12px;
  background: #fdf2f2;
  color: #991b1b;
  font-weight: 650;
}

.scan-impression blockquote {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--cw-teal);
  background: #f5faf8;
  border-radius: 6px;
  line-height: 1.5;
}

.scan-terms dl {
  margin: 0;
  display: grid;
  gap: 6px;
}

.scan-terms dt {
  font-weight: 650;
  color: var(--cw-deep);
}

.scan-terms dd {
  margin: 0 0 4px;
  color: var(--cw-ink-soft);
  font-size: 0.9rem;
}

.scan-explainer .plan-card p {
  margin: 0 0 8px;
  color: var(--cw-ink-soft);
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------
   Guided demo: a presenter bar pinned to the bottom of the screen,
   a soft highlight on the part being shown, and an in-page doctor
   brief preview so the presenter never leaves the tab.
   --------------------------------------------------------------- */
.hero-actions button.secondary-link {
  cursor: pointer;
  font: inherit;
}

body.tour-active {
  padding-bottom: 200px;
}

.tour-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 60;
  width: min(960px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border-radius: 16px;
  color: #f4f8f6;
  background: var(--cw-deep);
  box-shadow: 0 24px 60px rgba(11, 59, 54, 0.35);
}

.tour-bar[hidden],
.tour-brief[hidden] {
  display: none;
}

.tour-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.tour-bar :is(span, p, strong) {
  color: inherit;
}

.tour-count {
  font-size: 0.78rem;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7fd1c4 !important;
}

.tour-bar strong {
  font-family: var(--cw-display);
  font-size: 1.25rem;
  font-weight: 700 !important;
  line-height: 1.25;
}

.tour-bar p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #d9f2ec !important;
}

.tour-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tour-actions .primary-button {
  min-width: 96px;
  color: var(--cw-deep);
  background: #f4f8f6;
  box-shadow: none;
}

.tour-actions .secondary-button {
  color: #f4f8f6;
  background: transparent;
  border-color: rgba(244, 248, 246, 0.35);
}

.tour-actions .secondary-button:disabled {
  opacity: 0.4;
}

.tour-exit {
  border: 0;
  padding: 8px 6px;
  color: #bfd8d5;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

.tour-spotlight {
  animation: tour-spotlight 2.4s ease-out 1;
  border-radius: 16px;
}

@keyframes tour-spotlight {
  0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); }
  20% { box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); }
}

.tour-brief {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 24px 16px 200px;
  background: rgba(11, 59, 54, 0.45);
}

.tour-brief-card {
  width: min(820px, 100%);
  height: min(78vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(11, 59, 54, 0.3);
}

.tour-brief-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--cw-line);
}

.tour-brief iframe {
  flex: 1;
  width: 100%;
  border: 0;
}

@media (max-width: 700px) {
  body.tour-active {
    padding-bottom: 260px;
  }

  .tour-bar {
    bottom: 8px;
    width: calc(100% - 16px);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }

  .tour-bar strong {
    font-size: 1.08rem;
  }

  .tour-bar p {
    font-size: 0.9rem;
  }

  .tour-actions .primary-button {
    flex: 1;
  }

  .tour-brief {
    padding-bottom: 260px;
  }

  .tour-brief-card {
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-spotlight {
    animation: none;
  }
}

@media print {
  .tour-bar,
  .tour-brief {
    display: none !important;
  }
}

/* Was this helpful?, early access and founder view */
.feedback-box {
  display: grid;
  gap: 10px;
  margin: 0 18px 18px;
  border: 1px solid var(--cw-line);
  border-radius: 8px;
  padding: 13px;
  background: var(--cw-mist);
}

.feedback-question {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feedback-box button.selected {
  border-color: var(--cw-teal);
  background: var(--cw-teal);
  color: #ffffff;
}

.feedback-more {
  display: grid;
  gap: 8px;
}

.feedback-more textarea,
.early-access-form textarea {
  width: 100%;
}

.feedback-early-access,
.hero-early-access a {
  color: var(--cw-teal);
  font-weight: 600;
}

.hero-early-access {
  margin: 14px 0 0;
}

.early-access-form {
  display: grid;
  gap: 12px;
}

.founder-results h4 {
  margin: 18px 0 8px;
}

.founder-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.founder-table th,
.founder-table td {
  border: 1px solid var(--cw-line);
  padding: 6px 8px;
  text-align: left;
  overflow-wrap: anywhere;
}

.founder-list {
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

@media (max-width: 640px) {
  .feedback-box {
    margin: 0 12px 12px;
  }
}

/* Numbers to check after reading a photo */
.ocr-checks {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 13px;
  background: #fff7ed;
}

.ocr-checks p {
  margin: 0;
}

.ocr-checks ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ocr-checks li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

details.team-account-card {
  display: grid;
  gap: 10px;
}

details.team-account-card summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 700;
}

/* ===== FollowThrough Health 2026 design: warm paper, pill nav, stadium shapes ===== */
/* Inter Tight (SIL Open Font License), self-hosted in assets/fonts. */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-tight-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-tight-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-tight-latin-700-normal.woff2") format("woff2");
}

:root {
  --lp-paper: #f7f4ef;
  --lp-paper-2: #efeae2;
  --lp-ink: #111314;
  --lp-ink-soft: #5d605f;
  --lp-line: #e2dcd2;
  --lp-teal: #0f766e;
  --lp-teal-bright: #5fd4c4;
  --lp-dark: #13100d;
  --lp-dark-2: #221a14;
  --lp-amber: #e3a35a;
  --lp-red: #c2410c;
  --lp-display: "Inter Tight", "DM Sans", "Segoe UI", Arial, sans-serif;
}

html { overflow-x: clip; }
body { background: var(--lp-paper) !important; }
.app-shell { padding: 14px 16px 24px; }
.workspace { width: min(1200px, 100%); margin: 0 auto; }
.home-panel, .progress-rail { display: none !important; }

/* Floating pill navigation */
.topbar.site-nav {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
  padding: 8px 8px 8px 18px;
  border: 1px solid rgba(17, 19, 20, 0.08);
  border-radius: 999px;
  background: rgba(239, 236, 231, 0.82);
  backdrop-filter: saturate(150%) blur(16px);
  box-shadow: 0 10px 30px rgba(17, 19, 20, 0.06);
}
.site-nav .brand-lockup { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--lp-ink); }
.site-nav .brand-logo { width: 30px; height: 30px; }
.site-nav .brand-text strong { font-family: var(--lp-display); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.03em; }
.site-links { display: flex; gap: 6px; }
.site-links a { padding: 8px 14px; border-radius: 999px; color: var(--lp-ink); font-size: 0.97rem; text-decoration: none; }
.site-links a:hover { background: rgba(17, 19, 20, 0.06); }
.site-nav .topbar-actions { display: flex; align-items: center; gap: 8px; }
.site-nav .network-pill { font-size: 0.78rem; }
.nav-cta, .lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600 !important;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta { background: linear-gradient(180deg, #23262b, #0d0f12); color: #fff; box-shadow: 0 6px 16px rgba(13, 15, 18, 0.25); }
.nav-cta:hover, .lp-btn:hover { transform: translateY(-1px); }
.nav-cta:focus-visible, .lp-btn:focus-visible, .site-links a:focus-visible, .lp-acc button:focus-visible, .lp-pill-video:focus-visible { outline: 3px solid var(--lp-teal); outline-offset: 3px; }

/* App tabs: a slim segmented control on desktop */
.quick-nav.patient-nav {
  position: sticky;
  top: 82px;
  z-index: 15;
  display: flex;
  justify-content: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 4px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: none;
}
.quick-nav.patient-nav a { min-width: 0; padding: 8px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--lp-ink-soft); font-weight: 600 !important; }
.quick-nav.patient-nav a.active { background: var(--lp-ink); color: #fff; box-shadow: none; }
body[data-active-workspace="home-title"] .quick-nav.patient-nav { position: static; }

/* Landing typography */
.landing { color: var(--lp-ink); }
.landing :is(h1, h2, h3) { font-family: var(--lp-display) !important; color: var(--lp-ink); margin: 0; }
.landing h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; }
.landing h3 { font-size: 1.32rem; font-weight: 600; letter-spacing: -0.02em; }
.landing p { margin: 0; }
.lp-eyebrow { font-size: 0.82rem !important; font-weight: 600 !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lp-ink-soft); margin-bottom: 14px !important; }
.lp-eyebrow-light { color: rgba(255, 255, 255, 0.7) !important; }
.lp-center { text-align: center; }
.lp-fine { margin-top: 18px !important; color: var(--lp-ink-soft); font-size: 0.9rem; }

/* Hero */
.lp-hero { text-align: center; padding: 26px 0 0; }
.lp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--lp-line); border-radius: 999px; background: rgba(255, 255, 255, 0.55); font-size: 0.92rem; color: var(--lp-ink); }
.lp-hero h1 { max-width: 15ch; margin: 22px auto 0 !important; font-size: clamp(2.6rem, 7.2vw, 5.8rem); font-weight: 600; line-height: 0.98; letter-spacing: -0.045em; }
.lp-lede { max-width: 640px; margin: 22px auto 0 !important; color: var(--lp-ink-soft); font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.55; }
.lp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.lp-btn-dark { background: linear-gradient(180deg, #23262b, #0d0f12); color: #fff !important; border: 0; box-shadow: 0 8px 20px rgba(13, 15, 18, 0.22); }
.lp-btn-light { background: #fff; color: var(--lp-ink) !important; border: 1px solid var(--lp-line); }
.lp-btn-white { background: #fff; color: var(--lp-ink) !important; border: 0; }
.lp-btn-ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255, 255, 255, 0.35); }
.lp-play { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--lp-teal); }
.lp-play::after { content: ""; margin-left: 2px; border-left: 7px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.hero-early-access { margin-top: 16px !important; }
.hero-early-access a { color: var(--lp-teal); font-weight: 600 !important; }

/* Stadium stage with a real result */
.lp-stage {
  position: relative;
  display: grid;
  place-items: center;
  margin: 44px auto 0;
  min-height: 520px;
  padding: 56px 16px;
  border: 1px solid rgba(17, 19, 20, 0.08);
  border-radius: 999px 999px 48px 48px / 360px 360px 48px 48px;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 20% 30%, rgba(95, 212, 196, 0.55), transparent 60%),
    radial-gradient(50% 60% at 85% 20%, rgba(227, 163, 90, 0.45), transparent 60%),
    radial-gradient(70% 80% at 60% 100%, rgba(15, 118, 110, 0.55), transparent 65%),
    linear-gradient(160deg, #dfe9e4, #c9ddd6);
}
.lp-stage-glow { position: absolute; inset: auto 10% -30% 10%; height: 60%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.65), transparent); filter: blur(10px); }
.lp-mock { position: relative; width: min(560px, 100%); border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(11, 40, 37, 0.25), 0 2px 0 rgba(255, 255, 255, 0.6) inset; text-align: left; overflow: hidden; }
.lp-mock-bar, .lp-window header { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f3f1ed; border-bottom: 1px solid #ebe6de; }
.lp-mock-bar span, .lp-window header span { width: 10px; height: 10px; border-radius: 50%; background: #d6d0c6; }
.lp-mock-bar b { margin-left: 8px; font-size: 0.9rem; color: var(--lp-ink); }
.lp-mock-body { padding: 18px 20px 20px; }
.lp-score { display: flex; align-items: baseline; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid #efebe4; }
.lp-score strong { font-family: var(--lp-display); font-size: 3rem; font-weight: 600; letter-spacing: -0.04em; color: var(--lp-teal); line-height: 1; }
.lp-score small { color: var(--lp-ink-soft); }
.lp-score em { margin-left: auto; padding: 5px 12px; border-radius: 999px; background: #fff1e6; color: #9a3412; font-style: normal; font-weight: 600 !important; font-size: 0.85rem; }
.lp-rows { list-style: none; margin: 8px 0 0; padding: 0; }
.lp-rows li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid #f2eee8; }
.lp-rows span { font-size: 0.95rem; color: var(--lp-ink); }
.lp-rows b { font-family: var(--lp-display); font-size: 1.05rem; }
.lp-rows i { grid-column: 1 / -1; justify-self: start; }
.lp-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-style: normal; font-size: 0.78rem; font-weight: 600 !important; }
.lp-tag-far { background: #fde8e1; color: #9a3412; }
.lp-tag-out { background: #fdf3dc; color: #854d0e; }
.lp-tag-ok { background: #e3f4ef; color: #0f5f58; }
.lp-ask { margin-top: 14px !important; padding: 12px 14px; border-radius: 14px; background: #f4f8f6; font-size: 0.92rem; line-height: 1.45; color: var(--lp-ink); }
.lp-float { position: absolute; z-index: 2; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); box-shadow: 0 10px 24px rgba(11, 40, 37, 0.14); font-size: 0.88rem; font-weight: 600; color: var(--lp-ink); }
.lp-float-a { top: 18%; left: 7%; animation: lpFloat 7s ease-in-out infinite; }
.lp-float-b { bottom: 18%; right: 7%; animation: lpFloat 8s ease-in-out infinite reverse; }
@keyframes lpFloat { 50% { transform: translateY(-10px); } }

/* Honest strip in ruled cells */
.lp-strip { display: grid; grid-template-columns: 1.1fr 3fr; margin-top: 56px; border: 1px solid var(--lp-line); }
.lp-strip-label { display: flex; align-items: center; padding: 26px; border-right: 1px solid var(--lp-line); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--lp-ink-soft); }
.lp-strip-label b { color: var(--lp-ink); margin: 0 0.4em; }
.lp-strip ul { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.lp-strip li { display: grid; gap: 6px; padding: 24px 22px; border-right: 1px solid var(--lp-line); }
.lp-strip li:last-child { border-right: 0; }
.lp-strip strong { font-family: var(--lp-display); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; }
.lp-strip span { color: var(--lp-ink-soft); font-size: 0.92rem; line-height: 1.45; }

/* Problems and results */
.lp-problems { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: stretch; padding: 96px 0 40px; border-left: 1px solid var(--lp-line); border-right: 1px solid var(--lp-line); padding-inline: 32px; }
.lp-problems h2 { max-width: 12ch; margin-bottom: 40px !important; }
.lp-acc { list-style: none; margin: 0; padding: 0; }
.lp-acc li { position: relative; padding: 18px 0 20px; border-top: 1px solid var(--lp-line); }
.lp-acc button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; font-family: var(--lp-display); font-size: 1.32rem; font-weight: 500; letter-spacing: -0.015em; color: var(--lp-ink-soft); cursor: pointer; }
.lp-acc li.is-active button { color: var(--lp-ink); }
.lp-acc p { display: none; margin-top: 10px !important; color: var(--lp-ink-soft); line-height: 1.55; }
.lp-acc li.is-active p { display: block; }
.lp-acc-bar { position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--lp-teal); }
.lp-acc li.is-active .lp-acc-bar { width: 100%; }
.lp-acc.is-cycling li.is-active .lp-acc-bar { animation: lpBar 6s linear forwards; }
@keyframes lpBar { from { width: 0; } to { width: 100%; } }
.lp-result {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  padding: 48px 32px;
  border-radius: 999px 0 0 999px / 50% 0 0 50%;
  margin-right: -32px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(50% 60% at 30% 30%, rgba(95, 212, 196, 0.35), transparent 60%),
    radial-gradient(60% 70% at 80% 80%, rgba(227, 163, 90, 0.3), transparent 60%),
    linear-gradient(140deg, #1d2a27, #0f1513 60%, #2a1d14);
}
.lp-result-big { font-family: var(--lp-display); font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.lp-result-sub { max-width: 30ch; margin-top: 18px !important; color: rgba(255, 255, 255, 0.85); line-height: 1.5; }
.lp-result-link { margin-top: 26px; color: #fff; font-weight: 600 !important; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.5); }

/* Sentence with a pill-shaped demo */
.lp-sentence { padding: 80px 32px; border: 1px solid var(--lp-line); border-top: 0; }
.lp-sentence p { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; font-family: var(--lp-display); font-size: clamp(2rem, 4.6vw, 3.8rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.lp-pill-video {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(240px, 26vw, 360px);
  height: clamp(120px, 12vw, 170px);
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #0f766e, #134e4a 55%, #2a1d14);
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.3);
}
.lp-pill-lines { position: absolute; inset: 24% 18%; display: grid; gap: 9px; opacity: 0.35; }
.lp-pill-lines i { display: block; height: 8px; border-radius: 4px; background: #fff; }
.lp-pill-lines i:nth-child(2) { width: 70%; } .lp-pill-lines i:nth-child(3) { width: 85%; } .lp-pill-lines i:nth-child(4) { width: 55%; }
.lp-pill-label { position: relative; display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--lp-font, inherit); font-size: 1rem; font-weight: 600; letter-spacing: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.6); padding-bottom: 2px; }

/* Dark section: how it works */
.lp-dark {
  margin-inline: calc(50% - 50vw);
  padding: 96px max(16px, calc(50vw - 600px)) 104px;
  color: #fff;
  background: linear-gradient(180deg, var(--lp-paper) 0, #2a211a 90px, var(--lp-dark) 260px, var(--lp-dark) calc(100% - 200px), var(--lp-dark-2) 100%);
}
.lp-dark h2, .lp-dark h3 { color: #fff !important; }
.lp-dark h2 { margin-bottom: 48px !important; }
.lp-flows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.lp-flow { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 520px; padding: 30px 30px 0; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px; overflow: hidden; }
.lp-flow-1 { background: radial-gradient(80% 70% at 10% 0%, rgba(95, 212, 196, 0.35), transparent 60%), linear-gradient(160deg, #183a36, #12201e); }
.lp-flow-2 { background: radial-gradient(80% 70% at 90% 0%, rgba(227, 163, 90, 0.3), transparent 60%), linear-gradient(160deg, #2f241b, #1a1410); }
.lp-flow-3 { background: radial-gradient(80% 70% at 10% 0%, rgba(194, 65, 12, 0.3), transparent 60%), linear-gradient(160deg, #2b1c17, #161110); }
.lp-flow-4 { background: radial-gradient(80% 70% at 90% 0%, rgba(95, 212, 196, 0.25), transparent 60%), linear-gradient(160deg, #1b2c2a, #121816); }
.lp-step { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem !important; letter-spacing: 0.12em; text-transform: uppercase; }
.lp-flow > p:not(.lp-step) { max-width: 46ch; color: rgba(255, 255, 255, 0.78); line-height: 1.55; }
.lp-flow > a, .lp-cards a { align-self: flex-start; color: #fff; font-weight: 600 !important; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.45); padding-bottom: 2px; }
.lp-cards a { color: var(--lp-amber); border-color: rgba(227, 163, 90, 0.5); }
.lp-window { margin-top: auto; transform: translateY(14px); border-radius: 16px 16px 0 0; background: #fff; color: var(--lp-ink); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3); overflow: hidden; }
.lp-window header b { margin-left: 10px; color: var(--lp-teal); font-family: var(--lp-display); font-size: 1rem; }
.lp-window header em { font-style: normal; color: var(--lp-ink-soft); font-size: 0.9rem; }
.lp-window-body { padding: 20px 22px 34px; display: grid; gap: 10px; }
.lp-w-title { font-family: var(--lp-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.lp-w-sub { color: var(--lp-ink-soft); font-size: 0.92rem; }
.lp-w-check { padding: 10px 12px; border-radius: 12px; background: #fff7ed; color: #7c2d12; font-size: 0.88rem; }
.lp-progress { height: 8px; border-radius: 4px; background: #eee9e1; overflow: hidden; }
.lp-progress i { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, var(--lp-teal), var(--lp-teal-bright)); }
.lp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-pills span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #ece7df; border-radius: 999px; font-size: 0.85rem; font-weight: 600 !important; }
.lp-pills span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.lp-dot-ok::before { background: #16a34a; } .lp-dot-out::before { background: #d97706; } .lp-dot-far::before { background: #dc2626; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.lp-table th { text-align: left; color: var(--lp-ink-soft); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; padding: 6px 4px; }
.lp-table td { padding: 9px 4px; border-top: 1px solid #f0ebe4; }
.lp-alert { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid #fecaca; background: #fef2f2; }
.lp-alert strong { color: #991b1b; }
.lp-alert span { color: #7f1d1d; font-size: 0.92rem; line-height: 1.45; }
.lp-brief { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 0.92rem; color: var(--lp-ink); }
.lp-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 22px; }
.lp-cards article { display: flex; flex-direction: column; gap: 12px; padding: 30px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px; background: rgba(255, 255, 255, 0.03); }
.lp-cards p { color: rgba(255, 255, 255, 0.72); line-height: 1.55; }
.lp-cards .lp-card-accent { border-color: rgba(227, 163, 90, 0.45); }

/* Safety and pricing */
.lp-safety, .lp-pricing { padding: 96px 32px; border-left: 1px solid var(--lp-line); border-right: 1px solid var(--lp-line); }
.lp-safety h2, .lp-pricing h2 { max-width: 20ch; margin-bottom: 40px !important; }
.lp-safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.lp-safety-grid > div { padding: 28px; border: 1px solid var(--lp-line); border-radius: 22px; background: rgba(255, 255, 255, 0.55); }
.lp-safety-grid h3 { margin-bottom: 14px !important; }
.lp-safety-grid > div:first-child h3 { color: var(--lp-teal) !important; }
.lp-safety-grid > div:last-child h3 { color: var(--lp-red) !important; }
.lp-safety-grid ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }
.lp-pricing { border-top: 1px solid var(--lp-line); }
.lp-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-price-grid article { display: flex; flex-direction: column; gap: 14px; padding: 30px; border: 1px solid var(--lp-line); border-radius: 22px; background: #fff; }
.lp-price-grid .lp-price-pop { border: 2px solid var(--lp-ink); }
.lp-price { font-family: var(--lp-display); font-size: 3rem; font-weight: 600; letter-spacing: -0.04em; }
.lp-price small { font-size: 1rem; color: var(--lp-ink-soft); letter-spacing: 0; }
.lp-price-grid ul { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 6px; color: var(--lp-ink-soft); }
.lp-price-grid .lp-btn { margin-top: auto; }

/* Final band and footer */
.lp-final { margin-inline: calc(50% - 50vw); padding: 96px max(16px, calc(50vw - 600px)); text-align: center; color: #fff; background: radial-gradient(60% 80% at 50% 0%, rgba(95, 212, 196, 0.25), transparent 60%), var(--lp-dark); }
.lp-final h2 { max-width: 18ch; margin: 0 auto !important; color: #fff !important; }
.lp-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 28px 4px 8px; color: var(--lp-ink-soft); font-size: 0.92rem; }
.lp-footer div { display: grid; gap: 4px; }
.lp-footer strong { color: var(--lp-ink); font-family: var(--lp-display); font-size: 1.1rem; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.lp-footer a { color: var(--lp-ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .lp-float-a, .lp-float-b { animation: none; }
  .nav-cta, .lp-btn { transition: none; }
}

/* Tablet */
@media (max-width: 980px) {
  .site-links { display: none; }
  .lp-strip { grid-template-columns: 1fr; }
  .lp-strip-label { border-right: 0; border-bottom: 1px solid var(--lp-line); }
  .lp-strip ul { grid-template-columns: repeat(2, 1fr); }
  .lp-strip li:nth-child(2) { border-right: 0; }
  .lp-strip li:nth-child(-n + 2) { border-bottom: 1px solid var(--lp-line); }
  .lp-problems { grid-template-columns: 1fr; padding-top: 64px; }
  .lp-result { margin-right: 0; border-radius: 36px; min-height: 340px; }
  .lp-flows, .lp-cards, .lp-price-grid { grid-template-columns: 1fr; }
  .lp-safety-grid { grid-template-columns: 1fr; }
}

/* Phone: app tabs become a bottom bar; stadiums become soft rectangles */
@media (max-width: 720px) {
  .app-shell { padding: 10px 12px 96px; }
  .topbar.site-nav { top: 8px; padding: 6px 6px 6px 14px; }
  .site-nav .network-pill { display: none; }
  .nav-cta { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
  .quick-nav.patient-nav,
  body[data-active-workspace="home-title"] .quick-nav.patient-nav {
    position: fixed;
    top: auto;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 30;
    width: auto;
    margin: 0;
    justify-content: space-between;
    box-shadow: 0 12px 30px rgba(17, 19, 20, 0.16);
    background: rgba(247, 244, 239, 0.96);
  }
  .quick-nav.patient-nav a { flex: 1; padding: 10px 4px; font-size: 0.86rem; text-align: center; }
  .lp-hero { padding-top: 14px; }
  .lp-hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .lp-actions { flex-direction: column; align-items: stretch; }
  .lp-stage { min-height: 0; margin-top: 32px; padding: 64px 12px 28px; border-radius: 32px; }
  .lp-float-a { top: 14px; left: 12px; }
  .lp-float-b { display: none; }
  .lp-strip ul { grid-template-columns: 1fr; }
  .lp-strip li { border-right: 0 !important; border-bottom: 1px solid var(--lp-line); }
  .lp-strip li:last-child { border-bottom: 0; }
  .lp-problems, .lp-safety, .lp-pricing { padding-inline: 18px; }
  .lp-acc button { font-size: 1.12rem; }
  .lp-sentence { padding: 56px 16px; }
  .lp-sentence p { flex-direction: column; gap: 16px; }
  .lp-dark { padding-top: 72px; padding-bottom: 72px; }
  .lp-flow { min-height: 0; padding: 24px 20px 0; }
  .lp-cards article, .lp-price-grid article, .lp-safety-grid > div { padding: 22px; }
  .lp-final { padding-top: 72px; padding-bottom: 72px; }
}

/* Design pass 2: fixes from the visual review */
.lp-hero h1 { max-width: 17.5ch; }
.lp-float-a { top: 46%; left: 4%; max-width: 190px; text-align: left; line-height: 1.35; }
.site-nav .install-button { min-height: 40px; padding: 0 16px; border: 1px solid var(--lp-line); border-radius: 999px; background: #fff; color: var(--lp-ink); font-weight: 600; box-shadow: none; }
.lp-strip-label { display: block; align-self: center; line-height: 1.5; }
.landing .lp-result-big { color: #fff !important; }
.landing .lp-result-sub { color: rgba(255, 255, 255, 0.85) !important; }
.landing .lp-sentence p, .landing .lp-sentence p > span { color: var(--lp-ink) !important; font-weight: 600 !important; }
.landing .lp-price, .landing .lp-w-title, .landing .lp-score strong { color: var(--lp-ink) !important; font-weight: 600 !important; }
.landing .lp-score strong { color: var(--lp-teal) !important; }
.landing .lp-flow > p:not(.lp-step), .landing .lp-cards p { color: rgba(255, 255, 255, 0.78) !important; }
.landing .lp-step { color: rgba(255, 255, 255, 0.55) !important; }
.landing .lp-acc button { font-family: var(--lp-display) !important; font-weight: 500 !important; }
.landing .lp-pill-label { color: #fff !important; }
.lp-result { border-radius: 999px 0 0 999px; }
.landing h2.lp-center { text-align: center; margin-inline: auto; }
@media (max-width: 980px) { .lp-result { border-radius: 36px; } }
@media (max-width: 720px) { .lp-float-a { top: 14px; left: 12px; max-width: none; } }
.install-button[hidden] { display: none !important; }
.lp-strip-label b { margin: 0; font-weight: 700 !important; }

/* ===== App screens in the 2026 design ===== */
.legacy-hidden, #report-badge { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.report-panel:not(.has-result) .v1-chat-card { display: none !important; }

.workspace > .panel,
.workspace > section.panel,
.workspace > form.panel {
  border: 1px solid var(--lp-line) !important;
  border-radius: 26px !important;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(17, 19, 20, 0.02), 0 18px 40px rgba(17, 19, 20, 0.04) !important;
  padding: clamp(18px, 3vw, 34px) !important;
}
.workspace > .panel::before { display: none !important; }
.workspace > .panel .eyebrow { color: var(--lp-ink-soft) !important; font-size: 0.78rem !important; font-weight: 600 !important; letter-spacing: 0.12em; text-transform: uppercase; }
.workspace > .panel h3 { font-family: var(--lp-display) !important; font-size: clamp(1.7rem, 3.4vw, 2.4rem) !important; font-weight: 600 !important; letter-spacing: -0.035em; line-height: 1.05; color: var(--lp-ink) !important; margin: 4px 0 8px !important; }
.workspace > .panel h4 { font-family: var(--lp-display) !important; font-weight: 600 !important; letter-spacing: -0.02em; color: var(--lp-ink) !important; }
.workspace > .panel .panel-intro { color: var(--lp-ink-soft) !important; font-size: 1rem; line-height: 1.55; max-width: 60ch; }

.workspace .primary-button {
  min-height: 48px;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #23262b, #0d0f12) !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 20px rgba(13, 15, 18, 0.18) !important;
}
.workspace .secondary-button {
  min-height: 44px;
  border: 1px solid var(--lp-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--lp-ink) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
.workspace .primary-button.compact, .workspace .secondary-button.compact { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }
.workspace .primary-button:hover, .workspace .secondary-button:hover { transform: translateY(-1px); }
.text-button { border: 0; background: none; padding: 8px 4px; color: var(--lp-teal); font-weight: 600 !important; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.workspace :is(input[type="text"], input[type="email"], input[type="password"], input[type="date"], input:not([type]), select, textarea) {
  border: 1px solid var(--lp-line) !important;
  border-radius: 14px !important;
  background: #fffdf9 !important;
  color: var(--lp-ink) !important;
  box-shadow: none !important;
}
.workspace :is(input, select, textarea):focus-visible, .workspace :is(button, summary):focus-visible { outline: 3px solid rgba(15, 118, 110, 0.45) !important; outline-offset: 2px; }

/* Add-a-report card */
.composer { display: grid; gap: 16px; margin-top: 18px; }
.composer-drop {
  position: relative;
  display: grid !important;
  justify-items: center;
  gap: 6px;
  padding: 34px 20px !important;
  border: 2px dashed #d8d1c6 !important;
  border-radius: 22px !important;
  background: radial-gradient(70% 90% at 50% 0%, rgba(95, 212, 196, 0.12), transparent 70%), #fbf9f5 !important;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.composer-drop:hover, .composer-drop:focus-within { border-color: var(--lp-teal) !important; }
.composer-drop strong { font-family: var(--lp-display); font-size: 1.25rem; font-weight: 600 !important; color: var(--lp-ink); }
.composer-drop small { color: var(--lp-ink-soft); }
.composer-drop-icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--lp-ink);
  -webkit-mask: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 26px;
}
.composer-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.composer-or { display: flex; align-items: center; gap: 12px; color: var(--lp-ink-soft); font-size: 0.9rem; }
.composer-or::before, .composer-or::after { content: ""; flex: 1; height: 1px; background: var(--lp-line); }
.composer-text textarea { width: 100%; min-height: 108px; padding: 14px 16px; font-size: 1rem; line-height: 1.5; }
.composer-whose { display: grid; gap: 8px; }
.composer-whose > label { font-weight: 600 !important; color: var(--lp-ink); }
.whose-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.whose-chip { min-height: 40px; padding: 0 18px; border: 1px solid var(--lp-line); border-radius: 999px; background: #fff; color: var(--lp-ink); font-weight: 600 !important; cursor: pointer; }
.whose-chip.is-active { background: var(--lp-ink); border-color: var(--lp-ink); color: #fff; }
.whose-chips input { flex: 1 1 140px; min-height: 40px; padding: 0 14px; border-radius: 999px !important; }
.composer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.composer-actions .primary-button { min-width: 220px; min-height: 52px; font-size: 1.02rem; }
.composer-more summary, .add-form > summary { cursor: pointer; color: var(--lp-ink-soft); font-weight: 600; }
.composer-more[open] { display: grid; gap: 12px; }
.composer-privacy { color: var(--lp-ink-soft) !important; font-size: 0.88rem; }

/* Answer-first results */
.report-panel .v1-result-card { border: 1px solid var(--lp-line) !important; border-radius: 24px !important; background: #fff !important; box-shadow: 0 24px 60px rgba(17, 19, 20, 0.07) !important; overflow: hidden; }
.report-panel .result-hero { background: linear-gradient(180deg, #fbf9f5, #fff) !important; border-bottom: 1px solid #f0ebe3 !important; }
.report-panel .result-hero > div > span { color: var(--lp-ink-soft) !important; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.report-panel .result-hero .section-heading-action > strong { font-family: var(--lp-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600 !important; letter-spacing: -0.03em; color: var(--lp-ink) !important; }
.report-panel .result-score { border-radius: 24px !important; background: #fff !important; border: 1px solid var(--lp-line) !important; box-shadow: none !important; }
.report-panel .result-score strong { font-family: var(--lp-display) !important; font-weight: 600 !important; letter-spacing: -0.04em; color: var(--lp-ink) !important; }
.result-next { margin: 0 18px 4px !important; padding: 14px 16px; border-radius: 16px; font-weight: 600 !important; font-size: 1.02rem; line-height: 1.45; }
.result-next-urgent { background: #fef2f2; color: #991b1b !important; border: 1px solid #fecaca; }
.result-next-needs_review { background: #fff1e6; color: #9a3412 !important; border: 1px solid #fed7aa; }
.result-next-attention { background: #fefce8; color: #854d0e !important; border: 1px solid #fde68a; }
.result-next-routine { background: #ecfdf5; color: #065f46 !important; border: 1px solid #a7f3d0; }
.result-more { margin: 0; border: 1px solid var(--lp-line); border-radius: 18px; background: #fbf9f5; overflow: hidden; }
.result-more > summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.result-more > summary::-webkit-details-marker { display: none; }
.result-more > summary strong { font-family: var(--lp-display); font-size: 1.08rem; font-weight: 600 !important; color: var(--lp-ink); }
.result-more > summary span { color: var(--lp-ink-soft); font-size: 0.9rem; }
.result-more > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--lp-ink); border-bottom: 2px solid var(--lp-ink); transform: rotate(45deg); transition: transform 0.15s ease; flex: none; }
.result-more[open] > summary::after { transform: rotate(225deg); }
.result-more[open] { background: #fff; }
.result-more > section, .result-more > .lab-panel, .result-more > .personal-plan { margin: 0 !important; padding: 0 18px 18px !important; border: 0 !important; box-shadow: none !important; background: transparent !important; }
.result-more > section > h4:first-child, .result-more .lab-panel > h4:first-child { display: none; }

/* Add forms behind a button (Record, lab tracker) */
.add-form { border: 1px solid var(--lp-line); border-radius: 18px; background: #fbf9f5; }
.add-form > summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; color: var(--lp-ink) !important; list-style: none; }
.add-form > summary::-webkit-details-marker { display: none; }
.add-form > summary::before { content: "+"; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lp-ink); color: #fff; font-weight: 700; }
.add-form[open] > summary::before { content: "−"; }
.add-form[open] { padding-bottom: 16px; background: #fff; }
.add-form > form, .add-form > .lab-trend-grid, .add-form > .primary-action-row { padding: 0 18px; }

@media (max-width: 720px) {
  .composer-actions .primary-button { width: 100%; }
  .composer-actions { flex-direction: column; align-items: stretch; }
  .result-next { margin: 0 12px 4px !important; }
}

/* Polish pass */
.ocr-checks[hidden] { display: none !important; }
.report-panel .result-hero .inline-action-group { display: flex !important; flex-wrap: wrap; gap: 8px; }
.report-panel .result-hero .inline-action-group > * { width: auto !important; flex: 0 0 auto; }
#clear-saved, #clear-lab-trends { border: 0 !important; background: none !important; color: var(--lp-ink-soft) !important; text-decoration: underline; text-underline-offset: 3px; min-height: 32px !important; padding: 0 6px !important; box-shadow: none !important; }
#clear-saved:hover, #clear-lab-trends:hover { color: #b91c1c !important; transform: none; }
.saved-panel .saved-plan-row:not(.v1-result-card) { border: 1px solid var(--lp-line) !important; border-left: 1px solid var(--lp-line) !important; border-radius: 18px !important; background: #fbf9f5 !important; box-shadow: none !important; }
@media (max-width: 720px) {
  .report-panel .result-hero { grid-template-columns: 1fr !important; }
  .report-panel .result-score { order: -1; display: flex !important; align-items: baseline; gap: 8px; width: 100% !important; padding: 14px 16px !important; text-align: left; }
  .report-panel .result-score strong { font-size: 2.6rem !important; }
  .report-panel .result-score small { margin-left: auto; font-weight: 600 !important; }
  .report-panel .result-hero > div > p:not(.status-line) { display: none; }
}
@media (max-width: 720px) { .report-panel .result-score { aspect-ratio: auto !important; min-width: 0 !important; } }

/* ---------- Help chat and plans ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.help-chat { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 70; font-family: "Inter Tight", system-ui, sans-serif; }
.help-chat-launcher {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 8px;
  border: 0; border-radius: 999px; background: var(--lp-ink, #111314); color: #fff; font: inherit; font-weight: 600;
  box-shadow: 0 14px 34px rgba(17, 19, 20, 0.28); cursor: pointer;
}
.help-chat-launcher > span:first-child {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--lp-teal, #0f766e); font-size: 1.15rem; font-weight: 700;
}
.help-chat-launcher:focus-visible, .help-chat-chip:focus-visible, .help-chat-send:focus-visible, .help-chat-close:focus-visible { outline: 3px solid var(--lp-teal, #0f766e); outline-offset: 2px; }
.help-chat.open .help-chat-launcher { display: none; }
.help-chat-panel {
  display: flex; flex-direction: column; width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 120px));
  border: 1px solid var(--lp-line, #e2dcd2); border-radius: 22px; background: #fff; color: var(--lp-ink, #111314);
  box-shadow: 0 30px 70px rgba(17, 19, 20, 0.25); overflow: hidden;
}
.help-chat-panel[hidden] { display: none !important; }
.help-chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 12px 18px; background: var(--lp-ink, #111314); color: #fff; }
.help-chat-head h2 { margin: 0; font-size: 1.05rem; color: #fff !important; letter-spacing: -0.01em; }
.help-chat-head p { margin: 2px 0 0; font-size: 0.86rem; color: rgba(255, 255, 255, 0.72) !important; }
.help-chat-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.help-chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--lp-paper, #f7f4ef); }
.help-chat-msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 0.95rem; line-height: 1.45; overflow-wrap: anywhere; }
.help-chat-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--lp-line, #e2dcd2); border-bottom-left-radius: 6px; }
.help-chat-user { align-self: flex-end; background: var(--lp-teal, #0f766e); color: #fff; border-bottom-right-radius: 6px; }
.help-chat-pending { color: #6b6f72; font-style: italic; }
.help-chat-urgent { background: #fdecea; border-color: #f2b8b0; color: #7a1d12; font-weight: 600; }
.help-chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; background: var(--lp-paper, #f7f4ef); }
.help-chat-chips:not(:empty) { padding-bottom: 12px; }
.help-chat-chip { padding: 7px 12px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 999px; background: #fff; color: var(--lp-ink, #111314); font: inherit; font-size: 0.86rem; cursor: pointer; }
.help-chat-chip:hover { border-color: var(--lp-teal, #0f766e); }
.help-chat-share { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 0.86rem; border-top: 1px solid var(--lp-line, #e2dcd2); }
.help-chat-share[hidden] { display: none !important; }
.help-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--lp-line, #e2dcd2); }
.help-chat-form textarea { flex: 1; min-height: 42px; max-height: 120px; resize: none; padding: 10px 12px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 14px; font: inherit; font-size: 0.95rem; }
.help-chat-send { min-height: 42px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--lp-ink, #111314); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.help-chat-send:disabled { opacity: 0.5; cursor: wait; }
.help-chat-fine { margin: 0; padding: 0 16px 12px; font-size: 0.76rem; color: #6b6f72 !important; }

.billing-panel .billing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.billing-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 18px; background: #fff; }
.billing-card h4 { margin: 0; font-size: 1.05rem; }
.billing-card ul { margin: 0 0 6px; padding-left: 18px; flex: 1; font-size: 0.92rem; line-height: 1.5; }
.billing-card button { width: 100%; }
.billing-card button:disabled { opacity: 0.7; cursor: default; }
.billing-price { margin: 0; font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; }
.billing-price small { font-size: 0.9rem; font-weight: 500; color: #6b6f72; }
.billing-card-pop { border-color: var(--lp-ink, #111314); }
.billing-card-current { border: 2px solid var(--lp-teal, #0f766e); background: #f1f8f6; }
.billing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.billing-actions .status-line { margin: 0; }
.billing-banner { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #fff7e6; border: 1px solid #f1d9a6; font-weight: 600; }
.billing-banner.ok { background: #eaf6f2; border-color: #b6dccf; }
.billing-banner[hidden], #manage-billing[hidden] { display: none !important; }

@media (max-width: 720px) {
  .help-chat { right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); }
  .help-chat-launcher { min-height: 46px; padding: 0 6px; }
  .help-chat-launcher-text { display: none; }
  .help-chat.open { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); }
  .help-chat-panel { width: 100%; height: min(78vh, 620px); }
  .help-chat-form textarea { font-size: 16px; }
  .billing-panel .billing-grid { grid-template-columns: 1fr; }
}
@media print { .help-chat { display: none !important; } }

/* ---------- Share with my doctor ---------- */
.share-dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 22px; color: var(--lp-ink, #111314); box-shadow: 0 30px 70px rgba(17, 19, 20, 0.25); }
.share-dialog::backdrop { background: rgba(17, 19, 20, 0.4); }
.share-dialog-inner { display: grid; gap: 14px; padding: 20px; }
.share-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.share-dialog-head h2 { margin: 0; font-size: 1.25rem; }
.share-dialog-head .help-chat-close { background: #f1efe9; color: var(--lp-ink, #111314); }
.share-dialog label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.share-dialog input, .share-dialog select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 12px; font: inherit; font-weight: 400; }
.share-intro, .share-includes { margin: 0; color: #4b5055; }
.share-warning { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff7e6; border: 1px solid #f1d9a6; font-size: 0.9rem; }
#share-create, .share-signin, .share-result { display: grid; gap: 12px; }
#share-create[hidden], .share-signin[hidden], .share-result[hidden] { display: none !important; }
.share-result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.share-result-actions [hidden] { display: none !important; }
.share-list-wrap summary { cursor: pointer; font-weight: 600; }
.share-list { display: grid; gap: 8px; margin-top: 10px; }
.share-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 14px; background: #fff; }
.share-row div { display: grid; gap: 2px; min-width: 0; }
.share-row span { font-size: 0.85rem; color: #5b6064; }
.share-row-off { opacity: 0.6; }

/* ---------- DocBridge (for doctors) ---------- */
.docbridge-panel .db-pilot-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff7e6; border: 1px solid #f1d9a6; font-size: 0.92rem; }
.db-block { margin-top: 16px; padding: 16px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 16px; background: #fff; display: grid; gap: 12px; }
.db-block[hidden], #db-workspace[hidden], .db-review[hidden], .db-link[hidden], .db-visit[hidden] { display: none !important; }
.db-block summary { cursor: pointer; font-weight: 700; }
.db-new[open] { gap: 12px; }
.db-new > :not(summary) { margin-top: 10px; }
.db-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.docbridge-panel label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.docbridge-panel input[type="text"], .docbridge-panel input[type="date"], .docbridge-panel select, .docbridge-panel textarea { min-height: 42px; padding: 8px 12px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 12px; font: inherit; font-weight: 400; }
.db-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.db-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.db-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.db-metrics div { padding: 12px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 14px; background: #fff; display: grid; gap: 2px; }
.db-metrics strong { font-size: 1.5rem; letter-spacing: -0.02em; }
.db-metrics span { font-size: 0.82rem; color: #5b6064; }
.db-review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 16px; }
.db-pane { padding: 16px; border: 2px solid var(--lp-teal, #0f766e); border-radius: 16px; background: #fff; display: grid; gap: 10px; align-content: start; }
.db-pane h4 { margin: 0; }
.db-pane textarea#db-summary { min-height: 260px; line-height: 1.5; }
.db-table { overflow-x: auto; }
.db-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.db-table th, .db-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--lp-line, #e2dcd2); }
.db-table th { background: #f1f8f6; }
.db-flag td { background: #fff4f2; font-weight: 600; }
.db-check-tag { font-style: normal; font-size: 0.75rem; padding: 1px 6px; border-radius: 999px; background: #fff7e6; border: 1px solid #f1d9a6; }
.db-muted { color: #5b6064; font-weight: 400; font-size: 0.9rem; }
.db-link { display: grid; gap: 8px; }
.db-list-head { display: flex; justify-content: space-between; align-items: center; }
.db-list-head h4 { margin: 0; }
.db-list { display: grid; gap: 8px; }
.db-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 12px; }
.db-row div:first-child { display: grid; gap: 2px; min-width: 0; }
.db-row span { font-size: 0.85rem; color: #5b6064; }
.db-row-needs_call { border-color: #f2b8b0; background: #fff8f6; }
.db-row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.db-visit h5 { margin: 8px 0 4px; font-size: 0.95rem; color: var(--lp-teal, #0f766e); }
.db-visit blockquote { margin: 0; padding: 10px 12px; border-left: 3px solid var(--lp-teal, #0f766e); background: #f7f4ef; border-radius: 0 10px 10px 0; font-size: 0.92rem; }
@media (max-width: 720px) {
  .db-grid, .db-review { grid-template-columns: 1fr; }
  .db-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- What changed + lab reminder ---------- */
.report-changes { margin: 14px 0; padding: 16px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 16px; background: #fff; }
.report-changes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.report-changes-head h4 { margin: 0; }
.report-changes-head span { font-size: 0.85rem; color: #5b6064; }
.report-changes-counts { margin: 8px 0; }
.rc-good { color: #0f766e; } .rc-bad { color: #9a3412; }
.report-changes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.report-changes li { padding: 8px 10px; border-radius: 10px; background: #f7f4ef; }
.report-changes .rc-backIn, .report-changes .rc-improving { background: #eaf6f2; }
.report-changes .rc-newOut, .report-changes .rc-worsening { background: #fff4f2; }
.rc-arrow { display: inline-block; width: 1.2em; font-weight: 700; }
.rc-backIn .rc-arrow, .rc-improving .rc-arrow { color: #0f766e; }
.rc-newOut .rc-arrow, .rc-worsening .rc-arrow { color: #9a3412; }
.lab-reminder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; font-size: 0.92rem; }
.lab-reminder select { min-height: 36px; padding: 4px 10px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 10px; font: inherit; }
.db-pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.db-pricing div { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 14px; background: #fff; }
.db-pricing span { font-size: 0.86rem; color: #5b6064; }
.db-waitlist { display: grid; gap: 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--lp-line, #e2dcd2); }
.db-join summary { cursor: pointer; font-weight: 600; }
.db-join { display: grid; gap: 10px; }
.db-join > :not(summary) { margin-top: 10px; }
.db-invite { display: grid; gap: 8px; }
.db-invite[hidden], #db-approver-note[hidden], .db-actions [hidden] { display: none !important; }
.db-reject { color: #9a3412 !important; }
.db-audit { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 0.92rem; }
.db-row-manual_review { border-color: #f1d9a6; background: #fffbf2; }
.db-row-rejected { opacity: 0.6; }
@media (max-width: 720px) { .db-pricing { grid-template-columns: 1fr; } }

/* ---------- Medicine reminders ---------- */
.reminders-panel .rm-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff7e6; border: 1px solid #f1d9a6; font-size: 0.92rem; }
.reminders-panel .rm-note[hidden], .rm-form[hidden], .rm-call[hidden] { display: none !important; }
.rm-form { margin-top: 16px; padding: 16px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 16px; background: #fff; display: grid; gap: 14px; }
.rm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.reminders-panel label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.reminders-panel label small { font-weight: 400; color: var(--lp-ink-soft, #5d605f); }
.reminders-panel input[type="text"], .reminders-panel input[type="tel"], .reminders-panel input[type="time"], .reminders-panel select { min-height: 42px; padding: 8px 12px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 12px; font: inherit; font-weight: 400; background: #fff; }
.rm-times, .rm-days { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.rm-times legend, .rm-days legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; padding: 0; }
.rm-time-row { display: flex; align-items: center; gap: 10px; }
.rm-time-row [hidden] { display: none; }
#rm-day-list { display: flex; flex-wrap: wrap; gap: 8px; }
.reminders-panel .rm-day { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 999px; font-weight: 500; }
.reminders-panel .rm-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; }
.reminders-panel .rm-check input { margin-top: 3px; flex: none; }
.rm-call { display: grid; gap: 12px; padding: 12px; border-radius: 12px; background: var(--lp-paper, #f7f4ef); }
.rm-list { display: grid; gap: 10px; margin-top: 14px; }
.rm-empty { color: var(--lp-ink-soft, #5d605f); }
.rm-card { padding: 14px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 16px; background: #fff; display: grid; gap: 10px; }
.rm-card-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rm-card-head > div:first-child { display: grid; gap: 2px; min-width: 0; }
.rm-card-head span { font-size: 0.88rem; color: var(--lp-ink-soft, #5d605f); }
.rm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rm-today { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-dose { font-size: 0.82rem; font-variant-numeric: tabular-nums; padding: 3px 10px; border-radius: 999px; background: #eef1f0; color: #3d4442; }
.rm-dose-taken { background: #e3f4ee; color: #0f766e; }
.rm-dose-missed { background: #fdeee6; color: #b4400e; }
.rm-dose-due, .rm-dose-calling { background: #fff4df; color: #8a5a00; }
.rm-call-line { margin: 0; font-size: 0.9rem; color: var(--lp-ink-soft, #5d605f); }
.rm-call-line.rm-ok { color: #0f766e; }
.rm-danger { color: #b4400e !important; }
.rm-disclaimer { margin: 14px 0 0; font-size: 0.85rem; color: var(--lp-ink-soft, #5d605f); }
.reminders-panel .link-button { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--lp-teal, #0f766e); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.reminders-panel .link-button:focus-visible { outline: 2px solid var(--lp-teal, #0f766e); outline-offset: 2px; border-radius: 4px; }
.db-danger { color: #b4400e !important; border-color: #f1c4ad !important; }

/* ---------- Two-step sign-in ---------- */
.tf-login { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 14px; background: var(--lp-paper, #f7f4ef); }
.tf-login[hidden], .twofactor-panel [hidden] { display: none !important; }
.tf-login label, .twofactor-panel label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.tf-login input, .twofactor-panel input { min-height: 42px; padding: 8px 12px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 12px; font: inherit; font-weight: 400; letter-spacing: 0.08em; background: #fff; max-width: 280px; }
.tf-note { margin: 12px 0 0; color: var(--lp-ink-soft, #5d605f); }
.tf-setup, .tf-codes { display: grid; gap: 12px; margin-top: 12px; }
.tf-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.tf-steps code, .tf-codes code { font-size: 0.95rem; background: #eef1f0; padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.tf-qr { width: 180px; max-width: 100%; background: #fff; padding: 6px; border: 1px solid var(--lp-line, #e2dcd2); border-radius: 12px; }
.tf-qr svg { display: block; width: 100%; height: auto; }
.tf-codes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.db-intake { margin-top: 12px; padding: 14px; border: 1px solid #b9dcd4; border-radius: 14px; background: #eef8f5; display: grid; gap: 6px; }
.db-intake[hidden] { display: none !important; }
.db-intake p { margin: 0; font-size: 0.92rem; }
.db-intake code { font-size: 0.92rem; background: #fff; padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.db-intake button { justify-self: start; }

/* Longer brand name: keep the header on one line on phones. */
.site-nav .brand-text strong, .nav-cta { white-space: nowrap; }
@media (max-width: 440px) {
  .site-nav .brand-text strong { font-size: 1.05rem; letter-spacing: -0.035em; }
  .site-nav .nav-cta { padding: 0 12px; font-size: 0.82rem; }
}
@media (max-width: 360px) {
  .site-nav .brand-text strong { font-size: 0.95rem; }
}
@media (max-width: 340px) {
  .site-nav .brand-text strong { font-size: 0.86rem; }
  .site-nav .nav-cta { padding: 0 9px; font-size: 0.74rem; }
}
@media (max-width: 340px) { .site-nav .cta-long { display: none; } .site-nav .nav-cta { padding: 0 14px; } }
.site-nav .nav-cta { gap: 0; }
.site-nav .cta-long { font: inherit; color: inherit; font-weight: inherit !important; }
