:root {
  color: #4a3842;
  background: #fce8ef;
  /* Luma type system: Cormorant for display titles, Nunito for UI/body */
  --luma-font-display: "Cormorant Garamond", Georgia, "Times New Roman", ui-serif, serif;
  --luma-font-sans: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--luma-font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* Light theme — ballet blush beauty */
  --luma-shell: #fff4f7;
  --luma-card: rgba(255, 250, 252, 0.94);
  --luma-label: #7a5564;
  --luma-accent: #e8a8bc;
  --luma-accent-deep: #c07090;
  --luma-copper: #b87850;
  --luma-accent-text: #a85878;
  --luma-input-bg: #fff0f4;
  --luma-glow: rgba(232, 168, 188, 0.28);
  --luma-glass: rgba(255, 255, 255, 0.88);
  --luma-glass-border: rgba(220, 140, 170, 0.14);
  --luma-gradient-start: rgba(255, 220, 232, 0.95);
  --luma-gradient-end: rgba(255, 244, 248, 0.98);
  /* Cycle calendar — distinct ballet pastels (light fills, clear hue separation) */
  --cycle-neutral: #fff7fa;
  --cycle-neutral-text: #5a3e48;
  --cycle-period: #f8d5e0;            /* past period — soft rose */
  --cycle-period-active: #efa0b8;     /* this period — clearer rose */
  --cycle-fertile: #eaf5ee;           /* fertile — light mint (pre-period lightness) */
  --cycle-fertile-text: #3f5346;
  --cycle-ovulation: #fceede;         /* ovulation — soft peach */
  --cycle-preperiod: #f4eef3;         /* pre-period — light mauve */
  --cycle-preperiod-text: #5a4554;
  --cycle-purple: #ebe6f7;            /* predicted — cool lavender (not pink) */
  --cycle-purple-text: #4f4560;
  --cycle-predicted-border: #b8a8d4;
  --cycle-browse-accent: #e8a8bc;
  --luma-text: #5a3e48;
  --luma-text-heading: #4a3040;
  --luma-text-muted: #6e5460;
  --luma-text-secondary: #7a5a66;
  --luma-text-body: var(--luma-text);
  --luma-surface-card: #fffafc;
  --luma-surface-card-alt: #fff5f8;
  --luma-surface-elevated: rgba(255, 255, 255, 0.94);
  --luma-surface-inset: #fff0f4;
  --luma-surface-panel: #fffcfd;
  --luma-border: #f0d8e0;
  --luma-border-soft: rgba(240, 216, 224, 0.95);
  --luma-link: #a84868;
  --luma-accent-teal: #8fc8b8;
  --luma-accent-teal-soft: #e8f8f2;
  /* Soft petal bloom mesh */
  --luma-ai-glow: rgba(232, 168, 188, 0.32);
  --luma-ai-glow-soft: rgba(232, 168, 188, 0.16);
  --luma-ai-border: rgba(220, 140, 170, 0.16);
  --luma-ai-sheen: rgba(255, 255, 255, 0.88);
  --luma-ai-mesh-a: rgba(255, 190, 210, 0.38);
  --luma-ai-mesh-b: rgba(190, 220, 200, 0.22);
  --luma-ai-mesh-c: rgba(255, 210, 220, 0.2);
  --luma-on-glass: #4a3842;
  --luma-on-glass-heading: #3a2a34;
  --luma-on-glass-muted: #6e5864;
  --luma-on-glass-label: #7a5564;
  --luma-on-glass-link: #a84868;
  --luma-on-light-surface: var(--luma-on-glass);
  --luma-on-light-surface-heading: var(--luma-on-glass-heading);
  --luma-on-light-surface-muted: var(--luma-on-glass-muted);
  --luma-on-light-surface-label: var(--luma-on-glass-label);
  --luma-on-light-surface-link: var(--luma-on-glass-link);
  --luma-glass-surface: linear-gradient(155deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 240, 246, 0.94) 55%, rgba(255, 248, 250, 0.9) 100%);
  --luma-glass-surface-shadow: 0 0 0 1px var(--luma-ai-sheen) inset, 0 20px 48px rgba(120, 70, 90, 0.08);
  --luma-input-surface: rgba(255, 255, 255, 0.96);
  --luma-input-border: rgba(140, 90, 110, 0.14);
  --luma-shell-max: 392px;
  --luma-shell-gutter: 16px;
  --luma-content-gutter: 14px;
  --luma-content-rail: calc(100% - (var(--luma-content-gutter) * 2));
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 15% 8%, var(--luma-ai-mesh-a), transparent 50%),
    radial-gradient(ellipse 60% 50% at 85% 92%, var(--luma-ai-mesh-b), transparent 45%),
    radial-gradient(ellipse 50% 40% at 72% 18%, var(--luma-ai-mesh-c), transparent 42%),
    radial-gradient(circle at 50% 50%, var(--luma-gradient-start), transparent 70%),
    linear-gradient(160deg, #fce4ec 0%, #fff5f8 38%, #f5eef6 100%);
}

html {
  overflow: hidden;
  height: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:active {
  transform: scale(.97);
}

.phoneShell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(var(--luma-shell-max, 392px), calc(100vw - var(--luma-shell-gutter, 16px)));
  height: min(920px, 100dvh);
  min-height: min(720px, 100dvh);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--luma-ai-border);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 16%),
    var(--luma-shell);
  color: var(--luma-text);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45) inset,
    0 28px 70px rgba(120, 90, 108, 0.16),
    0 0 100px var(--luma-ai-glow-soft);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 80% at 0% -5%, var(--luma-ai-mesh-a), transparent 58%),
    radial-gradient(ellipse 80% 70% at 100% 8%, var(--luma-ai-mesh-b), transparent 52%),
    radial-gradient(ellipse 70% 55% at 50% 105%, var(--luma-ai-mesh-c), transparent 48%);
  opacity: 0.9;
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(58, 40, 48, 0.06) 0, transparent 0.6px),
    radial-gradient(circle at 80% 70%, rgba(58, 40, 48, 0.04) 0, transparent 0.5px);
  background-size: 28px 28px, 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
}

.appScreen {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  z-index: 1;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 18px 18px 16px;
}

.appScreen.active {
  display: block;
}

.mobileHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-top: env(safe-area-inset-top);
}

.mobileHeader.compact {
  margin-bottom: 18px;
}

.mobileHeader p:not(.paywallSubtitle),
.label {
  margin: 0 0 6px;
  color: var(--luma-label);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 310px;
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 4px;
  font-size: 15px;
  letter-spacing: 0;
}

p {
  color: var(--luma-text-muted);
  line-height: 1.45;
}

.roundButton {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #392c2a;
  background: #fffaf4;
  box-shadow: 0 10px 24px rgba(65, 43, 35, .1);
}

.cycleNavButtons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.quickActions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.quickActions button {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  display: grid;
  place-items: center;
  gap: 4px;
  color: #fff;
  background: #463431;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(70, 52, 49, .16);
}

.quickActions button:nth-child(2) {
  background: #d888a4;
}

.quickActions button:nth-child(3) {
  background: #6aa898;
}

.quickActions button:nth-child(4) {
  background: #a8494f;
}

.careHero {
  min-height: 184px;
  margin: 16px 0 12px;
  border-radius: 28px;
  display: flex;
  align-items: end;
  padding: 18px;
  color: #fff8ef;
  background-image:
    linear-gradient(180deg, rgba(42, 30, 28, .1), rgba(42, 30, 28, .72)),
    url("./assets/cycle-care-hero.svg?v=20260701");
  background-size: cover;
  background-position: center;
}

.careHero p {
  margin-bottom: 0;
  color: #fff0e4;
}

.phasePill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  margin-bottom: 10px;
  padding: 0 10px;
  color: #2e2321;
  background: #f7dccd;
  font-size: 12px;
  font-weight: 850;
}

.checkInCard,
.aiPlanCard,
.reminderPanel,
.cycleSummary,
.mobileSettings,
.timeline,
.historyPanel,
.logComposer,
.summaryCard,
.logHistoryPanel,
.chatPanel,
.careList article {
  border: 1px solid var(--luma-ai-border);
  border-radius: 22px;
  background: var(--luma-glass-surface);
  color: var(--luma-on-glass);
  box-shadow: var(--luma-glass-surface-shadow);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
}

.checkInCard,
.aiPlanCard,
.reminderPanel,
.mobileSettings,
.timeline,
.historyPanel,
.logComposer,
.summaryCard,
.logHistoryPanel,
.chatPanel,
.careList article {
  padding: 14px;
}

.cardTop,
.todayStack article,
.stackAction,
.cycleSummary,
.timelineItem,
.reminderItem,
.tabBar,
.tabBar button {
  display: flex;
  align-items: center;
}

.cardTop {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.cardTop [data-icon],
.todayStack [data-icon] {
  color: #6aa898;
}

.feelingGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.feelingGrid button,
.promptRow button {
  min-height: 39px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 14px;
  color: var(--luma-on-light-surface-heading);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

.feelingGrid button.active {
  border-color: #c07090;
  color: #4a3040;
  background: linear-gradient(135deg, #f0c0d0 0%, #e8a8bc 100%);
  box-shadow: 0 6px 18px rgba(160, 90, 120, 0.2);
}

.wideButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 0;
  border-radius: 16px;
  color: #4a3040;
  text-align: center;
  background: linear-gradient(135deg, #f0c8d6 0%, var(--luma-accent) 42%, #e8a8bc 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 10px 28px rgba(160, 90, 120, 0.22);
  font-weight: 900;
}

.dangerButton {
  background: #a8494f;
}

.googleButton {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e4d9ce;
  border-radius: 16px;
  background: #fff;
  color: #2f2723;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.googleButton span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #4285f4;
  font-size: 14px;
  font-weight: 900;
}

.authDivider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8c7a72;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 4px 0;
}

.authDivider::before,
.authDivider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4d9ce;
}

.authProfileDivider {
  color: #8c7a72;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  margin: 8px 0 -2px;
  text-transform: uppercase;
}

.authLinkRow {
  text-align: center;
  margin: 12px 0 0;
}

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

.authLink {
  color: #6e5564;
  font-weight: 850;
}

.authHelpText,
.subscriptionDetail {
  color: #5c4f56;
  line-height: 1.5;
  margin: 0 0 12px;
}

.subscriptionDetail {
  margin: 0;
}

.verificationNotice {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #fdf4f8;
  border: 1px solid #efd6e4;
}

.verificationNotice p {
  margin: 0 0 10px;
  line-height: 1.5;
}

.anomalyTitle {
  color: #9d454b;
  font-size: 13px;
  margin: 0 0 8px;
}

.anomalyItem {
  font-size: 12px;
  color: #5a4a42;
  margin: 0 0 6px;
  background: #fce8e8;
  padding: 8px 10px;
  border-radius: 10px;
}

.aiPlanCard,
.reminderPanel,
.historyPanel,
.logComposer,
.summaryCard,
.logHistoryPanel {
  margin-top: 14px;
}

.historyInsightPending {
  color: #8a7a84;
  font-style: italic;
}

#historyInsight {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
  color: var(--luma-on-glass);
}

.confidenceBadge {
  min-width: 54px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #6aa898;
  font-size: 13px;
  font-weight: 950;
}

.planList {
  display: grid;
  gap: 9px;
}

.planList article {
  border-radius: 16px;
  padding: 11px;
  background: #f5eee5;
}

.planList strong {
  display: block;
  margin-bottom: 4px;
  color: #352d2a;
}

.planList p {
  margin-bottom: 0;
  font-size: 13px;
}

.planList button,
.careList button {
  min-height: 38px;
  margin-top: 10px;
  border: 0;
  border-radius: 14px;
  padding: 0 12px;
  color: #fff;
  background: #463431;
  font-weight: 900;
}

.todayStack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.todayStack .stackAction {
  gap: 12px;
  min-height: 78px;
  width: 100%;
  border: 0;
  border-radius: 20px;
  padding: 12px;
  color: #2b2523;
  background: #f5eee5;
  text-align: left;
}

.todayStack .stackAction p,
.timelineItem p {
  margin-bottom: 0;
}

.reminderPanel {
  display: grid;
  gap: 8px;
}

.reminderItem {
  width: 100%;
  min-height: 46px;
  gap: 9px;
  border: 1px solid #e4d9ce;
  border-radius: 16px;
  padding: 0 12px;
  color: #51433e;
  background: #fbf7f0;
  font-weight: 850;
  text-align: left;
}

.reminderItem span {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid #b9aaa1;
  border-radius: 50%;
}

.reminderItem.active {
  border-color: #6aa898;
  background: #e3f0ec;
}

.reminderItem.active span {
  border-color: #6aa898;
  background: #6aa898;
  box-shadow: inset 0 0 0 3px #e3f0ec;
}

.trackCycleSummary {
  display: block;
}

.cycleSummary {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 20px 18px;
}

.cycleSummary > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
  gap: 6px;
}

.orbitalDay {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: conic-gradient(
    var(--cycle-ovulation) 0 28%,
    var(--cycle-fertile) 28% 58%,
    var(--cycle-purple) 58% 76%,
    var(--cycle-period) 76% 100%
  );
  box-shadow: inset 0 0 0 9px #fffdf8;
  font-size: 34px;
  font-weight: 950;
  flex-shrink: 0;
  line-height: 1;
}

.monthCalendar .monthCalendarLayout,
.monthCalendar .yearGrid {
  width: 100%;
}

.mobileCycleGrid {
  display: block;
  margin-bottom: 8px;
  width: 100%;
}

.mobileCycleGrid .monthCalendarLayout {
  width: 100%;
}

.cycleEmptyState {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px dashed rgba(122, 63, 106, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--luma-text);
  text-align: left;
}

.cycleEmptyState h3 {
  margin: 0;
  color: var(--luma-text);
  font-size: 18px;
}

.cycleEmptyState p:not(.label) {
  margin: 0;
  color: var(--luma-text-muted);
  line-height: 1.45;
  font-size: 13px;
}

.mobileCycleDayCell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.mobileCycleDayCell.selected .cycleDayWhisper {
  color: #5c4038;
  font-weight: 750;
}

.cycleDayWhisper {
  width: 100%;
  max-width: 100%;
  padding: 0 1px;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  color: #9a8478;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.trackHero {
  margin-bottom: 16px;
  padding: 4px 2px 0;
}

.trackHeroHeader {
  margin-bottom: 14px;
}

.trackHeroHeadline {
  margin: 6px 0 10px;
  font-size: clamp(1.45rem, 5vw, 1.75rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #2b2523;
}

.trackPhasePill {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: #f3ebe3;
  color: #8f5e58;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.trackPrimaryBtn {
  margin-bottom: 8px;
  background: #1b6b5f;
}

.trackHeroHint {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--luma-text-secondary);
}

.trackHeroScienceNote {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(144, 94, 88, 0.18);
  color: var(--luma-on-light-surface-muted);
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.45;
}

.trackHeroReadBlock {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(144, 94, 88, 0.18);
}

.trackHeroSummary {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--luma-on-light-surface-heading);
}

.trackHeroReadMore {
  margin-top: 4px;
}

.trackHeroReadMore summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--luma-link);
  list-style: none;
}

.trackHeroReadMore summary::-webkit-details-marker {
  display: none;
}

.trackHeroReadMore summary::after {
  content: " ▾";
  font-size: 11px;
}

.trackHeroReadMore[open] summary::after {
  content: " ▴";
}

.trackHeroReadBody {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--luma-on-light-surface-muted);
}

.trackHeroHomeBtn {
  margin: 2px 0 12px;
}

.trackSectionTitle {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
}

.cycleWheelSection {
  margin-bottom: 16px;
}

.cycleWheelHeader {
  margin-bottom: 10px;
}

.cycleWheelHeader .trackSectionTitle {
  margin: 0;
}

.trackCalendarHeader,
.trackLogHeader {
  margin-top: 8px;
  margin-bottom: 12px;
}

.cycleWheelOpen > summary {
  font-size: 0.95rem;
  color: #8a756c;
}

.cycleSummary h2,
#mobileCycleStatus,
#todayHeadline {
  margin: 0;
  font-size: clamp(1.2rem, 4.5vw, 1.45rem);
  line-height: 1.28;
  font-weight: 850;
}

#mobileCyclePhase,
.homePhaseLine,
#todayPhaseLine {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: #8f5e58;
}

.homeDaySummary {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  padding: 14px 14px 20px;
  flex-shrink: 0;
  min-height: min-content;
  border: 1px solid var(--luma-ai-border);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 90% 70% at 12% 0%, rgba(168, 130, 154, 0.14), transparent 55%),
    linear-gradient(165deg, rgba(255, 253, 249, 0.98) 0%, rgba(248, 240, 246, 0.94) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 24px 56px rgba(58, 40, 48, 0.12);
  backdrop-filter: blur(20px) saturate(1.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.06);
}

.homeDaySummary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--home-phase-accent, #e8a8bc);
  border-radius: 28px 0 0 28px;
}

.homeAtmospherePreview {
  position: relative;
  z-index: 0;
  display: block;
  margin: 0 0 16px;
  min-height: clamp(150px, 36vw, 220px);
  height: clamp(150px, 36vw, 220px);
  border-radius: 18px;
  overflow: hidden;
  background: #f5eee6;
  flex-shrink: 0;
}

.homeAtmospherePreview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.04), rgba(255, 251, 246, 0.2));
  pointer-events: none;
}

.homeHeroPhasePill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 8px 24px rgba(58, 40, 48, 0.1);
  color: #7a4f49;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.homeDaySummary h2,
#todayHeadline {
  position: relative;
  z-index: 1;
  margin: 10px 0 10px;
  padding: 0;
  font-size: clamp(1.55rem, 6vw, 2rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--luma-text-heading);
}

body.homeTypeHero:not(.pregnancyFocusMode) #todayHeadline {
  margin-top: 18px;
}

.homeDaySummary .homePhaseLine,
.homeDaySummary #todayPhaseLine,
.homeDaySummary #homeDayTruth,
.homeDayTruth {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  color: var(--luma-text-muted);
}

.homeAtmospherePreview img {
  width: 100%;
  height: 100%;
  min-height: clamp(150px, 36vw, 220px);
  display: block;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, #faf5f8, #e9dce6);
}

.homeTypeAtm,
.homeTypeBrand {
  display: none;
}

body.homeTypeHero:not(.pregnancyFocusMode) .homeAtmospherePreview img {
  display: none !important;
}

body.homeTypeHero:not(.pregnancyFocusMode) .homeAtmospherePreview::after {
  display: none;
}

body.homeTypeHero:not(.pregnancyFocusMode) .homeTypeAtm {
  display: block;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 168, 188, 0.35), transparent 55%),
    linear-gradient(180deg, #fff0f4, #f8e4ec);
}

body.homeTypeHero:not(.pregnancyFocusMode) .homeTypeBrand {
  display: block;
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--luma-font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--luma-accent-text);
}

body.pregnancyFocusMode .homeTypeAtm,
body.pregnancyFocusMode .homeTypeBrand {
  display: none !important;
}

.infoPill--readonly {
  cursor: default;
  user-select: none;
}

.homeHeroPhaseIcon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
}

.homeHeroPhaseIcon svg {
  display: block;
}

.homeDaySummary[data-phase="period"] { --home-phase-accent: var(--cycle-period-active); --home-phase-glow: rgba(212, 162, 154, 0.35); }
.homeDaySummary[data-phase="fertile"] { --home-phase-accent: var(--cycle-fertile); --home-phase-glow: rgba(143, 168, 130, 0.35); }
.homeDaySummary[data-phase="ovulation"] { --home-phase-accent: var(--cycle-ovulation); --home-phase-glow: rgba(201, 136, 90, 0.35); }
.homeDaySummary[data-phase="tender"] { --home-phase-accent: var(--cycle-preperiod); --home-phase-glow: rgba(220, 196, 168, 0.35); }
.homeDaySummary[data-phase="steady"] { --home-phase-accent: #e8a8bc; --home-phase-glow: rgba(212, 160, 181, 0.28); }

.homeDaySummary[data-phase]::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, var(--home-phase-glow, rgba(168, 130, 154, 0.2)), transparent 68%);
  filter: blur(8px);
  z-index: 0;
}

.homeHeroPhaseText {
  min-width: 0;
}

.homeMobileHeader {
  margin-bottom: 14px;
  align-items: center;
}

.homeMobileHeader .todayTrackingModeChip {
  margin-top: 0;
}

.cycleWeatherCard {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 250, 244, 0.96), rgba(235, 246, 242, 0.88));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 16px 40px rgba(58, 40, 48, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cycleWeatherCard h2 {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.1;
  color: #463431;
}

.cycleWeatherCard p:last-child {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 700;
  color: #78675f;
}

.cycleWeatherBadge {
  display: grid;
  place-items: center;
  min-width: 76px;
  min-height: 76px;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(145deg, #e8a8bc 0%, #d888a4 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  line-height: 1.15;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 14px 28px rgba(122, 63, 106, 0.28);
}

.homePreviewBanner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8f1f6 0%, #f0e8de 100%);
  border: 1px solid #ead4df;
}

.homePreviewBannerCopy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #5c3f58;
}

.homePreviewBannerCopy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

.homePreviewBannerActions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.homePreviewBannerBtn {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 8px 14px;
  background: #d888a4;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.homePreviewBannerDismiss {
  border: 0;
  background: none;
  color: #9a8c84;
  font-size: 20px;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.homeQuickAddReminder {
  margin-top: 12px;
  margin-left: -56px;
  padding: 14px;
  border: 1px solid var(--luma-border);
  border-radius: 18px;
  background: #fffaf4;
}

.homeQuickAddReminderRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 64px;
  gap: 10px;
  align-items: center;
}

.homeQuickAddReminderRow input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #e8ddd2;
  background: #fffdf9;
  color: #3f3431;
  font-size: 14px;
}

.homeQuickAddReminderRow input[type="time"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #e8ddd2;
  background: #fffdf9;
  color: #3f3431;
  font-size: 14px;
}

.homeQuickAddBtn {
  width: 64px;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-radius: 999px;
  background: #6aa898;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.homeQuickAddBtn:active {
  transform: scale(0.98);
}

@media (max-width: 430px) {
  .homeQuickAddReminder {
    margin-left: 0;
  }

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

  .homeQuickAddReminderRow input[type="text"] {
    grid-column: 1 / -1;
  }

  .homeQuickAddBtn {
    width: 64px;
    justify-self: end;
  }
}

.cycleDayBrowseMode #todayScreen > .homeDaySummary h2,
.cycleDayBrowseMode #todayScreen > .homeDaySummary #todayHeadline {
  margin-top: 16px;
  font-size: clamp(1.2rem, 4.5vw, 1.45rem);
  line-height: 1.28;
}

.calendarCount {
  margin: 0 0 14px;
  border-radius: 999px;
  padding: 9px 11px;
  color: #185c57;
  background: #e3f0ec;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.mobileSettings {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.mobileSettings h2,
.timeline h2 {
  margin-bottom: 2px;
}

.mobileSettings label {
  display: grid;
  gap: 6px;
  color: var(--luma-text-muted);
  font-size: 12px;
  font-weight: 850;
}

.mobileSettings input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #e5d9ce;
  border-radius: 14px;
  padding: 0 11px;
  color: #332c2a;
  background: #fffaf4;
}

.stepperField {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 6px;
}

.stepperField button {
  min-height: 40px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #463431;
  font-size: 20px;
  font-weight: 950;
}

.stepperField input {
  text-align: center;
  font-weight: 900;
}

.settingPair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.mobileSettings p {
  margin: 0;
  border-radius: 14px;
  padding: 10px;
  color: #185c57;
  background: #e3f0ec;
  font-size: 12px;
  font-weight: 800;
}

.settingsApply {
  margin-top: 0;
}

.settingsResetHistory {
  width: 100%;
  margin-top: 8px;
}

.settingsFieldBadge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.settingsFieldBadge[data-mode="history"] {
  color: #6aa898;
  background: rgba(31, 111, 105, 0.12);
}

.settingsFieldBadge[data-mode="manual"] {
  color: #843f6f;
  background: rgba(132, 64, 110, 0.12);
}

.mobileSettings label:has([data-source="history"]) input,
.mobileSettings label:has([data-source="history"]) .stepperField {
  border-color: rgba(31, 111, 105, 0.28);
}

.mobileSettings label:has([data-source="manual"]) input,
.mobileSettings label:has([data-source="manual"]) .stepperField {
  border-color: rgba(132, 64, 110, 0.28);
}

.calendarQuickGuide {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #e8ddd1;
  border-radius: 16px;
  background: #fffdf9;
}

.calendarQuickGuideHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.calendarQuickGuideDismiss {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f3eee6;
  color: #6f5f58;
  font-size: 1.25rem;
  line-height: 1;
}

.calendarQuickSteps {
  margin: 0;
  padding-left: 1.15rem;
  color: #5c4f49;
  font-size: 0.92rem;
  line-height: 1.5;
}

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

.calendarPrimaryActions {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.calendarPrimaryBtn {
  margin: 0;
}

.calendarSecondaryBtn {
  margin: 0;
  background: rgba(255, 255, 255, 0.82);
  color: var(--luma-on-light-surface-heading);
  border: 1px solid var(--luma-ai-border);
  font-weight: 800;
}

.calendarNoPeriodBtn {
  margin: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(248, 239, 245, 0.92));
  color: #74365f;
  border: 1px solid rgba(132, 64, 110, 0.24);
  font-weight: 900;
}

.calendarNoPeriodBtn.active {
  background: linear-gradient(135deg, #f0b8cc, #e8a8bc);
  color: #4a3040;
  box-shadow: 0 14px 28px rgba(220, 140, 170, 0.24);
}

.calendarNoPeriodBtn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  box-shadow: none;
}

.calendarHintProminent {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--luma-ai-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--luma-on-light-surface-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.yearControlsCompact {
  margin-top: 12px;
}

.calendarDetailsSection {
  margin-bottom: 12px;
  padding: 0 2px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 18px;
  background: var(--luma-glass-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--luma-glass-surface-shadow);
}

.calendarDetailsSection > summary {
  padding: 14px 16px;
  font-weight: 850;
  color: var(--luma-on-glass-heading);
  cursor: pointer;
  list-style: none;
}

.calendarDetailsSection > summary::-webkit-details-marker {
  display: none;
}

.calendarDetailsSection > summary::after {
  content: '+';
  float: right;
  color: var(--luma-on-glass-muted);
}

.calendarDetailsSection[open] > summary::after {
  content: '−';
}

.calendarDetailsSection > :not(summary) {
  padding: 0 16px 16px;
}

.calendarDetailsHelp {
  margin-top: 8px;
}

.calendarDetailsHelp > summary {
  font-size: 0.9rem;
  color: #7a655d;
  cursor: pointer;
}

.settingsIntro {
  margin: 0 0 12px;
  color: var(--luma-on-glass-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cycleSubtitle {
  margin: 4px 0 0;
  color: var(--luma-on-glass-muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.dayEditorPrimary {
  background: #a8494f !important;
  color: #fff !important;
  border-color: #a8494f !important;
  font-weight: 850;
}

.cycleTools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.cycleTools button {
  min-height: 44px;
  border: 1px solid #e4d9ce;
  border-radius: 15px;
  color: #51433e;
  background: #fbf7f0;
  font-weight: 850;
}

.cycleTools button.active {
  border-color: #a8494f;
  color: #fff;
  background: #a8494f;
}

.irregularCyclePanel {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--luma-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf4 0%, #fbf7f0 100%);
}

.cycleModePanel {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid rgba(90, 60, 80, 0.14);
  border-radius: 22px;
  background: var(--luma-glass-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--luma-glass-surface-shadow);
}

.cycleModePanel.irregularActive {
  border-color: rgba(168, 73, 79, 0.28);
  background: linear-gradient(155deg, rgba(255, 251, 250, 0.96), rgba(255, 245, 242, 0.9));
  box-shadow: 0 12px 32px rgba(168, 73, 79, 0.1);
}

.cycleModePanel.irregularHighlight,
.calendarModeNotice.irregularHighlight {
  animation: irregularPulse 1.2s ease 2;
}

.cycleModePanelHeader {
  margin-bottom: 12px;
}

.cycleModePanel .label {
  margin-bottom: 6px;
}

.cycleModeSummary,
.cycleModeHint {
  margin: 0;
  color: var(--luma-on-glass-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cycleModeHint {
  margin-top: 10px;
}

.onboardingCycleModePanel {
  margin: 0 0 14px;
}

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

.cycleModeOption {
  min-height: 78px;
  padding: 12px 10px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--luma-on-glass-heading);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.cycleModeOption strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.cycleModeOption span {
  display: block;
  color: var(--luma-text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.cycleModeOption[data-cycle-mode="regular"].active {
  border-color: #6aa898;
  background: linear-gradient(180deg, #edf8f6 0%, #fff 100%);
  box-shadow: inset 0 0 0 1px rgba(31, 111, 105, 0.12);
}

.cycleModeOption[data-cycle-mode="irregular"].active {
  border-color: #a8494f;
  background: linear-gradient(180deg, #fff0ee 0%, #fff 100%);
  box-shadow: inset 0 0 0 1px rgba(168, 73, 79, 0.14);
}

.cycleModeOption:active {
  transform: scale(0.98);
}

.cycleTrackingModeBadge,
.todayTrackingModeChip {
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cycleTrackingModeBadge {
  margin-top: 4px;
}

.cycleTrackingModeBadge[data-mode="regular"],
.todayTrackingModeChip[data-mode="regular"] {
  color: #6aa898;
  background: rgba(31, 111, 105, 0.12);
}

.cycleTrackingModeBadge[data-mode="irregular"],
.todayTrackingModeChip[data-mode="irregular"] {
  color: #9d454b;
  background: rgba(168, 73, 79, 0.14);
}

.todayTrackingModeChip {
  margin-top: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  font-family: inherit;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.todayTrackingModeChip:active {
  transform: scale(0.98);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]):not([data-theme="hearth"]) body.lumaIrregularTracking .phoneShell {
  background: linear-gradient(180deg, #faf5f7 0%, #f5f0f4 42%);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]):not([data-theme="hearth"]) body.lumaRegularTracking .phoneShell {
  background: linear-gradient(180deg, #f5f2f6 0%, #f5f0f4 42%);
}

.irregularCyclePanel.irregularActive {
  border-color: #c9787d;
  box-shadow: 0 0 0 1px rgba(168, 73, 79, 0.08);
}

.irregularCyclePanel.irregularHighlight {
  animation: irregularPulse 1.2s ease 2;
}

@keyframes irregularPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 73, 79, 0); }
  50% { box-shadow: 0 0 0 4px rgba(168, 73, 79, 0.18); }
}

.irregularCycleSummary,
.irregularHelp {
  margin: 0 0 12px;
  color: #6f5f58;
  font-size: 0.92rem;
  line-height: 1.45;
}

.irregularToggleRow,
.onboardingIrregularRow {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--luma-border);
}

.irregularAutoSuggest {
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  background: #fff3f0;
  border: 1px solid #efc9c4;
}

.irregularAutoSuggest p {
  margin: 0 0 10px;
  color: #5c4038;
  font-size: 0.92rem;
  line-height: 1.45;
}

.irregularLearnBtn {
  margin-top: 4px;
}

.settingsToggleRow {
  cursor: pointer;
}

.settingsToggleRow input[type="checkbox"] {
  margin-left: auto;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

body.pregnancyFocusMode #profileTrackingModeRow,
body.pregnancyFocusMode .cycleOnlyPreferenceRow {
  display: none !important;
}

.mobileCycleDay {
  aspect-ratio: 1;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--cycle-neutral-text);
  background: var(--cycle-neutral);
  font-weight: 850;
  display: grid;
  place-items: center;
  line-height: 1;
}

.mobileCycleDay b {
  display: block;
  font-size: 21px;
}

.mobileCycleDay small {
  display: block;
  margin-top: -2px;
  font-size: 9px;
  font-weight: 950;
  opacity: .62;
}

.mobileCycleDay:active,
.feelingGrid button:active,
.signalGrid button:active,
.promptRow button:active,
.cycleTools button:active,
.reminderItem:active,
.wideButton:active,
.googleButton:active {
  transform: scale(.94);
}

.wideButton.isLoading,
.googleButton.isLoading {
  opacity: 0.72;
  cursor: wait;
}

.wideButton:disabled,
.googleButton:disabled {
  opacity: 0.72;
  cursor: wait;
}

.mobileCycleDay.period { background: var(--cycle-period); color: #6a4050; }
.mobileCycleDay.active { background: var(--cycle-period-active); color: #5a3040; box-shadow: inset 0 0 0 2px rgba(160, 80, 110, 0.35); }
.mobileCycleDay.fertile { background: var(--cycle-fertile); color: var(--cycle-fertile-text); }
.mobileCycleDay.ovulation { background: var(--cycle-ovulation); color: #6a4e40; }
.mobileCycleDay.tender { background: var(--cycle-preperiod); color: var(--cycle-preperiod-text); }
.mobileCycleDay.steady { background: var(--cycle-neutral); color: var(--cycle-neutral-text); }
.mobileCycleDay.predicted { background: var(--cycle-purple); color: var(--cycle-purple-text); border: 1.5px dashed var(--cycle-predicted-border); }

.mobileCycleDay.selected {
  border-color: #2d2926;
  box-shadow: inset 0 0 0 3px #fff;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timelineItem {
  gap: 10px;
}

.timelineItem i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #a8494f;
}

.historyBars {
  height: 88px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  margin: 0;
  overflow: hidden;
}

.historyChartWrap {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--luma-ai-border);
  background: rgba(255, 255, 255, 0.55);
}

.historyChartLabel,
.noPeriodHistoryLabel {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--luma-on-glass-muted);
}

.historyBars span {
  min-height: 28px;
  max-height: 80px;
  height: var(--bar-height, 40px);
  border-radius: 12px 12px 5px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 2px;
  padding-bottom: 6px;
  color: #fff;
  background: linear-gradient(180deg, #d888a4, #6aa898);
  font-size: 11px;
  font-weight: 950;
  overflow: hidden;
}

.historyBars span small {
  font-size: 8px;
  font-weight: 700;
  opacity: 0.88;
}

.noPeriodHistory {
  margin-top: 12px;
}

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

.noPeriodHistoryChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(132, 64, 110, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(132, 64, 110, 0.08),
      rgba(132, 64, 110, 0.08) 4px,
      rgba(255, 255, 255, 0.72) 4px,
      rgba(255, 255, 255, 0.72) 8px
    );
  color: #74365f;
  font-size: 12px;
  font-weight: 850;
}

.noPeriodHistoryChip button {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, #74365f 12%, transparent);
  color: #74365f;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.noPeriodMonthHint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--luma-on-glass-muted);
}

.noPeriodMonthHint strong {
  color: var(--luma-on-glass-heading);
}

.yearCalendarPanel {
  margin-top: 14px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 22px;
  padding: 14px;
  background: var(--luma-glass-surface);
  color: var(--luma-on-glass);
  box-shadow: var(--luma-glass-surface-shadow);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
}

.yearControls,
.calendarLegend,
.importedCycles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yearControls {
  margin-bottom: 12px;
}

.yearControls button,
.importedCycles .historyChip {
  min-height: 36px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--luma-on-glass);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  font-size: 12px;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.yearControls button.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #e8a8bc 0%, #d888a4 100%);
}

.importPanel {
  border-radius: 18px;
  padding: 12px;
  background: #f5eee5;
}

.importPanel h3 {
  margin-bottom: 8px;
}

.importPanel p {
  margin: 10px 0 0;
  font-size: 13px;
}

.calendarLegend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
  color: var(--luma-on-glass-muted);
  font-size: 11px;
  font-weight: 800;
}

.calendarLegend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--luma-ai-border);
  background: rgba(255, 255, 255, 0.62);
}

.calendarLegend small {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.85;
}

.calendarPredictionNote {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--luma-ai-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--luma-on-glass);
  font-size: 12px;
  line-height: 1.45;
}

.calendarPredictionNote[data-mode="irregular"] {
  border-color: #d9a0ac;
  background: #fff2f5;
  color: #6b334d;
}

.calendarPredictionNote[data-mode="no-period"] {
  border-color: rgba(132, 64, 110, 0.34);
  background: linear-gradient(135deg, #fff7fb, #f5e7f0);
  color: #673052;
}

.calendarModeNotice {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 122, 115, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(234, 245, 241, 0.92), rgba(255, 255, 255, 0.78));
  color: #5a9a88;
}

.calendarModeNotice strong {
  font-size: 13px;
}

.calendarModeNotice span {
  color: #59736d;
  font-size: 12px;
  line-height: 1.35;
}

.calendarModeQuickSwitch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
  padding: 5px;
  border: 1px solid rgba(90, 60, 80, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

.calendarModeQuickSwitch button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--luma-on-glass-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.calendarModeQuickSwitch button:active {
  transform: scale(0.98);
}

.calendarModeQuickSwitch button.active[data-cycle-mode="regular"] {
  background: linear-gradient(135deg, #e5f4f1, #ffffff);
  color: #185f59;
  box-shadow: 0 8px 18px rgba(31, 111, 105, 0.12);
}

.calendarModeQuickSwitch button.active[data-cycle-mode="irregular"] {
  background: linear-gradient(135deg, #f0b8cc, #e098b0);
  color: #4a3040;
  box-shadow: 0 10px 22px rgba(132, 64, 110, 0.18);
}

.calendarModeNotice[data-mode="irregular"] {
  border-color: #d9a0ac;
  background: #fff2f5;
  color: #a85878;
}

.calendarModeNotice[data-mode="irregular"] span {
  color: #7f506f;
}

.calendarLegend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.neutralMark { background: var(--cycle-neutral); box-shadow: inset 0 0 0 1px #d8cfc4; }
.periodMark { background: var(--cycle-period); }
.activeMark { background: var(--cycle-period-active); }
.predictedMark {
  background: var(--cycle-purple);
  box-shadow: inset 0 0 0 1.5px var(--cycle-predicted-border);
  background-clip: padding-box;
}
.noPeriodMark {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(132, 64, 110, 0.55),
      rgba(132, 64, 110, 0.55) 3px,
      rgba(255, 255, 255, 0.92) 3px,
      rgba(255, 255, 255, 0.92) 6px
    );
  border: 1px solid rgba(132, 64, 110, 0.35);
}

.monthCardNoPeriod {
  outline: 2px solid rgba(132, 64, 110, 0.28);
  outline-offset: 2px;
}

.monthCardNoPeriod .monthTitle span {
  color: #843f6f;
  font-weight: 800;
}

.monthCalendarDay.noPeriodMonth.predicted,
.monthCalendarDay.noPeriodMonth.fertile,
.monthCalendarDay.noPeriodMonth.steady,
.monthDay.noPeriodMonth.predicted,
.monthDay.noPeriodMonth.fertile,
.monthDay.noPeriodMonth.steady {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(248, 239, 245, 0.88)),
    repeating-linear-gradient(
      135deg,
      rgba(132, 64, 110, 0.14),
      rgba(132, 64, 110, 0.14) 6px,
      transparent 6px,
      transparent 12px
    ) !important;
  color: #74365f !important;
  border-color: rgba(132, 64, 110, 0.28) !important;
}

.monthCalendarDay.noPeriodMonth .cycleLabel {
  opacity: 0.45;
}
.fertileMark { background: var(--cycle-fertile); }
.ovulationMark { background: var(--cycle-ovulation); }
.tenderMark { background: var(--cycle-preperiod); }

.cycleGridLegend {
  margin: 0 0 10px;
}

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

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

.calendarViewToggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 10px 0;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--luma-ai-border);
  background: rgba(255, 255, 255, 0.55);
}

.calendarViewToggle button {
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  color: var(--luma-on-glass-muted);
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}

.calendarViewToggle button.active {
  color: #fff;
  background: linear-gradient(135deg, #e8a8bc 0%, #d888a4 100%);
}

.monthCardCompact {
  padding: 10px;
}

.monthCardCompact .monthTitle strong {
  font-size: 13px;
}

.monthCardCompact .monthTitle span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
}

.monthCardCompact .weekdayRow {
  font-size: 8px;
  gap: 3px;
}

.monthCardCompact .monthDay,
.monthCardCompact .emptyDay {
  border-radius: 6px;
}

.monthCardCompact .monthDay {
  font-size: 9px;
}

.yearTitle {
  margin: 10px 0 0;
  color: var(--luma-on-glass-link);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.monthCard {
  border: 1px solid var(--luma-ai-border);
  border-radius: 20px;
  padding: 12px;
  background: var(--luma-glass-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(58, 40, 48, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.monthCardFocused {
  border-color: #d07090;
  box-shadow:
    0 0 0 1px rgba(107, 53, 88, 0.18),
    0 12px 28px rgba(107, 53, 88, 0.12);
}

.monthTitle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.monthTitleButton {
  width: 100%;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.monthTitle strong {
  font-size: 17px;
  color: var(--luma-on-glass-heading);
}

.monthTitle span {
  color: var(--luma-on-glass-muted);
  font-size: 11px;
  font-weight: 850;
}

.weekdayRow,
.monthDays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.weekdayRow {
  margin-bottom: 6px;
  color: var(--luma-on-glass-muted);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.monthDay,
.emptyDay {
  aspect-ratio: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
}

.monthDay {
  position: relative;
  color: var(--luma-on-glass-heading);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(90, 60, 80, 0.08);
  font-size: 11px;
  font-weight: 900;
  transition: transform 0.15s ease;
}

.monthDay:active {
  transform: scale(0.94);
}

.monthDay.period {
  color: #6a4050;
  background: var(--cycle-period);
}

.monthDay.active {
  color: #5a3040;
  background: var(--cycle-period-active);
  box-shadow: inset 0 0 0 2px rgba(160, 80, 110, 0.35);
}

.monthDay.predicted {
  color: var(--cycle-purple-text);
  background: var(--cycle-purple);
  outline: 2px dashed var(--cycle-predicted-border);
}

.monthDay.trust-lowConfidence,
.monthCalendarDay.trust-lowConfidence {
  outline: 2px dashed rgba(125, 61, 111, .62);
  outline-offset: -3px;
}

.monthDay.trust-estimated,
.monthDay.trust-wideEstimate,
.monthCalendarDay.trust-estimated,
.monthCalendarDay.trust-wideEstimate {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .58);
}

.monthDay.trust-confirmed,
.monthDay.trust-confirmedSignal,
.monthCalendarDay.trust-confirmed,
.monthCalendarDay.trust-confirmedSignal {
  box-shadow: inset 0 0 0 3px rgba(40, 119, 111, .38);
}

.monthDay.trust-confirmedSignal::after,
.monthCalendarDay.trust-confirmedSignal::after {
  content: "✓";
  position: absolute;
  right: 6px;
  top: 5px;
  font-size: 10px;
  line-height: 1;
}

.monthDay.fertile {
  color: var(--cycle-fertile-text);
  background: var(--cycle-fertile);
}

.monthDay.ovulation {
  color: #fff;
  background: var(--cycle-ovulation);
}

.monthDay.tender {
  color: var(--cycle-preperiod-text);
  background: var(--cycle-preperiod);
}

.monthDay.steady {
  color: var(--cycle-neutral-text);
  background: var(--cycle-neutral);
}

.monthDay.noPeriodMonth {
  color: #74365f;
  background: repeating-linear-gradient(
    135deg,
    rgba(132, 64, 110, 0.1),
    rgba(132, 64, 110, 0.1) 6px,
    rgba(255, 255, 255, 0.72) 6px,
    rgba(255, 255, 255, 0.72) 12px
  );
  border-color: rgba(132, 64, 110, 0.22);
}

.monthDay.today {
  box-shadow: inset 0 0 0 2px #2d2926;
}

.logCheckInDetails .logComposer {
  margin-top: 0;
  padding-top: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.logCheckInCount {
  min-width: 18px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eadfd3;
  color: #5c4a42;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.logCheckInCount:empty {
  display: none;
}

.logCheckInDetails > summary .logCheckInCount {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

.logCheckInDetails > summary .logCheckInCount:empty {
  display: none;
}

.signalGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.signalGrid--essential {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.signalGrid--more {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.signalEssentialLead {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a85878;
}

.signalMoreDetails {
  margin-bottom: 8px;
}

.signalMoreDetails > summary {
  min-height: 44px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--luma-text-secondary);
  cursor: pointer;
}

.signalGrid button,
.signalGrid--essential button,
.signalGrid--more button {
  min-height: 40px;
  border: 1px solid #e4d9ce;
  border-radius: 14px;
  color: #51433e;
  background: #fbf7f0;
  font-weight: 850;
  font-size: 12px;
  touch-action: manipulation;
}

.signalGrid--more button {
  min-height: 36px;
  font-size: 11px;
  padding: 6px 8px;
}

.signalEssentialBtn {
  border-color: #d9c4d4;
  background: linear-gradient(180deg, #faf4f8 0%, #f5eef3 100%);
  box-shadow: inset 0 0 0 1px rgba(122, 63, 106, 0.08);
  font-size: 13px;
  min-height: 44px;
}

.signalGrid button.active,
.signalEssentialBtn.active {
  border-color: #a85878;
  color: #fff;
  background: #d888a4;
  box-shadow: none;
}

.rangeField,
.noteField {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--luma-text-muted);
  font-size: 12px;
  font-weight: 850;
}

.rangeField {
  grid-template-columns: 1fr 120px 44px;
  align-items: center;
}

.rangeField input {
  accent-color: #6aa898;
}

.rangeField b {
  color: #352d2a;
  text-align: right;
}

.noteField textarea {
  min-height: 92px;
  resize: vertical;
  border: 1px solid #e5d9ce;
  border-radius: 16px;
  padding: 12px;
  color: #332c2a;
  background: #fffaf4;
  font: inherit;
}

.summaryCard p {
  margin-bottom: 0;
}

.miniButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  text-align: center;
  background: #a8494f;
  font-size: 12px;
  font-weight: 900;
}

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

.bodyLogPurpose,
.bodyLogContext {
  border: 1px solid var(--luma-border);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fffaf4;
  margin-bottom: 14px;
}

.bodyLogPurposeText {
  margin: 6px 0 0;
  color: #51433e;
  font-size: 14px;
  line-height: 1.45;
}

.bodyLogContext {
  background: linear-gradient(135deg, #fff7ef 0%, #f8efe4 100%);
}

.bodyLogContextLabel {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  color: #352d2a;
}

.bodyLogContextPhase {
  margin: 4px 0 8px;
  color: #6b5a54;
  font-size: 13px;
}

.bodyLogPatternHint {
  margin: 0;
  color: #51433e;
  font-size: 13px;
  line-height: 1.4;
}

.lumaLearningPanel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.lumaLearningCore {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(122, 63, 106, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(250, 246, 249, 0.95), rgba(255, 255, 255, 0.92));
}

.lumaLearningStage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 6px 12px;
  min-width: 0;
  width: 100%;
}

.lumaLearningStage span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  max-width: 100%;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(122, 63, 106, 0.1);
  color: #a85878;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lumaLearningStage strong {
  min-width: 0;
  max-width: 100%;
  color: #3f3339;
  font-size: 14px;
  font-weight: 750;
  text-align: right;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lumaLearningProgress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(122, 63, 106, 0.1);
}

.lumaLearningProgress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e8a8bc, #d888a4);
  transition: width .25s ease;
}

.lumaLearningEvidence {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lumaLearningEvidence li {
  position: relative;
  padding-left: 18px;
  color: #51433e;
  font-size: 12px;
  line-height: 1.35;
}

.lumaLearningEvidence li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8a8bc;
}

.lumaLearningNext {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(168, 130, 154, 0.1);
  color: #4d3f46;
  font-size: 12px;
  line-height: 1.4;
}

.lumaLearningWhere {
  border-top: 1px solid rgba(122, 63, 106, 0.12);
  padding-top: 10px;
  margin: 0;
}

.lumaLearningWhere summary {
  cursor: pointer;
  color: #a85878;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.lumaLearningWhere summary::-webkit-details-marker {
  display: none;
}

.lumaLearningWhere summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 6px;
  transition: transform .15s ease;
}

.lumaLearningWhere[open] summary::before {
  transform: rotate(90deg);
}

.lumaLearningWhere ul {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  color: #51433e;
  font-size: 12px;
  line-height: 1.45;
}

.bodyLogInsightsCard > h2 {
  margin: 0 0 6px;
}

.bodyLogInsightsCard > #logSummary {
  margin: 0;
  color: #51433e;
  font-size: 14px;
  line-height: 1.45;
}

#unifiedTrackLogMount .bodyLogInsightsCard {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
}

.logDatePicker {
  margin-bottom: 14px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.logDatePickerHead {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.logDatePickerNav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.logDatePickerMonth {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.logDatePickerMonth .label {
  margin: 0;
}

.logDatePickerMonth strong,
#logDateMonthLabel {
  font-family: var(--luma-font-sans);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--luma-text-heading);
}

.logDatePickerHint {
  margin: 0 0 10px;
  color: var(--luma-text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.logDatePickerNavBtn {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #e4d9ce;
  border-radius: 12px;
  background: #fbf7f0;
  color: #51433e;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.logDatePickerCalendarHost .monthCalendarLayout {
  margin: 0;
}

.logDatePickerCalendarHost .monthCalendarHeader {
  margin-bottom: 4px;
}

.logDatePickerCalendarHost .monthCalendarGrid {
  gap: 4px;
}

.logComposerIntro {
  margin: 0 0 12px;
  color: #6b5a54;
  font-size: 13px;
  line-height: 1.4;
}

.bodyLogSaveToast {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e8f3ea;
  color: #2f5a3a;
  font-size: 13px;
  font-weight: 700;
}

.logLumaNote {
  margin: 0 0 6px;
  color: #6b4f6d;
  font-size: 13px;
  font-style: italic;
  line-height: 1.35;
}

.logHistoryIntro {
  margin: 0 0 10px;
  color: #6b5a54;
  font-size: 13px;
  line-height: 1.35;
}

.logHistoryDropdown {
  overflow: hidden;
}

.logHistoryDropdown summary {
  cursor: pointer;
  list-style: none;
}

.logHistoryDropdown summary::-webkit-details-marker {
  display: none;
}

.logHistorySummary {
  align-items: center;
  margin-bottom: 0;
}

.logHistorySummaryMeta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #7a3f6a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.logHistoryChevron {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #ead6df;
  background: #fff7fb;
  color: #7a3f6a;
  font-size: 18px;
  line-height: 1;
  transition: transform .18s ease;
}

.logHistoryDropdown[open] .logHistoryChevron {
  transform: rotate(180deg);
}

.logHistoryDropdownBody {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

#trackLogPanel .logHistoryDropdown {
  border-radius: 28px;
  border: 1px solid rgba(180, 89, 130, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 251, 0.82));
  box-shadow:
    0 14px 36px rgba(90, 55, 76, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#trackLogPanel .logHistoryDropdown summary {
  padding: 18px 20px;
}

#trackLogPanel .logHistoryDropdownBody {
  margin-top: 0;
  padding: 0 20px 20px;
}

#trackLogPanel .logHistorySummary h2 {
  font-family: var(--luma-font-display);
  font-size: clamp(1.45rem, 5.2vw, 1.85rem);
  font-weight: 600;
  color: var(--luma-on-light-surface-heading);
}

#trackLogPanel .logHistorySummary .label {
  color: #8a5873;
}

#trackLogPanel .logHistorySummaryMeta {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #7a3f6a;
}

#trackLogPanel .logHistoryDropdown:not([open]) {
  min-height: auto;
}

#trackLogPanel .logHistoryDropdown:not([open]) .logHistorySummary {
  margin-bottom: 0;
}

.logHistoryActions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.logHistoryActions .logHistoryIntro {
  margin-bottom: 0;
}

.logHistoryFilters button {
  min-height: 36px;
  border: 1px solid #e4d9ce;
  border-radius: 999px;
  color: var(--luma-on-light-surface-heading);
  background: #fbf7f0;
  font-size: 12px;
  font-weight: 900;
}

.logHistoryFilters button.active {
  border-color: #463431;
  color: #fff;
  background: #463431;
}

.logHistoryList {
  display: grid;
  gap: 10px;
}

.logHistoryItem,
.emptyLog {
  border: 1px solid var(--luma-border);
  border-radius: 16px;
  padding: 12px;
  background: #fffaf4;
}

.logHistoryItem {
  border-left: 6px solid #b9aaa1;
  width: 100%;
  display: block;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.logHistoryItem.period {
  border-left-color: #d9716c;
}

.logHistoryItem.fertile {
  border-left-color: #6aa77f;
}

.logHistoryItem.ovulation {
  border-left-color: #df8b24;
}

.logHistoryItem.tender {
  border-left-color: #9070bd;
}

.logHistoryItem div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.logHistoryItem strong,
.emptyLog strong {
  color: var(--luma-on-light-surface-heading);
}

.logHistoryItem span {
  color: var(--luma-on-light-surface-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.logHistoryItem p,
.emptyLog p {
  margin-bottom: 5px;
  font-size: 13px;
  color: var(--luma-on-light-surface-muted);
}

.logEntryDetail {
  display: none;
  border-top: 1px solid #eadfd3;
  margin-top: 10px;
  padding-top: 10px;
}

.logHistoryItem.expanded .logEntryDetail {
  display: grid;
  gap: 5px;
}

.logEntryDetail b {
  color: #352d2a;
}

.removeLogButton {
  min-height: 38px;
  margin-top: 6px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #a8494f;
  font-weight: 900;
}

.memoryStrip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.memoryStrip span {
  border-radius: 999px;
  padding: 6px 9px;
  color: #185c57;
  background: #e3f0ec;
  font-size: 11px;
  font-weight: 850;
}

.lumaChatControls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
}

.lumaSheetHeader .lumaChatControls,
.lumaSheetHeaderActions {
  display: flex;
  grid-template-columns: none;
  gap: 4px;
  margin: 0;
  align-items: center;
}

.lumaChatControls button {
  min-height: 44px;
  border: 1px solid rgba(128, 63, 115, 0.16);
  border-radius: 16px;
  background: #fffdf8;
  color: #803f73;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(75, 55, 44, 0.08);
}

.lumaSheetHeader .lumaChatControls button,
.lumaSheetHeaderActions button {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #66525f;
  font-weight: 650;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lumaChatControls button[aria-expanded="true"],
.lumaChatControls button:active {
  background: #803f73;
  color: #fff;
}

.lumaSheetHeader .lumaChatControls button[aria-expanded="true"],
.lumaSheetHeader .lumaChatControls button:active,
.lumaSheetHeaderActions button[aria-expanded="true"],
.lumaSheetHeaderActions button:active {
  background: rgba(128, 63, 115, 0.1);
  color: #803f73;
  text-decoration: none;
}

.lumaSheetBrand {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.lumaSheetContext {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--luma-text, #66525f);
}

.lumaSheetComposer {
  display: grid;
  gap: 6px;
}

.lumaPreviousChatsPanel {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid rgba(128, 63, 115, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf8, #fbf3ec);
  box-shadow: 0 14px 34px rgba(75, 55, 44, 0.12);
}

.lumaPreviousChatsPanel[hidden] {
  display: none;
}

.lumaPreviousChatsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lumaPreviousChatsHeader p {
  margin: 0 0 2px;
  color: #8b5b7f;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lumaPreviousChatsHeader strong {
  color: #3d312e;
  font-size: 1.05rem;
}

.lumaPreviousChatsHeader button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f5ece6;
  color: #803f73;
  font-size: 1.35rem;
  font-weight: 800;
}

.lumaPreviousChatsList {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.lumaPreviousChatsEmpty {
  margin: 0;
  color: #6d5b54;
  font-weight: 750;
  line-height: 1.45;
}

/* Saved conversations stay tucked away until the user opens history. */
.lumaHubHistory {
  margin: 16px 0;
  border: 1px solid var(--luma-border);
  border-radius: 20px;
  background: var(--luma-surface-card);
}

.lumaHubHistory > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 16px;
  border-radius: inherit;
  list-style: none;
  cursor: pointer;
  color: var(--luma-text-heading);
  font-size: 1rem;
  font-weight: 800;
}

.lumaHubHistory > summary::-webkit-details-marker {
  display: none;
}

.lumaHubHistory > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.lumaHubHistory[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.lumaHubHistory > summary:focus-visible {
  outline: 2px solid var(--luma-link);
  outline-offset: 3px;
}

.lumaHubHistory > summary small {
  margin-left: auto;
  color: var(--luma-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

#lumaHubHistory > .lumaHubThreads {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 12px 12px;
  max-height: min(420px, 52dvh);
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

#lumaHubHistory:not([open]) > .lumaHubThreads {
  display: none;
}

#lumaHubHistory .lumaPreviousChatItem {
  min-height: 64px;
  padding: 12px;
  border-radius: 14px;
  border-color: var(--luma-border);
  background: var(--luma-surface-card-alt);
}

#lumaHubHistory .lumaPreviousChatItem strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--luma-text-heading);
}

#lumaHubHistory .lumaPreviousChatItem small,
#lumaHubHistory .lumaPreviousChatsEmpty {
  color: var(--luma-text-muted);
}

.lumaPreviousChatItem {
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(128, 63, 115, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.lumaPreviousChatItem span {
  display: grid;
  gap: 4px;
}

.lumaPreviousChatItem strong {
  color: #3d312e;
  font-size: 0.95rem;
  line-height: 1.25;
}

.lumaPreviousChatItem small {
  color: #7c6b64;
  font-size: 0.78rem;
  font-weight: 850;
}

.chatPanel {
  min-height: calc(100vh - 170px);
  display: flex;
  flex-direction: column;
}

.mobileMessages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scroll-padding-block: 12px;
}

.lumaHistoryLoading {
  align-self: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #785a6c;
  background: rgba(255, 248, 252, 0.92);
  font-size: 12px;
}

.lumaNewMessageBtn {
  align-self: center;
  position: sticky;
  bottom: 8px;
  z-index: 2;
  margin: 8px auto;
  padding: 8px 14px;
  border: 1px solid rgba(177, 112, 151, 0.24);
  border-radius: 999px;
  color: #70445f;
  background: rgba(255, 248, 252, 0.96);
  box-shadow: 0 5px 18px rgba(92, 52, 76, 0.16);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.lumaNewMessageBtn[hidden] { display: none; }

.lumaMemoryPrivacyNote {
  margin: 0;
  color: #705e68;
  font-size: 0.82rem;
  line-height: 1.45;
}

.lumaMemoryForm {
  display: grid;
  gap: 8px;
}

.lumaMemoryForm textarea {
  width: 100%;
  min-height: 68px;
  resize: vertical;
  padding: 11px 13px;
  border: 1px solid rgba(128, 63, 115, 0.2);
  border-radius: 14px;
  color: var(--luma-text, #3d312e);
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
}

.lumaMemoryForm button,
.lumaMemoryClearBtn {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(128, 63, 115, 0.18);
  border-radius: 12px;
  color: #70445f;
  background: #fff8fc;
  font: inherit;
  font-weight: 750;
}

.lumaMemoryClearBtn { justify-self: start; color: #8a4f64; }

.lumaSavedMemory {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(128, 63, 115, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.lumaSavedMemory p { margin: 0; color: #3d312e; line-height: 1.45; }
.lumaSavedMemory button { flex: 0 0 auto; border: 0; background: transparent; color: #8a4f64; font: inherit; font-size: 0.78rem; font-weight: 800; }

.mobileMessage {
  max-width: 88%;
  border-radius: 18px;
  padding: 12px 13px;
  line-height: 1.42;
  font-size: 14px;
  white-space: pre-line;
}

.mobileMessage.luma {
  align-self: flex-start;
  color: #3d312e;
  background: #f5eee5;
}

.mobileMessage.you {
  align-self: flex-end;
  color: #fff;
  background: #d888a4;
}

.lumaChatUpgradeNote {
  margin: -4px 2px 0;
  padding: 7px 10px;
  border: 1px solid rgba(177, 112, 151, 0.13);
  border-radius: 999px;
  color: #795c72;
  background: rgba(250, 243, 248, 0.76);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.mobileMessage.lumaThinkingMessage {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 42px;
  color: #6e4767;
  background: linear-gradient(135deg, #fff5f7, #f7f0fb);
  border: 1px solid rgba(177, 112, 151, 0.16);
  box-shadow: 0 5px 18px rgba(125, 76, 111, 0.08);
  animation: lumaThinkingIn 220ms ease-out both;
}

.lumaThinkingFlower {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  background: linear-gradient(145deg, #c8799b, #9575b5);
  box-shadow: 0 3px 9px rgba(149, 117, 181, 0.25);
  animation: lumaThinkingBloom 1.8s ease-in-out infinite;
}

.lumaThinkingLabel {
  min-width: 0;
  flex: 1 1 auto;
  color: #684a63;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.005em;
}

.lumaThinkingDots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
  color: #b46f94;
}

.lumaThinkingDots > span {
  display: block;
  flex: 0 0 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: lumaThinkingPulse 1.2s ease-in-out infinite;
}

.lumaThinkingDots > span:nth-child(2) { animation-delay: 0.15s; }
.lumaThinkingDots > span:nth-child(3) { animation-delay: 0.3s; }

@keyframes lumaThinkingIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lumaThinkingBloom {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.08) rotate(8deg); }
}

@keyframes lumaThinkingPulse {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mobileMessage.lumaThinkingMessage,
  .lumaThinkingFlower,
  .lumaThinkingDots > span {
    animation: none;
  }
}

.promptRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 10px;
}

.lumaConcierge {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--luma-glass-border);
  border-radius: 26px;
  background: var(--luma-glass);
}

.lumaConcierge h3 {
  margin: 0;
  color: var(--luma-text-heading);
}

.lumaConcierge p {
  margin: 0;
  color: var(--luma-text);
}

.lumaConciergeModes {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.lumaConciergeMode {
  flex: 1 1 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--luma-glass-border);
  border-radius: 14px;
  background: var(--luma-surface-card);
  color: var(--luma-text-heading);
  text-align: center;
}

.lumaConciergeMode span {
  display: none;
}

.lumaConciergeMode strong {
  font-weight: 850;
}

.lumaConciergeMode em {
  display: none;
}

.lumaConciergeMode.active {
  border-color: transparent;
  background: color-mix(in srgb, var(--luma-accent) 72%, white);
  color: #fff;
}

.lumaConciergePanel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent);
  border-radius: 24px;
  background: color-mix(in srgb, var(--luma-accent) 7%, var(--luma-surface-card));
}

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

#lumaConciergePanelIcon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--luma-accent);
  color: #fff;
}

#lumaConciergePanelKicker {
  margin: 0 0 2px;
  color: var(--luma-text-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#lumaConciergePanelTitle {
  color: var(--luma-text-heading);
}

.lumaPromptPrimary {
  background: var(--luma-accent) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.mobileChatForm {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 8px;
}

.mobileChatForm input {
  min-height: 48px;
  width: 100%;
  border: 1px solid #e5d9ce;
  border-radius: 16px;
  padding: 0 13px;
  background: #fffaf4;
}

.mobileChatForm button {
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: #a8494f;
}

.careList {
  display: grid;
  gap: 12px;
}

.careList article {
  min-height: 136px;
}

.tabBar {
  position: relative;
  flex: 0 0 auto;
  margin: 0 12px max(10px, env(safe-area-inset-bottom));
  height: 70px;
  justify-content: space-around;
  border: 1px solid var(--luma-glass-border);
  border-radius: 26px;
  padding: 8px;
  background: var(--luma-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 18px 38px rgba(58, 39, 34, 0.12),
    0 0 40px var(--luma-glow);
  z-index: 50;
  pointer-events: auto;
}

.tabBar button.active {
  color: #fff;
  background: linear-gradient(135deg, #f0c0d0 0%, #e8a8bc 52%, #d888a4 100%);
  box-shadow: 0 6px 20px rgba(90, 47, 82, 0.28);
}

.tabBar button {
  min-width: 0;
  flex: 1;
  min-height: 52px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 19px;
  color: var(--luma-text-muted);
  background: transparent;
  font-weight: 700;
}

.tabBar button.active b,
.tabBar button.active [data-icon] {
  color: #fff;
}

.tabBar b {
  font-size: 10px;
}

[data-icon] svg {
  display: block;
}

.toast {
  position: absolute;
  right: 16px;
  bottom: auto;
  top: 16px;
  left: 16px;
  z-index: 40;
  min-height: 42px;
  padding: 12px 16px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.35;
  color: #fff;
  background: rgba(45, 36, 34, .94);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 520px) {
  body {
    display: block;
    background: #fbf7f0;
    overflow: hidden;
    height: 100dvh;
  }

  .phoneShell {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .appScreen {
    padding-right: 16px;
    padding-left: 16px;
  }

  .rangeField,
  .cycleTools {
    grid-template-columns: 1fr;
  }
}

.authForm {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.authForm .field {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.authForm .field span {
  color: var(--luma-text-muted);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.authForm input,
.authForm textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--luma-border);
  border-radius: 12px;
  background: var(--luma-surface-panel);
  color: var(--luma-text-heading);
  font: inherit;
}

.birthdayPicker {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(76px, 0.72fr) minmax(92px, 0.85fr);
  gap: 8px;
  width: 100%;
}

.birthdayPicker select {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid rgba(168, 130, 154, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(246, 238, 228, 0.82));
  color: var(--luma-text-heading);
  font: inherit;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(58, 39, 34, 0.05);
}

.birthdayPicker select:focus {
  outline: 3px solid rgba(128, 63, 115, 0.16);
  border-color: rgba(128, 63, 115, 0.42);
}

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

.authForm textarea {
  min-height: 78px;
  resize: vertical;
}

.authForm .profileNameGrid {
  grid-template-columns: 1fr;
}

.authBackendStatus {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  background: #fff4e8;
  border: 1px solid #f0c987;
  color: #6b4a1f;
}

.authBackendStatus[data-state="online"] {
  background: #edf7f0;
  border-color: #b8dcc4;
  color: #245a3a;
}

.authFormError {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(176, 72, 104, 0.45);
  color: #4a3040;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.authFormError[hidden] {
  display: none !important;
}

#authForms {
  display: grid;
  gap: 12px;
}

#userCard {
  display: grid;
  gap: 12px;
}

#authTabButton {
  display: flex;
}

.authScreen {
  background:
    linear-gradient(155deg, rgba(128, 63, 115, 0.16), transparent 34%),
    linear-gradient(24deg, rgba(31, 124, 116, 0.1), transparent 42%),
    var(--luma-bg);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-padding-bottom: 120px;
}

.authScreen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(128, 63, 115, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(128, 63, 115, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 58%);
  opacity: 0.45;
}

.authExperience {
  min-height: min-content;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 34px 0 108px;
  position: relative;
  z-index: 1;
}

.authHero {
  display: grid;
  gap: 14px;
  padding: 4px 2px 0;
}

.authHero h1 {
  margin: 0;
  color: var(--luma-text-heading);
  font-family: var(--luma-font-display);
  font-size: clamp(2.7rem, 9.4vw, 4.25rem);
  line-height: 0.96;
  letter-spacing: 0.005em;
  max-width: 10ch;
  font-weight: 760;
  font-variation-settings: "SOFT" 80, "opsz" 72;
}

.authSubtitle {
  max-width: 34rem;
  margin: 0;
  color: var(--luma-text);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.45;
}

.authSignalPanel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(100%, 520px);
  padding: 14px;
  border: 1px solid rgba(128, 63, 115, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.82), rgba(246, 237, 245, 0.64));
  box-shadow: 0 18px 40px rgba(75, 43, 67, 0.12);
}

.authSignalPanel strong,
.authSignalPanel small {
  display: block;
}

.authSignalPanel strong {
  color: var(--luma-text-heading);
  font-size: 0.98rem;
  font-weight: 950;
}

.authSignalPanel small {
  margin-top: 3px;
  color: #735f68;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.authSignalDot {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #803f73, #b76f9f);
  box-shadow: 0 12px 28px rgba(128, 63, 115, 0.24);
  position: relative;
}

.authSignalDot::before,
.authSignalDot::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.authSignalDot::before {
  inset: 11px;
  border: 2px solid rgba(255, 255, 255, 0.92);
}

.authSignalDot::after {
  width: 7px;
  height: 7px;
  right: 8px;
  top: 8px;
  background: #d8f4e9;
  box-shadow: 0 0 0 4px rgba(216, 244, 233, 0.22);
}

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

.authTrustStrip span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px 9px;
  border: 1px solid rgba(128, 63, 115, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(247, 238, 244, 0.58));
  color: #6f3565;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 12px 24px rgba(75, 43, 67, 0.08);
}

.authCard,
.authTermsCard {
  border: 1px solid rgba(128, 63, 115, 0.22);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.92), rgba(246, 238, 244, 0.72));
  backdrop-filter: blur(24px) saturate(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(1.08);
  box-shadow:
    0 24px 60px rgba(52, 37, 48, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.authCard {
  display: grid;
  gap: 18px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.authCard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.48), transparent 28%, rgba(128, 63, 115, 0.06));
  opacity: 0.9;
}

.authTermsCard {
  padding: 16px 18px;
  color: var(--luma-text);
  font-weight: 700;
  line-height: 1.45;
}

.authTermsCard p {
  margin: 0;
}

.authTermsCard a {
  color: #803f73;
  font-weight: 900;
}

.authModeSwitch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(128, 63, 115, 0.18);
  border-radius: 999px;
  background: rgba(32, 21, 32, 0.08);
  box-shadow: inset 0 1px 4px rgba(48, 29, 43, 0.1);
  position: relative;
  z-index: 1;
}

.authModeSwitch button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5d4c56;
  font: inherit;
  font-weight: 950;
}

.authModeSwitch button.active {
  background: linear-gradient(135deg, #803f73, #a85b91);
  color: #fff;
  box-shadow:
    0 14px 28px rgba(128, 63, 115, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.authForms {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.authCard .wideButton {
  min-height: 58px;
  border-radius: 22px;
  background: linear-gradient(135deg, #803f73, #a85b91 54%, #9d625d);
  box-shadow:
    0 18px 34px rgba(128, 63, 115, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-size: 1rem;
}

.authCard .dangerButton {
  background: #a8494f;
}

.authCard .paywallSecondaryBtn {
  background: #f5ece6;
  color: #803f73;
  border: 1px solid rgba(128, 63, 115, 0.16);
  box-shadow: none;
}

.authCard .authForm {
  gap: 15px;
}

.authCard .authForm .field {
  gap: 9px;
}

.authCard .authForm .field span {
  color: #59443e;
  font-size: 0.9rem;
  font-weight: 950;
}

.authCard .authForm input,
.authCard .authForm textarea {
  min-height: 58px;
  padding: 14px 16px;
  border-color: rgba(128, 63, 115, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(180deg, #fffdf8, #fbf5f1);
  color: #2f2723;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 24px rgba(75, 43, 67, 0.06);
}

.authCard .authForm textarea {
  min-height: 96px;
}

.authCard .authForm input:focus,
.authCard .authForm textarea:focus {
  outline: 4px solid rgba(128, 63, 115, 0.18);
  border-color: #803f73;
}

.authCard .googleButton {
  min-height: 56px;
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.88);
  border-color: rgba(128, 63, 115, 0.18);
  color: #2f2723;
  box-shadow: 0 14px 28px rgba(75, 55, 44, 0.08);
}

.authCard .googleButton span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  border-radius: 11px;
  background: #f5edf4;
  color: #803f73;
  font-weight: 950;
}

.authCard .authHelpText,
.authCard .verificationNotice p {
  color: #6d5b54;
  font-weight: 750;
  line-height: 1.45;
}

.authCard .authLink {
  color: #803f73;
  font-weight: 950;
}

.authCard .authProfileDivider,
.authCard .authDivider {
  color: #8b5b7f;
}

.authCard .authProfileDivider::before,
.authCard .authProfileDivider::after,
.authCard .authDivider::before,
.authCard .authDivider::after {
  background: rgba(128, 63, 115, 0.16);
}

.authCard .checkInCard {
  background: #fffdf8;
  border-color: rgba(128, 63, 115, 0.14);
}

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

  .authTrustStrip span {
    min-height: 42px;
  }
}

.logTypeSelector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.logTypeSelector button {
  min-height: 44px;
  border: 1px solid #e4d9ce;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #51433e;
  background: #fbf7f0;
  font-weight: 850;
  font-size: 13px;
}

.logTypeSelector button.active {
  border-color: #a85878;
  color: #fff;
  background: #d888a4;
}

.logTypeSelector button.active [data-icon] {
  color: #fff;
}

.logTypeSelector [data-icon] {
  color: #6aa898;
}

.logHistoryItem.steady {
  border-left-color: #b9aaa1;
}

.cycleLumaCard {
  margin-top: 14px;
  border: 1px solid var(--luma-border);
  border-radius: 22px;
  padding: 14px;
  background: var(--luma-surface-card);
  box-shadow: 0 16px 34px rgba(65, 43, 35, .08);
}

.cycleLumaReplies {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px 0;
}

.cycleLumaReply {
  max-width: 92%;
  border-radius: 18px;
  padding: 12px 13px;
  line-height: 1.42;
  font-size: 14px;
}

.cycleLumaReply.luma {
  align-self: flex-start;
  color: #3d312e;
  background: #f5eee5;
}

.cycleLumaReply.you {
  align-self: flex-end;
  color: #fff;
  background: #d888a4;
}

.onboardingContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 40px 24px 102px;
  text-align: center;
}

.onboardingStep {
  display: none;
  animation: fadeIn .4s ease;
}

.onboardingStep.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboardingVisual {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 242, 246, 0.78));
  border: 1px solid var(--luma-ai-border);
  box-shadow: 0 16px 40px rgba(58, 40, 48, 0.1);
  color: var(--luma-on-glass-link);
}

.onboardingVisual svg {
  width: 40px;
  height: 40px;
}

.onboardingStep h1 {
  font-size: 26px;
  margin-bottom: 12px;
}

.onboardingStep p {
  color: var(--luma-text-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto 28px;
}

.onboardingTagline {
  color: #5c3450;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  max-width: 300px;
}

.onboardingFooter {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 320px;
  margin-top: auto;
}

.onboardingDots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0;
}

.onboardingDots button {
  width: 8px;
  height: 8px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  padding: 18px;
  position: relative;
}

.onboardingDots button::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5d9ce;
}

.onboardingDots button.active::after {
  width: 20px;
  border-radius: 999px;
  background: #d888a4;
}

.onboardingActions {
  width: 100%;
  max-width: 320px;
}

.skipButton {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 0;
  border-radius: 16px;
  color: var(--luma-text-muted);
  background: transparent;
  font-weight: 850;
}

.profileCard {
  margin-top: 14px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 22px;
  padding: 16px;
  background: var(--luma-glass-surface);
  color: var(--luma-on-glass);
  box-shadow: var(--luma-glass-surface-shadow);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
}

.profileCardDetails > .profileCardSummary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.profileCardDetails > .profileCardSummary::-webkit-details-marker {
  display: none;
}

.profileCardDetails > .profileCardSummary h2 {
  margin: 4px 0 0;
}

.profileCardDetails:not([open]) {
  padding-bottom: 14px;
}

.profileCardDetails:not([open]) > :not(summary) {
  display: none !important;
}

.profileCardDetails[open] > .profileCardSummary {
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent, #e8a8bc) 20%, transparent);
}

.profileCardDetails[open] .profileIdentityChevron {
  transform: rotate(180deg);
}

.profilePregnancyWeekCard {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--luma-ai-border);
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(168, 130, 154, 0.18), transparent 58%),
    var(--luma-glass-surface);
  color: var(--luma-on-glass);
  box-shadow: var(--luma-glass-surface-shadow);
}

.profileFocusCard[data-focus="tracking"] {
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(27, 123, 116, 0.16), transparent 58%),
    linear-gradient(135deg, rgba(255, 251, 253, 0.95), rgba(237, 250, 246, 0.9));
}

.profileFocusCard[data-focus="trying"] {
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(216, 136, 164, 0.22), transparent 58%),
    linear-gradient(135deg, rgba(255, 248, 252, 0.96), rgba(252, 241, 246, 0.9));
}

.profileFocusCard[data-focus="pregnant"] {
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(168, 130, 154, 0.18), transparent 58%),
    var(--luma-glass-surface);
}

.profilePregnancyWeekCard[hidden] {
  display: none !important;
}

.profilePregnancyWeekMain {
  display: grid;
  gap: 4px;
}

.profilePregnancyWeekMain .label {
  margin: 0;
  color: var(--luma-on-glass-label);
}

.profilePregnancyWeekMain strong {
  font-family: var(--luma-font-display);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--luma-on-glass-heading);
}

.profilePregnancyWeekMain p {
  margin: 0;
  color: var(--luma-on-glass-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.profilePregnancyWeekMeta {
  font-size: 0.8rem !important;
}

[data-theme="dark"] .phoneShell .profilePregnancyWeekCard,
[data-theme="moonlit"] .phoneShell .profilePregnancyWeekCard {
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(168, 130, 154, 0.22), transparent 58%),
    var(--luma-glass-surface);
  border-color: var(--luma-ai-border);
  color: var(--luma-on-glass);
}

[data-theme="dark"] .phoneShell .profileFocusCard[data-focus="tracking"],
[data-theme="moonlit"] .phoneShell .profileFocusCard[data-focus="tracking"] {
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(27, 123, 116, 0.22), transparent 58%),
    var(--luma-glass-surface);
}

[data-theme="dark"] .phoneShell .profileFocusCard[data-focus="trying"],
[data-theme="moonlit"] .phoneShell .profileFocusCard[data-focus="trying"] {
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(216, 136, 164, 0.2), transparent 58%),
    var(--luma-glass-surface);
}

[data-theme="dark"] .phoneShell .profilePregnancyWeekMain strong,
[data-theme="moonlit"] .phoneShell .profilePregnancyWeekMain strong {
  color: var(--luma-on-glass-heading);
}

.profileAccountEmail {
  margin: 5px 0 0;
  color: var(--luma-text-muted);
  font-size: 12px;
  word-break: break-word;
}

.profileAvatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #d888a4;
  font-size: 22px;
  font-weight: 950;
}

.profileStats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.profileStats div {
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--luma-ai-border);
  text-align: center;
}

.profileStats b {
  display: block;
  font-size: 20px;
  color: var(--luma-on-glass-heading);
}

.profileStats span {
  font-size: 11px;
  color: var(--luma-text-muted);
  font-weight: 850;
}

.settingsList {
  margin-top: 14px;
}

.settingsList h2 {
  margin-bottom: 10px;
  padding-left: 4px;
}

.settingsRow {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 18px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--luma-glass-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(58, 40, 48, 0.06);
  text-align: left;
  color: inherit;
}

.settingsRow h3 {
  margin-bottom: 2px;
  font-size: 14px;
  color: var(--luma-on-glass-heading);
}

.settingsRow [data-icon] {
  color: var(--luma-accent-teal);
  flex: 0 0 auto;
}

.settingsRow p {
  margin: 0;
  font-size: 12px;
  color: var(--luma-on-glass-muted);
}

.loadingOverlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: color-mix(in srgb, var(--luma-shell) 88%, transparent);
  backdrop-filter: blur(4px);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--luma-border);
  border-top-color: var(--luma-accent-text, var(--luma-link));
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.loadingOverlay.active {
  display: grid;
}

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

.offlineBanner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  min-height: 32px;
  display: none;
  place-items: center;
  background: #a8494f;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.offlineBanner.active {
  display: grid;
}

.careList article {
  position: relative;
  padding-left: 52px;
}

.careList article > [data-icon] {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6aa898;
}

/* Intake Screen */
#intakeScreen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 24px 102px;
  overflow-y: auto;
}
#intakeScreen.active {
  display: flex;
}

.intakeContent {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.intakeBackBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid rgba(200, 212, 232, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--luma-link);
  font-family: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.intakeBackBtn[hidden] {
  display: none;
}

.intakeBackBtn svg {
  width: 16px;
  height: 16px;
}

.intakeContent h1 {
  font-size: 24px;
  font-weight: 900;
  color: #3d2b1f;
  text-align: center;
  margin-bottom: 8px;
}

.intakeSubtitle {
  text-align: center;
  color: #a85878;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
}

.welcomeContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 48px 24px 102px;
  text-align: center;
}

.welcomeVisual {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f3e8ef, #e3f0ec);
  color: #a85878;
}

.welcomeVisual svg {
  width: 42px;
  height: 42px;
}

.welcomeContent h1 {
  margin: 8px 0 12px;
  font-size: 1.85rem;
}

.welcomeSubtitle {
  margin: 0 0 22px;
  max-width: 320px;
  color: #6b5d66;
  line-height: 1.5;
  font-size: 15px;
}

.welcomeSummary {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  width: 100%;
  max-width: 340px;
  text-align: left;
}

.welcomeSummary li {
  position: relative;
  padding: 12px 14px 12px 36px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(122, 63, 106, 0.12);
  color: #4a3d44;
  line-height: 1.45;
  font-size: 14px;
}

.welcomeSummary li::before {
  content: '✓';
  position: absolute;
  left: 14px;
  top: 12px;
  color: #a85878;
  font-weight: 800;
}

.welcomeGuide {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  margin: 0 0 24px;
  text-align: left;
}

.welcomeGuide article {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  border: 1px solid rgba(122, 63, 106, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  color: #4a3d44;
}

.welcomeGuide strong {
  color: #3d3038;
  font-size: 13px;
}

.welcomeGuide span {
  color: #6b5d66;
  font-size: 12px;
  line-height: 1.35;
}

#welcomeContinueBtn {
  width: 100%;
  max-width: 340px;
}

.intakeGrid {
  display: grid;
  gap: 12px;
}

.intakeCard {
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 14px;
  border: 1px solid var(--luma-glass-border);
  border-radius: 18px;
  background: var(--luma-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.2s;
}

.intakeCard:hover,
.intakeCard:focus {
  border-color: rgba(168, 130, 154, 0.45);
  box-shadow: 0 4px 20px var(--luma-glow);
  transform: translateY(-1px);
}

.intakeCard.selected {
  border-color: var(--luma-accent-text, var(--luma-link));
  background: linear-gradient(135deg, rgba(250, 245, 248, 0.95), rgba(255, 255, 255, 0.85));
  box-shadow:
    0 0 0 1px rgba(168, 130, 154, 0.2),
    0 8px 28px var(--luma-glow);
}

.intakeCard .intakeIcon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f3e8ef;
  display: grid;
  place-items: center;
  color: #a85878;
  font-size: 18px;
}

.intakeCard.selected .intakeIcon {
  background: #d888a4;
  color: #fff;
}

.intakeCard h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--luma-on-glass-heading);
  margin: 0 0 4px;
}

.intakeCard p {
  font-size: 13px;
  color: var(--luma-on-glass-muted);
  margin: 0;
  line-height: 1.35;
}

.focusImpactCard {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--luma-glass-border);
  border-radius: 20px;
  background: var(--luma-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(58, 39, 34, 0.06);
}

.focusImpactCard h2 {
  margin: 4px 0 10px;
  color: var(--luma-text-heading);
  font-size: 16px;
  line-height: 1.25;
}

.focusImpactCard ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--luma-text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.focusImpactCard li::marker {
  color: var(--luma-accent-text, var(--luma-link));
}

.wideButton:disabled {
  opacity: 0.55;
}

.intakeCheck {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #e5d9ce;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.intakeCard.selected .intakeCheck {
  background: #d888a4;
  border-color: #a85878;
}

.intakeCard.selected .intakeCheck::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.intakeFooter {
  text-align: center;
  font-size: 12px;
  color: #9e8e7e;
  margin-top: 20px;
}

.profileIdentityCard {
  display: block;
  padding: 0;
  border: 1px solid var(--luma-border);
  border-radius: 20px;
  margin-bottom: 10px;
  background: var(--luma-surface-card);
  box-shadow: 0 8px 24px rgba(58, 39, 34, 0.06);
  overflow: hidden;
}

.profileIdentitySummary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.profileIdentitySummary::-webkit-details-marker {
  display: none;
}

.profileIdentitySummary h3 {
  margin: 4px 0 0;
}

.profileIdentityChevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #b45b83) 18%, transparent);
  color: transparent;
  background-color: color-mix(in srgb, var(--luma-surface-card, #fff8fb) 90%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a4a3a' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--luma-accent, #b45b83) 8%, transparent);
  transition: transform 0.2s ease;
}

.profileIdentityCard[open] .profileIdentityChevron {
  transform: rotate(180deg);
}

.profileNameGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.profileDetailsForm {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.profileDetailsForm .field {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.profileDetailsForm .field span {
  color: var(--luma-text-muted);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.profileDetailsForm input,
.profileDetailsForm textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--luma-border);
  border-radius: 12px;
  background: var(--luma-surface-panel);
  color: var(--luma-text-heading);
  font: inherit;
}

.profileDetailsForm textarea {
  min-height: 82px;
  resize: vertical;
}

.dangerSettingsRow h3 {
  color: #9f3f45;
}

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

  .intakeCard {
    grid-template-columns: 38px 1fr 24px;
    gap: 10px;
    padding: 14px 12px;
  }
}

/* Care library recommended badge */
.careCard.recommended {
  border-color: #a85878;
  background: #faf5f8;
}

.careCard .careBadge {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  background: #d888a4;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 10px;
}

.careCard.recommended .careBadge {
  display: block;
}

/* PWA install prompt */
body.lumaSheetOpen .pwaPrompt {
  display: none !important;
}

.pwaPrompt {
  display: none;
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 95;
  min-height: 52px;
  border: 1px solid rgba(232, 168, 188, 0.5);
  border-radius: 999px;
  background: linear-gradient(180deg, #fffafc 0%, #fde8f0 100%);
  color: #4a3040;
  padding: 10px 12px 10px 16px;
  font-size: 0.86rem;
  font-weight: 750;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 16px 32px rgba(232, 168, 188, 0.32);
}

.pwaPrompt span {
  flex: 1;
  line-height: 1.2;
}
.pwaPrompt.active { display: flex; }
.pwaPrompt button {
  flex: 0 0 auto;
  background: rgba(232, 168, 188, 0.4);
  border: none;
  color: #4a3040;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* ================================================================
   REMINDER SCREEN
   ================================================================ */
.remindersScreen {
  padding: 14px;
}

.remindersScreen h2 {
  margin-bottom: 10px;
}

.reminderRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--luma-glass-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(58, 40, 48, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.reminderRow.active {
  border-color: rgba(31, 122, 115, 0.35);
  background: linear-gradient(135deg, rgba(234, 245, 241, 0.95), rgba(255, 255, 255, 0.88));
  box-shadow: 0 0 0 1px rgba(31, 122, 115, 0.12), 0 10px 24px rgba(31, 122, 115, 0.1);
}

.reminderRow div:first-child {
  flex: 1;
  min-width: 0;
}

.reminderRow strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
  color: var(--luma-on-glass-heading);
}

.reminderRow span {
  font-size: 12px;
  color: var(--luma-on-glass-muted);
  line-height: 1.35;
}

.reminderMeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.reminderTimeChip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(168, 88, 120, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 252, 250, 0.96), rgba(248, 232, 240, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: var(--luma-font-sans, "Nunito", ui-sans-serif, system-ui, sans-serif);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
  color: #8a4a68;
  white-space: nowrap;
}

.reminderScheduleMeta {
  font-size: 12px;
  font-weight: 600;
  color: var(--luma-on-glass-muted);
}

.reminderActions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.reminderActions button {
  border: 1px solid var(--luma-ai-border);
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 850;
  touch-action: manipulation;
  transition: transform 0.15s ease, background 0.18s ease;
}

.reminderActions button:active {
  transform: scale(0.96);
}

.reminderActions .toggleBtn {
  border-color: rgba(31, 122, 115, 0.28);
  color: #5a9a88;
  background: rgba(234, 245, 241, 0.9);
}

.reminderActions .editBtn {
  border-color: rgba(122, 63, 106, 0.28);
  color: #a85878;
  background: rgba(248, 240, 246, 0.95);
}

.reminderRow--editing {
  border-color: rgba(122, 63, 106, 0.45);
  box-shadow: 0 0 0 1px rgba(122, 63, 106, 0.16);
}

.reminderActions .removeBtn {
  border-color: rgba(168, 73, 79, 0.28);
  color: #8a3a42;
  background: rgba(255, 242, 238, 0.9);
}

.addReminderForm {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(248, 242, 246, 0.78));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.addReminderForm label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 850;
  color: var(--luma-on-glass-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.addReminderForm input,
.addReminderForm select {
  border: 1px solid var(--luma-input-border);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--luma-input-surface);
  color: var(--luma-on-glass-heading);
  font: inherit;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ================================================================
   HISTORICAL CYCLE EDITOR
   ================================================================ */
.cycleEditorPanel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 22px;
  background: var(--luma-glass-surface);
  color: var(--luma-on-glass);
  box-shadow: var(--luma-glass-surface-shadow);
}

.cycleEditorPanel h3 {
  margin-bottom: 10px;
  font-size: 14px;
}

.addPeriodForm {
  display: grid;
  gap: 10px;
}

.addPeriodActions {
  display: grid;
  gap: 8px;
}

.addPeriodForm input {
  width: 100%;
  border: 1px solid #e4d9ce;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fbf7f0;
}

.addPeriodForm .wideButton {
  width: 100%;
  margin: 0;
}

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

.historyChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4d9ce;
  border-radius: 999px;
  padding: 7px 8px 7px 12px;
  background: #f5eee5;
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
}

.historyChip > span {
  line-height: 1.2;
}

.historyChip button,
.historyChipRemove,
.noPeriodHistoryChip button,
.noPeriodHistoryChip .historyChipRemove,
.customDateChip button,
.customDateChip .historyChipRemove {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: color-mix(in srgb, var(--luma-text-heading, #3a2a34) 8%, transparent);
  color: color-mix(in srgb, var(--luma-text-heading, #3a2a34) 72%, transparent);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.historyChip button span,
.historyChipRemove span,
.noPeriodHistoryChip button span,
.customDateChip button span {
  display: block;
  transform: translateY(-0.5px);
  line-height: 1;
}

.historyChip button:hover,
.historyChipRemove:hover,
.noPeriodHistoryChip button:hover,
.customDateChip button:hover,
.historyChip button:focus-visible,
.historyChipRemove:focus-visible,
.noPeriodHistoryChip button:focus-visible,
.customDateChip button:focus-visible {
  background: color-mix(in srgb, #a8494f 16%, transparent);
  color: #8a3038;
}

.historyChip button:active,
.historyChipRemove:active,
.noPeriodHistoryChip button:active,
.customDateChip button:active {
  background: color-mix(in srgb, #a8494f 24%, transparent);
  color: #7a2830;
}

.calendarHint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--luma-text-muted);
  text-align: center;
}

/* ================================================================
   YEAR CALENDAR EDITABLE STATES
   ================================================================ */
.monthDay.editable {
  position: relative;
}

.monthDay.editable::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 2px dashed rgba(31, 111, 105, .3);
  border-radius: 10px;
  pointer-events: none;
}

/* ================================================================
   PRIVACY BLUR MODE
   ================================================================ */
body.privacyBlur .phoneShell,
body.privacyBlur .appScreen.active {
  filter: blur(12px);
  transition: filter 0.3s ease;
}

body.privacyBlur .tabBar {
  filter: blur(8px);
}

body.privacyBlur .toast {
  filter: none;
}

.privacyUnlockOverlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-content: center;
  gap: 8px;
  border: 0;
  padding: 24px;
  background: rgba(35, 27, 32, 0.72);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(8px);
}

.privacyUnlockOverlay[hidden] {
  display: none !important;
}

.privacyUnlockOverlay span {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.privacyUnlockOverlay strong {
  font-size: 22px;
  line-height: 1.15;
}

/* ================================================================
   SCHEDULE SELECTOR STYLES
   ================================================================ */
.scheduleOptions {
  margin-top: 8px;
}

.scheduleHint {
  margin: 4px 0 8px;
  font-size: 12px;
  color: var(--luma-text-muted);
}

.dayToggleRow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: 18px;
  border: 1px solid var(--luma-ai-border);
  background: rgba(255, 255, 255, 0.42);
}

.dayToggleRow label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: var(--luma-on-glass-muted);
  cursor: pointer;
  user-select: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.dayToggleRow label span {
  pointer-events: none;
  color: inherit;
}

.dayToggleRow label:active {
  transform: scale(0.96);
}

.dayToggleRow label:has(input:checked) {
  background: linear-gradient(160deg, #e8a8bc 0%, #d888a4 100%);
  color: #fff7fb;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 8px 18px rgba(107, 53, 88, 0.22);
}

.dayToggleRow input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

[data-theme="dark"] .dayToggleRow,
[data-theme="moonlit"] .dayToggleRow {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .dayToggleRow label,
[data-theme="moonlit"] .dayToggleRow label {
  color: var(--luma-on-glass-muted) !important;
  background: transparent !important;
  box-shadow: none;
}

[data-theme="dark"] .dayToggleRow label span,
[data-theme="moonlit"] .dayToggleRow label span {
  color: inherit !important;
}

[data-theme="dark"] .dayToggleRow label:has(input:checked),
[data-theme="moonlit"] .dayToggleRow label:has(input:checked) {
  background: linear-gradient(160deg, #a06a8a 0%, #7e3f6a 100%) !important;
  color: #fff7fb !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 10px 22px rgba(0, 0, 0, 0.28) !important;
}

[data-theme="moonlit"] .dayToggleRow label:has(input:checked) {
  background: linear-gradient(160deg, #8aa0d0 0%, #6f7fc0 100%) !important;
}

.addReminderForm select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.customDateChips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.customDateChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e4d9ce;
  border-radius: 20px;
  padding: 5px 10px;
  background: #f5eee5;
  font-size: 12px;
  font-weight: 850;
}

.customDateChip button {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--luma-text-heading, #3a2a34) 8%, transparent);
  color: color-mix(in srgb, var(--luma-text-heading, #3a2a34) 72%, transparent);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.miniButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #6aa898;
  border-radius: 10px;
  padding: 6px 12px;
  background: #6aa898;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}

/* ================================================================
   AI TOOLS SCREEN
   ================================================================ */
.aiToolsList {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.aiToolCard {
  border: 1px solid var(--luma-glass-border);
  border-radius: 22px;
  padding: 18px;
  background: var(--luma-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(65, 43, 35, 0.06);
  text-align: left;
  transition: box-shadow 0.25s, transform 0.2s;
}

.aiToolCard:hover {
  box-shadow: 0 12px 32px var(--luma-glow);
  transform: translateY(-1px);
}

.aiToolCard h3 {
  font-size: 16px;
  font-weight: 900;
  color: var(--luma-text-heading);
  margin-bottom: 6px;
}

.aiToolCard p {
  font-size: 13px;
  color: var(--luma-text-muted);
  margin-bottom: 12px;
  line-height: 1.45;
}

.aiToolCard button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--luma-accent-text, var(--luma-link)) 28%, transparent);
  border-radius: 12px;
  padding: 9px 16px;
  background: color-mix(in srgb, var(--luma-accent) 28%, var(--luma-surface-card));
  color: var(--luma-accent-text, var(--luma-link));
  font-size: 13px;
  font-weight: 800;
}

.aiToolCard.premium {
  border-color: #a85878;
  background: linear-gradient(135deg, #fffdf8, #f7eef5);
}

.aiToolCard.premium h3 {
  color: #a85878;
}

.aiToolBadge {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a85878;
  background: #f0e0ec;
  border-radius: 8px;
  padding: 3px 8px;
  margin-bottom: 8px;
}

/* ================================================================
   DAY EDITOR MODAL
   ================================================================ */
.dayEditorOverlay {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(43, 37, 35, 0.35);
  backdrop-filter: blur(2px);
}

.dayEditorOverlay.active {
  display: flex;
}

.dayEditorSheet {
  width: 100%;
  max-height: 70vh;
  border-radius: 28px 28px 0 0;
  background: var(--luma-surface-card);
  padding: 14px 20px 28px;
  box-shadow: 0 -12px 40px rgba(43, 37, 35, 0.18);
  animation: sheetUp 0.25s ease;
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.dayEditorHandle {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: #d4c8bc;
  margin: 0 auto 14px;
}

.dayEditorSheet h3 {
  font-size: 20px;
  font-weight: 900;
  color: #3d2b1f;
  margin-bottom: 4px;
  text-align: center;
}

.dayEditorSheet > p {
  text-align: center;
  font-size: 14px;
  color: #7a6a5e;
  margin-bottom: 18px;
}

.dayEditorActions {
  display: grid;
  gap: 10px;
}

.dayEditorActions button {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 850;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dayEditorActions button[hidden] {
  display: none !important;
}

.dayEditorOverlay[data-mode="pregnancy"] #dayEditorRemoveStart,
body.pregnancyFocusMode #dayEditorRemoveStart {
  display: none !important;
}

.dayEditorOverlay[data-mode="pregnancy"] #dayEditorSetWeek1 {
  background: linear-gradient(135deg, #fff7fb, #f4e5ee);
  color: #7b3f68;
  border: 1px solid #ead1dc;
}

.dayEditorOverlay[data-mode="pregnancy"] #dayEditorSetStart {
  background: linear-gradient(135deg, #eefaf6, #e1f2ed);
  color: #1f6b63;
  border: 1px solid #bfe4da;
}

.dayEditorOverlay[data-mode="pregnancy"] #dayEditorSetCurrent {
  background: linear-gradient(135deg, #f7f3fb, #ece6f4);
  color: #51415f;
  border: 1px solid #ded4ea;
}

.dayEditorActions button:first-child {
  background: #6aa898;
  color: #fff;
  border: none;
}

.dayEditorActions button:nth-child(2) {
  background: #fce8e8;
  color: #a8494f;
  border: 1px solid #e8c8c8;
}

.dayEditorActions button:nth-child(3) {
  background: #f5eee5;
  color: #5c4a3d;
  border: 1px solid #e4d9ce;
}

.dayEditorActions button:last-child {
  background: transparent;
  color: #7a6a5e;
  border: 1px solid #d4c8bc;
}

/* ================================================================
   PREDICTION TOGGLE
   ================================================================ */
.predictionToggle {
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid var(--luma-border);
  border-radius: 14px;
  background: var(--luma-surface-card);
  color: var(--luma-text);
}

.predictionToggle label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 850;
  color: var(--luma-text-heading);
}

.predictionToggle input {
  width: 18px;
  height: 18px;
  accent-color: #6aa898;
}

.predictionHint {
  margin: 4px 0 0 28px;
  font-size: 12px;
  color: #7a6a5e;
}

/* ================================================================
   MONTH NAVIGATOR & CALENDAR GRID
   ================================================================ */
.monthNavigator {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  column-gap: 8px;
  margin-top: 14px;
  padding: 6px 8px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 999px;
  background: var(--luma-glass-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--luma-glass-surface-shadow);
}

.monthNavigator button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--luma-ai-border);
  background: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  color: var(--luma-on-glass-heading);
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  transition: background 0.18s ease, transform 0.15s ease;
}

.monthNavigator button:active {
  transform: scale(0.96);
}

.monthNavigator h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: var(--luma-on-glass-heading);
  text-align: center;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.monthTitleWrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  gap: 2px;
}

.todayBtn {
  font-size: 11px;
  font-weight: 850;
  color: var(--luma-on-glass-link);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.monthCalendar {
  margin-top: 14px;
  width: 100%;
  padding: 14px 12px 12px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(248, 242, 246, 0.72));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.monthCalendarLayout {
  display: grid;
  gap: 10px;
  width: 100%;
}

.monthCalendarGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
}

.monthCalendarHeader {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  padding-bottom: 2px;
}

.monthCalendarHeader span {
  text-align: center;
  font-size: 10px;
  font-weight: 850;
  color: var(--luma-on-glass-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.monthCalendarDay {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 44px;
  width: 100%;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(90, 60, 80, 0.08);
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 900;
  color: var(--luma-on-glass-heading);
  line-height: 1.1;
  transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.monthCalendarDay:not(.empty):active {
  transform: scale(0.94);
}

.monthCalendarDay .dayNumber {
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.monthCalendarDay.empty {
  background: transparent;
  border: 0;
  pointer-events: none;
  box-shadow: none;
}

.monthCalendarDay.today {
  border-color: #d07090;
  box-shadow: 0 0 0 2px rgba(107, 53, 88, 0.22);
}

.monthCalendarDay.selected {
  border-color: #d07090;
  box-shadow:
    inset 0 0 0 2px #d07090,
    0 4px 14px rgba(107, 53, 88, 0.18);
}

.monthCalendarDay.period {
  background: linear-gradient(145deg, #fce8ee, var(--cycle-period));
  color: #6a4050;
  border-color: rgba(232, 168, 188, 0.3);
}

.monthCalendarDay.active {
  background: linear-gradient(145deg, #f5b8ca, var(--cycle-period-active));
  color: #5a3040;
  border-color: rgba(224, 130, 160, 0.4);
}

.monthCalendarDay.predicted {
  background: linear-gradient(145deg, #f5f2fb, var(--cycle-purple));
  color: var(--cycle-purple-text);
  border: 2px dashed var(--cycle-predicted-border);
}

body.lumaIrregularTracking .monthCalendarDay.predicted {
  background: linear-gradient(145deg, #f6eef6, #ecdcec);
  color: #5b4050;
  border-color: #c8a0bc;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.monthCalendarDay.fertile {
  background: linear-gradient(145deg, #f3faf5, var(--cycle-fertile));
  color: var(--cycle-fertile-text);
  border-color: rgba(160, 196, 172, 0.35);
}

.monthCalendarDay.ovulation {
  background: linear-gradient(145deg, #fdf6ee, var(--cycle-ovulation));
  color: #6a4e40;
  border-color: rgba(232, 188, 160, 0.35);
}

.monthCalendarDay.tender {
  background: linear-gradient(145deg, #faf6f9, var(--cycle-preperiod));
  color: var(--cycle-preperiod-text);
  border-color: rgba(200, 176, 196, 0.35);
}

.monthCalendarDay.steady {
  background: rgba(255, 255, 255, 0.78);
  color: var(--luma-on-glass-heading);
  border-color: rgba(90, 60, 80, 0.1);
}

.monthCalendarDay.noPeriodMonth {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(248, 239, 245, 0.88)),
    repeating-linear-gradient(
      135deg,
      rgba(132, 64, 110, 0.12),
      rgba(132, 64, 110, 0.12) 6px,
      transparent 6px,
      transparent 12px
    );
  color: #74365f;
  border-color: rgba(132, 64, 110, 0.25);
}

.monthCalendarDay .cycleLabel {
  font-size: 8px;
  font-weight: 800;
  opacity: 0.82;
  letter-spacing: 0.02em;
}

/* ================================================================
   Accessibility
   ================================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skipLink {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  background: #463431;
  text-decoration: none;
}

.skipLink:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid #a8494f;
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* ================================================================
   Care library
   ================================================================ */
.careLibrary {
  display: grid;
  gap: 16px;
  padding-bottom: 88px;
}

.careIntro {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--luma-text-muted);
}

.learnVisualFeature {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 24px;
  background: var(--luma-glass-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--luma-glass-surface-shadow);
}

.learnVisualFeature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  background: linear-gradient(135deg, #faf5f8, #e9dce6);
}

.learnVisualFeature div {
  padding: 0 4px 4px;
}

.learnVisualFeature h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.12;
  color: var(--luma-on-glass-heading);
}

.learnVisualFeature p:last-child {
  margin: 0;
  color: var(--luma-on-glass-muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.careSearchLabel {
  display: block;
}

.careSearchInput {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(234, 223, 211, 0.95);
  border-radius: 16px;
  font-size: 15px;
  background: #fffaf4;
}

.careFilters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.careFilterBtn {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(234, 223, 211, 0.95);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--luma-text-muted);
  background: #fffaf4;
  white-space: nowrap;
}

.careFilterBtn.active {
  color: #fff;
  background: #463431;
  border-color: #463431;
}

.careResultCount {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #9a877f;
}

.careSectionTitle {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a877f;
}

.careForYou,
.careCategories {
  display: grid;
  gap: 12px;
}

.careArticleListCompact {
  gap: 8px;
}

.careCategoryGrid {
  display: grid;
  gap: 12px;
}

.careCategoryCard {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 18px;
  background: var(--luma-glass-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(58, 40, 48, 0.06);
  text-align: left;
  color: inherit;
}

.careCategoryIcon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f7edf4;
  color: #a85878;
}

.careCategoryCardBody {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.careCategoryCardBody strong {
  font-size: 15px;
  color: var(--luma-on-glass-heading);
}

.careCategoryCardBody span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

.careCategoryCardBody em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: #9a877f;
}

.careMoreTopics {
  margin-top: 12px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 20px;
  background: var(--luma-glass-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.careMoreTopics[hidden] {
  display: none;
}

.careMoreTopics > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  list-style: none;
  cursor: pointer;
  font-weight: 900;
  color: var(--luma-link);
}

.careMoreTopics > summary::-webkit-details-marker {
  display: none;
}

.careMoreTopics > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--luma-chip-bg);
  color: var(--luma-link);
  font-size: 22px;
  line-height: 1;
}

.careMoreTopics[open] > summary::after {
  content: "-";
}

.careCategoryGrid--more {
  padding: 0 14px 14px;
}

.careBackBtn {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #a85878;
  font-size: 14px;
  font-weight: 800;
}

.careCategoryHeading {
  margin: 0 0 6px;
  font-size: 22px;
  color: #352d2a;
}

.careCategoryDesc {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--luma-text-muted);
}

.lumaPromptGroups {
  margin-bottom: 10px;
}

.lumaPromptGroups summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  color: var(--luma-text-muted);
  margin-bottom: 8px;
}

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

.lumaPromptGroup h3 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a877f;
}

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

.lumaPromptGroupRow button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(234, 223, 211, 0.95);
  border-radius: 999px;
  background: #fffaf4;
  color: #463431;
  font-size: 12px;
  font-weight: 800;
}

.careArticleList {
  display: grid;
  gap: 12px;
}

.careArticleCard {
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 18px;
  background: var(--luma-glass-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(58, 40, 48, 0.06);
  cursor: pointer;
}

.careArticleCard h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: var(--luma-on-glass-heading);
}

.careArticleCard p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

.careArticleCategory {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a8494f;
}

.careArticleMeta {
  font-size: 12px;
  font-weight: 800;
  color: #9a877f;
}

.careEmpty {
  margin: 0;
  padding: 20px 0;
  text-align: center;
  color: var(--luma-text-muted);
  font-size: 14px;
}

.careLumaShortcuts {
  border: 1px dashed rgba(234, 223, 211, 0.95);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 250, 244, 0.6);
}

.careLumaShortcuts summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  color: #463431;
}

.careShortcutGrid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.careShortcutBtn {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: #d888a4;
  text-align: left;
}

.careReaderOverlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  width: 100%;
  height: 100%;
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  background: rgba(45, 36, 34, 0.45);
}

.careReaderOverlay[hidden] {
  display: none !important;
}

body.careReaderOpen {
  overflow: hidden;
}

.careReaderSheet {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: min(86vh, calc(100% - 16px));
  overflow: auto;
  border-radius: 22px 22px 18px 18px;
  background: var(--luma-surface-card);
  box-shadow: 0 18px 48px rgba(58, 39, 34, 0.22);
  box-sizing: border-box;
}

.careReaderHeader {
  display: grid;
  gap: 8px;
  padding: 16px 18px 8px;
  border-bottom: 1px solid rgba(234, 223, 211, 0.7);
}

.careReaderBack {
  justify-self: start;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  color: #463431;
  background: rgba(234, 223, 211, 0.45);
}

.careReaderMeta {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a8494f;
}

.careReaderHeader h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.careReaderHeader p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--luma-text-muted);
}

.careReaderBody {
  display: grid;
  gap: 16px;
  padding: 16px 18px 8px;
}

.careReaderEvidenceNote {
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(124, 92, 191, 0.08);
  border: 1px solid rgba(124, 92, 191, 0.18);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

.careReaderBody section h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.careReaderBody section p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.55;
  color: #463431;
}

.careReaderFooter {
  position: sticky;
  bottom: 0;
  padding: 12px 18px 18px;
  background: linear-gradient(to top, #fffdf8 75%, transparent);
}

/* Today tab — phase articles */
.todayPhaseArticles {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--luma-border-soft);
  border-radius: 20px;
  background: var(--luma-surface-card-alt);
  color: var(--luma-text);
}

.todayPhaseArticles .cardTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.todayPhaseArticles .cardTop h2 {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.25;
}

.todaySeeAllCare {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: #d888a4;
}

.todayArticleList {
  display: grid;
  gap: 8px;
}

.todayArticleCard {
  content-visibility: auto;
  contain-intrinsic-size: auto 88px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--luma-border-soft);
  border-radius: 16px;
  background: var(--luma-surface-card);
  color: var(--luma-text);
  cursor: pointer;
  text-align: left;
}

.todayArticleCard h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.todayArticleCard p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--luma-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.todayArticleMeta {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a8494f;
}

.todayArticleEmpty {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

/* ================================================================
   Dark mode
   ================================================================ */
:root {
  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
  --luma-shell: #2c2228;
  --luma-card: #3a2e36;
  --luma-label: #f0d0dc;
  --luma-accent: #f0b0c4;
  --luma-accent-deep: #f0c8d4;
  --luma-accent-text: #f4d8e0;
  --luma-input-bg: #221a20;
  --luma-text: #f6ecef;
  --luma-text-heading: #faf2f5;
  --luma-text-muted: #e8d4dc;
  --luma-text-secondary: #d4c0c8;
  --luma-text-body: var(--luma-text);
  --luma-on-glass: #f6ecef;
  --luma-on-glass-heading: #faf2f5;
  --luma-on-glass-muted: #e4d0d8;
  --luma-on-glass-label: #e8c0d0;
  --luma-on-glass-link: #f0d0dc;
  --luma-surface-card: #352a32;
  --luma-surface-card-alt: #3e323a;
  --luma-surface-elevated: #3e323a;
  --luma-surface-inset: #3e323a;
  --luma-surface-panel: #352a32;
  --luma-border: #4a3a42;
  --luma-border-soft: rgba(255, 220, 230, 0.12);
  --luma-link: #f0d0dc;
  --luma-accent-teal: #a8d4c8;
  --luma-accent-teal-soft: rgba(168, 212, 200, 0.2);
  --luma-ai-border: rgba(255, 220, 230, 0.14);
  --luma-ai-sheen: rgba(255, 255, 255, 0.06);
  --luma-glass-surface: linear-gradient(155deg, rgba(56, 42, 50, 0.98) 0%, rgba(48, 36, 44, 0.95) 55%, rgba(42, 32, 40, 0.92) 100%);
  --luma-glass-surface-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 20px 48px rgba(0, 0, 0, 0.28);
  --luma-input-surface: rgba(34, 26, 32, 0.96);
  --luma-input-border: rgba(255, 220, 230, 0.16);
  --luma-glass: rgba(56, 42, 50, 0.88);
  --luma-on-light-surface: #4a3842;
  --luma-on-light-surface-heading: #3a2a34;
  --luma-on-light-surface-muted: #6e5864;
  --luma-on-light-surface-label: #8a6a78;
  --luma-on-light-surface-link: #b06080;
  --luma-on-dark-heading: #faf2f5;
  --luma-on-dark-muted: #e4d0d8;
  --luma-danger: #f0a0a8;
  --luma-danger-bg: rgba(154, 59, 70, 0.32);
  --luma-danger-border: rgba(240, 140, 150, 0.45);
  /* Same pastel phase chips as light — readable on dark shells */
  --cycle-neutral: rgba(255, 248, 252, 0.16);
  --cycle-neutral-text: #f8f2f8;
  --cycle-period: #f8d5e0;
  --cycle-period-active: #efa0b8;
  --cycle-fertile: #eaf5ee;
  --cycle-fertile-text: #3f5346;
  --cycle-ovulation: #fceede;
  --cycle-preperiod: #f4eef3;
  --cycle-preperiod-text: #5a4554;
  --cycle-purple: #ebe6f7;
  --cycle-purple-text: #4f4560;
  --cycle-predicted-border: #b8a8d4;
  --cycle-browse-accent: #f0b0c4;
}

[data-theme="dark"] body {
  background: linear-gradient(135deg, #221a20, #322830);
  color: #f6ecef;
}

[data-theme="dark"] .phoneShell {
  background: #2a2228;
  border-color: rgba(255, 220, 230, 0.1);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .mobileHeader h1,
[data-theme="dark"] .checkInCard h2,
[data-theme="dark"] .profileCard h2,
[data-theme="dark"] .profileIdentityCard h3,
[data-theme="dark"] .settingsRow h3,
[data-theme="dark"] .summaryCard,
[data-theme="dark"] .logComposer,
[data-theme="dark"] .profileCard,
[data-theme="dark"] .profileIdentityCard,
[data-theme="dark"] .checkInCard,
[data-theme="dark"] .settingsRow,
[data-theme="dark"] .authForm,
[data-theme="dark"] .mobileChatPanel,
[data-theme="dark"] .monthCalendarCard,
[data-theme="dark"] .dayEditorSheet {
  background: #352a32;
  color: #f4ece8;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .mobileHeader p,
[data-theme="dark"] .label,
[data-theme="dark"] .settingsRow p,
[data-theme="dark"] .summaryCard p,
[data-theme="dark"] .field span,
[data-theme="dark"] .rangeField span,
[data-theme="dark"] .noteField span {
  color: #ecc8d4;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #17121a;
  color: #f4ece8;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .tabBar {
  background: rgba(26, 20, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

[data-theme="dark"] .tabBar button {
  color: #c8bcc6;
}

[data-theme="dark"] .tabBar button [data-icon] svg {
  stroke: currentColor;
}

[data-theme="dark"] .tabBar button.active {
  color: #2a2228;
  background: linear-gradient(145deg, #f0b8cc, #e8a8bc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tabBar button.active b,
[data-theme="dark"] .tabBar button.active [data-icon] {
  color: #2a2228;
}

[data-theme="dark"] .wideButton {
  background: linear-gradient(135deg, #f0b8cc 0%, #e8a8bc 48%, #e098b0 100%);
  color: #2a2228;
}

[data-theme="dark"] .mobileMessage.luma {
  background: #2d2430;
  color: #f4ece8;
}

[data-theme="dark"] .mobileMessage.you {
  background: #d888a4;
}

[data-theme="dark"] .offlineBanner,
[data-theme="dark"] .pwaPrompt {
  background: linear-gradient(180deg, #2e242a 0%, #3a2c34 100%);
  color: #f8e8ee;
  border-color: rgba(232, 168, 188, 0.28);
}

[data-theme="dark"] .monthCalendarDay.period,
[data-theme="moonlit"] .monthCalendarDay.period {
  background: linear-gradient(145deg, #fce8ee, var(--cycle-period));
  color: #6a4050;
  border-color: rgba(232, 168, 188, 0.35);
}

[data-theme="dark"] .monthCalendarDay.active,
[data-theme="moonlit"] .monthCalendarDay.active {
  background: linear-gradient(145deg, #f5b8ca, var(--cycle-period-active));
  color: #5a3040;
  border-color: rgba(224, 130, 160, 0.45);
}

[data-theme="dark"] .monthCalendarDay.predicted,
[data-theme="moonlit"] .monthCalendarDay.predicted {
  background: linear-gradient(145deg, #f5f2fb, var(--cycle-purple));
  color: var(--cycle-purple-text);
  border: 2px dashed var(--cycle-predicted-border);
}

[data-theme="dark"] .monthCalendarDay.fertile,
[data-theme="moonlit"] .monthCalendarDay.fertile {
  background: linear-gradient(145deg, #f3faf5, var(--cycle-fertile));
  color: var(--cycle-fertile-text);
  border-color: rgba(160, 196, 172, 0.4);
}

[data-theme="dark"] .monthCalendarDay.ovulation,
[data-theme="moonlit"] .monthCalendarDay.ovulation {
  background: linear-gradient(145deg, #fdf6ee, var(--cycle-ovulation));
  color: #6a4e40;
  border-color: rgba(232, 188, 160, 0.4);
}

[data-theme="dark"] .monthCalendarDay.tender,
[data-theme="moonlit"] .monthCalendarDay.tender {
  background: linear-gradient(145deg, #faf6f9, var(--cycle-preperiod));
  color: var(--cycle-preperiod-text);
  border-color: rgba(200, 176, 196, 0.4);
}

[data-theme="dark"] .mobileCycleDay.period,
[data-theme="moonlit"] .mobileCycleDay.period {
  background: var(--cycle-period);
  color: #6a4050;
}

[data-theme="dark"] .mobileCycleDay.active,
[data-theme="moonlit"] .mobileCycleDay.active {
  background: var(--cycle-period-active);
  color: #5a3040;
  box-shadow: inset 0 0 0 2px rgba(160, 80, 110, 0.35);
}

[data-theme="dark"] .mobileCycleDay.fertile,
[data-theme="moonlit"] .mobileCycleDay.fertile {
  background: var(--cycle-fertile);
  color: var(--cycle-fertile-text);
}

[data-theme="dark"] .mobileCycleDay.ovulation,
[data-theme="moonlit"] .mobileCycleDay.ovulation {
  background: var(--cycle-ovulation);
  color: #6a4e40;
}

[data-theme="dark"] .mobileCycleDay.tender,
[data-theme="moonlit"] .mobileCycleDay.tender {
  background: var(--cycle-preperiod);
  color: var(--cycle-preperiod-text);
}

[data-theme="dark"] .mobileCycleDay.predicted,
[data-theme="moonlit"] .mobileCycleDay.predicted {
  background: var(--cycle-purple);
  color: var(--cycle-purple-text);
  border: 1.5px dashed var(--cycle-predicted-border);
}

[data-theme="dark"] .mobileCycleDay.steady,
[data-theme="moonlit"] .mobileCycleDay.steady {
  background: var(--cycle-neutral);
  color: var(--cycle-neutral-text);
}

[data-theme="dark"] .welcomeGuide article,
[data-theme="dark"] .cycleEmptyState {
  background: rgba(43, 38, 43, 0.94);
  border-color: rgba(231, 219, 228, 0.16);
  color: #f5edf3;
}

[data-theme="dark"] .welcomeGuide strong,
[data-theme="dark"] .cycleEmptyState h3 {
  color: #fff8fc;
}

[data-theme="dark"] .welcomeGuide span,
[data-theme="dark"] .cycleEmptyState p:not(.label) {
  color: #decfd8;
}

[data-theme="dark"] .mobileCycleDay.period { background: #7a5550; color: #f4ece8; }
[data-theme="dark"] .mobileCycleDay.active { background: #6b4540; color: #fff; }
[data-theme="dark"] .mobileCycleDay.fertile { background: #4a5c44; color: #e7f0e4; }
[data-theme="dark"] .mobileCycleDay.ovulation { background: #a06d42; color: #fff; }
[data-theme="dark"] .mobileCycleDay.tender { background: #6b5a48; color: #f0e8df; }
[data-theme="dark"] .mobileCycleDay.steady { background: #3a3530; color: #e8e0d8; }

[data-theme="dark"] .loadingOverlay {
  background: rgba(10, 8, 12, 0.72);
}

[data-theme="dark"] .careIntro,
[data-theme="dark"] .careArticleCard p,
[data-theme="dark"] .careEmpty,
[data-theme="dark"] .careReaderHeader p:last-child,
[data-theme="dark"] .learnVisualFeature p:last-child {
  color: #d8c4cf;
}

[data-theme="dark"] .careArticleCategory,
[data-theme="dark"] .careArticleMeta {
  color: #f0b4bd;
}

[data-theme="dark"] .careSearchInput,
[data-theme="dark"] .careFilterBtn,
[data-theme="dark"] .careArticleCard,
[data-theme="dark"] .careCategoryCard,
[data-theme="dark"] .learnVisualFeature,
[data-theme="dark"] .careLumaShortcuts,
[data-theme="dark"] .careReaderSheet,
[data-theme="dark"] .lumaPromptGroupRow button {
  background: #352a32;
  border-color: rgba(255, 255, 255, 0.08);
  color: #f4ece8;
}

[data-theme="dark"] .careSectionTitle,
[data-theme="dark"] .careCategoryCardBody em,
[data-theme="dark"] .lumaPromptGroup h3 {
  color: #b9aab2;
}

[data-theme="dark"] .careCategoryCardBody strong,
[data-theme="dark"] .careCategoryHeading,
[data-theme="dark"] .learnVisualFeature h2 {
  color: #f4ece8;
}

[data-theme="dark"] .careCategoryCardBody span,
[data-theme="dark"] .careCategoryDesc {
  color: #d8c4cf;
}

[data-theme="dark"] .careCategoryIcon {
  background: rgba(232, 168, 188, 0.18);
  color: #ecc8d4;
}

[data-theme="dark"] .careBackBtn {
  color: #ecc8d4;
}

[data-theme="dark"] .careFilterBtn.active {
  background: #e8a8bc;
  border-color: #e8a8bc;
  color: #2a2228;
}

[data-theme="dark"] .careReaderBack {
  background: rgba(255, 255, 255, 0.08);
  color: #f4ece8;
}

[data-theme="dark"] .careReaderBody section p {
  color: #e8dde3;
}

[data-theme="dark"] .careReaderOverlay {
  background: rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .todayPhaseArticles,
[data-theme="dark"] .todayArticleCard {
  background: #352a32;
  border-color: rgba(255, 255, 255, 0.08);
  color: #f4ece8;
}

[data-theme="dark"] .todayArticleCard p,
[data-theme="dark"] .todayArticleEmpty {
  color: #b9aab2;
}

.paywallHeader {
  margin-top: 40px;
}

.paywallSubtitle {
  margin: 10px 0 0;
  max-width: 36ch;
  color: #6b5d66;
  font-family: var(--luma-font-sans, "Nunito", ui-sans-serif, system-ui, sans-serif);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-transform: none;
}

.paywallCard {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: var(--luma-glass-surface);
  border: 1px solid var(--luma-ai-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--luma-glass-surface-shadow);
  color: var(--luma-on-glass);
}

.paywallFeatureList {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--luma-on-glass);
  line-height: 1.6;
}

.paywallFeatureList li + li {
  margin-top: 8px;
}

.paywallTrialNote {
  margin: 0 0 16px;
  color: var(--luma-on-glass-muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.paywallActions {
  display: grid;
  gap: 10px;
}

.paywallActions .wideButton[hidden],
#paywallRestoreBtn[hidden] {
  display: none !important;
}

.paywallSecondaryBtn {
  background: #5c6b8a;
}

.paywallProBtn {
  background: #c17f59;
}

.paywallProYearlyBtn {
  background: #9a5b3d;
}

.paywallProHighlight {
  box-shadow: 0 0 0 3px rgba(193, 127, 89, 0.35);
}

.paywallFootnote {
  margin: 14px 0 0;
  color: #8a7a84;
  font-size: 0.82rem;
  line-height: 1.45;
}

.paywallLinks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
}

.paywallCloseBtn {
  color: #4a3a44;
}

.textLinkBtn {
  border: 0;
  background: none;
  color: var(--luma-link);
  font-weight: 800;
  font-size: 0.92rem;
  min-height: 44px;
  padding: 10px 4px;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.textLinkBtn:active {
  opacity: 0.75;
  transform: scale(0.98);
}

body.paywallLocked .tabBar {
  display: none;
}

[data-theme="dark"] .paywallCard {
  background: #241d22;
  border-color: #3a2d35;
}

[data-theme="dark"] .paywallSubtitle,
[data-theme="dark"] .paywallTrialNote,
[data-theme="dark"] .paywallFootnote {
  color: #b9aab2;
}

[data-theme="dark"] .paywallFeatureList {
  color: #ddd2d8;
}

.periodHistoryCard,
.logDetailFields,
.bbtChartSection {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: var(--luma-surface-panel);
  border: 1px solid var(--luma-border);
  color: var(--luma-text);
}

.periodHistoryList {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.periodHistoryList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0e4ea;
}

.periodHistoryCount {
  margin: 10px 0 16px;
  color: #6b5d66;
  font-size: 0.92rem;
}

.periodHistoryActions {
  display: grid;
  gap: 10px;
}

.logDetailFields {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.logDetailFields select,
.logDetailFields input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--luma-border);
  background: var(--luma-input-bg);
  color: var(--luma-text);
  font: inherit;
}

.logDetailFields select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-color: var(--luma-input-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a4a3a' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
  cursor: pointer;
}

.logDetailFields select::-ms-expand {
  display: none;
}

[data-theme="dark"] .logDetailFields select,
[data-theme="dark"] .logDetailFields input[type="number"] {
  background-color: #17121a;
  color: #f4ece8;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .logDetailFields select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ecc8d4' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
}

[data-theme="dark"] .logDetailFields select option {
  color: #f4ece8;
  background: #17121a;
}

[data-theme="dark"] .logDetailFields input[type="number"]::placeholder {
  color: #ecc8d4;
  opacity: 1;
}

.bbtChartSection .bbtChartHint {
  margin: 0 0 12px;
  color: #6b5d66;
  line-height: 1.45;
  font-size: 0.92rem;
}

.bbtChart {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #fdf8fb;
}

.bbtChart .bbtGridLine {
  stroke: #eadde6;
  stroke-width: 1;
}

.bbtChart .bbtLine {
  fill: none;
  stroke: #d888a4;
  stroke-width: 2.5;
}

.bbtChart .bbtCoverline {
  stroke: #5c6b8a;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.bbtChart .bbtDot {
  fill: #d888a4;
}

.bbtChart .bbtLabel {
  fill: #6a5d57;
  font-size: 9px;
  font-weight: 700;
}

.bbtChart .bbtAxisLabel {
  fill: #7d6e78;
  font-size: 8.5px;
  font-weight: 800;
}

.bbtChart .bbtTempAxisLabel {
  fill: #8a7d77;
  font-size: 8px;
  font-weight: 700;
}

.bbtEmptyLabel {
  fill: #6a5d57;
  font-size: 12px;
  font-weight: 800;
}

.bbtEmptySubLabel {
  fill: #8a7d77;
  font-size: 10px;
  font-weight: 600;
}

[data-theme="dark"] .bbtEmptyLabel,
[data-theme="dark"] .bbtEmptySubLabel {
  fill: #d8c8d0;
}

[data-theme="dark"] .bbtChart .bbtLabel {
  fill: #d8c8d0;
}

.toggleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--luma-on-glass-heading);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.toggleRow:has(input:checked) {
  border-color: rgba(107, 53, 88, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 230, 238, 0.82));
}

.toggleRow input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #d07090;
}

.medicationRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid var(--luma-card-border);
  border-radius: 18px;
  background: rgba(255, 252, 247, .92);
  box-shadow: 0 12px 28px rgba(64, 45, 36, .08);
}

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

.medicationRow span {
  display: inline-flex;
  margin: 0 0 6px;
  color: var(--luma-plum);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.medicationRow h3 {
  margin: 0 0 4px;
  color: var(--luma-text);
  font-size: 1.08rem;
}

.medicationRow p {
  margin: 0;
  color: var(--luma-text-muted);
  font-size: 0.88rem;
}

.medicationRow button {
  border: 0;
  background: #fff0f2;
  color: #9a4148;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
}

.medEmptyState,
.medicationComposer {
  border: 1px solid var(--luma-card-border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 253, 248, .98), rgba(252, 244, 239, .94));
  box-shadow: 0 18px 44px rgba(64, 45, 36, .1);
}

.medEmptyState {
  margin: 0 0 16px;
  padding: 18px;
}

.medEmptyState h2,
.medComposerIntro h2 {
  margin: 0 0 8px;
  color: var(--luma-text);
  font-size: 1.28rem;
  line-height: 1.1;
}

.medEmptyState p,
.medComposerIntro p:not(.label) {
  margin: 0;
  color: var(--luma-text-muted);
  font-size: .95rem;
  line-height: 1.45;
}

.medicationComposer {
  padding: 18px;
}

.medComposerIntro {
  margin: 0 0 16px;
}

.medSearchField input {
  min-height: 54px;
  font-size: 1rem;
}

.medComboShell {
  position: relative;
  z-index: 1;
}

.medSearchField .medComboShell {
  z-index: 3;
}

.medFormGrid .field:has(.medComboShell:focus-within) {
  z-index: 2;
}

.medicationComposer {
  overflow: visible;
}

.medComboList {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: min(240px, 42vh);
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--luma-border);
  border-radius: 16px;
  background: var(--luma-surface-panel);
  color: var(--luma-text);
  box-shadow: 0 16px 36px rgba(42, 30, 38, 0.18);
}

.medComboList li {
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.25;
  cursor: pointer;
  touch-action: manipulation;
}

.medComboList li[aria-selected="true"],
.medComboList li:hover {
  background: var(--luma-accent-teal-soft);
  color: var(--luma-link);
}

[data-theme="dark"] .medComboList,
[data-theme="moonlit"] .medComboList {
  background: var(--luma-surface-elevated);
  border-color: var(--luma-ai-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  color: var(--luma-on-glass);
}

[data-theme="dark"] .medComboList li[aria-selected="true"],
[data-theme="dark"] .medComboList li:hover,
[data-theme="moonlit"] .medComboList li[aria-selected="true"],
[data-theme="moonlit"] .medComboList li:hover {
  background: rgba(143, 212, 203, 0.16);
  color: var(--luma-accent-teal);
}

.medFormGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 12px 0 16px;
}

.medicationComposer .field {
  display: grid;
  gap: 7px;
}

.medicationComposer .field span {
  color: var(--luma-text);
  font-size: .9rem;
  font-weight: 900;
}

.medicationComposer input,
.medicationComposer select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--luma-card-border);
  border-radius: 16px;
  background: rgba(255, 252, 247, .96);
  color: var(--luma-text);
  font: inherit;
  font-weight: 800;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.medicationComposer select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 12px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

@media (min-width: 620px) {
  .medFormGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.medAdherenceCard {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--luma-border);
  border-radius: 18px;
  background: var(--luma-surface-card);
}

.medTodayActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.medTodayChip {
  border: 1px solid var(--luma-border-soft);
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--luma-surface-elevated);
  color: var(--luma-text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.medTodayChip--taken,
.medMiniChip--taken {
  background: #eaf7f1;
  border-color: #b8dfca;
  color: #1f6f54;
}

.medTodayChip--skipped,
.medMiniChip--skipped {
  background: #fff2ee;
  border-color: #efc4b8;
  color: #9a4a34;
}

.medCalendarGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.medCalendarDay {
  min-height: 62px;
  padding: 6px;
  border: 1px solid var(--luma-border-soft);
  border-radius: 12px;
  background: var(--luma-surface-elevated);
}

.medCalendarDay--blank {
  opacity: 0;
}

.medCalendarDay--today {
  outline: 2px solid var(--luma-accent-teal);
}

.medCalendarDay strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--luma-text-heading);
}

.medMiniChipRow {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.medMiniChip {
  width: 18px;
  height: 18px;
  border: 1px solid var(--luma-border-soft);
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: var(--luma-text-muted);
  font-size: 9px;
  font-weight: 900;
}

[data-theme="dark"] .periodHistoryCard,
[data-theme="dark"] .logDetailFields,
[data-theme="dark"] .bbtChartSection,
[data-theme="dark"] .yearCalendarPanel,
[data-theme="dark"] .predictionToggle {
  background: #241d22;
  border-color: #3a2d35;
  color: #f4ece8;
}

[data-theme="dark"] .predictionToggle label,
[data-theme="dark"] .yearCalendarPanel h2,
[data-theme="dark"] .yearCalendarPanel h3 {
  color: #f4ece8;
}

[data-theme="dark"] .bbtChart {
  background: #1c161a;
}

/* Phase 1 — cycle day banner (browse-only, minimal glass) */
.cycleDayBanner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
  padding: calc(6px + env(safe-area-inset-top)) 14px 6px;
  background: var(--luma-glass-surface, rgba(255, 255, 255, 0.55));
  border-bottom: 1px solid var(--luma-ai-border, rgba(90, 60, 80, 0.12));
  backdrop-filter: blur(14px) saturate(1.04);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
  box-shadow: none;
}

.cycleDayBanner[hidden] {
  display: none !important;
}

.cycleDayBannerMain {
  display: flex;
  flex: 1;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  color: var(--luma-on-glass-muted, var(--luma-text-muted));
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cycleDayBannerMain strong {
  flex-shrink: 0;
  color: var(--luma-on-glass-heading, #2b2523);
  font-size: 12px;
  font-weight: 650;
}

.cycleDayBannerMain span:not(.cycleDayBannerDot) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cycleDayBannerDot {
  opacity: .4;
}

.cycleDayBanner--browse {
  background: var(--luma-glass-surface, rgba(255, 255, 255, 0.62));
  border-bottom-color: var(--luma-ai-border, rgba(90, 60, 80, 0.14));
}

.cycleDayBanner--browse .cycleDayBannerMain strong,
.cycleDayBanner--browse .cycleDayBannerMain span:not(.cycleDayBannerDot) {
  color: var(--luma-on-glass-heading, #2b2523);
}

.cycleDayReturnBtn {
  flex-shrink: 0;
  margin: 0;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid var(--luma-ai-border, rgba(90, 60, 80, 0.18));
  border-radius: 999px;
  background: transparent;
  color: var(--luma-accent, #d888a4);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cycleDayReturnBtn:active {
  background: rgba(122, 63, 106, 0.08);
}

.cycleReturnTodayBtn {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 16px;
  background: #d888a4;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  width: auto;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease;
}

.cycleReturnTodayBtn:active {
  transform: scale(0.98);
}

.cycleBrowseHint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--cycle-browse-accent);
  line-height: 1.4;
  max-width: 260px;
}

.cycleGridHint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--luma-text-secondary);
  line-height: 1.35;
}

.cycleDayBrowseMode .cycleSummary {
  border-color: #dcc4c0;
  background: var(--luma-surface-card);
}

.cycleDayBrowseMode .cycleSummary h2,
.cycleDayBrowseMode #mobileCycleStatus {
  color: #4b2f42;
}

.cycleDayBrowseMode .cycleSummary .label {
  color: #a85878;
}

.cycleDayBrowseMode .cycleSummary p,
.cycleDayBrowseMode #mobileCyclePhase {
  color: #7f506f;
}

.cycleDayBrowseMode #cycleModePanel,
.cycleDayBrowseMode #cycleModePanelDetails {
  display: none;
}

.cycleDayBrowseMode #todayScreen > .mobileHeader h1,
.cycleDayBrowseMode #todayScreen > .homeDaySummary h2 {
  margin: 0 0 4px;
  font-size: clamp(1.2rem, 4.5vw, 1.45rem);
  line-height: 1.28;
}

.cycleDayBrowseMode #todayScreen > .mobileHeader p {
  margin: 0 0 4px;
}

.cycleDayBrowseMode #todayScreen .homeLogHint {
  display: none;
}

.cycleDayBrowseMode #todayScreen .homeLogCta {
  margin-bottom: 10px;
}

.cycleDayBrowseMode .cycleSummary {
  padding: 20px 18px;
}

.cycleDayBrowseMode .cycleSummary h2,
.cycleDayBrowseMode #mobileCycleStatus {
  font-size: clamp(1.2rem, 4.5vw, 1.45rem);
  line-height: 1.28;
}

.cycleDayBrowseMode .orbitalDay {
  width: 96px;
  height: 96px;
  font-size: 34px;
}

.syncDebugCard {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #e5c8d7;
  border-radius: 14px;
  background: #fff7fb;
  color: #4b2f42;
  box-shadow: 0 8px 18px rgba(122, 63, 106, 0.08);
  display: none;
}

.syncDebugCard strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a85878;
}

.syncDebugCard span {
  display: block;
  font-size: 0.86rem;
  line-height: 1.35;
}

[data-theme="dark"] .syncDebugCard {
  background: #241b22;
  border-color: #5a3850;
  color: #f2e4ed;
}

.phoneShell:has(#cycleDayBanner:not([hidden])) .appScreen {
  padding-top: calc(28px + env(safe-area-inset-top));
}

.homeLogCta {
  margin-bottom: 16px;
}

.homePrimaryBtn {
  margin-bottom: 8px;
}

.homeLogHint {
  margin: 0;
  font-size: 13px;
  color: var(--luma-text-secondary);
}

.powerToolsStrip {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--luma-border);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--luma-surface-card) 0%, var(--luma-surface-elevated) 100%);
  box-shadow: 0 12px 28px rgba(65, 43, 35, .08);
}

.powerToolsHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.powerToolsHeader .label {
  margin: 0;
}

.powerToolsHeader span {
  color: var(--luma-text-muted);
  font-size: 12px;
  font-weight: 700;
}

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

.powerToolBtn {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 76px;
  padding: 10px 8px;
  border: 1px solid var(--luma-border-soft);
  border-radius: 16px;
  background: var(--luma-surface-card);
  color: var(--luma-text-heading);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.powerToolBtn span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 42%, #fff);
  color: var(--luma-accent-text, #a85878);
}

.powerToolBtn strong {
  font-size: 12px;
  line-height: 1.2;
}

.homePhaseCard,
.homePatternMemoryCard,
.homeTodayPlanCard,
.homeInsightsCard,
.homeLumaStrip,
.homeAlertsCard {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--luma-border);
  border-radius: 22px;
  background: var(--luma-surface-card);
  color: var(--luma-text);
  box-shadow: 0 16px 34px rgba(65, 43, 35, .08);
}

.homePhaseCard h2,
.homePatternMemoryCard h2,
.homeTodayPlanCard h2,
.homeInsightsCard h2,
.homeLumaStrip h2,
.homeAlertsCard h2 {
  margin-bottom: 6px;
  color: var(--luma-text-heading);
}

.homeTodayPlanCard {
  background: var(--luma-surface-card);
  border-color: var(--luma-border);
}

.todayPlanLead {
  margin: 0 0 14px;
  color: var(--luma-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.todayPlanTile {
  min-height: 96px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--luma-border-soft);
  background: var(--luma-surface-elevated);
  color: var(--luma-text);
}

.todayPlanTile span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--luma-accent-teal-soft);
  color: var(--luma-accent-teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.todayPlanTile strong {
  display: block;
  margin-top: 10px;
  color: var(--luma-text-heading);
  font-size: 15px;
  line-height: 1.25;
}

.todayPlanTile p {
  margin: 6px 0 0;
  color: var(--luma-text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.todayPlanActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.todayPlanPrimary,
.todayPlanSecondary {
  min-height: 46px;
  border-radius: 999px;
  border: 0;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
}

.todayPlanPrimary {
  background: #7eb8a8;
  color: #fff;
}

.todayPlanSecondary {
  background: var(--luma-accent-teal-soft);
  color: var(--luma-link);
}

@media (max-width: 390px) {
  .todayPlanGrid,
  .todayPlanActions {
    grid-template-columns: 1fr;
  }
}

.homeInsightsCard {
  background: linear-gradient(180deg, var(--luma-surface-card) 0%, var(--luma-surface-elevated) 100%);
}

.insightsLead,
.homeProactiveSummary {
  margin: 0 0 12px;
  color: var(--luma-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.homeModeBanner {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.homeModeBanner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.homeModeBanner p {
  margin: 0;
}

.homeModeBanner--tww {
  background: #f8f0fb;
  border: 1px solid #e5d0ef;
  color: #5c3f58;
}

.homeModeBanner--safety {
  background: #fff5f0;
  border: 1px solid #f0d4c8;
  color: #6b4030;
}

.homeModeBanner--irregular {
  background: #fff5f3;
  border: 1px solid #f0c8c8;
  color: #6b3535;
}

.twwSupportFlow {
  margin: 0 0 12px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, #e8a8bc 28%, transparent);
  border-radius: 22px;
  background: linear-gradient(165deg, #fff4f7 0%, #fff 100%);
  color: #4a3040;
}

.twwSupportFlow--calm {
  background: #fff4f7;
}

.twwSupportFlow h3 {
  margin: 4px 0 8px;
  font-size: 16px;
}

.twwSupportFlow p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
}

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

.twwActionRow button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #e8a8bc;
  color: #4a3040;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.homeMedDueLine {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #4a3040;
}

.medQuickChips,
.medEmptyChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.medQuickChip {
  border: 1px solid color-mix(in srgb, #e8a8bc 35%, transparent);
  background: #fff4f7;
  color: #4a3040;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.medRemindRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #4a3040;
  font-size: 14px;
  font-weight: 700;
}

.pathwayActiveBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff4f7;
  border: 1px solid color-mix(in srgb, #e8a8bc 28%, transparent);
  color: #4a3040;
}

.pathwayActiveBar p {
  margin: 0;
  font-size: 13px;
  font-weight: 750;
}

.pathwayActiveThrough {
  margin: 6px 0 0 !important;
  font-size: 12px !important;
  font-weight: 750;
  color: #4a3040;
}

.cycleReviewBlock {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--luma-border-soft);
  background: var(--luma-surface-elevated);
  font-size: 13px;
  line-height: 1.45;
  color: var(--luma-text-secondary);
}

.cycleReviewBlock p {
  margin: 0 0 8px;
}

.cycleReviewBlock p:last-child {
  margin-bottom: 0;
}

.cycleReviewMeta {
  color: var(--luma-text-heading);
}

.insightsActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}

.homeRemindersSurface {
  margin: 0 0 16px;
  padding: 18px 16px 16px;
  border: 1px solid var(--luma-ai-border, var(--luma-border));
  border-radius: 24px;
  background: var(--luma-glass-surface, var(--luma-surface-card));
  box-shadow: var(--luma-glass-surface-shadow, none);
}

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

.homeRemindersHead .label {
  margin: 0 0 2px;
}

.homeRemindersHead h2 {
  margin: 0;
  font-family: var(--luma-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--luma-text-heading);
}

.homeRemindersCountPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(232, 168, 188, 0.28);
  color: #7a4058;
  font-size: 12px;
  font-weight: 750;
}

.homeRemindersSurface .homeAlertsDesc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

.homeRemindersSurface .todayAlertsList {
  display: grid;
  gap: 10px;
}

.homeRemindersDropdown {
  margin-top: 12px;
}

.homeRemindersDropdown .homeAlertsDropdownBody {
  padding: 0 14px 14px;
}

.homeRemindersSurface .homeAlertsManageLink {
  display: inline-flex;
  margin-top: 12px;
}

html[data-theme="dark"] .phoneShell .homeRemindersCountPill,
html[data-theme="moonlit"] .phoneShell .homeRemindersCountPill {
  background: rgba(240, 176, 196, 0.2);
  color: #f4dce6;
}

html[data-theme="moonlit"] .phoneShell .homeRemindersCountPill {
  background: rgba(200, 184, 232, 0.22);
  color: #e8dff8;
}

.homeAlertsWrap {
  margin-bottom: 16px;
  border: 1px solid var(--luma-border);
  border-radius: 22px;
  background: var(--luma-surface-card);
  overflow: hidden;
}

.homeAlertsWrapSummary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 800;
  color: var(--luma-text-heading);
  list-style: none;
}

.homeAlertsWrapSummary::-webkit-details-marker {
  display: none;
}

.homeAlertsWrap[open] > .homeAlertsWrapSummary {
  border-bottom: 1px solid var(--luma-border-soft, rgba(126, 63, 106, 0.12));
}

.homeAlertsWrap .homeAlertsCard {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  /* Match wrap summary horizontal inset so titles line up */
  padding: 14px 20px 18px;
}

/* Outer summary already titles the section — hide the duplicate label */
.homeAlertsWrap .homeAlertsCard > .cardTop .label {
  display: none;
}

.homeAlertsWrap .homeAlertsCard > .cardTop {
  margin-bottom: 14px;
  align-items: flex-start;
}

.homeAlertsWrap .homeAlertsCard > .cardTop h2 {
  margin: 0 0 4px;
  line-height: 1.2;
}

.homeAlertsWrap .homeAlertsManageLink {
  margin-top: 4px;
  padding: 4px 0 0;
}

.selectedDateChipBar.cycleDayBanner {
  border-bottom-width: 2px;
}

.cycleDayBanner--browse.selectedDateChipBar {
  background: rgba(255, 245, 243, 0.98);
  border-bottom-color: #e8b8b8;
}

.lumaIrregularTracking .todayTrackingModeChip[data-mode="irregular"] {
  background: #fff0ee;
  border-color: #e8a8a8;
  color: #8b3a3a;
}

.trackSecondaryBtn {
  margin-top: 4px;
  background: var(--luma-accent-teal-soft);
  color: var(--luma-link);
}

.clinicalReportHero {
  margin: 0 0 18px;
  padding: 20px 18px;
  border-radius: 22px;
  border: 2px solid #c8e3da;
  background: linear-gradient(135deg, #eef8f5 0%, #fff 55%);
  box-shadow: 0 16px 34px rgba(31, 111, 105, 0.1);
}

.clinicalReportHero h2 {
  margin: 6px 0 8px;
  color: #3f2e3b;
}

.clinicalReportHero p {
  margin: 0 0 14px;
  color: #5f514c;
  font-size: 14px;
  line-height: 1.5;
}

.clinicalReportHero .label {
  color: #a85878;
}

.learnToolsGrid {
  display: grid;
  gap: 10px;
}

.learnToolCard {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--luma-border);
  background: var(--luma-surface-card);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
}

.learnToolCard h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--luma-text-heading);
}

.learnToolCard p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--luma-text-muted);
}

.learnToolCard--preview {
  opacity: 0.92;
  border-style: dashed;
}

.previewBadge {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--luma-accent-teal-soft);
  color: var(--luma-accent-teal);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.learnToolCard--preview .previewBadge {
  background: #f5f0ea;
  color: #8a735f;
}

.redFlagsList {
  margin: 0;
  padding-left: 18px;
  color: var(--luma-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.redFlagsList li {
  margin-bottom: 8px;
}

.redFlagsList li:last-child {
  margin-bottom: 0;
}

.settingsSectionLead {
  margin: -4px 0 10px;
  color: var(--luma-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.launchReadinessPanel {
  display: grid;
  gap: 8px;
}

.launchReadinessSummary {
  margin: 0 0 4px;
  color: var(--luma-text-muted);
  font-size: 13px;
}

.launchReadinessItem {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--luma-border-soft);
  border-radius: 14px;
  background: var(--luma-surface-elevated);
}

.launchReadinessItem > span {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.launchReadinessItem.ready > span {
  background: #eaf7f1;
  color: #1f6f54;
}

.launchReadinessItem.blocked > span {
  background: #fff2ee;
  color: #9a4a34;
}

.launchReadinessItem strong {
  display: block;
  color: var(--luma-text-heading);
  font-size: 13px;
}

.launchReadinessItem p {
  margin: 2px 0 0;
  color: var(--luma-text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.homeAlertsDesc {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--luma-text-secondary);
}

.homeAlertsDropdown {
  margin-top: 10px;
  border: 1px solid var(--luma-border-soft);
  border-radius: 18px;
  background: var(--luma-surface-card-alt);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  color: var(--luma-text);
}

.homeAlertsDropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 800;
  color: var(--luma-text-heading);
  min-height: 58px;
}

.homeAlertsDropdown summary::-webkit-details-marker {
  display: none;
}

.homeAlertsSummaryMain,
.homeAlertsSummaryMeta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.homeAlertsSummaryMain {
  font-size: 15px;
}

.homeAlertsIcon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--luma-accent-teal);
  background: var(--luma-accent-teal-soft);
}

.homeAlertsIcon svg {
  width: 17px;
  height: 17px;
}

.homeAlertsChevron {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--luma-surface-card);
  color: var(--luma-text-secondary);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(65, 43, 35, 0.08);
}

.homeAlertsDropdown[open] .homeAlertsChevron {
  font-size: 0;
  color: #7eb8a8;
}

.homeAlertsDropdown[open] .homeAlertsChevron::before {
  content: '-';
  font-size: 20px;
}

.homeAlertsDropdownBody {
  padding: 2px 14px 14px 56px;
}

.homeAlertsCount {
  min-width: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eadfd3;
  color: #5c4a42;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.homeAlertsCount:empty {
  display: none;
}

.settingsDetailsSection {
  margin-top: 12px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 20px;
  background: var(--luma-glass-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--luma-glass-surface-shadow);
  overflow: hidden;
}

.settingsDetailsSection > summary {
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 850;
  color: var(--luma-on-glass-heading);
  letter-spacing: -0.01em;
  transition: background 0.18s ease;
}

.settingsDetailsSection[open] > summary {
  background: linear-gradient(180deg, rgba(168, 130, 154, 0.1), rgba(255, 255, 255, 0.04));
  border-bottom: 1px solid rgba(90, 60, 80, 0.1);
}

.settingsDetailsSection > summary::-webkit-details-marker {
  display: none;
}

.settingsDetailsSection > summary::after {
  content: '+';
  float: right;
  color: var(--luma-on-glass-muted);
  font-weight: 900;
}

.settingsDetailsSection[open] > summary::after {
  content: '−';
  color: var(--luma-on-glass-link);
}

.settingsDetailsSection .notificationSubsection {
  margin-top: 0;
  padding: 14px 16px 16px;
  border-top: none;
}

.todayAlertsList {
  display: grid;
  gap: 8px;
}

.todayAlertItem {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e4d9ce;
  border-radius: 16px;
  background: #fbf7f0;
}

.todayAlertItem--custom {
  background: #fffaf4;
  border-color: #dfd1c5;
}

.todayAlertItem--cycle {
  background: #f3ebf5;
  border-color: #dccde3;
}

.todayAlertItem--medication {
  background: #e8f2f0;
  border-color: #c8ddd8;
}

.todayAlertItem--later {
  opacity: 1;
}

.todayAlertItem--later .todayAlertBody strong,
.todayAlertItem--later .todayAlertBody p,
.todayAlertItem--later .todayAlertTime {
  opacity: 0.72;
}

.todayAlertItem--stacked {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
}

.todayAlertItem--stacked .todayAlertBody {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.todayAlertItem--stacked .todayAlertBadge--status {
  align-self: center;
  margin-top: 6px;
}

.todayAlertTime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-width: 4.6rem;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(168, 88, 120, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 248, 252, 0.96), rgba(248, 228, 236, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  font-family: var(--luma-font-sans, "Nunito", ui-sans-serif, system-ui, sans-serif);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #8a4a68;
  white-space: nowrap;
}

.todayAlertBody strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
  color: #3f3431;
}

.todayAlertBody p {
  margin: 0;
  font-size: 12px;
  color: var(--luma-text-muted);
}

.todayAlertItem--custom .todayAlertTime {
  color: #a85878;
}

.todayAlertItem--custom .todayAlertBody strong {
  color: #4b2f42;
}

.todayAlertItem--custom .todayAlertBody p {
  color: #5f514c;
}

.todayAlertBadge,
.todayAlertToggle {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.1s ease;
}

.todayAlertBadge--info {
  cursor: default;
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  min-width: 58px;
  padding: 0 12px;
  line-height: 1;
}

.todayAlertBadge--action {
  color: #fff;
  background: #d888a4;
}

.todayAlertBadge--action:active,
.todayAlertToggle:active {
  transform: scale(0.98);
}

.todayAlertBadge {
  color: #fff;
  background: #d888a4;
}

/* Today / Later — identical filled pills, text truly centered */
.todayAlertBadge--status,
.todayAlertItem .todayAlertBadge--info.todayAlertBadge--status,
.todayAlertItem--later .todayAlertBadge--info.todayAlertBadge--status,
#todayScreen .todayAlertBadge--status {
  display: inline-grid !important;
  place-items: center !important;
  align-content: center;
  justify-content: center;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  min-width: 64px;
  padding: 0 14px !important;
  margin: 0;
  border: 0 !important;
  border-radius: 999px;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 750;
  line-height: 1 !important;
  letter-spacing: 0.02em;
  text-align: center;
  color: #fff !important;
  background: #d888a4 !important;
  opacity: 1 !important;
  -webkit-font-smoothing: antialiased;
}

.todayAlertToggle {
  color: #fff;
  background: #6aa898;
}

.todayAlertsEnabled {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.todayAlertsEnabledLabel {
  width: 100%;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 850;
  color: #9a8c84;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.todayAlertsChipHint {
  margin: 0 0 8px;
  font-size: 12px;
  color: #9a8c84;
}

.todayAlertChip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e8ddd2;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  color: #51433e;
  background: #f0e8de;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s ease, transform 0.1s ease;
}

.todayAlertChip:active {
  transform: scale(0.98);
}

.todayAlertChip[aria-pressed="true"] {
  color: #fff;
  background: #d888a4;
  border-color: #6a3560;
}

.todayAlertChip--muted {
  color: var(--luma-text-secondary);
  background: #f5f0ea;
  border-color: #ebe4dc;
}

.todayAlertChip--muted[aria-pressed="true"] {
  color: #fff;
  background: #d888a4;
  border-color: #6a3560;
}

.todayAlertChip--readonly {
  cursor: default;
  pointer-events: none;
}

.todayAlertsChipRow--readonly {
  gap: 8px;
}

.todayAlertItem--readonly {
  grid-template-columns: auto 1fr auto;
}

.todayAlertItem--highlight {
  animation: todayAlertPulse 1.2s ease;
  box-shadow: 0 0 0 2px rgba(124, 92, 191, 0.45);
}

@keyframes todayAlertPulse {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.015); }
}

.todayAlertPushDot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: #5cb85c;
  vertical-align: middle;
}

.homeAlertsPushStatus {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.homeAlertsPushStatus--on {
  color: #3d7a46;
}

.homeAlertsPushStatus--warn {
  color: #9a6b2f;
}

.homeAlertsEmpty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--luma-text-muted, #6b5f58);
}

.homeAlertsManageLink {
  margin-top: 12px;
  padding: 0;
}

.homeAnomalyPanel:not(:empty) {
  margin: 12px 0;
}

.homePatternMemoryCard .patternMemoryLead,
.homeInsightsCard .patternMemoryLead {
  color: var(--luma-text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.patternMemoryList {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.patternMemoryList li {
  padding: 0;
  border-radius: 12px;
  background: transparent;
  border: 0;
}

.patternMemoryBtn {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: #f8f1f6;
  border: 1px solid #ead4df;
  color: #5c3f58;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  font-family: inherit;
  transition: transform 0.1s ease, background 0.15s ease;
}

.patternMemoryBtn:active {
  transform: scale(0.99);
  background: #f0e8ef;
}

.lumaFab--locked {
  box-shadow: 0 0 0 2px rgba(122, 63, 106, 0.35);
}

.patternMemoryUpcoming {
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef6f3;
  border: 1px solid #c8e3da;
  color: #1f4f47;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.patternMemoryAskBtn {
  margin-top: 4px;
}

.homePlanList {
  margin-top: 14px;
}

.homeLearnLink {
  margin-top: 12px;
  padding: 0;
}

.homeLumaDesc {
  margin: 0 0 12px;
  font-size: 14px;
}

.homeLumaPrompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.homeLumaPrompts button {
  border: 1px solid var(--luma-border);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fdf4f8;
  color: #5a4a44;
  font-size: 12px;
  font-weight: 650;
}

.homeLumaOpenBtn {
  margin-top: 4px;
}

.homeCheckInDetails {
  margin-bottom: 8px;
}

.homeCheckInDetails summary {
  cursor: pointer;
  padding: 12px 0;
  color: #a85878;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.homeCheckInDetails summary::-webkit-details-marker {
  display: none;
}

.homeCheckInDetails .checkInCard {
  margin-top: 8px;
}

/* Hide card header when details is open — summary is the heading, no duplicate */
.homeCheckInDetails[open] .checkInCard .cardTop {
  display: none;
}

.cycleAskLuma {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--luma-border);
  border-radius: 22px;
  background: var(--luma-surface-card);
}

.cycleAskLumaHint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--luma-text-secondary);
}

.settingsSectionIntro {
  margin: -4px 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--luma-on-glass-muted);
}

.notificationSubsection {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--luma-ai-border);
  color: var(--luma-on-glass);
}

.notificationSubsection h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--luma-on-glass-heading);
}

.notificationSubsection .field--select {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.notificationSubsection .field--select > span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--luma-on-glass-muted);
}

.modernSelectWrap {
  position: relative;
  display: block;
}

.modernSelectWrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.55;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.modernSelect,
#smartAlertHour.modernSelect {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  margin: 0;
  padding: 14px 42px 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--luma-ai-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 242, 246, 0.88));
  color: var(--luma-on-glass-heading);
  font-family: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 20px rgba(58, 40, 48, 0.06);
  cursor: pointer;
}

.modernSelect:focus,
#smartAlertHour.modernSelect:focus {
  outline: none;
  border-color: rgba(27, 123, 116, 0.42);
  box-shadow:
    0 0 0 3px rgba(27, 123, 116, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .modernSelect,
[data-theme="moonlit"] .modernSelect,
[data-theme="dark"] #smartAlertHour.modernSelect,
[data-theme="moonlit"] #smartAlertHour.modernSelect {
  background: linear-gradient(180deg, rgba(48, 38, 46, 0.96), rgba(34, 26, 32, 0.94));
  color: #f4ece8;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="moonlit"] .modernSelect,
[data-theme="moonlit"] #smartAlertHour.modernSelect {
  background: linear-gradient(180deg, rgba(52, 62, 86, 0.96), rgba(36, 44, 64, 0.94));
  color: #eef2fa;
  border-color: rgba(181, 202, 239, 0.22);
}

html[data-theme="dark"] .phoneShell .notificationSubsection .toggleRow,
html[data-theme="moonlit"] .phoneShell .notificationSubsection .toggleRow {
  color: #f4ece8;
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="moonlit"] .phoneShell .notificationSubsection .toggleRow {
  color: #eef2fa;
}

#notificationsHub .settingsSectionIntro {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--luma-ai-border);
  background: rgba(255, 255, 255, 0.62);
  color: var(--luma-on-glass-muted);
}

[data-theme="dark"] .cycleDayBanner,
[data-theme="dark"] .cycleDayBanner--browse {
  background: rgba(28, 22, 26, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cycleDayBannerMain {
  color: #b8a8b0;
}

[data-theme="dark"] .cycleDayBannerMain strong,
[data-theme="dark"] .cycleDayBanner--browse .cycleDayBannerMain strong,
[data-theme="dark"] .cycleDayBanner--browse .cycleDayBannerMain span:not(.cycleDayBannerDot) {
  color: #f5eef2;
}

[data-theme="dark"] .cycleDayReturnBtn {
  border-color: rgba(255, 255, 255, 0.14);
  color: #e8c4df;
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .homeDaySummary {
  background: linear-gradient(145deg, #3a2f38 0%, #2f2630 52%, #261f27 100%);
  border-color: rgba(232, 168, 188, 0.28);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .homeHeroPhasePill {
  background: rgba(232, 168, 188, 0.2);
  color: #f5eef2;
}

[data-theme="dark"] .homePhaseCard,
[data-theme="dark"] .homePatternMemoryCard,
[data-theme="dark"] .homeLumaStrip,
[data-theme="dark"] .homeAlertsCard,
[data-theme="dark"] .cycleAskLuma {
  background: #241d22;
  border-color: #3a2d35;
}

[data-theme="dark"] .homePatternMemoryCard .patternMemoryLead {
  color: #d8c4cf;
}

[data-theme="dark"] .homeLumaStrip p,
[data-theme="dark"] .homeLumaDesc {
  color: #d8c4cf;
}

[data-theme="dark"] .patternMemoryList li {
  background: #2a1f27;
  border-color: #5a3850;
  color: #f2e4ed;
}

[data-theme="dark"] .patternMemoryUpcoming {
  background: #1a2624;
  border-color: #2f5a52;
  color: #d7efe8;
}

[data-theme="dark"] .homeLumaPrompts button {
  background: #2e2429;
  border-color: #3a2d35;
  color: #d8c8d0;
}

[data-theme="dark"] .notificationSubsection {
  border-top-color: #3a2d35;
}

[data-theme="dark"] .notificationSubsection h3,
[data-theme="dark"] .notificationSubsection .toggleRow,
[data-theme="dark"] .notificationSubsection .field,
[data-theme="dark"] .notificationSubsection .field span {
  color: #f0e6ec;
}

[data-theme="dark"] .cycleBrowseHint {
  color: #a86878;
}

[data-theme="dark"] .cycleGridHint {
  color: #b8a8b0;
}

[data-theme="dark"] .cycleDayBrowseMode .cycleSummary {
  background: var(--luma-surface-card-alt);
  border-color: var(--luma-border);
}

[data-theme="dark"] .cycleDayBrowseMode .cycleSummary h2,
[data-theme="dark"] .cycleDayBrowseMode #mobileCycleStatus {
  color: var(--luma-text-heading);
}

[data-theme="dark"] .cycleDayBrowseMode .cycleSummary .label {
  color: var(--luma-label);
}

[data-theme="dark"] .cycleDayBrowseMode .cycleSummary p,
[data-theme="dark"] .cycleDayBrowseMode #mobileCyclePhase {
  color: var(--luma-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.trackSegmentBar {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  right: 12px;
  left: 12px;
  z-index: 18;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(234, 223, 211, .9);
  border-radius: 16px;
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(58, 39, 34, .1);
}

.trackSegmentBar[hidden] {
  display: none !important;
}

.trackSegmentBar button {
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--luma-text-muted);
  background: transparent;
}

.trackSegmentBar button.active {
  color: #fff;
  background: #463431;
}

.phoneShell:has(#cycleDayBanner:not([hidden])) .trackSegmentBar {
  top: calc(32px + env(safe-area-inset-top));
}

.phoneShell:has(#trackSegmentBar:not([hidden])) .appScreen {
  padding-top: calc(52px + env(safe-area-inset-top));
}

.phoneShell:has(#cycleDayBanner:not([hidden])):has(#trackSegmentBar:not([hidden])) .appScreen {
  padding-top: calc(80px + env(safe-area-inset-top));
}

.lumaFab {
  position: absolute;
  right: 22px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 22;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, #c9a8bc 0%, #9a7a8a 38%, #d888a4 72%, #a86880 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 16px 34px rgba(90, 47, 82, 0.38),
    0 0 28px var(--luma-ai-glow);
  isolation: isolate;
}

.lumaFab[hidden] {
  display: none !important;
}

.lumaFab [data-icon] svg {
  margin: 0 auto;
}

.lumaSheetOverlay {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: grid;
  align-items: end;
  padding: 10px 10px calc(82px + env(safe-area-inset-bottom));
  background: rgba(45, 36, 34, 0.45);
}

.lumaSheetOverlay[hidden] {
  display: none !important;
}

body.lumaSheetOpen {
  overflow: hidden;
}

.lumaSheet {
  max-height: calc(100% - 12px);
  overflow: auto;
  border-radius: 22px 22px 18px 18px;
  background: var(--luma-surface-card);
  box-shadow: 0 18px 48px rgba(58, 39, 34, 0.22);
}

.lumaSheetHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 8px;
  border-bottom: 1px solid rgba(234, 223, 211, 0.7);
}

.lumaSheetHeader h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.lumaSheetClose {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1;
  color: #463431;
  background: rgba(234, 223, 211, 0.45);
}

.lumaSheetChat {
  padding-bottom: 8px;
}

.lumaVoicePanel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(234, 223, 211, 0.85);
}

.lumaVoiceUpgrade {
  display: grid;
  gap: 10px;
}

.lumaVoiceUpgrade p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #6b5d66;
}

.lumaVoiceControls {
  display: grid;
  gap: 12px;
}

.lumaVoiceMeta {
  display: grid;
  gap: 6px;
}

.lumaVoiceBadge {
  display: inline-flex;
  align-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(193, 127, 89, 0.14);
  color: #9a5b3d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lumaVoiceMeta p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #6b5d66;
}

.lumaVoiceActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lumaVoiceToggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #5c4a3d;
}

.lumaVoiceToggle input {
  width: 16px;
  height: 16px;
  accent-color: #c17f59;
}

.lumaVoiceMic {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: #c17f59;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(193, 127, 89, 0.28);
}

.lumaVoiceMic.listening {
  background: #9a5b3d;
  animation: lumaVoicePulse 1.2s ease-in-out infinite;
}

.lumaVoiceMic.speaking {
  background: #8a9a7b;
}

.lumaVoiceMic:disabled {
  opacity: 0.45;
  box-shadow: none;
}

.lumaVoiceUnsupported {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #8a7a84;
}

@keyframes lumaVoicePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.lumaInsightsSection {
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(234, 223, 211, 0.7);
  background: rgba(250, 245, 238, 0.55);
}

.lumaInsightsHeader {
  margin-bottom: 12px;
}

.lumaInsightsSection > summary.lumaInsightsHeader {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.lumaInsightsSection > summary.lumaInsightsHeader .label,
.lumaInsightsSection > summary.lumaInsightsHeader h3,
.lumaInsightsSection > summary.lumaInsightsHeader .lumaInsightsDesc {
  grid-column: 1;
}

.lumaInsightsSection > summary.lumaInsightsHeader::after {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.lumaInsightsSection:not([open]) > summary.lumaInsightsHeader {
  margin-bottom: 0;
}

.lumaInsightsHeader h3 {
  margin: 4px 0 6px;
  font-size: 18px;
}

.lumaInsightsDesc {
  margin: 0;
  font-size: 13px;
  color: var(--luma-text-secondary);
}

[data-theme="dark"] .trackSegmentBar {
  background: rgba(34, 28, 32, .94);
  border-color: #3a2d35;
}

[data-theme="dark"] .trackSegmentBar button {
  color: #b8a8b0;
}

[data-theme="dark"] .trackSegmentBar button.active {
  color: #fff;
  background: #d888a4;
}

[data-theme="dark"] .lumaSheet {
  background: #221c20;
}

[data-theme="dark"] .lumaSheetHeader,
[data-theme="dark"] .lumaInsightsSection {
  border-color: #3a2d35;
}

[data-theme="dark"] .lumaInsightsSection {
  background: rgba(34, 28, 32, 0.75);
}

[data-theme="dark"] .lumaSheetClose {
  color: #f5ebe3;
  background: #3a2d35;
}

[data-theme="dark"] .cycleModePanel {
  background: #352a32;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

[data-theme="dark"] .cycleModePanel.irregularActive {
  border-color: rgba(201, 120, 125, 0.55);
  background: linear-gradient(180deg, #2d2228 0%, #352a32 100%);
}

[data-theme="dark"] .cycleModeSummary,
[data-theme="dark"] .cycleModeHint,
[data-theme="dark"] .irregularHelp {
  color: #b9aab2;
}

[data-theme="dark"] .cycleModeOption {
  background: #17121a;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f4ece8;
}

[data-theme="dark"] .cycleModeOption span {
  color: #b9aab2;
}

[data-theme="dark"] .cycleModeOption[data-cycle-mode="regular"].active {
  border-color: #5a9a92;
  background: linear-gradient(180deg, #1e2b29 0%, #17121a 100%);
  box-shadow: inset 0 0 0 1px rgba(90, 154, 146, 0.2);
}

[data-theme="dark"] .cycleModeOption[data-cycle-mode="irregular"].active {
  border-color: #a86b70;
  background: linear-gradient(180deg, #2b2022 0%, #17121a 100%);
  box-shadow: inset 0 0 0 1px rgba(168, 107, 112, 0.22);
}

[data-theme="dark"] .cycleTrackingModeBadge[data-mode="regular"],
[data-theme="dark"] .todayTrackingModeChip[data-mode="regular"] {
  color: #8fd4cb;
  background: rgba(90, 154, 146, 0.18);
}

[data-theme="dark"] .cycleTrackingModeBadge[data-mode="irregular"],
[data-theme="dark"] .todayTrackingModeChip[data-mode="irregular"] {
  color: #a86878;
  background: rgba(168, 107, 112, 0.22);
}

[data-theme="dark"] .irregularAutoSuggest {
  background: #2d2228;
  border-color: rgba(201, 120, 125, 0.35);
}

[data-theme="dark"] .irregularAutoSuggest p {
  color: #d8c4c8;
}

/* ================================================================
   Theme picker (Profile → Appearance)
   ================================================================ */
.themePickerSection {
  margin-bottom: 18px;
}

.themePickerLead {
  margin: 0 0 12px;
  color: var(--luma-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.themePickerCard {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 2px solid var(--luma-border);
  border-radius: 16px;
  background: var(--luma-surface-panel);
  text-align: left;
  color: var(--luma-text-heading);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.themePickerCard strong {
  font-size: 14px;
}

.themePickerDesc {
  color: var(--luma-text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.themePickerSwatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 2px;
}

.themePickerSwatches i {
  display: block;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(58, 44, 42, 0.08);
}

.themePickerCard.active {
  border-color: var(--luma-accent-text, var(--luma-link));
  box-shadow: 0 0 0 1px rgba(168, 130, 154, 0.18);
}

/* ================================================================
   Hearth theme — soft peach & sage pastels
   Swatches: #faf4f0 · #e8b4a0 · #a8c4b0 · #fffaf8
   ================================================================ */
[data-theme="hearth"] {
  color-scheme: light;
  --luma-shell: #fff5f2;
  --luma-card: #fffaf8;
  --luma-label: #8a6458;
  --luma-accent: #f0b8a8;
  --luma-accent-deep: #c87860;
  --luma-accent-text: #b06048;
  --luma-input-bg: #f5ebe4;
  --luma-text: #4a3c36;
  --luma-text-heading: #3a2e2a;
  --luma-text-muted: #6e5a52;
  --luma-text-secondary: #7a665e;
  --luma-on-glass: #4a3c36;
  --luma-on-glass-heading: #3a2e2a;
  --luma-on-glass-muted: #6e5a52;
  --luma-on-glass-label: #8a6458;
  --luma-on-glass-link: #a86850;
  --luma-surface-card: #fffaf8;
  --luma-surface-card-alt: #fff4ee;
  --luma-surface-elevated: rgba(255, 250, 248, 0.88);
  --luma-surface-inset: #f6eee8;
  --luma-surface-panel: #fffaf8;
  --luma-border: rgba(232, 180, 160, 0.28);
  --luma-border-soft: rgba(232, 180, 160, 0.18);
  --luma-link: #a86850;
  --luma-accent-teal: #8fb8a8;
  --luma-accent-teal-soft: rgba(168, 196, 176, 0.22);
  --luma-ai-border: rgba(200, 140, 120, 0.16);
  --luma-ai-sheen: rgba(255, 255, 255, 0.8);
  --luma-glass-surface: linear-gradient(155deg, rgba(255, 252, 250, 0.97) 0%, rgba(255, 244, 238, 0.92) 55%, rgba(255, 250, 248, 0.88) 100%);
  --luma-glass-surface-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75) inset, 0 20px 48px rgba(140, 100, 80, 0.08);
  --luma-input-surface: rgba(255, 252, 250, 0.96);
  --luma-input-border: rgba(160, 110, 90, 0.16);
}

[data-theme="hearth"] body {
  background: linear-gradient(135deg, #f5e8e0, #faf4f0);
  color: #4a3c36;
}

[data-theme="hearth"] .phoneShell {
  background: #faf4f0;
  border-color: rgba(232, 180, 160, 0.22);
  box-shadow: 0 24px 60px rgba(160, 120, 100, 0.12);
}

[data-theme="hearth"] .mobileHeader h1,
[data-theme="hearth"] .checkInCard h2,
[data-theme="hearth"] .profileCard h2,
[data-theme="hearth"] .settingsRow h3,
[data-theme="hearth"] .summaryCard,
[data-theme="hearth"] .logComposer,
[data-theme="hearth"] .profileCard,
[data-theme="hearth"] .checkInCard,
[data-theme="hearth"] .settingsRow,
[data-theme="hearth"] .authForm,
[data-theme="hearth"] .mobileChatPanel,
[data-theme="hearth"] .monthCalendarCard,
[data-theme="hearth"] .dayEditorSheet,
[data-theme="hearth"] .homePhaseCard,
[data-theme="hearth"] .homePatternMemoryCard,
[data-theme="hearth"] .homeLumaStrip,
[data-theme="hearth"] .homeAlertsCard,
[data-theme="hearth"] .cycleModePanel,
[data-theme="hearth"] .themePickerCard {
  background: #fffdf9;
  color: #4a3d32;
  border-color: rgba(193, 127, 89, 0.16);
}

[data-theme="hearth"] .mobileHeader p,
[data-theme="hearth"] .label,
[data-theme="hearth"] .settingsRow p,
[data-theme="hearth"] .summaryCard p,
[data-theme="hearth"] .field span,
[data-theme="hearth"] .rangeField span,
[data-theme="hearth"] .noteField span,
[data-theme="hearth"] .themePickerLead,
[data-theme="hearth"] .themePickerDesc {
  color: #9a7355;
}

[data-theme="hearth"] input,
[data-theme="hearth"] textarea,
[data-theme="hearth"] select {
  background: #f3ebe0;
  color: #4a3d32;
  border-color: rgba(193, 127, 89, 0.22);
}

[data-theme="hearth"] .tabBar {
  background: rgba(250, 246, 240, 0.96);
  border-top-color: rgba(193, 127, 89, 0.14);
}

[data-theme="hearth"] .tabBar button {
  color: #8a7a68;
}

[data-theme="hearth"] .tabBar button.active {
  color: #fff;
  background: #c17f59;
}

[data-theme="hearth"] .tabBar button.active b,
[data-theme="hearth"] .tabBar button.active [data-icon] {
  color: #fff;
}

[data-theme="hearth"] .wideButton {
  background: #c17f59;
}

[data-theme="hearth"] .mobileMessage.luma {
  background: #f3ebe0;
  color: #4a3d32;
}

[data-theme="hearth"] .mobileMessage.you {
  background: #b87850;
}

[data-theme="hearth"] .cycleTrackingModeBadge[data-mode="regular"],
[data-theme="hearth"] .todayTrackingModeChip[data-mode="regular"] {
  color: #6a8260;
  background: rgba(138, 154, 123, 0.18);
}

[data-theme="hearth"] .cycleTrackingModeBadge[data-mode="irregular"],
[data-theme="hearth"] .todayTrackingModeChip[data-mode="irregular"] {
  color: #b87850;
  background: rgba(193, 127, 89, 0.16);
}

[data-theme="hearth"] .cycleModeOption[data-cycle-mode="regular"].active {
  border-color: #8a9a7b;
  background: linear-gradient(180deg, #f2f6ee 0%, #fffdf9 100%);
}

[data-theme="hearth"] .cycleModeOption[data-cycle-mode="irregular"].active {
  border-color: #d4a574;
  background: linear-gradient(180deg, #faf0e6 0%, #fffdf9 100%);
}

[data-theme="hearth"] .cycleModePanel.irregularActive {
  border-color: rgba(193, 127, 89, 0.45);
  background: linear-gradient(180deg, #faf0e6 0%, #fffdf9 100%);
}

[data-theme="hearth"] .themePickerCard.active {
  border-color: #c17f59;
  box-shadow: 0 0 0 1px rgba(193, 127, 89, 0.2);
}

html[data-theme="hearth"] body.lumaIrregularTracking .phoneShell {
  background: linear-gradient(180deg, #faf0e6 0%, #faf6f0 42%);
}

html[data-theme="hearth"] body.lumaRegularTracking .phoneShell {
  background: linear-gradient(180deg, #f5f2ea 0%, #faf6f0 42%);
}

/* ================================================================
   Moonlit theme — soft lilac dusk pastels
   Swatches: #2e2a38 · #b8b0d8 · #d0c8e8 · #3a3548
   ================================================================ */
[data-theme="moonlit"] {
  --luma-text-body: var(--luma-text);
  color-scheme: dark;
  --cycle-browse-accent: #f0d4dc;
  --luma-shell: #302832;
  --luma-card: #3e3544;
  --luma-label: #e8d8e4;
  --luma-accent: #d0b0c8;
  --luma-accent-deep: #e0c8d8;
  --luma-accent-text: #ecdce8;
  --luma-input-bg: #262232;
  --luma-text: #f0ecf8;
  --luma-text-heading: #f8f4fc;
  --luma-text-muted: #ddd4f0;
  --luma-text-secondary: #c0b4d8;
  --luma-on-glass: #f0ecf8;
  --luma-on-glass-heading: #f8f4fc;
  --luma-on-glass-muted: #d8d0ec;
  --luma-on-glass-label: #d0c8e8;
  --luma-on-glass-link: #e0d8f4;
  --luma-surface-card: #3a3548;
  --luma-surface-card-alt: #423c52;
  --luma-surface-elevated: #423c52;
  --luma-surface-inset: #423c52;
  --luma-surface-panel: #3a3548;
  --luma-border: rgba(200, 190, 230, 0.14);
  --luma-border-soft: rgba(200, 190, 230, 0.1);
  --luma-link: #e0d8f4;
  --luma-accent-teal: #a8c8d0;
  --luma-accent-teal-soft: rgba(168, 200, 208, 0.18);
  --luma-ai-border: rgba(200, 190, 230, 0.16);
  --luma-ai-sheen: rgba(255, 255, 255, 0.06);
  --luma-glass-surface: linear-gradient(155deg, rgba(58, 52, 72, 0.98) 0%, rgba(46, 42, 58, 0.95) 55%, rgba(40, 36, 52, 0.92) 100%);
  --luma-glass-surface-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 20px 48px rgba(0, 0, 0, 0.28);
  --luma-input-surface: rgba(38, 34, 50, 0.96);
  --luma-input-border: rgba(200, 190, 230, 0.18);
  --luma-glass: rgba(58, 52, 72, 0.88);
  --luma-on-light-surface: #4a3842;
  --luma-on-light-surface-heading: #3a2a34;
  --luma-on-light-surface-muted: #6e5864;
  --luma-on-light-surface-label: #8a6a78;
  --luma-on-light-surface-link: #b06080;
  --luma-on-dark-heading: #faf2f5;
  --luma-on-dark-muted: #e4d0d8;
  --luma-danger: #f0a0a8;
  --luma-danger-bg: rgba(154, 59, 70, 0.32);
  --luma-danger-border: rgba(240, 140, 150, 0.45);
  /* Same pastel phase chips as light — readable on dark shells */
  --cycle-neutral: rgba(255, 248, 252, 0.16);
  --cycle-neutral-text: #f8f2f8;
  --cycle-period: #f8d5e0;
  --cycle-period-active: #efa0b8;
  --cycle-fertile: #eaf5ee;
  --cycle-fertile-text: #3f5346;
  --cycle-ovulation: #fceede;
  --cycle-preperiod: #f4eef3;
  --cycle-preperiod-text: #5a4554;
  --cycle-purple: #ebe6f7;
  --cycle-purple-text: #4f4560;
  --cycle-predicted-border: #b8a8d4;
  --cycle-browse-accent: #f0b0c4;
}

[data-theme="moonlit"] body {
  background: linear-gradient(135deg, #262232, #3a3448);
  color: #f0ecf8;
}

[data-theme="moonlit"] .phoneShell {
  background: #2e2a38;
  border-color: rgba(200, 190, 230, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

[data-theme="moonlit"] .mobileHeader h1,
[data-theme="moonlit"] .checkInCard h2,
[data-theme="moonlit"] .profileCard h2,
[data-theme="moonlit"] .profileIdentityCard h3,
[data-theme="moonlit"] .settingsRow h3,
[data-theme="moonlit"] .summaryCard,
[data-theme="moonlit"] .logComposer,
[data-theme="moonlit"] .profileCard,
[data-theme="moonlit"] .profileIdentityCard,
[data-theme="moonlit"] .checkInCard,
[data-theme="moonlit"] .settingsRow,
[data-theme="moonlit"] .authForm,
[data-theme="moonlit"] .mobileChatPanel,
[data-theme="moonlit"] .monthCalendarCard,
[data-theme="moonlit"] .dayEditorSheet,
[data-theme="moonlit"] .homePhaseCard,
[data-theme="moonlit"] .homePatternMemoryCard,
[data-theme="moonlit"] .homeLumaStrip,
[data-theme="moonlit"] .homeAlertsCard,
[data-theme="moonlit"] .cycleModePanel,
[data-theme="moonlit"] .cycleSummary,
[data-theme="moonlit"] .themePickerCard,
[data-theme="moonlit"] .careArticleCard,
[data-theme="moonlit"] .careCategoryCard,
[data-theme="moonlit"] .paywallCard,
[data-theme="moonlit"] .logDatePicker {
  background: #3a3548;
  color: #e8ecf4;
  border-color: rgba(168, 184, 216, 0.12);
}

[data-theme="moonlit"] .mobileHeader p,
[data-theme="moonlit"] .label,
[data-theme="moonlit"] .settingsRow p,
[data-theme="moonlit"] .summaryCard p,
[data-theme="moonlit"] .field span,
[data-theme="moonlit"] .rangeField span,
[data-theme="moonlit"] .noteField span,
[data-theme="moonlit"] .themePickerLead,
[data-theme="moonlit"] .themePickerDesc {
  color: #d0d8ec;
}

[data-theme="moonlit"] .careArticleCard p,
[data-theme="moonlit"] .careArticleMeta,
[data-theme="moonlit"] .learnVisualFeature p:last-child {
  color: #c8d4e8;
}

[data-theme="moonlit"] .careArticleCategory,
[data-theme="moonlit"] .learnVisualFeature .label {
  color: #f0dcc8;
}

[data-theme="moonlit"] .careCategoryCardBody span,
[data-theme="moonlit"] .careCategoryDesc,
[data-theme="moonlit"] .careIntro,
[data-theme="moonlit"] .homeLumaStrip p,
[data-theme="moonlit"] .homeLumaDesc {
  color: #c8d4e8;
}

[data-theme="moonlit"] .learnVisualFeature {
  background: #2e2a38;
  border-color: rgba(168, 184, 216, 0.22);
  box-shadow: 0 18px 36px rgba(8, 10, 16, 0.32);
}

[data-theme="moonlit"] .learnVisualFeature h2 {
  color: #f4f7ff;
}

[data-theme="moonlit"] .notificationSubsection h3,
[data-theme="moonlit"] .notificationSubsection .toggleRow,
[data-theme="moonlit"] .notificationSubsection .field,
[data-theme="moonlit"] .notificationSubsection .field span {
  color: #e8ecf4;
}

[data-theme="moonlit"] input,
[data-theme="moonlit"] textarea,
[data-theme="moonlit"] select {
  background: #171d2a;
  color: #e8ecf4;
  border-color: rgba(168, 184, 216, 0.16);
}

[data-theme="moonlit"] .tabBar {
  background: rgba(30, 36, 51, 0.96);
  border-top-color: rgba(168, 184, 216, 0.1);
}

[data-theme="moonlit"] .tabBar button {
  color: #b0bdd8;
}

[data-theme="moonlit"] .tabBar button.active {
  color: #fff;
  background: #7b8fc9;
}

[data-theme="moonlit"] .tabBar button.active b,
[data-theme="moonlit"] .tabBar button.active [data-icon] {
  color: #fff;
}

[data-theme="moonlit"] .wideButton {
  background: #7b8fc9;
}

[data-theme="moonlit"] .mobileMessage.luma {
  background: #2a3448;
  color: #e8ecf4;
}

[data-theme="moonlit"] .mobileMessage.you {
  background: #6b7faa;
}

/* Phase chips use shared --cycle-* tokens (set on [data-theme=moonlit/dark]) */

[data-theme="moonlit"] .welcomeGuide article,
[data-theme="moonlit"] .cycleEmptyState {
  background: rgba(28, 34, 49, 0.94);
  border-color: rgba(168, 184, 216, 0.2);
  color: #eef3fb;
}

[data-theme="moonlit"] .welcomeGuide strong,
[data-theme="moonlit"] .cycleEmptyState h3 {
  color: #ffffff;
}

[data-theme="moonlit"] .welcomeGuide span,
[data-theme="moonlit"] .cycleEmptyState p:not(.label) {
  color: #c8d4e8;
}

[data-theme="moonlit"] .cycleTrackingModeBadge[data-mode="regular"],
[data-theme="moonlit"] .todayTrackingModeChip[data-mode="regular"] {
  color: #a8c8e8;
  background: rgba(123, 143, 201, 0.2);
}

[data-theme="moonlit"] .cycleTrackingModeBadge[data-mode="irregular"],
[data-theme="moonlit"] .todayTrackingModeChip[data-mode="irregular"] {
  color: #d8b8c8;
  background: rgba(168, 130, 154, 0.22);
}

[data-theme="moonlit"] .cycleModeOption {
  background: #171d2a;
  border-color: rgba(168, 184, 216, 0.14);
  color: #e8ecf4;
}

[data-theme="moonlit"] .cycleModeOption span {
  color: #d0d8ec;
}

[data-theme="moonlit"] .cycleModeOption[data-cycle-mode="regular"].active {
  border-color: #7b8fc9;
  background: linear-gradient(180deg, #243048 0%, #171d2a 100%);
}

[data-theme="moonlit"] .cycleModeOption[data-cycle-mode="irregular"].active {
  border-color: #e8a8bc;
  background: linear-gradient(180deg, #2a2430 0%, #171d2a 100%);
}

[data-theme="moonlit"] .cycleModePanel.irregularActive {
  border-color: rgba(168, 130, 154, 0.45);
  background: linear-gradient(180deg, #2a2430 0%, #3a3548 100%);
}

[data-theme="moonlit"] .themePickerCard.active {
  border-color: #7b8fc9;
  box-shadow: 0 0 0 1px rgba(123, 143, 201, 0.22);
}

[data-theme="moonlit"] .loadingOverlay {
  background: rgba(10, 12, 18, 0.72);
}

[data-theme="moonlit"] .lumaSheet {
  background: #2e2a38;
}

[data-theme="moonlit"] .cycleDayBanner,
[data-theme="moonlit"] .cycleDayBanner--browse {
  background: rgba(30, 36, 51, 0.72);
  border-bottom-color: rgba(168, 184, 216, 0.12);
}

[data-theme="moonlit"] .cycleDayBannerMain {
  color: #d0d8ec;
}

[data-theme="moonlit"] .cycleDayBannerMain strong,
[data-theme="moonlit"] .cycleDayBanner--browse .cycleDayBannerMain strong,
[data-theme="moonlit"] .cycleDayBanner--browse .cycleDayBannerMain span:not(.cycleDayBannerDot) {
  color: #f4f6fb;
}

[data-theme="moonlit"] .cycleDayReturnBtn {
  border-color: rgba(168, 184, 216, 0.22);
  color: #c8d4ef;
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="moonlit"] .cycleBrowseHint {
  color: #f0dcc8;
}

[data-theme="moonlit"] .homeDaySummary {
  background: linear-gradient(145deg, #343f58 0%, #2a3248 52%, #222838 100%);
  border: 1px solid rgba(201, 136, 90, 0.32);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="moonlit"] .homeHeroPhasePill {
  background: rgba(201, 136, 90, 0.18);
  color: #f0dcc8;
}

[data-theme="moonlit"] body.homeTypeHero:not(.pregnancyFocusMode) .homeHeroPhasePill {
  background: transparent;
  color: var(--home-type-muted, #ddd4f0);
}

[data-theme="moonlit"] .homeDaySummary .homePhaseLine,
[data-theme="moonlit"] .homeDaySummary #todayPhaseLine {
  color: #d0d8ec;
}

[data-theme="moonlit"] .cycleDayBrowseMode .homeDaySummary {
  background: linear-gradient(145deg, #3a4560 0%, #2f384f 52%, #252c3e 100%);
  border-color: rgba(201, 136, 90, 0.42);
}

[data-theme="moonlit"] .cycleDayBrowseMode .cycleSummary {
  background: #2a3248;
  border-color: rgba(201, 136, 90, 0.3);
}

[data-theme="moonlit"] .cycleDayBrowseMode .cycleSummary h2,
[data-theme="moonlit"] .cycleDayBrowseMode .cycleSummary p,
[data-theme="moonlit"] .cycleDayBrowseMode .cycleSummary .label {
  color: #e8ecf4;
}

[data-theme="moonlit"] #mobileCyclePhase,
[data-theme="moonlit"] .homePhaseLine,
[data-theme="moonlit"] #todayPhaseLine,
[data-theme="moonlit"] .cycleDayBrowseMode #mobileCyclePhase {
  color: #f0dcc8;
  font-size: 15px;
}

[data-theme="dark"] #mobileCyclePhase,
[data-theme="dark"] .homePhaseLine,
[data-theme="dark"] #todayPhaseLine {
  color: #a86878;
  font-size: 15px;
}

[data-theme="moonlit"] .cycleDayWhisper {
  color: #d0d8ec;
}

[data-theme="moonlit"] .mobileCycleDayCell.selected .cycleDayWhisper {
  color: #f0dcc8;
}

[data-theme="moonlit"] .trackHeroHeadline,
[data-theme="moonlit"] #todayHeadline,
[data-theme="moonlit"] #mobileCycleStatus {
  color: #f4f6fb;
}

[data-theme="moonlit"] .trackHeroGreeting,
[data-theme="moonlit"] .trackHeroHint {
  color: #d0d8ec;
}

[data-theme="moonlit"] .lumaHubHero {
  background: linear-gradient(145deg, rgba(123, 143, 201, 0.26), #3a3548);
  border: 1px solid rgba(168, 184, 216, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

[data-theme="moonlit"] .lumaHubGreeting {
  color: #e8ecf4;
}

[data-theme="moonlit"] .trackPhasePill {
  color: #e8ecf4;
  background: rgba(123, 143, 201, 0.22);
}

[data-theme="dark"] .trackHeroHeadline,
[data-theme="dark"] #todayHeadline,
[data-theme="dark"] #mobileCycleStatus {
  color: #f5eef2;
}

[data-theme="dark"] .trackHeroGreeting,
[data-theme="dark"] .trackHeroHint {
  color: #b8a8b0;
}

[data-theme="dark"] .wearablesStatusNote {
  color: #d8c4cf;
  background: rgba(232, 168, 188, 0.14);
}

[data-theme="dark"] .wearableCard--soon p {
  color: #9a8a92;
}

[data-theme="dark"] .manualImportPanel {
  background: #241d22;
  border: 1px solid #3a2d35;
}

[data-theme="moonlit"] .wearablesStatusNote {
  color: #c8d4e8;
  background: rgba(123, 143, 201, 0.16);
}

[data-theme="moonlit"] .wearableCard--soon p {
  color: #8a9ab8;
}

[data-theme="moonlit"] .manualImportPanel {
  background: #3a3548;
  border: 1px solid rgba(168, 184, 216, 0.12);
}

[data-theme="dark"] .lumaHubHero {
  background: linear-gradient(145deg, rgba(232, 168, 188, 0.22), #241d22);
  border: 1px solid rgba(232, 168, 188, 0.24);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .lumaHubGreeting {
  color: #f0e6ec;
}

[data-theme="dark"] .trackPhasePill {
  color: #f5eef2;
  background: rgba(232, 168, 188, 0.22);
}

[data-theme="dark"] .cycleSummary h2,
[data-theme="dark"] .cycleSummary #mobileCycleStatus,
[data-theme="dark"] .cycleSummary .label,
[data-theme="dark"] .cycleSummary p,
[data-theme="dark"] .cycleSummary #mobileCyclePhase {
  color: var(--luma-text-heading);
}

[data-theme="dark"] .cycleSummary .label {
  color: var(--luma-label);
}

[data-theme="dark"] .cycleSummary p,
[data-theme="dark"] .cycleSummary #mobileCyclePhase {
  color: var(--luma-text-muted);
}

/* —— Roadmap visual system —— */
.hubSection {
  margin: 0 16px 18px;
  padding: 16px 0 4px;
  border: 0;
  background: transparent;
}

.hubSectionHeader {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.hubSectionIcon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(168, 130, 154, 0.12);
  color: var(--luma-accent-deep, #9a7a8a);
}

.hubSectionHeader h2 {
  margin: 2px 0 4px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.hubSectionLead {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

.hubNavSection .hubRow,
.hubRow {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: var(--luma-glass-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(58, 40, 48, 0.06);
  text-align: left;
  color: var(--luma-on-glass);
}

.hubRowIcon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(168, 130, 154, 0.1);
  color: var(--luma-accent-deep, #9a7a8a);
}

.hubRowBody {
  flex: 1;
  min-width: 0;
}

.hubRowBody h3 {
  margin: 0 0 2px;
  font-size: 14px;
  color: var(--luma-text-heading);
}

.hubRowBody p {
  margin: 0;
  font-size: 12px;
  color: var(--luma-text-muted);
  line-height: 1.35;
}

.hubRowChevron {
  flex: 0 0 auto;
  transform: rotate(180deg);
  opacity: 0.45;
}

.lumaHubHero {
  margin: 0 16px 10px;
  padding: 14px 16px 16px;
  border-radius: 20px;
  background: var(--luma-surface-card);
  border: 1px solid var(--luma-border-soft);
}

.lumaHubGreeting {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--luma-text-muted);
}

.intakeGrid {
  /* Let the screen scroll; nested overflow here collapsed the focus cards in a CSS grid parent. */
  max-height: none;
  overflow: visible;
  padding-right: 2px;
}

.opkCaptureRow {
  display: grid;
  gap: 12px;
}

.opkCaptureBtn {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(168, 130, 154, 0.45);
  background: rgba(255, 253, 248, 0.7);
  cursor: pointer;
  text-align: center;
}

.opkCaptureBtn b {
  font-size: 14px;
}

.opkCaptureBtn small {
  font-size: 11px;
  color: var(--luma-text-muted);
}

.opkResultPicker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.opkResultBtn {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(168, 130, 154, 0.1);
  color: #5c4f56;
}

.opkResultBtn.active {
  background: var(--luma-accent-deep, #9a7a8a);
  color: #fff;
}

.opkPreview img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 14px;
  margin-top: 10px;
  background: #fff;
}

.opkProgression {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 4px;
}

.opkProgressItem {
  flex: 0 0 auto;
  width: 72px;
  text-align: center;
}

.opkProgressItem img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
}

.opkProgressItem.peak img,
.opkProgressItem.positive img {
  border-color: var(--luma-accent-deep, #9a7a8a);
}

.opkProgressItem b {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}

.opkProgressItem span {
  font-size: 9px;
  color: var(--luma-text-muted);
}

.pathwayGrid {
  display: grid;
  gap: 8px;
}

.pathwayCard {
  width: 100%;
  text-align: left;
  border: 1px solid var(--luma-border-soft);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--luma-surface-card);
  color: var(--luma-text);
  box-shadow: 0 8px 20px rgba(58, 39, 34, 0.05);
}

.pathwayCard.active {
  outline: 2px solid var(--luma-accent-deep, #9a7a8a);
}

.pathwayCard h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.pathwayCard p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--luma-text-muted);
}

.pathwaySignals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pathwaySignals span {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(168, 130, 154, 0.12);
}

.privacyToggleList .toggleRow,
.partnerVisibilityList .toggleRow {
  margin-bottom: 10px;
}

.partnerLivePreview {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(31, 111, 105, 0.22);
  background:
    radial-gradient(circle at 90% 0%, rgba(190, 230, 221, 0.38), transparent 34%),
    linear-gradient(135deg, rgba(244, 252, 250, 0.96), rgba(255, 248, 252, 0.9));
}

.partnerLivePreview strong {
  display: block;
  margin: 2px 0 4px;
  font-size: 1.15rem;
  color: var(--luma-text-heading);
}

.partnerLivePreview span,
.partnerLivePreview li,
.partnerNeverSees {
  color: var(--luma-text-secondary);
  line-height: 1.45;
}

.partnerLivePreview ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partnerLivePreview li {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(31, 111, 105, 0.14);
  font-weight: 800;
  font-size: 0.8rem;
}

.partnerNeverSees {
  margin: 0;
  font-size: 0.88rem;
}

[data-theme="dark"] .phoneShell .partnerLivePreview,
[data-theme="moonlit"] .phoneShell .partnerLivePreview {
  background:
    radial-gradient(circle at 90% 0%, rgba(190, 230, 221, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(37, 46, 57, 0.96), rgba(45, 35, 50, 0.9));
  border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .phoneShell .partnerLivePreview :is(strong, span, li, p, .label),
[data-theme="moonlit"] .phoneShell .partnerLivePreview :is(strong, span, li, p, .label) {
  color: var(--luma-on-dark-heading);
}

[data-theme="dark"] .phoneShell .partnerLivePreview li,
[data-theme="moonlit"] .phoneShell .partnerLivePreview li {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.privacySyncStatus,
.partnerSupportCard,
.wearableCard {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(168, 130, 154, 0.08);
  font-size: 13px;
  line-height: 1.45;
}

.partnerPrivateCard,
.healthKitPanel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--luma-border-soft);
  border-radius: 16px;
  background: var(--luma-surface-card);
}

.partnerPrivatePreview {
  margin: 8px 0 12px;
  padding-left: 18px;
  color: var(--luma-text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

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

.partnerInvitePanel {
  display: grid;
  gap: 12px;
}

.partnerInvitePanel p {
  margin: 0;
  color: var(--luma-text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

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

.partnerInviteLinkBox {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--luma-border-soft);
  border-radius: 14px;
  background: rgba(31, 118, 111, .08);
}

.partnerInviteLinkBox strong {
  color: var(--luma-text-heading);
  font-size: 13px;
}

.partnerInviteLinkBox input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--luma-border-soft);
  border-radius: 12px;
  background: var(--luma-surface-card);
  color: var(--luma-text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.partnerInviteActions .miniButton {
  text-decoration: none;
}

.partnerPrivacyHint {
  margin: 10px 0 0;
  color: var(--luma-text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.healthKitPanel h3 {
  margin: 4px 0 8px;
  color: var(--luma-text-heading);
  font-size: 16px;
}

.healthKitPanel p {
  margin: 0 0 12px;
  color: var(--luma-text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.wearableCard {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  width: 100%;
  border: 0;
  text-align: left;
  color: inherit;
}

.wearableCard--live {
  cursor: pointer;
  background: rgba(168, 130, 154, 0.12);
  transition: background 0.15s ease;
}

.wearableCard--live:active {
  background: rgba(168, 130, 154, 0.2);
}

.wearableCard--soon {
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
  background: rgba(168, 130, 154, 0.05);
}

.wearablesStatusNote {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(168, 130, 154, 0.1);
  font-size: 13px;
  line-height: 1.45;
  color: #5c4f56;
}

.wearablesSectionLabel {
  margin: 14px 0 8px;
}

.wearableModelGrid {
  display: grid;
  gap: 12px;
}

.wearableModelCard {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(168, 130, 154, 0.18);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(252, 246, 239, 0.94));
  box-shadow: 0 12px 28px rgba(58, 39, 34, 0.08);
}

.wearableModelCard--preview {
  border-style: dashed;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(246, 241, 246, 0.86));
}

.wearableModelCard--preview .wearableConnectBtn {
  background: rgba(128, 63, 115, 0.14);
  color: #803f73;
  box-shadow: none;
}

.wearableModelCard--live {
  border-color: rgba(31, 118, 111, 0.24);
}

.wearableModelTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wearableModelTop h3 {
  margin: 2px 0 4px;
  color: var(--luma-text-heading);
  font-size: 1.08rem;
}

.wearableModelTop p:not(.label) {
  margin: 0;
  color: var(--luma-text);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.35;
}

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

.wearableSignalGrid span {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 15px;
  background: rgba(168, 130, 154, 0.08);
  color: var(--luma-text);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
}

.wearableSignalGrid strong {
  color: #803f73;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wearableConnectBtn {
  margin-top: 0;
  min-height: 48px;
  border-radius: 16px;
  background: #c17f59;
}

.manualImportPanel {
  display: grid;
  gap: 14px;
  margin: 12px 0 4px;
  padding: 18px;
  border: 1px solid rgba(168, 130, 154, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(250, 241, 233, 0.94)),
    radial-gradient(circle at top right, rgba(193, 127, 89, 0.18), transparent 42%);
  box-shadow: 0 18px 38px rgba(58, 39, 34, 0.09);
}

.manualImportHero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.manualImportHero h3 {
  margin: 2px 0 4px;
  color: var(--luma-text-heading);
  font-size: 1.18rem;
}

.manualImportHero p:not(.label) {
  margin: 0;
  color: var(--luma-text);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.4;
}

.manualImportIcon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 17px;
  color: #1f7c74;
  background: rgba(31, 124, 116, 0.12);
}

.manualImportIcon svg {
  width: 25px;
  height: 25px;
}

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

.importChoiceCard {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(128, 63, 115, 0.18);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--luma-text-heading);
  text-align: left;
  box-shadow: 0 10px 24px rgba(58, 39, 34, 0.06);
}

.importChoiceCard span[data-icon] {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #803f73;
  background: rgba(128, 63, 115, 0.1);
}

.importChoiceCard strong {
  font-size: 0.94rem;
  font-weight: 950;
  line-height: 1.15;
}

.importChoiceCard small {
  color: var(--luma-text);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
}

.importTextareaField {
  margin: 0;
}

.importTextareaField span {
  color: var(--luma-text-heading);
}

.manualImportPanel textarea {
  width: 100%;
  min-height: 146px;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(168, 130, 154, 0.24);
  background: rgba(246, 238, 228, 0.8);
  color: var(--luma-text-heading);
  font: inherit;
  font-weight: 750;
  line-height: 1.35;
  resize: vertical;
  box-sizing: border-box;
}

.manualImportPanel textarea::placeholder {
  color: rgba(75, 61, 53, 0.54);
}

.manualImportPanel .wideButton {
  margin-top: 0;
  min-height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #803f73, #c17f59);
}

.importHelpText {
  margin: -4px 0 0;
  color: var(--luma-text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
}

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

.wearableCard .wearableMeta {
  flex: 1;
}

.wearableCard h3 {
  margin: 0 0 2px;
  font-size: 14px;
}

.wearableCard p {
  margin: 0;
  font-size: 12px;
  color: var(--luma-text-muted);
}

.wearableBadge {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(168, 130, 154, 0.15);
}

.wearableBadge.soon {
  color: var(--luma-text-muted);
  background: rgba(116, 101, 94, 0.12);
}

.wearableBadge.live {
  color: #fff;
  background: var(--luma-accent-deep, #9a7a8a);
}

.analysisAnchorNote {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 124, 116, 0.14);
  border-radius: 14px;
  background: rgba(227, 240, 236, 0.82);
  color: var(--luma-on-light-surface-heading);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.35;
}

.partnerConversationLabel {
  margin-top: 16px;
}

.partnerInviteRow {
  margin-top: 14px;
}

.conversationCard {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: rgba(255, 253, 248, 0.95);
  font-size: 13px;
  line-height: 1.45;
}

.reportPreview {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid rgba(128, 63, 115, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(252, 246, 239, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 10px 24px rgba(58, 39, 34, 0.08);
  color: #3d312e;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  max-height: 340px;
  overflow-y: auto;
}

.reportDoctorQuestions label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
}

body.hideSensitiveMode .privateNotePreview,
body.hideSensitiveMode #privateNote {
  filter: blur(6px);
}

body.hideSensitiveMode .hideWhenSensitive {
  opacity: 0.35;
}

.summaryCard,
.bodyLogInsightsCard,
.logHistoryPanel {
  border: 0;
  box-shadow: 0 8px 24px rgba(58, 39, 34, 0.06);
}

.pathwayReaderOverlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  width: 100%;
  height: 100%;
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  background: rgba(45, 36, 34, 0.45);
}

.pathwayReaderOverlay[hidden] {
  display: none !important;
}

body.pathwayReaderOpen {
  overflow: hidden;
}

body.pathwayReaderOpen .appScreen.active {
  overflow: hidden;
}

.pathwayReaderSheet {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: min(86vh, calc(100% - 16px));
  overflow: auto;
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 18px 18px;
  background: var(--luma-surface-card);
  box-shadow: 0 18px 48px rgba(58, 39, 34, 0.22);
  box-sizing: border-box;
}

.pathwayReaderHeader {
  display: grid;
  gap: 8px;
  padding: 16px 18px 8px;
  border-bottom: 1px solid rgba(234, 223, 211, 0.7);
  text-align: left;
}

.pathwayReaderBack {
  justify-self: start;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  color: #463431;
  background: rgba(234, 223, 211, 0.45);
}

.pathwayReaderMeta {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a85878;
}

.pathwayReaderHeader h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.pathwayReaderHeader p#pathwayReaderSummary {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

.pathwayReaderBody {
  flex: 1 1 auto;
  padding: 16px 18px 8px;
  display: grid;
  gap: 14px;
  text-align: left;
}

.pathwayEducationBlock h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.pathwayEducationBlock p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #5c4f56;
}

.pathwaySignalsBlock .label {
  margin-bottom: 8px;
}

.pathwaySignalsBlock .pathwaySignals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pathwaySignalsBlock .pathwaySignals span {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(168, 130, 154, 0.14);
  color: #5c4f56;
  font-weight: 700;
}

.pathwayReaderFooter {
  display: grid;
  gap: 10px;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(234, 223, 211, 0.7);
  background: linear-gradient(to top, #fffdf8 82%, rgba(255, 253, 248, 0.92));
}

.pathwayTrackingTip {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

.pathwayReadArticleBtn {
  justify-self: start;
}

.pathwayReaderFooter .wideButton,
.pathwayReaderFooter .miniButton {
  width: 100%;
  justify-self: stretch;
}

/* Theme hardening for newer roadmap components. These rules sit after the
   light defaults so dark themes never inherit low-contrast card text. */
[data-theme="dark"] .cycleSummary h2,
[data-theme="dark"] .cycleSummary #mobileCycleStatus,
[data-theme="dark"] .cycleSummary #mobileCyclePhase,
[data-theme="dark"] .cycleSummary p {
  color: #f0e6ec;
}

[data-theme="dark"] .hubSectionHeader h2,
[data-theme="dark"] .hubRowBody h3,
[data-theme="dark"] .pathwayCard h3,
[data-theme="dark"] .wearableCard h3,
[data-theme="dark"] .wearableModelTop h3,
[data-theme="dark"] .aiToolCard h3,
[data-theme="dark"] .pathwayReaderHeader h2,
[data-theme="dark"] .pathwayEducationBlock h3 {
  color: #f5eef2;
}

[data-theme="dark"] .hubSectionLead,
[data-theme="dark"] .hubRowBody p,
[data-theme="dark"] .pathwayCard p,
[data-theme="dark"] .wearableCard p,
[data-theme="dark"] .wearableModelTop p:not(.label),
[data-theme="dark"] .wearableSignalGrid span,
[data-theme="dark"] .aiToolCard p,
[data-theme="dark"] .opkCaptureBtn small,
[data-theme="dark"] .opkProgressItem span,
[data-theme="dark"] .pathwayReaderHeader p#pathwayReaderSummary,
[data-theme="dark"] .pathwayEducationBlock p,
[data-theme="dark"] .pathwayTrackingTip,
[data-theme="dark"] .reportDoctorQuestions label {
  color: #d8c4cf;
}

[data-theme="dark"] .hubRow,
[data-theme="dark"] .pathwayCard,
[data-theme="dark"] .opkCaptureBtn,
[data-theme="dark"] .privacySyncStatus,
[data-theme="dark"] .partnerSupportCard,
[data-theme="dark"] .wearableCard,
[data-theme="dark"] .wearableModelCard,
[data-theme="dark"] .manualImportPanel,
[data-theme="dark"] .importChoiceCard,
[data-theme="dark"] .conversationCard,
[data-theme="dark"] .reportPreview,
[data-theme="dark"] .aiToolCard,
[data-theme="dark"] .pathwayReaderSheet {
  background: #241d22;
  color: #f5eef2;
  border-color: #3a2d35;
}

[data-theme="dark"] .hubRowIcon,
[data-theme="dark"] .hubSectionIcon,
[data-theme="dark"] .opkResultBtn,
[data-theme="dark"] .pathwaySignals span,
[data-theme="dark"] .pathwaySignalsBlock .pathwaySignals span,
[data-theme="dark"] .manualImportIcon,
[data-theme="dark"] .importChoiceCard span[data-icon],
[data-theme="dark"] .wearableBadge.soon {
  background: rgba(216, 169, 184, 0.14);
  color: #f0d6e2;
}

[data-theme="dark"] .manualImportHero h3,
[data-theme="dark"] .importChoiceCard strong,
[data-theme="dark"] .importTextareaField span {
  color: #f5eef2;
}

[data-theme="dark"] .manualImportHero p:not(.label),
[data-theme="dark"] .importChoiceCard small,
[data-theme="dark"] .importHelpText {
  color: #d8c4cf;
}

[data-theme="dark"] .manualImportPanel textarea {
  background: #19141a;
  color: #f5eef2;
  border-color: #3a2d35;
}

[data-theme="dark"] .opkResultBtn.active,
[data-theme="dark"] .wearableBadge.live {
  background: #e8a8bc;
  color: #2a2228;
}

[data-theme="dark"] .pathwayReaderBack {
  background: rgba(216, 169, 184, 0.14);
  color: #f5eef2;
}

[data-theme="dark"] .pathwayReaderFooter {
  background: linear-gradient(to top, #241d22 82%, rgba(36, 29, 34, 0.92));
  border-top-color: #3a2d35;
}

[data-theme="dark"] .pathwayReaderMeta {
  color: #ecc8d4;
}

[data-theme="moonlit"] .hubSectionHeader h2,
[data-theme="moonlit"] .hubRowBody h3,
[data-theme="moonlit"] .pathwayCard h3,
[data-theme="moonlit"] .wearableCard h3,
[data-theme="moonlit"] .wearableModelTop h3,
[data-theme="moonlit"] .manualImportHero h3,
[data-theme="moonlit"] .importChoiceCard strong,
[data-theme="moonlit"] .importTextareaField span,
[data-theme="moonlit"] .aiToolCard h3,
[data-theme="moonlit"] .pathwayReaderHeader h2,
[data-theme="moonlit"] .pathwayEducationBlock h3 {
  color: #f4f6fb;
}

[data-theme="moonlit"] .hubSectionLead,
[data-theme="moonlit"] .hubRowBody p,
[data-theme="moonlit"] .pathwayCard p,
[data-theme="moonlit"] .wearableCard p,
[data-theme="moonlit"] .wearableModelTop p:not(.label),
[data-theme="moonlit"] .wearableSignalGrid span,
[data-theme="moonlit"] .aiToolCard p,
[data-theme="moonlit"] .opkCaptureBtn small,
[data-theme="moonlit"] .opkProgressItem span,
[data-theme="moonlit"] .pathwayReaderHeader p#pathwayReaderSummary,
[data-theme="moonlit"] .pathwayEducationBlock p,
[data-theme="moonlit"] .pathwayTrackingTip,
[data-theme="moonlit"] .reportDoctorQuestions label {
  color: #c8d4e8;
}

[data-theme="moonlit"] .hubRow,
[data-theme="moonlit"] .pathwayCard,
[data-theme="moonlit"] .opkCaptureBtn,
[data-theme="moonlit"] .privacySyncStatus,
[data-theme="moonlit"] .partnerSupportCard,
[data-theme="moonlit"] .wearableCard,
[data-theme="moonlit"] .wearableModelCard,
[data-theme="moonlit"] .conversationCard,
[data-theme="moonlit"] .reportPreview,
[data-theme="moonlit"] .aiToolCard,
[data-theme="moonlit"] .pathwayReaderSheet {
  background: #3a3548;
  color: #f4f6fb;
  border-color: rgba(168, 184, 216, 0.14);
}

[data-theme="moonlit"] .hubRowIcon,
[data-theme="moonlit"] .hubSectionIcon,
[data-theme="moonlit"] .opkResultBtn,
[data-theme="moonlit"] .pathwaySignals span,
[data-theme="moonlit"] .pathwaySignalsBlock .pathwaySignals span,
[data-theme="moonlit"] .wearableBadge.soon {
  background: rgba(168, 184, 216, 0.16);
  color: #e2e9f5;
}

[data-theme="moonlit"] .opkResultBtn.active,
[data-theme="moonlit"] .wearableBadge.live {
  background: #7b8fc9;
  color: #fff;
}

[data-theme="moonlit"] .pathwayReaderBack {
  background: rgba(168, 184, 216, 0.16);
  color: #f4f6fb;
}

[data-theme="moonlit"] .pathwayReaderFooter {
  background: linear-gradient(to top, #3a3548 82%, rgba(58, 53, 72, 0.92));
  border-top-color: rgba(168, 184, 216, 0.14);
}

[data-theme="moonlit"] .pathwayReaderMeta {
  color: #d0d8ec;
}

[data-theme="hearth"] .hubRow,
[data-theme="hearth"] .pathwayCard,
[data-theme="hearth"] .opkCaptureBtn,
[data-theme="hearth"] .privacySyncStatus,
[data-theme="hearth"] .partnerSupportCard,
[data-theme="hearth"] .wearableCard,
[data-theme="hearth"] .wearableModelCard,
[data-theme="hearth"] .conversationCard,
[data-theme="hearth"] .reportPreview,
[data-theme="hearth"] .aiToolCard,
[data-theme="hearth"] .pathwayReaderSheet {
  background: #fffdf9;
  color: #4a3d32;
  border-color: rgba(193, 127, 89, 0.16);
}

[data-theme="hearth"] .hubSectionLead,
[data-theme="hearth"] .hubRowBody p,
[data-theme="hearth"] .pathwayCard p,
[data-theme="hearth"] .wearableCard p,
[data-theme="hearth"] .wearableModelTop p:not(.label),
[data-theme="hearth"] .wearableSignalGrid span,
[data-theme="hearth"] .aiToolCard p,
[data-theme="hearth"] .pathwayReaderHeader p#pathwayReaderSummary,
[data-theme="hearth"] .pathwayEducationBlock p,
[data-theme="hearth"] .pathwayTrackingTip {
  color: #6f5f58;
}

[data-theme="moonlit"] .manualImportPanel,
[data-theme="moonlit"] .importChoiceCard {
  background: #3a3548;
  color: #f4f6fb;
  border-color: rgba(168, 184, 216, 0.14);
}

[data-theme="moonlit"] .manualImportHero h3,
[data-theme="moonlit"] .importChoiceCard strong,
[data-theme="moonlit"] .importTextareaField span {
  color: #f4f6fb;
}

[data-theme="moonlit"] .manualImportHero p:not(.label),
[data-theme="moonlit"] .importChoiceCard small,
[data-theme="moonlit"] .importHelpText {
  color: #c8d4e8;
}

[data-theme="moonlit"] .manualImportIcon,
[data-theme="moonlit"] .importChoiceCard span[data-icon] {
  background: rgba(168, 184, 216, 0.16);
  color: #e2e9f5;
}

[data-theme="moonlit"] .manualImportPanel textarea {
  background: #1c2535;
  color: #f4f6fb;
  border-color: rgba(168, 184, 216, 0.2);
}

[data-theme="hearth"] .manualImportPanel,
[data-theme="hearth"] .importChoiceCard {
  background: #fffdf9;
  color: #4a3d32;
  border-color: rgba(193, 127, 89, 0.16);
}

[data-theme="hearth"] .manualImportHero h3,
[data-theme="hearth"] .importChoiceCard strong,
[data-theme="hearth"] .importTextareaField span {
  color: #4a3d32;
}

[data-theme="hearth"] .manualImportHero p:not(.label),
[data-theme="hearth"] .importChoiceCard small,
[data-theme="hearth"] .importHelpText {
  color: #6f5f58;
}

[data-theme="hearth"] .manualImportIcon,
[data-theme="hearth"] .importChoiceCard span[data-icon] {
  background: rgba(193, 127, 89, 0.14);
  color: #9d5b35;
}

[data-theme="dark"] .calendarDetailsSection,
[data-theme="dark"] .importPanel,
[data-theme="dark"] .bodyLogPurpose,
[data-theme="dark"] .bodyLogContext,
[data-theme="dark"] .addReminderForm,
[data-theme="dark"] .cycleEditorPanel,
[data-theme="dark"] .careLumaShortcuts,
[data-theme="dark"] .logHistoryPanel {
  background: #241d22;
  color: #f5eef2;
  border-color: #3a2d35;
}

[data-theme="dark"] .calendarDetailsSection > summary,
[data-theme="dark"] .calendarDetailsHelp > summary,
[data-theme="dark"] .careLumaShortcuts summary,
[data-theme="dark"] .homeAlertsDropdown summary,
[data-theme="dark"] .homeAlertsSummaryMain,
[data-theme="dark"] .homeAlertsSummaryMeta,
[data-theme="dark"] .toggleRow,
[data-theme="dark"] .addReminderForm label,
[data-theme="dark"] .bodyLogContextLabel,
[data-theme="dark"] .bodyLogContextPhase,
[data-theme="dark"] .bodyLogPatternHint,
[data-theme="dark"] .bodyLogPurposeText,
[data-theme="dark"] .lumaLearningWhere ul,
[data-theme="dark"] .importPanel h3,
[data-theme="dark"] .importPanel p,
[data-theme="dark"] .cycleEditorPanel h3,
[data-theme="dark"] .logComposerIntro,
[data-theme="dark"] .logHistoryIntro,
[data-theme="dark"] .signalEssentialLead,
[data-theme="dark"] .patternMemoryLead,
[data-theme="dark"] .homeLumaDesc,
[data-theme="dark"] .bbtChartHint,
[data-theme="dark"] .todayPlanLead,
[data-theme="dark"] .scheduleHint,
[data-theme="dark"] .privacySyncStatus p,
[data-theme="dark"] .partnerSupportCard p,
[data-theme="dark"] .calendarLegend,
[data-theme="dark"] .calendarLegend span,
[data-theme="dark"] .calendarLegend small,
[data-theme="dark"] .rangeField,
[data-theme="dark"] .noteField {
  color: #f0e6ec;
}

[data-theme="dark"] .lumaLearningWhere summary {
  color: #ffd6ef;
}

[data-theme="dark"] .lumaLearningCore {
  background: linear-gradient(180deg, #faf6f9 0%, #ffffff 100%);
  border-color: rgba(122, 63, 106, 0.16);
}

[data-theme="dark"] .lumaLearningCore .lumaLearningStage span {
  color: #d07090;
  background: rgba(122, 63, 106, 0.12);
}

[data-theme="dark"] .lumaLearningCore .lumaLearningStage strong {
  color: #2a2226;
}

[data-theme="dark"] .lumaLearningCore .lumaLearningEvidence li {
  color: #3f3339;
}

[data-theme="dark"] .lumaLearningCore .lumaLearningProgress {
  background: rgba(122, 63, 106, 0.12);
}

[data-theme="dark"] .lumaLearningCore .lumaLearningNext {
  background: rgba(122, 63, 106, 0.1);
  color: #3f3339;
}

[data-theme="dark"] .bodyLogInsightsCard > #logSummary {
  color: #e0d4da;
}

[data-theme="dark"] .calendarDetailsSection > summary::after,
[data-theme="dark"] .homeAlertsDropdown summary::after {
  color: #ecc8d4;
}

[data-theme="dark"] .addReminderForm input,
[data-theme="dark"] .addReminderForm select,
[data-theme="dark"] .manualImportPanel textarea {
  background: #17121a;
  color: #f5eef2;
  border-color: #3a2d35;
}

[data-theme="dark"] .textLinkBtn,
[data-theme="dark"] .calendarSecondaryBtn,
[data-theme="dark"] .authLink,
[data-theme="dark"] .paywallCloseBtn {
  color: #f0d6e2;
}

[data-theme="dark"] .authHelpText,
[data-theme="dark"] .subscriptionDetail,
[data-theme="dark"] .verificationNotice p,
[data-theme="dark"] .paywallTrialNote,
[data-theme="dark"] .paywallFootnote,
[data-theme="dark"] .paywallFeatureList {
  color: #d8c4cf;
}

[data-theme="dark"] .googleButton,
[data-theme="dark"] .verificationNotice,
[data-theme="dark"] .paywallCard {
  background: #241d22;
  color: #f5eef2;
  border-color: #3a2d35;
}

[data-theme="dark"] .authDivider,
[data-theme="dark"] .authProfileDivider {
  color: #ecc8d4;
}

[data-theme="dark"] .authDivider::before,
[data-theme="dark"] .authDivider::after {
  background: #3a2d35;
}

[data-theme="dark"] .anomalyTitle {
  color: #f0b4bd;
}

[data-theme="dark"] .anomalyItem {
  background: rgba(168, 73, 79, 0.2);
  color: #f3d8dd;
}

[data-theme="moonlit"] .calendarDetailsSection,
[data-theme="moonlit"] .importPanel,
[data-theme="moonlit"] .bodyLogPurpose,
[data-theme="moonlit"] .bodyLogContext,
[data-theme="moonlit"] .addReminderForm,
[data-theme="moonlit"] .cycleEditorPanel,
[data-theme="moonlit"] .careLumaShortcuts,
[data-theme="moonlit"] .logHistoryPanel,
[data-theme="moonlit"] .periodHistoryCard,
[data-theme="moonlit"] .logDetailFields,
[data-theme="moonlit"] .bbtChartSection,
[data-theme="moonlit"] .yearCalendarPanel,
[data-theme="moonlit"] .predictionToggle {
  background: #3a3548;
  color: #f4f6fb;
  border-color: rgba(168, 184, 216, 0.14);
}

[data-theme="moonlit"] .calendarDetailsSection > summary,
[data-theme="moonlit"] .calendarDetailsHelp > summary,
[data-theme="moonlit"] .careLumaShortcuts summary,
[data-theme="moonlit"] .homeAlertsDropdown summary,
[data-theme="moonlit"] .homeAlertsSummaryMain,
[data-theme="moonlit"] .homeAlertsSummaryMeta,
[data-theme="moonlit"] .toggleRow,
[data-theme="moonlit"] .addReminderForm label,
[data-theme="moonlit"] .bodyLogContextLabel,
[data-theme="moonlit"] .bodyLogContextPhase,
[data-theme="moonlit"] .bodyLogPatternHint,
[data-theme="moonlit"] .bodyLogPurposeText,
[data-theme="moonlit"] .lumaLearningWhere ul,
[data-theme="moonlit"] .importPanel h3,
[data-theme="moonlit"] .importPanel p,
[data-theme="moonlit"] .cycleEditorPanel h3,
[data-theme="moonlit"] .predictionToggle label,
[data-theme="moonlit"] .yearCalendarPanel h2,
[data-theme="moonlit"] .yearCalendarPanel h3,
[data-theme="moonlit"] .logComposerIntro,
[data-theme="moonlit"] .logHistoryIntro,
[data-theme="moonlit"] .signalEssentialLead,
[data-theme="moonlit"] .patternMemoryLead,
[data-theme="moonlit"] .homeLumaDesc,
[data-theme="moonlit"] .bbtChartHint,
[data-theme="moonlit"] .todayPlanLead,
[data-theme="moonlit"] .scheduleHint,
[data-theme="moonlit"] .privacySyncStatus p,
[data-theme="moonlit"] .partnerSupportCard p,
[data-theme="moonlit"] .calendarLegend,
[data-theme="moonlit"] .calendarLegend span,
[data-theme="moonlit"] .calendarLegend small,
[data-theme="moonlit"] .rangeField,
[data-theme="moonlit"] .noteField {
  color: #e8ecf4;
}

[data-theme="moonlit"] .lumaLearningWhere summary {
  color: #dbe4ff;
}

[data-theme="moonlit"] .lumaLearningCore {
  background: linear-gradient(180deg, #faf6f9 0%, #ffffff 100%);
  border-color: rgba(122, 63, 106, 0.16);
}

[data-theme="moonlit"] .lumaLearningCore .lumaLearningStage span {
  color: #d07090;
  background: rgba(122, 63, 106, 0.12);
}

[data-theme="moonlit"] .lumaLearningCore .lumaLearningStage strong {
  color: #2a2226;
}

[data-theme="moonlit"] .lumaLearningCore .lumaLearningEvidence li {
  color: #3f3339;
}

[data-theme="moonlit"] .lumaLearningCore .lumaLearningProgress {
  background: rgba(122, 63, 106, 0.12);
}

[data-theme="moonlit"] .lumaLearningCore .lumaLearningNext {
  background: rgba(122, 63, 106, 0.1);
  color: #3f3339;
}

[data-theme="moonlit"] .bodyLogInsightsCard > #logSummary {
  color: #d0dcf0;
}

[data-theme="moonlit"] .calendarDetailsSection > summary::after,
[data-theme="moonlit"] .homeAlertsDropdown summary::after {
  color: #d0d8ec;
}

[data-theme="moonlit"] .addReminderForm input,
[data-theme="moonlit"] .addReminderForm select,
[data-theme="moonlit"] .manualImportPanel textarea {
  background: #171d2a;
  color: #f4f6fb;
  border-color: rgba(168, 184, 216, 0.16);
}

[data-theme="moonlit"] .textLinkBtn,
[data-theme="moonlit"] .calendarSecondaryBtn,
[data-theme="moonlit"] .authLink,
[data-theme="moonlit"] .paywallCloseBtn {
  color: #dbe5ff;
}

[data-theme="moonlit"] .authHelpText,
[data-theme="moonlit"] .subscriptionDetail,
[data-theme="moonlit"] .verificationNotice p,
[data-theme="moonlit"] .paywallTrialNote,
[data-theme="moonlit"] .paywallFootnote,
[data-theme="moonlit"] .paywallFeatureList {
  color: #c8d4e8;
}

[data-theme="moonlit"] .googleButton,
[data-theme="moonlit"] .verificationNotice,
[data-theme="moonlit"] .paywallCard {
  background: #3a3548;
  color: #f4f6fb;
  border-color: rgba(168, 184, 216, 0.14);
}

[data-theme="moonlit"] .authDivider,
[data-theme="moonlit"] .authProfileDivider {
  color: #d0d8ec;
}

[data-theme="moonlit"] .authDivider::before,
[data-theme="moonlit"] .authDivider::after {
  background: rgba(168, 184, 216, 0.14);
}

[data-theme="moonlit"] .anomalyTitle {
  color: #f0dcc8;
}

[data-theme="moonlit"] .anomalyItem {
  background: rgba(240, 220, 200, 0.12);
  color: #f4e7db;
}

[data-theme="dark"] .lumaHubHero,
[data-theme="dark"] .hubSection,
[data-theme="dark"] .lumaPromptGroups,
[data-theme="dark"] .profileCard,
[data-theme="dark"] .settingsList,
[data-theme="dark"] .powerToolsStrip,
[data-theme="dark"] .launchReadinessPanel {
  color: #f5eef2;
}

[data-theme="dark"] .profileStats div,
[data-theme="dark"] .powerToolBtn,
[data-theme="dark"] .launchReadinessItem,
[data-theme="dark"] .lumaPromptGroupRow button,
[data-theme="dark"] .memoryStrip span,
[data-theme="dark"] .aiToolCard.premium {
  background: #2a1f27;
  color: #f5eef2;
  border-color: #3a2d35;
}

[data-theme="dark"] .lumaPromptGroups {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

[data-theme="dark"] .settingsList h2,
[data-theme="dark"] .profileStats b,
[data-theme="dark"] .powerToolBtn strong,
[data-theme="dark"] .powerToolsHeader .label,
[data-theme="dark"] .lumaHubHero h1,
[data-theme="dark"] .lumaHubHero h2,
[data-theme="dark"] .lumaPromptGroup h3,
[data-theme="dark"] .aiToolCard.premium h3,
[data-theme="dark"] .launchReadinessItem strong {
  color: #fff8fb;
}

[data-theme="dark"] .profileStats span,
[data-theme="dark"] .powerToolsHeader span,
[data-theme="dark"] .settingsSectionLead,
[data-theme="dark"] .lumaHubGreeting,
[data-theme="dark"] .lumaPromptGroups summary,
[data-theme="dark"] .launchReadinessSummary,
[data-theme="dark"] .launchReadinessItem p,
[data-theme="dark"] .aiToolCard.premium p {
  color: #e4d2dc;
}

[data-theme="dark"] .powerToolBtn span {
  background: rgba(143, 212, 203, 0.18);
  color: #a7eee5;
}

[data-theme="dark"] .aiToolBadge {
  background: rgba(216, 169, 184, 0.16);
  color: #ffd9e8;
}

[data-theme="dark"] .homeModeBanner--tww,
[data-theme="dark"] .twwSupportFlow {
  background: #2a1f30;
  border-color: rgba(216, 169, 184, 0.24);
  color: #f5eef2;
}

[data-theme="dark"] .homeModeBanner--safety {
  background: #2f211f;
  border-color: rgba(240, 180, 160, 0.24);
  color: #f7ded4;
}

[data-theme="dark"] .homeModeBanner--irregular {
  background: #2d2024;
  border-color: rgba(232, 180, 184, 0.24);
  color: #f5d8dd;
}

[data-theme="dark"] .twwActionRow button {
  background: #e8a8bc;
  color: #2a2228;
}

[data-theme="dark"] .medAdherenceCard,
[data-theme="dark"] .medCalendarDay {
  background: #2a1f27;
  border-color: #3a2d35;
  color: #f5eef2;
}

[data-theme="dark"] .medTodayChip,
[data-theme="dark"] .medMiniChip {
  background: #241d22;
  border-color: #3a2d35;
  color: #e4d2dc;
}

[data-theme="dark"] .medTodayChip--taken,
[data-theme="dark"] .medMiniChip--taken {
  background: #17342f;
  border-color: rgba(143, 212, 203, 0.38);
  color: #baf4ea;
}

[data-theme="dark"] .medTodayChip--skipped,
[data-theme="dark"] .medMiniChip--skipped {
  background: #3a2220;
  border-color: rgba(240, 180, 160, 0.38);
  color: #ffd8ca;
}

[data-theme="moonlit"] .lumaHubHero,
[data-theme="moonlit"] .hubSection,
[data-theme="moonlit"] .lumaPromptGroups,
[data-theme="moonlit"] .profileCard,
[data-theme="moonlit"] .settingsList,
[data-theme="moonlit"] .powerToolsStrip,
[data-theme="moonlit"] .launchReadinessPanel {
  color: #f4f6fb;
}

[data-theme="moonlit"] .profileStats div,
[data-theme="moonlit"] .powerToolBtn,
[data-theme="moonlit"] .launchReadinessItem,
[data-theme="moonlit"] .lumaPromptGroupRow button,
[data-theme="moonlit"] .memoryStrip span,
[data-theme="moonlit"] .aiToolCard.premium {
  background: #3a3548;
  color: #f4f6fb;
  border-color: rgba(168, 184, 216, 0.16);
}

[data-theme="moonlit"] .lumaPromptGroups {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

[data-theme="moonlit"] .settingsList h2,
[data-theme="moonlit"] .profileStats b,
[data-theme="moonlit"] .powerToolBtn strong,
[data-theme="moonlit"] .powerToolsHeader .label,
[data-theme="moonlit"] .lumaHubHero h1,
[data-theme="moonlit"] .lumaHubHero h2,
[data-theme="moonlit"] .lumaPromptGroup h3,
[data-theme="moonlit"] .aiToolCard.premium h3,
[data-theme="moonlit"] .launchReadinessItem strong {
  color: #ffffff;
}

[data-theme="moonlit"] .profileStats span,
[data-theme="moonlit"] .powerToolsHeader span,
[data-theme="moonlit"] .settingsSectionLead,
[data-theme="moonlit"] .lumaHubGreeting,
[data-theme="moonlit"] .lumaPromptGroups summary,
[data-theme="moonlit"] .launchReadinessSummary,
[data-theme="moonlit"] .launchReadinessItem p,
[data-theme="moonlit"] .aiToolCard.premium p {
  color: #dbe5f8;
}

[data-theme="moonlit"] .powerToolBtn span {
  background: rgba(168, 184, 216, 0.18);
  color: #eef4ff;
}

[data-theme="moonlit"] .aiToolBadge {
  background: rgba(168, 184, 216, 0.18);
  color: #eef4ff;
}

[data-theme="moonlit"] .homeModeBanner--tww,
[data-theme="moonlit"] .twwSupportFlow {
  background: #2f344d;
  border-color: rgba(168, 184, 216, 0.22);
  color: #f4f6fb;
}

[data-theme="moonlit"] .homeModeBanner--safety {
  background: #3a302b;
  border-color: rgba(240, 220, 200, 0.22);
  color: #f8e5d6;
}

[data-theme="moonlit"] .homeModeBanner--irregular {
  background: #373047;
  border-color: rgba(218, 190, 236, 0.22);
  color: #f0defb;
}

[data-theme="moonlit"] .twwActionRow button {
  background: #7b8fc9;
  color: #fff;
}

[data-theme="moonlit"] .medAdherenceCard,
[data-theme="moonlit"] .medCalendarDay {
  background: #3a3548;
  border-color: rgba(168, 184, 216, 0.16);
  color: #f4f6fb;
}

[data-theme="moonlit"] .medTodayChip,
[data-theme="moonlit"] .medMiniChip {
  background: #1d2534;
  border-color: rgba(168, 184, 216, 0.16);
  color: #dbe5f8;
}

[data-theme="moonlit"] .medTodayChip--taken,
[data-theme="moonlit"] .medMiniChip--taken {
  background: #183832;
  border-color: rgba(150, 220, 205, 0.38);
  color: #bcf5ea;
}

[data-theme="moonlit"] .medTodayChip--skipped,
[data-theme="moonlit"] .medMiniChip--skipped {
  background: #3a2a25;
  border-color: rgba(240, 220, 200, 0.38);
  color: #ffe2d0;
}

[data-theme="hearth"] .calendarDetailsSection,
[data-theme="hearth"] .importPanel,
[data-theme="hearth"] .bodyLogPurpose,
[data-theme="hearth"] .bodyLogContext,
[data-theme="hearth"] .addReminderForm,
[data-theme="hearth"] .cycleEditorPanel,
[data-theme="hearth"] .careLumaShortcuts,
[data-theme="hearth"] .logHistoryPanel {
  background: #fffdf9;
  color: #4a3d32;
  border-color: rgba(193, 127, 89, 0.16);
}

[data-theme="hearth"] .calendarDetailsSection > summary,
[data-theme="hearth"] .calendarDetailsHelp > summary,
[data-theme="hearth"] .careLumaShortcuts summary,
[data-theme="hearth"] .homeAlertsDropdown summary,
[data-theme="hearth"] .homeAlertsSummaryMain,
[data-theme="hearth"] .homeAlertsSummaryMeta,
[data-theme="hearth"] .toggleRow,
[data-theme="hearth"] .addReminderForm label,
[data-theme="hearth"] .bodyLogContextLabel,
[data-theme="hearth"] .bodyLogContextPhase,
[data-theme="hearth"] .bodyLogPatternHint,
[data-theme="hearth"] .bodyLogPurposeText,
[data-theme="hearth"] .authLink,
[data-theme="hearth"] .authHelpText,
[data-theme="hearth"] .subscriptionDetail,
[data-theme="hearth"] .verificationNotice p {
  color: #4a3d32;
}

[data-theme="hearth"] .googleButton,
[data-theme="hearth"] .verificationNotice,
[data-theme="hearth"] .paywallCard {
  background: #fffdf9;
  color: #4a3d32;
  border-color: rgba(193, 127, 89, 0.16);
}

[data-theme="hearth"] .anomalyTitle {
  color: #9a5b3d;
}

[data-theme="hearth"] .anomalyItem {
  background: #fff4e8;
  color: #5a3f2f;
}

[data-theme="dark"] .authScreen {
  background:
    linear-gradient(155deg, rgba(240, 214, 226, 0.12), transparent 34%),
    linear-gradient(24deg, rgba(102, 179, 166, 0.1), transparent 42%),
    var(--luma-bg);
}

[data-theme="dark"] .authHero h1,
[data-theme="dark"] .authSubtitle {
  color: #f5eef2;
}

[data-theme="dark"] .authSignalPanel {
  background:
    linear-gradient(135deg, rgba(43, 31, 41, 0.96), rgba(31, 22, 34, 0.9));
  border-color: #4b3947;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .authSignalPanel strong {
  color: #f5eef2;
}

[data-theme="dark"] .authSignalPanel small {
  color: #dccbd5;
}

[data-theme="dark"] .authSignalDot {
  background: linear-gradient(135deg, #8b4f7a, #c283ad);
}

[data-theme="dark"] .authTrustStrip span,
[data-theme="dark"] .authCard,
[data-theme="dark"] .authTermsCard,
[data-theme="dark"] .authCard .authForm input,
[data-theme="dark"] .authCard .authForm textarea {
  background: #241d22;
  color: #f5eef2;
  border-color: #3a2d35;
}

[data-theme="dark"] .authCard .checkInCard,
[data-theme="dark"] #userCard .checkInCard {
  background: #fffdf8;
  color: #3a3036;
  border-color: rgba(128, 63, 115, 0.14);
}

[data-theme="dark"] .authCard,
[data-theme="dark"] .authTermsCard {
  background:
    linear-gradient(145deg, rgba(38, 29, 37, 0.96), rgba(26, 19, 29, 0.92));
  box-shadow:
    0 26px 62px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .authTrustStrip span {
  background:
    linear-gradient(180deg, rgba(43, 32, 41, 0.96), rgba(32, 24, 33, 0.92));
  color: #f0d8e7;
}

[data-theme="dark"] .authCard .authForm .field span,
[data-theme="dark"] .authCard .authHelpText,
[data-theme="dark"] .authCard .verificationNotice p,
[data-theme="dark"] .authTermsCard {
  color: #d8c4cf;
}

[data-theme="dark"] .authCard .authForm input,
[data-theme="dark"] .authCard .authForm textarea {
  background:
    linear-gradient(180deg, #17121a, #120e15);
  color: #f5eef2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .authModeSwitch {
  background: #17121a;
  border-color: #3a2d35;
}

[data-theme="dark"] .authModeSwitch button {
  color: #d8c4cf;
}

[data-theme="dark"] .authModeSwitch button.active {
  background: linear-gradient(135deg, #8b4f7a, #b86b9f);
  color: #fff;
}

[data-theme="moonlit"] .authScreen {
  background:
    linear-gradient(155deg, rgba(121, 141, 188, 0.18), transparent 34%),
    linear-gradient(24deg, rgba(66, 150, 154, 0.12), transparent 42%),
    var(--luma-bg);
}

[data-theme="moonlit"] .authHero h1,
[data-theme="moonlit"] .authSubtitle {
  color: #f4f6fb;
}

[data-theme="moonlit"] .authSignalPanel {
  background:
    linear-gradient(135deg, rgba(58, 53, 72, 0.96), rgba(28, 35, 51, 0.92));
  border-color: rgba(168, 184, 216, 0.24);
  box-shadow: 0 24px 50px rgba(6, 11, 24, 0.3);
}

[data-theme="moonlit"] .authSignalPanel strong {
  color: #f4f6fb;
}

[data-theme="moonlit"] .authSignalPanel small {
  color: #c8d4e8;
}

[data-theme="moonlit"] .authSignalDot {
  background: linear-gradient(135deg, #7285bd, #8f5e94);
}

[data-theme="moonlit"] .authTrustStrip span,
[data-theme="moonlit"] .authCard,
[data-theme="moonlit"] .authTermsCard,
[data-theme="moonlit"] .authCard .authForm input,
[data-theme="moonlit"] .authCard .authForm textarea {
  background: #3a3548;
  color: #f4f6fb;
  border-color: rgba(168, 184, 216, 0.16);
}

[data-theme="moonlit"] .authCard .checkInCard,
[data-theme="moonlit"] #userCard .checkInCard {
  background: #fffdf8;
  color: #3a3036;
  border-color: rgba(128, 63, 115, 0.14);
}

[data-theme="moonlit"] .authCard,
[data-theme="moonlit"] .authTermsCard {
  background:
    linear-gradient(145deg, rgba(58, 53, 72, 0.96), rgba(28, 35, 51, 0.92));
  box-shadow:
    0 26px 62px rgba(6, 11, 24, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="moonlit"] .authTrustStrip span {
  background:
    linear-gradient(180deg, rgba(43, 53, 74, 0.96), rgba(34, 42, 60, 0.92));
  color: #dde7fb;
}

[data-theme="moonlit"] .authCard .authForm .field span,
[data-theme="moonlit"] .authCard .authHelpText,
[data-theme="moonlit"] .authCard .verificationNotice p,
[data-theme="moonlit"] .authTermsCard {
  color: #c8d4e8;
}

[data-theme="moonlit"] .authCard .authForm input,
[data-theme="moonlit"] .authCard .authForm textarea {
  background:
    linear-gradient(180deg, #171d2a, #111724);
  color: #f4f6fb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(6, 11, 24, 0.2);
}

[data-theme="moonlit"] .authModeSwitch {
  background: #171d2a;
  border-color: rgba(168, 184, 216, 0.16);
}

[data-theme="moonlit"] .authModeSwitch button {
  color: #c8d4e8;
}

[data-theme="moonlit"] .authModeSwitch button.active {
  background: linear-gradient(135deg, #7285bd, #8b6fb2);
  color: #fff;
}

[data-theme="hearth"] .authScreen {
  background:
    radial-gradient(circle at 20% 0%, rgba(193, 127, 89, 0.16), transparent 34%),
    radial-gradient(circle at 100% 24%, rgba(124, 104, 73, 0.12), transparent 30%),
    var(--luma-bg);
}

[data-theme="hearth"] .authHero h1,
[data-theme="hearth"] .authSubtitle,
[data-theme="hearth"] .authCard .authForm .field span,
[data-theme="hearth"] .authCard .authHelpText,
[data-theme="hearth"] .authCard .verificationNotice p,
[data-theme="hearth"] .authTermsCard,
[data-theme="hearth"] .authModeSwitch button {
  color: #4a3d32;
}

[data-theme="hearth"] .authModeSwitch {
  background: #f4e3d5;
  border-color: rgba(193, 127, 89, 0.18);
}

[data-theme="hearth"] .authModeSwitch button.active,
[data-theme="hearth"] .authCard .wideButton {
  background: #9a5b3d;
  color: #fff;
}

[data-theme="dark"] .lumaChatControls button,
[data-theme="dark"] .lumaPreviousChatsPanel,
[data-theme="dark"] .lumaPreviousChatItem {
  background: #241d22;
  color: #f5eef2;
  border-color: #3a2d35;
}

[data-theme="dark"] .lumaChatControls button[aria-expanded="true"],
[data-theme="dark"] .lumaChatControls button:active {
  background: #8b4f7a;
  color: #fff;
}

[data-theme="dark"] .lumaPreviousChatsHeader strong,
[data-theme="dark"] .lumaPreviousChatItem strong {
  color: #f5eef2;
}

[data-theme="dark"] .lumaPreviousChatsEmpty,
[data-theme="dark"] .lumaPreviousChatItem small {
  color: #d8c4cf;
}

[data-theme="moonlit"] .lumaChatControls button,
[data-theme="moonlit"] .lumaPreviousChatsPanel,
[data-theme="moonlit"] .lumaPreviousChatItem {
  background: #3a3548;
  color: #dbe5ff;
  border-color: rgba(168, 184, 216, 0.16);
}

[data-theme="moonlit"] .lumaChatControls button[aria-expanded="true"],
[data-theme="moonlit"] .lumaChatControls button:active {
  background: #7285bd;
  color: #fff;
}

[data-theme="moonlit"] .lumaPreviousChatsHeader strong,
[data-theme="moonlit"] .lumaPreviousChatItem strong {
  color: #f4f6fb;
}

[data-theme="moonlit"] .lumaPreviousChatsEmpty,
[data-theme="moonlit"] .lumaPreviousChatItem small {
  color: #c8d4e8;
}

[data-theme="hearth"] .lumaChatControls button,
[data-theme="hearth"] .lumaPreviousChatsPanel,
[data-theme="hearth"] .lumaPreviousChatItem {
  background: #fffdf9;
  color: #9a5b3d;
  border-color: rgba(193, 127, 89, 0.16);
}

[data-theme="hearth"] .lumaChatControls button[aria-expanded="true"],
[data-theme="hearth"] .lumaChatControls button:active {
  background: #9a5b3d;
  color: #fff;
}

.todayPlanTile {
  cursor: default;
}

/* Semantic token enforcement — last-resort catch for themed surfaces */
[data-theme="dark"] .phoneShell,
[data-theme="moonlit"] .phoneShell {
  color: var(--luma-text);
}

[data-theme="dark"] .homeTodayPlanCard,
[data-theme="dark"] .homeAlertsDropdown,
[data-theme="dark"] .homeAlertsDropdownBody,
[data-theme="moonlit"] .homeTodayPlanCard,
[data-theme="moonlit"] .homeAlertsDropdown,
[data-theme="moonlit"] .homeAlertsDropdownBody {
  background: var(--luma-surface-card);
  border-color: var(--luma-border);
  color: var(--luma-text);
}

[data-theme="dark"] .todayPlanTile,
[data-theme="moonlit"] .todayPlanTile {
  background: var(--luma-surface-elevated);
  border-color: var(--luma-border-soft);
}

[data-theme="dark"] .todayPlanTile strong,
[data-theme="moonlit"] .todayPlanTile strong,
[data-theme="dark"] .homeAlertsDropdown summary,
[data-theme="moonlit"] .homeAlertsDropdown summary {
  color: var(--luma-text-heading);
}

[data-theme="dark"] .todayPlanTile p,
[data-theme="moonlit"] .todayPlanTile p,
[data-theme="dark"] .homeAlertsDesc,
[data-theme="moonlit"] .homeAlertsDesc {
  color: var(--luma-text-muted);
}

[data-theme="dark"] .notificationSubsection,
[data-theme="moonlit"] .notificationSubsection {
  border-top-color: var(--luma-border);
}

[data-theme="dark"] .notificationSubsection h3,
[data-theme="moonlit"] .notificationSubsection h3,
[data-theme="dark"] .notificationSubsection .toggleRow,
[data-theme="moonlit"] .notificationSubsection .toggleRow,
[data-theme="dark"] .notificationSubsection .field,
[data-theme="moonlit"] .notificationSubsection .field,
[data-theme="dark"] .notificationSubsection .field span,
[data-theme="moonlit"] .notificationSubsection .field span {
  color: var(--luma-text-heading);
}

[data-theme="dark"] .themePickerCard,
[data-theme="moonlit"] .themePickerCard {
  background: var(--luma-surface-card);
  border-color: var(--luma-border);
  color: var(--luma-text);
}

[data-theme="dark"] .themePickerLead,
[data-theme="dark"] .themePickerDesc,
[data-theme="moonlit"] .themePickerLead,
[data-theme="moonlit"] .themePickerDesc {
  color: var(--luma-text-muted);
}

/* Global text inheritance for dark themes */
[data-theme="dark"] .phoneShell p,
[data-theme="moonlit"] .phoneShell p,
[data-theme="hearth"] .phoneShell p {
  color: var(--luma-text-muted);
}

[data-theme="dark"] .phoneShell h1,
[data-theme="dark"] .phoneShell h2,
[data-theme="dark"] .phoneShell h3,
[data-theme="moonlit"] .phoneShell h1,
[data-theme="moonlit"] .phoneShell h2,
[data-theme="moonlit"] .phoneShell h3,
[data-theme="hearth"] .phoneShell h1,
[data-theme="hearth"] .phoneShell h2,
[data-theme="hearth"] .phoneShell h3 {
  color: var(--luma-text-heading);
}

[data-theme="dark"] .summaryCard,
[data-theme="dark"] .checkInCard,
[data-theme="dark"] .profileCard,
[data-theme="dark"] .settingsRow,
[data-theme="dark"] .logComposer,
[data-theme="dark"] .logHistoryPanel,
[data-theme="moonlit"] .summaryCard,
[data-theme="moonlit"] .checkInCard,
[data-theme="moonlit"] .profileCard,
[data-theme="moonlit"] .settingsRow,
[data-theme="moonlit"] .logComposer,
[data-theme="moonlit"] .logHistoryPanel {
  background: var(--luma-surface-card);
  border-color: var(--luma-border);
  color: var(--luma-text);
}

.phoneShell .clinicalReportHero .label {
  color: var(--luma-label);
}

.phoneShell .clinicalReportHero h2 {
  color: var(--luma-text-heading);
}

.phoneShell .clinicalReportHero p:not(.label) {
  color: var(--luma-text-muted);
}

/* Preview visual cards: keep contrast strong in dark appearances. */
[data-theme="dark"] .phoneShell .learnVisualFeature {
  background: #352a32;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .phoneShell .learnVisualFeature .label {
  color: #f0b4bd;
}

[data-theme="dark"] .phoneShell .learnVisualFeature h2 {
  color: #fff7f1;
}

[data-theme="dark"] .phoneShell .learnVisualFeature p:last-child {
  color: #ead7e2;
}

[data-theme="moonlit"] .phoneShell .learnVisualFeature {
  background: #2e2a38;
  border-color: rgba(168, 184, 216, 0.24);
}

[data-theme="moonlit"] .phoneShell .learnVisualFeature .label {
  color: #d8e5ff;
}

[data-theme="moonlit"] .phoneShell .learnVisualFeature h2 {
  color: #f7f9ff;
}

[data-theme="moonlit"] .phoneShell .learnVisualFeature p:last-child {
  color: #d6e2f6;
}

/* Modern mode-aware dashboard cards */
.lumaReadCard,
.pregnancyWeekCard {
  border: 1px solid var(--luma-ai-border);
  background: var(--luma-glass-surface);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--luma-glass-surface-shadow);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
}

.lumaReadCard {
  display: grid;
  gap: 16px;
}

.lumaReadHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lumaReadHeader h2,
.pregnancyWeekBody h2 {
  margin: 4px 0 0;
  color: var(--luma-text-heading);
  font-size: 1.35rem;
  line-height: 1.08;
}

.lumaReadCard p:not(.label),
.pregnancyWeekBody p:not(.label) {
  margin: 0;
  color: var(--luma-text-muted);
  line-height: 1.48;
}

.lumaReadSummary {
  font-size: 15px;
  line-height: 1.5;
}

.lumaReadMore {
  margin-top: 4px;
}

.lumaReadMore summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--luma-link);
  list-style: none;
}

.lumaReadMore summary::-webkit-details-marker {
  display: none;
}

.lumaReadMore summary::after {
  content: " ▾";
  font-size: 11px;
}

.lumaReadMore[open] summary::after {
  content: " ▴";
}

.lumaReadMore p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--luma-text-muted);
}

.lumaReadConfidence {
  flex: 0 0 auto;
  min-width: 58px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #e5f2ee;
  color: #5a9a88;
  text-align: center;
  font-weight: 900;
  font-size: 0.85rem;
}

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

.lumaReadActions button,
.pregnancyWeekActions button {
  border: 0;
  border-radius: 999px;
  padding: 13px 14px;
  background: #7e3f6a;
  color: #fff;
  font-weight: 900;
  font-size: 0.94rem;
}

.lumaReadActions button:last-child,
.pregnancyWeekActions button:last-child {
  background: #efe6ed;
  color: var(--luma-link);
}

/* Unified Track: one calendar with selected-day logging below it. */
#trackSegmentBar,
#cycleWheelSection {
  display: none !important;
}

.unifiedTrackLogPanel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--luma-ai-border);
  background: var(--luma-glass-surface);
  border-radius: 30px;
  padding: 22px;
  box-shadow: var(--luma-glass-surface-shadow);
  backdrop-filter: blur(20px) saturate(1.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.06);
}

.unifiedTrackLogHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.unifiedTrackLogHeader h2 {
  margin: 4px 0 6px;
  color: var(--luma-text-heading);
  font-size: 1.45rem;
  line-height: 1.05;
}

.unifiedTrackLogHeader p:not(.label) {
  margin: 0;
  color: var(--luma-text-muted);
  line-height: 1.45;
}

.unifiedTrackLogHeader [data-icon] {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #e5f2ee;
  color: #1b7b74;
}

#unifiedTrackLogMount {
  display: grid;
  gap: 16px;
}

#unifiedTrackLogMount .opkScannerSection,
#unifiedTrackLogMount .bodyLogContext,
#unifiedTrackLogMount .logCheckInDetails,
#unifiedTrackLogMount .bodyLogInsightsCard,
#unifiedTrackLogMount .logHistoryPanel {
  margin: 0;
}

.yearCalendarPanel .cardTop h2 {
  font-size: 1.55rem;
}

.calendarHintProminent {
  font-size: 0.98rem;
  line-height: 1.45;
}

[data-theme="dark"] .phoneShell .unifiedTrackLogPanel {
  background:
    linear-gradient(135deg, rgba(46, 34, 45, 0.96), rgba(28, 22, 30, 0.92)),
    var(--luma-surface-card);
  border-color: rgba(255, 255, 255, 0.13);
}

[data-theme="dark"] .phoneShell .unifiedTrackLogHeader h2 {
  color: #fff7fb;
}

[data-theme="dark"] .phoneShell .unifiedTrackLogHeader p:not(.label) {
  color: #eadbe4;
}

[data-theme="moonlit"] .phoneShell .unifiedTrackLogPanel {
  background:
    linear-gradient(135deg, rgba(34, 42, 60, 0.96), rgba(25, 32, 47, 0.93)),
    var(--luma-surface-card);
  border-color: rgba(181, 202, 239, 0.2);
}

[data-theme="moonlit"] .phoneShell .unifiedTrackLogHeader h2 {
  color: #f8fbff;
}

[data-theme="moonlit"] .phoneShell .unifiedTrackLogHeader p:not(.label) {
  color: #dbe6f8;
}

.pregnancyWeekCard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
  overflow: hidden;
  position: relative;
}

.pregnancyWeekHero {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.pregnancyWeekSizeChip {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--luma-text-heading);
  line-height: 1.35;
}

.pregnancyWeekBody {
  display: grid;
  gap: 12px;
}

.pregnancyWeekNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(126, 63, 106, 0.12);
}

.pregnancyWeekNavLabel {
  flex: 1;
  text-align: center;
}

.pregnancyWeekNavLabel strong {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
  color: var(--luma-text-heading);
}

.pregnancyWeekNavBtn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(126, 63, 106, 0.12);
  color: #7e3f6a;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.pregnancyWeekNavBtn:disabled {
  opacity: 0.35;
}

.pregnancyWeekGrowth {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--luma-link);
}

.pregnancyWeekSectionLabel {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--luma-text-muted);
}

.pregnancyWeekTip {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(223, 241, 235, 0.55);
  border-left: 3px solid #1b7b74;
  color: var(--luma-text-body);
  font-size: 0.94rem;
  line-height: 1.45;
}

.pregnancyWeekResetBtn {
  justify-self: start;
  align-self: start;
  width: max-content;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 10px 0;
  text-align: left;
}

.homePregnancyHub {
  display: grid;
  gap: 16px;
}

.homePregnancyHub[hidden] {
  display: none !important;
}

body.pregnancyFocusMode .homeMoreZone .cycleWeatherCard,
body.pregnancyFocusMode .homeMoreZone .lumaBodyMapCard,
body.pregnancyFocusMode .homeMoreZone .lumaReadCard,
body.pregnancyFocusMode .homeMoreZone .homeTodayPlanCard,
body.pregnancyFocusMode .homeMoreZone .homeCheckInDetails {
  display: none !important;
}

/* Pregnancy More zone: keep Reminder wrap as a real dropdown (summary visible) */
body.pregnancyFocusMode .homeMoreZone > .homeAlertsWrap {
  margin-top: 14px;
}

body.pregnancyFocusMode .homeRemindersSurface {
  display: block;
}

/* Keep Home photo + day copy visible in pregnancy (do not hide). */

.pregnancyMetaRow {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 12px;
}

.pregnancyDueDateChip {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(126, 63, 106, 0.12);
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  width: 100%;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

button.pregnancyDueDateChip:active {
  transform: scale(0.985);
}

.pregnancyCalendarHint {
  margin: -2px 2px 4px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--luma-text-muted);
}

.pregnancyDateField {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.pregnancyDateField input[type="date"] {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--luma-ai-border);
  padding: 10px 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
  color: var(--luma-text-heading);
}

.pregnancyDateHint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

.pregnancyDateDivider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--luma-text-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pregnancyDateDivider::before,
.pregnancyDateDivider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(126, 63, 106, 0.14);
}

.pregnancyTimelineOptions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  margin: 0 0 12px;
  border: 1px solid rgba(126, 63, 106, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(226, 166, 190, 0.16), transparent 60%),
    rgba(255, 251, 253, 0.68);
}

.pregnancyTimelineOptions .pregnancyDateField {
  margin: 0;
}

.pregnancyDateField input[type="number"],
.pregnancyDateField select {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--luma-ai-border);
  padding: 10px 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
  color: var(--luma-text-heading);
}

.pregnancyDateOptionBtn {
  min-height: 46px;
  border: 1px solid rgba(126, 63, 106, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--luma-link);
  font: 900 0.94rem/1.2 var(--font-sans);
}

#pregnancyDateOverlay {
  z-index: 80;
}

#pregnancyDateOverlay.active {
  display: grid;
}

[data-theme="dark"] .pregnancyDateField input[type="date"],
[data-theme="moonlit"] .pregnancyDateField input[type="date"],
[data-theme="dark"] .pregnancyDateField input[type="number"],
[data-theme="moonlit"] .pregnancyDateField input[type="number"],
[data-theme="dark"] .pregnancyDateField select,
[data-theme="moonlit"] .pregnancyDateField select {
  background: rgba(255, 255, 255, 0.08);
  color: var(--luma-on-glass-heading, #f4f6fb);
  border-color: rgba(255, 255, 255, 0.16);
  color-scheme: dark;
}

[data-theme="dark"] .pregnancyTimelineOptions,
[data-theme="moonlit"] .pregnancyTimelineOptions {
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(184, 201, 234, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .pregnancyDateOptionBtn,
[data-theme="moonlit"] .pregnancyDateOptionBtn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--luma-on-dark-heading);
}

.pregnancyDueDateEditHint {
  font-size: 11px;
  font-weight: 600;
  color: var(--luma-text-muted);
}

.pregnancyLmpLine {
  margin: 8px 2px 0;
  font-size: 12.5px;
  color: var(--luma-text-muted);
}

.pregnancyCalendarActions {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.pregnancyCalendarActions[hidden] {
  display: none !important;
}

.monthCalendarDay.pregnancyPreStart .dayNumber {
  opacity: 0.55;
}

#cycleDayBanner {
  display: none !important;
}

.pregnancyDueDateChip strong {
  font-size: 1.05rem;
  color: var(--luma-text-heading);
}

.pregnancyDaysUntil {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--luma-link);
}

.pregnancyTrimesterProgress {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(223, 241, 235, 0.45);
  border: 1px solid rgba(27, 123, 116, 0.14);
}

.pregnancyTrimesterProgressHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--luma-text-heading);
}

.pregnancyTrimesterSubRow {
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--luma-text-muted);
}

.pregnancyTrimesterBar {
  height: 8px;
  border-radius: 999px;
  background: rgba(126, 63, 106, 0.12);
  overflow: hidden;
}

.pregnancyTrimesterBar--inner {
  height: 6px;
  background: rgba(27, 123, 116, 0.14);
}

.pregnancyTrimesterBar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #7e3f6a, #c87d57);
  transition: width 0.35s ease;
}

.pregnancyTrimesterBar--inner span {
  background: linear-gradient(90deg, #1b7b74, #5fb3a7);
}

.pregnancyTrimesterSub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--luma-text-muted);
}

.pregnancyApptCard {
  border: 1px solid var(--luma-ai-border);
  background: var(--luma-glass-surface);
  border-radius: 28px;
  padding: 0;
  box-shadow: var(--luma-glass-surface-shadow);
  display: grid;
  gap: 0;
  overflow: hidden;
}

.pregnancyApptCard[hidden] {
  display: none !important;
}

.pregnancyApptSummary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.pregnancyApptSummary::-webkit-details-marker {
  display: none;
}

.pregnancyApptSummaryMain {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.pregnancyApptSummaryMain .label {
  margin: 0;
}

.pregnancyApptSummaryMain strong {
  font-size: 1.05rem;
  color: var(--luma-text-heading);
  line-height: 1.25;
}

.pregnancyApptSummary::after {
  content: '+';
  flex: 0 0 auto;
  width: 1.5rem;
  text-align: center;
  color: #7e3f6a;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}

.pregnancyApptCard[open] > .pregnancyApptSummary::after {
  content: '–';
}

.pregnancyApptBody {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
  border-top: 1px solid rgba(126, 63, 106, 0.1);
  padding-top: 14px;
}

.pregnancyApptProgress {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(126, 63, 106, 0.12);
  color: #7e3f6a;
  font-size: 0.82rem;
  font-weight: 900;
}

.pregnancyApptLead {
  margin: 0;
  color: var(--luma-text-muted);
  line-height: 1.45;
  font-size: 0.94rem;
}

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

.pregnancyApptItem {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.pregnancyApptItem.done .pregnancyApptCheck span:last-child {
  text-decoration: line-through;
  opacity: 0.72;
}

.pregnancyApptCheck {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  border: 1px solid rgba(126, 63, 106, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--luma-text-body);
  font-size: 0.92rem;
  line-height: 1.4;
}

.pregnancyApptCheckIcon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(126, 63, 106, 0.12);
  color: #7e3f6a;
  font-size: 0.82rem;
  font-weight: 900;
}

.pregnancyApptItem.done .pregnancyApptCheckIcon {
  background: #7e3f6a;
  color: #fff;
}

.pregnancyApptRemove {
  width: 38px;
  border: 0;
  border-radius: 14px;
  background: rgba(126, 63, 106, 0.08);
  color: #7e3f6a;
  font-size: 1.2rem;
  font-weight: 900;
}

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

.pregnancyApptAdd input {
  border: 1px solid rgba(126, 63, 106, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--luma-text-body);
}

.pregnancyApptAdd button {
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  background: #7e3f6a;
  color: #fff;
  font-weight: 900;
}

.pregnancyLogBanner {
  border: 1px solid rgba(198, 74, 74, 0.18);
  background: linear-gradient(135deg, rgba(255, 248, 246, 0.96), rgba(255, 240, 244, 0.88));
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.pregnancyLogBanner[hidden] {
  display: none !important;
}

body:not(.pregnancyFocusMode):not(.focus-pregnant) :is(
  #pregnancyLogBanner,
  .pregnancyLogBanner,
  #homePregnancyHub,
  #pregnancyWeekCard,
  #pregnancyApptCard,
  #pregnancyKickCard,
  #pregnancyAppointmentsCard,
  #pregnancyCalendarActions,
  #pregnancyCalendarLegend,
  #pregnancyApptNoteField,
  #trackHeroPregnancyMini
) {
  display: none !important;
}

body:not(.focus-trying) :is(#ttcSignalPriority, .ttcSignalPriority) {
  display: none !important;
}

.pregnancyLogBannerHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.pregnancyLogBannerHead strong {
  color: #7e3f6a;
  font-size: 0.98rem;
}

.pregnancyLogBanner p {
  margin: 0;
  color: var(--luma-text-muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.pregnancyRedFlagLabel {
  margin: 4px 0 0 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b04545 !important;
}

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

.pregnancyRedFlagBtn {
  border: 1px solid rgba(198, 74, 74, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #9a3b3b;
  font-size: 0.82rem;
  font-weight: 800;
}

[data-theme="dark"] .phoneShell .pregnancyDueDateChip,
[data-theme="dark"] .phoneShell .pregnancyApptCheck,
[data-theme="moonlit"] .phoneShell .pregnancyDueDateChip,
[data-theme="moonlit"] .phoneShell .pregnancyApptCheck {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .phoneShell .pregnancyTrimesterProgress,
[data-theme="moonlit"] .phoneShell .pregnancyTrimesterProgress {
  background: rgba(27, 123, 116, 0.12);
  border-color: rgba(95, 179, 167, 0.2);
}

[data-theme="dark"] .phoneShell .pregnancyLogBanner,
[data-theme="moonlit"] .phoneShell .pregnancyLogBanner {
  background: linear-gradient(135deg, rgba(60, 34, 40, 0.92), rgba(42, 28, 32, 0.88));
  border-color: rgba(198, 74, 74, 0.28);
}

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

.pregnancyWeekCard[hidden] {
  display: none !important;
}

.pregnancyWeekCard::before {
  content: "";
  position: absolute;
  inset: auto -50px -70px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 63, 106, 0.18), transparent 70%);
  pointer-events: none;
}

.pregnancyWeekVisual {
  position: relative;
  width: min(100%, 168px);
  aspect-ratio: 1;
  border-radius: 32px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, #fff8f2 0 24%, transparent 25%),
    radial-gradient(circle at 52% 48%, #d8a6b5 0 39%, transparent 40%),
    linear-gradient(145deg, #f8ddd8, #d8edf0);
  box-shadow: inset 0 0 0 1px rgba(126, 63, 106, 0.16);
}

/* Futuristic womb visual — scales with pregnancy week via --babyScale / --wombGlow */
.pregnancyWombVisual {
  --babyScale: 0.55;
  --wombGlow: 0.72;
  position: relative;
  width: min(100%, 196px);
  aspect-ratio: 0.82;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.pregnancyWombAura {
  position: absolute;
  inset: -8% -4% -2%;
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(ellipse 70% 65% at 50% 58%, rgba(126, 63, 106, calc(var(--wombGlow) * 0.28)), transparent 72%),
    radial-gradient(ellipse 90% 80% at 50% 40%, rgba(27, 123, 116, calc(var(--wombGlow) * 0.22)), transparent 68%);
  filter: blur(6px);
  animation: pregnancyWombAuraPulse 4.8s ease-in-out infinite;
  pointer-events: none;
}

.pregnancyWombShell {
  position: relative;
  width: 78%;
  height: 88%;
  border-radius: 48% 48% 42% 42% / 58% 58% 38% 38%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(165deg, rgba(255, 252, 248, 0.92) 0%, rgba(248, 221, 216, 0.55) 38%, rgba(216, 237, 240, 0.72) 100%);
  box-shadow:
    inset 0 -18px 36px rgba(126, 63, 106, 0.14),
    inset 0 8px 24px rgba(255, 255, 255, 0.65),
    0 16px 40px rgba(73, 47, 58, 0.16),
    0 0 0 1px rgba(126, 63, 106, 0.12);
}

.pregnancyWombVisual[data-trimester="1"] .pregnancyWombShell {
  background:
    linear-gradient(165deg, rgba(255, 252, 248, 0.94) 0%, rgba(255, 230, 238, 0.62) 42%, rgba(223, 241, 235, 0.78) 100%);
}

.pregnancyWombVisual[data-trimester="2"] .pregnancyWombShell {
  background:
    linear-gradient(165deg, rgba(255, 253, 250, 0.94) 0%, rgba(248, 221, 216, 0.68) 40%, rgba(216, 237, 240, 0.82) 100%);
}

.pregnancyWombVisual[data-trimester="3"] .pregnancyWombShell {
  background:
    linear-gradient(165deg, rgba(255, 250, 246, 0.94) 0%, rgba(240, 210, 200, 0.72) 38%, rgba(210, 228, 232, 0.85) 100%);
}

.pregnancyWombFluid {
  position: absolute;
  inset: 8% 10% 14%;
  border-radius: inherit;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 70% at 50% 42%, rgba(255, 255, 255, 0.28), transparent 62%),
    radial-gradient(ellipse 90% 85% at 48% 58%, rgba(216, 166, 181, 0.12), transparent 70%);
  animation: pregnancyWombFluidShift 6.5s ease-in-out infinite;
  pointer-events: none;
}

.pregnancyBaby3dHost {
  position: absolute;
  inset: 10% 11% 12%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.pregnancyBabyPhotoFloat {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  animation: pregnancyBabyFloatInShell 5.2s ease-in-out infinite;
}

.pregnancyBabyPhoto {
  grid-area: 1 / 1;
  display: block;
  max-width: calc(var(--babyFill, 0.55) * 100%);
  max-height: calc(var(--babyFill, 0.55) * 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: var(--babyObjectPosition, center center);
  filter: contrast(1.04) saturate(1.06);
  transition: opacity 0.28s ease, max-width 0.45s ease, max-height 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.pregnancyBaby3dCanvas {
  width: 100%;
  height: 100%;
  display: block;
  animation: pregnancyBabyFloatInShell 5.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .pregnancyBaby3dCanvas,
  .pregnancyBabyPhotoFloat {
    animation: none !important;
  }
}

.pregnancyBaby3dHud {
  position: absolute;
  inset: 8% 10% 12%;
  pointer-events: none;
  z-index: 4;
}

.pregnancyBaby3dHudBracket {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(27, 123, 116, 0.72);
  border-style: solid;
  border-width: 0;
}

.pregnancyBaby3dHudBracket--tl {
  top: 0;
  left: 0;
  border-top-width: 2px;
  border-left-width: 2px;
  border-top-left-radius: 4px;
}

.pregnancyBaby3dHudBracket--tr {
  top: 0;
  right: 0;
  border-top-width: 2px;
  border-right-width: 2px;
  border-top-right-radius: 4px;
  border-color: rgba(126, 63, 106, 0.72);
}

.pregnancyBaby3dHud .pregnancyBaby3dHudLabel,
.pregnancyBaby3dHudLabel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  font-family: var(--luma-font-sans);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(27, 123, 116, 0.82);
  white-space: nowrap;
}

.pregnancyBaby3dSvg {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: pregnancyBabyFloatInShell 5.2s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(90, 55, 60, 0.2));
}

.pregnancyBaby3dSvg--embryo {
  animation: pregnancyBabyFloatInShell 6.4s ease-in-out infinite;
}

.pregnancyBaby3dScene {
  transform-origin: 100px 108px;
}

@keyframes pregnancyBabyFloatInShell {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.pregnancyBabyHudLabel {
  font-family: var(--luma-font-sans);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: rgba(27, 123, 116, 0.82);
}

.pregnancyBabySilhouette {
  position: absolute;
  left: 50%;
  top: 54%;
  width: calc(38% * var(--babyScale));
  height: calc(52% * var(--babyScale));
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 4px 12px rgba(126, 63, 106, 0.22));
  animation: pregnancyBabyFloat 5.2s ease-in-out infinite;
}

.pregnancyBabyHead {
  position: absolute;
  top: 0;
  left: 50%;
  width: 46%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.85), transparent 42%),
    radial-gradient(circle at 50% 55%, rgba(198, 140, 158, 0.92), rgba(168, 110, 130, 0.88));
  box-shadow: inset 0 -2px 6px rgba(126, 63, 106, 0.18);
}

.pregnancyBabyBody {
  position: absolute;
  bottom: 2%;
  left: 50%;
  width: 58%;
  height: 52%;
  transform: translateX(-50%);
  border-radius: 42% 42% 36% 36% / 48% 48% 40% 40%;
  background:
    linear-gradient(180deg, rgba(198, 140, 158, 0.94), rgba(168, 110, 130, 0.9));
  box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.25);
}

.pregnancyWombScanLine {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 2px;
  top: 18%;
  z-index: 4;
  background: linear-gradient(90deg, transparent, rgba(27, 123, 116, 0.75), rgba(126, 63, 106, 0.65), transparent);
  box-shadow: 0 0 14px rgba(27, 123, 116, 0.45);
  animation: pregnancyWombScan 3.6s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.85;
}

.pregnancyWeekFruitCompare {
  margin: 4px 0 0;
  font-size: 1.02rem;
  font-weight: 850;
  color: var(--luma-text-heading);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

@keyframes pregnancyWombAuraPulse {
  0%, 100% { opacity: 0.78; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes pregnancyWombFluidShift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.92; }
  50% { transform: translateY(-3%) scale(1.02); opacity: 1; }
}

@keyframes pregnancyBabyFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 4px)); }
}

@keyframes pregnancyWombScan {
  0% { top: 16%; opacity: 0; }
  12% { opacity: 0.9; }
  88% { opacity: 0.9; }
  100% { top: 78%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pregnancyWombAura,
  .pregnancyWombFluid,
  .pregnancyBabySilhouette,
  .pregnancyWombScanLine {
    animation: none !important;
  }
}

.pregnancyWeekFruit {
  font-size: calc(2.8rem * var(--pregnancyFruitScale, 1));
  line-height: 1;
  transform: translateY(4px);
}

.pregnancyWeekNumber {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #7e3f6a;
  font-size: 0.95rem;
  font-weight: 950;
  box-shadow: 0 6px 18px rgba(73, 47, 58, 0.12);
}

.intakeGrid {
  gap: 14px;
}

.intakeCard,
.settingsRow,
.careArticleCard,
.summaryCard,
.checkInCard,
.profileCard,
.calendarDetailsSection,
.yearCalendarPanel,
.logComposer,
.logHistoryPanel {
  border-radius: 24px;
}

.homeDaySummary,
.homeTodayPlanCard,
.homeInsightsCard,
.homeAlertsCard,
.trackHero {
  border-radius: 30px;
}

.homeAtmospherePreview {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(73, 47, 58, 0.13);
}

.tabBar {
  border-radius: 30px;
}

[data-theme="dark"] .phoneShell .lumaReadCard,
[data-theme="dark"] .phoneShell .pregnancyWeekCard {
  background:
    linear-gradient(135deg, rgba(46, 34, 45, 0.96), rgba(28, 22, 30, 0.92)),
    var(--luma-surface-card);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .phoneShell .lumaReadHeader h2,
[data-theme="dark"] .phoneShell .pregnancyWeekBody h2 {
  color: #fff7fb;
}

[data-theme="dark"] .phoneShell .lumaReadCard p:not(.label),
[data-theme="dark"] .phoneShell .pregnancyWeekBody p:not(.label) {
  color: #eadbe4;
}

[data-theme="dark"] .phoneShell .lumaReadConfidence {
  background: rgba(240, 180, 207, 0.14);
  color: #ffd3e6;
}

[data-theme="dark"] .phoneShell .lumaReadActions button:last-child,
[data-theme="dark"] .phoneShell .pregnancyWeekActions button:last-child {
  background: rgba(255, 255, 255, 0.1);
  color: #ffd8ea;
}

[data-theme="moonlit"] .phoneShell .lumaReadCard,
[data-theme="moonlit"] .phoneShell .pregnancyWeekCard {
  background:
    linear-gradient(135deg, rgba(34, 42, 60, 0.96), rgba(25, 32, 47, 0.93)),
    var(--luma-surface-card);
  border-color: rgba(181, 202, 239, 0.2);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

[data-theme="moonlit"] .phoneShell .lumaReadHeader h2,
[data-theme="moonlit"] .phoneShell .pregnancyWeekBody h2 {
  color: #f8fbff;
}

[data-theme="moonlit"] .phoneShell .lumaReadCard p:not(.label),
[data-theme="moonlit"] .phoneShell .pregnancyWeekBody p:not(.label) {
  color: #dbe6f8;
}

[data-theme="moonlit"] .phoneShell .lumaReadConfidence {
  background: rgba(207, 224, 255, 0.14);
  color: #dce9ff;
}

[data-theme="moonlit"] .phoneShell .lumaReadActions button:last-child,
[data-theme="moonlit"] .phoneShell .pregnancyWeekActions button:last-child {
  background: rgba(255, 255, 255, 0.1);
  color: #dce9ff;
}

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

  .pregnancyWombVisual {
    width: min(100%, 168px);
  }

  .pregnancyWeekVisual {
    width: 108px;
  }

  .lumaReadActions,
  .pregnancyWeekActions {
    grid-template-columns: 1fr;
  }
}

/* Theme contrast contract — intentionally light cards on dark shells only.
   Everywhere else, surfaces and text use paired --luma-glass-* / --luma-on-glass-* tokens. */

[data-theme="dark"] .phoneShell .cycleWeatherCard,
[data-theme="moonlit"] .phoneShell .cycleWeatherCard {
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(235, 246, 242, 0.9));
  border-color: rgba(204, 184, 170, 0.86);
}

[data-theme="dark"] .phoneShell .cycleWeatherCard .label,
[data-theme="moonlit"] .phoneShell .cycleWeatherCard .label,
[data-theme="dark"] .phoneShell .cycleWeatherCard h2,
[data-theme="moonlit"] .phoneShell .cycleWeatherCard h2,
[data-theme="dark"] .phoneShell .cycleWeatherCard p:not(.label),
[data-theme="moonlit"] .phoneShell .cycleWeatherCard p:not(.label) {
  color: var(--luma-on-light-surface-heading);
}

[data-theme="dark"] .phoneShell .cycleWeatherBadge,
[data-theme="moonlit"] .phoneShell .cycleWeatherBadge {
  color: #ffffff;
}

[data-theme="dark"] .phoneShell .calendarQuickGuide,
[data-theme="moonlit"] .phoneShell .calendarQuickGuide {
  background: #fffdf9;
  border-color: #e8ddd1;
  color: var(--luma-on-light-surface-heading);
}

[data-theme="dark"] .phoneShell .calendarQuickGuide .label,
[data-theme="moonlit"] .phoneShell .calendarQuickGuide .label,
[data-theme="dark"] .phoneShell .calendarQuickSteps,
[data-theme="dark"] .phoneShell .calendarQuickSteps li,
[data-theme="dark"] .phoneShell .calendarQuickSteps strong,
[data-theme="moonlit"] .phoneShell .calendarQuickSteps,
[data-theme="moonlit"] .phoneShell .calendarQuickSteps li,
[data-theme="moonlit"] .phoneShell .calendarQuickSteps strong {
  color: var(--luma-on-light-surface-heading);
}

[data-theme="dark"] .phoneShell .calendarQuickGuideDismiss,
[data-theme="moonlit"] .phoneShell .calendarQuickGuideDismiss {
  background: #f3eee6;
  color: var(--luma-on-light-surface-heading);
}

[data-theme="dark"] .phoneShell .calendarSecondaryBtn,
[data-theme="moonlit"] .phoneShell .calendarSecondaryBtn {
  color: var(--luma-text-heading);
}

[data-theme="dark"] .phoneShell .profileIdentityChevron,
[data-theme="moonlit"] .phoneShell .profileIdentityChevron {
  color: var(--luma-on-glass-heading);
}

[data-theme="dark"] .phoneShell .launchReadinessItem.ready > span,
[data-theme="moonlit"] .phoneShell .launchReadinessItem.ready > span {
  color: var(--luma-accent-teal);
}

[data-theme="dark"] .phoneShell .launchReadinessItem.blocked > span,
[data-theme="moonlit"] .phoneShell .launchReadinessItem.blocked > span {
  color: #e88a94;
}

[data-theme="dark"] .phoneShell .reminderActions .toggleBtn,
[data-theme="moonlit"] .phoneShell .reminderActions .toggleBtn,
[data-theme="dark"] .phoneShell .todayAlertToggle,
[data-theme="moonlit"] .phoneShell .todayAlertToggle {
  color: var(--luma-accent-teal);
}

[data-theme="dark"] .phoneShell .reminderActions .editBtn,
[data-theme="moonlit"] .phoneShell .reminderActions .editBtn {
  color: #e4b8d6;
}

[data-theme="dark"] .phoneShell .reminderActions .removeBtn,
[data-theme="moonlit"] .phoneShell .reminderActions .removeBtn {
  color: #e88a94;
}

/* Dark + moonlit — calendars stay on-theme (not cream insets) */
[data-theme="moonlit"] .phoneShell .logDatePicker {
  background: rgba(58, 53, 72, 0.94);
  border-color: rgba(168, 184, 216, 0.16);
  color: var(--luma-text-heading);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

[data-theme="dark"] .phoneShell .logDatePicker {
  background: rgba(36, 28, 40, 0.94);
  border-color: rgba(232, 168, 188, 0.18);
  color: var(--luma-text-heading);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

[data-theme="dark"] .phoneShell .logDatePicker :is(.label, h2, h3, strong, #logDateMonthLabel),
[data-theme="moonlit"] .phoneShell .logDatePicker :is(.label, h2, h3, strong, #logDateMonthLabel) {
  color: var(--luma-text-heading);
}

[data-theme="dark"] .phoneShell .logDatePicker :is(p, .logDatePickerHint),
[data-theme="moonlit"] .phoneShell .logDatePicker :is(p, .logDatePickerHint) {
  color: var(--luma-text-muted);
}

[data-theme="dark"] .phoneShell .logDatePicker .logDatePickerNavBtn,
[data-theme="moonlit"] .phoneShell .logDatePicker .logDatePickerNavBtn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(168, 184, 216, 0.16);
  color: var(--luma-text-heading);
}

[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarHeader span,
[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarHeader span {
  color: var(--luma-text-muted);
}

[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay:not(.empty),
[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay:not(.empty) {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(168, 184, 216, 0.12);
  color: var(--luma-text-heading);
}

[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay .dayNumber,
[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay .dayNumber {
  color: var(--luma-text-heading);
}

[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay .cycleLabel,
[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay .cycleLabel,
[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay .pregnancyWeekLabel,
[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay .pregnancyWeekLabel {
  color: var(--luma-text-muted);
}

[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay.selected,
[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay.selected {
  background: rgba(123, 143, 201, 0.28);
  border-color: rgba(168, 184, 216, 0.45);
  color: #f4f7ff;
}

[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay.selected {
  background: rgba(232, 168, 188, 0.28);
  border-color: rgba(216, 169, 184, 0.4);
  color: #f4f7ff;
}

[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendar,
[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 184, 216, 0.14);
  box-shadow: none;
}

[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendarHeader span,
[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendarHeader span {
  color: var(--luma-text-muted);
}

[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendarDay:not(.empty):not(.period):not(.active):not(.fertile):not(.ovulation):not(.predicted):not(.tender):not(.steady),
[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendarDay:not(.empty):not(.period):not(.active):not(.fertile):not(.ovulation):not(.predicted):not(.tender):not(.steady) {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(168, 184, 216, 0.12);
  color: var(--luma-text-heading);
}

[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendarDay.steady,
[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendarDay.steady {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(168, 184, 216, 0.14);
  color: var(--luma-text-heading);
}

[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendarDay.today:not(.selected),
[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendarDay.today:not(.selected) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--luma-text-heading);
  box-shadow: inset 0 0 0 2px rgba(168, 184, 216, 0.55);
}

[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendarDay:not(.period):not(.active):not(.fertile):not(.ovulation):not(.predicted):not(.tender) .cycleLabel,
[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendarDay:not(.period):not(.active):not(.fertile):not(.ovulation):not(.predicted):not(.tender) .cycleLabel {
  color: var(--luma-text-muted);
}

[data-theme="dark"] .phoneShell .profileStats div,
[data-theme="moonlit"] .phoneShell .profileStats div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .phoneShell .profileStats b,
[data-theme="moonlit"] .phoneShell .profileStats b {
  color: var(--luma-on-glass-heading);
}

[data-theme="dark"] .phoneShell .profileStats span,
[data-theme="moonlit"] .phoneShell .profileStats span {
  color: var(--luma-on-glass-muted);
}

[data-theme="dark"] .phoneShell .trackLogPanelHeader :is(.label, .trackSectionTitle, .cycleSubtitle),
[data-theme="moonlit"] .phoneShell .trackLogPanelHeader :is(.label, .trackSectionTitle, .cycleSubtitle) {
  color: var(--luma-on-glass-heading);
}

[data-theme="dark"] .phoneShell .trackLogPanelHeader .label,
[data-theme="moonlit"] .phoneShell .trackLogPanelHeader .label {
  color: var(--luma-on-glass-label);
}

[data-theme="dark"] .phoneShell .trackLogPanelHeader .cycleSubtitle,
[data-theme="moonlit"] .phoneShell .trackLogPanelHeader .cycleSubtitle {
  color: var(--luma-on-glass-muted);
}

[data-theme="dark"] .phoneShell .tabBar button,
[data-theme="moonlit"] .phoneShell .tabBar button {
  color: #c8bcc6;
}

[data-theme="dark"] .phoneShell #unifiedTrackLogMount :is(.logComposerIntro, .logHistoryIntro, .bodyLogPurposeText, .signalEssentialLead, .bbtChartHint),
[data-theme="moonlit"] .phoneShell #unifiedTrackLogMount :is(.logComposerIntro, .logHistoryIntro, .bodyLogPurposeText, .signalEssentialLead, .bbtChartHint) {
  color: var(--luma-on-glass-muted);
}

[data-theme="dark"] .phoneShell #unifiedTrackLogMount .bodyLogContext :is(p, span),
[data-theme="moonlit"] .phoneShell #unifiedTrackLogMount .bodyLogContext :is(p, span) {
  color: var(--luma-on-glass-muted);
}

[data-theme="dark"] .phoneShell .powerToolsHeader :is(.label, span),
[data-theme="moonlit"] .phoneShell .powerToolsHeader :is(.label, span) {
  color: var(--luma-on-glass-muted);
}

@media (max-width: 380px) {
  .tabBar b {
    font-size: 9px;
  }
  .opkResultPicker {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Dev sync debug — hidden unless ?debug=1 or lumaDebugSync=1 on localhost */
.syncDebugCard {
  display: none !important;
}

body.devDebugMode .syncDebugCard {
  display: block !important;
}

/* Pregnancy focus mode — clean prenatal Track experience */
body.pregnancyFocusMode .monthCalendarDay.fertile,
body.pregnancyFocusMode .monthCalendarDay.ovulation,
body.pregnancyFocusMode .monthCalendarDay.period,
body.pregnancyFocusMode .monthCalendarDay.predicted,
body.pregnancyFocusMode .monthCalendarDay.tender {
  background: var(--luma-surface-inset) !important;
  color: var(--luma-text) !important;
  box-shadow: none !important;
}

[data-theme="moonlit"] body.pregnancyFocusMode .monthCalendarDay.fertile,
[data-theme="moonlit"] body.pregnancyFocusMode .monthCalendarDay.ovulation,
[data-theme="moonlit"] body.pregnancyFocusMode .monthCalendarDay.period,
[data-theme="moonlit"] body.pregnancyFocusMode .monthCalendarDay.predicted,
[data-theme="moonlit"] body.pregnancyFocusMode .monthCalendarDay.tender,
[data-theme="dark"] body.pregnancyFocusMode .monthCalendarDay.fertile,
[data-theme="dark"] body.pregnancyFocusMode .monthCalendarDay.ovulation,
[data-theme="dark"] body.pregnancyFocusMode .monthCalendarDay.period,
[data-theme="dark"] body.pregnancyFocusMode .monthCalendarDay.predicted,
[data-theme="dark"] body.pregnancyFocusMode .monthCalendarDay.tender,
[data-theme="moonlit"] body.pregnancyFocusMode .monthCalendarDay.pregnancyDay,
[data-theme="dark"] body.pregnancyFocusMode .monthCalendarDay.pregnancyDay {
  background: rgba(255, 248, 252, 0.16) !important;
  color: var(--luma-text-heading) !important;
  border-color: rgba(240, 200, 220, 0.18);
}

[data-theme="moonlit"] body.pregnancyFocusMode .monthCalendarDay .pregnancyWeekLabel,
[data-theme="dark"] body.pregnancyFocusMode .monthCalendarDay .pregnancyWeekLabel,
[data-theme="moonlit"] body.pregnancyFocusMode .monthCalendarDay .cycleLabel,
[data-theme="dark"] body.pregnancyFocusMode .monthCalendarDay .cycleLabel {
  color: var(--luma-text-muted) !important;
}

[data-theme="moonlit"] body.pregnancyFocusMode .monthCalendarDay.pregnancyDay.selected,
[data-theme="dark"] body.pregnancyFocusMode .monthCalendarDay.pregnancyDay.selected {
  background: rgba(123, 143, 201, 0.28) !important;
  border-color: rgba(168, 184, 216, 0.45) !important;
  color: #f4f7ff !important;
}

[data-theme="dark"] body.pregnancyFocusMode .monthCalendarDay.pregnancyDay.selected {
  background: rgba(232, 168, 188, 0.28) !important;
  border-color: rgba(216, 169, 184, 0.4) !important;
}

body.pregnancyFocusMode .monthCalendarDay.pregnancyDay {
  background: var(--luma-glass);
  border: 1px solid var(--luma-glass-border);
}

body.pregnancyFocusMode .monthCalendarDay.pregnancyDay.selected {
  background: linear-gradient(135deg, rgba(168, 130, 154, 0.22), rgba(250, 245, 248, 0.95));
  border-color: var(--luma-accent-text, var(--luma-link));
  box-shadow: 0 0 0 1px rgba(168, 130, 154, 0.25), 0 8px 24px var(--luma-glow);
}

body.pregnancyFocusMode .monthCalendarDay.pregnancyDay.today {
  box-shadow: inset 0 0 0 2px var(--luma-accent);
}

body.pregnancyFocusMode .monthCalendarDay .cycleLabel {
  color: var(--luma-accent-deep);
  font-weight: 800;
  font-size: 0.62rem;
}

body.pregnancyFocusMode #cycleWheelSection,
body.pregnancyFocusMode #cycleModePanelDetails,
body.pregnancyFocusMode #cycleHistorySection,
body.pregnancyFocusMode #cycleSettingsSection,
body.pregnancyFocusMode #bbtChartSection,
body.pregnancyFocusMode #cycleCalendarLegend,
body.pregnancyFocusMode .calendarLegend:not(.pregnancyCalendarLegend),
body.pregnancyFocusMode .predictionToggle,
body.pregnancyFocusMode #calendarModeNotice,
body.pregnancyFocusMode #calendarPrimaryActions,
body.pregnancyFocusMode .calendarPrimaryActions,
body.pregnancyFocusMode #yearControlsCompact,
body.pregnancyFocusMode .yearControlsCompact {
  display: none !important;
}

body.pregnancyFocusMode .homeModeBanner--pregnancy {
  background: linear-gradient(135deg, rgba(168, 130, 154, 0.14), rgba(255, 255, 255, 0.5));
  border-color: rgba(168, 130, 154, 0.28);
}

body.pregnancyFocusMode .pregnancyWeekCard {
  border: 1px solid var(--luma-glass-border);
  box-shadow: 0 12px 32px var(--luma-glow);
}

body.pregnancyFocusMode .pregnancyLogCheckIn > summary {
  font-weight: 900;
  color: var(--luma-text-heading);
}

body.pregnancyFocusMode .pregnancyLogCheckIn--active,
body.pregnancyFocusMode #bodyLogCheckInDetails[open] {
  border-color: rgba(126, 63, 106, 0.22);
  box-shadow: 0 12px 32px rgba(126, 63, 106, 0.1);
}

body.pregnancyFocusMode .pregnancyLogCheckIn--active .logComposer,
body.pregnancyFocusMode #bodyLogCheckInDetails[open] .logComposer {
  animation: pregnancyLogReveal 0.35s ease-out;
}

body.pregnancyFocusMode .monthCalendarDay.pregnancyDay.selected {
  background: linear-gradient(145deg, rgba(126, 63, 106, 0.18), rgba(27, 123, 116, 0.14));
  border-color: rgba(126, 63, 106, 0.42);
  box-shadow: 0 0 0 2px rgba(126, 63, 106, 0.24);
  transform: translateY(-1px);
}

body.pregnancyFocusMode .monthCalendarDay .pregnancyWeekLabel {
  font-size: 0.62rem;
  font-weight: 900;
  color: #7e3f6a;
}

@keyframes pregnancyLogReveal {
  from { opacity: 0.4; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

body.pregnancyFocusMode .pregnancyApptNoteField:not([hidden]) {
  display: grid;
  gap: 8px;
}

body.pregnancyFocusMode .pregnancyApptNoteField textarea {
  min-height: 88px;
  border-radius: 16px;
  border: 1px solid rgba(126, 63, 106, 0.16);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
  color: var(--luma-text-body);
  resize: vertical;
}

body.pregnancyFocusMode #logDetailFields[hidden] {
  display: none !important;
}

body.pregnancyFocusMode .trackLogPanelHeader .trackSectionTitle {
  color: var(--luma-text-heading);
}

[data-theme="dark"] .phoneShell .pregnancyWombShell,
[data-theme="moonlit"] .phoneShell .pregnancyWombShell {
  box-shadow:
    inset 0 -18px 36px rgba(0, 0, 0, 0.28),
    inset 0 8px 24px rgba(255, 255, 255, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .phoneShell .pregnancyBabyHead,
[data-theme="dark"] .phoneShell .pregnancyBabyBody,
[data-theme="moonlit"] .phoneShell .pregnancyBabyHead,
[data-theme="moonlit"] .phoneShell .pregnancyBabyBody {
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.35), transparent 42%),
    radial-gradient(circle at 50% 55%, rgba(198, 140, 158, 0.88), rgba(140, 80, 110, 0.92));
}

/* ── Luma AI 2026 — app-wide warm glass + readable type ── */

@keyframes lumaAuroraShift {
  0%, 100% { opacity: 0.82; transform: scale(1) translateY(0); }
  50% { opacity: 1; transform: scale(1.015) translateY(-2px); }
}

@keyframes lumaFabPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

@media (prefers-reduced-motion: no-preference) {
  html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell::before {
    animation: lumaAuroraShift 22s ease-in-out infinite;
  }

  .lumaFab::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle, var(--luma-ai-glow), transparent 68%);
    animation: lumaFabPulse 3.2s ease-in-out infinite;
  }
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .appScreen {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 120px),
    transparent;
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .tabBar {
  border-top: 1px solid var(--luma-ai-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(248, 242, 246, 0.94) 100%);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.85) inset,
    0 -12px 40px rgba(58, 40, 48, 0.1);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .tabBar button {
  color: var(--luma-on-glass-muted);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .tabBar button b,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .tabBar button [data-icon] {
  color: inherit;
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .tabBar button.active {
  color: #fff;
  background: linear-gradient(135deg, #f0c0d0 0%, #e8a8bc 52%, #d888a4 100%);
  box-shadow: 0 6px 20px rgba(90, 47, 82, 0.28);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .tabBar button.active b,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .tabBar button.active [data-icon] {
  color: #fff;
}

/* App-wide glass surfaces (light themes) */
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .appScreen :where(
  .lumaReadCard,
  .homeDaySummary,
  .homeInsightsCard,
  .homeAlertsCard,
  .homePhaseCard,
  .homePatternMemoryCard,
  .homeTodayPlanCard,
  .trackHeroCard,
  .pregnancyWeekCard,
  .aiToolCard,
  .cycleWeatherCard,
  .unifiedTrackLogPanel,
  .periodHistoryCard,
  .logDetailFields,
  .bbtChartSection,
  .profileIdentityCard,
  .mobileChatPanel,
  .dayEditorSheet,
  .themePickerCard,
  .launchReadinessItem,
  .welcomeSummary li,
  .welcomeGuide article,
  .todayPlanTile,
  .timelineItem,
  .reminderItem,
  .importPanel,
  .cycleEditorPanel,
  .addPeriodForm,
  .homeAnomalyPanel article,
  .opkGalleryItem,
  .medTodayChip,
  .customDateChip
) {
  border: 1px solid var(--luma-ai-border);
  background: var(--luma-glass-surface);
  backdrop-filter: blur(20px) saturate(1.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.06);
  box-shadow: var(--luma-glass-surface-shadow);
  color: var(--luma-on-glass);
}

/* App-wide headings (light themes) */
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .appScreen :is(
  h1,
  h2,
  h3,
  .trackSectionTitle,
  .hubSectionHeader h2,
  .unifiedTrackLogHeader h2,
  .settingsList h2,
  .onboardingStep h1,
  .authHero h1,
  .paywallCard h2
) {
  color: var(--luma-on-glass-heading);
  letter-spacing: -0.02em;
}

/* App-wide body copy (light themes) */
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .appScreen :is(
  .settingsRow p,
  .summaryCard p,
  .insightsLead,
  .homeProactiveSummary,
  .todayPlanLead,
  .trackHeroSummary,
  .trackHeroHint,
  .trackHeroReadBody,
  .lumaReadSummary,
  .hubSectionLead,
  .hubRowBody p,
  .careIntro,
  .careCategoryDesc,
  .settingsSectionLead,
  .onboardingStep p,
  .onboardingTagline,
  .intakeSubtitle,
  .intakeFooter,
  .welcomeSubtitle,
  .authSubtitle,
  .paywallSubtitle,
  .paywallFootnote,
  .periodHistoryCount,
  .calendarHintProminent,
  .logComposerIntro,
  .todayPlanTile p,
  .launchReadinessItem p,
  .themePickerDesc
) {
  color: var(--luma-on-glass-muted);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .appScreen .label,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .mobileHeader .label {
  color: var(--luma-on-glass-label);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .lumaReadHeader .label,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .trackHeroReadBlock .label,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .lumaHubGreeting + .label {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  color: var(--luma-on-glass-label);
  background: linear-gradient(135deg, rgba(168, 130, 154, 0.14), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(90, 60, 80, 0.14);
  box-shadow: none;
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .lumaReadConfidence {
  background: linear-gradient(135deg, rgba(229, 242, 238, 0.98), rgba(240, 232, 244, 0.92));
  border: 1px solid rgba(21, 90, 84, 0.22);
  color: #5a9a88;
  box-shadow: none;
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .trackHeroReadBlock {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(90, 60, 80, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(248, 242, 246, 0.72));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .lumaReadReadMore summary,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .trackHeroReadMore summary,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .lumaReadMore summary,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .authLink,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .textLinkBtn {
  color: var(--luma-on-glass-link);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .appScreen :is(
  input,
  textarea,
  select
):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="color"]) {
  border: 1px solid var(--luma-input-border);
  background: var(--luma-input-surface);
  color: var(--luma-on-glass-heading);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .appScreen :is(
  input,
  textarea,
  select
):focus {
  outline: 3px solid rgba(107, 53, 88, 0.16);
  border-color: var(--luma-on-glass-link);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .monthCalendarHeader span {
  color: var(--luma-on-glass-muted);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .mobileMessage.luma {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--luma-ai-border);
  color: var(--luma-on-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .mobileMessage.you {
  background: linear-gradient(135deg, #e8a8bc 0%, #d888a4 100%);
  color: #fff;
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .lumaSheet {
  border-top: 1px solid var(--luma-ai-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 242, 246, 0.96) 100%);
  backdrop-filter: blur(28px) saturate(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);
  box-shadow: 0 -24px 60px rgba(58, 40, 48, 0.12);
  color: var(--luma-on-glass);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .lumaSheetHeader {
  border-bottom: 1px solid rgba(90, 60, 80, 0.1);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .lumaSheetHeader h2,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .lumaSheetHeader p {
  color: var(--luma-on-glass-heading);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .intakeCard.selected {
  border-color: rgba(90, 60, 80, 0.28);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(240, 230, 238, 0.9));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.78) inset, 0 12px 32px rgba(58, 40, 48, 0.08);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .aiToolCard,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .careArticleCard,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .careCategoryCard,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .hubRow,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .settingsRow {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .aiToolCard:hover,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .careArticleCard:hover,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .careCategoryCard:hover,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .hubRow:hover,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .settingsRow:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--luma-ai-sheen) inset, 0 24px 52px rgba(58, 40, 48, 0.12);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .homeModeBanner {
  border: 1px solid var(--luma-ai-border);
  background: linear-gradient(135deg, rgba(168, 130, 154, 0.1), rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--luma-on-glass);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .mobileHeader h1 {
  letter-spacing: -0.025em;
  color: var(--luma-on-glass-heading);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .mobileHeader p {
  color: var(--luma-on-glass-muted);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .lumaReadActions button:first-child,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .pregnancyWeekActions button:first-child {
  background: linear-gradient(135deg, #e8a8bc 0%, #d888a4 100%);
  box-shadow: 0 8px 22px rgba(90, 47, 82, 0.24);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .lumaReadActions button:last-child,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .pregnancyWeekActions button:last-child {
  background: #efe6ed;
  color: var(--luma-on-glass-link);
}

/* Dark + moonlit: glass surfaces + light type on deep backgrounds */
[data-theme="dark"] .phoneShell .appScreen :where(
  .lumaReadCard,
  .homeDaySummary,
  .homeInsightsCard,
  .homeAlertsCard,
  .homePhaseCard,
  .homePatternMemoryCard,
  .homeTodayPlanCard,
  .trackHeroCard,
  .pregnancyWeekCard,
  .aiToolCard,
  .profileCard,
  .profileIdentityCard,
  .settingsRow,
  .settingsDetailsSection,
  .checkInCard,
  .summaryCard,
  .logComposer,
  .unifiedTrackLogPanel,
  .yearCalendarPanel,
  .calendarDetailsSection,
  .cycleModePanel,
  .careArticleCard,
  .careCategoryCard,
  .learnVisualFeature,
  .learnToolCard,
  .hubRow,
  .authCard,
  .paywallCard,
  .intakeCard,
  .periodHistoryCard,
  .notificationSubsection,
  .toggleRow,
  .reminderRow,
  .addReminderForm,
  .launchReadinessItem,
  .themePickerCard,
  .importPanel,
  .medicationCard,
  .medicationForm,
  .clinicalReportHero,
  .reportSectionCard,
  .bodyLogContext,
  .historyPanel,
  .logHistoryPanel,
  .todayAlertItem,
  .welcomeSummary li,
  .welcomeGuide article,
  .todayPlanTile,
  .timelineItem,
  .reminderItem
),
[data-theme="moonlit"] .phoneShell .appScreen :where(
  .lumaReadCard,
  .homeDaySummary,
  .homeInsightsCard,
  .homeAlertsCard,
  .homePhaseCard,
  .homePatternMemoryCard,
  .homeTodayPlanCard,
  .trackHeroCard,
  .pregnancyWeekCard,
  .aiToolCard,
  .profileCard,
  .profileIdentityCard,
  .settingsRow,
  .settingsDetailsSection,
  .checkInCard,
  .summaryCard,
  .logComposer,
  .unifiedTrackLogPanel,
  .yearCalendarPanel,
  .calendarDetailsSection,
  .cycleModePanel,
  .careArticleCard,
  .careCategoryCard,
  .learnVisualFeature,
  .learnToolCard,
  .hubRow,
  .authCard,
  .paywallCard,
  .intakeCard,
  .periodHistoryCard,
  .notificationSubsection,
  .toggleRow,
  .reminderRow,
  .addReminderForm,
  .launchReadinessItem,
  .themePickerCard,
  .importPanel,
  .medicationCard,
  .medicationForm,
  .clinicalReportHero,
  .reportSectionCard,
  .bodyLogContext,
  .historyPanel,
  .logHistoryPanel,
  .todayAlertItem,
  .welcomeSummary li,
  .welcomeGuide article,
  .todayPlanTile,
  .timelineItem,
  .reminderItem
) {
  border: 1px solid var(--luma-ai-border);
  background: var(--luma-glass-surface);
  backdrop-filter: blur(20px) saturate(1.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.06);
  box-shadow: var(--luma-glass-surface-shadow);
  color: var(--luma-on-glass);
}

[data-theme="dark"] .phoneShell .appScreen :is(h1, h2, h3, .trackSectionTitle, .hubSectionHeader h2, .settingsRow h3, summary, strong, label),
[data-theme="moonlit"] .phoneShell .appScreen :is(h1, h2, h3, .trackSectionTitle, .hubSectionHeader h2, .settingsRow h3, summary, strong, label) {
  color: var(--luma-on-glass-heading);
}

[data-theme="dark"] .phoneShell .appScreen :is(p, li, span, small, .hubSectionLead, .insightsLead, .settingsRow p, .summaryCard p, .careArticleCard p, .settingsSectionIntro, .themePickerDesc, .launchReadinessItem p),
[data-theme="moonlit"] .phoneShell .appScreen :is(p, li, span, small, .hubSectionLead, .insightsLead, .settingsRow p, .summaryCard p, .careArticleCard p, .settingsSectionIntro, .themePickerDesc, .launchReadinessItem p) {
  color: var(--luma-on-glass-muted);
}

/* Track: light learning card must keep dark type in dark/moonlit themes */
[data-theme="dark"] .phoneShell .appScreen .lumaLearningCore :is(strong, li, p, span),
[data-theme="moonlit"] .phoneShell .appScreen .lumaLearningCore :is(strong, li, p, span) {
  color: var(--luma-on-light-surface-heading);
}

[data-theme="dark"] .phoneShell .appScreen .lumaLearningCore .lumaLearningStage span,
[data-theme="moonlit"] .phoneShell .appScreen .lumaLearningCore .lumaLearningStage span {
  color: #d07090;
  background: rgba(122, 63, 106, 0.12);
}

[data-theme="dark"] .phoneShell .appScreen .lumaLearningCore .lumaLearningEvidence li,
[data-theme="moonlit"] .phoneShell .appScreen .lumaLearningCore .lumaLearningEvidence li,
[data-theme="dark"] .phoneShell .appScreen .lumaLearningCore .lumaLearningNext,
[data-theme="moonlit"] .phoneShell .appScreen .lumaLearningCore .lumaLearningNext {
  color: var(--luma-on-light-surface-muted);
}

[data-theme="dark"] .phoneShell .appScreen .lumaLearningCore .lumaLearningNext,
[data-theme="moonlit"] .phoneShell .appScreen .lumaLearningCore .lumaLearningNext {
  background: rgba(122, 63, 106, 0.1);
}

[data-theme="dark"] .phoneShell .appScreen .bodyLogInsightsCard > #logSummary,
[data-theme="moonlit"] .phoneShell .appScreen .bodyLogInsightsCard > #logSummary {
  color: var(--luma-on-glass-muted);
}

[data-theme="dark"] .phoneShell .appScreen .label,
[data-theme="moonlit"] .phoneShell .appScreen .label {
  color: var(--luma-on-glass-label);
}

[data-theme="dark"] .phoneShell .appScreen :is(
  input,
  textarea,
  select
):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="color"]),
[data-theme="moonlit"] .phoneShell .appScreen :is(
  input,
  textarea,
  select
):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="color"]) {
  border: 1px solid var(--luma-input-border);
  background: var(--luma-input-surface);
  color: var(--luma-on-glass-heading);
}

[data-theme="dark"] .phoneShell .lumaSheet,
[data-theme="moonlit"] .phoneShell .lumaSheet {
  border-top: 1px solid var(--luma-ai-border);
  background: var(--luma-glass-surface);
  backdrop-filter: blur(28px) saturate(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.28);
  color: var(--luma-on-glass);
}

[data-theme="dark"] .phoneShell .tabBar,
[data-theme="moonlit"] .phoneShell .tabBar {
  border-top: 1px solid var(--luma-ai-border);
  background: linear-gradient(180deg, rgba(36, 28, 36, 0.92) 0%, rgba(26, 20, 28, 0.98) 100%);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
}

[data-theme="moonlit"] .phoneShell .tabBar {
  background: linear-gradient(180deg, rgba(58, 53, 72, 0.92) 0%, rgba(30, 36, 51, 0.98) 100%);
}

/* ── Calendar modern (light themes) ── */
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .calendarLegend i {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 1px rgba(90, 60, 80, 0.12);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .yearCalendarPanel .cardTop h2 {
  letter-spacing: -0.02em;
  color: var(--luma-on-glass-heading);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .monthCalendarDay.today:not(.selected) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 230, 238, 0.88));
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .monthDay.today {
  box-shadow: 0 0 0 2px rgba(107, 53, 88, 0.24);
}

/* Calendar modern (dark + moonlit) */
html[data-theme="dark"] .phoneShell .monthCalendar,
html[data-theme="moonlit"] .phoneShell .monthCalendar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .phoneShell .monthNavigator,
html[data-theme="moonlit"] .phoneShell .monthNavigator {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .phoneShell .monthNavigator button,
html[data-theme="moonlit"] .phoneShell .monthNavigator button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--luma-on-glass-heading);
}

html[data-theme="dark"] .phoneShell .calendarLegend span,
html[data-theme="moonlit"] .phoneShell .calendarLegend span {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--luma-on-glass-muted);
}

html[data-theme="dark"] .phoneShell .calendarViewToggle,
html[data-theme="moonlit"] .phoneShell .calendarViewToggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .phoneShell .monthCard,
html[data-theme="moonlit"] .phoneShell .monthCard {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .phoneShell .monthCalendarDay:not(.empty):not(.period):not(.active):not(.fertile):not(.ovulation):not(.predicted):not(.tender),
html[data-theme="moonlit"] .phoneShell .monthCalendarDay:not(.empty):not(.period):not(.active):not(.fertile):not(.ovulation):not(.predicted):not(.tender) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--luma-on-glass-heading);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .phoneShell .monthCalendarDay.steady,
html[data-theme="moonlit"] .phoneShell .monthCalendarDay.steady {
  background: rgba(255, 255, 255, 0.12);
  color: var(--luma-on-glass-heading);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .phoneShell .monthCalendarDay.today:not(.selected),
html[data-theme="moonlit"] .phoneShell .monthCalendarDay.today:not(.selected) {
  background: rgba(255, 255, 255, 0.14);
  color: var(--luma-on-glass-heading);
  box-shadow: inset 0 0 0 2px var(--luma-accent);
}

html[data-theme="dark"] .phoneShell .todayBtn,
html[data-theme="dark"] .phoneShell .yearToggleBtn,
html[data-theme="moonlit"] .phoneShell .todayBtn,
html[data-theme="moonlit"] .phoneShell .yearToggleBtn {
  color: var(--luma-on-glass-link);
}

html[data-theme="dark"] .phoneShell .analysisAnchorNote,
html[data-theme="moonlit"] .phoneShell .analysisAnchorNote {
  background: rgba(123, 159, 201, 0.18);
  border-color: rgba(58, 90, 120, 0.28);
  color: var(--luma-text-heading);
}

html[data-theme="dark"] .phoneShell .calendarSecondaryBtn,
html[data-theme="moonlit"] .phoneShell .calendarSecondaryBtn {
  background: var(--luma-input-surface);
  border: 1px solid var(--luma-input-border);
  color: var(--luma-on-glass-heading);
}

html[data-theme="dark"] .phoneShell .reminderActions button,
html[data-theme="moonlit"] .phoneShell .reminderActions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--luma-input-surface);
  border-color: var(--luma-input-border);
  color: var(--luma-on-glass-muted);
}

html[data-theme="dark"] .phoneShell .reminderActions .toggleBtn,
html[data-theme="moonlit"] .phoneShell .reminderActions .toggleBtn {
  border-color: rgba(143, 212, 203, 0.32);
  background: rgba(90, 154, 146, 0.18);
  color: var(--luma-accent-teal);
}

html[data-theme="dark"] .phoneShell .reminderActions .editBtn,
html[data-theme="moonlit"] .phoneShell .reminderActions .editBtn {
  border-color: rgba(228, 184, 214, 0.32);
  background: rgba(122, 63, 106, 0.22);
  color: #e4b8d6;
}

html[data-theme="dark"] .phoneShell .reminderActions .removeBtn,
html[data-theme="moonlit"] .phoneShell .reminderActions .removeBtn {
  border-color: rgba(232, 138, 148, 0.32);
  background: rgba(154, 59, 70, 0.18);
  color: #e88a94;
}

/* ── Profile reminders studio ── */
html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell #notificationsHub h2 {
  letter-spacing: -0.02em;
  color: var(--luma-on-glass-heading);
}

.remindersStudio {
  margin: 12px 0 16px;
  padding: 0;
  border-radius: 24px;
  border: 1px solid var(--luma-ai-border);
  background: var(--luma-glass-surface);
  overflow: hidden;
  display: grid;
  gap: 0;
}

.remindersStudioHero {
  padding: 16px 16px 12px;
  display: grid;
  gap: 4px;
  background: linear-gradient(180deg, rgba(126, 63, 106, 0.07), transparent);
}

.remindersStudioHero .label {
  margin: 0;
}

.remindersStudioHero p:not(.label) {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--luma-on-glass-muted);
}

.periVisitSummary {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.periVisitSummary li {
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff4f7;
  color: #4a3040;
}

.periVisitHighlightsLabel {
  margin: 14px 0 0;
  color: #4a3040;
  font-size: 1.02rem;
  font-weight: 760;
}

#copyPeriVisitNotesBtn {
  margin-top: 12px;
}

.remindersStudioBlock {
  padding: 16px;
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(126, 63, 106, 0.1);
}

.remindersStudioHead {
  display: grid;
  gap: 3px;
}

.remindersStudioHead h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  color: var(--luma-on-glass-heading);
}

.remindersStudioHead p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--luma-on-glass-muted);
}

.remindersStudioBlock--preview {
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
}

body.pregnancyFocusMode .remindersStudioBlock--presets,
body.pregnancyFocusMode #builtInRemindersBlock,
body.focus-tracking .remindersStudioBlock--presets,
body.focus-tracking #builtInRemindersBlock,
body.focus-trying .remindersStudioBlock--presets,
body.focus-trying #builtInRemindersBlock,
#builtInRemindersBlock {
  display: none !important;
}

#unifiedReminderHourField {
  margin: 0 0 12px;
}

#unifiedReminderHourField > span,
.addReminderForm .field--time > span,
.field.field--time > span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--luma-on-glass-muted);
}

.addReminderForm .field--time {
  display: grid;
  gap: 6px;
}

.addReminderForm .modernSelectWrap,
.remindersStudio .modernSelectWrap,
#notificationsHub .modernSelectWrap {
  width: 100%;
}

.addReminderForm .modernSelect,
.remindersStudio .modernSelect,
#notificationsHub .modernSelect {
  width: 100%;
}

/* Native time fallback (quick-add / legacy) — match modernSelect */
.remindersStudio input[type="time"],
.addReminderForm input[type="time"],
.homeQuickAddReminderRow input[type="time"],
#notificationsHub input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--luma-ai-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 242, 246, 0.88));
  color: var(--luma-on-glass-heading);
  font-family: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 20px rgba(58, 40, 48, 0.06);
}

.remindersStudio input[type="time"]:focus,
.addReminderForm input[type="time"]:focus,
.homeQuickAddReminderRow input[type="time"]:focus,
#notificationsHub input[type="time"]:focus {
  outline: none;
  border-color: rgba(168, 88, 120, 0.42);
  box-shadow:
    0 0 0 3px rgba(168, 88, 120, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.remindersStudioBlock--presets[hidden] {
  display: none !important;
}

.remindersAddDetails {
  border: 1px dashed rgba(126, 63, 106, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.remindersAddDetails > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 760;
  color: #7e3f6a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.remindersAddDetails > summary::-webkit-details-marker {
  display: none;
}

.remindersAddDetails > summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
}

.remindersAddDetails[open] > summary::after {
  content: '–';
}

.remindersAddDetails .addReminderForm {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(126, 63, 106, 0.1);
  display: grid;
  gap: 12px;
}

.remindersEmptyState {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(90, 60, 80, 0.22);
  background: rgba(255, 255, 255, 0.55);
  color: var(--luma-on-glass-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.remindersEmptyState button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #7e3f6a;
  color: #fff;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
}

.reminderPacks {
  display: grid;
  gap: 8px;
}

.reminderPacksLabel {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--luma-on-glass-muted, #4a3040);
}

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

.reminderPackBtn {
  border: 1px solid color-mix(in srgb, #e8a8bc 42%, transparent);
  background: #fff4f7;
  color: #4a3040;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.reminderPackBtn:focus-visible {
  outline: 2px solid #e8a8bc;
  outline-offset: 2px;
}

.reminderPackBtn--added,
.reminderPackBtn:disabled {
  opacity: 0.62;
  cursor: default;
  background: color-mix(in srgb, #fff4f7 70%, #fff);
}

.upcomingRemindersDetails {
  border: 1px solid rgba(126, 63, 106, 0.16);
  border-radius: 18px;
  background: rgba(126, 63, 106, 0.035);
  overflow: hidden;
}

.upcomingRemindersSummary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.upcomingRemindersSummary::-webkit-details-marker {
  display: none;
}

.upcomingRemindersSummaryMain {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.upcomingRemindersSummaryMain strong {
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  color: var(--luma-on-glass-heading);
}

.upcomingRemindersSummaryMeta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 2px;
}

.upcomingRemindersCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(126, 63, 106, 0.12);
  color: #7e3f6a;
  font-size: 12px;
  font-weight: 750;
}

.upcomingRemindersChevron::before {
  content: '+';
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  color: #7e3f6a;
}

.upcomingRemindersDetails[open] .upcomingRemindersChevron::before {
  content: '–';
}

.upcomingRemindersDetailsBody {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(126, 63, 106, 0.1);
}

.upcomingRemindersLead {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--luma-on-glass-muted);
}

.upcomingRemindersList {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.upcomingReminderRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(126, 63, 106, 0.06);
}

.upcomingReminderRow strong {
  display: block;
  font-size: 0.95rem;
  color: var(--luma-text-heading);
}

.upcomingReminderRow span {
  font-size: 0.8rem;
  color: var(--luma-on-glass-muted);
}

.upcomingReminderRow em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #7e3f6a;
  white-space: nowrap;
}

.pregnancyReminderScheduleBlock {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.pregnancyLabeledRemindersList {
  display: grid;
  gap: 10px;
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .notificationSubsection .field {
  margin-bottom: 12px;
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .notificationSubsection .field span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--luma-on-glass-label);
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell #saveSmartAlertsBtn {
  margin-top: 4px;
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .remindersStudioBlock--presets .toggleRow:last-of-type {
  margin-bottom: 8px;
}

html[data-theme="dark"] .phoneShell .settingsDetailsSection,
html[data-theme="moonlit"] .phoneShell .settingsDetailsSection,
html[data-theme="dark"] .phoneShell .toggleRow,
html[data-theme="moonlit"] .phoneShell .toggleRow,
html[data-theme="dark"] .phoneShell .reminderRow,
html[data-theme="moonlit"] .phoneShell .reminderRow,
html[data-theme="dark"] .phoneShell .addReminderForm,
html[data-theme="moonlit"] .phoneShell .addReminderForm,
html[data-theme="dark"] .phoneShell .upcomingRemindersDetails,
html[data-theme="moonlit"] .phoneShell .upcomingRemindersDetails,
html[data-theme="dark"] .phoneShell .remindersAddDetails,
html[data-theme="moonlit"] .phoneShell .remindersAddDetails {
  background: var(--luma-glass-surface);
  border-color: var(--luma-ai-border);
  box-shadow: var(--luma-glass-surface-shadow);
  color: var(--luma-on-glass);
}

html[data-theme="dark"] .phoneShell .reminderRow.active,
html[data-theme="moonlit"] .phoneShell .reminderRow.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(126, 214, 203, 0.35);
  box-shadow: 0 0 0 1px rgba(126, 214, 203, 0.12);
}

html[data-theme="dark"] .phoneShell .reminderRow strong,
html[data-theme="moonlit"] .phoneShell .reminderRow strong {
  color: var(--luma-on-glass-heading) !important;
}

html[data-theme="dark"] .phoneShell .reminderRow span,
html[data-theme="moonlit"] .phoneShell .reminderRow span {
  color: var(--luma-on-glass-muted) !important;
}

html[data-theme="dark"] .phoneShell .reminderTimeChip,
html[data-theme="moonlit"] .phoneShell .reminderTimeChip,
html[data-theme="dark"] .phoneShell .todayAlertTime,
html[data-theme="moonlit"] .phoneShell .todayAlertTime {
  color: #f4dce6 !important;
  border-color: rgba(240, 176, 196, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(72, 52, 64, 0.96), rgba(48, 36, 46, 0.94)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="moonlit"] .phoneShell .reminderTimeChip,
html[data-theme="moonlit"] .phoneShell .todayAlertTime {
  color: #e8dff8 !important;
  border-color: rgba(200, 184, 232, 0.3) !important;
  background:
    linear-gradient(180deg, rgba(62, 54, 82, 0.96), rgba(42, 38, 58, 0.94)) !important;
}

html[data-theme="dark"] .phoneShell .remindersStudio input[type="time"],
html[data-theme="moonlit"] .phoneShell .remindersStudio input[type="time"],
html[data-theme="dark"] .phoneShell .addReminderForm input[type="time"],
html[data-theme="moonlit"] .phoneShell .addReminderForm input[type="time"],
html[data-theme="dark"] .phoneShell #notificationsHub input[type="time"],
html[data-theme="moonlit"] .phoneShell #notificationsHub input[type="time"] {
  background: linear-gradient(180deg, rgba(48, 38, 46, 0.96), rgba(34, 26, 32, 0.94));
  color: #f4ece8;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="moonlit"] .phoneShell .remindersStudio input[type="time"],
html[data-theme="moonlit"] .phoneShell .addReminderForm input[type="time"],
html[data-theme="moonlit"] .phoneShell #notificationsHub input[type="time"] {
  background: linear-gradient(180deg, rgba(52, 62, 86, 0.96), rgba(36, 44, 64, 0.94));
  color: #eef2fa;
  border-color: rgba(181, 202, 239, 0.22);
}

html[data-theme="dark"] .phoneShell .reminderActions .toggleBtn,
html[data-theme="moonlit"] .phoneShell .reminderActions .toggleBtn {
  color: #8fd4cb !important;
  background: rgba(143, 212, 203, 0.14) !important;
  border-color: rgba(143, 212, 203, 0.28) !important;
}

html[data-theme="dark"] .phoneShell .reminderActions .removeBtn,
html[data-theme="moonlit"] .phoneShell .reminderActions .removeBtn {
  color: #f0a8b4 !important;
  background: rgba(240, 168, 180, 0.12) !important;
  border-color: rgba(240, 168, 180, 0.28) !important;
}

html[data-theme="dark"] .phoneShell .reminderActions .editBtn,
html[data-theme="moonlit"] .phoneShell .reminderActions .editBtn {
  color: var(--luma-on-glass-heading) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="dark"] .phoneShell .upcomingRemindersSummaryMain strong,
html[data-theme="moonlit"] .phoneShell .upcomingRemindersSummaryMain strong {
  color: var(--luma-on-glass-heading);
}

html[data-theme="dark"] .phoneShell .upcomingRemindersCount,
html[data-theme="moonlit"] .phoneShell .upcomingRemindersCount {
  background: rgba(255, 255, 255, 0.1);
  color: var(--luma-on-glass-heading);
}

html[data-theme="dark"] .phoneShell .upcomingRemindersChevron::before,
html[data-theme="moonlit"] .phoneShell .upcomingRemindersChevron::before,
html[data-theme="dark"] .phoneShell .remindersAddDetails > summary,
html[data-theme="moonlit"] .phoneShell .remindersAddDetails > summary {
  color: var(--luma-on-glass-heading);
}

html[data-theme="dark"] .phoneShell .upcomingRemindersDetailsBody,
html[data-theme="moonlit"] .phoneShell .upcomingRemindersDetailsBody {
  border-top-color: var(--luma-ai-border);
}

html[data-theme="dark"] .phoneShell .upcomingReminderRow,
html[data-theme="moonlit"] .phoneShell .upcomingReminderRow {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .phoneShell #notificationsHub .settingsSectionIntro,
html[data-theme="moonlit"] .phoneShell #notificationsHub .settingsSectionIntro {
  background: var(--luma-glass-surface);
  border-color: var(--luma-ai-border);
  color: var(--luma-on-glass-muted);
}

/* ── Moonlit + Dark: dark type on intentionally light nested surfaces ── */
[data-theme="moonlit"] .phoneShell :is(
  .promptRow button,
  .feelingGrid button:not(.active),
  .lumaChatControls button,
  .logHistoryFilters button:not(.active),
  .calendarSecondaryBtn
),
[data-theme="dark"] .phoneShell :is(
  .promptRow button,
  .feelingGrid button:not(.active),
  .lumaChatControls button,
  .logHistoryFilters button:not(.active),
  .calendarSecondaryBtn
) {
  color: var(--luma-on-light-surface-heading);
}

[data-theme="moonlit"] .phoneShell .cycleWeatherCard :is(h2, p, span, strong, b),
[data-theme="dark"] .phoneShell .cycleWeatherCard :is(h2, p, span, strong, b) {
  color: var(--luma-on-light-surface-heading);
}

[data-theme="moonlit"] .phoneShell .cycleWeatherCard .label,
[data-theme="dark"] .phoneShell .cycleWeatherCard .label {
  color: var(--luma-on-light-surface-label);
}

[data-theme="moonlit"] .phoneShell .cycleWeatherCard p:not(.label),
[data-theme="dark"] .phoneShell .cycleWeatherCard p:not(.label) {
  color: var(--luma-on-light-surface-muted);
}

[data-theme="moonlit"] .phoneShell :is(
  .calendarQuickGuide,
  .calendarHintProminent,
  .calendarModeNotice
),
[data-theme="dark"] .phoneShell :is(
  .calendarQuickGuide,
  .calendarHintProminent,
  .calendarModeNotice
) {
  color: var(--luma-on-light-surface-muted);
}

[data-theme="moonlit"] .phoneShell :is(
  .calendarQuickGuide,
  .calendarHintProminent,
  .calendarModeNotice
) :is(h1, h2, h3, h4, strong, b, summary),
[data-theme="dark"] .phoneShell :is(
  .calendarQuickGuide,
  .calendarHintProminent,
  .calendarModeNotice
) :is(h1, h2, h3, h4, strong, b, summary) {
  color: var(--luma-on-light-surface-heading);
}

[data-theme="moonlit"] .phoneShell :is(
  .calendarQuickGuide,
  .calendarHintProminent,
  .calendarModeNotice
) :is(p, li, span, small),
[data-theme="dark"] .phoneShell :is(
  .calendarQuickGuide,
  .calendarHintProminent,
  .calendarModeNotice
) :is(p, li, span, small) {
  color: var(--luma-on-light-surface-muted);
}

[data-theme="moonlit"] .phoneShell .calendarQuickGuide .label,
[data-theme="dark"] .phoneShell .calendarQuickGuide .label {
  color: var(--luma-on-light-surface-label);
}

[data-theme="moonlit"] .phoneShell :is(.logHistoryItem, .emptyLog) :is(strong, div, p, b),
[data-theme="dark"] .phoneShell :is(.logHistoryItem, .emptyLog) :is(strong, div, p, b) {
  color: var(--luma-on-light-surface-heading);
}

[data-theme="moonlit"] .phoneShell :is(.logHistoryItem, .emptyLog) span,
[data-theme="dark"] .phoneShell :is(.logHistoryItem, .emptyLog) span {
  color: var(--luma-on-light-surface-muted);
}

[data-theme="moonlit"] .phoneShell .logHistoryFilters button.active,
[data-theme="dark"] .phoneShell .logHistoryFilters button.active {
  color: #fff;
}

[data-theme="moonlit"] .phoneShell .lumaChatControls button,
[data-theme="dark"] .phoneShell .lumaChatControls button {
  background: rgba(255, 255, 255, 0.94);
  color: var(--luma-on-light-surface-heading);
  border-color: rgba(90, 60, 80, 0.14);
}

[data-theme="moonlit"] .phoneShell .promptRow button,
[data-theme="dark"] .phoneShell .promptRow button {
  background: rgba(255, 255, 255, 0.92);
}

[data-theme="moonlit"] .phoneShell .calendarSecondaryBtn,
[data-theme="dark"] .phoneShell .calendarSecondaryBtn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--luma-text-heading);
  border-color: rgba(240, 220, 232, 0.32);
}

/* ── Home screen — modern editorial layout ── */

#todayScreen.homeScreen.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 28px;
}

#todayScreen.homeScreen > header,
#todayScreen.homeScreen > section,
#todayScreen.homeScreen > details {
  margin-bottom: 0;
  flex-shrink: 0;
  width: 100%;
}

#todayScreen .cycleWeatherCard .label {
  color: var(--luma-on-light-surface-label);
}

#todayScreen .cycleWeatherCard h2 {
  color: var(--luma-on-light-surface-heading);
}

#todayScreen .cycleWeatherCard p:not(.label) {
  color: var(--luma-on-light-surface-muted);
}

.homeHeaderIntro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.homeGreetingEyebrow {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-transform: none;
  color: var(--luma-text-heading);
}

#todayScreen .homeMobileHeader .todayTrackingModeChip {
  margin-top: 0;
  padding: 6px 12px;
  border: 1px solid var(--luma-ai-border);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(58, 40, 48, 0.06);
}

#todayScreen .homeMobileHeader .roundButton {
  width: 44px;
  height: 44px;
  border: 1px solid var(--luma-ai-border);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(58, 40, 48, 0.08);
}

#todayScreen .lumaReadCard,
#todayScreen .homeTodayPlanCard,
#todayScreen .homeInsightsCard,
#todayScreen .homeAlertsWrap,
#todayScreen .homeCheckInDetails .checkInCard {
  border-radius: 26px;
  border: 1px solid var(--luma-ai-border);
  background: var(--luma-glass-surface);
  box-shadow: var(--luma-glass-surface-shadow);
  backdrop-filter: blur(20px) saturate(1.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.06);
}

#todayScreen .lumaReadCard {
  padding: 20px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(168, 130, 154, 0.12), transparent 55%),
    var(--luma-glass-surface);
}

#todayScreen .lumaReadHeader h2 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

#todayScreen .lumaReadConfidence {
  border-radius: 999px;
  padding: 8px 13px;
  background: linear-gradient(135deg, rgba(229, 242, 238, 0.98), rgba(240, 232, 244, 0.92));
  border: 1px solid rgba(21, 90, 84, 0.18);
  color: #5a9a88;
  font-size: 0.8rem;
  box-shadow: none;
}

#todayScreen .lumaReadActions {
  gap: 10px;
}

#todayScreen .lumaReadActions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 900;
}

#todayScreen .lumaReadActions button:first-child {
  background: linear-gradient(135deg, #e8a8bc 0%, #d888a4 100%);
  box-shadow: 0 8px 22px rgba(90, 47, 82, 0.24);
}

#todayScreen .lumaReadActions button:last-child {
  background: rgba(239, 230, 237, 0.95);
  color: var(--luma-on-glass-link);
  border: 1px solid rgba(90, 60, 80, 0.1);
}

#todayScreen .homeTodayPlanCard,
#todayScreen .homeInsightsCard {
  padding: 20px;
}

#todayScreen .cardTop [data-icon] {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid var(--luma-ai-border);
  background: linear-gradient(145deg, rgba(168, 130, 154, 0.16), rgba(255, 255, 255, 0.82));
  color: var(--luma-accent-deep);
  box-shadow: 0 6px 16px rgba(58, 40, 48, 0.06);
}

#todayScreen .cardTop [data-icon] svg {
  width: 20px;
  height: 20px;
}

#todayScreen .todayPlanTile {
  min-height: 108px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--luma-ai-border);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(248, 242, 246, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#todayScreen .todayPlanTile:active {
  transform: scale(0.98);
}

#todayScreen .todayPlanPrimary,
#todayScreen .todayPlanSecondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-size: 0.92rem;
}

#todayScreen .todayPlanPrimary {
  background: linear-gradient(135deg, #8fbfb0 0%, #7eb8a8 100%);
  box-shadow: 0 8px 20px rgba(21, 90, 84, 0.22);
}

#todayScreen .todayPlanSecondary {
  border: 1px solid rgba(31, 122, 115, 0.18);
  background: rgba(234, 245, 241, 0.92);
}

#todayScreen .homeAlertsWrap {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--luma-ai-border);
  background: var(--luma-glass-surface);
  box-shadow: var(--luma-glass-surface-shadow);
}

#todayScreen .homeAlertsWrapSummary {
  padding: 16px 20px;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--luma-text-heading);
}

#todayScreen .homeAlertsWrap[open] > .homeAlertsWrapSummary {
  border-bottom-color: var(--luma-ai-border);
}

#todayScreen .homeAlertsWrap .homeAlertsCard {
  padding: 14px 20px 18px;
}

#todayScreen .homeAlertsDropdown {
  margin: 0 0 12px;
  border-radius: 18px;
  border: 1px solid var(--luma-ai-border);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

#todayScreen .homeAlertsDropdown summary {
  padding: 14px 16px;
}

#todayScreen .homeCheckInDetails {
  border: 1px solid var(--luma-ai-border);
  border-radius: 26px;
  background: var(--luma-glass-surface);
  box-shadow: var(--luma-glass-surface-shadow);
  overflow: hidden;
}

#todayScreen .homeCheckInDetails > summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--luma-text-heading);
  list-style: none;
}

#todayScreen .homeCheckInDetails > summary::-webkit-details-marker {
  display: none;
}

#todayScreen .homeCheckInDetails .checkInCard {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

#todayScreen .cycleReviewBlock {
  border-radius: 16px;
  border: 1px solid var(--luma-ai-border);
  background: rgba(255, 255, 255, 0.55);
}

#todayScreen .patternMemoryList li {
  border-radius: 16px;
  border: 1px solid var(--luma-ai-border);
  background: rgba(255, 255, 255, 0.62);
}

[data-theme="dark"] #todayScreen .homeDaySummary,
[data-theme="moonlit"] #todayScreen .homeDaySummary {
  background:
    radial-gradient(ellipse 90% 70% at 12% 0%, rgba(232, 168, 188, 0.18), transparent 55%),
    var(--luma-glass-surface);
  border-color: var(--luma-ai-border);
  box-shadow: var(--luma-glass-surface-shadow);
}

[data-theme="dark"] #todayScreen .homeHeroPhasePill,
[data-theme="moonlit"] #todayScreen .homeHeroPhasePill {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--luma-on-glass-heading);
}

[data-theme="moonlit"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeHeroPhasePill {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

[data-theme="dark"] #todayScreen .homeDaySummary h2,
[data-theme="dark"] #todayScreen .homeDaySummary #todayHeadline,
[data-theme="moonlit"] #todayScreen .homeDaySummary h2,
[data-theme="moonlit"] #todayScreen .homeDaySummary #todayHeadline {
  color: var(--luma-on-glass-heading);
}

[data-theme="dark"] #todayScreen .homeDaySummary .homePhaseLine,
[data-theme="dark"] #todayScreen .homeDaySummary #todayPhaseLine,
[data-theme="moonlit"] #todayScreen .homeDaySummary .homePhaseLine,
[data-theme="moonlit"] #todayScreen .homeDaySummary #todayPhaseLine {
  color: var(--luma-on-glass-muted);
}

[data-theme="dark"] #todayScreen .homeGreetingEyebrow,
[data-theme="moonlit"] #todayScreen .homeGreetingEyebrow {
  color: var(--luma-on-glass-heading);
}

[data-theme="dark"] #todayScreen .homeMobileHeader .todayTrackingModeChip,
[data-theme="dark"] #todayScreen .homeMobileHeader .roundButton,
[data-theme="moonlit"] #todayScreen .homeMobileHeader .todayTrackingModeChip,
[data-theme="moonlit"] #todayScreen .homeMobileHeader .roundButton {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] #todayScreen .todayPlanTile,
[data-theme="moonlit"] #todayScreen .todayPlanTile {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #todayScreen .homeAlertsDropdown,
[data-theme="moonlit"] #todayScreen .homeAlertsDropdown {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: no-preference) {
  #todayScreen.homeScreen > section,
  #todayScreen.homeScreen > details {
    animation: homeCardRise 0.45s ease both;
  }

  #todayScreen.homeScreen > section:nth-child(2) { animation-delay: 0.04s; }
  #todayScreen.homeScreen > section:nth-child(3) { animation-delay: 0.08s; }
  #todayScreen.homeScreen > section:nth-child(4) { animation-delay: 0.12s; }
  #todayScreen.homeScreen > section:nth-child(5) { animation-delay: 0.16s; }
  #todayScreen.homeScreen > section:nth-child(6) { animation-delay: 0.2s; }
  #todayScreen.homeScreen > details { animation-delay: 0.24s; }
}

@keyframes homeCardRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Final text polish: headings and labels should never look highlighted. */
.phoneShell :is(
  h1,
  h2,
  h3,
  h4,
  p.label,
  .label,
  .trackSectionTitle,
  .authForm .field > span,
  .field > span,
  .rangeField > span,
  .noteField > span,
  .mobileHeader p,
  .authSubtitle,
  .sectionTitle,
  .careSectionTitle
) {
  background: transparent !important;
  background-image: none !important;
  box-decoration-break: initial !important;
  -webkit-box-decoration-break: initial !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  text-shadow: none;
}

.phoneShell :is(h1, h2, h3, h4, p, span, strong, b, small, label)::selection {
  background: rgba(128, 63, 115, 0.24);
  color: inherit;
}

[data-theme="dark"] .phoneShell :is(h1, h2, h3, h4, p, span, strong, b, small, label)::selection,
[data-theme="moonlit"] .phoneShell :is(h1, h2, h3, h4, p, span, strong, b, small, label)::selection {
  background: rgba(216, 169, 184, 0.26);
  color: inherit;
}

/* Auth should stay in Luma's softer light identity, even when the app theme is dark. */
[data-theme="dark"] .authScreen,
[data-theme="moonlit"] .authScreen {
  background:
    linear-gradient(155deg, rgba(128, 63, 115, 0.16), transparent 34%),
    linear-gradient(24deg, rgba(31, 124, 116, 0.1), transparent 42%),
    #f7f0f5;
  color: #3a3036;
}

[data-theme="dark"] .authHero h1,
[data-theme="moonlit"] .authHero h1 {
  color: #2a2226;
}

[data-theme="dark"] .authSubtitle,
[data-theme="moonlit"] .authSubtitle {
  color: #5c4f56;
}

[data-theme="dark"] .authSignalPanel,
[data-theme="moonlit"] .authSignalPanel {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.86), rgba(246, 237, 245, 0.68));
  border-color: rgba(128, 63, 115, 0.18);
  color: #3a3036;
  box-shadow: 0 18px 40px rgba(75, 43, 67, 0.12);
}

[data-theme="dark"] .authSignalPanel strong,
[data-theme="moonlit"] .authSignalPanel strong {
  color: #2a2226;
}

[data-theme="dark"] .authSignalPanel small,
[data-theme="moonlit"] .authSignalPanel small {
  color: #735f68;
}

[data-theme="dark"] .authSignalDot,
[data-theme="moonlit"] .authSignalDot {
  background: linear-gradient(135deg, #803f73, #b76f9f);
}

[data-theme="dark"] .authTrustStrip span,
[data-theme="moonlit"] .authTrustStrip span {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(247, 238, 244, 0.58));
  border-color: rgba(128, 63, 115, 0.2);
  color: #6f3565;
}

[data-theme="dark"] .authCard,
[data-theme="dark"] .authTermsCard,
[data-theme="moonlit"] .authCard,
[data-theme="moonlit"] .authTermsCard {
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(246, 238, 244, 0.76));
  border-color: rgba(128, 63, 115, 0.22);
  color: #3a3036;
  box-shadow:
    0 24px 60px rgba(52, 37, 48, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

[data-theme="dark"] .authCard .checkInCard,
[data-theme="dark"] #userCard .checkInCard,
[data-theme="moonlit"] .authCard .checkInCard,
[data-theme="moonlit"] #userCard .checkInCard {
  background: #fffdf8;
  border-color: rgba(128, 63, 115, 0.14);
  color: #3a3036;
}

[data-theme="dark"] .authCard .authForm .field span,
[data-theme="dark"] .authCard .authHelpText,
[data-theme="dark"] .authCard .verificationNotice p,
[data-theme="dark"] .authTermsCard,
[data-theme="moonlit"] .authCard .authForm .field span,
[data-theme="moonlit"] .authCard .authHelpText,
[data-theme="moonlit"] .authCard .verificationNotice p,
[data-theme="moonlit"] .authTermsCard {
  color: #59443e;
}

[data-theme="dark"] .authCard .authForm input,
[data-theme="dark"] .authCard .authForm textarea,
[data-theme="moonlit"] .authCard .authForm input,
[data-theme="moonlit"] .authCard .authForm textarea {
  background:
    linear-gradient(180deg, #fffdf8, #fbf5f1);
  border-color: rgba(128, 63, 115, 0.2);
  color: #2f2723;
}

[data-theme="dark"] .authModeSwitch,
[data-theme="moonlit"] .authModeSwitch {
  background: rgba(32, 21, 32, 0.08);
  border-color: rgba(128, 63, 115, 0.18);
}

[data-theme="dark"] .authModeSwitch button,
[data-theme="moonlit"] .authModeSwitch button {
  color: #5d4c56;
}

[data-theme="dark"] .authModeSwitch button.active,
[data-theme="moonlit"] .authModeSwitch button.active {
  background: linear-gradient(135deg, #803f73, #a85b91);
  color: #fff;
}

[data-theme="dark"] .authCard .googleButton,
[data-theme="moonlit"] .authCard .googleButton {
  background: rgba(255, 253, 248, 0.9);
  border-color: rgba(128, 63, 115, 0.18);
  color: #2f2723;
}

[data-theme="dark"] .authCard .authLink,
[data-theme="dark"] .authTermsCard a,
[data-theme="dark"] .authLocalOnlyBtn,
[data-theme="moonlit"] .authCard .authLink,
[data-theme="moonlit"] .authTermsCard a,
[data-theme="moonlit"] .authLocalOnlyBtn {
  color: #803f73;
}

[data-theme="dark"] .phoneShell .authScreen :is(.authCard, .authTermsCard, .authSignalPanel, .authTrustStrip span),
[data-theme="moonlit"] .phoneShell .authScreen :is(.authCard, .authTermsCard, .authSignalPanel, .authTrustStrip span) {
  color: #3a3036;
}

[data-theme="dark"] .phoneShell .authScreen .authCard,
[data-theme="dark"] .phoneShell .authScreen .authTermsCard,
[data-theme="moonlit"] .phoneShell .authScreen .authCard,
[data-theme="moonlit"] .phoneShell .authScreen .authTermsCard {
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(246, 238, 244, 0.76));
  border-color: rgba(128, 63, 115, 0.22);
}

[data-theme="dark"] .phoneShell .authScreen :is(h1, h2, h3, strong, label, .authForm .field span),
[data-theme="moonlit"] .phoneShell .authScreen :is(h1, h2, h3, strong, label, .authForm .field span) {
  color: #2a2226;
}

[data-theme="dark"] .phoneShell .authScreen :is(p, span, small, li, .authSubtitle, .authHelpText, .verificationNotice p),
[data-theme="moonlit"] .phoneShell .authScreen :is(p, span, small, li, .authSubtitle, .authHelpText, .verificationNotice p) {
  color: #5c4f56;
}

[data-theme="dark"] .phoneShell .authScreen :is(.authLink, .authTermsCard a, .authLocalOnlyBtn),
[data-theme="moonlit"] .phoneShell .authScreen :is(.authLink, .authTermsCard a, .authLocalOnlyBtn) {
  color: #803f73;
}

/* Account screen final direction: always soft, light, and editorial. */
.phoneShell:has(#authScreen.active) {
  background:
    radial-gradient(ellipse 90% 58% at 18% -8%, rgba(168, 130, 154, 0.2), transparent 58%),
    radial-gradient(ellipse 68% 48% at 98% 14%, rgba(122, 63, 106, 0.08), transparent 54%),
    linear-gradient(160deg, #fbf7fb 0%, #f6edf4 52%, #fffaf6 100%) !important;
  color: #3a3036;
}

.phoneShell:has(#authScreen.active)::before {
  opacity: 0.42 !important;
}

.phoneShell:has(#authScreen.active)::after {
  opacity: 0.2 !important;
}

.phoneShell:has(#authScreen.active) .pwaPrompt,
.phoneShell:has(#onboardingScreen.active) .pwaPrompt,
.phoneShell:has(#welcomeScreen.active) .pwaPrompt {
  background: linear-gradient(180deg, #fffafc 0%, #fde8f0 100%);
  color: #4a3040;
  border-color: rgba(232, 168, 188, 0.5);
}

.phoneShell .authScreen {
  background:
    linear-gradient(155deg, rgba(128, 63, 115, 0.14), transparent 34%),
    linear-gradient(24deg, rgba(31, 124, 116, 0.08), transparent 42%),
    #fbf7fb !important;
  color: #3a3036;
}

.phoneShell .authHero h1 {
  color: #2a2226 !important;
  text-wrap: balance;
}

.phoneShell .authSubtitle {
  color: #5f5360 !important;
}

.phoneShell .authSignalPanel {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(249, 240, 247, 0.76)) !important;
  border-color: rgba(128, 63, 115, 0.18) !important;
  color: #3a3036 !important;
}

.phoneShell .authSignalPanel strong {
  color: #2a2226 !important;
}

.phoneShell .authSignalPanel small {
  color: #6b5c67 !important;
}

.phoneShell .authTrustStrip span {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(249, 240, 247, 0.68)) !important;
  border-color: rgba(128, 63, 115, 0.18) !important;
  color: #803f73 !important;
}

.phoneShell .authCard,
.phoneShell .authTermsCard {
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(249, 240, 247, 0.78)) !important;
  border-color: rgba(128, 63, 115, 0.2) !important;
  color: #3a3036 !important;
}

/* Keep the signed-in card light on auth — never inherit dark/moonlit checkInCard skins. */
[data-theme="dark"] .phoneShell .authScreen #userCard .checkInCard,
[data-theme="moonlit"] .phoneShell .authScreen #userCard .checkInCard,
.phoneShell .authScreen #userCard .checkInCard {
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(249, 240, 247, 0.9)) !important;
  border: 1px solid rgba(128, 63, 115, 0.16) !important;
  color: #3a3036 !important;
  box-shadow: 0 14px 32px rgba(75, 43, 67, 0.08) !important;
}

[data-theme="dark"] .phoneShell .authScreen #userCard .checkInCard .label,
[data-theme="moonlit"] .phoneShell .authScreen #userCard .checkInCard .label,
.phoneShell .authScreen #userCard .checkInCard .label {
  color: #4a3040 !important;
}

[data-theme="dark"] .phoneShell .authScreen #userCard .checkInCard h2,
[data-theme="moonlit"] .phoneShell .authScreen #userCard .checkInCard h2,
.phoneShell .authScreen #userCard .checkInCard h2,
.phoneShell .authScreen #userCard #userEmail {
  color: #2a2226 !important;
}

.phoneShell .authModeSwitch {
  background:
    linear-gradient(180deg, rgba(235, 224, 232, 0.92), rgba(225, 214, 223, 0.72)) !important;
  border-color: rgba(128, 63, 115, 0.22) !important;
  box-shadow:
    inset 0 1px 4px rgba(48, 29, 43, 0.1),
    0 14px 32px rgba(75, 43, 67, 0.08);
}

.phoneShell .authModeSwitch button {
  color: #5d4c56 !important;
}

.phoneShell .authModeSwitch button.active {
  background: linear-gradient(135deg, #954983, #ad5e9a) !important;
  color: #fff !important;
}

.phoneShell .authCard .authForm .field span,
.phoneShell .authCard .authHelpText,
.phoneShell .authCard .verificationNotice p {
  color: #4d3d38 !important;
}

.phoneShell .authCard .authForm input,
.phoneShell .authCard .authForm textarea {
  background: #fff !important;
  border-color: rgba(128, 63, 115, 0.16) !important;
  color: #2f2723 !important;
}

.phoneShell .authCard .authForm input::placeholder,
.phoneShell .authCard .authForm textarea::placeholder {
  color: #7a7478 !important;
}

.phoneShell .authCard .wideButton {
  background: linear-gradient(135deg, #954983, #ba6aa5 56%, #a66167) !important;
  color: #fff !important;
}

.phoneShell .authScreen #enterAppButton {
  position: relative;
  z-index: 5;
  pointer-events: auto !important;
  background: linear-gradient(135deg, #954983, #ba6aa5 56%, #a66167) !important;
  color: #fff !important;
}

.phoneShell .authCard .googleButton {
  background: #fffdf8 !important;
  border-color: rgba(128, 63, 115, 0.14) !important;
  color: #2f2723 !important;
}

.phoneShell .authCard .googleButton span {
  background: #f3e7f0 !important;
  color: #803f73 !important;
}

.phoneShell .authCard :is(.authLink, .authLocalOnlyBtn),
.phoneShell .authTermsCard a {
  color: #743464 !important;
}

.phoneShell .authCard .authLink {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.phoneShell .authScreen :is(.label, h1, h2, h3, p, span, strong, small, a, button) {
  background-color: transparent !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.phoneShell .authScreen .authLocalOnlyBtn {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 4px auto 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent !important;
  color: #743464 !important;
  font-weight: 950;
  text-decoration: none;
}

.phoneShell .authScreen .authLinkRow {
  margin: 4px 0 0;
  text-align: center;
}

.phoneShell .authScreen .authForms,
.phoneShell .authScreen .authForm {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #3a3036 !important;
}

.phoneShell .authScreen .authDivider {
  margin: 4px 0;
  color: #8b5b7f !important;
}

.phoneShell .authScreen .authDivider span {
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(249, 240, 247, 0.78)) !important;
}

/* Luma signature upgrade: premium ritual surfaces, still in the existing palette. */
:root {
  --luma-signature-plum: #e098b0;
  --luma-signature-rose: #f0b8cc;
  --luma-signature-clay: #c87d57;
  --luma-signature-mint: #dff1eb;
  --luma-signature-cream: #fffaf4;
  --luma-signature-ink: #2a2226;
}

.homeDaySummary,
.cycleWeatherCard,
.lumaBodyMapCard,
.lumaReadCard,
.pregnancyWeekCard,
.learnVisualFeature,
.learnSignaturePaths article,
.lumaIntelligenceCard,
.lumaHubHero {
  position: relative;
  overflow: hidden;
}

.homeDaySummary::before,
.lumaReadCard::before,
.lumaBodyMapCard::before,
.lumaIntelligenceCard::before,
.learnVisualFeature::before,
.pregnancyWeekCard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.72), transparent 34%),
    radial-gradient(ellipse 90% 70% at 108% -8%, rgba(168, 130, 154, 0.18), transparent 58%);
  opacity: 0.9;
}

#todayScreen .homeDaySummary {
  min-height: 430px;
  padding: 18px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.7), rgba(255, 250, 246, 0.96)),
    var(--luma-glass-surface);
  box-shadow:
    0 34px 80px rgba(58, 40, 48, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

#todayScreen .homeAtmospherePreview {
  height: 160px;
  border-radius: 28px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.7),
    0 18px 44px rgba(58, 40, 48, 0.16);
}

#todayScreen .homeAtmospherePreview::after {
  background:
    linear-gradient(180deg, transparent 42%, rgba(42, 34, 38, 0.12)),
    radial-gradient(circle at 22% 20%, rgba(255,255,255,0.32), transparent 28%);
}

#todayScreen .homeDaySummary h2,
#todayScreen .homeDaySummary #todayHeadline {
  font-family: var(--luma-font-display);
  font-size: clamp(2rem, 7.5vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 11ch;
}

#todayScreen .homeHeroPhasePill {
  width: max-content;
  max-width: 100%;
  padding: 9px 13px;
  border: 1px solid rgba(128, 63, 115, 0.14);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 12px 28px rgba(58, 40, 48, 0.08);
}

.cycleWeatherCard {
  min-height: 132px;
  border-radius: 30px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255,250,244,0.95), rgba(223,241,235,0.86)),
    var(--luma-glass-surface);
}

.cycleWeatherActionBtn {
  margin-top: 12px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--luma-signature-plum);
  color: #4a3040;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  width: fit-content;
}

.cycleWeatherCard[data-phase="fertile"],
.lumaBodyMapCard[data-phase="fertile"] {
  --phase-glow: rgba(143, 168, 130, 0.28);
}

.cycleWeatherCard[data-phase="ovulation"],
.lumaBodyMapCard[data-phase="ovulation"] {
  --phase-glow: rgba(201, 136, 90, 0.32);
}

.cycleWeatherCard[data-phase="period"],
.lumaBodyMapCard[data-phase="period"] {
  --phase-glow: rgba(180, 112, 108, 0.26);
}

.cycleWeatherCard[data-phase="tender"],
.lumaBodyMapCard[data-phase="tender"] {
  --phase-glow: rgba(168, 130, 154, 0.26);
}

.cycleWeatherCard::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--phase-glow, rgba(168, 130, 154, 0.22)), transparent 68%);
}

.cycleWeatherCard h2 {
  font-family: var(--luma-font-display);
  font-size: 1.55rem;
  letter-spacing: 0;
}

.cycleWeatherBadge {
  z-index: 1;
  min-width: 88px;
  min-height: 88px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,0.26), transparent 28%),
    linear-gradient(145deg, var(--luma-signature-plum), var(--luma-signature-rose));
}

.lumaBodyMapCard {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 32px;
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, var(--phase-glow, rgba(168, 130, 154, 0.14)), transparent 60%),
    var(--luma-glass-surface);
  box-shadow: var(--luma-glass-surface-shadow);
}

.bodyMapOrb {
  aspect-ratio: 1;
  border-radius: 32px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(255,255,255,0.96) 0 18%, transparent 19%),
    conic-gradient(from 210deg, #b0718f, #d7b0bc, #e6c8a7, #9fb594, #b0718f);
  box-shadow:
    inset 0 0 0 1px rgba(128, 63, 115, 0.16),
    0 18px 34px rgba(58, 40, 48, 0.12);
}

.bodyMapOrb span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(128,63,115,0.42);
  background: rgba(255,255,255,0.55);
}

.bodyMapCopy {
  position: relative;
  z-index: 1;
}

.bodyMapCopy h2,
.lumaIntelligenceCard h2,
.learnSignaturePaths h3 {
  margin: 2px 0 4px;
  color: var(--luma-on-glass-heading);
  font-size: 1.05rem;
  line-height: 1.2;
}

.bodyMapCopy p:not(.label),
.lumaIntelligenceCard p:not(.label),
.learnSignaturePaths p:not(.label) {
  margin: 0;
  color: var(--luma-on-glass-muted);
  font-weight: 750;
  line-height: 1.45;
}

.bodyMapSignals {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.bodyMapSignals span,
.lumaContextChips span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.64);
  border: 1px solid rgba(128,63,115,0.13);
  color: var(--luma-on-glass-label);
  font-size: 0.78rem;
  font-weight: 950;
}

.learnVisualFeature {
  border-radius: 34px;
}

.learnVisualFeature img {
  min-height: 0;
}

.learnVisualFeature h2 {
  font-family: var(--luma-font-display);
  font-size: clamp(1.75rem, 6vw, 2.55rem);
  line-height: 1;
  letter-spacing: 0;
}

.learnSignaturePaths {
  display: grid;
  gap: 12px;
}

.learnSignaturePaths article {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 14px;
  row-gap: 4px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 26px;
  background: var(--luma-glass-surface);
  box-shadow: var(--luma-glass-surface-shadow);
}

.learnSignaturePaths article [data-icon] {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #b04868;
  background: rgba(255, 236, 242, 0.9);
}

.learnSignaturePaths article .label {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.learnSignaturePaths article h3 {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  max-width: none;
  width: 100%;
}

.learnSignaturePaths article p:not(.label) {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
}

.lumaHubHero {
  margin: 0 16px 10px;
  padding: 14px 16px 16px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 85% 55% at 12% 0%, color-mix(in srgb, var(--luma-accent) 24%, transparent), transparent 55%),
    linear-gradient(155deg, var(--luma-surface-card) 0%, var(--luma-surface-card-alt) 100%);
  color: var(--luma-text);
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--luma-accent) 12%, transparent);
}

.lumaHubHero .lumaHubGreeting {
  color: var(--luma-text-muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  max-width: none;
  width: 100%;
}

.lumaHubHero .wideButton {
  min-height: 42px;
  margin-top: 12px;
  font-size: 14px;
}

.lumaHubHero h2 {
  position: relative;
  z-index: 1;
  margin: 4px 0 8px;
  font-family: var(--luma-font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 0.96;
  letter-spacing: 0;
  color: var(--luma-text-heading);
}

.lumaActionCenter {
  overflow: hidden;
}

.lumaActionCenter .hubSectionHeader {
  margin-bottom: 14px;
}

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

.lumaCommandCard {
  position: relative;
  min-height: 126px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 92% 74% at 100% 0%, color-mix(in srgb, var(--luma-accent) 18%, transparent), transparent 60%),
    rgba(255, 253, 248, 0.72);
  color: var(--luma-on-glass-heading);
  text-align: left;
  box-shadow: var(--luma-glass-surface-shadow);
  overflow: hidden;
}

.lumaCommandCard span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--luma-accent) 12%, white);
  color: var(--luma-on-glass-label);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lumaCommandCard strong {
  display: block;
  font-family: var(--luma-font-display);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--luma-on-glass-heading);
  letter-spacing: 0;
}

.lumaCommandCard em {
  display: block;
  color: var(--luma-on-glass-muted);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.35;
}

.lumaCommandCard--primary {
  background:
    radial-gradient(ellipse 90% 80% at 92% -12%, rgba(255,255,255,0.36), transparent 60%),
    linear-gradient(145deg, var(--luma-signature-plum), color-mix(in srgb, var(--luma-signature-plum) 68%, var(--luma-signature-rose)));
  color: #4a3040;
}

.lumaCommandCard--primary span,
.lumaCommandCard--primary strong,
.lumaCommandCard--primary em {
  color: #4a3040;
}

.lumaCommandCard--primary span {
  background: rgba(255,255,255,0.34);
}

.lumaPromptGroupRow {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.lumaPromptGroupRow button {
  flex: 0 0 auto;
  min-height: 42px;
  max-width: 240px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--luma-on-glass-heading);
  font-weight: 900;
  white-space: nowrap;
}

.lumaIntelligenceCard {
  display: grid;
  gap: 12px;
  margin: 0 16px 12px;
  padding: 16px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,253,248,0.94), rgba(239,230,237,0.78));
  box-shadow: var(--luma-glass-surface-shadow);
}

.lumaContextChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.mobileMessage.luma {
  border-radius: 24px 24px 24px 8px;
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(168,130,154,0.13), transparent 58%),
    var(--luma-glass-surface);
}

.phoneShell .lumaSheetOverlay {
  padding: 12px 12px calc(86px + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 92% 68% at 50% 100%, rgba(216, 136, 164, 0.26), transparent 58%),
    rgba(42, 34, 38, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.phoneShell .lumaSheet {
  max-height: min(88vh, 820px);
  border-radius: 34px;
  background:
    radial-gradient(ellipse 115% 80% at 10% -10%, rgba(255, 232, 242, 0.82), transparent 58%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 246, 251, 0.98));
  border: 1px solid rgba(128, 63, 115, 0.16);
  box-shadow:
    0 34px 90px rgba(42, 34, 38, 0.32),
    inset 0 1px 0 rgba(255,255,255,0.86);
}

.phoneShell .lumaSheetHeader {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 20px 22px 14px;
  background: linear-gradient(180deg, rgba(255,253,248,0.96), rgba(255,253,248,0.74));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.phoneShell .lumaSheetHeader p {
  margin: 0;
  color: var(--luma-on-glass-label);
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.phoneShell .lumaSheetHeader h2 {
  font-family: var(--luma-font-display);
  font-size: clamp(2.1rem, 9vw, 3.2rem);
  line-height: 0.92;
  letter-spacing: 0;
  color: var(--luma-text-heading);
}

.phoneShell .lumaSheetClose {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: var(--luma-text-heading);
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid var(--luma-ai-border);
}

.phoneShell .lumaSheetChat {
  gap: 12px;
  min-height: auto;
  padding: 14px 16px 18px;
}

.lumaSheetTodayCard {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 26px;
  background:
    radial-gradient(ellipse 92% 72% at 100% -8%, rgba(223, 241, 235, 0.72), transparent 60%),
    rgba(255, 253, 248, 0.72);
  box-shadow: var(--luma-glass-surface-shadow);
}

.lumaSheetTodayCard h3 {
  margin: 0;
  color: var(--luma-on-glass-heading);
  font-size: 1.08rem;
  line-height: 1.2;
}

.lumaSheetTodayCard p:not(.label) {
  margin: 0;
  color: var(--luma-on-glass-muted);
  font-weight: 760;
  line-height: 1.42;
}

.phoneShell .lumaConcierge {
  padding: 16px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 100% 74% at 0% 0%, rgba(255, 232, 242, 0.54), transparent 62%),
    rgba(255, 253, 248, 0.72);
  border-color: var(--luma-ai-border);
  box-shadow: var(--luma-glass-surface-shadow);
}

.phoneShell .lumaConciergeModes {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
}

.phoneShell .lumaConciergeMode {
  flex: 0 0 150px;
  min-height: 132px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border-radius: 24px;
  scroll-snap-align: start;
}

.phoneShell .lumaConciergeMode span {
  grid-row: auto;
  width: 38px;
  height: 38px;
  border-radius: 15px;
}

.phoneShell .lumaConciergeMode em {
  font-size: 0.76rem;
  line-height: 1.28;
}

.phoneShell .lumaConciergePanel {
  border-radius: 26px;
}

.phoneShell .mobileMessages {
  flex: 0 0 auto;
  min-height: 118px;
  max-height: 28vh;
  padding: 2px;
}

.phoneShell .mobileMessages:empty {
  min-height: 0;
  display: none;
}

.phoneShell .mobileChatForm {
  position: static;
  z-index: 1;
  margin: 2px -4px -6px;
  padding: 10px;
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(128, 63, 115, 0.1);
  box-shadow: 0 18px 44px rgba(75, 43, 67, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.phoneShell .mobileChatForm input {
  min-height: 56px;
  border-radius: 20px;
  background: rgba(255,255,255,0.86);
  border-color: rgba(128, 63, 115, 0.14);
  color: var(--luma-text-heading);
}

.phoneShell .mobileChatForm button {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--luma-signature-plum), var(--luma-signature-rose));
}

.pregnancyFocusMode #todayScreen .homeDaySummary {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(223, 241, 235, 0.44), transparent 60%),
    linear-gradient(180deg, rgba(255,253,248,0.76), rgba(255,250,246,0.96)),
    var(--luma-glass-surface);
}

.pregnancyFocusMode .pregnancyWeekCard {
  grid-template-columns: 1fr;
  border-radius: 34px;
  background:
    radial-gradient(ellipse 100% 85% at 0% 0%, rgba(223, 241, 235, 0.54), transparent 58%),
    linear-gradient(145deg, rgba(255,253,248,0.96), rgba(250,238,243,0.82));
}

.pregnancyFocusMode .pregnancyWombVisual {
  width: min(100%, 210px);
}

.pregnancyFocusMode .pregnancyWombShell {
  box-shadow:
    inset 0 -20px 40px rgba(126, 63, 106, 0.16),
    inset 0 10px 28px rgba(255, 255, 255, 0.7),
    0 20px 48px rgba(73, 47, 58, 0.18),
    0 0 32px rgba(27, 123, 116, calc(var(--wombGlow) * 0.22));
}

.pregnancyFocusMode .pregnancyWeekVisual {
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 42%, #fffdf8 0 22%, transparent 23%),
    radial-gradient(circle at 54% 48%, #d8a6b5 0 36%, transparent 37%),
    radial-gradient(circle at 44% 40%, #dff1eb 0 44%, transparent 45%),
    linear-gradient(145deg, #f8ddd8, #d8edf0);
}

[data-theme="dark"] .phoneShell .lumaBodyMapCard,
[data-theme="dark"] .phoneShell .learnSignaturePaths article,
[data-theme="dark"] .phoneShell .lumaIntelligenceCard,
[data-theme="moonlit"] .phoneShell .lumaBodyMapCard,
[data-theme="moonlit"] .phoneShell .learnSignaturePaths article,
[data-theme="moonlit"] .phoneShell .lumaIntelligenceCard {
  background: var(--luma-glass-surface);
  border-color: var(--luma-ai-border);
  color: var(--luma-on-glass);
}

[data-theme="dark"] .phoneShell .bodyMapCopy h2,
[data-theme="dark"] .phoneShell .lumaIntelligenceCard h2,
[data-theme="dark"] .phoneShell .learnSignaturePaths h3,
[data-theme="moonlit"] .phoneShell .bodyMapCopy h2,
[data-theme="moonlit"] .phoneShell .lumaIntelligenceCard h2,
[data-theme="moonlit"] .phoneShell .learnSignaturePaths h3 {
  color: var(--luma-on-glass-heading);
}

[data-theme="dark"] .phoneShell .bodyMapCopy p:not(.label),
[data-theme="dark"] .phoneShell .lumaIntelligenceCard p:not(.label),
[data-theme="dark"] .phoneShell .learnSignaturePaths p:not(.label),
[data-theme="moonlit"] .phoneShell .bodyMapCopy p:not(.label),
[data-theme="moonlit"] .phoneShell .lumaIntelligenceCard p:not(.label),
[data-theme="moonlit"] .phoneShell .learnSignaturePaths p:not(.label) {
  color: var(--luma-on-glass-muted);
}

[data-theme="dark"] .phoneShell .lumaHubHero,
[data-theme="moonlit"] .phoneShell .lumaHubHero {
  background:
    radial-gradient(ellipse 85% 55% at 12% 0%, color-mix(in srgb, var(--luma-accent) 22%, transparent), transparent 55%),
    linear-gradient(155deg, var(--luma-surface-card) 0%, var(--luma-shell) 100%) !important;
  color: var(--luma-text);
  border: 1px solid color-mix(in srgb, var(--luma-accent) 28%, transparent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

[data-theme="dark"] .phoneShell .lumaHubHero .lumaHubGreeting,
[data-theme="moonlit"] .phoneShell .lumaHubHero .lumaHubGreeting {
  color: var(--luma-text-muted);
  font-size: 15px;
  line-height: 1.45;
  max-width: none;
  width: 100%;
}

[data-theme="dark"] .phoneShell .lumaHubHero h2,
[data-theme="moonlit"] .phoneShell .lumaHubHero h2 {
  color: var(--luma-text-heading);
}

[data-theme="dark"] .phoneShell .lumaCommandCard,
[data-theme="dark"] .phoneShell .lumaSheetTodayCard,
[data-theme="dark"] .phoneShell .lumaConcierge,
[data-theme="dark"] .phoneShell .lumaConciergeMode,
[data-theme="dark"] .phoneShell .lumaConciergePanel,
[data-theme="moonlit"] .phoneShell .lumaCommandCard,
[data-theme="moonlit"] .phoneShell .lumaSheetTodayCard,
[data-theme="moonlit"] .phoneShell .lumaConcierge,
[data-theme="moonlit"] .phoneShell .lumaConciergeMode,
[data-theme="moonlit"] .phoneShell .lumaConciergePanel {
  background: var(--luma-glass-surface);
  border-color: var(--luma-ai-border);
  color: var(--luma-on-glass);
}

[data-theme="dark"] .phoneShell .lumaCommandCard strong,
[data-theme="dark"] .phoneShell .lumaSheetTodayCard h3,
[data-theme="dark"] .phoneShell .lumaConcierge h3,
[data-theme="dark"] .phoneShell .lumaConciergeMode strong,
[data-theme="dark"] .phoneShell #lumaConciergePanelTitle,
[data-theme="moonlit"] .phoneShell .lumaCommandCard strong,
[data-theme="moonlit"] .phoneShell .lumaSheetTodayCard h3,
[data-theme="moonlit"] .phoneShell .lumaConcierge h3,
[data-theme="moonlit"] .phoneShell .lumaConciergeMode strong,
[data-theme="moonlit"] .phoneShell #lumaConciergePanelTitle {
  color: var(--luma-on-glass-heading);
}

[data-theme="dark"] .phoneShell .lumaCommandCard em,
[data-theme="dark"] .phoneShell .lumaSheetTodayCard p:not(.label),
[data-theme="dark"] .phoneShell .lumaConcierge p,
[data-theme="dark"] .phoneShell .lumaConciergeMode em,
[data-theme="moonlit"] .phoneShell .lumaCommandCard em,
[data-theme="moonlit"] .phoneShell .lumaSheetTodayCard p:not(.label),
[data-theme="moonlit"] .phoneShell .lumaConcierge p,
[data-theme="moonlit"] .phoneShell .lumaConciergeMode em {
  color: var(--luma-on-glass-muted);
}

[data-theme="dark"] .phoneShell .lumaCommandCard span,
[data-theme="moonlit"] .phoneShell .lumaCommandCard span {
  background: color-mix(in srgb, var(--luma-accent) 20%, transparent);
  color: var(--luma-on-glass-label);
}

[data-theme="dark"] .phoneShell .lumaCommandCard--primary,
[data-theme="moonlit"] .phoneShell .lumaCommandCard--primary {
  background: linear-gradient(145deg, color-mix(in srgb, var(--luma-accent) 70%, #16151d), #2f2430);
}

[data-theme="dark"] .phoneShell .lumaCommandCard--primary span,
[data-theme="dark"] .phoneShell .lumaCommandCard--primary strong,
[data-theme="dark"] .phoneShell .lumaCommandCard--primary em,
[data-theme="moonlit"] .phoneShell .lumaCommandCard--primary span,
[data-theme="moonlit"] .phoneShell .lumaCommandCard--primary strong,
[data-theme="moonlit"] .phoneShell .lumaCommandCard--primary em {
  color: #fff;
}

[data-theme="dark"] .phoneShell .lumaSheet,
[data-theme="moonlit"] .phoneShell .lumaSheet {
  background:
    radial-gradient(ellipse 110% 72% at 12% -10%, color-mix(in srgb, var(--luma-accent) 20%, transparent), transparent 58%),
    var(--luma-shell);
  border-color: var(--luma-ai-border);
}

[data-theme="dark"] .phoneShell .lumaSheetHeader,
[data-theme="dark"] .phoneShell .mobileChatForm,
[data-theme="moonlit"] .phoneShell .lumaSheetHeader,
[data-theme="moonlit"] .phoneShell .mobileChatForm {
  background: color-mix(in srgb, var(--luma-shell) 86%, transparent);
  border-color: var(--luma-ai-border);
}

[data-theme="dark"] .phoneShell .lumaSheetHeader h2,
[data-theme="moonlit"] .phoneShell .lumaSheetHeader h2 {
  color: var(--luma-text-heading);
}

[data-theme="dark"] .phoneShell .mobileChatForm input,
[data-theme="moonlit"] .phoneShell .mobileChatForm input {
  background: color-mix(in srgb, var(--luma-shell) 72%, black);
  border-color: var(--luma-ai-border);
  color: var(--luma-text-heading);
}

[data-theme="dark"] .phoneShell .mobileChatForm input::placeholder,
[data-theme="moonlit"] .phoneShell .mobileChatForm input::placeholder {
  color: var(--luma-text-muted);
}

/* Account hero glow: bring sign-in/create-account into the signature system. */
.phoneShell .authExperience {
  padding-top: 26px;
}

.phoneShell .authHero {
  position: relative;
  isolation: isolate;
  gap: 18px;
  padding: 24px 18px 20px;
  border-radius: 36px;
  background:
    radial-gradient(ellipse 110% 78% at 10% -8%, rgba(128, 63, 115, 0.22), transparent 58%),
    radial-gradient(ellipse 80% 62% at 102% 18%, rgba(200, 125, 87, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.72), rgba(249, 240, 247, 0.5));
  border: 1px solid rgba(128, 63, 115, 0.16);
  box-shadow:
    0 34px 86px rgba(75, 43, 67, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.74);
  overflow: hidden;
}

.phoneShell .authHero::before,
.phoneShell .authHero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  z-index: -1;
}

.phoneShell .authHero::before {
  width: 230px;
  height: 230px;
  right: -92px;
  top: -78px;
  background: radial-gradient(circle, rgba(232, 168, 188, 0.42), transparent 68%);
  filter: blur(2px);
}

.phoneShell .authHero::after {
  width: 130px;
  height: 130px;
  left: -48px;
  bottom: 28px;
  background: radial-gradient(circle, rgba(31, 122, 115, 0.12), transparent 70%);
}

.phoneShell .authHero .label {
  width: max-content;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(128, 63, 115, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.55) !important;
  color: #d07090 !important;
  box-shadow: 0 12px 28px rgba(75, 43, 67, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.phoneShell .authHero h1 {
  max-width: 9.5ch;
  color: #2a2226 !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.7),
    0 18px 42px rgba(128, 63, 115, 0.18);
}

.phoneShell .authSubtitle {
  max-width: 30rem;
  color: #554851 !important;
}

.phoneShell .authSignalPanel {
  position: relative;
  width: 100%;
  min-height: 98px;
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(246, 237, 245, 0.7)),
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(128, 63, 115, 0.16), transparent 58%) !important;
  border-color: rgba(128, 63, 115, 0.18) !important;
  box-shadow:
    0 22px 52px rgba(75, 43, 67, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.82);
  overflow: hidden;
}

.phoneShell .authSignalPanel::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -42px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 63, 115, 0.18), transparent 70%);
  pointer-events: none;
}

/* Ritual login/onboarding: kill decorative corner blob that reads as a square */
body[data-auth-style="ritual"] .phoneShell .authSignalPanel,
body[data-auth-style="ritual"] .phoneShell .welcomeRecap {
  min-height: 0 !important;
  padding: 14px 0 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body[data-auth-style="ritual"] .phoneShell .authSignalPanel::after,
body[data-auth-style="ritual"] .phoneShell .welcomeRecap::after {
  content: none !important;
  display: none !important;
}

.phoneShell .authSignalPanel strong {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.phoneShell .authSignalPanel small {
  margin-top: 5px;
  font-size: 0.92rem;
  color: #66545f !important;
}

.phoneShell .authSignalDot {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 72% 22%, #d8f4e9 0 9%, transparent 10%),
    radial-gradient(circle at 42% 55%, rgba(255,255,255,0.22) 0 25%, transparent 26%),
    linear-gradient(145deg, #803f73, #b96c9f 62%, #c87d57);
  box-shadow:
    0 18px 34px rgba(128, 63, 115, 0.28),
    0 0 0 8px rgba(128, 63, 115, 0.06);
}

.phoneShell .authSignalDot::before {
  inset: 14px;
  border-width: 3px;
}

.phoneShell .authSignalDot::after {
  width: 10px;
  height: 10px;
  right: 12px;
  top: 12px;
}

.phoneShell .authTrustStrip {
  gap: 12px;
}

.phoneShell .authTrustStrip span {
  min-height: 62px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(249, 240, 247, 0.62)) !important;
  box-shadow:
    0 16px 34px rgba(75, 43, 67, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

[data-theme="dark"] .phoneShell .authHero,
[data-theme="moonlit"] .phoneShell .authHero {
  background:
    radial-gradient(ellipse 110% 78% at 10% -8%, rgba(128, 63, 115, 0.22), transparent 58%),
    radial-gradient(ellipse 80% 62% at 102% 18%, rgba(200, 125, 87, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.72), rgba(249, 240, 247, 0.5)) !important;
}

@media (max-width: 430px) {
  .phoneShell .authHero {
    padding: 22px 14px 18px;
    border-radius: 30px;
  }

  .phoneShell .authHero h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }
}

@media (max-width: 430px) {
  .lumaBodyMapCard,
  .pregnancyFocusMode .pregnancyWeekCard {
    grid-template-columns: 1fr;
  }

  .bodyMapOrb,
  .pregnancyWeekVisual {
    width: 112px;
  }
}

[data-theme="dark"] .phoneShell .calendarNoPeriodBtn:not(.active),
[data-theme="moonlit"] .phoneShell .calendarNoPeriodBtn:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--luma-text-heading);
  border-color: rgba(240, 220, 232, 0.32);
}

[data-theme="dark"] .phoneShell .calendarNoPeriodBtn.active,
[data-theme="moonlit"] .phoneShell .calendarNoPeriodBtn.active {
  background: linear-gradient(135deg, #e8a8bc, #7b8fc9);
  color: #2a2228;
}

[data-theme="dark"] .phoneShell .calendarPredictionNote,
[data-theme="moonlit"] .phoneShell .calendarPredictionNote {
  color: var(--luma-on-light-surface-heading);
}

[data-theme="dark"] .phoneShell .calendarPredictionNote[data-mode="no-period"],
[data-theme="moonlit"] .phoneShell .calendarPredictionNote[data-mode="no-period"] {
  background: linear-gradient(135deg, #fff7fb, #f5e7f0);
  border-color: rgba(132, 64, 110, 0.28);
  color: var(--luma-on-light-surface-heading);
}

[data-theme="dark"] .phoneShell .monthCalendarDay.noPeriodMonth,
[data-theme="moonlit"] .phoneShell .monthCalendarDay.noPeriodMonth,
[data-theme="dark"] .phoneShell .monthDay.noPeriodMonth,
[data-theme="moonlit"] .phoneShell .monthDay.noPeriodMonth {
  background:
    linear-gradient(145deg, rgba(40, 32, 38, 0.92), rgba(34, 28, 34, 0.96)),
    repeating-linear-gradient(
      135deg,
      rgba(232, 196, 223, 0.16),
      rgba(232, 196, 223, 0.16) 5px,
      transparent 5px,
      transparent 10px
    ) !important;
  color: #e8c4df !important;
  border-color: rgba(232, 196, 223, 0.28) !important;
}

[data-theme="dark"] .phoneShell .monthCalendarDay.noPeriodMonth .cycleLabel,
[data-theme="moonlit"] .phoneShell .monthCalendarDay.noPeriodMonth .cycleLabel,
[data-theme="dark"] .phoneShell .monthDay.noPeriodMonth .cycleLabel,
[data-theme="moonlit"] .phoneShell .monthDay.noPeriodMonth .cycleLabel {
  opacity: 0.55;
}

[data-theme="dark"] .phoneShell .calendarModeQuickSwitch,
[data-theme="moonlit"] .phoneShell .calendarModeQuickSwitch {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(90, 60, 80, 0.14);
}

[data-theme="dark"] .phoneShell .calendarModeQuickSwitch button:not(.active),
[data-theme="moonlit"] .phoneShell .calendarModeQuickSwitch button:not(.active) {
  color: var(--luma-on-light-surface-heading);
}

[data-theme="dark"] .phoneShell .calendarModeQuickSwitch button.active[data-cycle-mode="regular"],
[data-theme="moonlit"] .phoneShell .calendarModeQuickSwitch button.active[data-cycle-mode="regular"] {
  background: linear-gradient(135deg, #255f66, #3d7780);
  color: #ffffff;
}

[data-theme="dark"] .phoneShell .calendarModeQuickSwitch button.active[data-cycle-mode="irregular"],
[data-theme="moonlit"] .phoneShell .calendarModeQuickSwitch button.active[data-cycle-mode="irregular"] {
  background: linear-gradient(135deg, #e8a8bc, #7b8fc9);
  color: #2a2228;
}

/* ================================================================
   Dark + Moonlit — black type on light nested surfaces (final contract)
   Cream/white panels keep their light backgrounds; type is always near-black.
   Beats global light-text rules on .phoneShell p / .appScreen span, etc.
   ================================================================ */

[data-theme="dark"] .phoneShell :is(
  .cycleWeatherCard,
  .calendarQuickGuide,
  .calendarHintProminent,
  .calendarModeNotice,
  .calendarPredictionNote,
  .logHistoryItem,
  .emptyLog,
  .irregularCyclePanel,
  .historyChartWrap,
  .homePreviewBanner,
  .medicationRow,
  .mobileSettings p,
  .promptRow button,
  .feelingGrid button:not(.active),
  .lumaChatControls button:not(.wideButton),
  .logHistoryFilters button:not(.active),
  .cycleTools button:not(.active),
  .calendarModeQuickSwitch,
  #todayScreen .todayPlanSecondary,
  .yearControls button,
  .importedCycles .historyChip,
  .historyChip
),
[data-theme="moonlit"] .phoneShell :is(
  .cycleWeatherCard,
  .calendarQuickGuide,
  .calendarHintProminent,
  .calendarModeNotice,
  .calendarPredictionNote,
  .logHistoryItem,
  .emptyLog,
  .irregularCyclePanel,
  .historyChartWrap,
  .homePreviewBanner,
  .medicationRow,
  .mobileSettings p,
  .promptRow button,
  .feelingGrid button:not(.active),
  .lumaChatControls button:not(.wideButton),
  .logHistoryFilters button:not(.active),
  .cycleTools button:not(.active),
  .calendarModeQuickSwitch,
  #todayScreen .todayPlanSecondary,
  .yearControls button,
  .importedCycles .historyChip,
  .historyChip
) {
  color: var(--luma-on-light-surface-heading) !important;
}

[data-theme="dark"] .phoneShell :is(
  .cycleWeatherCard,
  .calendarQuickGuide,
  .calendarHintProminent,
  .calendarModeNotice,
  .calendarPredictionNote,
  .logHistoryItem,
  .emptyLog,
  .irregularCyclePanel,
  .historyChartWrap,
  .homePreviewBanner,
  .medicationRow,
  .mobileSettings p
) :is(h1, h2, h3, h4, strong, b, summary, .label),
[data-theme="moonlit"] .phoneShell :is(
  .cycleWeatherCard,
  .calendarQuickGuide,
  .calendarHintProminent,
  .calendarModeNotice,
  .calendarPredictionNote,
  .logHistoryItem,
  .emptyLog,
  .irregularCyclePanel,
  .historyChartWrap,
  .homePreviewBanner,
  .medicationRow,
  .mobileSettings p
) :is(h1, h2, h3, h4, strong, b, summary, .label) {
  color: var(--luma-on-light-surface-heading) !important;
}

[data-theme="dark"] .phoneShell :is(
  .cycleWeatherCard,
  .calendarQuickGuide,
  .calendarHintProminent,
  .calendarModeNotice,
  .calendarPredictionNote,
  .logHistoryItem,
  .emptyLog,
  .irregularCyclePanel,
  .historyChartWrap,
  .homePreviewBanner,
  .medicationRow,
  .mobileSettings p
) :is(p, li, span, small, div, em),
[data-theme="moonlit"] .phoneShell :is(
  .cycleWeatherCard,
  .calendarQuickGuide,
  .calendarHintProminent,
  .calendarModeNotice,
  .calendarPredictionNote,
  .logHistoryItem,
  .emptyLog,
  .irregularCyclePanel,
  .historyChartWrap,
  .homePreviewBanner,
  .medicationRow,
  .mobileSettings p
) :is(p, li, span, small, div, em) {
  color: var(--luma-on-light-surface-muted) !important;
}

[data-theme="dark"] .phoneShell .cycleWeatherCard .cycleWeatherBadge,
[data-theme="moonlit"] .phoneShell .cycleWeatherCard .cycleWeatherBadge,
[data-theme="dark"] .phoneShell .logHistoryFilters button.active,
[data-theme="moonlit"] .phoneShell .logHistoryFilters button.active,
[data-theme="dark"] .phoneShell .calendarNoPeriodBtn.active,
[data-theme="moonlit"] .phoneShell .calendarNoPeriodBtn.active,
[data-theme="dark"] .phoneShell .cycleTools button.active,
[data-theme="moonlit"] .phoneShell .cycleTools button.active,
[data-theme="dark"] .phoneShell .calendarPrimaryBtn,
[data-theme="moonlit"] .phoneShell .calendarPrimaryBtn,
[data-theme="dark"] .phoneShell .calendarModeQuickSwitch button.active,
[data-theme="moonlit"] .phoneShell .calendarModeQuickSwitch button.active {
  color: #ffffff !important;
}

[data-theme="dark"] .phoneShell .historyChartLabel,
[data-theme="moonlit"] .phoneShell .historyChartLabel,
[data-theme="dark"] .phoneShell .noPeriodHistoryLabel,
[data-theme="moonlit"] .phoneShell .noPeriodHistoryLabel {
  color: var(--luma-text-muted) !important;
}

[data-theme="dark"] .phoneShell .settingsFieldBadge,
[data-theme="moonlit"] .phoneShell .settingsFieldBadge {
  color: var(--luma-text-heading) !important;
  background: color-mix(in srgb, var(--luma-accent) 22%, transparent) !important;
}

/* ================================================================
   Launch polish — cohesive cards, motion, and consumer-ready chrome
   ================================================================ */

#todayScreen .homeDaySummary {
  min-height: 0;
}

#todayScreen .homeAtmospherePreview {
  aspect-ratio: 16 / 10;
  min-height: clamp(128px, 34vw, 168px);
  height: auto;
}

#todayScreen .cycleWeatherCard,
#todayScreen .lumaBodyMapCard,
#todayScreen .lumaReadCard,
#todayScreen .homeTodayPlanCard,
#todayScreen .homeInsightsCard {
  border-radius: 26px;
}

#cycleScreen .trackHero {
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid var(--luma-ai-border);
  background: var(--luma-glass-surface);
  box-shadow: var(--luma-glass-surface-shadow);
  backdrop-filter: blur(18px) saturate(1.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.04);
}

#cycleScreen .trackHeroHeadline {
  font-family: var(--luma-font-display);
  font-size: clamp(1.35rem, 5.5vw, 1.65rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.02em;
}

#cycleScreen .cycleGridLegend {
  display: none;
}

#lumaHubScreen .hubSection,
#lumaHubScreen .lumaHubHero,
#lumaHubScreen .lumaIntelligenceCard {
  margin-left: 0;
  margin-right: 0;
}

.hubSectionHeader h2,
.lumaIntelligenceCard h2 {
  font-family: var(--luma-font-display);
  letter-spacing: -0.02em;
}

.tabBar button {
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.15s ease;
}

.tabBar button:active:not(.active) {
  transform: scale(0.96);
}

#launchReadinessSection {
  display: none;
}

body.launchReadinessVisible #launchReadinessSection {
  display: block;
}

.importPanel {
  margin-top: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--luma-ai-border);
  background: var(--luma-glass-surface);
  box-shadow: var(--luma-glass-surface-shadow);
}

.importPanel h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--luma-on-glass-heading);
}

.cycleWeatherActionBtn:active,
.lumaReadActions button:active,
.powerToolBtn:active,
.lumaPromptGroupRow button:active,
.aiToolCard:active,
.homeLumaPrompts button:active {
  transform: scale(0.98);
}

.cycleWeatherActionBtn,
.lumaReadActions button,
.powerToolBtn,
.lumaPromptGroupRow button,
.aiToolCard {
  transition: transform 0.15s ease, box-shadow 0.18s ease;
}

#bodyMapSignals:empty::before {
  content: "Signal chips appear here once you log today.";
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed var(--luma-ai-border);
  color: var(--luma-on-glass-muted);
  font-size: 12px;
  line-height: 1.45;
}

.historyInsightPending {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed var(--luma-ai-border);
  background: rgba(255, 255, 255, 0.45);
  color: var(--luma-on-glass-muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}

.unifiedTrackLogPanel {
  border-radius: 26px;
  overflow: hidden;
}

.lumaHubHero .wideButton {
  background: linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 78%, white), var(--luma-accent));
  color: #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--luma-accent) 24%, transparent);
}

[data-theme="dark"] .lumaHubHero .wideButton,
[data-theme="moonlit"] .lumaHubHero .wideButton {
  background: linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 70%, white), var(--luma-accent));
  color: var(--luma-shell);
}

/* ================================================================
   Structure A — Daily companion IA
   ================================================================ */

#trackSegmentBar {
  display: none !important;
}

.trackSubTabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--luma-ai-border);
}

.trackSubTabs button[role="tab"] {
  flex: 1;
  min-height: 40px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--luma-on-glass-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.trackSubTabs button[role="tab"].active {
  background: rgba(255, 255, 255, 0.96);
  color: var(--luma-on-light-surface-heading);
  box-shadow: 0 6px 18px rgba(42, 30, 38, 0.1);
}

.trackSubTabs .trackHomeBtn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  min-height: 40px;
  margin-left: 2px;
  border-radius: 50%;
  border: 1px solid var(--luma-ai-border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--luma-on-light-surface-heading);
  box-shadow: none;
}

[data-theme="dark"] .phoneShell .trackSubTabs,
[data-theme="moonlit"] .phoneShell .trackSubTabs {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .phoneShell .trackSubTabs button,
[data-theme="moonlit"] .phoneShell .trackSubTabs button {
  color: var(--luma-on-glass-muted);
}

[data-theme="dark"] .phoneShell .trackSubTabs button.active,
[data-theme="moonlit"] .phoneShell .trackSubTabs button.active {
  background: rgba(255, 255, 255, 0.94);
  color: var(--luma-on-light-surface-heading);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.trackPanel[hidden] {
  display: none !important;
}

.homePrimaryAction {
  margin: 0 0 14px;
}

.homePrimaryActionBtn {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.homeTrustCard {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(183, 119, 149, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 248, 252, 0.94), rgba(239, 250, 247, 0.82)),
    var(--luma-glass-surface);
  box-shadow: 0 18px 42px rgba(116, 60, 101, 0.11);
}

.homeTrustCard h2 {
  margin: 4px 0 7px;
  font-size: 1.12rem;
  line-height: 1.15;
  color: var(--luma-text-heading);
}

.homeTrustCard p:not(.label) {
  margin: 0;
  color: var(--luma-text-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
}

.homeTrustAction {
  margin-top: 12px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #4a3040;
  background: linear-gradient(135deg, #f0b8cc, #e8a8bc 55%, #e098b0);
  font: 800 0.9rem/1 var(--font-sans);
  box-shadow: 0 12px 24px rgba(220, 140, 170, 0.28);
}

.homeTrustCard[data-trust="confirmed"] {
  border-color: rgba(31, 111, 105, 0.24);
  background: linear-gradient(135deg, rgba(239, 250, 247, 0.96), rgba(255, 249, 252, 0.88));
}

.homeTrustCard[data-trust="low"] {
  border-color: rgba(168, 73, 79, 0.24);
  background: linear-gradient(135deg, rgba(255, 243, 243, 0.96), rgba(255, 250, 252, 0.88));
}

body.pregnancyFocusMode #todayScreen .homeTrustCard {
  width: 100%;
  min-height: clamp(300px, 39vh, 410px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 22px 24px 24px;
  border-radius: 34px;
  border-color: rgba(232, 168, 188, 0.18);
  background:
    radial-gradient(ellipse 86% 78% at 82% 8%, rgba(232, 168, 188, 0.35), transparent 62%),
    radial-gradient(ellipse 74% 64% at 8% 100%, rgba(255, 255, 255, 0.62), transparent 70%),
    linear-gradient(145deg, rgba(255, 241, 248, 0.98), rgba(249, 223, 235, 0.94));
  color: #4a3040;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 24px 48px rgba(177, 88, 128, 0.14);
}

body.pregnancyFocusMode #todayScreen .homeTrustCard .label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #6f5262;
  letter-spacing: 0;
  text-transform: none;
}

body.pregnancyFocusMode #todayScreen .homeTrustBrand {
  font-family: var(--r-display, serif);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #b05278;
}

body.pregnancyFocusMode #todayScreen .homeTrustMoon {
  display: block;
  margin-top: 6px;
  color: #6f5262;
  font-size: 1.1rem;
  line-height: 0.8;
}

body.pregnancyFocusMode #todayScreen .homeTrustEyebrow {
  display: block;
  max-width: 31ch;
  color: #7a5b6b;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.38;
  text-transform: uppercase;
}

body.pregnancyFocusMode #todayScreen .homeTrustCard h2 {
  display: grid;
  gap: 0.1em;
  margin: clamp(18px, 3.8vh, 38px) 0 0;
  color: #4a3040;
  font-family: var(--r-display, serif);
  font-style: italic;
  font-weight: 600;
  line-height: 1.02;
}

body.pregnancyFocusMode #todayScreen .homeTrustMain {
  display: block;
  font-size: clamp(2.05rem, 8.9vw, 2.8rem);
}

body.pregnancyFocusMode #todayScreen .homeTrustSub {
  display: block;
  max-width: 18ch;
  font-size: clamp(1rem, 4.2vw, 1.22rem);
  color: #4a3040;
}

body.pregnancyFocusMode #todayScreen .homeTrustCard p:not(.label) {
  max-width: 30ch;
  margin-top: 18px;
  padding-top: 0;
  color: #6f5262;
  font-size: 0.96rem;
  line-height: 1.42;
}

body.pregnancyFocusMode #todayScreen .homeTrustAction {
  align-self: flex-start;
  margin-top: auto;
  min-height: 44px;
  padding: 0 22px;
  font-size: 0.88rem;
  color: #2f4a42;
  background: linear-gradient(135deg, #d4f0e6, #c5e8dc 50%, #b4dccf);
  box-shadow: 0 12px 26px rgba(140, 190, 170, 0.28);
}

[data-theme="hearth"] body.pregnancyFocusMode .phoneShell #todayScreen .homeTrustCard {
  border-color: rgba(191, 112, 83, 0.22);
  background:
    radial-gradient(ellipse 88% 76% at 80% 8%, rgba(225, 154, 128, 0.28), transparent 60%),
    radial-gradient(ellipse 82% 70% at 8% 100%, rgba(250, 224, 199, 0.68), transparent 68%),
    linear-gradient(145deg, rgba(255, 247, 241, 0.96), rgba(249, 232, 220, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.48),
    0 18px 38px rgba(131, 73, 56, 0.13);
}

.homeLumaSnippet {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--luma-ai-border);
  background: var(--luma-glass-surface);
  box-shadow: var(--luma-glass-surface-shadow);
}

.homeLumaSnippet .label {
  margin-bottom: 6px;
}

.homeLumaSnippetText {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--luma-on-glass-muted);
}

.homeLumaSnippetAsk {
  font-size: 13px;
  font-weight: 600;
}

[data-theme="dark"] .phoneShell .homeTrustCard,
[data-theme="moonlit"] .phoneShell .homeTrustCard {
  background: linear-gradient(135deg, rgba(46, 38, 54, 0.96), rgba(37, 52, 63, 0.84));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .phoneShell .homeTrustCard :is(h2, p, .label),
[data-theme="moonlit"] .phoneShell .homeTrustCard :is(h2, p, .label) {
  color: var(--luma-on-dark-heading);
}

[data-theme="dark"] .phoneShell .homeTrustCard p:not(.label),
[data-theme="moonlit"] .phoneShell .homeTrustCard p:not(.label) {
  color: var(--luma-on-dark-muted);
}

[data-theme="dark"] body.pregnancyFocusMode .phoneShell #todayScreen .homeTrustCard,
[data-theme="moonlit"] body.pregnancyFocusMode .phoneShell #todayScreen .homeTrustCard {
  background:
    radial-gradient(ellipse 90% 80% at 82% 10%, rgba(230, 190, 211, 0.26), transparent 60%),
    radial-gradient(ellipse 85% 75% at 12% 100%, rgba(22, 37, 55, 0.64), transparent 68%),
    linear-gradient(145deg, rgba(92, 77, 99, 0.94), rgba(35, 43, 58, 0.96));
}

[data-theme="dark"] body.pregnancyFocusMode .phoneShell #todayScreen .homeTrustCard .homeTrustBrand,
[data-theme="moonlit"] body.pregnancyFocusMode .phoneShell #todayScreen .homeTrustCard .homeTrustBrand {
  color: #f3d9e7;
}

[data-theme="dark"] body.pregnancyFocusMode .phoneShell #todayScreen .homeTrustCard .homeTrustMoon,
[data-theme="moonlit"] body.pregnancyFocusMode .phoneShell #todayScreen .homeTrustCard .homeTrustMoon,
[data-theme="dark"] body.pregnancyFocusMode .phoneShell #todayScreen .homeTrustCard .homeTrustEyebrow,
[data-theme="moonlit"] body.pregnancyFocusMode .phoneShell #todayScreen .homeTrustCard .homeTrustEyebrow,
[data-theme="dark"] body.pregnancyFocusMode .phoneShell #todayScreen .homeTrustCard h2,
[data-theme="moonlit"] body.pregnancyFocusMode .phoneShell #todayScreen .homeTrustCard h2 {
  color: #f8eff8;
}

[data-theme="dark"] body.pregnancyFocusMode .phoneShell #todayScreen .homeTrustCard p:not(.label),
[data-theme="moonlit"] body.pregnancyFocusMode .phoneShell #todayScreen .homeTrustCard p:not(.label) {
  color: #d8d7ed;
}

.homeMoreZone {
  margin-top: 4px;
}

.lumaSupportDrawer,
.learnGuidedDrawer {
  margin: 12px 0 16px;
  border: 1px solid var(--luma-ai-border);
  border-radius: 26px;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(232, 168, 188, 0.18), transparent 60%),
    var(--luma-glass-surface);
  box-shadow: var(--luma-glass-surface-shadow);
  overflow: hidden;
}

.lumaSupportDrawer > summary,
.learnGuidedDrawer > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  color: var(--luma-text-heading);
}

.lumaSupportDrawer > summary::-webkit-details-marker,
.learnGuidedDrawer > summary::-webkit-details-marker {
  display: none;
}

.lumaSupportDrawer > summary b,
.learnGuidedDrawer > summary b {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
}

.lumaSupportDrawer > summary small,
.learnGuidedDrawer > summary small {
  display: block;
  margin-top: 4px;
  color: var(--luma-text-muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.lumaSupportDrawer > summary i,
.learnGuidedDrawer > summary i {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(116, 60, 101, 0.16);
  color: var(--luma-link);
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(67, 42, 58, 0.12);
}

.lumaSupportDrawer[open] > summary i,
.learnGuidedDrawer[open] > summary i {
  transform: rotate(45deg);
}

.lumaSupportDrawer > :not(summary),
.learnGuidedDrawer > :not(summary) {
  margin: 0 18px 16px;
}

[data-theme="dark"] .phoneShell :is(.lumaSupportDrawer, .learnGuidedDrawer),
[data-theme="moonlit"] .phoneShell :is(.lumaSupportDrawer, .learnGuidedDrawer) {
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(181, 202, 239, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .phoneShell :is(.lumaSupportDrawer, .learnGuidedDrawer) > summary,
[data-theme="moonlit"] .phoneShell :is(.lumaSupportDrawer, .learnGuidedDrawer) > summary,
[data-theme="dark"] .phoneShell :is(.lumaSupportDrawer, .learnGuidedDrawer) > summary b,
[data-theme="moonlit"] .phoneShell :is(.lumaSupportDrawer, .learnGuidedDrawer) > summary b {
  color: var(--luma-on-dark-heading);
}

[data-theme="dark"] .phoneShell :is(.lumaSupportDrawer, .learnGuidedDrawer) > summary small,
[data-theme="moonlit"] .phoneShell :is(.lumaSupportDrawer, .learnGuidedDrawer) > summary small {
  color: var(--luma-on-dark-muted);
}

#cycleTrackHero.trackHero--compact {
  display: none !important;
}

.homeMoreZone > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 4px 16px;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--luma-text-heading);
  border-bottom: 1px solid var(--luma-ai-border);
}

.homeMoreZone > summary::-webkit-details-marker {
  display: none;
}

.homeMoreZone > summary::after {
  content: "Show";
  float: right;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--luma-accent-text, var(--luma-link));
}

.homeMoreZone[open] > summary::after {
  content: "Hide";
}

.homeMoreZone > .cycleWeatherCard,
.homeMoreZone > .lumaBodyMapCard,
.homeMoreZone > .lumaReadCard,
.homeMoreZone > .homeTodayPlanCard,
.homeMoreZone > .homeInsightsCard,
.homeMoreZone > .homeCheckInCard,
.homeMoreZone > .homeAlertsCard {
  margin-top: 14px;
}

html[data-home-preview="clean"] #todayScreen > #homeFocusDeck {
  display: none !important;
}

.homeCleanupSupport {
  margin: 0 0 16px;
  border: 1px solid rgba(183, 119, 149, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(232, 168, 188, 0.16), transparent 62%),
    linear-gradient(135deg, rgba(255, 248, 252, 0.92), rgba(240, 250, 247, 0.84));
  box-shadow: 0 18px 42px rgba(116, 60, 101, 0.1);
  overflow: hidden;
}

.homeCleanupSupport > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
  padding: 18px 20px;
  color: var(--luma-text-heading);
}

.homeCleanupSupport > summary::-webkit-details-marker {
  display: none;
}

.homeCleanupSupport > summary em {
  display: block;
  margin-bottom: 5px;
  color: var(--luma-link);
  font-family: var(--luma-font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 600;
}

.homeCleanupSupport > summary strong {
  display: block;
  color: var(--luma-text-secondary);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.homeCleanupSupport > summary i {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(116, 60, 101, 0.14);
  color: var(--plum);
  font: 900 1.3rem/1 var(--font-sans);
  box-shadow: 0 12px 28px rgba(67, 42, 58, 0.12);
}

.homeCleanupSupport[open] > summary i {
  transform: rotate(45deg);
}

.homeCleanupSupportBody {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.homeCleanupSupportBody .homeTrustCard,
body.pregnancyFocusMode #todayScreen .homeCleanupSupportBody .homeTrustCard {
  min-height: 0 !important;
  margin: 0;
  padding: 16px 18px;
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(116, 60, 101, 0.09);
}

body.pregnancyFocusMode #todayScreen .homeCleanupSupportBody .homeTrustCard .label {
  gap: 5px;
}

body.pregnancyFocusMode #todayScreen .homeCleanupSupportBody .homeTrustBrand {
  font-size: 1rem;
}

body.pregnancyFocusMode #todayScreen .homeCleanupSupportBody .homeTrustMoon {
  display: none;
}

body.pregnancyFocusMode #todayScreen .homeCleanupSupportBody .homeTrustEyebrow {
  max-width: none;
  font-size: 0.65rem;
}

body.pregnancyFocusMode #todayScreen .homeCleanupSupportBody .homeTrustCard h2 {
  margin: 10px 0 0;
}

body.pregnancyFocusMode #todayScreen .homeCleanupSupportBody .homeTrustMain {
  font-size: clamp(1.7rem, 6.4vw, 2.2rem);
}

body.pregnancyFocusMode #todayScreen .homeCleanupSupportBody .homeTrustSub {
  font-size: clamp(1rem, 3.8vw, 1.2rem);
}

body.pregnancyFocusMode #todayScreen .homeCleanupSupportBody .homeTrustCard p:not(.label) {
  margin-top: 8px;
  font-size: 0.86rem;
}

.homeCleanupSupportBody .homeLumaSnippet,
.homeCleanupSupportBody .homeRemindersSurface,
.homeRecentPatternMini {
  margin: 0;
  border-radius: 22px;
  box-shadow: none;
}

.homeRecentPatternMini {
  padding: 16px 18px;
  border: 1px solid var(--luma-ai-border);
  background: rgba(255, 255, 255, 0.55);
}

.homeRecentPatternMini strong {
  display: block;
  margin: 4px 0 6px;
  color: var(--luma-text-heading);
  font-size: 1rem;
  line-height: 1.2;
}

.homeRecentPatternMini p:not(.label) {
  margin: 0 0 8px;
  color: var(--luma-text-secondary);
  font-size: 0.9rem;
  line-height: 1.45;
}

.homeRecentPatternMini[hidden] {
  display: none !important;
}

html[data-home-preview="clean"] #todayScreen .homeMoreZone--cleanPreview {
  margin-top: 2px;
}

html[data-home-preview="clean"] #todayScreen .homeMoreZone--cleanPreview > #lumaReadCard,
html[data-home-preview="clean"] #todayScreen .homeMoreZone--cleanPreview > #homeInsightsSection {
  display: none !important;
}

html[data-home-preview="clean"] #todayScreen .homeMoreZone--cleanPreview > summary {
  border-bottom: 0;
}

html[data-ia-mode="declutter"] #todayScreen .homeCleanupSupportBody #homeLumaSnippet,
html[data-ia-mode="declutter"] #todayScreen .homeMoreZone,
html[data-ia-mode="declutter"] #careScreen .careLumaShortcuts,
html[data-ia-mode="declutter"] #careScreen .learnGuidedDrawer,
html[data-ia-mode="declutter"] #careScreen #carePhaseIntro,
html[data-ia-mode="declutter"] #lumaHubScreen .lumaSupportDrawer--values,
html[data-ia-mode="declutter"] body.pregnancyFocusMode #todayScreen .pregnancyAskCards {
  display: none !important;
}

html[data-ia-mode="declutter"] #todayScreen #homeCleanupSupport > summary em::after {
  content: "";
}

html[data-ia-mode="declutter"] #todayScreen #homeCleanupSupportBody {
  gap: 10px;
}

html[data-ia-mode="declutter"] #todayScreen .homeRemindersSurface .homeAlertsManageLink {
  display: none !important;
}

html[data-ia-mode="declutter"] #todayScreen .homeRemindersSurface {
  border-radius: 22px;
}

html[data-ia-mode="declutter"] #lumaHubScreen #lumaHubInsightsDetails {
  margin-top: 14px;
}

html[data-theme="dark"][data-ia-mode="declutter"] #todayScreen #homeCleanupSupport > summary em::after,
html[data-theme="moonlit"][data-ia-mode="declutter"] #todayScreen #homeCleanupSupport > summary em::after {
  color: var(--luma-on-dark-muted);
}

[data-theme="dark"] .phoneShell .homeCleanupSupport,
[data-theme="moonlit"] .phoneShell .homeCleanupSupport {
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(181, 202, 239, 0.13), transparent 62%),
    linear-gradient(135deg, rgba(50, 43, 64, 0.92), rgba(34, 42, 60, 0.86));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

[data-theme="dark"] .phoneShell .homeCleanupSupport > summary,
[data-theme="moonlit"] .phoneShell .homeCleanupSupport > summary,
[data-theme="dark"] .phoneShell .homeCleanupSupport > summary em,
[data-theme="moonlit"] .phoneShell .homeCleanupSupport > summary em {
  color: var(--luma-on-dark-heading);
}

[data-theme="dark"] .phoneShell .homeCleanupSupport > summary strong,
[data-theme="moonlit"] .phoneShell .homeCleanupSupport > summary strong {
  color: var(--luma-on-dark-muted);
}

[data-theme="dark"] .phoneShell .homeCleanupSupport > summary i,
[data-theme="moonlit"] .phoneShell .homeCleanupSupport > summary i {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--luma-on-dark-heading);
}

.ttcSignalPriority {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(27, 123, 116, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(ellipse 80% 80% at 6% 0%, rgba(207, 236, 226, 0.75), transparent 62%),
    linear-gradient(140deg, rgba(255, 253, 250, 0.96), rgba(250, 241, 247, 0.9));
  box-shadow: 0 16px 36px rgba(74, 48, 64, 0.08);
}

.ttcSignalPriority[hidden] {
  display: none !important;
}

.ttcSignalPriority h3 {
  margin: 5px 0 6px;
  color: var(--luma-text-heading);
  font-size: clamp(1.25rem, 4.8vw, 1.65rem);
  line-height: 1.1;
}

.ttcSignalPriority p:not(.label) {
  margin: 0;
  color: var(--luma-text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
}

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

.ttcSignalActions .wideButton {
  min-height: 50px;
  margin: 0;
  font-size: 0.95rem;
}

[data-theme="dark"] .ttcSignalPriority,
[data-theme="moonlit"] .ttcSignalPriority {
  background:
    radial-gradient(ellipse 80% 80% at 8% 0%, rgba(157, 196, 223, 0.14), transparent 62%),
    linear-gradient(145deg, rgba(45, 53, 73, 0.92), rgba(38, 34, 50, 0.9));
  border-color: rgba(205, 229, 220, 0.2);
}

[data-theme="dark"] .ttcSignalPriority h3,
[data-theme="moonlit"] .ttcSignalPriority h3 {
  color: var(--luma-on-dark-heading);
}

[data-theme="dark"] .ttcSignalPriority p:not(.label),
[data-theme="moonlit"] .ttcSignalPriority p:not(.label) {
  color: var(--luma-on-dark-muted);
}

[data-theme="dark"] .phoneShell .homeRecentPatternMini,
[data-theme="moonlit"] .phoneShell .homeRecentPatternMini {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
}

[data-theme="dark"] .phoneShell .homeRecentPatternMini strong,
[data-theme="moonlit"] .phoneShell .homeRecentPatternMini strong {
  color: var(--luma-on-dark-heading);
}

[data-theme="dark"] .phoneShell .homeRecentPatternMini p:not(.label),
[data-theme="moonlit"] .phoneShell .homeRecentPatternMini p:not(.label) {
  color: var(--luma-on-dark-muted);
}

.progressiveHubDetails > summary,
.settingsListDetails > summary {
  list-style: none;
  cursor: pointer;
}

.progressiveHubDetails > summary::-webkit-details-marker,
.settingsListDetails > summary::-webkit-details-marker {
  display: none;
}

.progressiveHubDetails > summary::after,
.settingsListDetails > summary::after {
  content: "";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  align-self: flex-start;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  margin-left: auto;
  margin-top: 4px;
  border-radius: 999px;
  color: var(--luma-accent-text, var(--plum, #7a3f6a));
  background: color-mix(in srgb, var(--luma-surface-card, #fff) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--luma-accent, #a85878) 18%, transparent);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--luma-accent, #a85878) 8%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a3f6a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  font: 0/0 var(--luma-font-sans, sans-serif);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.progressiveHubDetails[open] > summary::after,
.settingsListDetails[open] > summary::after {
  content: "";
  transform: rotate(180deg);
}

.settingsListDetails > summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  column-gap: 10px;
  min-height: 68px;
  padding: 10px 16px;
}

.settingsListDetails > summary h2,
.settingsListDetails > summary p {
  grid-column: 2;
  margin: 0;
  min-width: 0;
}

.settingsListDetails > summary h2 {
  color: var(--mauve);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.6vw, 1.72rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}

.settingsListDetails > summary p {
  margin-top: 5px;
  max-width: 42ch;
  line-height: 1.38;
}

.settingsListDetails > summary::after {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: center;
  align-self: center;
  margin-left: 0;
}

.progressiveHubDetails:not([open]),
.settingsListDetails:not([open]) {
  padding-bottom: 6px;
}

.settingsListDetails:not([open]) > summary {
  min-height: 58px;
  padding-block: 7px;
}

.settingsListDetails:not([open]) > summary h2 {
  grid-column: 2;
  align-self: center;
  text-align: center;
}

.settingsListDetails:not([open]) > summary p {
  display: none;
}

.settingsListDetails:not([open]) > summary::after {
  grid-row: 1;
}

[data-theme="dark"] .phoneShell .progressiveHubDetails > summary::after,
[data-theme="moonlit"] .phoneShell .progressiveHubDetails > summary::after,
[data-theme="dark"] .phoneShell .settingsListDetails > summary::after,
[data-theme="moonlit"] .phoneShell .settingsListDetails > summary::after {
  color: #f7eefb;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

#trackLogPanel .trackHero {
  margin-bottom: 12px;
}

.structureAHidden {
  display: none !important;
}

/* ================================================================
   Clearly Better — anti-Flo positioning
   ================================================================ */

.homePrimaryActionHint {
  margin: 10px 4px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--luma-on-glass-muted);
  text-align: center;
}

.homeModeBanner--healing {
  border-color: rgba(122, 63, 106, 0.22);
  background: linear-gradient(135deg, rgba(255, 251, 253, 0.96), rgba(245, 236, 242, 0.92));
}

body.luma-quiet-mode .homeModeBanner--tww,
body.luma-quiet-mode .homeModeBanner--irregular {
  display: none !important;
}

body.luma-quiet-mode .cycleWeatherBadge[data-phase="fertile"],
body.luma-quiet-mode .cycleWeatherBadge[data-phase="ovulation"] {
  opacity: 0.72;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LUMA NEO — Futuristic atmosphere, holographic depth, pregnancy cinema
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --luma-neo-font: var(--luma-font-sans);
  --luma-neo-teal: #1b7b74;
  --luma-neo-teal-glow: rgba(27, 123, 116, 0.55);
  --luma-neo-magenta-glow: rgba(126, 63, 106, 0.42);
  --luma-neo-holo-a: rgba(27, 123, 116, 0.65);
  --luma-neo-holo-b: rgba(168, 130, 154, 0.55);
  --luma-neo-holo-c: rgba(223, 241, 235, 0.75);
}

@keyframes lumaNeoAuroraDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.88;
  }
  33% {
    transform: translate3d(2%, -1.5%, 0) scale(1.03);
    opacity: 1;
  }
  66% {
    transform: translate3d(-1.5%, 2%, 0) scale(0.98);
    opacity: 0.92;
  }
}

@keyframes lumaNeoBorderShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes lumaNeoPulseGlow {
  0%, 100% { opacity: 0.55; filter: blur(0); }
  50% { opacity: 1; filter: blur(1px); }
}

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

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

@keyframes lumaNeoSweep {
  0% { transform: translateX(-120%) skewX(-12deg); opacity: 0; }
  15% { opacity: 0.7; }
  85% { opacity: 0.7; }
  100% { transform: translateX(120%) skewX(-12deg); opacity: 0; }
}

@keyframes lumaNeoShimmerText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell::before {
  animation: lumaNeoAuroraDrift 18s ease-in-out infinite;
}

.phoneShell {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.48) inset,
    0 28px 70px rgba(120, 90, 108, 0.18),
    0 0 120px var(--luma-ai-glow-soft),
    0 0 220px rgba(27, 123, 116, 0.06);
}

.label,
.homeGreetingEyebrow,
.pregnancyWeekSectionLabel {
  font-family: var(--luma-neo-font);
  letter-spacing: 0.1em;
}

.tabBar {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.42) inset,
    0 20px 44px rgba(58, 39, 34, 0.14),
    0 0 48px var(--luma-glow),
    0 0 80px rgba(27, 123, 116, 0.08);
}

.tabBar button.active {
  background: linear-gradient(135deg, #1b7b74 0%, #7e3f6a 48%, #a86880 100%);
  background-size: 200% 200%;
  animation: lumaNeoBorderShift 8s ease infinite;
  box-shadow:
    0 8px 24px rgba(90, 47, 82, 0.32),
    0 0 28px rgba(27, 123, 116, 0.22);
}

.lumaReadCard,
.pregnancyWeekCard,
.pregnancyApptCard,
.unifiedTrackLogPanel,
.homeDaySummary {
  position: relative;
  isolation: isolate;
}

.lumaReadCard::after,
.pregnancyWeekCard::after,
.pregnancyApptCard::after,
.unifiedTrackLogPanel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65),
    rgba(27, 123, 116, 0.28),
    rgba(168, 130, 154, 0.32),
    rgba(255, 255, 255, 0.5)
  );
  background-size: 300% 300%;
  animation: lumaNeoBorderShift 12s ease infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
}

.pregnancyWeekCard > *,
.pregnancyApptCard > *,
.unifiedTrackLogPanel > * {
  position: relative;
  z-index: 1;
}

/* Pregnancy focus — cinematic home */
body.pregnancyFocusMode .phoneShell::before {
  background:
    radial-gradient(ellipse 110% 90% at 0% -8%, rgba(27, 123, 116, 0.28), transparent 58%),
    radial-gradient(ellipse 90% 75% at 100% 5%, rgba(168, 130, 154, 0.24), transparent 52%),
    radial-gradient(ellipse 80% 60% at 50% 108%, rgba(126, 63, 106, 0.18), transparent 48%);
  opacity: 1;
}

/* Full-bleed photo + calm stacked copy (no 11ch scramble) */
body.pregnancyFocusMode #todayScreen > .homeDaySummary {
  padding: 0 0 16px;
  margin-bottom: 6px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(223, 241, 235, 0.22));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45) inset,
    0 12px 32px rgba(73, 47, 58, 0.08);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

body.pregnancyFocusMode #todayScreen > .homeDaySummary .homeAtmospherePreview {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 14px;
  min-height: clamp(168px, 44vw, 228px);
  height: clamp(168px, 44vw, 228px);
  aspect-ratio: auto;
  border-radius: 22px 22px 0 0;
  box-shadow: none;
}

body.pregnancyFocusMode #todayScreen > .homeDaySummary .homeAtmospherePreview img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 40%;
}

body.pregnancyFocusMode #todayScreen > .homeDaySummary .homeHeroPhasePill {
  display: inline-flex;
  width: auto;
  max-width: calc(100% - 32px);
  margin: 0 16px 10px;
  padding: 8px 14px 8px 12px;
  font-family: var(--luma-neo-font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(27, 123, 116, 0.28);
  background: linear-gradient(135deg, rgba(27, 123, 116, 0.14), rgba(126, 63, 106, 0.12));
  color: var(--luma-text-heading);
  box-shadow: none;
}

body.pregnancyFocusMode #todayScreen > .homeDaySummary #todayHeadline {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 16px 8px;
  text-align: left;
  font-size: clamp(1.28rem, 5vw, 1.55rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

body.pregnancyFocusMode #todayScreen > .homeDaySummary #todayPhaseLine {
  margin: 0;
  padding: 0 16px;
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

body.pregnancyFocusMode .homePregnancyHub {
  gap: 18px;
}

body.pregnancyFocusMode .pregnancyWeekCard {
  padding: 0;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.pregnancyFocusMode .pregnancyWeekCard::before {
  display: none;
}

body.pregnancyFocusMode .pregnancyWeekCard::after {
  display: none;
}

body.pregnancyFocusMode .pregnancyWeekHero {
  position: relative;
  gap: 14px;
  padding: 28px 20px 22px;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 90% at 50% -20%, rgba(223, 241, 235, 0.72), transparent 55%),
    radial-gradient(ellipse 80% 70% at 100% 80%, rgba(168, 130, 154, 0.22), transparent 58%),
    linear-gradient(168deg, rgba(255, 253, 250, 0.97) 0%, rgba(250, 238, 243, 0.88) 52%, rgba(232, 245, 242, 0.82) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 28px 64px rgba(73, 47, 58, 0.16),
    0 0 80px rgba(27, 123, 116, 0.12);
}

body.pregnancyFocusMode .pregnancyWeekBody {
  padding: 22px;
  border-radius: 32px;
  background: var(--luma-glass-surface);
  border: 1px solid var(--luma-ai-border);
  box-shadow: var(--luma-glass-surface-shadow);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
}

/* Neo backdrop — grid, orbits, light sweep */
.pregnancyNeoBackdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.pregnancyNeoGrid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(27, 123, 116, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 123, 116, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 15%, transparent 72%);
  opacity: 0.85;
}

.pregnancyNeoOrbit {
  position: absolute;
  left: 50%;
  top: 42%;
  border-radius: 50%;
  border: 1px solid transparent;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pregnancyNeoOrbit--1 {
  width: 220px;
  height: 220px;
  border-color: rgba(27, 123, 116, 0.22);
  border-top-color: rgba(27, 123, 116, 0.55);
  border-right-color: rgba(168, 130, 154, 0.35);
  animation: lumaNeoOrbitSpin 24s linear infinite;
  box-shadow: 0 0 24px rgba(27, 123, 116, 0.12);
}

.pregnancyNeoOrbit--2 {
  width: 178px;
  height: 178px;
  border-color: rgba(126, 63, 106, 0.16);
  border-bottom-color: rgba(126, 63, 106, 0.42);
  animation: lumaNeoOrbitSpinReverse 18s linear infinite;
}

.pregnancyNeoSweep {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.pregnancyNeoSweep::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 45%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 42%,
    rgba(223, 241, 235, 0.35) 50%,
    rgba(255, 255, 255, 0.08) 58%,
    transparent 100%
  );
  animation: lumaNeoSweep 7s ease-in-out infinite;
}

.pregnancyNeoBadge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--luma-neo-font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--luma-neo-teal);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(27, 123, 116, 0.28);
  box-shadow: 0 0 22px rgba(27, 123, 116, 0.18);
}

.pregnancyNeoBadge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--luma-neo-teal);
  box-shadow: 0 0 10px var(--luma-neo-teal-glow);
  animation: lumaNeoPulseGlow 2.2s ease-in-out infinite;
}

.pregnancyNeoMilestone,
.pregnancyWeekFruitCompare {
  position: relative;
  z-index: 2;
  margin: 2px 0 0;
  max-width: 18em;
  font-family: var(--luma-font-display);
  font-size: 1.28rem;
  font-weight: 700;
  font-variation-settings: "SOFT" 85;
  line-height: 1.22;
  letter-spacing: -0.02em;
  background: linear-gradient(
    120deg,
    #2a2226 0%,
    #1b7b74 35%,
    #7e3f6a 68%,
    #2a2226 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lumaNeoShimmerText 10s ease infinite;
}

body.pregnancyFocusMode .pregnancyWombVisual {
  position: relative;
  z-index: 2;
  width: min(100%, 228px);
  filter: drop-shadow(0 16px 36px rgba(73, 47, 58, 0.2));
}

body.pregnancyFocusMode .pregnancyWombShell {
  box-shadow:
    inset 0 -24px 48px rgba(126, 63, 106, 0.18),
    inset 0 12px 32px rgba(255, 255, 255, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset,
    0 24px 56px rgba(73, 47, 58, 0.2),
    0 0 48px rgba(27, 123, 116, calc(var(--wombGlow) * 0.28));
}

body.pregnancyFocusMode .pregnancyWeekNumber {
  font-family: var(--luma-neo-font);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(223, 241, 235, 0.88));
  border: 1px solid rgba(27, 123, 116, 0.22);
  box-shadow:
    0 8px 22px rgba(73, 47, 58, 0.14),
    0 0 18px rgba(27, 123, 116, 0.15);
}

body.pregnancyFocusMode .pregnancyWeekSizeChip {
  position: relative;
  z-index: 2;
  font-family: var(--luma-neo-font);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--luma-neo-teal);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(223, 241, 235, 0.55);
  border: 1px solid rgba(27, 123, 116, 0.18);
}

body.pregnancyFocusMode .pregnancyMetaRow {
  padding: 0 4px;
}

body.pregnancyFocusMode .pregnancyDueDateChip,
body.pregnancyFocusMode .pregnancyTrimesterProgress {
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 253, 250, 0.92), rgba(250, 238, 243, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(126, 63, 106, 0.08) inset,
    0 14px 32px rgba(73, 47, 58, 0.08);
}

body.pregnancyFocusMode .pregnancyDueDateChip {
  position: relative;
  z-index: 4;
  pointer-events: auto;
  cursor: pointer;
}

body.pregnancyFocusMode .pregnancyTrimesterBar span {
  background: linear-gradient(90deg, #1b7b74, #7e3f6a);
  box-shadow: 0 0 16px rgba(27, 123, 116, 0.35);
}

body.pregnancyFocusMode .pregnancyWeekNav {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(27, 123, 116, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.pregnancyFocusMode .pregnancyWeekIntelligence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 14px;
}

body.pregnancyFocusMode .pregnancyWeekCareNote,
body.pregnancyFocusMode .pregnancyWeekVisitNote {
  position: relative;
  padding: 16px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 8%, rgba(223, 241, 235, 0.68), transparent 42%),
    linear-gradient(145deg, rgba(255, 253, 250, 0.92), rgba(250, 238, 243, 0.74));
  border: 1px solid rgba(126, 63, 106, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.52) inset,
    0 12px 28px rgba(73, 47, 58, 0.08);
}

body.pregnancyFocusMode .pregnancyWeekCareNote::after,
body.pregnancyFocusMode .pregnancyWeekVisitNote::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 123, 116, 0.18), transparent 66%);
  pointer-events: none;
}

body.pregnancyFocusMode .pregnancyWeekIntelligence p:not(.label) {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.42;
  color: var(--luma-text);
}

body.pregnancyFocusMode .pregnancyAskCards {
  margin: 4px 0 16px;
  padding: 16px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(223, 241, 235, 0.28));
  border: 1px solid rgba(27, 123, 116, 0.12);
  box-shadow: 0 14px 34px rgba(73, 47, 58, 0.07);
}

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

body.pregnancyFocusMode .pregnancyAskGrid button {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(27, 123, 116, 0.18);
  border-radius: 18px;
  color: #124f4a;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.92), transparent 48%),
    linear-gradient(135deg, rgba(223, 241, 235, 0.72), rgba(255, 253, 250, 0.82));
  box-shadow:
    0 10px 24px rgba(27, 123, 116, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.42) inset;
  font-family: var(--luma-neo-font);
  font-weight: 800;
  text-align: left;
}

body.pregnancyFocusMode .pregnancyAskGrid button span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.pregnancyFocusMode .pregnancyAskGrid button span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1b7b74;
  box-shadow: 0 0 12px rgba(27, 123, 116, 0.45);
}

@media (max-width: 520px) {
  body.pregnancyFocusMode .pregnancyWeekIntelligence,
  body.pregnancyFocusMode .pregnancyAskGrid {
    grid-template-columns: 1fr;
  }
}

body.pregnancyFocusMode .pregnancyWeekNavBtn {
  background: linear-gradient(135deg, rgba(27, 123, 116, 0.14), rgba(126, 63, 106, 0.12));
  color: #1b7b74;
}

body.pregnancyFocusMode .pregnancyWeekBody h2 {
  font-family: var(--luma-font-display);
  font-size: 1.42rem;
}

body.pregnancyFocusMode .pregnancyWeekTip {
  background: linear-gradient(135deg, rgba(223, 241, 235, 0.72), rgba(255, 253, 250, 0.88));
  border-left-color: #1b7b74;
  box-shadow: 0 8px 24px rgba(27, 123, 116, 0.08);
}

body.pregnancyFocusMode .pregnancyWeekActions button:first-child {
  background: linear-gradient(135deg, #1b7b74 0%, #156860 100%);
  box-shadow: 0 10px 28px rgba(27, 123, 116, 0.28);
}

body.pregnancyFocusMode .pregnancyWeekActions button:last-child {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(126, 63, 106, 0.14);
  color: var(--luma-link);
}

body.pregnancyFocusMode .pregnancyApptCard {
  border-radius: 32px;
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(223, 241, 235, 0.38), transparent 58%),
    var(--luma-glass-surface);
}

body.pregnancyFocusMode .todayTrackingModeChip {
  font-family: var(--luma-neo-font);
  border-color: rgba(27, 123, 116, 0.28);
  background: linear-gradient(135deg, rgba(223, 241, 235, 0.55), rgba(255, 253, 250, 0.92));
  box-shadow: 0 0 24px rgba(27, 123, 116, 0.12);
}

body.pregnancyFocusMode .tabBar button.active {
  background: linear-gradient(135deg, #1b7b74 0%, #2a9a90 38%, #7e3f6a 100%);
}

body.pregnancyFocusMode .unifiedTrackLogPanel {
  border-radius: 32px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(223, 241, 235, 0.32), transparent 55%),
    var(--luma-glass-surface);
}

body.pregnancyFocusMode .homeModeBanner--pregnancy {
  border-radius: 22px;
  border-color: rgba(27, 123, 116, 0.22);
  background: linear-gradient(135deg, rgba(223, 241, 235, 0.55), rgba(255, 253, 250, 0.92));
  box-shadow: 0 0 28px rgba(27, 123, 116, 0.1);
}

/* Global home polish */
#todayScreen .homeGreetingEyebrow {
  font-family: var(--luma-neo-font);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.homePrimaryActionBtn {
  background: linear-gradient(135deg, #f0c0d0 0%, #e8a8bc 45%, #d888a4 100%);
  box-shadow:
    0 12px 32px rgba(90, 47, 82, 0.28),
    0 0 40px rgba(168, 130, 154, 0.12);
}

body.pregnancyFocusMode .homePrimaryActionBtn {
  background: linear-gradient(135deg, #1b7b74 0%, #188f86 42%, #7e3f6a 100%);
  box-shadow:
    0 12px 32px rgba(27, 123, 116, 0.28),
    0 0 40px rgba(27, 123, 116, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell::before,
  .tabBar button.active,
  .pregnancyNeoOrbit,
  .pregnancyNeoSweep::after,
  .pregnancyNeoMilestone,
  .pregnancyWeekFruitCompare,
  .lumaReadCard::after,
  .pregnancyWeekCard::after,
  .pregnancyApptCard::after,
  .unifiedTrackLogPanel::after {
    animation: none !important;
  }
}

[data-theme="dark"] body.pregnancyFocusMode .pregnancyWeekHero,
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyWeekHero {
  background:
    radial-gradient(ellipse 100% 80% at 50% -15%, rgba(27, 123, 116, 0.22), transparent 55%),
    linear-gradient(168deg, rgba(38, 28, 36, 0.96) 0%, rgba(28, 22, 30, 0.92) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 28px 64px rgba(0, 0, 0, 0.35),
    0 0 60px rgba(27, 123, 116, 0.08);
}

[data-theme="dark"] .pregnancyNeoMilestone,
[data-theme="dark"] .pregnancyWeekFruitCompare,
[data-theme="moonlit"] .pregnancyNeoMilestone,
[data-theme="moonlit"] .pregnancyWeekFruitCompare {
  background: linear-gradient(120deg, #f8fbff 0%, #8fd4cc 40%, #d8a6c8 70%, #f8fbff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="dark"] body.pregnancyFocusMode #todayScreen > .homeDaySummary,
[data-theme="moonlit"] body.pregnancyFocusMode #todayScreen > .homeDaySummary {
  background: linear-gradient(135deg, rgba(38, 28, 36, 0.88), rgba(28, 22, 30, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 16px 36px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] body.pregnancyFocusMode #todayScreen > .homeDaySummary .homeHeroPhasePill,
[data-theme="moonlit"] body.pregnancyFocusMode #todayScreen > .homeDaySummary .homeHeroPhasePill {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f7f0f4;
  box-shadow: none;
}

[data-theme="dark"] body.pregnancyFocusMode #todayScreen > .homeDaySummary #todayHeadline,
[data-theme="moonlit"] body.pregnancyFocusMode #todayScreen > .homeDaySummary #todayHeadline {
  color: #f7f0f4;
}

[data-theme="dark"] body.pregnancyFocusMode #todayScreen > .homeDaySummary #todayPhaseLine,
[data-theme="moonlit"] body.pregnancyFocusMode #todayScreen > .homeDaySummary #todayPhaseLine {
  color: rgba(247, 240, 244, 0.78);
}

[data-theme="dark"] body.pregnancyFocusMode #todayScreen > .homeDaySummary .homeAtmospherePreview,
[data-theme="moonlit"] body.pregnancyFocusMode #todayScreen > .homeDaySummary .homeAtmospherePreview {
  background: #1a1418;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* Moonlit — cool night palette (override shared dark mauve for this theme) */
[data-theme="moonlit"] body.pregnancyFocusMode #todayScreen > .homeDaySummary {
  background:
    radial-gradient(ellipse 90% 70% at 12% 0%, rgba(123, 143, 201, 0.22), transparent 55%),
    linear-gradient(145deg, rgba(52, 63, 88, 0.96) 0%, rgba(42, 50, 72, 0.94) 52%, rgba(34, 40, 56, 0.92) 100%);
  border-color: rgba(201, 136, 90, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 18px 40px rgba(0, 0, 0, 0.34);
}

[data-theme="moonlit"] body.pregnancyFocusMode #todayScreen > .homeDaySummary .homeAtmospherePreview {
  display: block !important;
  background: #1c2436;
  box-shadow:
    inset 0 0 0 1px rgba(181, 202, 239, 0.16),
    0 14px 32px rgba(0, 0, 0, 0.28);
}

[data-theme="moonlit"] body.pregnancyFocusMode #todayScreen > .homeDaySummary #todayHeadline {
  display: block !important;
  color: #f4f6fb !important;
}

[data-theme="moonlit"] body.pregnancyFocusMode #todayScreen > .homeDaySummary .homeHeroPhasePill {
  background: rgba(201, 136, 90, 0.2) !important;
  border-color: rgba(240, 220, 200, 0.28) !important;
  color: #f0dcc8 !important;
  box-shadow: none !important;
}

/* Type hero: no filled phase box on moonlit (keep text-only like other themes) */
[data-theme="moonlit"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeHeroPhasePill,
[data-theme="moonlit"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeHeroPhasePill.infoPill--readonly {
  background: transparent !important;
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: var(--home-type-muted, #ddd4f0) !important;
}

[data-theme="moonlit"] body.pregnancyFocusMode #todayScreen > .homeDaySummary #todayPhaseLine,
[data-theme="moonlit"] #todayScreen .homeDaySummary #todayPhaseLine {
  color: #c5d2ea !important;
}

[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyWeekHero {
  background:
    radial-gradient(ellipse 100% 80% at 50% -15%, rgba(123, 143, 201, 0.28), transparent 55%),
    linear-gradient(168deg, rgba(42, 50, 72, 0.98) 0%, rgba(28, 34, 50, 0.96) 100%) !important;
  box-shadow:
    0 0 0 1px rgba(181, 202, 239, 0.14) inset,
    0 28px 64px rgba(0, 0, 0, 0.38),
    0 0 60px rgba(123, 143, 201, 0.1);
}

[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyNeoBadge {
  background: rgba(201, 136, 90, 0.22);
  color: #f0dcc8;
  border-color: rgba(240, 220, 200, 0.24);
}

[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyWeekNumber,
[data-theme="moonlit"] .phoneShell .pregnancyWeekNumber {
  color: #f4f6fb;
  background: rgba(28, 34, 50, 0.72);
  border-color: rgba(181, 202, 239, 0.28);
}

[data-theme="moonlit"] .phoneShell .pregnancyDueDateChip,
[data-theme="moonlit"] .phoneShell .pregnancyDueDateChip .label,
[data-theme="moonlit"] .phoneShell .pregnancyDueDateChip strong,
[data-theme="moonlit"] .phoneShell .pregnancyDaysUntil,
[data-theme="moonlit"] .phoneShell .pregnancyDueDateEditHint,
[data-theme="moonlit"] .phoneShell .pregnancyLmpLine {
  color: #e8eef8;
}

[data-theme="moonlit"] .phoneShell .pregnancyDueDateChip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(181, 202, 239, 0.2);
}

[data-theme="dark"] body.pregnancyFocusMode .pregnancyWeekCareNote,
[data-theme="dark"] body.pregnancyFocusMode .pregnancyWeekVisitNote,
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyWeekCareNote,
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyWeekVisitNote {
  background:
    radial-gradient(circle at 12% 0%, rgba(143, 212, 204, 0.14), transparent 46%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  border-color: rgba(181, 202, 239, 0.18);
}

[data-theme="dark"] body.pregnancyFocusMode .pregnancyWeekIntelligence p:not(.label),
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyWeekIntelligence p:not(.label) {
  color: #e8eef8;
}

[data-theme="dark"] body.pregnancyFocusMode .pregnancyAskCards,
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyAskCards {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(181, 202, 239, 0.16);
}

[data-theme="dark"] body.pregnancyFocusMode .pregnancyAskGrid button,
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyAskGrid button {
  color: #e8eef8;
  background:
    radial-gradient(circle at 18% 0%, rgba(143, 212, 204, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(52, 63, 88, 0.86), rgba(42, 31, 50, 0.72));
  border-color: rgba(181, 202, 239, 0.18);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

[data-theme="moonlit"] .phoneShell .pregnancyDueDateChip .label,
[data-theme="moonlit"] .phoneShell .pregnancyDueDateEditHint,
[data-theme="moonlit"] .phoneShell .pregnancyLmpLine {
  color: #d0d8ec;
}

[data-theme="moonlit"] .phoneShell .pregnancyDaysUntil {
  color: #f0dcc8;
}

[data-theme="moonlit"] .phoneShell .pregnancyTrimesterProgress,
[data-theme="moonlit"] .phoneShell .pregnancyTrimesterProgressHead,
[data-theme="moonlit"] .phoneShell .pregnancyTrimesterSub {
  color: #dbe6f8;
}

#cycleDayBanner,
.cycleDayBanner,
.selectedDateChipBar.cycleDayBanner {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* —— 2026 polish: sharper controls, focus clarity —— */
#trackCalendarPanel {
  display: flex;
  flex-direction: column;
}

#trackCalendarPanel[hidden] {
  display: none !important;
}

#trackCalendarPanel #yearCalendarPanel {
  order: 1;
}

#trackCalendarPanel .calendarPrimaryActions {
  order: 2;
}

#trackCalendarPanel #cycleTrackHero {
  order: 3;
}

#trackCalendarPanel #cycleModePanelDetails {
  order: 4;
}

#trackCalendarPanel #cycleHistorySection {
  order: 5;
}

#trackCalendarPanel #cycleSettingsSection {
  order: 6;
}

#cycleScreen #cycleWheelSection {
  display: none !important;
}

#yearCalendarPanel {
  margin-top: 2px;
}

#yearCalendarPanel .cardTop {
  align-items: center;
}

#yearCalendarPanel .cardTop h2 {
  font-size: clamp(1.55rem, 5.8vw, 2rem);
  line-height: 1.04;
}

#yearCalendarPanel .calendarHintProminent {
  margin-top: 8px;
}

.calendarPrimaryActions {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.calendarPrimaryActions .wideButton {
  min-height: 52px;
}

.trackSubTabs {
  gap: 6px;
  padding: 5px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
  border: 1px solid rgba(126, 63, 106, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55) inset,
    0 10px 28px rgba(73, 47, 58, 0.08);
}

.trackSubTabs button {
  min-height: 42px;
  border-radius: 13px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.trackSubTabs button:active:not(:disabled) {
  transform: scale(0.985);
}

.trackSubTabs button.active {
  background: linear-gradient(165deg, #ffffff 0%, #f4ebe8 100%);
  color: #4a2f3a;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 20px rgba(73, 47, 58, 0.12);
}

.trackSubTabs .trackHomeBtn,
.trackSubTabs .trackHomeBtn.active {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #4a2f3a;
  box-shadow: 0 4px 12px rgba(73, 47, 58, 0.1);
}

.tabBar button {
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.tabBar button:active:not(:disabled) {
  transform: scale(0.97);
}

.wideButton,
.homePrimaryActionBtn,
.calendarPrimaryBtn,
.calendarSecondaryBtn,
.calendarNoPeriodBtn {
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.wideButton:active:not(:disabled),
.homePrimaryActionBtn:active:not(:disabled),
.calendarPrimaryBtn:active:not(:disabled),
.calendarSecondaryBtn:active:not(:disabled),
.calendarNoPeriodBtn:active:not(:disabled) {
  transform: scale(0.985);
}

.homeModeBanner--tracking {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(223, 241, 235, 0.45));
  border: 1px solid rgba(27, 123, 116, 0.16);
}

.homeModeBanner--tracking strong {
  color: #1b5f5a;
}

body.focus-trying .phoneShell::before {
  background:
    radial-gradient(ellipse 100% 80% at 8% -6%, rgba(168, 130, 154, 0.22), transparent 55%),
    radial-gradient(ellipse 90% 70% at 100% 8%, rgba(126, 63, 106, 0.14), transparent 50%);
}

body.focus-avoiding .phoneShell::before {
  background:
    radial-gradient(ellipse 100% 80% at 0% 0%, rgba(27, 123, 116, 0.2), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 10%, rgba(90, 47, 82, 0.1), transparent 48%);
}

body.focus-irregular .phoneShell::before {
  background:
    radial-gradient(ellipse 110% 85% at 50% -10%, rgba(168, 130, 154, 0.18), transparent 58%),
    radial-gradient(ellipse 90% 70% at 100% 100%, rgba(27, 123, 116, 0.12), transparent 50%);
}

body.focus-tracking .phoneShell::before {
  background:
    radial-gradient(ellipse 100% 80% at 10% -8%, rgba(27, 123, 116, 0.16), transparent 55%),
    radial-gradient(ellipse 85% 65% at 100% 5%, rgba(168, 130, 154, 0.14), transparent 50%);
}

[data-theme="dark"] .phoneShell .trackSubTabs,
[data-theme="moonlit"] .phoneShell .trackSubTabs {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

[data-theme="dark"] .phoneShell .trackSubTabs button.active,
[data-theme="moonlit"] .phoneShell .trackSubTabs button.active {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(244, 235, 232, 0.9));
  color: #4a2f3a;
}

[data-theme="dark"] #trackLogPanel .logHistoryDropdown,
[data-theme="moonlit"] #trackLogPanel .logHistoryDropdown {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #trackLogPanel .logHistorySummary h2,
[data-theme="moonlit"] #trackLogPanel .logHistorySummary h2 {
  color: var(--luma-on-glass-heading);
}

[data-theme="dark"] #trackLogPanel .logHistorySummary .label,
[data-theme="moonlit"] #trackLogPanel .logHistorySummary .label {
  color: var(--luma-on-glass-muted);
}

[data-theme="dark"] #trackLogPanel .logHistorySummaryMeta,
[data-theme="moonlit"] #trackLogPanel .logHistorySummaryMeta {
  background: rgba(255, 255, 255, 0.1);
  color: var(--luma-on-glass-heading);
}

/* ================================================================
   Dark + Moonlit — Track, Home, Insights readable light type
   Beats light-surface black-type contracts and pregnancy cream overrides.
   ================================================================ */

[data-theme="dark"] #cycleScreen .trackHero,
[data-theme="moonlit"] #cycleScreen .trackHero {
  color: var(--luma-on-glass-heading);
}

[data-theme="dark"] #cycleScreen .trackHero :is(.trackHeroHeadline, .trackHeroGreeting, .trackHeroHint, .trackPhasePill, h1, h2, p, span, strong),
[data-theme="moonlit"] #cycleScreen .trackHero :is(.trackHeroHeadline, .trackHeroGreeting, .trackHeroHint, .trackPhasePill, h1, h2, p, span, strong) {
  color: var(--luma-on-glass-heading) !important;
}

[data-theme="dark"] #cycleScreen .trackHero .trackHeroHint,
[data-theme="moonlit"] #cycleScreen .trackHero .trackHeroHint,
[data-theme="dark"] #cycleScreen .trackHero .trackHeroGreeting,
[data-theme="moonlit"] #cycleScreen .trackHero .trackHeroGreeting {
  color: var(--luma-on-glass-muted) !important;
}

[data-theme="dark"] #cycleScreen .trackHero :is(.trackHeroScienceNote, .trackHeroReadBlock),
[data-theme="moonlit"] #cycleScreen .trackHero :is(.trackHeroScienceNote, .trackHeroReadBlock) {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--luma-on-glass-muted) !important;
}

[data-theme="dark"] #cycleScreen .trackHero :is(.trackHeroScienceNote, .trackHeroReadBlock) :is(*, p, span, summary, strong, .label, .trackHeroSummary, .trackHeroReadBody),
[data-theme="moonlit"] #cycleScreen .trackHero :is(.trackHeroScienceNote, .trackHeroReadBlock) :is(*, p, span, summary, strong, .label, .trackHeroSummary, .trackHeroReadBody) {
  color: var(--luma-on-glass-muted) !important;
}

[data-theme="dark"] #cycleScreen .trackHero .trackHeroReadMore summary,
[data-theme="moonlit"] #cycleScreen .trackHero .trackHeroReadMore summary {
  color: var(--luma-on-glass-link) !important;
}

[data-theme="dark"] #cycleScreen .trackPhasePill,
[data-theme="moonlit"] #cycleScreen .trackPhasePill {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--luma-on-glass-heading) !important;
}

[data-theme="dark"] #todayScreen .homeDaySummary,
[data-theme="moonlit"] #todayScreen .homeDaySummary {
  color: var(--luma-on-glass-heading);
}

[data-theme="dark"] #todayScreen .homeDaySummary :is(h1, h2, h3, #todayHeadline, .homeGreetingEyebrow, .homeHeroPhasePill, strong),
[data-theme="moonlit"] #todayScreen .homeDaySummary :is(h1, h2, h3, #todayHeadline, .homeGreetingEyebrow, .homeHeroPhasePill, strong) {
  color: var(--luma-on-glass-heading) !important;
}

[data-theme="dark"] #todayScreen .homeDaySummary :is(.homePhaseLine, #todayPhaseLine, p),
[data-theme="moonlit"] #todayScreen .homeDaySummary :is(.homePhaseLine, #todayPhaseLine, p) {
  color: var(--luma-on-glass-muted) !important;
}

[data-theme="dark"] #todayScreen .homeLumaSnippet,
[data-theme="moonlit"] #todayScreen .homeLumaSnippet,
[data-theme="dark"] #todayScreen .homeInsightsCard,
[data-theme="moonlit"] #todayScreen .homeInsightsCard {
  color: var(--luma-on-glass);
}

[data-theme="dark"] #todayScreen .homeLumaSnippet :is(.label, h2, strong),
[data-theme="moonlit"] #todayScreen .homeLumaSnippet :is(.label, h2, strong),
[data-theme="dark"] #todayScreen .homeInsightsCard :is(.label, h2),
[data-theme="moonlit"] #todayScreen .homeInsightsCard :is(.label, h2),
[data-theme="dark"] #todayScreen .homeInsightsCard > .cardTop strong,
[data-theme="moonlit"] #todayScreen .homeInsightsCard > .cardTop strong,
[data-theme="dark"] #todayScreen .homeInsightsCard #insightsTitle,
[data-theme="moonlit"] #todayScreen .homeInsightsCard #insightsTitle {
  color: var(--luma-on-glass-heading) !important;
}

[data-theme="dark"] #todayScreen .homeLumaSnippetText,
[data-theme="moonlit"] #todayScreen .homeLumaSnippetText,
[data-theme="dark"] #todayScreen .homeInsightsCard :is(.insightsLead, .patternMemoryLead, .homeAlertsDesc),
[data-theme="moonlit"] #todayScreen .homeInsightsCard :is(.insightsLead, .patternMemoryLead, .homeAlertsDesc),
[data-theme="dark"] #todayScreen .homeInsightsCard #homeProactiveSummary,
[data-theme="moonlit"] #todayScreen .homeInsightsCard #homeProactiveSummary {
  color: var(--luma-on-glass-muted) !important;
}

/* Light inset insight panels need dark type in moonlit/dark.
   Keep IDs out of :is() lists so heading rules cannot outrank these. */
[data-theme="dark"] #todayScreen #homeInsightsSection :is(.cycleReviewBlock, .patternMemoryList li, .homeModeBanner, .patternMemoryUpcoming),
[data-theme="moonlit"] #todayScreen #homeInsightsSection :is(.cycleReviewBlock, .patternMemoryList li, .homeModeBanner, .patternMemoryUpcoming) {
  background: #f4f6fb !important;
  border-color: rgba(168, 184, 216, 0.35) !important;
  color: var(--luma-on-light-surface) !important;
}

[data-theme="dark"] #todayScreen #homeInsightsSection :is(.cycleReviewBlock, .patternMemoryList li, .homeModeBanner, .patternMemoryUpcoming) :is(p, strong, span, b, button, .cycleReviewMeta),
[data-theme="moonlit"] #todayScreen #homeInsightsSection :is(.cycleReviewBlock, .patternMemoryList li, .homeModeBanner, .patternMemoryUpcoming) :is(p, strong, span, b, button, .cycleReviewMeta) {
  color: var(--luma-on-light-surface) !important;
}

[data-theme="dark"] #todayScreen #homeInsightsSection :is(.cycleReviewBlock, .homeModeBanner, .patternMemoryList li, .patternMemoryUpcoming) :is(strong, .cycleReviewMeta),
[data-theme="moonlit"] #todayScreen #homeInsightsSection :is(.cycleReviewBlock, .homeModeBanner, .patternMemoryList li, .patternMemoryUpcoming) :is(strong, .cycleReviewMeta) {
  color: var(--luma-on-light-surface-heading) !important;
}

[data-theme="dark"] #todayScreen #homeInsightsSection :is(.cycleReviewBlock, .homeModeBanner, .patternMemoryList li, .patternMemoryUpcoming) p,
[data-theme="moonlit"] #todayScreen #homeInsightsSection :is(.cycleReviewBlock, .homeModeBanner, .patternMemoryList li, .patternMemoryUpcoming) p {
  color: var(--luma-on-light-surface-muted) !important;
}

[data-theme="dark"] #todayScreen .homeInsightsCard .textLinkBtn,
[data-theme="moonlit"] #todayScreen .homeInsightsCard .textLinkBtn,
[data-theme="dark"] #todayScreen .homeLumaSnippetAsk,
[data-theme="moonlit"] #todayScreen .homeLumaSnippetAsk {
  color: var(--luma-on-glass-link) !important;
}

[data-theme="dark"] #todayScreen .lumaReadConfidence,
[data-theme="moonlit"] #todayScreen .lumaReadConfidence {
  background: rgba(143, 212, 203, 0.16) !important;
  border-color: rgba(143, 212, 203, 0.28) !important;
  color: #b8ebe3 !important;
}

[data-theme="dark"] #todayScreen .cardTop [data-icon],
[data-theme="moonlit"] #todayScreen .cardTop [data-icon] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--luma-on-glass-heading);
}

/* Pregnancy Home / Track insight surfaces */
[data-theme="dark"] .pregnancyNeoMilestone,
[data-theme="dark"] .pregnancyWeekFruitCompare,
[data-theme="moonlit"] .pregnancyNeoMilestone,
[data-theme="moonlit"] .pregnancyWeekFruitCompare {
  background: linear-gradient(120deg, #f8fbff 0%, #8fd4cc 40%, #e8b4d4 70%, #f8fbff 100%) !important;
  background-size: 220% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

[data-theme="dark"] body.pregnancyFocusMode .pregnancyNeoBadge,
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyNeoBadge {
  color: #8fd4cb !important;
  background: rgba(143, 212, 203, 0.14) !important;
  border-color: rgba(143, 212, 203, 0.28) !important;
}

[data-theme="dark"] body.pregnancyFocusMode .pregnancyWeekSizeChip,
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyWeekSizeChip {
  color: #b8ebe3 !important;
  background: rgba(143, 212, 203, 0.14) !important;
  border-color: rgba(143, 212, 203, 0.28) !important;
}

[data-theme="dark"] body.pregnancyFocusMode .pregnancyDueDateChip,
[data-theme="dark"] body.pregnancyFocusMode .pregnancyTrimesterProgress,
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyDueDateChip,
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyTrimesterProgress {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
  color: var(--luma-on-glass-heading) !important;
}

[data-theme="dark"] body.pregnancyFocusMode .pregnancyDueDateChip :is(.label, strong, .pregnancyDaysUntil, .pregnancyDueDateEditHint, span),
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyDueDateChip :is(.label, strong, .pregnancyDaysUntil, .pregnancyDueDateEditHint, span),
[data-theme="dark"] body.pregnancyFocusMode .pregnancyTrimesterProgress :is(.pregnancyTrimesterProgressHead, .pregnancyTrimesterSub, span, strong, p),
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyTrimesterProgress :is(.pregnancyTrimesterProgressHead, .pregnancyTrimesterSub, span, strong, p),
[data-theme="dark"] body.pregnancyFocusMode .pregnancyLmpLine,
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyLmpLine {
  color: var(--luma-on-glass-muted) !important;
}

[data-theme="dark"] body.pregnancyFocusMode .pregnancyDueDateChip strong,
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyDueDateChip strong,
[data-theme="dark"] body.pregnancyFocusMode .pregnancyDaysUntil,
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyDaysUntil {
  color: var(--luma-on-glass-heading) !important;
}

[data-theme="dark"] body.pregnancyFocusMode .pregnancyWeekBody,
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyWeekBody {
  color: var(--luma-on-glass);
}

[data-theme="dark"] body.pregnancyFocusMode .pregnancyWeekBody :is(h2, strong, .pregnancyWeekNavLabel strong, #pregnancyWeekTitle),
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyWeekBody :is(h2, strong, .pregnancyWeekNavLabel strong, #pregnancyWeekTitle) {
  color: var(--luma-on-glass-heading) !important;
}

[data-theme="dark"] body.pregnancyFocusMode .pregnancyWeekBody :is(p, .label, .pregnancyWeekGrowth, .pregnancyWeekSectionLabel, #pregnancyWeekBaby, #pregnancyWeekMom, .pregnancyWeekTip),
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyWeekBody :is(p, .label, .pregnancyWeekGrowth, .pregnancyWeekSectionLabel, #pregnancyWeekBaby, #pregnancyWeekMom, .pregnancyWeekTip) {
  color: var(--luma-on-glass-muted) !important;
}

[data-theme="dark"] body.pregnancyFocusMode .pregnancyWeekTip,
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyWeekTip {
  background: rgba(143, 212, 203, 0.12) !important;
  border-left-color: #8fd4cb !important;
  color: var(--luma-on-glass-muted) !important;
}

[data-theme="dark"] body.pregnancyFocusMode .pregnancyWeekNav,
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyWeekNav {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] body.pregnancyFocusMode .pregnancyWeekActions button:last-child,
[data-theme="moonlit"] body.pregnancyFocusMode .pregnancyWeekActions button:last-child {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--luma-on-glass-link) !important;
}

[data-theme="moonlit"] #cycleScreen .trackHero :is(.trackHeroHeadline, h1, h2),
[data-theme="moonlit"] #todayScreen .homeDaySummary :is(#todayHeadline, h2) {
  color: #f4f6fb !important;
}

[data-theme="moonlit"] #cycleScreen .trackHero :is(.trackHeroHint, .trackHeroGreeting),
[data-theme="moonlit"] #todayScreen .homeDaySummary :is(.homePhaseLine, #todayPhaseLine),
[data-theme="moonlit"] #todayScreen .homeInsightsCard :is(.insightsLead, .patternMemoryLead) {
  color: #c5d2ea !important;
}

[data-theme="moonlit"] #todayScreen .homeInsightsCard > p {
  color: #c5d2ea !important;
}

/* Keep light insight bubbles readable in moonlit */
[data-theme="moonlit"] #todayScreen #homeInsightsSection :is(.cycleReviewBlock, .patternMemoryList li, .homeModeBanner, .patternMemoryUpcoming) {
  background: #f4f6fb !important;
  border-color: rgba(168, 184, 216, 0.35) !important;
  color: #2a3142 !important;
}

[data-theme="moonlit"] #todayScreen #homeInsightsSection :is(.cycleReviewBlock, .homeModeBanner, .patternMemoryList li, .patternMemoryUpcoming) :is(strong, .cycleReviewMeta) {
  color: #1a2030 !important;
}

[data-theme="moonlit"] #todayScreen #homeInsightsSection :is(.cycleReviewBlock, .homeModeBanner, .patternMemoryList li, .patternMemoryUpcoming) :is(p, span) {
  color: #3a455c !important;
}

/* Warm Intelligence in-app design preview (mock overlay — does not change live Home) */
.warmIntelPreviewOverlay {
  position: absolute;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  background: #1a1216;
}

.warmIntelPreviewOverlay[hidden] {
  display: none !important;
}

.warmIntelPreviewBar {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-top, 0px));
  background: rgba(24, 17, 20, 0.96);
  border-bottom: 1px solid rgba(232, 201, 216, 0.16);
  color: #f3ebe6;
}

.warmIntelPreviewCopy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.warmIntelPreviewCopy strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.warmIntelPreviewCopy span {
  font-size: 11px;
  color: rgba(243, 235, 230, 0.72);
}

.warmIntelPreviewActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.warmIntelPreviewActions button {
  border: 1px solid rgba(232, 201, 216, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #f3ebe6;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.warmIntelPreviewActions button[aria-pressed="true"] {
  background: #e8c9d8;
  color: #1a1216;
  border-color: transparent;
}

.warmIntelExitBtn {
  background: #7e3f6a !important;
  border-color: transparent !important;
}

.warmIntelPreviewFrame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #f4ebe4;
}

/* ═══════════════════════════════════════════════════════════
   Warm Intelligence LIVE preview (html[data-design-preview="warm"])
   Mock styles only — default UI unchanged without the query flag.
   ═══════════════════════════════════════════════════════════ */
html[data-design-preview="warm"] {
  font-family: var(--luma-font-sans);
  --luma-shell: #f4ebe4;
  --luma-card: rgba(251, 246, 241, 0.9);
  --luma-accent: #a8829a;
  --luma-accent-deep: #7e3f6a;
  --luma-text-heading: #2e2428;
  --luma-text: #3a3036;
  --luma-text-muted: #5c4f56;
  --luma-glass: rgba(255, 248, 244, 0.78);
  --luma-ai-glow-soft: rgba(196, 140, 160, 0.2);
}

html[data-design-preview="warm"][data-warm-mood="moonlit"] {
  --luma-shell: #241c20;
  --luma-card: rgba(42, 34, 38, 0.92);
  --luma-text-heading: #f3ebe6;
  --luma-text: #e8dcd6;
  --luma-text-muted: #b7a59e;
  --luma-accent-deep: #e8c9d8;
  --luma-glass: rgba(48, 36, 42, 0.78);
}

html[data-design-preview="warm"][data-warm-mood="night"] {
  --luma-shell: #160f13;
  --luma-card: rgba(28, 21, 25, 0.94);
  --luma-text-heading: #f0e6e2;
  --luma-text: #e5d8d2;
  --luma-text-muted: #9f8c87;
  --luma-accent-deep: #efd0e0;
  --luma-glass: rgba(40, 28, 34, 0.82);
}

html[data-design-preview="warm"] body,
html[data-design-preview="warm"] .phoneShell {
  font-family: var(--luma-font-sans);
  background: var(--luma-shell);
}

html[data-design-preview="warm"] #todayHeadline,
html[data-design-preview="warm"] .pregnancyNeoMilestone,
html[data-design-preview="warm"] #pregnancyWeekTitle,
html[data-design-preview="warm"] .homeLumaSnippet.warmIntelPresence .label {
  font-family: var(--luma-font-display) !important;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
}

.warmIntelLiveBanner {
  position: relative;
  z-index: 1300;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #2a1820;
  color: #f7ebe8;
  border-bottom: 2px solid #e8c9d8;
}

.warmIntelLiveBanner strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
}

.warmIntelLiveBanner span {
  display: block;
  font-size: 11px;
  opacity: 0.78;
}

.warmIntelLiveBannerActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.warmIntelLiveBannerActions button {
  border: 1px solid rgba(232, 201, 216, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #f7ebe8;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.warmIntelLiveBannerActions button[aria-pressed="true"] {
  background: #e8c9d8;
  color: #1a1216;
  border-color: transparent;
}

.warmIntelLiveBannerActions .warmIntelExitBtn {
  background: #7e3f6a;
  border-color: transparent;
}

/* Cut sci-fi pregnancy chrome */
html[data-design-preview="warm"] .pregnancyNeoGrid,
html[data-design-preview="warm"] .pregnancyNeoOrbit,
html[data-design-preview="warm"] .pregnancyNeoSweep,
html[data-design-preview="warm"] .pregnancyNeoBadge,
html[data-design-preview="warm"] .pregnancyWombScanLine {
  display: none !important;
}

html[data-design-preview="warm"] .pregnancyWeekHero {
  background:
    radial-gradient(circle at 50% 42%, rgba(168, 130, 154, 0.38) 0%, transparent 58%),
    linear-gradient(180deg, rgba(251, 246, 241, 0.55), rgba(244, 235, 228, 0.2));
  border: 1px solid rgba(126, 90, 80, 0.14);
  box-shadow: none;
  animation: warmIntelSoftRise 0.7s ease both;
}

html[data-design-preview="warm"] .pregnancyWombAura {
  opacity: 0.9 !important;
  filter: blur(8px);
  animation: warmIntelBreath 4s ease-in-out infinite;
}

html[data-design-preview="warm"] .pregnancyNeoMilestone {
  font-size: 1.15rem !important;
  font-weight: 550;
  color: var(--luma-text-heading) !important;
  text-shadow: none !important;
}

/* Luma as one soft presence */
html[data-design-preview="warm"] .homeLumaSnippet.warmIntelPresence,
html[data-design-preview="warm"] #homeLumaSnippet {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 16px !important;
  background: var(--luma-glass) !important;
  border: 1px solid rgba(126, 90, 80, 0.14) !important;
  box-shadow: 0 0 36px rgba(196, 140, 160, 0.22);
  animation: warmIntelSoftRise 0.85s ease 0.08s both;
}

html[data-design-preview="warm"] .homeLumaSnippet.warmIntelPresence::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -15%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(168, 130, 154, 0.35);
  filter: blur(26px);
  animation: warmIntelBreath 3.6s ease-in-out infinite;
  pointer-events: none;
}

html[data-design-preview="warm"] .homeLumaSnippet .label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
  font-size: 1.05rem !important;
  font-weight: 650 !important;
  color: var(--luma-text-heading) !important;
}

html[data-design-preview="warm"] .homeLumaSnippet .label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--luma-accent);
  box-shadow: 0 0 0 6px rgba(168, 130, 154, 0.2);
  animation: warmIntelBreath 3.6s ease-in-out infinite;
}

html[data-design-preview="warm"] .homeLumaSnippetText {
  position: relative;
  min-height: 3.4em;
  font-size: 0.98rem !important;
  line-height: 1.5 !important;
  color: var(--luma-text) !important;
}

html[data-design-preview="warm"] .homeLumaSnippetText.warmIntelStreaming::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: var(--luma-accent-deep);
  vertical-align: -2px;
  animation: warmIntelBlink 1s steps(1) infinite;
}

html[data-design-preview="warm"] #todayHeadline {
  font-size: clamp(1.55rem, 5vw, 1.95rem) !important;
  line-height: 1.15 !important;
  animation: warmIntelSoftRise 0.7s ease both;
}

html[data-design-preview="warm"] .homeDaySummary {
  animation: warmIntelSoftRise 0.65s ease both;
}

#todayScreen > .homeDaySummary {
  align-self: stretch;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* Tools quieter; more open composition */
html[data-design-preview="warm"] .cycleWeatherCard,
html[data-design-preview="warm"] .lumaBodyMapCard,
html[data-design-preview="warm"] .lumaReadCard,
html[data-design-preview="warm"] .homeTodayPlanCard,
html[data-design-preview="warm"] .homeInsightsCard,
html[data-design-preview="warm"] .homeAlertsCard {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-top: 1px solid rgba(126, 90, 80, 0.14) !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
}

html[data-design-preview="warm"] .bodyMapOrb {
  display: none !important;
}

@keyframes warmIntelBreath {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.1); opacity: 0.95; }
}

@keyframes warmIntelSoftRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes warmIntelBlink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Pregnancy mode normally hides Home Luma snippet — restore it for Warm Intelligence preview */
html[data-design-preview="warm"] body.pregnancyFocusMode #todayScreen > .homeLumaSnippet {
  display: grid !important;
  gap: 8px;
  margin: 12px 16px 8px !important;
}

html[data-design-preview="warm"] body.pregnancyFocusMode #todayScreen > .homePrimaryAction {
  display: grid !important;
  margin: 8px 16px 4px !important;
}

html[data-design-preview="warm"] body.pregnancyFocusMode #todayScreen > .homeDaySummary {
  display: grid !important;
}

/* ================================================================
   Moonlit/Dark calendars — force on-theme surfaces (beats cream locks)
   ================================================================ */
html[data-theme="moonlit"] .phoneShell .logDatePicker,
html[data-theme="dark"] .phoneShell .logDatePicker,
html[data-theme="moonlit"] .phoneShell #logDatePicker,
html[data-theme="dark"] .phoneShell #logDatePicker {
  background: #3a3548 !important;
  border-color: rgba(200, 190, 230, 0.18) !important;
  color: #f0ecf8 !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
}

html[data-theme="dark"] .phoneShell .logDatePicker,
html[data-theme="dark"] .phoneShell #logDatePicker {
  background: #352a32 !important;
  border-color: rgba(224, 168, 188, 0.22) !important;
}

html[data-theme="moonlit"] .phoneShell .logDatePicker :is(.label, h2, h3, strong, #logDateMonthLabel, .dayNumber, .logDatePickerNavBtn),
html[data-theme="dark"] .phoneShell .logDatePicker :is(.label, h2, h3, strong, #logDateMonthLabel, .dayNumber, .logDatePickerNavBtn) {
  color: #f4f6fb !important;
}

html[data-theme="moonlit"] .phoneShell .logDatePicker :is(p, .logDatePickerHint, .cycleLabel, .pregnancyWeekLabel, .monthCalendarHeader span),
html[data-theme="dark"] .phoneShell .logDatePicker :is(p, .logDatePickerHint, .cycleLabel, .pregnancyWeekLabel, .monthCalendarHeader span) {
  color: #c8d4ea !important;
}

html[data-theme="moonlit"] .phoneShell .logDatePicker .logDatePickerNavBtn,
html[data-theme="dark"] .phoneShell .logDatePicker .logDatePickerNavBtn {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(168, 184, 216, 0.18) !important;
}

html[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay:not(.empty):not(.period):not(.active):not(.fertile):not(.ovulation):not(.predicted):not(.tender):not(.steady),
html[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay:not(.empty):not(.period):not(.active):not(.fertile):not(.ovulation):not(.predicted):not(.tender):not(.steady),
html[data-theme="moonlit"] body.pregnancyFocusMode .phoneShell .logDatePicker .monthCalendarDay:not(.empty):not(.period):not(.active):not(.fertile):not(.ovulation):not(.predicted):not(.tender):not(.steady):not(.pregnancyDay),
html[data-theme="dark"] body.pregnancyFocusMode .phoneShell .logDatePicker .monthCalendarDay:not(.empty):not(.period):not(.active):not(.fertile):not(.ovulation):not(.predicted):not(.tender):not(.steady):not(.pregnancyDay) {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(168, 184, 216, 0.14) !important;
  color: #f4f6fb !important;
}

html[data-theme="moonlit"] body.pregnancyFocusMode .phoneShell .logDatePicker .monthCalendarDay.pregnancyDay:not(.selected),
html[data-theme="dark"] body.pregnancyFocusMode .phoneShell .logDatePicker .monthCalendarDay.pregnancyDay:not(.selected) {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(168, 184, 216, 0.14) !important;
  color: #f4f6fb !important;
}

html[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay.selected,
html[data-theme="moonlit"] body.pregnancyFocusMode .phoneShell .logDatePicker .monthCalendarDay.selected,
html[data-theme="moonlit"] body.pregnancyFocusMode .phoneShell .logDatePicker .monthCalendarDay.pregnancyDay.selected {
  background: rgba(184, 176, 216, 0.38) !important;
  border-color: rgba(208, 200, 232, 0.55) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay.selected,
html[data-theme="dark"] body.pregnancyFocusMode .phoneShell .logDatePicker .monthCalendarDay.selected,
html[data-theme="dark"] body.pregnancyFocusMode .phoneShell .logDatePicker .monthCalendarDay.pregnancyDay.selected {
  background: rgba(224, 168, 188, 0.38) !important;
  border-color: rgba(240, 200, 212, 0.5) !important;
  color: #ffffff !important;
}

html[data-theme="moonlit"] .phoneShell .yearCalendarPanel,
html[data-theme="dark"] .phoneShell .yearCalendarPanel,
html[data-theme="moonlit"] body.pregnancyFocusMode .phoneShell .yearCalendarPanel,
html[data-theme="dark"] body.pregnancyFocusMode .phoneShell .yearCalendarPanel {
  background: #3a3548 !important;
  border-color: rgba(168, 184, 216, 0.14) !important;
  color: #f4f6fb !important;
}

html[data-theme="dark"] .phoneShell .yearCalendarPanel,
html[data-theme="dark"] body.pregnancyFocusMode .phoneShell .yearCalendarPanel {
  background: #352a32 !important;
}

html[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendar,
html[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendar {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(168, 184, 216, 0.12) !important;
  box-shadow: none !important;
}

html[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendarDay:not(.empty):not(.period):not(.active):not(.fertile):not(.ovulation):not(.predicted):not(.tender):not(.steady),
html[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendarDay:not(.empty):not(.period):not(.active):not(.fertile):not(.ovulation):not(.predicted):not(.tender):not(.steady),
html[data-theme="moonlit"] body.pregnancyFocusMode .phoneShell .yearCalendarPanel .monthCalendarDay:not(.empty):not(.period):not(.active):not(.fertile):not(.ovulation):not(.predicted):not(.tender):not(.steady):not(.pregnancyDay),
html[data-theme="dark"] body.pregnancyFocusMode .phoneShell .yearCalendarPanel .monthCalendarDay:not(.empty):not(.period):not(.active):not(.fertile):not(.ovulation):not(.predicted):not(.tender):not(.steady):not(.pregnancyDay) {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f4f6fb !important;
  border-color: rgba(168, 184, 216, 0.12) !important;
}

/* Restore the same pastel phase chips as light/hearth on dark shells */
html[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendarDay.period,
html[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendarDay.period,
html[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay.period,
html[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay.period {
  background: linear-gradient(145deg, #fce8ee 0%, var(--cycle-period) 100%) !important;
  color: #5a3040 !important;
  border-color: rgba(200, 120, 150, 0.45) !important;
}

html[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendarDay.active,
html[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendarDay.active,
html[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay.active,
html[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay.active {
  background: linear-gradient(145deg, #f5b8ca 0%, var(--cycle-period-active) 100%) !important;
  color: #4a2030 !important;
  border-color: rgba(200, 90, 130, 0.55) !important;
}

html[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendarDay.fertile,
html[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendarDay.fertile,
html[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay.fertile,
html[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay.fertile {
  background: linear-gradient(145deg, #e4f3e9 0%, #cfe8d6 100%) !important;
  color: #2f4638 !important;
  border-color: rgba(110, 160, 130, 0.5) !important;
}

html[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendarDay.ovulation,
html[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendarDay.ovulation,
html[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay.ovulation,
html[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay.ovulation {
  background: linear-gradient(145deg, #fdf0e0 0%, #f5d9b8 100%) !important;
  color: #5a3e28 !important;
  border-color: rgba(210, 150, 100, 0.55) !important;
}

html[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendarDay.tender,
html[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendarDay.tender,
html[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay.tender,
html[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay.tender {
  background: linear-gradient(145deg, #f3e8f0 0%, #e4d2e0 100%) !important;
  color: #4a3548 !important;
  border-color: rgba(170, 130, 160, 0.5) !important;
}

html[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendarDay.predicted,
html[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendarDay.predicted,
html[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay.predicted,
html[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay.predicted {
  background: linear-gradient(145deg, #ebe6f7 0%, #d8d0f0 100%) !important;
  color: #3f3858 !important;
  border: 1.5px dashed #9a8cc4 !important;
}

html[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendarDay.steady,
html[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendarDay.steady,
html[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay.steady,
html[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay.steady {
  background: rgba(255, 248, 252, 0.2) !important;
  color: #f8f2f8 !important;
  border-color: rgba(255, 220, 230, 0.18) !important;
}

html[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendarDay:is(.period, .active, .fertile, .ovulation, .tender, .predicted) .cycleLabel,
html[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendarDay:is(.period, .active, .fertile, .ovulation, .tender, .predicted) .cycleLabel,
html[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay:is(.period, .active, .fertile, .ovulation, .tender, .predicted) .cycleLabel,
html[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay:is(.period, .active, .fertile, .ovulation, .tender, .predicted) .cycleLabel {
  color: inherit !important;
  opacity: 0.82;
}

html[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendarDay :is(.dayNumber, .cycleLabel, .pregnancyWeekLabel),
html[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendarDay :is(.dayNumber, .cycleLabel, .pregnancyWeekLabel),
html[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay :is(.dayNumber, .cycleLabel, .pregnancyWeekLabel),
html[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay :is(.dayNumber, .cycleLabel, .pregnancyWeekLabel) {
  color: inherit !important;
}

html[data-theme="moonlit"] .phoneShell .yearCalendarPanel .monthCalendarDay .pregnancyWeekLabel,
html[data-theme="dark"] .phoneShell .yearCalendarPanel .monthCalendarDay .pregnancyWeekLabel,
html[data-theme="moonlit"] .phoneShell .logDatePicker .monthCalendarDay .pregnancyWeekLabel,
html[data-theme="dark"] .phoneShell .logDatePicker .monthCalendarDay .pregnancyWeekLabel {
  color: #b8c8e8 !important;
}

.fieldHint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--luma-text-muted);
}

/* You tab — refined compact controls across all focus modes */
#profileScreen .settingsList {
  margin-top: 10px;
}

#profileScreen .settingsList h2,
#profileScreen .themePickerSection h2,
#profileScreen .settingsListDetails > summary h2 {
  color: var(--luma-accent-text) !important;
  font-family: var(--luma-font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

#profileScreen .settingsListDetails {
  border: 1px solid rgba(232, 168, 188, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(232, 168, 188, 0.08), transparent 55%),
    rgba(255, 252, 253, 0.68);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 10px 28px rgba(120, 70, 90, 0.045);
  overflow: hidden;
}

#profileScreen .settingsListDetails:not([open]) {
  padding-bottom: 0;
}

#profileScreen .settingsListDetails > summary {
  min-height: 48px;
  padding: 6px 12px 6px 18px;
  grid-template-columns: 28px minmax(0, 1fr) 30px;
  column-gap: 8px;
}

#profileScreen .settingsListDetails:not([open]) > summary {
  min-height: 48px;
  padding-block: 6px;
}

#profileScreen .settingsListDetails > summary h2 {
  font-size: clamp(1.18rem, 4vw, 1.42rem);
  line-height: 1;
  text-align: center;
}

#profileScreen .settingsListDetails > summary p {
  margin-top: 3px;
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: center;
}

#profileScreen .settingsListDetails > summary::after {
  width: 30px;
  height: 30px;
  color: var(--luma-accent-text);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(168, 88, 120, 0.16);
  box-shadow: 0 6px 14px rgba(120, 70, 90, 0.08);
  font-size: 0.88rem;
}

#profileScreen .settingsListDetails[open] > summary {
  border-bottom: 1px solid rgba(232, 168, 188, 0.12);
}

#profileScreen .settingsRow {
  min-height: 50px;
  padding: 8px 12px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(120, 70, 90, 0.045);
}

#profileScreen .settingsRow h3 {
  font-size: 0.92rem;
}

#profileScreen .settingsRow p {
  font-size: 0.78rem;
  line-height: 1.32;
}

#profileScreen .settingsRow [data-icon] {
  width: 28px;
  min-width: 28px;
}

#profileScreen .themePickerSection h2 {
  font-size: clamp(1.45rem, 5vw, 1.85rem);
}

[data-theme="dark"] .phoneShell #profileScreen .settingsListDetails,
[data-theme="moonlit"] .phoneShell #profileScreen .settingsListDetails {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

[data-theme="dark"] .phoneShell #profileScreen .settingsList h2,
[data-theme="dark"] .phoneShell #profileScreen .themePickerSection h2,
[data-theme="dark"] .phoneShell #profileScreen .settingsListDetails > summary h2,
[data-theme="moonlit"] .phoneShell #profileScreen .settingsList h2,
[data-theme="moonlit"] .phoneShell #profileScreen .themePickerSection h2,
[data-theme="moonlit"] .phoneShell #profileScreen .settingsListDetails > summary h2 {
  color: #f3b9d0 !important;
}

[data-theme="dark"] .phoneShell #profileScreen .settingsListDetails > summary::after,
[data-theme="moonlit"] .phoneShell #profileScreen .settingsListDetails > summary::after {
  color: #f6d4e4;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

/* You tab — full current-version polish sweep */
#profileScreen {
  --you-row-radius: 20px;
  --you-pink: #b75c84;
  --you-ink: #4e3343;
}

#profileScreen .profileFocusCard,
#profileScreen .youOverviewCard,
#profileScreen .youCommandStrip,
#profileScreen .youSettingsGroup,
#profileScreen .themePickerSection,
#profileScreen > .settingsList:not(.settingsListDetails) {
  border-radius: 24px;
  border-color: rgba(232, 168, 188, 0.2);
  background:
    radial-gradient(circle at 92% 8%, rgba(232, 168, 188, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 252, 253, 0.84), rgba(255, 247, 251, 0.62));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 16px 34px rgba(106, 67, 88, 0.055);
}

#profileScreen .profileFocusCard,
#profileScreen .youOverviewCard,
#profileScreen .youCommandStrip,
#profileScreen .youSettingsGroup {
  padding: 14px;
}

#profileScreen .profileFocusCard {
  margin-top: 10px;
}

#profileScreen .profilePregnancyWeekMain {
  gap: 2px;
}

#profileScreen .profilePregnancyWeekMain strong {
  color: var(--you-ink);
  font-size: clamp(1.18rem, 4.8vw, 1.65rem);
  line-height: 1.02;
}

#profileScreen .profilePregnancyWeekMain p:not(.label) {
  font-size: 0.86rem;
  line-height: 1.3;
}

#profileScreen .youOverviewCard .cardTop {
  align-items: center;
  gap: 12px;
}

#profileScreen .youOverviewCard h2 {
  color: var(--you-ink);
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  line-height: 1.05;
}

#profileScreen .profileAccountEmail {
  margin-top: 2px;
  font-size: 0.78rem;
}

#profileScreen .profileAvatar {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 17px;
  background: linear-gradient(135deg, #b75c84, #e8a8bc);
  box-shadow: 0 12px 24px rgba(183, 92, 132, 0.16);
}

#profileScreen .profileStats {
  margin-top: 12px;
  gap: 8px;
}

#profileScreen .profileStats div {
  min-height: 52px;
  padding: 9px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

#profileScreen .profileStats b {
  font-size: 1.02rem;
  line-height: 1;
}

#profileScreen .profileStats span {
  font-size: 0.68rem;
  line-height: 1.1;
}

#profileScreen .youCommandStrip .powerToolsHeader {
  align-items: end;
  margin-bottom: 10px;
}

#profileScreen .youCommandStrip .powerToolsHeader .label,
#profileScreen .settingsList .label,
#profileScreen .profileIdentitySummary .label {
  color: var(--you-pink);
}

#profileScreen .youCommandStrip .powerToolsHeader span {
  color: var(--luma-text-muted);
  font-size: 0.74rem;
  line-height: 1.25;
  text-align: right;
}

#profileScreen .youCommandStrip .powerToolsRow {
  gap: 8px;
}

#profileScreen .youCommandStrip .powerToolBtn {
  min-height: 64px;
  padding: 9px 8px;
  border-radius: 18px;
}

#profileScreen .youCommandStrip .powerToolBtn [data-icon] {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

#profileScreen .youCommandStrip .powerToolBtn strong {
  font-size: 0.72rem;
  line-height: 1.05;
}

#profileScreen .settingsSectionLead,
#profileScreen .settingsSectionIntro,
#profileScreen .themePickerLead {
  color: var(--luma-text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

#profileScreen .profileIdentityCard {
  border-radius: var(--you-row-radius);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 24px rgba(106, 67, 88, 0.05);
}

#profileScreen .profileIdentitySummary {
  min-height: 54px;
  padding: 10px 12px;
}

#profileScreen .profileIdentitySummary h3 {
  color: var(--you-ink);
  font-size: 0.94rem;
  line-height: 1.1;
}

#profileScreen .profileIdentityChevron {
  width: 30px;
  height: 30px;
  font-size: 16px;
  background: rgba(232, 168, 188, 0.22);
  color: var(--you-pink);
}

#profileScreen .settingsListDetails {
  margin-top: 8px;
  border-radius: var(--you-row-radius);
}

#profileScreen .settingsListDetails > summary {
  min-height: 42px;
  padding: 5px 10px 5px 16px;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
}

#profileScreen .settingsListDetails:not([open]) > summary {
  min-height: 42px;
}

#profileScreen .settingsListDetails > summary h2 {
  color: var(--you-pink) !important;
  font-size: clamp(1rem, 3.5vw, 1.22rem);
  line-height: 1;
  align-self: center;
}

#profileScreen .settingsListDetails > summary p {
  max-width: 30rem;
  margin: 3px auto 0;
}

#profileScreen .settingsListDetails > summary::after {
  width: 28px;
  height: 28px;
  font-size: 0.82rem;
}

#profileScreen .settingsListDetails[open] {
  padding-bottom: 8px;
}

#profileScreen .settingsRow {
  min-height: 46px;
  margin: 8px 10px;
  padding: 8px 10px;
  border-radius: 17px;
  align-items: center;
}

#profileScreen .settingsRow h3 {
  font-size: 0.88rem;
  line-height: 1.12;
}

#profileScreen .settingsRow p {
  margin-top: 2px;
  font-size: 0.74rem;
}

#profileScreen .settingsToggleRow input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

#profileScreen .checkInCard,
#profileScreen .launchReadinessPanel,
#profileScreen .remindersStudio {
  margin: 8px 10px;
  border-radius: 18px;
}

#profileScreen .themePickerSection {
  margin-top: 10px;
  padding: 14px;
}

#profileScreen .themePickerSection h2,
#profileScreen > .settingsList:not(.settingsListDetails) > h2 {
  color: var(--you-pink) !important;
  font-family: var(--luma-font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  font-size: clamp(1.25rem, 5vw, 1.65rem);
  line-height: 1.05;
}

#profileScreen .themePickerGrid {
  gap: 8px;
}

#profileScreen .themePickerCard {
  min-height: 72px;
  padding: 10px;
  border-radius: 18px;
}

#profileScreen > .settingsList:last-child {
  padding: 14px;
  margin-bottom: 116px;
}

#profileScreen > .settingsList:last-child .wideButton {
  min-height: 44px;
  border-radius: 18px;
}

[data-theme="dark"] .phoneShell #profileScreen,
[data-theme="moonlit"] .phoneShell #profileScreen {
  --you-pink: #f2b8ce;
  --you-ink: #fff4fa;
}

[data-theme="dark"] .phoneShell #profileScreen .profileFocusCard,
[data-theme="dark"] .phoneShell #profileScreen .youOverviewCard,
[data-theme="dark"] .phoneShell #profileScreen .youCommandStrip,
[data-theme="dark"] .phoneShell #profileScreen .youSettingsGroup,
[data-theme="dark"] .phoneShell #profileScreen .themePickerSection,
[data-theme="dark"] .phoneShell #profileScreen > .settingsList:not(.settingsListDetails),
[data-theme="moonlit"] .phoneShell #profileScreen .profileFocusCard,
[data-theme="moonlit"] .phoneShell #profileScreen .youOverviewCard,
[data-theme="moonlit"] .phoneShell #profileScreen .youCommandStrip,
[data-theme="moonlit"] .phoneShell #profileScreen .youSettingsGroup,
[data-theme="moonlit"] .phoneShell #profileScreen .themePickerSection,
[data-theme="moonlit"] .phoneShell #profileScreen > .settingsList:not(.settingsListDetails) {
  background:
    radial-gradient(circle at 90% 0%, rgba(242, 184, 206, 0.11), transparent 34%),
    rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .phoneShell #profileScreen .profileStats div,
[data-theme="dark"] .phoneShell #profileScreen .profileIdentityCard,
[data-theme="moonlit"] .phoneShell #profileScreen .profileStats div,
[data-theme="moonlit"] .phoneShell #profileScreen .profileIdentityCard {
  background: rgba(255, 255, 255, 0.075);
}

/* You tab — compact final row harmonization */
#profileScreen .settingsListDetails {
  width: var(--luma-content-rail, calc(100% - 28px));
  margin: 6px auto;
  border-radius: 18px;
  overflow: hidden;
}

#profileScreen .settingsListDetails > summary {
  min-height: 36px !important;
  padding: 4px 8px 4px 14px !important;
  grid-template-columns: 24px minmax(0, 1fr) 26px !important;
  align-items: center;
}

#profileScreen .settingsListDetails:not([open]) > summary {
  min-height: 36px !important;
}

#profileScreen .settingsListDetails > summary h2 {
  color: var(--you-pink) !important;
  font-family: var(--luma-font-display) !important;
  font-style: italic !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  font-size: clamp(1.05rem, 4vw, 1.34rem) !important;
  line-height: 1 !important;
  text-align: center;
}

#profileScreen .settingsListDetails > summary p {
  display: none;
}

#profileScreen .settingsListDetails > summary::after {
  width: 25px !important;
  height: 25px !important;
  font-size: 0.76rem !important;
  justify-self: end;
}

#profileScreen .settingsListDetails[open] > summary {
  border-bottom-color: rgba(232, 168, 188, 0.34);
}

#profileScreen .settingsListDetails[open] > summary h2 {
  color: var(--you-pink) !important;
}

#profileScreen .settingsListDetails[open] {
  padding-bottom: 6px;
}

#profileScreen .settingsListDetails .settingsRow,
#profileScreen .settingsListDetails .checkInCard,
#profileScreen .settingsListDetails .remindersStudio,
#profileScreen .settingsListDetails .launchReadinessPanel {
  width: calc(100% - 18px);
  margin-left: auto;
  margin-right: auto;
}

#profileScreen .settingsListDetails .settingsRow {
  min-height: 42px;
  padding: 7px 9px;
}

/* Luma chat — keep the current prompt system visible and tappable in every focus. */
.phoneShell .lumaSheet {
  overflow-y: auto;
  overflow-x: hidden;
}

.phoneShell .lumaSheetChat {
  display: flex !important;
  flex-direction: column !important;
  overflow: visible;
  padding-bottom: 24px;
}

.phoneShell .lumaSheetChat .lumaSheetTodayCard {
  order: 1 !important;
}

.phoneShell .lumaSheetChat .memoryStrip {
  order: 2 !important;
}

.phoneShell .lumaSheetChat .lumaChatControls {
  order: 3 !important;
}

.phoneShell .lumaSheetChat .lumaPreviousChatsPanel {
  order: 4 !important;
}

.phoneShell .lumaSheetChat .lumaConcierge {
  order: 5 !important;
}

.phoneShell .lumaSheetChat .mobileMessages {
  order: 6 !important;
  flex: 0 0 auto;
  min-height: 92px;
  max-height: min(42vh, 360px);
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.phoneShell .lumaSheetChat .mobileChatForm {
  order: 7 !important;
}

.phoneShell .lumaSheetChat .lumaChatUpgradeNote {
  order: 8 !important;
}

.phoneShell .lumaSheetChat .lumaVoicePanel {
  order: 9 !important;
}

.phoneShell .lumaConcierge {
  overflow: visible;
}

.phoneShell .lumaConciergePanel {
  overflow: visible;
}

.phoneShell .lumaPromptGroupRow,
.phoneShell #lumaConciergePromptRow {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 8px;
  overflow: visible !important;
  padding: 2px 0 0;
}

.phoneShell .lumaPromptGroupRow button,
.phoneShell #lumaConciergePromptRow button {
  flex: 0 1 auto !important;
  max-width: 100%;
  min-height: 38px;
  white-space: normal;
  line-height: 1.08;
}

.phoneShell #lumaConciergePromptRow .lumaPromptPrimary {
  min-width: min(100%, 144px);
}


.calendarMoreChrome {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(168, 88, 120, 0.14);
}

.calendarMoreChrome > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--luma-text);
  padding: 8px 0;
}

.calendarMoreChrome > summary::-webkit-details-marker {
  display: none;
}


/* logoutline1-base: no outer framed panel around Track Log cards */
.unifiedTrackLogPanel {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.unifiedTrackLogPanel::after,
.unifiedTrackLogPanel::before {
  content: none !important;
  display: none !important;
}

/* Wide windows keep a small margin. Phones stay full screen. */
@media (hover: hover) and (pointer: fine) and (min-width: 521px) {
  body {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    height: 100dvh;
    min-height: 0;
    padding: 16px;
    overflow: hidden;
  }
}
