:root {
  --bg: #f8f1e7;
  --surface: #fffdf7;
  --surface-soft: #efe5d6;
  --ink: #14211d;
  --muted: #6f6252;
  --line: #dacbb7;
  --green: #14695f;
  --green-dark: #0c352f;
  --blue: #2f5f91;
  --brown: #6a4a2f;
  --tan: #d5b887;
  --rose: #d86f74;
  --gold: #b98735;
  --plum: #6d4a8d;
  --mint: #b9d9cd;
  --shadow: 0 18px 45px rgba(37, 27, 17, 0.13);
  --glass: rgba(255, 253, 247, 0.82);
}

/* Modern premium refresh */
:root {
  --bg: #eef3ef;
  --surface: #fbfaf6;
  --surface-soft: #e8efe9;
  --ink: #10201c;
  --muted: #607069;
  --line: rgba(21, 81, 75, 0.16);
  --green: #0f766e;
  --green-dark: #083f39;
  --blue: #256c8f;
  --brown: #6b5843;
  --tan: #c9aa6b;
  --rose: #c85f62;
  --gold: #b98b3b;
  --plum: #5d5a90;
  --mint: #cfe8dc;
  --shadow: 0 18px 42px rgba(16, 32, 28, 0.08);
  --glass: rgba(251, 250, 246, 0.88);
}

body {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 30%),
    radial-gradient(circle at 85% 5%, rgba(37, 108, 143, 0.13), transparent 28%),
    linear-gradient(135deg, #eef3ef 0%, #f8f6ef 48%, #eef5f7 100%);
  color: var(--ink);
}

.app-shell {
  background: transparent;
}

.landing-page {
  background:
    radial-gradient(circle at 15% 18%, rgba(18, 147, 123, 0.34), transparent 30rem),
    radial-gradient(circle at 76% 10%, rgba(67, 130, 220, 0.3), transparent 28rem),
    radial-gradient(circle at 62% 78%, rgba(124, 84, 190, 0.28), transparent 26rem),
    linear-gradient(120deg, rgba(5, 43, 36, 0.96) 0%, rgba(15, 91, 100, 0.88) 45%, rgba(52, 43, 112, 0.78) 100%),
    url("./assets/wise-earth-brand.jpg") center/cover;
}

.landing-hero {
  backdrop-filter: blur(8px);
}

.landing-section,
.landing-demo-card,
.brand-message-card,
.membership-card,
.baseline-card {
  background: rgba(251, 250, 246, 0.9);
  border: 1px solid rgba(21, 81, 75, 0.16);
  box-shadow: 0 18px 46px rgba(16, 32, 28, 0.08);
}

.sidebar {
  background: rgba(8, 63, 57, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 46px rgba(8, 63, 57, 0.18);
  backdrop-filter: blur(18px);
}

.brand-block {
  color: #fffdf9;
}

.brand-mark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(207, 232, 220, 0.36);
  box-shadow: none;
}

.sidebar .eyebrow,
.brand-tagline {
  color: rgba(255, 255, 255, 0.68);
}

.nav-item {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(207, 232, 220, 0.4);
  color: #fffdf9;
  transform: translateY(-1px);
}

.topbar {
  border-bottom: 1px solid rgba(21, 81, 75, 0.12);
}

.panel,
.content-card,
.source-card,
.review-card,
.command-card,
.today-reminder-card,
.today-wearable-card,
.direction-card,
.metric-detail-card,
.protocol-card,
.compare-panel,
.share-panel,
.privacy-card,
.photo-upload-panel,
.progress-photo-card {
  background: rgba(251, 250, 246, 0.92);
  border: 1px solid rgba(21, 81, 75, 0.14);
  box-shadow: 0 12px 32px rgba(16, 32, 28, 0.06);
}

.panel:hover,
.source-card:hover,
.review-card:hover,
.command-card:hover,
.today-reminder-card:hover,
.direction-card:hover,
.metric-detail-card:hover,
.protocol-card:hover,
.progress-photo-card:hover {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 18px 42px rgba(16, 32, 28, 0.09);
}

.premium-landing-nav {
  background: rgba(6, 47, 42, 0.74);
  border-color: rgba(255, 255, 255, 0.2);
}

.landing-copy,
.landing-copy h2,
.landing-copy .eyebrow,
.landing-copy p,
.landing-lede,
.landing-nav,
.landing-nav .eyebrow,
.landing-nav h1,
.landing-page .text-button {
  color: #fffdf9;
}

.landing-lede,
.landing-copy > p {
  color: rgba(255, 253, 249, 0.92);
}

.landing-page .text-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.landing-tags span {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fffdf9;
}

.landing-page .primary-button {
  background: linear-gradient(135deg, #16a085 0%, #2f74c0 58%, #7351b8 100%);
  box-shadow: 0 16px 34px rgba(22, 160, 133, 0.22);
}

.landing-page .primary-button:hover {
  box-shadow: 0 18px 38px rgba(47, 116, 192, 0.26);
}

.landing-hero-product {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(239, 248, 244, 0.9) 45%, rgba(245, 242, 255, 0.86));
}

.product-preview-grid article span,
.sample-command-card span {
  color: #147f72;
}

.landing-flow-grid span {
  background: linear-gradient(135deg, #137c70, #356eb2 62%, #7351b8);
}

.pricing-grid .featured,
.baseline-plan-card.featured {
  border-color: rgba(115, 81, 184, 0.28);
  background: linear-gradient(145deg, #fffdf9, #edf8f4 48%, #f4f1ff);
  box-shadow: 0 16px 36px rgba(53, 110, 178, 0.14);
}

.recommended-pill {
  background: linear-gradient(135deg, #137c70, #7351b8);
}

.landing-hero-product::before {
  background:
    radial-gradient(circle at 16% 0%, rgba(18, 147, 123, 0.18), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(67, 130, 220, 0.15), transparent 30%),
    radial-gradient(circle at 70% 90%, rgba(124, 84, 190, 0.13), transparent 28%);
}

.premium-brand-message,
.landing-final-cta {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 22rem),
    linear-gradient(135deg, rgba(6, 63, 54, 0.98), rgba(21, 101, 130, 0.94) 54%, rgba(70, 50, 134, 0.92));
}

.premium-brand-message strong,
.premium-brand-message p,
.premium-brand-message .eyebrow,
.landing-final-cta h3,
.landing-final-cta p,
.landing-final-cta .eyebrow {
  color: #fffdf9;
}

.landing-example-section {
  background:
    linear-gradient(135deg, rgba(251, 250, 246, 0.95), rgba(235, 247, 242, 0.94) 52%, rgba(244, 241, 255, 0.92));
}

.system-loop-panel,
.ai-navigator-panel,
.pilot-readiness-panel {
  background:
    radial-gradient(circle at 18% 12%, rgba(207, 232, 220, 0.22), transparent 24%),
    linear-gradient(135deg, #073d37 0%, #0f5f66 54%, #6b5843 100%);
  border: 1px solid rgba(207, 232, 220, 0.24);
  box-shadow: 0 22px 58px rgba(8, 63, 57, 0.18);
}

.system-loop-panel *,
.ai-navigator-panel *,
.pilot-readiness-panel * {
  border-color: rgba(255, 255, 255, 0.18);
}

.system-loop-panel .eyebrow,
.system-loop-panel .section-note,
.ai-navigator-panel .eyebrow,
.ai-navigator-panel .section-note,
.pilot-readiness-panel .eyebrow,
.pilot-readiness-panel .section-note {
  color: rgba(255, 255, 255, 0.72);
}

.system-loop-panel h3,
.ai-navigator-panel h3,
.pilot-readiness-panel h3 {
  color: #fffdf9;
}

.primary-button,
.secondary-button.active,
.section-tab.active {
  background: linear-gradient(135deg, #0f766e, #256c8f);
  border-color: transparent;
  color: #fffdf9;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.2);
}

.primary-button:hover,
.secondary-button.active:hover,
.section-tab.active:hover {
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.26);
}

.secondary-button,
.section-tab,
.chip,
.status-pill,
.cloud-status-pill,
.tag-pill,
.source-pill,
.tiny-pill {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(21, 81, 75, 0.16);
  color: #174842;
  box-shadow: none;
}

.status-pill.good,
.cloud-status-pill.good,
.tag-pill.good,
.source-pill.good {
  background: rgba(207, 232, 220, 0.76);
  color: #073d37;
}

.status-pill.warn,
.cloud-status-pill.warn,
.tag-pill.warn,
.source-pill.warn {
  background: rgba(244, 220, 174, 0.72);
  color: #6b4a16;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(21, 81, 75, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.52);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.score-ring,
.readiness-ring {
  background: conic-gradient(from 210deg, #0f766e, #256c8f, #c9aa6b, #0f766e);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.72), 0 14px 28px rgba(16, 32, 28, 0.08);
}

.chart,
.trend-chart,
.compare-chart,
.mini-chart {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 250, 246, 0.72)),
    linear-gradient(rgba(21, 81, 75, 0.06) 1px, transparent 1px);
  border-color: rgba(21, 81, 75, 0.14);
}

.bar {
  background: linear-gradient(180deg, #256c8f, #0f766e);
  border-radius: 4px 4px 2px 2px;
}

.modal-card {
  background: rgba(251, 250, 246, 0.96);
  border: 1px solid rgba(21, 81, 75, 0.18);
  box-shadow: 0 24px 70px rgba(16, 32, 28, 0.22);
}

@media (max-width: 760px) {
  .daily-summary-main,
  .weekly-insight-hero {
    grid-template-columns: 1fr;
  }

  .daily-summary-chips,
  .weekly-insight-grid {
    grid-template-columns: 1fr;
  }

  .summary-score,
  .weekly-insight-score {
    width: 100%;
  }
}

/* Brand-sampled landing palette. Uses colors extracted from the Wise Earth image. */
.landing-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(97, 116, 88, 0.28), transparent 30rem),
    linear-gradient(90deg, rgba(0, 19, 15, 0.96) 0%, rgba(2, 23, 14, 0.9) 48%, rgba(44, 68, 46, 0.54) 100%),
    url("./assets/wise-earth-brand.jpg") center/cover;
}

.premium-landing-nav {
  background: rgba(0, 19, 15, 0.78);
  border-color: rgba(242, 239, 234, 0.2);
}

.landing-page .primary-button {
  background: linear-gradient(135deg, #00130f, #2c442e 72%, #617458);
  box-shadow: 0 16px 34px rgba(0, 19, 15, 0.34);
}

.landing-page .primary-button:hover {
  box-shadow: 0 18px 38px rgba(44, 68, 46, 0.3);
}

.landing-hero-product {
  background:
    linear-gradient(145deg, rgba(242, 239, 234, 0.98), rgba(243, 246, 239, 0.92));
}

.landing-hero-product::before {
  background:
    radial-gradient(circle at 16% 0%, rgba(97, 116, 88, 0.2), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(44, 68, 46, 0.12), transparent 30%);
}

.product-preview-grid article span,
.sample-command-card span {
  color: #2c442e;
}

.landing-flow-grid span,
.recommended-pill {
  background: #2c442e;
}

.pricing-grid .featured,
.baseline-plan-card.featured {
  border-color: rgba(44, 68, 46, 0.36);
  background: linear-gradient(145deg, #f2efea, #f3f6ef);
  box-shadow: 0 16px 36px rgba(0, 19, 15, 0.14);
}

.premium-brand-message,
.landing-final-cta {
  background:
    radial-gradient(circle at top left, rgba(242, 239, 234, 0.12), transparent 22rem),
    linear-gradient(135deg, rgba(0, 19, 15, 0.98), rgba(44, 68, 46, 0.96));
}

.landing-example-section {
  background:
    linear-gradient(135deg, rgba(242, 239, 234, 0.96), rgba(243, 246, 239, 0.94));
}

/* Landing palette override kept at the very end so it wins over older landing rules. */
.landing-page {
  background:
    radial-gradient(circle at 16% 18%, rgba(148, 116, 255, 0.34), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(75, 154, 255, 0.32), transparent 28rem),
    linear-gradient(120deg, rgba(22, 18, 58, 0.94) 0%, rgba(35, 38, 115, 0.86) 42%, rgba(12, 86, 112, 0.7) 100%),
    url("./assets/wise-earth-brand.jpg") center/cover;
}

.premium-landing-nav {
  background: rgba(20, 18, 52, 0.72);
  border-color: rgba(255, 255, 255, 0.2);
}

.landing-copy,
.landing-copy h2,
.landing-copy .eyebrow,
.landing-copy p,
.landing-lede,
.landing-nav,
.landing-nav .eyebrow,
.landing-nav h1,
.landing-page .text-button {
  color: #fffdf9;
}

.landing-lede,
.landing-copy > p {
  color: rgba(255, 253, 249, 0.92);
}

.landing-page .text-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.landing-tags span {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fffdf9;
}

.landing-hero-product {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 242, 255, 0.9));
}

.landing-hero-product::before {
  background:
    radial-gradient(circle at 16% 0%, rgba(148, 116, 255, 0.18), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(75, 154, 255, 0.15), transparent 30%);
}

.premium-brand-message,
.landing-final-cta {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 22rem),
    linear-gradient(135deg, rgba(42, 34, 114, 0.98), rgba(20, 96, 128, 0.94));
}

.premium-brand-message strong,
.premium-brand-message p,
.premium-brand-message .eyebrow,
.landing-final-cta h3,
.landing-final-cta p,
.landing-final-cta .eyebrow {
  color: #fffdf9;
}

.landing-example-section {
  background:
    linear-gradient(135deg, rgba(251, 250, 246, 0.95), rgba(242, 240, 255, 0.94));
}

/* Final landing palette: true Wise Earth forest green. */
.landing-page {
  background:
    linear-gradient(90deg, rgba(2, 26, 21, 0.96) 0%, rgba(5, 42, 33, 0.9) 48%, rgba(9, 67, 52, 0.48) 100%),
    url("./assets/wise-earth-brand.jpg") center/cover;
}

.premium-landing-nav {
  background: rgba(4, 38, 30, 0.74);
}

.landing-page .primary-button {
  background: linear-gradient(135deg, #063f32, #0b6d55);
  box-shadow: 0 16px 34px rgba(6, 63, 50, 0.28);
}

.landing-page .primary-button:hover {
  box-shadow: 0 18px 38px rgba(11, 109, 85, 0.28);
}

.landing-hero-product {
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.96), rgba(238, 248, 244, 0.9));
}

.landing-hero-product::before {
  background:
    radial-gradient(circle at 16% 0%, rgba(15, 118, 110, 0.16), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(37, 108, 143, 0.14), transparent 30%);
}

.product-preview-grid article span,
.sample-command-card span {
  color: #07513f;
}

.landing-flow-grid span,
.recommended-pill {
  background: #063f32;
}

.pricing-grid .featured,
.baseline-plan-card.featured {
  border-color: rgba(6, 63, 50, 0.34);
  background: linear-gradient(145deg, #fffdf9, #e7f2ec);
  box-shadow: 0 16px 36px rgba(6, 63, 50, 0.15);
}

.premium-brand-message,
.landing-final-cta {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 22rem),
    linear-gradient(135deg, rgba(2, 30, 24, 0.98), rgba(6, 63, 50, 0.96));
}

.landing-example-section {
  background:
    linear-gradient(135deg, rgba(251, 250, 246, 0.95), rgba(232, 239, 233, 0.9));
}

/* Final landing color experiment: purple-blue ombre with high contrast text. */
.landing-page {
  background:
    radial-gradient(circle at 16% 18%, rgba(148, 116, 255, 0.34), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(75, 154, 255, 0.32), transparent 28rem),
    linear-gradient(120deg, rgba(22, 18, 58, 0.94) 0%, rgba(35, 38, 115, 0.86) 42%, rgba(12, 86, 112, 0.7) 100%),
    url("./assets/wise-earth-brand.jpg") center/cover;
}

.premium-landing-nav {
  background: rgba(20, 18, 52, 0.72);
  border-color: rgba(255, 255, 255, 0.2);
}

.landing-copy,
.landing-copy h2,
.landing-copy .eyebrow,
.landing-copy p,
.landing-lede,
.landing-nav,
.landing-nav .eyebrow,
.landing-nav h1 {
  color: #fffdf9;
}

.landing-lede,
.landing-copy > p {
  color: rgba(255, 253, 249, 0.92);
}

.landing-page .text-button {
  color: #fffdf9;
}

.landing-page .text-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.landing-tags span {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fffdf9;
}

.landing-hero-product {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 242, 255, 0.9));
}

.landing-hero-product::before {
  background:
    radial-gradient(circle at 16% 0%, rgba(148, 116, 255, 0.18), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(75, 154, 255, 0.15), transparent 30%);
}

.premium-brand-message,
.landing-final-cta {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 22rem),
    linear-gradient(135deg, rgba(42, 34, 114, 0.98), rgba(20, 96, 128, 0.94));
}

.premium-brand-message strong,
.premium-brand-message p,
.premium-brand-message .eyebrow,
.landing-final-cta h3,
.landing-final-cta p,
.landing-final-cta .eyebrow {
  color: #fffdf9;
}

.landing-example-section {
  background:
    linear-gradient(135deg, rgba(251, 250, 246, 0.95), rgba(242, 240, 255, 0.94));
}

/* Purple-blue landing experiment */
.landing-page {
  background:
    radial-gradient(circle at 16% 18%, rgba(148, 116, 255, 0.34), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(75, 154, 255, 0.32), transparent 28rem),
    linear-gradient(120deg, rgba(22, 18, 58, 0.94) 0%, rgba(35, 38, 115, 0.86) 42%, rgba(12, 86, 112, 0.7) 100%),
    url("./assets/wise-earth-brand.jpg") center/cover;
}

.premium-landing-nav {
  background: rgba(20, 18, 52, 0.72);
  border-color: rgba(255, 255, 255, 0.2);
}

.landing-copy,
.landing-copy h2,
.landing-copy .eyebrow,
.landing-copy p,
.landing-lede,
.landing-nav,
.landing-nav .eyebrow,
.landing-nav h1 {
  color: #fffdf9;
}

.landing-lede,
.landing-copy > p {
  color: rgba(255, 253, 249, 0.9);
}

.landing-page .text-button {
  color: #fffdf9;
}

.landing-page .text-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.landing-tags span {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fffdf9;
}

.landing-hero-product {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 242, 255, 0.9));
}

.landing-hero-product::before {
  background:
    radial-gradient(circle at 16% 0%, rgba(148, 116, 255, 0.18), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(75, 154, 255, 0.15), transparent 30%);
}

.premium-brand-message,
.landing-final-cta {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 22rem),
    linear-gradient(135deg, rgba(42, 34, 114, 0.98), rgba(20, 96, 128, 0.94));
}

.premium-brand-message strong,
.premium-brand-message p,
.premium-brand-message .eyebrow,
.landing-final-cta h3,
.landing-final-cta p,
.landing-final-cta .eyebrow {
  color: #fffdf9;
}

.landing-example-section {
  background:
    linear-gradient(135deg, rgba(251, 250, 246, 0.95), rgba(242, 240, 255, 0.94));
}

/* Premium landing redesign */
.landing-page {
  padding: 18px 22px 34px;
  background:
    linear-gradient(90deg, rgba(5, 35, 30, 0.94) 0%, rgba(5, 35, 30, 0.82) 42%, rgba(15, 118, 110, 0.22) 100%),
    url("./assets/wise-earth-brand.jpg") center/cover;
}

.premium-landing-nav {
  position: sticky;
  top: 14px;
  z-index: 30;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 63, 57, 0.66);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.premium-landing-hero {
  min-height: min(760px, calc(100vh - 96px));
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.78fr);
  padding: 84px 0 42px;
}

.landing-copy h2 {
  max-width: 820px;
  font-size: clamp(3.2rem, 8vw, 7rem);
  letter-spacing: 0;
}

.landing-lede {
  max-width: 720px;
  color: rgba(255, 253, 249, 0.88);
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
}

.landing-hero-product {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.landing-hero-product::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(15, 118, 110, 0.16), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(37, 108, 143, 0.14), transparent 28%);
}

.landing-hero-product > * {
  position: relative;
}

.product-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(21, 81, 75, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.product-preview-header .eyebrow:first-of-type {
  display: none;
}

.product-preview-header h3 {
  margin: 3px 0 0;
  font-size: 1.35rem;
  line-height: 1.08;
}

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

.product-preview-grid article,
.landing-outcome-grid article,
.sample-command-card {
  padding: 16px;
  border: 1px solid rgba(21, 81, 75, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.product-preview-grid article span,
.sample-command-card span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-preview-grid article strong,
.sample-command-card strong {
  display: block;
  margin: 7px 0 6px;
  color: var(--ink);
}

.product-preview-grid article p,
.sample-command-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.premium-problem-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: stretch;
}

.premium-brand-message {
  max-width: none;
  margin: 0;
  border-left: 0;
  background:
    linear-gradient(135deg, rgba(8, 63, 57, 0.96), rgba(37, 108, 143, 0.72)),
    rgba(8, 63, 57, 0.92);
}

.premium-brand-message strong,
.premium-brand-message p,
.premium-brand-message .eyebrow {
  color: #fffdf9;
}

.premium-brand-message strong {
  font-size: 1.55rem;
  line-height: 1.1;
}

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

.premium-problem-section .landing-outcome-grid {
  grid-template-columns: 1fr;
}

.landing-outcome-grid article strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
}

.landing-outcome-grid article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.landing-example-section {
  background:
    linear-gradient(135deg, rgba(251, 250, 246, 0.94), rgba(232, 239, 233, 0.9));
}

.landing-app-sample {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background:
    linear-gradient(135deg, rgba(8, 63, 57, 0.96), rgba(15, 95, 102, 0.92));
  color: #fffdf9;
}

.landing-final-cta h3,
.landing-final-cta p,
.landing-final-cta .eyebrow {
  color: #fffdf9;
}

.landing-final-cta p {
  max-width: 760px;
}

@media (max-width: 980px) {
  .premium-landing-hero,
  .premium-problem-section,
  .landing-final-cta {
    grid-template-columns: 1fr;
  }

  .premium-landing-hero {
    min-height: auto;
  }

  .landing-outcome-grid,
  .landing-app-sample {
    grid-template-columns: 1fr 1fr;
  }

  .landing-final-cta {
    display: grid;
  }
}

@media (max-width: 640px) {
  .premium-landing-nav {
    position: static;
  }

  .landing-copy h2 {
    font-size: 3rem;
  }

  .product-preview-grid,
  .landing-outcome-grid,
  .landing-app-sample {
    grid-template-columns: 1fr;
  }
}

.privacy-note,
.medical-disclaimer {
  background: rgba(232, 239, 233, 0.72);
  border-color: rgba(21, 81, 75, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 9% 9%, rgba(20, 105, 95, 0.18), transparent 29rem),
    radial-gradient(circle at 86% 12%, rgba(47, 95, 145, 0.15), transparent 25rem),
    radial-gradient(circle at 72% 88%, rgba(185, 135, 53, 0.16), transparent 26rem),
    linear-gradient(135deg, #f8f1e7 0%, #f4ead9 48%, #eef3ef 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

.voice-note-button {
  justify-self: start;
  min-height: 30px;
  margin-top: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(47, 95, 145, 0.22);
  border-radius: 999px;
  background: rgba(238, 243, 239, 0.92);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
}

.voice-note-button.listening {
  border-color: rgba(20, 105, 95, 0.42);
  background: rgba(185, 217, 205, 0.72);
  color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(20, 105, 95, 0.12);
}

.voice-note-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.landing-page {
  min-height: 100vh;
  padding: 22px;
  background:
    linear-gradient(rgba(7, 35, 30, 0.76), rgba(7, 35, 30, 0.55)),
    url("./assets/wise-earth-logo-crop.jpg") left center/cover,
    linear-gradient(135deg, #f8f1e7, #eef3ef);
}

.landing-page[hidden] {
  display: none;
}

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

.landing-nav,
.landing-hero,
.landing-section {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fffdf9;
}

.landing-nav .eyebrow,
.landing-nav h1 {
  color: #fffdf9;
}

.landing-nav-actions,
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: 28px;
  align-items: center;
  padding: 72px 0 34px;
}

.landing-copy {
  color: #fffdf9;
}

.landing-copy .eyebrow,
.landing-copy p {
  color: rgba(255, 253, 249, 0.82);
}

.landing-copy h2 {
  max-width: 780px;
  margin: 12px 0 16px;
  color: #fffdf9;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.95;
}

.landing-copy > p {
  max-width: 680px;
  font-size: 1.08rem;
  line-height: 1.6;
}

.brand-message-card {
  max-width: 700px;
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 253, 249, 0.28);
  border-left: 4px solid #d6b978;
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 253, 249, 0.12);
}

.brand-message-card strong {
  display: block;
  margin-bottom: 6px;
  color: #fffdf9;
  font-size: 1rem;
}

.brand-message-card p {
  margin: 0;
  color: rgba(255, 253, 249, 0.84);
  font-size: 0.98rem;
  line-height: 1.55;
}

.landing-tags {
  margin-top: 22px;
}

.landing-tags span {
  border-color: rgba(255, 253, 249, 0.26);
  background: rgba(255, 253, 249, 0.12);
  color: #fffdf9;
}

.landing-demo-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.demo-browser-bar {
  display: flex;
  gap: 7px;
}

.demo-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--tan);
}

.landing-demo-card article,
.demo-signal-grid span {
  padding: 14px;
  border: 1px solid rgba(13, 92, 84, 0.14);
  border-radius: 8px;
  background: #fffdf9;
}

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

.demo-signal-grid strong {
  display: block;
  color: var(--green);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.landing-section {
  margin-top: 22px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.landing-section-heading {
  max-width: 720px;
  margin-bottom: 18px;
}

.landing-section-heading h3 {
  margin: 6px 0;
  font-size: 2rem;
}

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

.landing-flow-grid article,
.pricing-grid article,
.baseline-plan-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.landing-flow-grid span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 900;
}

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

.pricing-grid span,
.baseline-plan-card span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-grid strong,
.baseline-plan-card strong {
  display: block;
  margin: 8px 0;
  font-size: 1.85rem;
}

.pricing-grid .featured,
.baseline-plan-card.featured {
  border-color: rgba(20, 105, 95, 0.34);
  background: linear-gradient(145deg, #fffdf9, #e8f4f1);
  box-shadow: 0 16px 36px rgba(20, 105, 95, 0.14);
}

.detailed-pricing-grid {
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card ul {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.4;
}

.pricing-card small,
.baseline-plan-card small {
  display: block;
  margin-top: auto;
  color: var(--brown);
  font-weight: 800;
  line-height: 1.35;
}

.plan-fit {
  min-height: 58px;
  color: var(--ink);
  font-weight: 750;
}

.recommended-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-note {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(47, 95, 145, 0.22);
  border-radius: 8px;
  background: rgba(238, 243, 239, 0.86);
}

.checkout-note p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.app-shell {
  display: block;
  min-height: 100vh;
}

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

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  color: white;
  background:
    linear-gradient(90deg, rgba(213, 184, 135, 0.12), transparent 25%, rgba(47, 95, 145, 0.16) 70%),
    linear-gradient(90deg, #092b25 0%, #12384b 54%, #4a3522 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(42, 34, 27, 0.12);
}

.brand-block {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #092b25, #153d36);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.logo-letter {
  position: relative;
  z-index: 2;
  margin-top: -4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.logo-leaf {
  position: absolute;
  bottom: 7px;
  width: 12px;
  height: 7px;
  background: #bfe3d7;
  border-radius: 100% 0 100% 0;
  opacity: 0.95;
}

.logo-leaf-left {
  left: 9px;
  transform: rotate(26deg);
}

.logo-leaf-right {
  right: 9px;
  transform: scaleX(-1) rotate(26deg);
}

.eyebrow,
.date-label,
.greeting-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.greeting-label {
  color: var(--green-dark);
}

.sidebar .eyebrow {
  color: rgba(255, 255, 255, 0.66);
}

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

h1 {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.2;
  max-width: 280px;
}

h2 {
  margin-bottom: 0;
  font-size: 2rem;
}

h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
}

.nav-list::-webkit-scrollbar {
  height: 6px;
}

.nav-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.26);
  border-radius: 999px;
}

.nav-item,
.primary-button,
.icon-button,
.back-button {
  border: 0;
  border-radius: 8px;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: left;
  white-space: nowrap;
}

.nav-item.active,
.nav-item:hover {
  color: #173f3d;
  background: #f6c36f;
}

.nav-icon,
[data-icon] {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.privacy-note {
  margin-top: 0;
  min-width: 160px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 0.78rem;
}

.privacy-note strong,
.privacy-note span {
  display: block;
}

.privacy-note strong {
  margin-bottom: 4px;
  color: white;
}

.privacy-note span {
  white-space: nowrap;
}

.main-panel {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 24px 28px 32px;
  overflow: hidden;
}

.topbar,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 24px;
}

.auth-callback-banner {
  margin: -8px 0 18px;
  padding: 12px 14px;
  color: var(--green-dark);
  background: rgba(185, 217, 205, 0.42);
  border: 1px solid rgba(20, 105, 95, 0.22);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.auth-callback-banner.needs-attention {
  color: #8f3b42;
  background: #fff1f2;
  border-color: rgba(216, 111, 116, 0.3);
}

.system-loop-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.8fr);
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
  color: #f8f1e7;
  background:
    radial-gradient(circle at 12% 20%, rgba(213, 184, 135, 0.22), transparent 18rem),
    linear-gradient(135deg, #082c26 0%, #12384b 57%, #5a3b22 100%);
  border: 1px solid rgba(213, 184, 135, 0.28);
  border-radius: 10px;
  box-shadow: 0 20px 52px rgba(23, 36, 31, 0.18);
}

.loop-intro p:last-child {
  margin: 8px 0 0;
  color: rgba(248, 241, 231, 0.78);
  line-height: 1.45;
}

.system-loop-panel .eyebrow {
  color: rgba(213, 184, 135, 0.9);
}

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

.system-loop-card {
  min-height: 116px;
  padding: 12px;
  background: rgba(255, 253, 247, 0.08);
  border: 1px solid rgba(255, 253, 247, 0.16);
  border-radius: 8px;
}

.system-loop-card.ready {
  background: rgba(255, 253, 247, 0.16);
  border-color: rgba(213, 184, 135, 0.42);
}

.system-loop-card span {
  display: block;
  color: rgba(248, 241, 231, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-loop-card strong {
  display: block;
  margin-top: 6px;
  color: #fffdf7;
}

.system-loop-card p {
  margin: 8px 0 0;
  color: rgba(248, 241, 231, 0.75);
  font-size: 0.82rem;
  line-height: 1.38;
}

.topbar-title-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  color: #f8f3ea;
}

.topbar-logo .logo-letter {
  font-size: 1.45rem;
}

.topbar-logo .logo-leaf {
  bottom: 8px;
  width: 14px;
  height: 8px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cloud-status-pill {
  max-width: 240px;
  padding: 8px 10px;
  color: var(--green-dark);
  background: rgba(191, 227, 215, 0.42);
  border: 1px solid rgba(22, 119, 111, 0.18);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cloud-status-pill.syncing {
  color: #665022;
  background: #fff7df;
  border-color: rgba(201, 149, 47, 0.24);
}

.cloud-status-pill.needs-attention {
  color: #8f3b42;
  background: #fff1f2;
  border-color: rgba(216, 111, 116, 0.28);
}

.profile-name-field {
  min-width: 160px;
  gap: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.profile-name-field input {
  min-height: 40px;
  padding: 0 10px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  color: white;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  box-shadow: 0 10px 22px rgba(20, 105, 95, 0.2);
  font-weight: 700;
}

.primary-button:hover,
.icon-button:hover,
.back-button:hover {
  transform: translateY(-1px);
}

.primary-button.wide {
  width: 100%;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 14px;
  padding: 0 14px;
  color: var(--green-dark);
  background: #fffdf9;
  border: 1px solid var(--line);
  font-weight: 800;
}

.back-button[hidden] {
  display: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.today-grid,
.checkin-grid,
.dashboard-grid,
.labs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.checkin-grid {
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  align-items: start;
}

.checkin-grid > div {
  display: grid;
  gap: 18px;
  min-width: 0;
}

#checkInGoalsMount {
  grid-column: 1 / -1;
}

.direction-trends-panel {
  grid-column: 1 / -1;
}

#directionTrendMount {
  margin-top: 16px;
}

#directionTrendMount .dashboard-grid {
  margin-top: 0;
}

.form-status {
  min-height: 1.2em;
  margin: 4px 0 0;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.form-status.status-error {
  color: #8f1d1d;
}

.today-focus-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, #fff1df 48%, #edf8f4 100%);
}

.today-focus-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.today-command-panel {
  align-items: flex-start;
  flex-wrap: wrap;
}

.today-command-panel > div:first-child {
  flex: 1 1 360px;
}

.today-command-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.compact-command-grid {
  flex: 1 1 100%;
  grid-template-columns: minmax(180px, 0.9fr) repeat(3, minmax(0, 1fr));
  margin-top: 4px;
}

.compact-command-grid .command-card {
  padding: 12px;
}

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

.health-data-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, #edf8f4 48%, #fff1df 100%);
}

.health-data-hero h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.health-data-hero p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.health-snapshot-tile {
  min-height: 94px;
  padding: 12px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.health-snapshot-tile span,
.health-snapshot-tile small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.health-snapshot-tile strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 1.15rem;
}

.compact-source-summary .health-snapshot-tile {
  min-height: 82px;
  padding: 10px;
}

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

.health-storage-grid .hub-card {
  min-height: 128px;
  padding: 14px;
}

.health-data-timeline-panel {
  margin-top: 18px;
}

.compact-health-timeline {
  margin-top: 16px;
}

.compact-hub {
  grid-template-columns: minmax(0, 1fr);
}

.hub-card {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  background: linear-gradient(160deg, #ffffff 0%, #fff2df 52%, #f3f0ff 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hub-card span {
  color: var(--green-dark);
}

.hub-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.section-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-tab {
  min-height: 38px;
  padding: 0 12px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.section-tab.active {
  color: white;
  background: var(--green-dark);
}

.trend-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}

.trend-style-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
}

.trend-style-controls > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trend-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.panel {
  min-width: 0;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(255, 250, 242, 0.86));
  border: 1px solid rgba(218, 203, 183, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.journal-form,
.metrics-form,
.lab-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.88);
  color: var(--ink);
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(47, 125, 99, 0.18);
  border-color: var(--green);
}

.split-fields,
.metrics-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

input[type="range"] {
  min-height: 24px;
  padding: 0;
  accent-color: var(--green);
  background: transparent;
}

.range-value {
  color: var(--ink);
  font-size: 0.88rem;
}

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

.habit-grid label {
  grid-template-columns: 18px 1fr;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7e8 0%, #f3f0ff 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
}

.habit-grid input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--green);
}

.modality-picker {
  padding: 12px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modality-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.modality-picker summary small {
  color: var(--muted);
  font-size: 0.78rem;
}

.modality-grid {
  margin-top: 12px;
  max-height: 190px;
  overflow: auto;
  padding-right: 4px;
}

.custom-modality-field {
  margin-top: 12px;
}

.unit-field {
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  overflow: hidden;
}

.unit-field input {
  border: 0;
  border-radius: 0;
}

.unit-field span {
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--green-dark);
  background: rgba(185, 217, 205, 0.5);
  border: 1px solid rgba(20, 105, 95, 0.14);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.insight-strip {
  margin-top: 18px;
  padding: 14px;
  color: #2d433d;
  background: linear-gradient(135deg, rgba(185, 217, 205, 0.36) 0%, rgba(213, 184, 135, 0.28) 100%);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  line-height: 1.45;
}

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

.collapse-summary {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.collapsible-content[hidden] {
  display: none;
}

.icon-text-button.compact {
  min-height: 38px;
  padding: 0 12px;
  white-space: nowrap;
}

.entry-list,
.reflection-list,
.lab-list,
.progress-photo-list,
.correlation-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.entry-card,
.reflection-card,
.lab-card,
.progress-photo-card,
.prompt-card,
.correlation-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.progress-photo-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: start;
  gap: 14px;
}

.progress-photo-thumb {
  width: 112px;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(21, 81, 75, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, #f8f3e9, #e8efe8);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.progress-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-capture-field {
  display: grid;
  gap: 8px;
}

.media-capture-field > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.media-capture-card {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(21, 81, 75, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(248, 253, 247, 0.96), rgba(237, 248, 244, 0.84)),
    #fffdf9;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.media-capture-card:hover {
  border-color: rgba(21, 81, 75, 0.44);
  box-shadow: 0 14px 28px rgba(21, 81, 75, 0.1);
}

.media-capture-card strong {
  color: var(--green-dark);
  font-size: 0.98rem;
}

.media-capture-card small,
.media-capture-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.media-capture-note {
  margin: 0;
  font-weight: 800;
}

#progressPhotoFile {
  font-size: 0.84rem;
}

.progress-photo-card span {
  display: block;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.progress-photo-card strong {
  display: block;
  margin: 4px 0 8px;
  color: var(--ink);
}

.progress-photo-card small {
  color: var(--muted);
}

.entry-card header,
.reflection-card header,
.lab-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.entry-card p,
.reflection-card p,
.lab-card p,
.correlation-card p,
.prompt-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.compact-reflection-list {
  margin-top: 14px;
}

.reflection-card header time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.reflection-card .reflection-prompt {
  margin: 10px 0 8px;
  color: #4d385f;
  font-weight: 800;
}

.clickable-card {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.clickable-card:hover,
.clickable-card:focus-visible {
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(26, 72, 64, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.opened-signal {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(61, 122, 105, 0.18), var(--shadow) !important;
}

.entry-edit-button {
  display: inline-block;
  margin-top: 10px;
}

.metric-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.metric-tags span {
  padding: 5px 8px;
  color: var(--ink);
  background: #eaf1fb;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.compact-tags {
  margin-top: 8px;
}

.source-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.today-mini-trend {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.today-protocol-panel {
  grid-column: 1 / -1;
}

.today-wearable-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(130px, 0.22fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(33, 43, 38, 0.07);
}

.today-wearable-panel .section-heading {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
}

.today-wearable-panel .eyebrow {
  margin-bottom: 2px;
  font-size: 0.62rem;
}

.today-wearable-panel h3 {
  font-size: 0.9rem;
  line-height: 1.1;
}

.today-wearable-sync {
  margin-top: 0;
  min-width: 0;
}

.today-wearable-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.today-wearable-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(240px, 1.25fr) minmax(190px, 0.95fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #fffdf9 0%, #f8fbf6 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.today-wearable-card header,
.today-wearable-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.today-wearable-card header {
  min-width: 0;
}

.today-wearable-card header span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.today-wearable-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.today-wearable-metrics span {
  padding: 6px 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 800;
}

.today-wearable-metrics strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.82rem;
}

.today-wearable-card p,
.today-wearable-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.today-wearable-activity {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 7px;
  background: rgba(233, 246, 239, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.today-wearable-activity strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.78rem;
}

.today-wearable-activity span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.today-wearable-activity .metric-tags {
  gap: 5px;
}

.today-wearable-activity .metric-tags span {
  padding: 3px 6px;
  font-size: 0.64rem;
}

.today-wearable-card > p {
  display: none;
}

.wearable-inline-approval:empty {
  display: none;
}

.wearable-inline-approval .activity-row {
  margin-top: 0;
  padding: 8px 10px;
  background: rgba(255, 250, 240, 0.82);
  border-color: rgba(217, 150, 77, 0.2);
}

.wearable-inline-approval .activity-row strong {
  font-size: 0.84rem;
}

.wearable-inline-approval .activity-row p,
.wearable-inline-approval .activity-row span {
  margin: 2px 0 0;
  font-size: 0.72rem;
}

.wearable-inline-approval .document-actions {
  gap: 6px;
}

.wearable-inline-approval .text-button {
  padding: 5px 7px;
  font-size: 0.72rem;
}

.journal-history-subgroup {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.today-history-section {
  padding: 12px;
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.journal-history-subgroup .eyebrow {
  margin-bottom: 0;
}

.today-activity-summary {
  margin-top: 16px;
}

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

.today-activity-summary-grid article,
.today-completed-list {
  padding: 12px;
  background: linear-gradient(135deg, #fffdf9 0%, #f3f8f2 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.today-activity-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.today-activity-summary-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 1.45rem;
}

.today-activity-summary-grid p,
.today-completed-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.today-completed-list {
  margin-top: 10px;
}

.today-completed-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.today-completed-list summary::-webkit-details-marker {
  display: none;
}

.today-completed-list strong {
  display: block;
}

.today-completed-list summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.today-completed-list[open] summary {
  margin-bottom: 8px;
}

.today-completed-list ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.completed-activity-timeline {
  display: grid;
  gap: 8px;
}

.completed-activity-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.completed-activity-row time {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.completed-activity-row span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.completed-activity-row strong {
  display: block;
  margin-top: 2px;
  line-height: 1.25;
}

.completed-activity-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.today-protocol-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.direction-reminder-column {
  min-width: 0;
}

.mini-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mini-section-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.today-reminder-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.today-reminder-card.done {
  background: #effaf3;
  border-color: rgba(47, 125, 99, 0.28);
}

.today-reminder-card.direction-cue {
  background: linear-gradient(135deg, #ffffff 0%, #edf8f4 100%);
}

.today-reminder-card.direction-cue.priority {
  border-color: rgba(22, 119, 111, 0.34);
}

.compact-direction-list .today-reminder-card {
  padding: 12px;
}

.today-reminder-card p,
.today-reminder-card span {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.today-reminder-card span {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
}

.med-reminder-card {
  align-items: flex-start;
}

.med-reminder-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.protocol-status {
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1;
}

.protocol-status.due {
  color: #665022;
  background: #fff3cf;
}

.protocol-status.taken,
.protocol-status.completed {
  color: var(--green-dark);
  background: rgba(191, 227, 215, 0.72);
}

.protocol-status.skipped,
.protocol-status.declined,
.protocol-status.postponed {
  color: #7b4650;
  background: #fff0f1;
}

.med-reminder-card .document-actions {
  max-width: 220px;
  justify-content: flex-end;
}

.compact-heading h3 {
  font-size: 1rem;
}

.mini-trend-grid,
.metric-tracker-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mini-trend-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-tracker-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-tracker-panel .metric-tracker-grid {
  display: none;
}

.metric-tracker-panel.show-trackers .metric-tracker-grid {
  display: grid;
}

.mini-trend-card,
.metric-tracker-card {
  padding: 12px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-tracker-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.metric-tracker-card header span,
.metric-tracker-card p,
.mini-trend-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  min-height: 64px;
  margin-top: 10px;
}

.metric-tracker-card .mini-bars {
  min-height: 100px;
}

.mini-bars span {
  flex: 1;
  min-width: 5px;
  min-height: 8px;
  background: linear-gradient(180deg, var(--green) 0%, var(--blue) 100%);
  border-radius: 5px 5px 0 0;
}

.dashboard-grid {
  grid-template-columns: 280px minmax(0, 1fr);
}

.score-panel {
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
}

.score-ring {
  --score: 74%;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  margin: 18px 0;
  background: conic-gradient(var(--green) var(--score), #efe5d9 0);
  border-radius: 50%;
  position: relative;
}

.score-ring::after {
  content: "";
  position: absolute;
  width: 128px;
  height: 128px;
  background: white;
  border-radius: 50%;
}

.score-ring span {
  position: relative;
  z-index: 1;
  font-size: 2.4rem;
  font-weight: 800;
}

.chart {
  display: grid;
  grid-template-columns: repeat(var(--trend-columns, 7), minmax(34px, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 260px;
  padding-top: 22px;
  overflow-x: auto;
}

.chart.trend-chart-line,
.chart.trend-chart-dots {
  display: block;
  min-height: 260px;
}

.bar-group {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  min-height: 220px;
}

.bar {
  min-height: 14px;
  border-radius: 6px 6px 0 0;
}

.bar.stress {
  background: var(--rose);
}

.bar.hrv {
  background: var(--blue);
}

.bar.sleep {
  background: var(--gold);
}

.bar.reflection {
  background: var(--plum);
}

.bar-label {
  grid-column: 1 / -1;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.trend-line-wrap {
  min-width: 540px;
}

.trend-line-wrap svg {
  width: 100%;
  min-height: 220px;
  border: 1px solid rgba(21, 81, 75, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 241, 230, 0.64));
}

.trend-line-labels {
  display: grid;
  grid-template-columns: repeat(var(--trend-columns, 7), minmax(34px, 1fr));
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trend-legend i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.trend-dot-chart {
  display: grid;
  gap: 14px;
  min-width: 540px;
  padding: 12px;
  border: 1px solid rgba(21, 81, 75, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.7);
}

.trend-dot-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
}

.trend-dot-row strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.trend-dot-row div {
  display: grid;
  grid-template-columns: repeat(var(--trend-columns, 7), minmax(34px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 8px;
}

.trend-dot-row span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-dark), var(--blue));
}

.signals-watch-panel {
  align-self: start;
  grid-column: 1 / -1;
}

.signals-watch-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.signal-watch-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(21, 81, 75, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(236, 244, 238, 0.78));
}

.signal-watch-row span {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.signal-watch-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.signal-watch-row strong {
  width: fit-content;
  min-width: 86px;
  padding: 8px 10px;
  color: var(--green-dark);
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid rgba(21, 81, 75, 0.12);
  border-radius: 8px;
  font-size: 0.86rem;
  text-align: center;
}

.chart-panel {
  grid-column: span 1;
}

.metric-tracker-panel,
.wearable-impact-panel,
.correlations-panel,
.modality-impact-panel {
  grid-column: 1 / -1;
}

.correlation-card strong {
  display: block;
  margin-bottom: 4px;
}

.modality-impact-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.modality-source-note {
  padding: 12px;
  background: #f2f7f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modality-source-note strong,
.modality-source-note p {
  display: block;
  margin: 0;
}

.modality-source-note p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.wearable-hub-panel {
  margin-top: 18px;
}

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

.wearable-hub-card,
.wearable-impact-card {
  padding: 14px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wearable-hub-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.wearable-hub-card strong {
  display: block;
  margin: 7px 0;
  color: var(--ink);
}

.wearable-hub-card p,
.wearable-impact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.wearable-impact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.wearable-permission-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.modality-impact-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modality-impact-row strong,
.modality-impact-row span {
  display: block;
}

.modality-impact-row > div:first-child span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.modality-impact-summary {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 18px;
  align-items: center;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(260px, 0.58fr);
  gap: 18px;
  margin-top: 18px;
}

.tracking-preferences-panel {
  grid-column: 1 / -1;
}

.tracking-preferences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.tracking-preference-card {
  display: grid;
  grid-template-columns: 18px 1fr;
  grid-template-areas:
    "input label"
    "input copy";
  gap: 4px 10px;
  align-items: start;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.82);
}

.tracking-preference-card.selected {
  border-color: rgba(21, 81, 75, 0.32);
  background: linear-gradient(135deg, rgba(239, 247, 240, 0.92), rgba(255, 253, 249, 0.9));
  box-shadow: 0 12px 26px rgba(21, 81, 75, 0.08);
}

.tracking-preference-card input {
  grid-area: input;
  margin-top: 2px;
}

.tracking-preference-card span {
  grid-area: label;
  color: var(--ink);
  font-weight: 900;
}

.tracking-preference-card small {
  grid-area: copy;
  color: var(--muted);
  line-height: 1.35;
}

.production-foundation-panel {
  margin-top: 18px;
}

.account-foundation-grid {
  margin-top: 14px;
}

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

.auth-diagnostic-card {
  padding: 12px;
  background: rgba(255, 253, 247, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-diagnostic-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-diagnostic-card strong {
  display: block;
  margin-top: 6px;
}

.auth-diagnostic-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.auth-diagnostic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.account-detail-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.account-detail-card.active {
  border-color: rgba(47, 125, 99, 0.48);
  background: #effaf3;
}

.account-detail-panel {
  margin-top: 14px;
}

.account-detail-info {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.account-detail-info h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.account-detail-info p {
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.45;
}

.account-detail-rows {
  display: grid;
  gap: 8px;
}

.account-detail-rows div {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.account-detail-rows span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.encrypted-database-panel {
  grid-column: 1 / -1;
}

.account-summary {
  padding: 16px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-summary span,
.account-summary strong,
.account-summary p {
  display: block;
}

.account-summary span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-summary strong {
  margin-top: 6px;
  font-size: 1.15rem;
}

.account-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.auth-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.auth-fallback-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(13, 92, 84, 0.24);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.auth-fallback-link:hover {
  background: rgba(13, 92, 84, 0.08);
}

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

.sync-overview-card {
  padding: 14px;
  border: 1px solid rgba(13, 92, 84, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(232, 244, 241, 0.72));
}

.sync-overview-card span {
  display: block;
  color: var(--earth);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sync-overview-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1rem;
}

.sync-overview-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.sync-overview-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pilot-readiness-panel {
  margin-top: 18px;
}

.pilot-readiness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.pilot-readiness-card {
  display: grid;
  gap: 6px;
  padding: 13px;
  text-align: left;
  background: #fffdf9;
  border: 1px solid rgba(218, 203, 183, 0.9);
  border-radius: 8px;
  cursor: pointer;
}

.pilot-readiness-card.ready {
  border-color: rgba(13, 92, 84, 0.22);
  background: linear-gradient(135deg, rgba(237, 248, 244, 0.96), #fffdf9);
}

.pilot-readiness-card.needs-work {
  border-color: rgba(204, 107, 74, 0.22);
}

.pilot-readiness-card span {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pilot-readiness-card.needs-work span {
  color: var(--rose);
}

.pilot-readiness-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.pilot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cloud-sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cloud-sync-actions .form-status {
  flex-basis: 100%;
  margin: 0;
}

.cloud-sync-actions[hidden],
.auth-diagnostic-panel[hidden] {
  display: none;
}

.compact-auth-button {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 0.78rem;
}

.labs-layout {
  align-items: start;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1fr);
}

.comparison-panel,
.lab-tracker-panel {
  grid-column: 1 / -1;
}

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

.comparison-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.comparison-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.comparison-card header span {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.comparison-card .rising {
  color: #743641;
  background: #fbe5e6;
}

.comparison-card .falling {
  color: #274f80;
  background: #eaf1fb;
}

.comparison-card .stable {
  color: var(--green-dark);
  background: #dff3ec;
}

.comparison-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.lab-tracker-panel {
  display: grid;
  gap: 14px;
}

.lab-trend-controls {
  justify-content: flex-start;
  margin-top: 0;
}

.lab-marker-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.lab-marker-picker label {
  display: grid;
  grid-template-columns: 18px 1fr;
  grid-template-areas:
    "input name"
    "input category";
  align-items: center;
  gap: 2px 8px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.78);
}

.lab-marker-picker input {
  grid-area: input;
}

.lab-marker-picker span {
  grid-area: name;
  font-weight: 900;
  color: var(--ink);
}

.lab-marker-picker small {
  grid-area: category;
  color: var(--muted);
  font-weight: 800;
}

.lab-trend-chart {
  display: grid;
  gap: 12px;
}

.lab-trend-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(239, 247, 240, 0.76);
}

.lab-trend-summary span {
  color: var(--muted);
  font-weight: 800;
}

.lab-trend-rows {
  display: grid;
  gap: 12px;
}

.lab-trend-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.lab-trend-row header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.lab-trend-row header div {
  display: grid;
  gap: 3px;
}

.lab-trend-row header span,
.lab-trend-row p {
  color: var(--muted);
}

.lab-trend-row small.rising {
  color: #743641;
}

.lab-trend-row small.falling {
  color: #274f80;
}

.lab-trend-row small.stable {
  color: var(--green-dark);
}

.lab-mini-chart {
  display: grid;
  grid-template-columns: repeat(var(--lab-columns, 4), minmax(42px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 146px;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid rgba(21, 81, 75, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.88), rgba(243, 248, 242, 0.72));
}

.lab-mini-point {
  display: grid;
  align-items: end;
  justify-items: center;
  gap: 8px;
  min-height: 126px;
}

.lab-mini-point span {
  width: 100%;
  max-width: 34px;
  min-height: 10px;
  border-radius: 7px 7px 0 0;
  background: var(--lab-trend-color, var(--green));
}

.lab-mini-point small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.comparison-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(54px, 1fr);
  align-items: end;
  gap: 8px;
  min-height: 154px;
  padding: 8px 0 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.comparison-point {
  display: grid;
  align-content: start;
  min-height: 44px;
  padding: 8px 6px;
  color: white;
  background: linear-gradient(180deg, var(--plum) 0%, var(--blue) 100%);
  border-radius: 6px 6px 0 0;
  text-align: center;
}

.comparison-point span {
  font-size: 0.78rem;
  font-weight: 800;
}

.comparison-point small {
  margin-top: 4px;
  font-size: 0.68rem;
}

.document-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.document-link,
.text-button {
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.document-link.muted {
  color: var(--muted);
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
}

.top-auth-button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--green-dark);
  background: rgba(255, 253, 247, 0.86);
  border: 1px solid rgba(218, 203, 183, 0.9);
  border-radius: 8px;
  white-space: nowrap;
}

.top-auth-button.signed-in {
  color: #f8f1e7;
  background: rgba(20, 105, 95, 0.82);
  border-color: rgba(255, 253, 247, 0.28);
}

.direction-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.meds-grid,
.share-grid,
.scanner-grid,
.security-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

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

.trust-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #effaf3 0%, #fff7e8 55%, #f4f1ff 100%);
}

.trust-hero p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.trust-score {
  display: grid;
  place-items: center;
  min-height: 130px;
  padding: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust-score strong {
  color: var(--green-dark);
  font-size: 2rem;
}

.trust-score span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.toggle-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.toggle-list label {
  grid-template-columns: 18px 1fr;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.integration-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.integration-card {
  width: 100%;
  padding: 14px;
  text-align: left;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.integration-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.integration-card:hover {
  border-color: rgba(47, 125, 99, 0.45);
  box-shadow: 0 10px 22px rgba(31, 53, 42, 0.08);
}

.integration-card.connected {
  background: #effaf3;
  border-color: rgba(47, 125, 99, 0.42);
}

.integration-card strong,
.integration-card span {
  display: block;
}

.integration-card span,
.integration-card .integration-status {
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.integration-card .integration-status {
  width: fit-content;
  margin: 0 0 8px;
  padding: 4px 8px;
  background: rgba(209, 225, 216, 0.5);
  border: 1px solid rgba(47, 125, 99, 0.2);
  border-radius: 999px;
  color: var(--green-dark);
}

.integration-card p,
.care-access-card p,
.disclaimer-box p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.wearable-sync-status {
  margin-top: 14px;
}

.wearable-live-note {
  margin-top: 14px;
  padding: 12px;
  background: rgba(235, 245, 241, 0.85);
  border: 1px solid rgba(47, 125, 99, 0.18);
  border-radius: 8px;
}

.wearable-live-note strong,
.wearable-live-note p {
  display: block;
  margin: 0;
}

.wearable-live-note p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.apple-watch-readiness {
  margin-top: 14px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(239, 250, 243, 0.92));
  border: 1px solid rgba(47, 125, 99, 0.18);
  border-radius: 8px;
}

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

.readiness-list article {
  padding: 11px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.readiness-list strong,
.readiness-list p {
  display: block;
  margin: 0;
}

.readiness-list p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.wearable-alert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.wearable-alert-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wearable-alert-card.enabled {
  background: #effaf3;
  border-color: rgba(47, 125, 99, 0.35);
}

.wearable-alert-card label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.wearable-alert-card strong,
.wearable-alert-card small {
  display: block;
}

.wearable-alert-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.wearable-alert-card input[type="time"] {
  width: 100%;
  min-height: 38px;
}

.wearable-test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.wearable-test-actions p {
  margin: 0;
}

.disclaimer-box {
  margin-top: 16px;
  padding: 14px;
  background: #f3f0ff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trusted-access-panel {
  grid-column: 1 / -1;
}

.med-data-map-panel {
  grid-column: 1 / -1;
}

.health-sync-panel,
.med-saved-protocol-panel {
  grid-column: 1 / -1;
}

.care-access-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.care-access-card {
  padding: 14px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.care-access-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.care-access-card header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.direction-hero,
.timeline-panel,
.protocol-panel {
  grid-column: 1 / -1;
}

.direction-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 14px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, #fff1df 48%, #edf8f4 100%);
}

.direction-hero h3 {
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.direction-hero p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

#directionView[data-active-section="experiments"] .active-direction-panel,
#directionView[data-active-section="care"] .active-direction-panel {
  grid-column: 1 / -1;
}

#directionView[data-active-section="overview"] .goal-builder-panel {
  grid-column: 1 / -1;
}

.priority-stack,
.goal-plan,
.nudge-list,
.experiment-list,
.health-timeline,
.brief-card,
.care-appointment-list,
.med-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.health-protocol-panel {
  margin-top: 18px;
}

.health-protocol-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.health-protocol-card {
  background: linear-gradient(135deg, #fffdf9 0%, #f3f8f2 100%);
}

.health-protocol-card .document-actions {
  margin-top: 12px;
}

.quiet-details {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.74);
  padding: 10px 12px;
}

.quiet-details summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.priority-stack {
  margin-top: 0;
}

.priority-card,
.plan-card,
.nudge-card,
.experiment-card,
.med-card,
.brief-section,
.care-appointment-card,
.timeline-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.priority-card {
  display: grid;
  gap: 4px;
  border-left: 5px solid var(--green);
}

.priority-card.watch,
.nudge-card.watch {
  border-left-color: var(--rose);
}

.priority-card.steady,
.nudge-card.steady {
  border-left-color: var(--gold);
}

.priority-card.good,
.nudge-card.good {
  border-left-color: var(--green);
}

.priority-card span,
.plan-card p,
.nudge-card p,
.experiment-card p,
.med-card p,
.brief-section p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.goal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.goal-form label {
  grid-template-columns: 18px 1fr;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7e8 0%, #f3f0ff 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
}

.goal-form input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--green);
}

.goal-form .primary-button {
  grid-column: 1 / -1;
}

.goal-plan-summary,
.priority-goal-card,
.compact-goal-card,
.also-tracking-goals summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.goal-plan-summary {
  padding: 10px 12px;
  color: var(--muted);
  background: #f7fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 800;
}

.goal-plan-summary strong {
  color: var(--ink);
}

.priority-goal-card,
.compact-goal-card {
  align-items: flex-start;
}

.also-tracking-goals {
  padding: 12px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.also-tracking-goals summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.also-tracking-goals summary small {
  color: var(--muted);
  font-size: 0.78rem;
}

.also-tracking-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.prompt-callout {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #f3f0ff 0%, #fff1df 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.prompt-callout p {
  margin: 0;
  color: #4d385f;
  line-height: 1.5;
  font-weight: 700;
}

.scanner-summary {
  padding: 14px;
  color: #4d385f;
  background: linear-gradient(135deg, #f3f0ff 0%, #fff1df 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scanner-summary p,
.scanner-note {
  margin: 8px 0 0;
  line-height: 1.45;
}

.today-review-panel,
.today-plan-panel,
.data-sources-panel,
.wearable-activity-panel,
.wearable-inbox-panel,
.prompt-insights-panel,
.privacy-center-panel {
  margin-bottom: 18px;
}

.today-review-grid,
.command-center-grid,
.source-grid,
.prompt-insight-grid,
.weekly-review-grid,
.privacy-center-grid,
.roadmap-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.today-review-panel .today-review-grid {
  grid-template-columns: 1fr;
}

.daily-summary-record {
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.96) 0%, rgba(242, 248, 242, 0.98) 100%);
  border: 1px solid rgba(22, 119, 111, 0.18);
  border-radius: 8px;
}

.daily-summary-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.summary-date,
.daily-next-step span,
.daily-summary-chips span,
.summary-score span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.daily-summary-main strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.daily-summary-main p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.quick-loop-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick-loop-strip span {
  padding: 7px 10px;
  color: var(--green-dark);
  background: rgba(191, 227, 215, 0.3);
  border: 1px solid rgba(22, 119, 111, 0.16);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.summary-score {
  min-width: 96px;
  padding: 12px;
  text-align: center;
  background: #f8f1e7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-score strong {
  margin: 0;
  color: var(--green-dark);
  font-size: 1.55rem;
}

.wellness-score-card small,
.weekly-insight-score span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.wellness-score-card.strong,
.weekly-insight-score.strong {
  background: rgba(191, 227, 215, 0.44);
  border-color: rgba(22, 119, 111, 0.22);
}

.wellness-score-card.steady,
.weekly-insight-score.steady {
  background: #f8f1e7;
  border-color: var(--line);
}

.wellness-score-card.watch,
.weekly-insight-score.watch {
  background: #fff7ed;
  border-color: rgba(201, 149, 47, 0.28);
}

.daily-score-explain {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 253, 250, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.daily-score-explain span {
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-score-explain p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.daily-summary-chips button {
  min-height: 76px;
  padding: 10px;
  text-align: left;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.daily-summary-chips button:hover,
.daily-summary-chips button:focus-visible {
  border-color: var(--green);
  box-shadow: 0 8px 18px rgba(26, 72, 64, 0.08);
  outline: none;
}

.daily-summary-chips strong {
  display: block;
  margin-top: 5px;
  line-height: 1.25;
}

.daily-summary-chips .steady {
  background: rgba(191, 227, 215, 0.35);
  border-color: rgba(22, 119, 111, 0.18);
}

.daily-summary-chips .watch {
  background: #fff7ed;
  border-color: rgba(201, 149, 47, 0.28);
}

.daily-next-step {
  margin-top: 12px;
  padding: 12px;
  background: rgba(243, 240, 255, 0.72);
  border: 1px solid rgba(109, 74, 141, 0.16);
  border-radius: 8px;
}

.daily-next-step strong {
  display: block;
  margin-top: 4px;
  line-height: 1.35;
}

.weekly-insight-report {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.weekly-insight-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(191, 227, 215, 0.32), rgba(255, 253, 250, 0.96));
  border: 1px solid rgba(22, 119, 111, 0.16);
  border-radius: 8px;
}

.weekly-insight-hero h4 {
  margin: 4px 0 8px;
  font-size: 1.1rem;
}

.weekly-insight-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.weekly-insight-score {
  min-width: 92px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.weekly-insight-score strong {
  display: block;
  color: var(--green-dark);
  font-size: 1.7rem;
  line-height: 1;
}

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

.weekly-insight-card {
  padding: 12px;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.weekly-insight-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.weekly-insight-card strong {
  display: block;
  margin-top: 5px;
  line-height: 1.25;
}

.weekly-insight-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.trend-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.trend-filter-grid label,
.compact-form {
  color: var(--muted);
  font-size: 0.86rem;
}

.compact-tabs {
  margin: 0;
}

.closed-loop-strip {
  margin-top: 12px;
  padding: 12px;
  color: var(--green-dark);
  background: rgba(191, 227, 215, 0.45);
  border: 1px solid rgba(22, 119, 111, 0.18);
  border-radius: 8px;
}

.today-plan-panel[data-active-mode="evening"] .closed-loop-strip {
  color: #4d385f;
  background: rgba(243, 240, 255, 0.72);
  border-color: rgba(109, 74, 141, 0.2);
}

.today-plan-panel[data-active-mode="morning"] .review-card {
  border-color: rgba(22, 119, 111, 0.2);
}

.today-plan-panel[data-active-mode="evening"] .review-card {
  border-color: rgba(109, 74, 141, 0.2);
  background: #fffaff;
}

.review-card,
.command-card,
.source-card,
.roadmap-card,
.compare-card,
.marker-detail-card,
.activity-row,
.wearable-confirm-card {
  padding: 14px;
  border: 1px solid rgba(218, 203, 183, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(248, 241, 231, 0.68));
  box-shadow: 0 10px 24px rgba(37, 27, 17, 0.06);
}

.review-card span,
.command-card span,
.source-card span,
.health-snapshot-tile span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.review-card strong,
.command-card strong,
.source-card strong,
.roadmap-card strong,
.compare-card strong {
  display: block;
  line-height: 1.35;
}

.review-card p,
.command-card p,
.source-card p,
.compare-card p,
.marker-detail-card p,
.wearable-confirm-card p,
.scan-save-actions p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.card-action-hint {
  display: inline-block;
  margin-top: 10px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.command-center-grid {
  grid-template-columns: minmax(220px, 0.8fr) repeat(3, minmax(0, 1fr));
}

.command-card.primary {
  background: linear-gradient(135deg, rgba(185, 217, 205, 0.58), rgba(213, 184, 135, 0.28));
  border-color: rgba(20, 105, 95, 0.24);
}

.ai-navigator-panel {
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(12, 61, 55, 0.94), rgba(19, 91, 82, 0.88)),
    linear-gradient(180deg, #fffdf9, #f7efe3);
  color: #fffdf9;
  border-color: rgba(218, 203, 183, 0.42);
}

.ai-navigator-panel .eyebrow,
.ai-navigator-panel .section-note {
  color: rgba(255, 253, 249, 0.78);
}

.ai-navigator-panel h3 {
  color: #fffdf9;
}

.ai-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ai-action-card {
  display: grid;
  gap: 6px;
  padding: 13px;
  color: #fffdf9;
  text-align: left;
  background: rgba(255, 253, 249, 0.12);
  border: 1px solid rgba(255, 253, 249, 0.2);
  border-radius: 8px;
  cursor: pointer;
}

.ai-action-card span {
  color: #e8c985;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ai-action-card strong {
  color: #fffdf9;
  line-height: 1.35;
}

.command-card.watch {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(213, 184, 135, 0.24));
  border-color: rgba(185, 135, 53, 0.32);
}

.command-card.good {
  background: linear-gradient(135deg, rgba(243, 251, 247, 0.96), rgba(185, 217, 205, 0.34));
  border-color: rgba(20, 105, 95, 0.22);
}

.health-snapshot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.health-snapshot-meta small {
  padding: 4px 7px;
  color: var(--green-dark);
  background: rgba(191, 227, 215, 0.42);
  border-radius: 999px;
}

.completion-checklist,
.compare-columns,
.roadmap-steps,
.marker-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.completion-checklist span,
.completion-checklist button,
.compare-columns span,
.roadmap-steps span,
.marker-timeline span {
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: #f6f0e8;
  font-size: 0.82rem;
}

.completion-checklist .complete {
  color: var(--green-dark);
  background: rgba(191, 227, 215, 0.62);
}

.ai-relationship-insight {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(13, 92, 84, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(236, 244, 238, 0.88), rgba(255, 253, 249, 0.92));
}

.ai-relationship-insight span {
  display: block;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wearable-confirm-card,
.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.wearable-confirm-card.added {
  background: #effaf3;
  border-color: rgba(47, 125, 99, 0.28);
}

.data-sources-panel summary,
.metric-detail-panel summary,
.wearable-hub-panel summary,
.wearable-activity-panel summary,
.marker-detail-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 800;
}

.metric-detail-panel,
.data-sources-panel,
.wearable-hub-panel,
.wearable-activity-panel {
  margin-bottom: 12px;
}

.data-sources-panel details[open] .source-grid,
.metric-detail-panel details[open] .marker-detail,
.wearable-hub-panel details[open] .wearable-hub-grid,
.wearable-activity-panel details[open] .wearable-activity-log {
  margin-top: 14px;
}

.compare-mode-panel,
.lab-marker-detail-panel,
.scanner-save-panel,
.roadmap-panel,
.weekly-review-panel,
.privacy-center-panel {
  grid-column: 1 / -1;
}

.marker-detail-card + .marker-detail-card {
  margin-top: 10px;
}

.marker-detail-card small,
.activity-row span,
.source-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

.compact-toggle-list {
  margin: 8px 0;
}

.compact-resource-list {
  margin-top: 14px;
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:hover {
  border-color: rgba(22, 119, 111, 0.35);
  box-shadow: 0 10px 26px rgba(42, 34, 27, 0.08);
}

.experiment-card header,
.med-card header,
.care-appointment-card header,
.timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.experiment-card header,
.med-card header,
.care-appointment-card header {
  margin-bottom: 8px;
}

.experiment-checkin-form {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.compact-heading h3 {
  font-size: 0.98rem;
}

.checkin-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.experiment-log-details {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.72);
}

.experiment-log-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.experiment-log-details summary small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.checkin-card {
  padding: 10px;
  background: #f7fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkin-card p {
  margin: 4px 0;
}

.checkin-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.experiment-card header span,
.med-card header span,
.care-appointment-card header span,
.timeline-item time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.care-appointments-panel {
  grid-column: 1 / -1;
}

.care-appointment-card header {
  align-items: flex-start;
}

.care-appointment-card header span {
  display: block;
  margin-top: 4px;
}

.care-appointment-body {
  display: grid;
  gap: 8px;
}

.care-appointment-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.care-appointment-body strong {
  color: var(--ink);
}

.report-panel textarea,
#shareReport {
  min-height: 620px;
  background: #fffdf9;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.86rem;
}

#shareReport:not([readonly]) {
  background: #ffffff;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 125, 99, 0.12);
}

.report-edit-note {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.email-link {
  text-decoration: none;
}

.icon-text-button {
  min-height: 44px;
  padding: 0 16px;
  color: var(--green-dark);
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.icon-text-button.wide {
  width: 100%;
}

.timeline-item {
  align-items: flex-start;
}

.timeline-clickable {
  cursor: pointer;
}

.timeline-item span {
  display: inline-flex;
  margin-bottom: 5px;
  padding: 3px 8px;
  color: var(--green-dark);
  background: #dff3ec;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

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

.prompt-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0;
}

.prompt-controls label {
  flex: 1;
}

.library-grid {
  display: grid;
  gap: 18px;
}

.library-search-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, #edf8f4 48%, #fff1df 100%);
}

.resource-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.resource-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resource-card p,
.library-disclaimer {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.library-disclaimer {
  padding: 12px;
  background: #f3f0ff;
  border-radius: 8px;
}

.custom-experiment-fields {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #fff7e8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.custom-experiment-fields[hidden] {
  display: none;
}

.prompt-card {
  display: grid;
  align-content: space-between;
  min-height: 180px;
  background: linear-gradient(160deg, #ffffff 0%, #fff2df 52%, #f3f0ff 100%);
}

.prompt-card.used-prompt {
  opacity: 0.76;
  background: #fffdf9;
}

.prompt-card button {
  margin-top: 18px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 25, 22, 0.42);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(620px, 100%);
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.22);
}

.modal-prompt {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.5;
}

.modal-actions {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr;
  gap: 10px;
  margin-top: 14px;
}

.modal-actions .back-button,
.modal-actions .primary-button {
  width: 100%;
  margin: 0;
}

.baseline-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(11, 31, 27, 0.62);
  backdrop-filter: blur(14px);
}

.baseline-backdrop[hidden] {
  display: none;
}

.baseline-modal {
  width: min(980px, 100%);
  max-height: min(820px, 92vh);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.pilot-gate-modal {
  display: grid;
  gap: 22px;
  width: min(620px, 100%);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.pilot-gate-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.pilot-gate-header h3 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.02;
}

.pilot-gate-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.pilot-gate-form {
  display: grid;
  gap: 12px;
}

.pilot-gate-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.pilot-gate-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.pilot-gate-form input.input-error {
  border-color: #b3261e;
  background: #fff7f6;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

.pilot-gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.baseline-shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1fr);
  min-height: 620px;
}

.baseline-aside {
  padding: 26px;
  background:
    linear-gradient(rgba(5, 34, 28, 0.78), rgba(5, 34, 28, 0.86)),
    url("./assets/wise-earth-logo-crop.jpg") center/cover;
  color: #fffdf9;
}

.baseline-aside .eyebrow,
.baseline-aside p {
  color: rgba(255, 253, 249, 0.78);
}

.baseline-aside h3 {
  margin: 16px 0 10px;
  color: #fffdf9;
  font-size: 1.9rem;
  line-height: 1.05;
}

.baseline-mark {
  background: rgba(255, 253, 249, 0.12);
  border-color: rgba(255, 253, 249, 0.3);
}

.baseline-progress {
  margin-top: 34px;
}

.baseline-progress span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.baseline-progress div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.baseline-progress i {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tan), #d8f0e8);
}

.baseline-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
}

.baseline-step {
  display: none;
}

.baseline-step.active {
  display: grid;
  gap: 14px;
}

.baseline-step h3 {
  margin: 0;
  font-size: 1.55rem;
}

.baseline-step label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}

.baseline-account-box {
  margin-bottom: 4px;
}

.baseline-consent-list {
  gap: 10px;
}

.baseline-consent-list label {
  display: block;
  padding: 12px;
  background: rgba(232, 239, 226, 0.58);
  border: 1px solid rgba(44, 62, 48, 0.12);
  border-radius: 10px;
  line-height: 1.45;
}

.baseline-consent-list input {
  width: auto;
  margin-right: 8px;
}

.baseline-consent-list a {
  color: var(--teal);
  font-weight: 900;
}

.baseline-step input,
.baseline-step select,
.baseline-step textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

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

.baseline-pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.baseline-plan-card {
  position: relative;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.baseline-plan-card input {
  width: auto;
}

.baseline-actions {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  margin-top: auto;
}

.baseline-actions .primary-button {
  justify-self: end;
}

.baseline-flow-status {
  min-height: 22px;
  margin: -4px 0 0;
}

.empty-state {
  color: var(--muted);
}

svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }

  .brand-block {
    grid-template-columns: 40px 1fr;
  }

  .nav-list {
    display: flex;
  }

  .nav-item {
    justify-content: center;
    font-size: 0.86rem;
  }

  .privacy-note {
    display: none;
  }

  .system-loop-panel {
    grid-template-columns: 1fr;
  }

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

  .wearable-alert-grid {
    grid-template-columns: 1fr;
  }

  .readiness-list {
    grid-template-columns: 1fr;
  }

  .landing-hero,
  .landing-flow-grid,
  .pricing-grid,
  .baseline-pricing-grid {
    grid-template-columns: 1fr;
  }

  .main-panel {
    padding: 18px;
  }

  .today-grid,
  .checkin-grid,
  .auth-diagnostic-panel,
  .dashboard-grid,
  .labs-layout,
  .hub-grid,
  .health-data-hero,
  .health-snapshot-grid,
  .wearable-hub-grid,
  .wearable-impact-list,
  .mini-trend-grid,
  .metric-tracker-grid,
  .today-wearable-panel,
  .today-wearable-card,
  .today-wearable-metrics,
  .today-activity-summary-grid,
  .completed-activity-row,
  .daily-summary-main,
  .daily-summary-chips,
  .today-protocol-grid,
  .today-focus-panel,
  .prompt-grid,
  .resource-card,
  .direction-grid,
  .meds-grid,
  .share-grid,
  .scanner-grid,
  .account-hero,
  .account-grid,
  .security-grid,
  .trust-hero,
  .today-review-grid,
  .command-center-grid,
  .source-grid,
  .prompt-insight-grid,
  .weekly-review-grid,
  .privacy-center-grid,
  .trend-filter-grid,
  .roadmap-list,
  .direction-hero {
    grid-template-columns: 1fr;
  }

  .metric-tracker-panel,
  .today-wearable-panel,
  .today-protocol-panel,
  .trusted-access-panel,
  .wearable-impact-panel,
  .correlations-panel,
  .modality-impact-panel,
  .comparison-panel,
  .direction-hero,
  .timeline-panel,
  .protocol-panel {
    grid-column: auto;
  }

  .comparison-list {
    grid-template-columns: 1fr;
  }

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

  .wearable-confirm-card,
  .activity-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .baseline-shell {
    grid-template-columns: 1fr;
  }

  .baseline-aside {
    min-height: 240px;
  }

  .baseline-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-page {
    padding: 14px;
  }

  .landing-section {
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .system-loop-grid {
    grid-template-columns: 1fr;
  }

  .today-reminder-card {
    grid-template-columns: 1fr;
  }

  .med-reminder-card .document-actions {
    max-width: none;
    justify-content: flex-start;
  }

  .today-wearable-card header,
  .today-wearable-empty {
    align-items: flex-start;
    flex-direction: column;
  }

  .wearable-alert-card {
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .primary-button,
  .modal-actions {
    width: 100%;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .baseline-actions {
    grid-template-columns: 1fr;
  }

  .baseline-actions .primary-button {
    justify-self: stretch;
  }

  .split-fields,
  .metrics-form,
  .habit-grid,
  .goal-form {
    grid-template-columns: 1fr;
  }

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

  .signal-watch-row strong {
    justify-self: start;
  }

  .progress-photo-card {
    grid-template-columns: 86px 1fr;
  }

  .progress-photo-thumb {
    width: 86px;
  }

  .nav-list {
    gap: 6px;
  }

  .nav-item {
    min-height: 38px;
    padding: 0 10px;
  }

  .brand-block {
    grid-template-columns: 38px 1fr;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  h2 {
    font-size: 1.55rem;
  }
}

/* Final visual refresh layer: keep this after responsive rules so the modern palette wins. */
body {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.15), transparent 30rem),
    radial-gradient(circle at 86% 8%, rgba(37, 108, 143, 0.13), transparent 28rem),
    linear-gradient(135deg, #eef3ef 0%, #f8f6ef 48%, #eef5f7 100%);
}

.landing-page {
  background:
    radial-gradient(circle at 16% 18%, rgba(148, 116, 255, 0.34), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(75, 154, 255, 0.32), transparent 28rem),
    linear-gradient(120deg, rgba(22, 18, 58, 0.94) 0%, rgba(35, 38, 115, 0.86) 42%, rgba(12, 86, 112, 0.7) 100%),
    url("./assets/wise-earth-brand.jpg") center/cover;
}

.sidebar {
  background: rgba(8, 63, 57, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 46px rgba(8, 63, 57, 0.18);
  backdrop-filter: blur(18px);
}

.brand-block {
  color: #fffdf9;
}

.brand-mark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(207, 232, 220, 0.36);
  box-shadow: none;
}

.sidebar .eyebrow,
.brand-tagline {
  color: rgba(255, 255, 255, 0.68);
}

.nav-item {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(207, 232, 220, 0.4);
  color: #fffdf9;
  transform: translateY(-1px);
}

.topbar {
  border-bottom: 1px solid rgba(21, 81, 75, 0.12);
}

.panel,
.content-card,
.source-card,
.review-card,
.command-card,
.today-reminder-card,
.today-wearable-card,
.direction-card,
.metric-detail-card,
.protocol-card,
.compare-panel,
.share-panel,
.privacy-card,
.photo-upload-panel,
.progress-photo-card,
.landing-section,
.landing-demo-card,
.brand-message-card,
.membership-card,
.baseline-card {
  background: rgba(251, 250, 246, 0.92);
  border: 1px solid rgba(21, 81, 75, 0.14);
  box-shadow: 0 12px 32px rgba(16, 32, 28, 0.06);
}

.panel:hover,
.source-card:hover,
.review-card:hover,
.command-card:hover,
.today-reminder-card:hover,
.direction-card:hover,
.metric-detail-card:hover,
.protocol-card:hover,
.progress-photo-card:hover {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 18px 42px rgba(16, 32, 28, 0.09);
}

.premium-landing-nav {
  background: rgba(20, 18, 52, 0.72);
  border-color: rgba(255, 255, 255, 0.2);
}

.landing-copy,
.landing-copy h2,
.landing-copy .eyebrow,
.landing-copy p,
.landing-lede,
.landing-nav,
.landing-nav .eyebrow,
.landing-nav h1,
.landing-page .text-button {
  color: #fffdf9;
}

.landing-lede,
.landing-copy > p {
  color: rgba(255, 253, 249, 0.92);
}

.landing-page .text-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.landing-tags span {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fffdf9;
}

.landing-hero-product {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 242, 255, 0.9));
}

.landing-hero-product::before {
  background:
    radial-gradient(circle at 16% 0%, rgba(148, 116, 255, 0.18), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(75, 154, 255, 0.15), transparent 30%);
}

.premium-brand-message,
.landing-final-cta {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 22rem),
    linear-gradient(135deg, rgba(42, 34, 114, 0.98), rgba(20, 96, 128, 0.94));
}

.premium-brand-message strong,
.premium-brand-message p,
.premium-brand-message .eyebrow,
.landing-final-cta h3,
.landing-final-cta p,
.landing-final-cta .eyebrow {
  color: #fffdf9;
}

.landing-example-section {
  background:
    linear-gradient(135deg, rgba(251, 250, 246, 0.95), rgba(242, 240, 255, 0.94));
}

.system-loop-panel,
.ai-navigator-panel,
.pilot-readiness-panel {
  background:
    radial-gradient(circle at 18% 12%, rgba(207, 232, 220, 0.22), transparent 24%),
    linear-gradient(135deg, #073d37 0%, #0f5f66 54%, #6b5843 100%);
  border: 1px solid rgba(207, 232, 220, 0.24);
  box-shadow: 0 22px 58px rgba(8, 63, 57, 0.18);
}

.system-loop-panel .eyebrow,
.system-loop-panel .section-note,
.ai-navigator-panel .eyebrow,
.ai-navigator-panel .section-note,
.pilot-readiness-panel .eyebrow,
.pilot-readiness-panel .section-note {
  color: rgba(255, 255, 255, 0.72);
}

.system-loop-panel h3,
.ai-navigator-panel h3,
.pilot-readiness-panel h3 {
  color: #fffdf9;
}

.primary-button,
.secondary-button.active,
.section-tab.active {
  background: linear-gradient(135deg, #0f766e, #256c8f);
  border-color: transparent;
  color: #fffdf9;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.2);
}

.primary-button:hover,
.secondary-button.active:hover,
.section-tab.active:hover {
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.26);
}

.secondary-button,
.section-tab,
.chip,
.status-pill,
.cloud-status-pill,
.tag-pill,
.source-pill,
.tiny-pill {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(21, 81, 75, 0.16);
  color: #174842;
  box-shadow: none;
}

.status-pill.good,
.cloud-status-pill.good,
.tag-pill.good,
.source-pill.good {
  background: rgba(207, 232, 220, 0.76);
  color: #073d37;
}

.status-pill.warn,
.cloud-status-pill.warn,
.tag-pill.warn,
.source-pill.warn {
  background: rgba(244, 220, 174, 0.72);
  color: #6b4a16;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(21, 81, 75, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.52);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.score-ring,
.readiness-ring {
  background: conic-gradient(from 210deg, #0f766e, #256c8f, #c9aa6b, #0f766e);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.72), 0 14px 28px rgba(16, 32, 28, 0.08);
}

.chart,
.trend-chart,
.compare-chart,
.mini-chart {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 250, 246, 0.72)),
    linear-gradient(rgba(21, 81, 75, 0.06) 1px, transparent 1px);
  border-color: rgba(21, 81, 75, 0.14);
}

.bar {
  background: linear-gradient(180deg, #256c8f, #0f766e);
  border-radius: 4px 4px 2px 2px;
}

.modal-card {
  background: rgba(251, 250, 246, 0.96);
  border: 1px solid rgba(21, 81, 75, 0.18);
  box-shadow: 0 24px 70px rgba(16, 32, 28, 0.22);
}
