/**
 * Luma Refined design layer
 * Active only when html[data-design="refined"].
 * Classic look = no attribute overrides; original mobile.css unchanged.
 */

[data-design="refined"] {
  --r-radius-sm: 14px;
  --r-radius-md: 22px;
  --r-radius-lg: 30px;
  --r-space-1: 8px;
  --r-space-2: 12px;
  --r-space-3: 20px;
  --r-space-4: 28px;
  /* Type roles: display = screen/section titles (often italic); sans = UI + body */
  --r-display: var(--luma-font-display, "Cormorant Garamond", Georgia, "Times New Roman", ui-serif, serif);
  --r-sans: var(--luma-font-sans, "Nunito", ui-sans-serif, system-ui, sans-serif);
  --r-accent-cycle: #e8a8bc;
  --r-accent-preg: #c5e8dc;
  /* Retired signature plum. Live UI uses the current blush accent. */
  --luma-signature-plum: var(--luma-accent, #e8a8bc);
  --luma-signature-rose: #f0b8cc;
  --plum: var(--luma-accent, #e8a8bc);
  --r-motion: 320ms cubic-bezier(0.22, 1, 0.36, 1);
  --luma-content-rail: calc(100% - 28px);
  --luma-shell-max: 392px;
  --luma-neo-font: var(--r-sans);
  font-family: var(--r-sans);
}

[data-design="refined"] body {
  font-family: var(--r-sans);
}

[data-design="refined"] .phoneShell {
  font-family: var(--r-sans);
  width: min(var(--luma-shell-max), calc(100vw - 24px));
  max-width: var(--luma-shell-max);
}

/* Focus atmospheres on the shell */
[data-design="refined"] body.pregnancyFocusMode .phoneShell {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(255, 200, 218, 0.36), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 30%, rgba(190, 220, 200, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(255, 210, 220, 0.16), transparent 45%),
    linear-gradient(165deg, #fff0f4 0%, #f8f4f6 42%, #f0f6f2 100%);
}


[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .phoneShell {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(184, 176, 216, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 30%, rgba(168, 200, 208, 0.16), transparent 50%),
    linear-gradient(165deg, #2a2638 0%, #342e44 42%, #2e2a38 100%);
}

[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .phoneShell {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(224, 168, 188, 0.24), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 30%, rgba(168, 212, 200, 0.14), transparent 50%),
    linear-gradient(165deg, #241c22 0%, #2e242a 42%, #2a2228 100%);
}

[data-design="refined"][data-theme="hearth"] body.pregnancyFocusMode .phoneShell {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(168, 196, 176, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 30%, rgba(232, 180, 160, 0.2), transparent 50%),
    linear-gradient(165deg, #f4ebe4 0%, #faf4f0 42%, #f0e8e2 100%);
}

[data-design="refined"] body:not(.pregnancyFocusMode) .phoneShell {
  background:
    radial-gradient(ellipse 90% 55% at 18% -6%, rgba(255, 190, 210, 0.48), transparent 52%),
    radial-gradient(ellipse 70% 45% at 95% 22%, rgba(255, 210, 220, 0.28), transparent 48%),
    radial-gradient(ellipse 55% 40% at 8% 92%, rgba(190, 220, 200, 0.18), transparent 45%),
    var(--luma-shell, #fff4f7);
}

[data-design="refined"][data-theme="moonlit"] body:not(.pregnancyFocusMode) .phoneShell {
  background:
    radial-gradient(ellipse 90% 55% at 40% -10%, rgba(184, 176, 216, 0.32), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(168, 200, 208, 0.16), transparent 50%),
    linear-gradient(165deg, #2a2638 0%, #342e44 50%, #2e2a38 100%);
}

[data-design="refined"][data-theme="dark"] body:not(.pregnancyFocusMode) .phoneShell {
  background:
    radial-gradient(ellipse 85% 50% at 25% -8%, rgba(224, 168, 188, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 70%, rgba(168, 212, 200, 0.12), transparent 50%),
    linear-gradient(165deg, #241c22 0%, #2e242a 50%, #2a2228 100%);
}

[data-design="refined"][data-theme="hearth"] body:not(.pregnancyFocusMode) .phoneShell {
  background:
    radial-gradient(ellipse 85% 50% at 20% -8%, rgba(232, 180, 160, 0.32), transparent 52%),
    radial-gradient(ellipse 60% 40% at 95% 80%, rgba(168, 196, 176, 0.2), transparent 48%),
    linear-gradient(165deg, #faf4f0 0%, #f6ebe4 50%, #f0e6e0 100%);
}

[data-design="refined"][data-theme="light"] body.pregnancyFocusMode .phoneShell,
[data-design="refined"]:not([data-theme]) body.pregnancyFocusMode .phoneShell,
html[data-design="refined"]:not([data-theme="dark"]):not([data-theme="moonlit"]):not([data-theme="hearth"]) body.pregnancyFocusMode .phoneShell {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(255, 200, 218, 0.4), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 40%, rgba(190, 220, 200, 0.24), transparent 50%),
    linear-gradient(165deg, #fff0f4 0%, #faf4f6 45%, #f2f6f2 100%);
}

[data-design="refined"] .phoneShell .appScreen {
  padding-inline: 16px;
}

[data-design="refined"] .phoneShell .appScreen.active > :is(
  header,
  section,
  details,
  .trackSegmentBar,
  #trackSubTabs,
  .careLibrary,
  .hubSection,
  .lumaHubHero,
  .lumaSupportDrawer,
  .lumaIntelligenceCard,
  .youOverviewCard,
  .youCommandStrip,
  .youSettingsGroup,
  .profileFocusCard,
  .themePickerSection,
  .settingsList
) {
  width: 100%;
  max-width: var(--luma-content-rail);
  margin-inline: auto;
  box-sizing: border-box;
}

/* ——— Home first viewport: one composition ——— */
[data-design="refined"] #todayScreen.homeScreen {
  gap: var(--r-space-3);
}

[data-design="refined"] #todayScreen .homeDaySummary {
  position: relative;
  isolation: isolate;
  min-height: min(52vh, 420px);
  padding: var(--r-space-3);
  padding-bottom: var(--r-space-4);
  border: 0;
  border-radius: var(--r-radius-lg);
  overflow: hidden;
  box-shadow: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--r-space-2);
}

/* Trying / tracking home: compact type hero; pregnancy keeps taller photo hero */
[data-design="refined"] body:not(.pregnancyFocusMode) #todayScreen .homeDaySummary {
  min-height: 0;
  padding: var(--r-space-2) var(--r-space-3) var(--r-space-3);
}

[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen.homeScreen {
  gap: 10px;
}

[data-design="refined"] #todayScreen .homeDaySummary::before,
[data-design="refined"] #todayScreen .homeDaySummary::after {
  display: none;
}

[data-design="refined"] #todayScreen .homeAtmospherePreview {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  height: 100%;
  min-height: 100%;
  border-radius: var(--r-radius-lg);
  box-shadow: none;
}

[data-design="refined"] #todayScreen .homeAtmospherePreview img {
  min-height: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.02);
  transition: transform 1.2s var(--r-motion), opacity var(--r-motion);
}

[data-design="refined"] #todayScreen .homeAtmospherePreview::after {
  background:
    linear-gradient(180deg, rgba(20, 16, 22, 0.08) 0%, rgba(20, 16, 22, 0.15) 35%, rgba(20, 16, 22, 0.72) 100%);
}

/* Stronger top scrim so phase copy stays readable on bright windows / sheets */
[data-design="refined"] body:not(.pregnancyFocusMode) #todayScreen .homeAtmospherePreview::after {
  background:
    linear-gradient(
      180deg,
      rgba(18, 12, 20, 0.55) 0%,
      rgba(18, 12, 20, 0.28) 22%,
      rgba(18, 12, 20, 0.12) 42%,
      rgba(18, 12, 20, 0.55) 72%,
      rgba(18, 12, 20, 0.78) 100%
    );
}

[data-design="refined"] #todayScreen .homeHeroPhasePill,
[data-design="refined"] #todayScreen .homeDaySummary h2,
[data-design="refined"] #todayScreen .homeDaySummary #todayHeadline,
[data-design="refined"] #todayScreen .homeDaySummary .homePhaseLine,
[data-design="refined"] #todayScreen .homeDaySummary #todayPhaseLine {
  position: relative;
  z-index: 2;
  max-width: 18ch;
}

[data-design="refined"] #todayScreen .homeHeroPhasePill {
  margin: 0 0 6px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: rgba(255, 248, 244, 0.78);
  font-family: var(--r-sans);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

[data-design="refined"] body:not(.pregnancyFocusMode) #todayScreen .homeHeroPhasePill {
  max-width: 28ch;
  color: #fffaf6;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-shadow:
    0 1px 2px rgba(12, 8, 14, 0.85),
    0 6px 18px rgba(12, 8, 14, 0.55);
}

[data-design="refined"] body:not(.pregnancyFocusMode) #todayScreen .homeDaySummary h2,
[data-design="refined"] body:not(.pregnancyFocusMode) #todayScreen .homeDaySummary #todayHeadline {
  text-shadow:
    0 1px 2px rgba(12, 8, 14, 0.55),
    0 10px 28px rgba(12, 8, 14, 0.45);
}

[data-design="refined"] body:not(.pregnancyFocusMode) #todayScreen .homeDaySummary .homePhaseLine,
[data-design="refined"] body:not(.pregnancyFocusMode) #todayScreen .homeDaySummary #todayPhaseLine {
  color: rgba(255, 250, 246, 0.94);
  text-shadow:
    0 1px 2px rgba(12, 8, 14, 0.7),
    0 6px 16px rgba(12, 8, 14, 0.4);
}

[data-design="refined"] #todayScreen .homeDaySummary h2,
[data-design="refined"] #todayScreen .homeDaySummary #todayHeadline {
  margin: 0;
  font-family: var(--r-display);
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #fffaf8;
  text-shadow: 0 10px 36px rgba(60, 30, 45, 0.3);
  max-width: 12ch;
}

[data-design="refined"] #todayScreen .homeDaySummary .homePhaseLine,
[data-design="refined"] #todayScreen .homeDaySummary #todayPhaseLine {
  margin: 0;
  max-width: 28ch;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.45;
  color: rgba(255, 248, 244, 0.86);
}

[data-design="refined"] .homeGreetingEyebrow {
  font-family: var(--r-sans);
  font-weight: 550;
  letter-spacing: 0.02em;
}

[data-design="refined"] .homeMobileHeader .todayTrackingModeChip {
  border-radius: var(--r-radius-sm);
}

/* Primary CTA — one accent job */
[data-design="refined"] .homePrimaryAction {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: var(--r-space-1);
}

[data-design="refined"] .homePrimaryActionBtn,
[data-design="refined"] .wideButton.homePrimaryActionBtn {
  border-radius: var(--r-radius-md);
  background: linear-gradient(135deg, #f0b8cc 0%, #e8a8bc 48%, #e098b0 100%);
  box-shadow: 0 12px 28px rgba(220, 140, 170, 0.28);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #4a3040;
}

[data-design="refined"] body.pregnancyFocusMode .homePrimaryActionBtn,
[data-design="refined"] body.pregnancyFocusMode .wideButton.homePrimaryActionBtn {
  background: linear-gradient(135deg, #d4f0e6 0%, #c5e8dc 50%, #b4dccf 100%);
  color: #2f4a42;
  box-shadow: 0 12px 28px rgba(120, 180, 160, 0.26);
}

[data-design="refined"] .homePrimaryActionHint {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--luma-text-muted);
  font-weight: 450;
}

/* Daily insight — same soft surface language as trust card, not a second hero */
[data-design="refined"] .homeDailyInsightCard {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(183, 119, 149, 0.18);
  background:
    linear-gradient(160deg, rgba(255, 250, 247, 0.96), rgba(236, 248, 244, 0.78)),
    var(--luma-glass-surface, rgba(255, 252, 250, 0.9));
  box-shadow: 0 14px 32px rgba(116, 60, 101, 0.08);
  display: grid;
  gap: 6px;
}

[data-design="refined"] .homeDailyInsightCard .label {
  letter-spacing: 0.1em;
  font-size: 11px;
  opacity: 0.78;
  margin: 0;
}

[data-design="refined"] .homeDailyInsightCard h2 {
  margin: 0;
  font-family: var(--r-display);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--luma-text-heading);
}

[data-design="refined"] .homeDailyInsightCard p:not(.label) {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--luma-text-secondary);
}

[data-design="refined"] .homeDailyInsightAction {
  justify-self: start;
  margin-top: 4px;
  font-weight: 600;
}

[data-design="refined"] .homeConfidenceChip {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(90, 70, 80, 0.78);
}

[data-design="refined"] .learnCommunityTeaser {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(183, 119, 149, 0.16);
  background: linear-gradient(160deg, rgba(255, 250, 247, 0.92), rgba(240, 246, 244, 0.75));
  display: grid;
  gap: 6px;
}

[data-design="refined"] .learnCommunityTeaser .label {
  margin: 0;
  letter-spacing: 0.1em;
  font-size: 11px;
  opacity: 0.75;
}

[data-design="refined"] .learnCommunityTeaser h2 {
  margin: 0;
  font-family: var(--r-display);
  font-size: 1.15rem;
  font-weight: 600;
}

[data-design="refined"] .learnCommunityTeaser p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--luma-text-secondary);
}

[data-design="refined"] body.pregnancyFocusMode .homeDailyInsightCard {
  border-color: rgba(120, 170, 150, 0.28);
  background:
    linear-gradient(160deg, rgba(244, 252, 249, 0.96), rgba(230, 244, 238, 0.82)),
    var(--luma-glass-surface, rgba(255, 252, 250, 0.9));
}

/* Flatten Luma snippet — no nested card chrome */
[data-design="refined"] .homeLumaSnippet {
  margin: 0;
  padding: var(--r-space-2) 2px var(--r-space-1);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 6px;
}

[data-design="refined"] .homeLumaSnippet .label {
  letter-spacing: 0.12em;
  font-size: 11px;
  opacity: 0.75;
}

[data-design="refined"] .homeLumaSnippetText {
  margin: 0;
  font-family: var(--r-display);
  font-size: 1.15rem;
  font-weight: 550;
  line-height: 1.35;
  color: var(--luma-text-heading);
}

[data-design="refined"] .homeLumaSnippet .homeLumaPrompts {
  margin: 2px 0 0;
}

[data-design="refined"] .homeLumaSnippet .homeLumaPrompts[hidden] {
  display: none;
}

[data-design="refined"] #profileScreen .profileAccountEmail[hidden] {
  display: none !important;
}

/* Pregnancy: Story sheet layout (direction C) — keep theme colors */
[data-design="refined"] body.pregnancyFocusMode #todayScreen > .homeDaySummary {
  min-height: 0;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  border: 0;
}

[data-design="refined"] body.pregnancyFocusMode #todayScreen > .homePrimaryAction,
[data-design="refined"] body.pregnancyFocusMode #todayScreen > .homeLumaSnippet {
  display: none;
}

/* Pregnancy Home stack: weekly cover → baby + week tracker → everything else.
   Only when Home is active — otherwise !important keeps Home visible under Track. */
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen.appScreen.active {
  display: flex !important;
  flex-direction: column;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen.appScreen:not(.active) {
  display: none !important;
}

[data-design="refined"] body.pregnancyFocusMode #todayScreen > .homeMobileHeader {
  order: 0;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen > .homeTrustCard {
  order: 1;
  /* Match Luma baby / hub width — don't sit on the narrower content rail. */
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  box-sizing: border-box;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen > .homeDailyInsightCard {
  order: 1;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  box-sizing: border-box;
}

[data-design="refined"] body.pregnancyFocusMode #todayScreen > .homePregnancyHub {
  order: 2;
  display: grid;
  gap: 0;
  margin: 0;
}

[data-design="refined"] body.pregnancyFocusMode #todayScreen > .homeDaySummary,
[data-design="refined"] body.pregnancyFocusMode #todayScreen > .homePrimaryAction,
[data-design="refined"] body.pregnancyFocusMode #todayScreen > .homeCleanupSupport,
[data-design="refined"] body.pregnancyFocusMode #todayScreen > .homeFocusDeck,
[data-design="refined"] body.pregnancyFocusMode #todayScreen > .homeMoreZone,
[data-design="refined"] body.pregnancyFocusMode #todayScreen > :not(.homeMobileHeader):not(.homeTrustCard):not(.homeDailyInsightCard):not(.homePregnancyHub) {
  order: 3;
}

[data-design="refined"] body.pregnancyFocusMode .homePregnancyHub {
  display: grid;
  gap: 0;
  margin: 0;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekCard.pregnancyStoryLayout {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekCard::before {
  display: none;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryHero {
  position: relative;
  isolation: isolate;
  min-height: 300px;
  margin: 0 0 10px;
  padding: 28px 20px 22px;
  box-sizing: border-box;
  border-radius: var(--r-radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 75% 15%, rgba(255, 220, 230, 0.7), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(190, 220, 200, 0.4), transparent 50%),
    linear-gradient(165deg, #f0c8d4 0%, #e8d0dc 38%, #d4e4dc 100%);
  color: #5a3a48;
  box-shadow: 0 18px 40px rgba(200, 140, 160, 0.18);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryHero::before,
[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryHero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryHero::before {
  inset: 6% 5% auto;
  height: 68%;
  border-radius: 42% 50% 44% 56%;
  background:
    radial-gradient(ellipse at 35% 45%, rgba(255, 248, 252, 0.72), transparent 58%),
    radial-gradient(ellipse at 72% 48%, rgba(196, 238, 226, 0.38), transparent 62%);
  filter: blur(10px);
  opacity: 0.9;
  animation: homeTypeBreath 7s ease-in-out infinite;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryHero::after {
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .pregnancyStoryHero {
  background:
    radial-gradient(ellipse 80% 60% at 70% 15%, rgba(184, 176, 216, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(168, 200, 208, 0.22), transparent 50%),
    linear-gradient(165deg, #3a3550 0%, #443e58 50%, #322e44 100%);
  color: #f0ecf8;
  box-shadow: 0 18px 40px rgba(20, 16, 32, 0.28);
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .pregnancyStoryHero::before,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .pregnancyStoryHero::before {
  background:
    radial-gradient(ellipse at 34% 44%, rgba(230, 218, 255, 0.22), transparent 58%),
    radial-gradient(ellipse at 76% 50%, rgba(158, 234, 218, 0.18), transparent 62%);
  opacity: 1;
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .pregnancyStoryHero::after,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .pregnancyStoryHero::after {
  opacity: 0.22;
  mix-blend-mode: overlay;
}

[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .pregnancyStoryHero {
  background:
    radial-gradient(ellipse 80% 60% at 70% 15%, rgba(224, 168, 188, 0.32), transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(168, 212, 200, 0.18), transparent 50%),
    linear-gradient(165deg, #3a2a34 0%, #443840 50%, #322830 100%);
  color: #faf2f5;
  box-shadow: 0 18px 40px rgba(20, 12, 18, 0.28);
}

[data-design="refined"][data-theme="hearth"] body.pregnancyFocusMode .pregnancyStoryHero {
  background:
    radial-gradient(ellipse 80% 60% at 70% 15%, rgba(232, 180, 160, 0.4), transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(168, 196, 176, 0.28), transparent 50%),
    linear-gradient(165deg, #e8c8b8 0%, #dcc8b8 45%, #c8d4c0 100%);
  color: #3a2e2a;
  box-shadow: 0 18px 40px rgba(160, 120, 100, 0.16);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyNeoBadge {
  display: none;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyNeoBackdrop {
  display: block;
  opacity: 0.78;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyNeoGrid {
  opacity: 0.42;
  background-size: 26px 26px;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyNeoOrbit {
  left: 50%;
  top: 52%;
  opacity: 0.72;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyNeoOrbit--1 {
  width: 206px;
  height: 206px;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyNeoOrbit--2 {
  width: 164px;
  height: 164px;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyNeoSweep::after {
  opacity: 0.72;
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .pregnancyNeoGrid,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .pregnancyNeoGrid {
  opacity: 0.32;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryBrand {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 3;
  margin: 0;
  grid-column: auto;
  grid-row: auto;
  justify-self: start;
  text-align: left;
  font-family: var(--r-sans);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, currentColor 92%, transparent);
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .pregnancyStoryBrand,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .pregnancyStoryBrand {
  color: rgba(255, 248, 244, 0.92);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWombVisual {
  position: relative !important;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: min(100%, 210px) !important;
  max-width: 210px !important;
  height: auto !important;
  aspect-ratio: 0.82;
  margin: 18px 0 4px !important;
  box-sizing: border-box;
  opacity: 0.98;
  pointer-events: none;
  z-index: 1;
  transform: none;
  transform-origin: center center;
  overflow: visible;
  isolation: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 16px 34px rgba(80, 50, 70, 0.22));
  animation: refinedWombBreathe 5.5s ease-in-out infinite;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWombAura {
  display: none;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWombShell {
  width: 84%;
  height: 87%;
  background:
    linear-gradient(165deg, rgba(255, 252, 248, 0.94) 0%, rgba(248, 230, 228, 0.72) 40%, rgba(220, 236, 232, 0.82) 100%);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryHeroCopy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  max-width: none;
  align-self: start;
  padding: 4px 2px 0;
  margin: 0;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryWeekLine {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--r-display);
  line-height: 0.95;
  color: inherit;
  text-shadow: 0 8px 24px rgba(80, 100, 90, 0.12);
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .pregnancyStoryWeekLine,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .pregnancyStoryWeekLine {
  color: #f4fffc;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryWeekPrefix {
  font-size: clamp(1.7rem, 6vw, 2.15rem);
  font-weight: 550;
  letter-spacing: -0.02em;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekNumber {
  position: static;
  display: inline;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  color: inherit;
  font-family: var(--r-display);
  font-size: clamp(3.45rem, 14vw, 4.55rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyNeoMilestone {
  margin: 0;
  font-family: var(--r-display);
  font-size: clamp(1.24rem, 4.4vw, 1.55rem);
  font-weight: 550;
  line-height: 1.2;
  color: color-mix(in srgb, currentColor 92%, transparent);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekSizeChip {
  margin: 0;
  color: color-mix(in srgb, currentColor 88%, transparent);
  font-weight: 550;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  line-height: 1.3;
  opacity: 0.9;
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .pregnancyNeoMilestone,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .pregnancyNeoMilestone {
  color: rgba(242, 255, 251, 0.92);
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .pregnancyWeekSizeChip,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .pregnancyWeekSizeChip {
  color: rgba(230, 248, 244, 0.78);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStorySheet {
  position: relative;
  z-index: 2;
  margin: var(--r-space-2) 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: var(--r-space-2);
  color: var(--luma-text);
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .pregnancyStorySheet,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .pregnancyStorySheet {
  background: transparent;
  box-shadow: none;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryTimeline {
  position: relative;
  padding-left: 16px;
  display: grid;
  gap: 10px;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryTimeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: color-mix(in srgb, var(--r-accent-preg) 28%, transparent);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryTimeline article {
  position: relative;
  padding-left: 8px;
  display: grid;
  gap: 2px;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryTimeline article::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--r-accent-preg) 55%, #fff);
  box-shadow: 0 0 0 3px var(--luma-surface-card, #fffdf8);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryTimeline article:first-child::before {
  background: var(--r-accent-preg);
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .pregnancyStoryTimeline article::before,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .pregnancyStoryTimeline article::before {
  box-shadow: 0 0 0 3px var(--luma-surface-card, #243048);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryTimeline h4 {
  margin: 0;
  font-family: var(--r-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--luma-text-muted);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryTimeline p {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 450;
  color: var(--luma-text-heading);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekNav {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekNavLabel strong,
[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekNavLabel .label {
  color: var(--luma-text-heading);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekNavBtn {
  background: color-mix(in srgb, var(--r-accent-preg) 14%, transparent);
  color: #3d6a5c;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyMetaRow {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  gap: var(--r-space-2);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyDueDateChip,
[data-design="refined"] body.pregnancyFocusMode .pregnancyTrimesterProgress {
  background: transparent;
  border: 0;
  box-shadow: none;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyDueDateChip .label,
[data-design="refined"] body.pregnancyFocusMode .pregnancyDueDateEditHint,
[data-design="refined"] body.pregnancyFocusMode .pregnancyDaysUntil,
[data-design="refined"] body.pregnancyFocusMode .pregnancyTrimesterSub,
[data-design="refined"] body.pregnancyFocusMode .pregnancyLmpLine {
  color: var(--luma-text-muted);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyDueDateChip strong,
[data-design="refined"] body.pregnancyFocusMode #pregnancyTrimesterProgressLabel,
[data-design="refined"] body.pregnancyFocusMode #pregnancyOverallPercent,
[data-design="refined"] body.pregnancyFocusMode #pregnancyTrimesterSubLabel,
[data-design="refined"] body.pregnancyFocusMode #pregnancyTrimesterPercent {
  color: var(--luma-text-heading);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyLmpLine {
  margin: 0;
  font-size: 12px;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryExtras {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  display: grid;
  gap: var(--r-space-2);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekActions {
  grid-template-columns: 1fr;
  gap: 10px;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekActions button {
  min-height: 48px;
  border: 0;
  border-radius: var(--r-radius-md);
  font-weight: 700;
  font-size: 0.94rem;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekActions button:first-child {
  background: linear-gradient(135deg, #d4f0e6 0%, #c5e8dc 50%, #b4dccf 100%);
  color: #2f4a42;
  box-shadow: 0 12px 28px rgba(120, 180, 160, 0.26);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekActions button:last-child {
  background: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 42%, transparent);
  color: var(--luma-text-heading);
  box-shadow: none;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekResetBtn {
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 18px;
  text-align: center;
}

[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .pregnancyWeekResetBtn,
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .pregnancyWeekResetBtn {
  color: #e8e2f0;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekCard.is-week-changing .pregnancyStoryHero {
  animation: refinedWeekFade 0.45s var(--r-motion);
}

/* Flatten nested reminder cards */
[data-design="refined"] .homeRemindersSurface {
  border: 1px solid var(--luma-ai-border);
  border-radius: var(--r-radius-lg);
  background: var(--luma-glass-surface);
  box-shadow: var(--luma-glass-surface-shadow);
}

[data-design="refined"] .homeRemindersHead h2 {
  font-family: var(--r-display);
  font-weight: 550;
}

[data-design="refined"] .homeRemindersSurface .todayAlertItem {
  border-radius: var(--r-radius-sm);
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

[data-design="refined"][data-theme="moonlit"] .homeRemindersSurface .todayAlertItem,
[data-design="refined"][data-theme="dark"] .homeRemindersSurface .todayAlertItem {
  background: rgba(255, 255, 255, 0.06);
}

[data-design="refined"] .homeAlertsWrap {
  border: 1px solid var(--luma-ai-border);
  border-radius: var(--r-radius-lg);
  background: var(--luma-glass-surface);
  box-shadow: var(--luma-glass-surface-shadow);
  overflow: hidden;
}

[data-design="refined"] .homeAlertsWrapSummary {
  padding: var(--r-space-3);
  font-family: var(--r-display);
  font-size: 1.15rem;
  font-weight: 550;
}

[data-design="refined"] .homeAlertsWrap .homeAlertsCard {
  margin: 0;
  padding: 0 var(--r-space-3) var(--r-space-3);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

[data-design="refined"] .homeAlertsWrap .homeAlertsCard > .cardTop {
  display: none;
}

[data-design="refined"] .homeAlertsCard .reminderRow,
[data-design="refined"] .homeAlertsList .reminderRow {
  border-radius: var(--r-radius-sm);
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

[data-design="refined"][data-theme="moonlit"] .homeAlertsCard .reminderRow,
[data-design="refined"][data-theme="dark"] .homeAlertsCard .reminderRow,
[data-design="refined"][data-theme="moonlit"] .homeAlertsList .reminderRow,
[data-design="refined"][data-theme="dark"] .homeAlertsList .reminderRow {
  background: rgba(255, 255, 255, 0.06);
}

/* More-for-today cards: quieter, shared radius */
[data-design="refined"] .homeMoreZone > summary {
  font-family: var(--r-display);
  font-size: clamp(1.2rem, 4.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--luma-text-heading);
}

[data-design="refined"] .homeFocusDeck {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent);
  border-radius: var(--r-radius-lg);
  background:
    radial-gradient(ellipse 75% 55% at 0% 0%, color-mix(in srgb, var(--luma-accent) 18%, transparent), transparent 58%),
    linear-gradient(160deg, var(--luma-surface-card) 0%, var(--luma-surface-card-alt) 100%);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--luma-accent) 10%, transparent);
  overflow: hidden;
}

[data-design="refined"] .homeFocusDeckHead {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

[data-design="refined"] .homeFocusDeckHead .label {
  margin: 0;
  color: var(--luma-accent-text, var(--luma-link));
}

[data-design="refined"] .homeFocusDeckHead h2 {
  margin: 0;
  font-family: var(--r-display);
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--luma-text-heading);
}

[data-design="refined"] .homeFocusDeckHead p:not(.label) {
  margin: 0;
  max-width: 58ch;
  color: var(--luma-text-muted);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
}

[data-design="refined"] .homeFocusDeckGrid--single {
  overflow-x: visible;
}

[data-design="refined"] .homeFocusDeckGrid--single .homeFocusTile {
  flex: 1 1 100%;
  max-width: none;
}

[data-design="refined"] .homeFocusDeckGrid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 1px 2px 4px;
}

[data-design="refined"] .homeFocusDeckGrid::-webkit-scrollbar {
  display: none;
}

[data-design="refined"] .homeFocusTile {
  flex: 0 0 min(78%, 310px);
  min-height: 138px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border-radius: var(--r-radius-md);
  border: 1px solid color-mix(in srgb, var(--luma-accent) 20%, transparent);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--luma-accent) 12%, white), var(--luma-surface-card));
  color: var(--luma-text);
  text-align: left;
  scroll-snap-align: start;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--luma-accent) 9%, transparent);
}

[data-design="refined"] .homeFocusTile span {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--luma-accent) 14%, transparent);
  color: var(--luma-accent-text, var(--luma-link));
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[data-design="refined"] .homeFocusTile strong {
  font-family: var(--r-display);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 650;
  line-height: 1.14;
  color: var(--luma-text-heading);
}

[data-design="refined"] .homeFocusTile em {
  font-style: normal;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.42;
  color: var(--luma-text-muted);
}

[data-design="refined"] body.pregnancyFocusMode .homeFocusDeck {
  border-color: color-mix(in srgb, var(--luma-accent-teal) 24%, transparent);
  background:
    radial-gradient(ellipse 78% 56% at 0% 0%, color-mix(in srgb, var(--luma-accent-teal) 18%, transparent), transparent 58%),
    linear-gradient(160deg, var(--luma-surface-card) 0%, var(--luma-accent-teal-soft) 70%, var(--luma-surface-card-alt) 100%);
}

[data-design="refined"] body.pregnancyFocusMode .homeFocusDeckHead .label,
[data-design="refined"] body.pregnancyFocusMode .homeFocusTile span {
  color: color-mix(in srgb, var(--luma-accent-teal) 44%, #24382f);
}

[data-design="refined"] body.pregnancyFocusMode .homeFocusTile {
  border-color: color-mix(in srgb, var(--luma-accent-teal) 24%, transparent);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--luma-accent-teal) 14%, white), var(--luma-surface-card));
}

[data-design="refined"][data-theme="dark"] .homeFocusDeck,
[data-design="refined"][data-theme="moonlit"] .homeFocusDeck,
[data-design="refined"][data-theme="dark"] .homeFocusTile,
[data-design="refined"][data-theme="moonlit"] .homeFocusTile {
  background:
    radial-gradient(ellipse 76% 56% at 0% 0%, color-mix(in srgb, var(--luma-accent) 16%, transparent), transparent 58%),
    linear-gradient(160deg, var(--luma-surface-card) 0%, var(--luma-shell) 100%);
  border-color: color-mix(in srgb, var(--luma-accent) 28%, transparent);
}

[data-design="refined"][data-theme="dark"] .homeFocusTile span,
[data-design="refined"][data-theme="moonlit"] .homeFocusTile span,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .homeFocusTile span,
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .homeFocusTile span {
  color: var(--luma-text-heading);
  background: color-mix(in srgb, var(--luma-accent) 22%, transparent);
}

[data-design="refined"] .cycleWeatherCard,
[data-design="refined"] .lumaBodyMapCard,
[data-design="refined"] .lumaReadCard,
[data-design="refined"] .homeTodayPlanCard,
[data-design="refined"] .homeInsightsCard,
[data-design="refined"] .homePhaseCard,
[data-design="refined"] .homePatternMemoryCard {
  border-radius: var(--r-radius-lg);
  border-color: var(--luma-ai-border);
  box-shadow: 0 12px 32px rgba(40, 30, 36, 0.08);
}

[data-design="refined"] .homeTodayPlanCard > .cardTop [data-icon],
[data-design="refined"] .homeAlertsCard > .cardTop [data-icon] {
  display: none;
}

[data-design="refined"] .cycleWeatherCard h2,
[data-design="refined"] .lumaBodyMapCard h2,
[data-design="refined"] .lumaReadCard h2,
[data-design="refined"] .homeTodayPlanCard h2,
[data-design="refined"] .homeInsightsCard h2 {
  font-family: var(--r-display);
  font-weight: 550;
  letter-spacing: -0.02em;
}

[data-design="refined"] .todayPlanTile,
[data-design="refined"] .lumaReadConfidence,
[data-design="refined"] .cycleWeatherBadge {
  border-radius: var(--r-radius-sm);
}

[data-design="refined"] .todayPlanTile span,
[data-design="refined"] .lumaReadConfidence,
[data-design="refined"] .cycleWeatherBadge,
[data-design="refined"] .infoPill,
[data-design="refined"] .homeHeroPhasePill.infoPill--readonly {
  border-radius: var(--r-radius-sm);
}

/* CTAs use mode accent; secondary stays quiet */
[data-design="refined"] .lumaReadActions button:first-child,
[data-design="refined"] .todayPlanPrimary,
[data-design="refined"] .cycleWeatherActionBtn {
  background: var(--r-accent-cycle);
  border-radius: var(--r-radius-md);
}

[data-design="refined"] body.pregnancyFocusMode .lumaReadActions button:first-child,
[data-design="refined"] body.pregnancyFocusMode .todayPlanPrimary {
  background: var(--r-accent-preg);
}

[data-design="refined"] .lumaReadActions button:last-child,
[data-design="refined"] .todayPlanSecondary {
  border-radius: var(--r-radius-md);
}

/* Empty states */
[data-design="refined"] .cycleEmptyState {
  position: relative;
  padding: var(--r-space-4) var(--r-space-3);
  border: 0;
  border-radius: var(--r-radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(168, 130, 154, 0.16), transparent 55%),
    linear-gradient(165deg, rgba(255, 252, 250, 0.96), rgba(245, 238, 244, 0.9));
  text-align: center;
  justify-items: center;
  gap: var(--r-space-2);
}

[data-design="refined"] .cycleEmptyState::before {
  content: "";
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), transparent 45%),
    radial-gradient(circle at 50% 55%, rgba(168, 130, 154, 0.35), rgba(143, 90, 120, 0.15));
  box-shadow: 0 12px 28px rgba(90, 60, 80, 0.12);
}

[data-design="refined"] .cycleEmptyState h3 {
  font-family: var(--r-display);
  font-weight: 550;
  font-size: 1.25rem;
  max-width: 16ch;
}

[data-design="refined"] .cycleEmptyState p:not(.label) {
  max-width: 28ch;
  font-size: 14px;
  line-height: 1.5;
}

[data-design="refined"] body.pregnancyFocusMode .cycleEmptyState {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(31, 122, 115, 0.14), transparent 55%),
    linear-gradient(165deg, rgba(248, 253, 252, 0.96), rgba(232, 242, 240, 0.9));
}

[data-design="refined"] body.pregnancyFocusMode .cycleEmptyState::before {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), transparent 45%),
    radial-gradient(circle at 50% 55%, rgba(80, 170, 160, 0.35), rgba(31, 122, 115, 0.15));
}

/* Calendar week labels quieter in pregnancy */
[data-design="refined"] body.pregnancyFocusMode .monthCalendarDay .pregnancyWeekLabel {
  font-family: var(--r-sans);
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 0.04em;
  opacity: 0.72;
  background: transparent;
  border: 0;
  padding: 0;
}

/* Typography hierarchy elsewhere */
[data-design="refined"] .mobileHeader h1,
[data-design="refined"] .checkInCard h2,
[data-design="refined"] .profileCard h2,
[data-design="refined"] .settingsList > h2,
[data-design="refined"] .unifiedTrackLogHeader h2 {
  font-family: var(--r-display);
  font-weight: 550;
  letter-spacing: -0.02em;
}

[data-design="refined"] .unifiedTrackLogPanel,
[data-design="refined"] .monthCalendarCard,
[data-design="refined"] .profileCard,
[data-design="refined"] .checkInCard,
[data-design="refined"] .settingsRow {
  border-radius: var(--r-radius-lg);
}

/* Motion */
@keyframes refinedWombBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.012); }
}

@keyframes refinedWeekFade {
  from { opacity: 0.35; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (prefers-reduced-motion: no-preference) {
  [data-design="refined"] .appScreen.active {
    animation: refinedScreenIn 0.38s var(--r-motion);
  }

  [data-design="refined"] #todayScreen.homeScreen > .homeDaySummary {
    animation: refinedScreenIn 0.5s var(--r-motion);
  }

  [data-design="refined"] body.pregnancyFocusMode .pregnancyWeekCard {
    animation: refinedScreenIn 0.55s var(--r-motion);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-design="refined"] body.pregnancyFocusMode .pregnancyWombVisual {
    animation: none;
    transform: none;
  }
}

/* Reminder status pills stay readable on moonlit/dark sheets via theme tokens. */

/* ═══════════════════════════════════════════
   Pass 2 — Tab bar · Track · Luma · Learn
   ═══════════════════════════════════════════ */

/* ——— 1. Tab bar as atmosphere ——— */
[data-design="refined"] .tabBar {
  margin: 0 14px max(12px, env(safe-area-inset-bottom));
  height: 64px;
  padding: 6px;
  border: 1px solid rgba(255, 220, 230, 0.45);
  border-radius: 24px;
  background: rgba(255, 246, 250, 0.72);
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 12px 28px rgba(200, 120, 150, 0.12);
}

[data-design="refined"] .tabBar button {
  min-height: 52px;
  border-radius: 16px;
  color: #6a5460;
  font-weight: 550;
  gap: 2px;
  transition: color var(--r-motion), background var(--r-motion), transform 160ms ease;
}

[data-design="refined"] .tabBar button [data-icon] svg {
  width: 20px;
  height: 20px;
  opacity: 0.78;
  transition: opacity var(--r-motion);
}

[data-design="refined"] .tabBar button b {
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.01em;
}

[data-design="refined"] .tabBar button.active {
  color: #4a3040;
  background: linear-gradient(145deg, #f0b8cc, #e8a8bc);
  box-shadow: 0 8px 18px rgba(220, 140, 170, 0.3);
}

[data-design="refined"] .tabBar button.active [data-icon] svg {
  opacity: 1;
}

[data-design="refined"] .tabBar button.active b,
[data-design="refined"] .tabBar button.active [data-icon] {
  color: #4a3040;
}

[data-design="refined"] body.pregnancyFocusMode .tabBar button.active {
  background: linear-gradient(145deg, #d4f0e6, #c5e8dc);
  color: #2f4a42;
  box-shadow: 0 8px 18px rgba(140, 190, 170, 0.28);
}

[data-design="refined"] body.pregnancyFocusMode .tabBar button.active b,
[data-design="refined"] body.pregnancyFocusMode .tabBar button.active [data-icon] {
  color: #2f4a42;
}

[data-design="refined"][data-theme="moonlit"] .tabBar,
[data-design="refined"][data-theme="dark"] .tabBar {
  background: rgba(48, 36, 46, 0.78);
  border-color: rgba(240, 180, 200, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 12px 32px rgba(0, 0, 0, 0.28);
}

[data-design="refined"][data-theme="moonlit"] .tabBar button,
[data-design="refined"][data-theme="dark"] .tabBar button {
  color: rgba(236, 232, 244, 0.78);
}

[data-design="refined"][data-theme="moonlit"] .tabBar button.active,
[data-design="refined"][data-theme="dark"] .tabBar button.active {
  color: #fff;
}

[data-design="refined"][data-theme="moonlit"] body:not(.pregnancyFocusMode) .tabBar button.active {
  background: #7b8fc9;
  box-shadow: 0 8px 20px rgba(90, 110, 160, 0.35);
}

/* ——— 2. Track calendar as the hero ——— */
[data-design="refined"] #cycleScreen .trackCalendarHeader {
  margin: 4px 0 8px;
  align-items: flex-end;
}

[data-design="refined"] #cycleScreen .trackCalendarHeader .label {
  opacity: 1;
  letter-spacing: 0.12em;
  font-size: 11px;
  
}

[data-design="refined"] #cycleScreen .trackCalendarHeader .trackSectionTitle {
  margin: 2px 0 0;
  font-family: var(--r-display);
  font-size: clamp(1.55rem, 6vw, 1.9rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

[data-design="refined"] #cycleScreen .trackCalendarHeader .cycleSubtitle {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 450;
  color: var(--luma-text-muted);
}

[data-design="refined"] #cycleScreen .calendarQuickGuide,
[data-design="refined"] #cycleScreen .yearCalendarPanel > .cardTop,
[data-design="refined"] #cycleScreen .calendarHintProminent,
[data-design="refined"] #cycleScreen .calendarPredictionNote {
  display: none !important;
}

[data-design="refined"] #cycleScreen .calendarPrimaryActions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 14%, transparent);
  border-radius: var(--r-radius-lg);
  background:
    radial-gradient(ellipse 70% 55% at 0% 0%, color-mix(in srgb, var(--luma-accent) 10%, transparent), transparent 60%),
    color-mix(in srgb, var(--luma-surface-card) 88%, transparent);
}

[data-design="refined"] #cycleScreen .calendarPrimaryActions .calendarNoPeriodBtn,
[data-design="refined"] #cycleScreen .calendarPrimaryActions .calendarSecondaryBtn {
  min-height: 42px;
  border-radius: var(--r-radius-md);
  background: transparent;
  border: 1px solid var(--luma-ai-border);
  color: var(--luma-text-heading);
  box-shadow: none;
  font-weight: 600;
}

/* Outlined Track actions sit on the dark shell — keep light type in dark themes */
[data-design="refined"][data-theme="dark"] #cycleScreen .calendarPrimaryActions .calendarNoPeriodBtn:not(.active),
[data-design="refined"][data-theme="moonlit"] #cycleScreen .calendarPrimaryActions .calendarNoPeriodBtn:not(.active),
[data-design="refined"][data-theme="dark"] #cycleScreen .calendarPrimaryActions .calendarSecondaryBtn,
[data-design="refined"][data-theme="moonlit"] #cycleScreen .calendarPrimaryActions .calendarSecondaryBtn {
  background: transparent;
  border-color: rgba(240, 220, 232, 0.42);
  color: var(--luma-text-heading) !important;
}

[data-design="refined"][data-theme="dark"] #cycleScreen .calendarPrimaryActions .calendarNoPeriodBtn.active,
[data-design="refined"][data-theme="moonlit"] #cycleScreen .calendarPrimaryActions .calendarNoPeriodBtn.active {
  color: #ffffff !important;
}

[data-design="refined"] #cycleScreen .calendarPrimaryActions .calendarPrimaryBtn {
  border-radius: var(--r-radius-md);
  background: linear-gradient(135deg, #f0b8cc, #e8a8bc);
  color: #4a3040;
  box-shadow: 0 12px 28px rgba(143, 90, 120, 0.24);
  font-weight: 650;
}

[data-design="refined"] #cycleScreen .calendarDetailsSection > summary {
  min-height: 54px;
  padding: 14px 16px;
  border-radius: var(--r-radius-md);
  border: 1px solid color-mix(in srgb, var(--luma-accent) 14%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 9%, var(--luma-surface-card)), var(--luma-surface-card));
  color: var(--luma-text-heading);
}

/* Period quick actions stay hidden in pregnancy via JS; keep the log CTA visible. */
[data-design="refined"] body.pregnancyFocusMode #cycleScreen .calendarPrimaryActions .calendarPrimaryBtn,
[data-design="refined"] body.pregnancyFocusMode #cycleScreen .calendarPrimaryActions .calendarNoPeriodBtn {
  display: none;
}

[data-design="refined"] #cycleScreen .yearCalendarPanel {
  margin-top: 0;
  padding: var(--r-space-3);
  border: 0;
  border-radius: var(--r-radius-lg);
  background:
    radial-gradient(ellipse 90% 60% at 10% 0%, rgba(168, 130, 154, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(255, 253, 250, 0.96), rgba(246, 240, 245, 0.9));
  box-shadow: 0 18px 44px rgba(40, 30, 36, 0.1);
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .yearCalendarPanel {
  background:
    radial-gradient(ellipse 90% 60% at 10% 0%, rgba(31, 122, 115, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(248, 253, 252, 0.96), rgba(232, 242, 240, 0.9));
}

[data-design="refined"][data-theme="moonlit"] #cycleScreen .yearCalendarPanel,
[data-design="refined"][data-theme="dark"] #cycleScreen .yearCalendarPanel,
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .yearCalendarPanel,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .yearCalendarPanel {
  background:
    radial-gradient(ellipse 90% 60% at 10% 0%, rgba(232, 180, 198, 0.18), transparent 55%),
    linear-gradient(165deg, #524a62 0%, #463e56 100%) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  color: var(--luma-text-heading);
}

[data-design="refined"][data-theme="dark"] #cycleScreen .yearCalendarPanel,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .yearCalendarPanel {
  background:
    radial-gradient(ellipse 90% 60% at 10% 0%, rgba(240, 176, 196, 0.2), transparent 55%),
    linear-gradient(165deg, #564450 0%, #4a3a44 100%) !important;
}

[data-design="refined"] #cycleScreen .calendarModeNotice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--r-radius-sm);
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  gap: 8px;
}

[data-design="refined"] #cycleScreen .calendarModeNotice strong {
  font-family: var(--r-sans);
  font-size: 13px;
  font-weight: 650;
}

[data-design="refined"] #cycleScreen .calendarModeNotice > span {
  display: none;
}

[data-design="refined"] #cycleScreen .calendarViewToggle {
  margin: 0 0 14px;
  padding: 4px;
  border-radius: var(--r-radius-sm);
  background: rgba(90, 60, 80, 0.06);
  border: 0;
  gap: 4px;
}

[data-design="refined"] #cycleScreen .calendarViewToggle button {
  border-radius: 10px;
  border: 0;
  background: transparent;
  font-weight: 550;
  color: var(--luma-text-muted);
}

[data-design="refined"] #cycleScreen .calendarViewToggle button.active {
  background: #fff;
  color: var(--luma-text-heading);
  box-shadow: 0 4px 12px rgba(40, 30, 36, 0.08);
}

[data-design="refined"] #cycleScreen .monthNavigator {
  margin: 0 0 8px;
  padding: 4px 0 12px;
  border: 0;
  background: transparent;
}

[data-design="refined"] #cycleScreen .monthNavigator h3,
[data-design="refined"] #cycleScreen #monthTitle {
  font-family: var(--r-display);
  font-size: clamp(1.45rem, 5.5vw, 1.75rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--luma-text-heading);
}

[data-design="refined"] #cycleScreen .monthNavigator button {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 0;
  background: rgba(90, 60, 80, 0.08);
  color: var(--luma-text-heading);
  font-weight: 600;
}

[data-design="refined"] #cycleScreen .calendarOptionsSheet {
  display: grid;
  gap: 14px;
  padding: 4px 0 2px;
}

[data-design="refined"] #cycleScreen .calendarOptionsHead {
  display: grid;
  gap: 4px;
}

[data-design="refined"] #cycleScreen .calendarOptionsHead .label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b85f89;
}

[data-design="refined"] #cycleScreen .calendarOptionsConfidence {
  margin: 0;
  font-family: var(--r-sans);
  font-size: 0.82rem;
  font-weight: 650;
  color: #7a5c6a;
  letter-spacing: normal;
}

[data-design="refined"] #cycleScreen .calendarLegend {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  justify-content: stretch;
}

[data-design="refined"] #cycleScreen .calendarLegend span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 12px;
  background: color-mix(in srgb, #fff 70%, #fff4f7);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: normal;
  color: #4a3040;
}

[data-design="refined"] #cycleScreen .calendarLegend span[hidden] {
  display: none !important;
}

[data-design="refined"] #cycleScreen .calendarLegend i,
[data-design="refined"] #cycleScreen .legendSwatch {
  width: 18px;
  height: 18px;
  border-radius: 7px;
  flex-shrink: 0;
  box-sizing: border-box;
}

[data-design="refined"] #cycleScreen .legendSwatch--steady {
  background: rgba(255, 252, 250, 0.9);
  border: 1px solid rgba(232, 168, 188, 0.18);
}

[data-design="refined"] #cycleScreen .legendSwatch--period {
  background: linear-gradient(145deg, #fce8ee 0%, var(--cycle-period) 100%);
  border: 1px solid rgba(232, 168, 188, 0.28);
}

[data-design="refined"] #cycleScreen .legendSwatch--active {
  background: linear-gradient(145deg, #f5b8ca 0%, var(--cycle-period-active) 100%);
  border: 1px solid rgba(224, 130, 160, 0.42);
}

[data-design="refined"] #cycleScreen .legendSwatch--fertile {
  background: linear-gradient(145deg, #f3faf5 0%, var(--cycle-fertile) 100%);
  border: 1px solid rgba(160, 196, 172, 0.4);
}

[data-design="refined"] #cycleScreen .legendSwatch--ovulation {
  background: linear-gradient(145deg, #fdf6ee 0%, var(--cycle-ovulation) 100%);
  border: 1px solid rgba(232, 188, 160, 0.45);
}

[data-design="refined"] #cycleScreen .legendSwatch--tender {
  background: linear-gradient(145deg, #faf6f9 0%, var(--cycle-preperiod) 100%);
  border: 1px solid rgba(200, 176, 196, 0.4);
}

[data-design="refined"] #cycleScreen .legendSwatch--predicted {
  background: linear-gradient(145deg, #f5f2fb 0%, var(--cycle-purple) 100%);
  border: 1.5px dashed var(--cycle-predicted-border);
}

[data-design="refined"] #cycleScreen .legendSwatch--none {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(232, 168, 188, 0.35),
      rgba(232, 168, 188, 0.35) 3px,
      rgba(255, 255, 255, 0.92) 3px,
      rgba(255, 255, 255, 0.92) 6px
    );
  border: 1px solid rgba(232, 168, 188, 0.35);
}

[data-design="refined"] #cycleScreen .legendSwatch--pregSelected {
  background: color-mix(in srgb, var(--r-accent-preg, #c5e8dc) 42%, #fff);
  box-shadow: inset 0 0 0 2px var(--r-accent-preg, #c5e8dc);
}

[data-design="refined"] #cycleScreen .legendSwatch--pregToday {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(90, 60, 80, 0.35);
}

[data-design="refined"] #cycleScreen .legendSwatch--pregWeek {
  background: color-mix(in srgb, var(--r-accent-preg, #c5e8dc) 22%, #fff);
  border: 1px solid color-mix(in srgb, var(--r-accent-preg, #c5e8dc) 40%, transparent);
}

[data-design="refined"] #cycleScreen .monthCalendarDay {
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 650;
  box-shadow: none;
  overflow: visible;
  color: var(--luma-text-heading);
}

/* Unmarked / regular days only — do not wash out phase colors */
[data-design="refined"] #cycleScreen .monthCalendarDay:not(.period):not(.active):not(.fertile):not(.ovulation):not(.tender):not(.predicted):not(.steady) {
  background: rgba(255, 255, 255, 0.55);
  border-color: transparent;
}

[data-design="refined"] #cycleScreen .monthCalendarDay.steady {
  background: rgba(255, 252, 250, 0.9);
  color: var(--luma-text-heading);
  border-color: rgba(232, 168, 188, 0.12);
}

[data-design="refined"] #cycleScreen .monthCalendarDay.period {
  background: linear-gradient(145deg, #fce8ee 0%, var(--cycle-period) 100%);
  color: #6a4050;
  border-color: rgba(232, 168, 188, 0.28);
}

[data-design="refined"] #cycleScreen .monthCalendarDay.active {
  background: linear-gradient(145deg, #f5b8ca 0%, var(--cycle-period-active) 100%);
  color: #5a3040;
  border-color: rgba(224, 130, 160, 0.42);
}

[data-design="refined"] #cycleScreen .monthCalendarDay.fertile {
  background: linear-gradient(145deg, #f3faf5 0%, var(--cycle-fertile) 100%);
  color: var(--cycle-fertile-text);
  border-color: rgba(160, 196, 172, 0.4);
}

[data-design="refined"] #cycleScreen .monthCalendarDay.ovulation {
  background: linear-gradient(145deg, #fdf6ee 0%, var(--cycle-ovulation) 100%);
  color: #6a4e40;
  border-color: rgba(232, 188, 160, 0.45);
}

[data-design="refined"] #cycleScreen .monthCalendarDay.tender {
  background: linear-gradient(145deg, #faf6f9 0%, var(--cycle-preperiod) 100%);
  color: var(--cycle-preperiod-text);
  border-color: rgba(200, 176, 196, 0.4);
}

[data-design="refined"] #cycleScreen .monthCalendarDay.predicted {
  background: linear-gradient(145deg, #f5f2fb 0%, var(--cycle-purple) 100%);
  color: var(--cycle-purple-text);
  border: 1.5px dashed var(--cycle-predicted-border);
}

[data-design="refined"] body.lumaIrregularTracking #cycleScreen .monthCalendarDay.predicted {
  background: linear-gradient(145deg, #f5f2fb 0%, var(--cycle-purple) 100%);
  color: var(--cycle-purple-text);
  border: 1.5px dashed var(--cycle-predicted-border);
}

[data-design="refined"] #cycleScreen .monthCalendarDay.trust-lowConfidence {
  outline: 1.5px dashed rgba(125, 61, 111, 0.28);
  outline-offset: -2px;
}

[data-design="refined"] #cycleScreen .monthCalendarDay .dayNumber {
  font-family: var(--r-sans);
  font-weight: 650;
  font-size: 13px;
  color: inherit;
}

[data-design="refined"] #cycleScreen .monthCalendarDay .cycleLabel {
  font-size: 8px;
  font-weight: 550;
  letter-spacing: 0.02em;
  opacity: 0.85;
  text-transform: none;
  color: inherit;
}

[data-design="refined"] #cycleScreen .monthCalendarDay.today {
  box-shadow: inset 0 0 0 1.5px rgba(90, 60, 80, 0.35);
}

[data-design="refined"] #cycleScreen .monthCalendarDay.selected {
  box-shadow:
    inset 0 0 0 2px var(--r-accent-cycle),
    0 8px 18px rgba(143, 90, 120, 0.18);
  transform: scale(1.03);
  z-index: 1;
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .monthCalendarDay.selected {
  box-shadow:
    inset 0 0 0 2px var(--r-accent-preg),
    0 8px 18px rgba(31, 122, 115, 0.2);
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .monthCalendarDay .pregnancyWeekLabel {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0.65;
  background: transparent !important;
  border: 0 !important;
  color: inherit;
  padding: 0;
}

[data-design="refined"] #cycleScreen .pregnancyCalendarActions {
  margin: 2px 0 12px;
  padding: 14px;
  border-radius: 30px;
  background:
    radial-gradient(ellipse 80% 90% at 0% 0%, color-mix(in srgb, var(--luma-accent-teal) 20%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--luma-accent-teal) 11%, #fff), color-mix(in srgb, var(--luma-accent) 5%, #fff));
  border: 1px solid color-mix(in srgb, var(--luma-accent-teal) 20%, transparent);
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 36px color-mix(in srgb, var(--luma-accent-teal) 12%, transparent);
}

[data-design="refined"] #cycleScreen .pregnancyCalendarActionCopy {
  display: grid;
  gap: 4px;
  text-align: center;
}

[data-design="refined"] #cycleScreen .pregnancyCalendarActionCopy .label {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: color-mix(in srgb, var(--luma-accent-teal) 54%, #34443d);
}

[data-design="refined"] #cycleScreen .pregnancyCalendarActionCopy strong {
  font-family: var(--r-display);
  font-size: clamp(1.24rem, 5vw, 1.52rem);
  font-style: italic;
  font-weight: 650;
  line-height: 1;
  color: var(--luma-text-heading);
}

[data-design="refined"] #cycleScreen .pregnancyCalendarActionCopy span {
  color: var(--luma-text-muted);
  font-size: 0.86rem;
  font-weight: 560;
}

[data-design="refined"] #cycleScreen .pregnancyCalendarActionRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 10px;
}

[data-design="refined"] #cycleScreen .pregnancyCalendarActions .calendarPrimaryBtn {
  min-height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4f0e6 0%, #c5e8dc 55%, #b4dccf 100%);
  color: #2f4a42;
  box-shadow: 0 10px 24px rgba(140, 190, 170, 0.28);
  font-weight: 700;
}

[data-design="refined"] #cycleScreen .pregnancyCalendarActions .calendarSecondaryBtn {
  min-height: 46px;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 70%, var(--luma-accent-teal) 8%);
  border: 1px solid color-mix(in srgb, var(--r-accent-preg) 45%, transparent);
  color: #6a4050;
}

[data-design="refined"][data-theme="moonlit"] #cycleScreen .pregnancyCalendarActions .calendarSecondaryBtn,
[data-design="refined"][data-theme="dark"] #cycleScreen .pregnancyCalendarActions .calendarSecondaryBtn {
  color: #f4e4ec;
  border-color: rgba(240, 200, 212, 0.4);
}

[data-design="refined"] #cycleScreen .predictionToggle {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(90, 60, 80, 0.08);
}

[data-design="refined"][data-theme="moonlit"] #cycleScreen .yearCalendarPanel,
[data-design="refined"][data-theme="dark"] #cycleScreen .yearCalendarPanel,
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .yearCalendarPanel,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .yearCalendarPanel {
  background:
    radial-gradient(ellipse 90% 60% at 10% 0%, rgba(232, 180, 198, 0.18), transparent 55%),
    linear-gradient(165deg, #524a62 0%, #463e56 100%) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  color: var(--luma-text-heading);
}

[data-design="refined"][data-theme="moonlit"] #cycleScreen .monthCalendarDay:not(.period):not(.active):not(.fertile):not(.ovulation):not(.tender):not(.predicted),
[data-design="refined"][data-theme="dark"] #cycleScreen .monthCalendarDay:not(.period):not(.active):not(.fertile):not(.ovulation):not(.tender):not(.predicted) {
  background: rgba(255, 248, 252, 0.14);
  border-color: rgba(255, 220, 230, 0.12);
  color: #f8f2f8;
}

[data-design="refined"][data-theme="moonlit"] #cycleScreen .monthCalendarDay.steady,
[data-design="refined"][data-theme="dark"] #cycleScreen .monthCalendarDay.steady {
  background: rgba(255, 248, 252, 0.18);
  color: #f8f2f8;
}

/* Keep the same pastel phase chips as light — do not wash them into the shell */
[data-design="refined"][data-theme="moonlit"] #cycleScreen .monthCalendarDay.period,
[data-design="refined"][data-theme="dark"] #cycleScreen .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;
}

[data-design="refined"][data-theme="moonlit"] #cycleScreen .monthCalendarDay.active,
[data-design="refined"][data-theme="dark"] #cycleScreen .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;
}

[data-design="refined"][data-theme="moonlit"] #cycleScreen .monthCalendarDay.fertile,
[data-design="refined"][data-theme="dark"] #cycleScreen .monthCalendarDay.fertile {
  background: linear-gradient(145deg, #e4f3e9 0%, #cfe8d6 100%) !important;
  color: #2f4638 !important;
  border-color: rgba(110, 160, 130, 0.5) !important;
}

[data-design="refined"][data-theme="moonlit"] #cycleScreen .monthCalendarDay.ovulation,
[data-design="refined"][data-theme="dark"] #cycleScreen .monthCalendarDay.ovulation {
  background: linear-gradient(145deg, #fdf0e0 0%, #f5d9b8 100%) !important;
  color: #5a3e28 !important;
  border-color: rgba(210, 150, 100, 0.55) !important;
}

[data-design="refined"][data-theme="moonlit"] #cycleScreen .monthCalendarDay.tender,
[data-design="refined"][data-theme="dark"] #cycleScreen .monthCalendarDay.tender {
  background: linear-gradient(145deg, #f3e8f0 0%, #e4d2e0 100%) !important;
  color: #4a3548 !important;
  border-color: rgba(170, 130, 160, 0.5) !important;
}

[data-design="refined"][data-theme="moonlit"] #cycleScreen .monthCalendarDay.predicted,
[data-design="refined"][data-theme="dark"] #cycleScreen .monthCalendarDay.predicted {
  background: linear-gradient(145deg, #ebe6f7 0%, #d8d0f0 100%) !important;
  color: #3f3858 !important;
  border: 1.5px dashed #9a8cc4 !important;
}

[data-design="refined"][data-theme="moonlit"] #cycleScreen .calendarViewToggle,
[data-design="refined"][data-theme="dark"] #cycleScreen .calendarViewToggle {
  background: rgba(255, 248, 252, 0.1);
}

[data-design="refined"][data-theme="moonlit"] #cycleScreen .calendarViewToggle button.active,
[data-design="refined"][data-theme="dark"] #cycleScreen .calendarViewToggle button.active {
  background: rgba(255, 240, 246, 0.22);
  color: #fff8fb;
}

/* ——— Track typography — Cormorant + Nunito on calendar & log ——— */
[data-design="refined"] #cycleScreen,
[data-design="refined"] #cycleScreen button,
[data-design="refined"] #cycleScreen input,
[data-design="refined"] #cycleScreen textarea,
[data-design="refined"] #cycleScreen select,
[data-design="refined"] #cycleScreen summary {
  font-family: var(--r-sans);
}

[data-design="refined"] #cycleScreen .label,
[data-design="refined"] #cycleScreen .mobileHeader p,
[data-design="refined"] #cycleScreen .trackHeroGreeting,
[data-design="refined"] #cycleScreen .trackCalendarHeader .label,
[data-design="refined"] #cycleScreen .trackLogPanelHeader .label,
[data-design="refined"] #cycleScreen .cycleModePanel .label {
  font-family: var(--r-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--luma-accent-text, var(--luma-link));
}

[data-design="refined"] #cycleScreen .trackSubTabs {
  border-radius: 18px;
  background: color-mix(in srgb, var(--luma-surface-card) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--luma-accent) 16%, transparent);
}

[data-design="refined"] #cycleScreen .trackSubTabs button[role="tab"] {
  font-family: var(--r-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 14px;
  color: var(--luma-text-muted);
}

[data-design="refined"] #cycleScreen .trackSubTabs button[role="tab"].active {
  color: var(--luma-text-heading);
  background: var(--luma-surface-card);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--luma-accent) 12%, transparent);
}

[data-design="refined"] #cycleScreen .trackHero {
  border-radius: var(--r-radius-md);
  border: 1px solid color-mix(in srgb, var(--luma-accent) 16%, transparent);
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, color-mix(in srgb, var(--luma-accent) 12%, transparent), transparent 55%),
    linear-gradient(160deg, var(--luma-surface-card) 0%, var(--luma-surface-card-alt) 100%);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--luma-accent) 8%, transparent);
}

[data-design="refined"] #cycleScreen .trackHeroHeadline,
[data-design="refined"] #cycleScreen .trackSectionTitle,
[data-design="refined"] #cycleScreen .monthNavigator h3,
[data-design="refined"] #cycleScreen #monthTitle,
[data-design="refined"] #cycleScreen .trackLogPanelHeader .trackSectionTitle,
[data-design="refined"] #cycleScreen .unifiedTrackLogHeader h2,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount h2,
[data-design="refined"] #cycleScreen .hubSectionHeader h2,
[data-design="refined"] #cycleScreen .logComposer h2,
[data-design="refined"] #cycleScreen .bodyLogInsightsCard > h2,
[data-design="refined"] #cycleScreen .cycleModeOption strong {
  font-family: var(--r-display) !important;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.015em;
  color: var(--luma-text-heading);
  font-variation-settings: normal;
}

[data-design="refined"] #cycleScreen .trackHeroHeadline {
  font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  line-height: 1.15;
  font-weight: 600;
}

[data-design="refined"] #cycleScreen .trackSectionTitle,
[data-design="refined"] #cycleScreen .trackLogPanelHeader .trackSectionTitle {
  font-size: clamp(1.4rem, 5.2vw, 1.75rem);
  line-height: 1.1;
}

[data-design="refined"] #cycleScreen .unifiedTrackLogHeader h2,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount h2,
[data-design="refined"] #cycleScreen .logComposer h2,
[data-design="refined"] #cycleScreen .bodyLogInsightsCard > h2 {
  font-size: clamp(1.2rem, 4.4vw, 1.4rem);
  line-height: 1.2;
}

[data-design="refined"] #cycleScreen .trackHeroSummary,
[data-design="refined"] #cycleScreen .trackHeroHint,
[data-design="refined"] #cycleScreen .trackHeroReadBody,
[data-design="refined"] #cycleScreen .cycleSubtitle,
[data-design="refined"] #cycleScreen .logComposerIntro,
[data-design="refined"] #cycleScreen .logHistoryIntro,
[data-design="refined"] #cycleScreen .bodyLogPurposeText,
[data-design="refined"] #cycleScreen .bodyLogPatternHint,
[data-design="refined"] #cycleScreen .signalEssentialLead,
[data-design="refined"] #cycleScreen .bbtChartHint,
[data-design="refined"] #cycleScreen .cycleModeSummary,
[data-design="refined"] #cycleScreen .cycleModeOption span,
[data-design="refined"] #cycleScreen .unifiedTrackLogHeader p:not(.label),
[data-design="refined"] #cycleScreen .calendarCount,
[data-design="refined"] #cycleScreen .cycleGridHint {
  font-family: var(--r-sans);
  font-weight: 500;
  line-height: 1.5;
  color: var(--luma-text-muted);
}

[data-design="refined"] #cycleScreen .trackPhasePill,
[data-design="refined"] #cycleScreen .calendarLegend span,
[data-design="refined"] #cycleScreen .monthCalendarDay .cycleLabel,
[data-design="refined"] #cycleScreen .monthCalendarDay .pregnancyWeekLabel,
[data-design="refined"] #cycleScreen .bodyLogContextLabel,
[data-design="refined"] #cycleScreen .bodyLogContextPhase {
  font-family: var(--r-sans);
  font-weight: 700;
  letter-spacing: 0.04em;
}

[data-design="refined"] #cycleScreen .monthCalendarDay .dayNumber {
  font-family: var(--r-sans);
  font-weight: 700;
}

[data-design="refined"] #cycleScreen .logTypeSelector button,
[data-design="refined"] #cycleScreen .calendarViewToggle button,
[data-design="refined"] #cycleScreen .calendarPrimaryBtn,
[data-design="refined"] #cycleScreen .calendarSecondaryBtn,
[data-design="refined"] #cycleScreen .calendarNoPeriodBtn,
[data-design="refined"] #cycleScreen .trackSecondaryBtn,
[data-design="refined"] #cycleScreen .wideButton {
  font-family: var(--r-sans);
  font-weight: 700;
}

[data-design="refined"] #cycleScreen .logComposer,
[data-design="refined"] #cycleScreen .unifiedTrackLogPanel,
[data-design="refined"] #cycleScreen .bodyLogContext,
[data-design="refined"] #cycleScreen .logHistoryPanel {
  border-radius: var(--r-radius-md);
}

[data-design="refined"] #cycleScreen .logHistoryDropdown {
  padding: 0;
}

[data-design="refined"] #cycleScreen .logHistorySummary {
  min-height: 96px;
  padding: 18px 20px;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 70% 85% at 100% 0%, color-mix(in srgb, var(--luma-accent) 12%, transparent), transparent 64%),
    linear-gradient(135deg, color-mix(in srgb, var(--luma-surface-card) 94%, transparent), color-mix(in srgb, var(--luma-accent-teal) 6%, var(--luma-surface-card)));
}

[data-design="refined"] #cycleScreen .logHistoryDropdown[open] .logHistorySummary {
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent) 12%, transparent);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

[data-design="refined"] #cycleScreen .logHistorySummary h2 {
  color: var(--luma-text-heading);
}

[data-design="refined"] #cycleScreen .logHistorySummaryMeta {
  color: var(--luma-accent-text, var(--luma-link));
}

[data-design="refined"] #cycleScreen .logHistoryChevron {
  border-color: color-mix(in srgb, var(--luma-accent) 18%, transparent);
  background: color-mix(in srgb, var(--luma-surface-card) 86%, transparent);
  color: var(--luma-accent-text, var(--luma-link));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--luma-accent) 7%, transparent);
}

[data-design="refined"] #cycleScreen .logHistoryDropdownBody {
  padding: 18px 20px 20px;
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .label,
[data-design="refined"] body.pregnancyFocusMode #cycleScreen .mobileHeader p,
[data-design="refined"] body.pregnancyFocusMode #cycleScreen .trackHeroGreeting,
[data-design="refined"] body.pregnancyFocusMode #cycleScreen .trackCalendarHeader .label,
[data-design="refined"] body.pregnancyFocusMode #cycleScreen .trackLogPanelHeader .label {
  color: color-mix(in srgb, var(--luma-accent-teal) 42%, #24382f);
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .trackCalendarHeader {
  margin: 14px 0 16px;
  display: block;
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .trackCalendarHeader .cycleNavButtons {
  display: none !important;
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .trackCalendarHeader .trackSectionTitle {
  margin-top: 8px;
  font-size: clamp(1.85rem, 7vw, 2.28rem);
  line-height: 0.98;
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .trackCalendarHeader .cycleSubtitle {
  margin-top: 8px;
  max-width: 26ch;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--luma-accent-teal) 54%, var(--luma-text-heading));
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen #yearCalendarPanel > .cardTop,
[data-design="refined"] body.pregnancyFocusMode #cycleScreen #yearCalendarPanel > .calendarHintProminent {
  display: none !important;
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .calendarViewToggle {
  margin-top: 0;
  border-radius: 26px;
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .monthNavigator {
  margin: 10px 0 8px;
  padding: 8px 8px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--luma-accent-teal) 8%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--luma-accent-teal) 14%, transparent);
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .monthNavigator h3,
[data-design="refined"] body.pregnancyFocusMode #cycleScreen #monthTitle {
  font-size: clamp(1.28rem, 5vw, 1.56rem);
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .monthNavigator button {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--luma-accent-teal) 13%, #fff);
}

[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .label,
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .label,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .mobileHeader p,
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .mobileHeader p,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .trackHeroGreeting,
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .trackHeroGreeting {
  color: var(--luma-accent-teal);
}

[data-design="refined"][data-theme="dark"] #cycleScreen .trackHero,
[data-design="refined"][data-theme="moonlit"] #cycleScreen .trackHero {
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, color-mix(in srgb, var(--luma-accent) 14%, transparent), transparent 55%),
    linear-gradient(160deg, var(--luma-surface-card) 0%, var(--luma-shell) 100%);
  border-color: color-mix(in srgb, var(--luma-accent) 22%, transparent);
}

/* ——— 3. Luma hub — pastel facts + Premium emotional chat ——— */
[data-design="refined"] #lumaHubScreen > .mobileHeader.compact {
  margin-bottom: 10px;
  align-items: flex-start;
}

[data-design="refined"] #lumaHubScreen > .mobileHeader.compact > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  padding: 0;
  min-width: 0;
  text-align: left;
}

[data-design="refined"] #lumaHubScreen > .mobileHeader.compact h1 {
  display: block;
  margin: 0;
  padding: 0;
  max-width: none;
  /* Italic Cormorant left sidebearing — pull flush with upright LUMA */
  margin-left: -0.06em;
  font-family: var(--r-display);
  font-size: clamp(1.45rem, 5.4vw, 1.75rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--luma-text-heading);
  text-align: left;
}

[data-design="refined"] #lumaHubScreen > .mobileHeader.compact p {
  margin: 0;
  padding: 0;
  font-family: var(--r-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--luma-text-muted);
  text-align: left;
}

[data-design="refined"] #lumaHubScreen .lumaHubHero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 14px;
  min-height: 0;
  padding: var(--r-space-3);
  padding-top: calc(var(--r-space-3) + 1.35rem);
  border-radius: var(--r-radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 24%, transparent);
  background:
    radial-gradient(ellipse 85% 55% at 12% 0%, color-mix(in srgb, var(--luma-accent) 32%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 90%, color-mix(in srgb, var(--luma-accent-teal) 20%, transparent), transparent 50%),
    linear-gradient(155deg, var(--luma-surface-card) 0%, var(--luma-surface-card-alt) 55%, var(--luma-shell) 100%);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--luma-accent) 12%, transparent);
  color: var(--luma-text);
}

[data-design="refined"] #lumaHubScreen .lumaHubHero::before {
  content: "Premium companion";
  position: absolute;
  top: var(--r-space-3);
  left: var(--r-space-3);
  right: var(--r-space-3);
  z-index: 2;
  font-family: var(--r-sans);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--luma-accent-text, var(--luma-link));
  text-shadow: none;
}

[data-design="refined"] #lumaHubScreen .lumaHubHero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--luma-shell) 28%, transparent) 100%);
  pointer-events: none;
}

[data-design="refined"] #lumaHubScreen .lumaHubGreeting {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: none;
  width: 100%;
  font-family: var(--r-display);
  font-size: clamp(1.05rem, 3.8vw, 1.2rem);
  font-weight: 550;
  font-style: italic;
  line-height: 1.35;
  color: var(--luma-text-heading);
}

[data-design="refined"] #lumaHubScreen .lumaHubPremiumNote {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--luma-text-muted);
}

[data-design="refined"] #lumaHubScreen .lumaHubHero .wideButton {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  min-height: 46px;
  border-radius: var(--r-radius-md);
  border: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 78%, white), var(--luma-accent));
  color: var(--luma-text-heading);
  font-weight: 700;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--luma-accent) 28%, transparent);
}

[data-design="refined"] #lumaHubScreen .lumaValuePair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
}

[data-design="refined"] #lumaHubScreen .lumaValuePillar {
  margin: 0;
  padding: 14px 12px;
  border-radius: var(--r-radius-md);
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--luma-accent) 12%, white), var(--luma-surface-card));
  display: grid;
  gap: 6px;
}

[data-design="refined"] #lumaHubScreen .lumaValuePillar--facts {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--luma-accent-teal) 16%, white), var(--luma-surface-card));
  border-color: color-mix(in srgb, var(--luma-accent-teal) 22%, transparent);
}

[data-design="refined"] #lumaHubScreen .lumaValuePillar--heart {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--luma-accent) 18%, white), var(--luma-surface-card));
}

[data-design="refined"] #lumaHubScreen .lumaValuePillar .label {
  margin: 0;
  color: var(--luma-accent-text, var(--luma-link));
}

[data-design="refined"] #lumaHubScreen .lumaValuePillar--facts .label {
  color: #3d6a5c;
}

[data-design="refined"] #lumaHubScreen .lumaValuePillar h3 {
  margin: 0;
  font-family: var(--r-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--luma-text-heading);
}

[data-design="refined"] #lumaHubScreen .lumaValuePillar p:last-child {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--luma-text-muted);
}

[data-design="refined"][data-theme="dark"] #lumaHubScreen .lumaValuePillar,
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .lumaValuePillar {
  background: color-mix(in srgb, var(--luma-accent) 14%, var(--luma-surface-card));
  border-color: color-mix(in srgb, var(--luma-accent) 24%, transparent);
}

[data-design="refined"][data-theme="dark"] #lumaHubScreen .lumaValuePillar--facts,
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .lumaValuePillar--facts {
  background: color-mix(in srgb, var(--luma-accent-teal) 14%, var(--luma-surface-card));
  border-color: color-mix(in srgb, var(--luma-accent-teal) 24%, transparent);
}

[data-design="refined"][data-theme="dark"] #lumaHubScreen .lumaValuePillar--facts .label,
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .lumaValuePillar--facts .label {
  color: var(--luma-accent-teal);
}

[data-design="refined"][data-theme="dark"] #lumaHubScreen .lumaHubHero,
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .lumaHubHero {
  border-color: color-mix(in srgb, var(--luma-accent) 28%, transparent);
  background:
    radial-gradient(ellipse 85% 55% at 12% 0%, color-mix(in srgb, var(--luma-accent) 22%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 90%, color-mix(in srgb, var(--luma-accent-teal) 14%, transparent), transparent 50%),
    linear-gradient(155deg, var(--luma-surface-card) 0%, var(--luma-shell) 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  color: var(--luma-text);
}

[data-design="refined"][data-theme="dark"] #lumaHubScreen .lumaHubHero::before,
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .lumaHubHero::before {
  color: var(--luma-accent-text, var(--luma-link));
}

[data-design="refined"][data-theme="dark"] #lumaHubScreen .lumaHubGreeting,
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .lumaHubGreeting {
  color: var(--luma-text-heading);
}

[data-design="refined"][data-theme="dark"] #lumaHubScreen .lumaHubHero .wideButton,
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .lumaHubHero .wideButton {
  background: linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 55%, white), var(--luma-accent));
  color: #2a2228;
}

[data-design="refined"][data-theme="hearth"] #lumaHubScreen .lumaHubHero {
  background:
    radial-gradient(ellipse 85% 55% at 12% 0%, color-mix(in srgb, var(--luma-accent) 32%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 90%, color-mix(in srgb, var(--luma-accent-teal) 20%, transparent), transparent 50%),
    linear-gradient(155deg, #fffaf8 0%, #fff5f2 55%, #faf0ec 100%);
}

[data-design="refined"] body.pregnancyFocusMode #lumaHubScreen .lumaHubHero {
  background:
    radial-gradient(ellipse 85% 55% at 12% 0%, color-mix(in srgb, var(--luma-accent-teal) 30%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 90%, color-mix(in srgb, var(--luma-accent) 16%, transparent), transparent 50%),
    linear-gradient(155deg, var(--luma-surface-card) 0%, var(--luma-accent-teal-soft) 55%, var(--luma-shell) 100%);
}

[data-design="refined"] body.pregnancyFocusMode #lumaHubScreen .lumaHubHero .wideButton {
  background: linear-gradient(135deg, #d4f0e6 0%, var(--luma-accent-teal) 100%);
  color: #2f4a42;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--luma-accent-teal) 28%, transparent);
}

[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #lumaHubScreen .lumaHubHero .wideButton,
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #lumaHubScreen .lumaHubHero .wideButton {
  background: linear-gradient(135deg, color-mix(in srgb, var(--luma-accent-teal) 65%, white), var(--luma-accent-teal));
  color: #2a2228;
}

[data-design="refined"] #lumaHubScreen .lumaIntelligenceCard {
  margin: 0 0 16px;
  padding: var(--r-space-3);
  border: 1px solid color-mix(in srgb, var(--luma-accent) 16%, transparent);
  border-radius: var(--r-radius-md);
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--luma-accent) 8%, white), var(--luma-surface-card));
  box-shadow: none;
}

[data-design="refined"][data-theme="dark"] #lumaHubScreen .lumaIntelligenceCard,
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .lumaIntelligenceCard {
  background: color-mix(in srgb, var(--luma-accent) 10%, var(--luma-surface-card));
  border-color: color-mix(in srgb, var(--luma-accent) 20%, transparent);
}

[data-design="refined"] #lumaHubScreen .lumaIntelligenceCard::before {
  display: none;
}

[data-design="refined"] #lumaHubScreen .lumaIntelligenceCard h2 {
  font-family: var(--r-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--luma-text-heading);
}

[data-design="refined"] #lumaHubScreen .lumaIntelligenceCard p:not(.label) {
  color: var(--luma-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

[data-design="refined"] #lumaHubScreen .lumaContextChips {
  gap: 6px;
  margin-top: 10px;
}

[data-design="refined"] #lumaHubScreen .lumaContextChips span {
  border-radius: 999px;
  border: 0;
  background: color-mix(in srgb, var(--luma-accent) 16%, transparent);
  color: var(--luma-text-heading);
  font-weight: 600;
  font-size: 11px;
  padding: 6px 10px;
}

[data-design="refined"] #lumaHubScreen .hubSection {
  margin: 0 0 14px;
  padding: var(--r-space-3);
  border-radius: var(--r-radius-md);
  border: 1px solid color-mix(in srgb, var(--luma-accent) 14%, transparent);
  background: var(--luma-surface-card);
  box-shadow: none;
}

[data-design="refined"] #lumaHubScreen .hubSectionHeader {
  margin-bottom: 10px;
}

[data-design="refined"] #lumaHubScreen .hubSectionHeader .hubSectionIcon {
  display: none;
}

[data-design="refined"] #lumaHubScreen .hubSectionHeader h2 {
  font-family: var(--r-display);
  font-weight: 600;
  color: var(--luma-text-heading);
}

[data-design="refined"] #lumaHubScreen .lumaCommandDeck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

[data-design="refined"] #lumaHubScreen .lumaCommandCard {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border-radius: var(--r-radius-md);
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent);
  background:
    radial-gradient(ellipse 80% 60% at 8% 0%, color-mix(in srgb, var(--luma-accent) 18%, transparent), transparent 60%),
    linear-gradient(150deg, var(--luma-surface-card) 0%, var(--luma-surface-card-alt) 100%);
  color: var(--luma-text);
}

[data-design="refined"] #lumaHubScreen .lumaCommandCard--primary {
  border-color: color-mix(in srgb, var(--luma-accent) 34%, transparent);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--luma-accent) 14%, transparent);
}

[data-design="refined"] #lumaHubScreen .lumaCommandCard span {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--luma-accent) 16%, transparent);
  color: var(--luma-accent-text, var(--luma-link));
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[data-design="refined"] #lumaHubScreen .lumaCommandCard strong {
  font-family: var(--r-display);
  font-size: 1.14rem;
  font-style: italic;
  font-weight: 650;
  line-height: 1.12;
  color: var(--luma-text-heading);
}

[data-design="refined"] #lumaHubScreen .lumaCommandCard em {
  font-style: normal;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  color: var(--luma-text-muted);
}

[data-design="refined"][data-theme="dark"] #lumaHubScreen .lumaCommandCard,
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .lumaCommandCard {
  background:
    radial-gradient(ellipse 80% 60% at 8% 0%, color-mix(in srgb, var(--luma-accent) 16%, transparent), transparent 60%),
    linear-gradient(150deg, var(--luma-surface-card) 0%, var(--luma-shell) 100%);
  border-color: color-mix(in srgb, var(--luma-accent) 28%, transparent);
}

[data-design="refined"][data-theme="dark"] #lumaHubScreen .lumaCommandCard span,
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .lumaCommandCard span {
  color: var(--luma-text-heading);
}

[data-design="refined"] #lumaHubScreen .lumaPromptGroups button,
[data-design="refined"] #lumaHubScreen .lumaPromptGroups summary,
[data-design="refined"] #lumaHubScreen .lumaPromptGroups .aiToolBtn {
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--luma-accent-text, var(--luma-link)) 26%, transparent);
  background: color-mix(in srgb, var(--luma-accent) 32%, var(--luma-surface-card));
  color: var(--luma-accent-text, var(--luma-link));
  font-weight: 800;
  box-shadow: none;
}

[data-design="refined"] body.pregnancyFocusMode #lumaHubScreen .aiToolsList button,
[data-design="refined"] body.pregnancyFocusMode #lumaHubScreen .aiToolCard button,
[data-design="refined"] body.focus-pregnant #lumaHubScreen .aiToolsList button,
[data-design="refined"] body.focus-pregnant #lumaHubScreen .aiToolCard button {
  border-color: color-mix(in srgb, var(--luma-accent-teal) 40%, transparent);
  background: color-mix(in srgb, var(--luma-accent-teal) 34%, var(--luma-surface-card));
  color: color-mix(in srgb, var(--luma-accent-teal) 35%, #1f332c);
}

[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .lumaPromptGroups summary,
[data-design="refined"][data-theme="dark"] #lumaHubScreen .lumaPromptGroups summary,
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .lumaPromptGroups button,
[data-design="refined"][data-theme="dark"] #lumaHubScreen .lumaPromptGroups button,
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .aiToolsList button,
[data-design="refined"][data-theme="dark"] #lumaHubScreen .aiToolsList button,
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .aiToolsList .aiToolBtn,
[data-design="refined"][data-theme="dark"] #lumaHubScreen .aiToolsList .aiToolBtn,
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .aiToolCard button,
[data-design="refined"][data-theme="dark"] #lumaHubScreen .aiToolCard button {
  background: color-mix(in srgb, var(--luma-accent) 28%, var(--luma-surface-card));
  color: var(--luma-text-heading);
  border-color: color-mix(in srgb, var(--luma-accent) 32%, transparent);
}

[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #lumaHubScreen .aiToolCard button,
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #lumaHubScreen .aiToolCard button,
[data-design="refined"][data-theme="dark"] body.focus-pregnant #lumaHubScreen .aiToolCard button,
[data-design="refined"][data-theme="moonlit"] body.focus-pregnant #lumaHubScreen .aiToolCard button {
  background: color-mix(in srgb, var(--luma-accent-teal) 26%, var(--luma-surface-card));
  color: var(--luma-accent-teal);
  border-color: color-mix(in srgb, var(--luma-accent-teal) 36%, transparent);
}

[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .lumaContextChips span,
[data-design="refined"][data-theme="dark"] #lumaHubScreen .lumaContextChips span {
  background: color-mix(in srgb, var(--luma-accent) 18%, transparent);
  color: var(--luma-text-heading);
}

@media (max-width: 380px) {
  [data-design="refined"] #lumaHubScreen .lumaValuePair {
    grid-template-columns: 1fr;
  }
}

/* ——— 4. Learn — plain theme-matched chapter card ——— */
[data-design="refined"] #careScreen > .mobileHeader.compact h1 {
  font-family: var(--r-display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--luma-text-heading);
}

[data-design="refined"] #careScreen .careIntro {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 450;
  color: var(--luma-text-muted);
}




































































































































































































/* Final launch override: the chat order below is tested in every focus mode. */




















@media (max-width: 420px) {


}
/* Final Track contrast pass: keep moonlit/dark pregnancy calendar readable. */
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .monthNavigator,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .monthNavigator {
  background: rgba(255, 250, 252, 0.94) !important;
  border: 1px solid rgba(255, 220, 232, 0.28) !important;
  border-radius: 18px !important;
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .monthNavigator h3,
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen #monthTitle,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .monthNavigator h3,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen #monthTitle {
  color: #4d3141 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .monthNavigator button,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .monthNavigator button {
  background: rgba(237, 248, 244, 0.9) !important;
  color: #4d3141 !important;
  opacity: 1 !important;
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActions,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActions {
  background:
    radial-gradient(ellipse 85% 80% at 0% 0%, rgba(205, 238, 227, 0.65), transparent 68%),
    linear-gradient(135deg, rgba(255, 252, 252, 0.98), rgba(255, 244, 249, 0.98)) !important;
  border-color: rgba(144, 205, 190, 0.34) !important;
  color: #4d3141 !important;
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActionCopy,
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActionCopy *,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActionCopy,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActionCopy * {
  opacity: 1 !important;
  text-shadow: none !important;
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActionCopy .label,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActionCopy .label {
  color: #5c988d !important;
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActionCopy strong,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActionCopy strong {
  color: #4d3141 !important;
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActionCopy span,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActionCopy span {
  color: #7a6070 !important;
}

[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActions .calendarSecondaryBtn,
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActions .calendarSecondaryBtn {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(210, 170, 188, 0.42) !important;
  color: #7c3f62 !important;
  opacity: 1 !important;
}

/* Final You controls alignment: same shortcut tile rhythm in every focus/theme. */
[data-design="refined"] #profileScreen .youCommandStrip .powerToolsHeader {
  align-items: center !important;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr) !important;
  gap: 10px !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolsHeader .label {
  align-self: center !important;
  margin: 0 !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolsHeader span {
  align-self: center !important;
  justify-self: end !important;
  max-width: 24ch !important;
  margin: 0 !important;
  text-align: left !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolsRow {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
  align-items: stretch !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolBtn {
  min-height: 78px !important;
  height: 78px !important;
  padding: 10px 8px 11px !important;
  display: grid !important;
  grid-template-rows: 30px minmax(0, auto) !important;
  place-items: center !important;
  align-content: center !important;
  justify-content: center !important;
  gap: 7px !important;
  text-align: center !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolBtn [data-icon] {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  margin: 0 !important;
  place-self: center !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolBtn strong {
  width: 100% !important;
  margin: 0 !important;
  align-self: center !important;
  justify-self: center !important;
  text-align: center !important;
  font-size: 0.76rem !important;
  line-height: 1.08 !important;
}

[data-design="refined"][data-theme="dark"] #profileScreen .youCommandStrip .powerToolBtn strong,
[data-design="refined"][data-theme="moonlit"] #profileScreen .youCommandStrip .powerToolBtn strong {
  color: #fff8fb !important;
}

/* Absolute final You tab reset: compact, current, and consistent in all focus modes. */
[data-design="refined"] #profileScreen {
  --you-final-pink: #b85f89;
  --you-final-ink: #4c3141;
  --you-final-muted: #7a6470;
}

[data-design="refined"] #profileScreen .youOverviewCard,
[data-design="refined"] #profileScreen .youCommandStrip,
[data-design="refined"] #profileScreen .youSettingsGroup,
[data-design="refined"] #profileScreen .themePickerSection,
[data-design="refined"] #profileScreen > .settingsList:not(.settingsListDetails) {
  width: 100% !important;
  margin: 10px auto !important;
  padding: 14px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(232, 168, 188, 0.22) !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(232, 168, 188, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 253, 254, 0.86), rgba(255, 247, 251, 0.64)) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.66) inset,
    0 12px 24px rgba(106, 67, 88, 0.045) !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolsHeader {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  margin-bottom: 10px !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolsHeader .label,
[data-design="refined"] #profileScreen .settingsList .label,
[data-design="refined"] #profileScreen .profileIdentitySummary .label {
  color: var(--you-final-pink) !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolsHeader span {
  max-width: 22ch !important;
  justify-self: end !important;
  color: var(--you-final-muted) !important;
  font-size: 0.74rem !important;
  line-height: 1.3 !important;
}

[data-design="refined"] #profileScreen #youCommandStripLead {
  color: var(--you-final-muted) !important;
  opacity: 1 !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolsRow {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolBtn {
  min-height: 70px !important;
  padding: 9px 8px !important;
  border-radius: 18px !important;
  display: grid !important;
  place-items: center !important;
  gap: 5px !important;
  text-align: center !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(232, 168, 188, 0.2) !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolBtn [data-icon] {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 46%, #fff) !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolBtn strong {
  font-size: 0.78rem !important;
  line-height: 1.08 !important;
  color: var(--you-final-ink) !important;
}

[data-design="refined"] #profileScreen .settingsListDetails {
  width: calc(100% - 32px) !important;
  margin: 8px auto !important;
  border-radius: 19px !important;
  overflow: hidden !important;
  background: rgba(255, 252, 253, 0.68) !important;
  border: 1px solid rgba(232, 168, 188, 0.2) !important;
  box-shadow: 0 8px 20px rgba(106, 67, 88, 0.035) !important;
}

[data-design="refined"] #profileScreen .settingsListDetails > summary {
  min-height: 44px !important;
  padding: 7px 10px 7px 16px !important;
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) 30px !important;
  align-items: center !important;
}

[data-design="refined"] #profileScreen .settingsListDetails > summary h2 {
  color: var(--you-final-pink) !important;
  font-family: var(--luma-font-display, var(--r-display)) !important;
  font-style: italic !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  font-size: clamp(1.08rem, 4.2vw, 1.34rem) !important;
  line-height: 1 !important;
  text-align: center !important;
  transform: translateY(1px) !important;
}

[data-design="refined"] #profileScreen .settingsListDetails > summary p {
  display: none !important;
}

[data-design="refined"] #profileScreen .settingsListDetails > summary::after {
  width: 30px !important;
  height: 30px !important;
  justify-self: end !important;
  color: var(--you-final-ink) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(183, 92, 132, 0.16) !important;
  box-shadow: 0 6px 14px rgba(106, 67, 88, 0.06) !important;
}

[data-design="refined"] #profileScreen .settingsListDetails[open] {
  padding-bottom: 8px !important;
}

[data-design="refined"] #profileScreen .settingsListDetails[open] > summary {
  border-bottom: 1px solid rgba(232, 168, 188, 0.22) !important;
}

[data-design="refined"] #profileScreen .settingsRow,
[data-design="refined"] #profileScreen .checkInCard,
[data-design="refined"] #profileScreen .remindersStudio,
[data-design="refined"] #profileScreen .launchReadinessPanel {
  width: calc(100% - 20px) !important;
  margin: 8px auto !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(232, 168, 188, 0.18) !important;
}

[data-design="refined"] #profileScreen .settingsRow {
  min-height: 52px !important;
  padding: 9px 10px !important;
  align-items: center !important;
}

[data-design="refined"] #profileScreen .settingsRow h3 {
  font-size: 0.9rem !important;
  line-height: 1.12 !important;
}

[data-design="refined"] #profileScreen .settingsRow p {
  margin-top: 2px !important;
  color: var(--you-final-muted) !important;
  font-size: 0.76rem !important;
  line-height: 1.26 !important;
}

[data-design="refined"] #profileScreen .themePickerSection h2,
[data-design="refined"] #profileScreen > .settingsList:not(.settingsListDetails) > h2 {
  color: var(--you-final-pink) !important;
  font-family: var(--luma-font-display, var(--r-display)) !important;
  font-style: italic !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  font-size: clamp(1.16rem, 4.5vw, 1.46rem) !important;
  line-height: 1.05 !important;
}

[data-design="refined"] #profileScreen .themePickerCard {
  min-height: 70px !important;
  padding: 10px !important;
  border-radius: 18px !important;
}

[data-design="refined"][data-theme="dark"] #profileScreen,
[data-design="refined"][data-theme="moonlit"] #profileScreen {
  --you-final-pink: #f4b8cf;
  --you-final-ink: #fff6fa;
  --you-final-muted: #ead3df;
}

[data-design="refined"][data-theme="dark"] #profileScreen .youOverviewCard,
[data-design="refined"][data-theme="dark"] #profileScreen .youCommandStrip,
[data-design="refined"][data-theme="dark"] #profileScreen .youSettingsGroup,
[data-design="refined"][data-theme="dark"] #profileScreen .themePickerSection,
[data-design="refined"][data-theme="dark"] #profileScreen > .settingsList:not(.settingsListDetails),
[data-design="refined"][data-theme="dark"] #profileScreen .settingsListDetails,
[data-design="refined"][data-theme="moonlit"] #profileScreen .youOverviewCard,
[data-design="refined"][data-theme="moonlit"] #profileScreen .youCommandStrip,
[data-design="refined"][data-theme="moonlit"] #profileScreen .youSettingsGroup,
[data-design="refined"][data-theme="moonlit"] #profileScreen .themePickerSection,
[data-design="refined"][data-theme="moonlit"] #profileScreen > .settingsList:not(.settingsListDetails),
[data-design="refined"][data-theme="moonlit"] #profileScreen .settingsListDetails {
  background:
    radial-gradient(circle at 92% 0%, rgba(244, 184, 207, 0.13), transparent 34%),
    rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-design="refined"][data-theme="dark"] #profileScreen .profileStats div,
[data-design="refined"][data-theme="dark"] #profileScreen .settingsRow,
[data-design="refined"][data-theme="dark"] #profileScreen .youCommandStrip .powerToolBtn,
[data-design="refined"][data-theme="dark"] #profileScreen #youCommandStripLead,
[data-design="refined"][data-theme="moonlit"] #profileScreen .profileStats div,
[data-design="refined"][data-theme="moonlit"] #profileScreen .settingsRow,
[data-design="refined"][data-theme="moonlit"] #profileScreen .youCommandStrip .powerToolBtn,
[data-design="refined"][data-theme="moonlit"] #profileScreen #youCommandStripLead {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

[data-design="refined"][data-theme="dark"] #profileScreen #youCommandStripLead,
[data-design="refined"][data-theme="moonlit"] #profileScreen #youCommandStripLead {
  background: transparent !important;
  color: var(--you-final-muted) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18) !important;
}

/* Final You tab polish: keep all focus modes on the newest compact system. */
[data-design="refined"] #profileScreen {
  --you-current-pink: #b75c84;
  --you-current-ink: #4d3141;
}

[data-design="refined"] #profileScreen .youOverviewCard,
[data-design="refined"] #profileScreen .youCommandStrip,
[data-design="refined"] #profileScreen .youSettingsGroup,
[data-design="refined"] #profileScreen .themePickerSection,
[data-design="refined"] #profileScreen > .settingsList:not(.settingsListDetails) {
  width: calc(100% - 20px) !important;
  margin: 10px auto !important;
  padding: 14px !important;
  border-radius: 22px !important;
  border-color: rgba(232, 168, 188, 0.2) !important;
  background:
    radial-gradient(circle at 94% 0%, rgba(232, 168, 188, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(255, 252, 253, 0.82), rgba(255, 246, 250, 0.58)) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 12px 26px rgba(106, 67, 88, 0.045) !important;
}

[data-design="refined"] #profileScreen .youOverviewCard .cardTop {
  gap: 12px !important;
  align-items: center !important;
}

[data-design="refined"] #profileScreen .youOverviewCard h2 {
  font-family: var(--luma-font-display, var(--r-display)) !important;
  font-style: italic !important;
  font-weight: 500 !important;
  font-size: clamp(1.18rem, 4.8vw, 1.45rem) !important;
  line-height: 1 !important;
  color: var(--you-current-ink) !important;
}

[data-design="refined"] #profileScreen .profileAccountEmail {
  margin-top: 4px !important;
  font-size: 0.82rem !important;
  line-height: 1.25 !important;
}

[data-design="refined"] #profileScreen .profileAvatar {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--you-current-pink), #e3a1bb) !important;
  box-shadow: 0 10px 22px rgba(183, 92, 132, 0.16) !important;
}

[data-design="refined"] #profileScreen .profileStats {
  gap: 8px !important;
  margin-top: 14px !important;
  align-items: stretch !important;
}

[data-design="refined"] #profileScreen .profileStats div {
  min-height: 84px !important;
  padding: 12px 6px 11px !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  place-items: unset !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(232, 168, 188, 0.22) !important;
}

[data-design="refined"] #profileScreen .profileStats b {
  font-family: var(--r-display, "Cormorant Garamond", Georgia, serif) !important;
  font-style: normal !important;
  font-weight: 600 !important;
  font-size: clamp(1.55rem, 6vw, 1.85rem) !important;
  line-height: 1 !important;
  letter-spacing: 0.02em !important;
  word-spacing: 0.16em !important;
  color: #4a3040 !important;
}

[data-design="refined"] #profileScreen .profileStats #profileMode {
  font-style: italic !important;
  font-weight: 500 !important;
  font-size: clamp(0.82rem, 2.8vw, 0.94rem) !important;
  line-height: 1.22 !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.14em !important;
  text-align: center !important;
}

[data-design="refined"] #profileScreen .profileStats span {
  font-family: var(--r-sans, Nunito, sans-serif) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  font-style: normal !important;
  line-height: 1.25 !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.18em !important;
  text-align: center !important;
  color: #7a5c6a !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolsHeader {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  margin-bottom: 10px !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolsHeader .label,
[data-design="refined"] #profileScreen .settingsList .label,
[data-design="refined"] #profileScreen .profileIdentitySummary .label {
  color: var(--you-current-pink) !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolsHeader span {
  max-width: 21ch !important;
  justify-self: end !important;
  color: #765b6a !important;
  font-size: 0.72rem !important;
  line-height: 1.28 !important;
  text-align: left !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolsRow {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolBtn {
  min-height: 72px !important;
  padding: 10px 8px !important;
  border-radius: 18px !important;
  display: grid !important;
  place-items: center !important;
  gap: 5px !important;
  text-align: center !important;
  background: rgba(255, 255, 255, 0.44) !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolBtn [data-icon] {
  width: 26px !important;
  height: 26px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 46%, #fff) !important;
}

[data-design="refined"] #profileScreen .youCommandStrip .powerToolBtn strong {
  font-size: 0.78rem !important;
  line-height: 1.08 !important;
  color: var(--you-current-ink) !important;
}

[data-design="refined"] #profileScreen .settingsListDetails {
  width: calc(100% - 28px) !important;
  margin: 8px auto !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: rgba(255, 252, 253, 0.62) !important;
  border-color: rgba(232, 168, 188, 0.2) !important;
  box-shadow: 0 8px 20px rgba(106, 67, 88, 0.035) !important;
}

[data-design="refined"] #profileScreen .settingsListDetails > summary {
  min-height: 46px !important;
  padding: 8px 10px 8px 16px !important;
  grid-template-columns: 24px minmax(0, 1fr) 30px !important;
  align-items: center !important;
}

[data-design="refined"] #profileScreen .settingsListDetails > summary h2 {
  color: var(--you-current-pink) !important;
  font-family: var(--luma-font-display, var(--r-display)) !important;
  font-style: italic !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  font-size: clamp(1.15rem, 4.6vw, 1.48rem) !important;
  line-height: 1 !important;
  text-align: center !important;
}

[data-design="refined"] #profileScreen .settingsListDetails > summary p {
  display: none !important;
}

[data-design="refined"] #profileScreen .settingsListDetails > summary::after {
  width: 30px !important;
  height: 30px !important;
  justify-self: end !important;
  color: var(--you-current-ink) !important;
  background: rgba(255, 255, 255, 0.68) !important;
  border-color: rgba(183, 92, 132, 0.16) !important;
  box-shadow: 0 6px 14px rgba(106, 67, 88, 0.06) !important;
}

[data-design="refined"] #profileScreen .settingsListDetails[open] {
  padding-bottom: 8px !important;
}

[data-design="refined"] #profileScreen .settingsListDetails[open] > summary {
  border-bottom: 1px solid rgba(232, 168, 188, 0.22) !important;
}

[data-design="refined"] #profileScreen .settingsRow,
[data-design="refined"] #profileScreen .checkInCard,
[data-design="refined"] #profileScreen .remindersStudio,
[data-design="refined"] #profileScreen .launchReadinessPanel {
  width: calc(100% - 18px) !important;
  margin: 8px auto !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.48) !important;
  border-color: rgba(232, 168, 188, 0.18) !important;
}

[data-design="refined"] #profileScreen .settingsRow {
  min-height: 52px !important;
  padding: 9px 10px !important;
  align-items: center !important;
}

[data-design="refined"] #profileScreen .settingsRow h3 {
  font-size: 0.9rem !important;
  line-height: 1.12 !important;
}

[data-design="refined"] #profileScreen .settingsRow p {
  margin-top: 2px !important;
  font-size: 0.76rem !important;
  line-height: 1.26 !important;
}

[data-design="refined"] #profileScreen .settingsRow [data-icon] {
  width: 28px !important;
  min-width: 28px !important;
}

[data-design="refined"] #profileScreen .settingsToggleRow input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
}

[data-design="refined"] #profileScreen .profileIdentityCard {
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(232, 168, 188, 0.18) !important;
  overflow: hidden !important;
}

[data-design="refined"] #profileScreen .profileIdentitySummary {
  min-height: 50px !important;
  padding: 10px 12px !important;
}

[data-design="refined"] #profileScreen .profileIdentitySummary h3 {
  font-size: 0.92rem !important;
  line-height: 1.14 !important;
}

[data-design="refined"] #profileScreen .profileIdentityChevron {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #b45b83) 18%, transparent) !important;
  background-color: color-mix(in srgb, var(--luma-surface-card, #fff8fb) 90%, transparent) !important;
  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") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 14px 14px !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--luma-accent, #b45b83) 8%, transparent) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

[data-design="refined"] #profileScreen .profileDetailsForm {
  padding: 10px 12px 14px !important;
  gap: 10px !important;
}

[data-design="refined"] #profileScreen .profileDetailsForm .field span {
  font-size: 0.78rem !important;
}

[data-design="refined"] #profileScreen .profileDetailsForm input,
[data-design="refined"] #profileScreen .profileDetailsForm textarea,
[data-design="refined"] #profileScreen .birthdaySegmentBtn {
  min-height: 44px !important;
  border-radius: 16px !important;
  font-size: 0.95rem !important;
}

[data-design="refined"] #profileScreen .birthdayPicker {
  gap: 8px !important;
}

[data-design="refined"] #profileScreen .themePickerSection h2,
[data-design="refined"] #profileScreen > .settingsList:not(.settingsListDetails) > h2 {
  color: var(--you-current-pink) !important;
  font-family: var(--luma-font-display, var(--r-display)) !important;
  font-style: italic !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  font-size: clamp(1.22rem, 5vw, 1.62rem) !important;
  line-height: 1.05 !important;
}

[data-design="refined"] #profileScreen .themePickerLead {
  font-size: 0.8rem !important;
  line-height: 1.32 !important;
}

[data-design="refined"] #profileScreen .themePickerGrid {
  gap: 8px !important;
}

[data-design="refined"] #profileScreen .themePickerCard {
  min-height: 72px !important;
  padding: 10px !important;
  border-radius: 18px !important;
}

[data-design="refined"] #profileScreen > .settingsList:last-child {
  margin-bottom: 112px !important;
}

[data-design="refined"] #profileScreen > .settingsList:last-child .wideButton {
  min-height: 44px !important;
  border-radius: 18px !important;
}

[data-design="refined"][data-theme="dark"] #profileScreen,
[data-design="refined"][data-theme="moonlit"] #profileScreen {
  --you-current-pink: #f2b8ce;
  --you-current-ink: #fff4fa;
}

[data-design="refined"][data-theme="dark"] #profileScreen .youOverviewCard,
[data-design="refined"][data-theme="dark"] #profileScreen .youCommandStrip,
[data-design="refined"][data-theme="dark"] #profileScreen .youSettingsGroup,
[data-design="refined"][data-theme="dark"] #profileScreen .themePickerSection,
[data-design="refined"][data-theme="dark"] #profileScreen > .settingsList:not(.settingsListDetails),
[data-design="refined"][data-theme="dark"] #profileScreen .settingsListDetails,
[data-design="refined"][data-theme="moonlit"] #profileScreen .youOverviewCard,
[data-design="refined"][data-theme="moonlit"] #profileScreen .youCommandStrip,
[data-design="refined"][data-theme="moonlit"] #profileScreen .youSettingsGroup,
[data-design="refined"][data-theme="moonlit"] #profileScreen .themePickerSection,
[data-design="refined"][data-theme="moonlit"] #profileScreen > .settingsList:not(.settingsListDetails),
[data-design="refined"][data-theme="moonlit"] #profileScreen .settingsListDetails {
  background:
    radial-gradient(circle at 94% 0%, rgba(242, 184, 206, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

[data-design="refined"][data-theme="dark"] #profileScreen .profileStats div,
[data-design="refined"][data-theme="dark"] #profileScreen .settingsRow,
[data-design="refined"][data-theme="dark"] #profileScreen .profileIdentityCard,
[data-design="refined"][data-theme="moonlit"] #profileScreen .profileStats div,
[data-design="refined"][data-theme="moonlit"] #profileScreen .settingsRow,
[data-design="refined"][data-theme="moonlit"] #profileScreen .profileIdentityCard {
  background: rgba(255, 255, 255, 0.075) !important;
}

/* Final override: Luma lanes must appear before messages and composer in every mode. */
[data-design="refined"] .phoneShell .lumaSheetChat,

[data-design="refined"] .phoneShell .lumaSheetChat .lumaSheetTodayCard,

[data-design="refined"] .phoneShell .lumaSheetChat .memoryStrip,

[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatControls,

[data-design="refined"] .phoneShell .lumaSheetChat .lumaPreviousChatsPanel,

[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge,

[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessages,

[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm,

[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote,

[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoicePanel,

/* Final launch override: the chat order below is tested in every focus mode. */















@media (max-width: 420px) {


}

/* Launch QA: Luma chat must stay readable and usable in every focus mode. */





















@media (max-width: 420px) {


}

/* Luma chat restructure: compact, readable, and focused on conversation. */
































@keyframes premiumFloatIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}












@media (max-width: 430px) {


}

/* ——— Learn — shared tokens for every theme + focus ——— */
[data-design="refined"] #careScreen {
  --learn-accent: var(--luma-accent);
  --learn-accent-text: var(--luma-accent-text, var(--luma-link));
  --learn-accent-soft: color-mix(in srgb, var(--luma-accent) 16%, var(--luma-surface-card));
  --learn-card-border: color-mix(in srgb, var(--luma-accent) 18%, transparent);
  --learn-card-glow: color-mix(in srgb, var(--luma-accent) 12%, transparent);
  --learn-card-bg:
    radial-gradient(ellipse 80% 60% at 0% 0%, var(--learn-card-glow), transparent 55%),
    linear-gradient(160deg, var(--luma-surface-card) 0%, var(--luma-surface-card-alt) 100%);
  --learn-card-shadow: 0 8px 20px color-mix(in srgb, var(--luma-accent) 8%, transparent);
}

[data-design="refined"][data-theme="dark"] #careScreen,
[data-design="refined"][data-theme="moonlit"] #careScreen {
  --learn-card-bg:
    radial-gradient(ellipse 80% 60% at 0% 0%, var(--learn-card-glow), transparent 55%),
    linear-gradient(160deg, var(--luma-surface-card) 0%, var(--luma-shell) 100%);
  --learn-card-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  --learn-card-border: color-mix(in srgb, var(--luma-accent) 22%, transparent);
}

[data-design="refined"][data-theme="hearth"] #careScreen {
  --learn-card-bg:
    radial-gradient(ellipse 80% 60% at 0% 0%, color-mix(in srgb, var(--luma-accent) 16%, transparent), transparent 55%),
    linear-gradient(160deg, var(--luma-surface-card) 0%, var(--luma-surface-card-alt) 100%);
}

[data-design="refined"] body.pregnancyFocusMode #careScreen,
[data-design="refined"] body.focus-pregnant #careScreen {
  --learn-accent: var(--luma-accent-teal);
  --learn-accent-text: color-mix(in srgb, var(--luma-accent-teal) 42%, #24382f);
  --learn-accent-soft: color-mix(in srgb, var(--luma-accent-teal) 18%, var(--luma-surface-card));
  --learn-card-border: color-mix(in srgb, var(--luma-accent-teal) 22%, transparent);
  --learn-card-glow: color-mix(in srgb, var(--luma-accent-teal) 14%, transparent);
  --learn-card-bg:
    radial-gradient(ellipse 80% 60% at 0% 0%, var(--learn-card-glow), transparent 55%),
    linear-gradient(160deg, var(--luma-surface-card) 0%, var(--luma-accent-teal-soft) 55%, var(--luma-surface-card-alt) 100%);
}

[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #careScreen,
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #careScreen,
[data-design="refined"][data-theme="dark"] body.focus-pregnant #careScreen,
[data-design="refined"][data-theme="moonlit"] body.focus-pregnant #careScreen {
  --learn-accent-text: var(--luma-accent-teal);
  --learn-card-bg:
    radial-gradient(ellipse 80% 60% at 0% 0%, var(--learn-card-glow), transparent 55%),
    linear-gradient(160deg, var(--luma-surface-card) 0%, color-mix(in srgb, var(--luma-accent-teal) 10%, var(--luma-shell)) 100%);
}

[data-design="refined"] #careScreen .learnVisualFeature {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--learn-card-border, color-mix(in srgb, var(--luma-accent) 22%, transparent));
  border-radius: var(--r-radius-lg);
  background: var(--learn-card-bg,
    radial-gradient(ellipse 90% 70% at 8% 0%, color-mix(in srgb, var(--luma-accent) 22%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 60% at 100% 100%, color-mix(in srgb, var(--luma-accent-teal) 16%, transparent), transparent 50%),
    linear-gradient(155deg, var(--luma-surface-card) 0%, var(--luma-surface-card-alt) 55%, var(--luma-shell) 100%));
  box-shadow: var(--learn-card-shadow, 0 12px 28px color-mix(in srgb, var(--luma-accent) 10%, transparent));
  color: var(--luma-text);
}

[data-design="refined"] #careScreen .learnVisualFeature::before,
[data-design="refined"] #careScreen .learnVisualFeature::after {
  display: none;
}

[data-design="refined"] #careScreen .learnVisualFeature img,
[data-design="refined"] #careScreen .learnVisualFeature #learnFocusVisual {
  display: block;
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 0 4px;
}

[data-design="refined"] #careScreen .learnVisualFeature > div {
  position: relative;
  z-index: 1;
  padding: 16px 16px 18px;
  display: grid;
  gap: 6px;
}

[data-design="refined"] #careScreen .learnVisualFeature .label {
  margin: 0;
  color: var(--learn-accent-text, var(--luma-accent-text, var(--luma-link)));
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 700;
}

[data-design="refined"] #careScreen .learnVisualFeature h2 {
  margin: 0;
  max-width: none;
  width: 100%;
  font-family: var(--r-display);
  font-size: clamp(1.3rem, 5vw, 1.65rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--luma-text-heading);
  text-shadow: none;
}

[data-design="refined"] #careScreen .learnVisualFeature p:last-child {
  margin: 0;
  max-width: none;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

[data-design="refined"] #careScreen .learnVisualPath {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--luma-text-muted);
}

[data-design="refined"] #careScreen .learnFeaturedArticle {
  margin-top: 12px;
}

[data-design="refined"] #careScreen .learnFeaturedArticle .careArticleCard {
  margin: 0;
}

[data-design="refined"][data-theme="hearth"] #careScreen .learnVisualFeature {
  border-color: color-mix(in srgb, var(--luma-accent) 24%, transparent);
}

[data-design="refined"][data-theme="dark"] #careScreen .learnVisualFeature,
[data-design="refined"][data-theme="moonlit"] #careScreen .learnVisualFeature {
  border-color: color-mix(in srgb, var(--luma-accent) 26%, transparent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

[data-design="refined"] body.pregnancyFocusMode #careScreen .learnVisualFeature {
  border-color: var(--learn-card-border);
}

[data-design="refined"] #careScreen .careLibrary {
  gap: 16px;
  padding-bottom: 96px;
}

[data-design="refined"] #careScreen .careSectionTitle {
  margin: 0 0 6px;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  color: var(--learn-accent-text);
}

/* Signature paths — stacked on every theme/focus */
[data-design="refined"] #careScreen .learnSignaturePaths {
  gap: 12px;
}

[data-design="refined"] #careScreen .learnSignaturePaths article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px 16px;
  border: 1px solid var(--learn-card-border);
  border-radius: var(--r-radius-md);
  background: var(--learn-card-bg);
  box-shadow: var(--learn-card-shadow);
}

[data-design="refined"] #careScreen .learnSignaturePaths article [data-icon] {
  display: none;
}

[data-design="refined"] #careScreen .learnSignaturePaths article .label {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--learn-accent-text);
}

[data-design="refined"] #careScreen .learnSignaturePaths article h3 {
  margin: 0;
  width: 100%;
  max-width: none;
  font-family: var(--r-display);
  font-size: clamp(1.2rem, 4.6vw, 1.4rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--luma-text-heading);
}

[data-design="refined"] #careScreen .learnSignaturePaths article p:not(.label) {
  margin: 0;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

/* Browse by topic + For you — same rhythm everywhere */
[data-design="refined"] #careScreen .careForYou,
[data-design="refined"] #careScreen .careCategories {
  gap: 14px;
  margin-top: 4px;
}

[data-design="refined"] #careScreen .careCategoryGrid,
[data-design="refined"] #careScreen .careArticleList {
  gap: 14px;
}

[data-design="refined"] #careScreen .careArticleListCompact {
  gap: 12px;
}

[data-design="refined"] #careScreen .careCategoryCard,
[data-design="refined"] #careScreen .careArticleCard {
  border: 1px solid var(--learn-card-border);
  border-radius: var(--r-radius-md);
  background: var(--learn-card-bg);
  box-shadow: var(--learn-card-shadow);
}

[data-design="refined"] #careScreen .careCategoryCard {
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 16px 18px;
}

[data-design="refined"] #careScreen .careArticleCard {
  gap: 8px;
  padding: 18px 18px 20px;
  overflow: hidden;
  position: relative;
}

[data-design="refined"] #careScreen .careCategoryIcon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--learn-accent-soft);
  color: var(--learn-accent-text);
}

[data-design="refined"] #careScreen .careCategoryCardBody {
  gap: 6px;
  min-width: 0;
}

[data-design="refined"] #careScreen .careCategoryCardBody strong,
[data-design="refined"] #careScreen .careArticleCard h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--luma-text-heading);
}

[data-design="refined"] #careScreen .careCategoryCardBody span,
[data-design="refined"] #careScreen .careArticleCard p {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--luma-text-muted);
}

[data-design="refined"] #careScreen .careCategoryCardBody em,
[data-design="refined"] #careScreen .careArticleCategory,
[data-design="refined"] #careScreen .careArticleMeta {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--learn-accent-text);
}

[data-design="refined"] #careScreen .careArticleCategory {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Safety / pathways hub blocks on Learn */
[data-design="refined"] #careScreen .hubSection {
  margin: 4px 0 0;
  padding: 16px;
  border: 1px solid var(--learn-card-border);
  border-radius: var(--r-radius-md);
  background: var(--learn-card-bg);
  box-shadow: var(--learn-card-shadow);
}

[data-design="refined"] #careScreen .hubSectionHeader {
  margin-bottom: 12px;
  gap: 12px;
}

[data-design="refined"] #careScreen .hubSectionHeader .hubSectionIcon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--learn-accent-soft);
  color: var(--learn-accent-text);
}

[data-design="refined"] #careScreen .hubSectionHeader .label {
  color: var(--learn-accent-text);
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 700;
}

[data-design="refined"] #careScreen .hubSectionHeader h2 {
  font-family: var(--r-display);
  font-size: clamp(1.15rem, 4.2vw, 1.35rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.015em;
  color: var(--luma-text-heading);
}

[data-design="refined"] #careScreen .hubSectionLead {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

[data-design="refined"] #careScreen .redFlagsList {
  gap: 10px;
}

[data-design="refined"] #careScreen .redFlagsList li {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--learn-accent) 12%, transparent);
  background: color-mix(in srgb, var(--luma-surface-card) 88%, transparent);
  color: var(--luma-text);
  line-height: 1.45;
}

[data-design="refined"] #careScreen .pathwayGrid {
  gap: 12px;
}

[data-design="refined"] #careScreen .careSearchInput {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--learn-card-border);
  border-radius: var(--r-radius-md);
  background: var(--luma-surface-card);
  color: var(--luma-text);
  box-shadow: none;
}

[data-design="refined"] #careScreen .careSearchInput::placeholder {
  color: var(--luma-text-muted);
  opacity: 0.85;
}

[data-design="refined"] #careScreen #careCategoryDetail:not([hidden]) {
  display: grid;
  gap: 12px;
}

[data-design="refined"] #careScreen .careBackBtn {
  color: var(--learn-accent-text);
  font-weight: 700;
}

[data-design="refined"] #careScreen .careCategoryHeading {
  font-family: var(--r-display);
  font-weight: 600;
  font-style: italic;
  color: var(--luma-text-heading);
}

[data-design="refined"] #careScreen .careCategoryDesc {
  color: var(--luma-text-muted);
  line-height: 1.5;
}

[data-design="refined"] #careScreen .careLumaShortcuts {
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid var(--learn-card-border);
  border-radius: var(--r-radius-md);
  background: var(--learn-card-bg);
  box-shadow: none;
}

[data-design="refined"] #careScreen .careLumaShortcuts summary {
  color: var(--luma-text-heading);
  font-weight: 700;
}

[data-design="refined"] #careScreen .careShortcutGrid {
  gap: 10px;
  margin-top: 14px;
}

[data-design="refined"] #careScreen .careShortcutGrid button,
[data-design="refined"] #careScreen .careFilterBtn {
  border-radius: 14px;
  border: 1px solid var(--learn-card-border);
  background: var(--luma-surface-card);
  color: var(--luma-text);
  font-weight: 650;
}

[data-design="refined"] #careScreen .careFilterBtn.active {
  background: var(--learn-accent-soft);
  border-color: var(--learn-card-border);
  color: var(--learn-accent-text);
}

/* ——— 5. You — organized control center ——— */
[data-design="refined"] #profileScreen > .mobileHeader.compact h1 {
  font-family: var(--r-display);
  font-style: italic;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--luma-text-heading);
}

[data-design="refined"] #profileScreen .youOverviewCard,
[data-design="refined"] #profileScreen .profileFocusCard,
[data-design="refined"] #profileScreen .youCommandStrip,
[data-design="refined"] #profileScreen .youSettingsGroup,
[data-design="refined"] #profileScreen .settingsListDetails {
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent);
  border-radius: var(--r-radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, color-mix(in srgb, var(--luma-accent) 12%, transparent), transparent 58%),
    linear-gradient(160deg, var(--luma-surface-card) 0%, var(--luma-surface-card-alt) 100%);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--luma-accent) 8%, transparent);
}

[data-design="refined"] #profileScreen .profileStats {
  gap: 10px;
}

[data-design="refined"] #profileScreen .profileStats div {
  border-radius: var(--r-radius-md);
  background: color-mix(in srgb, var(--luma-accent) 8%, transparent);
}

[data-design="refined"] #profileScreen .profileFocusCard {
  padding: 20px;
  overflow: hidden;
}

[data-design="refined"] #profileScreen .profileFocusCard .label {
  color: var(--luma-accent-text, var(--luma-link));
}

[data-design="refined"] #profileScreen .profileFocusCard strong {
  font-family: var(--r-display);
  font-size: clamp(1.7rem, 6vw, 2.2rem);
  font-style: italic;
  line-height: 1;
}

[data-design="refined"] #profileScreen .profileFocusCard[data-focus="tracking"] {
  border-color: color-mix(in srgb, var(--luma-accent-teal) 24%, transparent);
}

[data-design="refined"] #profileScreen .profileFocusCard[data-focus="trying"] {
  border-color: color-mix(in srgb, var(--luma-accent) 28%, transparent);
}

[data-design="refined"] #profileScreen .profileFocusCard[data-focus="pregnant"] {
  border-color: color-mix(in srgb, var(--luma-accent-teal) 22%, var(--luma-accent) 12%);
}

[data-design="refined"] #profileScreen .powerToolsHeader {
  align-items: flex-end;
}

[data-design="refined"] #profileScreen .powerToolsHeader .label,
[data-design="refined"] #profileScreen .settingsList > h2,
[data-design="refined"] #profileScreen .settingsListDetails > summary h2 {
  color: var(--luma-accent-text, var(--luma-link));
}

[data-design="refined"] #profileScreen .powerToolsRow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

[data-design="refined"] #profileScreen .powerToolBtn {
  min-height: 112px;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  border-radius: var(--r-radius-md);
  background: var(--luma-surface-card);
  border: 1px solid color-mix(in srgb, var(--luma-accent) 16%, transparent);
}

[data-design="refined"] #profileScreen .settingsSectionLead,
[data-design="refined"] #profileScreen .settingsSectionIntro,
[data-design="refined"] #profileScreen .settingsRow p {
  color: var(--luma-text-muted);
}

[data-design="refined"][data-theme="dark"] #profileScreen .youOverviewCard,
[data-design="refined"][data-theme="moonlit"] #profileScreen .youOverviewCard,
[data-design="refined"][data-theme="dark"] #profileScreen .profileFocusCard,
[data-design="refined"][data-theme="moonlit"] #profileScreen .profileFocusCard,
[data-design="refined"][data-theme="dark"] #profileScreen .youCommandStrip,
[data-design="refined"][data-theme="moonlit"] #profileScreen .youCommandStrip,
[data-design="refined"][data-theme="dark"] #profileScreen .youSettingsGroup,
[data-design="refined"][data-theme="moonlit"] #profileScreen .youSettingsGroup,
[data-design="refined"][data-theme="dark"] #profileScreen .settingsListDetails,
[data-design="refined"][data-theme="moonlit"] #profileScreen .settingsListDetails {
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, color-mix(in srgb, var(--luma-accent) 12%, transparent), transparent 58%),
    linear-gradient(160deg, var(--luma-surface-card) 0%, var(--luma-shell) 100%);
  border-color: color-mix(in srgb, var(--luma-accent) 26%, transparent);
}

/* ——— 6. Luma chat sheet — premium companion surface ——— */
[data-design="refined"] .lumaSheetOverlay {
  padding: 10px 12px calc(78px + env(safe-area-inset-bottom));
  align-items: end;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, color-mix(in srgb, var(--luma-accent) 20%, transparent), transparent 60%),
    rgba(38, 30, 35, 0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-design="refined"] .lumaSheet {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-height: min(86vh, 760px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 30px 30px 24px 24px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent);
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, color-mix(in srgb, var(--luma-accent) 14%, transparent), transparent 58%),
    linear-gradient(160deg, var(--luma-surface-card) 0%, var(--luma-surface-card-alt) 78%, var(--luma-shell) 100%);
  box-shadow:
    0 24px 70px rgba(54, 32, 44, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

[data-design="refined"] .lumaSheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image:
    linear-gradient(color-mix(in srgb, var(--luma-accent) 14%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--luma-accent) 12%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, black 0%, transparent 70%);
}

[data-design="refined"] .lumaSheetHeader {
  padding: 22px 22px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent) 14%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--luma-surface-card) 84%, transparent), transparent);
}

[data-design="refined"] .lumaSheetHeader p {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--luma-accent-text, var(--luma-link));
}

[data-design="refined"] .lumaSheetHeader h2 {
  margin: 6px 0 0;
  max-width: 13ch;
  font-family: var(--r-display);
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-style: italic;
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--luma-text-heading);
}

[data-design="refined"] .lumaSheetClose {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 16%, transparent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--luma-surface-card) 82%, white), color-mix(in srgb, var(--luma-accent) 10%, var(--luma-surface-card)));
  color: var(--luma-text-heading);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--luma-accent) 10%, transparent);
}

[data-design="refined"] .lumaSheetChat {
  min-height: 0;
  padding: 18px 20px 16px;
  overflow: auto;
  gap: 14px;
}

[data-design="refined"] .lumaSheetChat .memoryStrip {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 2px;
}

[data-design="refined"] .lumaSheetChat .memoryStrip::-webkit-scrollbar {
  display: none;
}

[data-design="refined"] .lumaSheetChat .memoryStrip span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--luma-accent-teal) 16%, var(--luma-surface-card));
  border: 1px solid color-mix(in srgb, var(--luma-accent-teal) 18%, transparent);
  color: #155f58;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

[data-design="refined"] .lumaChatControls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

[data-design="refined"] .lumaChatControls button {
  min-height: 56px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent);
  background: color-mix(in srgb, var(--luma-surface-card) 88%, transparent);
  color: var(--luma-accent-text, var(--luma-link));
  font-family: var(--r-display);
  font-size: clamp(1.15rem, 4.6vw, 1.35rem);
  font-style: italic;
  font-weight: 700;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--luma-accent) 7%, transparent);
}

[data-design="refined"] .lumaChatControls button[aria-expanded="true"],
[data-design="refined"] .lumaChatControls button:active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 60%, white), var(--luma-accent));
  color: #fff;
}

[data-design="refined"] .lumaConcierge {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent);
  background:
    radial-gradient(ellipse 72% 48% at 15% 0%, color-mix(in srgb, var(--luma-accent) 14%, transparent), transparent 66%),
    linear-gradient(150deg, color-mix(in srgb, var(--luma-surface-card) 92%, transparent), color-mix(in srgb, var(--luma-accent-teal) 7%, var(--luma-surface-card)));
  box-shadow: 0 18px 38px color-mix(in srgb, var(--luma-accent) 8%, transparent);
}

[data-design="refined"] .lumaConcierge .label {
  margin: 0;
  color: var(--luma-accent-text, var(--luma-link));
}

[data-design="refined"] .lumaConcierge h3 {
  margin: 0;
  color: var(--luma-text-heading);
  font-family: var(--r-display);
  font-size: clamp(1.55rem, 6vw, 2.15rem);
  font-style: italic;
  line-height: 1.02;
}

[data-design="refined"] .lumaConcierge p {
  margin: 0;
  color: var(--luma-text);
  font-size: 0.95rem;
  line-height: 1.45;
}

[data-design="refined"] .lumaConciergeModes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

[data-design="refined"] .lumaConciergeMode {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 6px 10px;
  align-items: start;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 16%, transparent);
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--luma-surface-card) 90%, transparent), color-mix(in srgb, var(--luma-accent) 6%, var(--luma-surface-card)));
  color: var(--luma-text-heading);
  text-align: left;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--luma-accent) 6%, transparent);
}

[data-design="refined"] .lumaConciergeMode span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--luma-accent) 14%, var(--luma-surface-card));
  color: var(--luma-accent-text, var(--luma-link));
  font-family: var(--r-display);
  font-size: 1.25rem;
  font-weight: 800;
}

[data-design="refined"] .lumaConciergeMode strong {
  display: block;
  color: var(--luma-text-heading);
  font-size: 0.95rem;
  font-weight: 900;
}

[data-design="refined"] .lumaConciergeMode em {
  display: block;
  grid-column: 2;
  color: var(--luma-text-muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}

[data-design="refined"] .lumaConciergeMode.active {
  border-color: color-mix(in srgb, var(--luma-accent) 50%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 18%, var(--luma-surface-card)), color-mix(in srgb, var(--luma-accent-teal) 10%, var(--luma-surface-card)));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--luma-accent) 20%, transparent),
    0 16px 32px color-mix(in srgb, var(--luma-accent) 12%, transparent);
}

[data-design="refined"] .lumaConciergeMode.active span {
  background: var(--luma-accent);
  color: #fff;
}

[data-design="refined"] .lumaConciergePanel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 26px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 20%, transparent);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--luma-accent) 10%, var(--luma-surface-card)), color-mix(in srgb, var(--luma-surface-card) 92%, transparent));
}

[data-design="refined"] .lumaConciergePanelHead {
  display: flex;
  align-items: center;
  gap: 12px;
}

[data-design="refined"] #lumaConciergePanelIcon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 17px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 75%, white), var(--luma-accent));
  color: #fff;
  font-family: var(--r-display);
  font-size: 1.35rem;
  box-shadow: 0 14px 26px color-mix(in srgb, var(--luma-accent) 16%, transparent);
}

[data-design="refined"] #lumaConciergePanelKicker {
  margin: 0 0 2px;
  color: var(--luma-accent-text, var(--luma-link));
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

[data-design="refined"] #lumaConciergePanelTitle {
  color: var(--luma-text-heading);
  font-size: 1.05rem;
  font-weight: 900;
}

[data-design="refined"] #lumaConciergePanelCopy {
  color: var(--luma-text);
  font-size: 0.88rem;
}

[data-design="refined"] .mobileMessages {
  flex: 0 0 auto;
  min-height: 72px;
  max-height: min(28vh, 220px);
  padding: 0;
  gap: 10px;
}

[data-design="refined"] .mobileMessage {
  max-width: min(88%, 560px);
  border-radius: 22px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.48;
  white-space: pre-line;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--luma-accent) 7%, transparent);
}

[data-design="refined"] .mobileMessage.luma {
  border: 1px solid color-mix(in srgb, var(--luma-accent) 14%, transparent);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.78), color-mix(in srgb, var(--luma-accent) 6%, var(--luma-surface-card)));
  color: var(--luma-text);
}

[data-design="refined"] .mobileMessage.you {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 76%, #ffffff), var(--luma-accent));
  color: #fff;
}

[data-design="refined"] .lumaSheetChat > .lumaPromptGroups {
  margin: 0;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 14%, transparent);
  background: color-mix(in srgb, var(--luma-surface-card) 78%, transparent);
}

[data-design="refined"] .lumaSheetChat > .lumaPromptGroups > summary {
  color: var(--luma-text-heading);
  font-family: var(--r-display);
  font-size: 1.18rem;
  font-style: italic;
  font-weight: 700;
}

[data-design="refined"] .lumaPromptGroupList {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

[data-design="refined"] .lumaPromptGroup {
  display: grid;
  gap: 10px;
}

[data-design="refined"] .lumaPromptGroupHead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

[data-design="refined"] .lumaPromptGroupHead span {
  color: var(--luma-accent-text, var(--luma-link));
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

[data-design="refined"] .lumaPromptGroupHead small {
  color: var(--luma-text-muted);
  font-size: 11px;
  font-weight: 700;
}

[data-design="refined"] .lumaPromptGroupRow,
[data-design="refined"] .promptRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

[data-design="refined"] .lumaPromptGroupRow button,
[data-design="refined"] .promptRow button {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent);
  background: color-mix(in srgb, var(--luma-surface-card) 90%, transparent);
  color: var(--luma-text-heading);
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

[data-design="refined"] .lumaPromptGroupRow .lumaPromptPrimary {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 76%, #ffffff), var(--luma-accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--luma-accent) 16%, transparent);
}

[data-design="refined"] .mobileChatForm {
  position: sticky;
  bottom: 0;
  z-index: 4;
  grid-template-columns: 1fr 54px;
  gap: 10px;
  margin-top: 2px;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 16%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--luma-surface-card) 88%, transparent), color-mix(in srgb, var(--luma-accent) 7%, var(--luma-surface-card)));
  box-shadow: 0 -8px 24px rgba(75, 48, 62, 0.08);
}

[data-design="refined"] .mobileChatForm input {
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 16%, transparent);
  background: rgba(255, 255, 255, 0.72);
  color: var(--luma-text-heading);
  font-size: 15px;
}

[data-design="refined"] .mobileChatForm button {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 74%, white), var(--luma-accent));
  color: #fff;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--luma-accent) 22%, transparent);
}

[data-design="refined"] .lumaPreviousChatsPanel,
[data-design="refined"] .lumaVoicePanel,
[data-design="refined"] .aiToolCard,
[data-design="refined"] .lumaInsightsSection {
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 14%, transparent);
  background: color-mix(in srgb, var(--luma-surface-card) 84%, transparent);
}

[data-design="refined"] .lumaPreviousChatsHeader strong,
[data-design="refined"] .lumaInsightsSection h2,
[data-design="refined"] .aiToolCard h3 {
  font-family: var(--r-display);
  font-style: italic;
  color: var(--luma-text-heading);
}

[data-design="refined"][data-theme="dark"] .lumaSheet,
[data-design="refined"][data-theme="moonlit"] .lumaSheet {
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, color-mix(in srgb, var(--luma-accent) 18%, transparent), transparent 58%),
    linear-gradient(160deg, var(--luma-surface-card) 0%, var(--luma-shell) 100%);
  border-color: color-mix(in srgb, var(--luma-accent) 30%, transparent);
}

[data-design="refined"][data-theme="dark"] .lumaSheetChat .memoryStrip span,
[data-design="refined"][data-theme="moonlit"] .lumaSheetChat .memoryStrip span {
  background: color-mix(in srgb, var(--luma-accent-teal) 18%, var(--luma-surface-card));
  color: var(--luma-accent-teal);
}

[data-design="refined"][data-theme="dark"] .mobileMessage.luma,
[data-design="refined"][data-theme="moonlit"] .mobileMessage.luma,
[data-design="refined"][data-theme="dark"] .lumaConcierge,
[data-design="refined"][data-theme="moonlit"] .lumaConcierge,
[data-design="refined"][data-theme="dark"] .lumaConciergePanel,
[data-design="refined"][data-theme="moonlit"] .lumaConciergePanel,
[data-design="refined"][data-theme="dark"] .lumaSheetChat > .lumaPromptGroups,
[data-design="refined"][data-theme="moonlit"] .lumaSheetChat > .lumaPromptGroups,
[data-design="refined"][data-theme="dark"] .mobileChatForm,
[data-design="refined"][data-theme="moonlit"] .mobileChatForm,
[data-design="refined"][data-theme="dark"] .lumaPreviousChatsPanel,
[data-design="refined"][data-theme="moonlit"] .lumaPreviousChatsPanel,
[data-design="refined"][data-theme="dark"] .lumaVoicePanel,
[data-design="refined"][data-theme="moonlit"] .lumaVoicePanel {
  background: color-mix(in srgb, var(--luma-surface-card) 88%, transparent);
  border-color: color-mix(in srgb, var(--luma-accent) 28%, transparent);
}

[data-design="refined"][data-theme="dark"] .mobileChatForm input,
[data-design="refined"][data-theme="moonlit"] .mobileChatForm input,
[data-design="refined"][data-theme="dark"] .lumaConciergeMode,
[data-design="refined"][data-theme="moonlit"] .lumaConciergeMode,
[data-design="refined"][data-theme="dark"] .lumaPromptGroupRow button,
[data-design="refined"][data-theme="moonlit"] .lumaPromptGroupRow button,
[data-design="refined"][data-theme="dark"] .promptRow button,
[data-design="refined"][data-theme="moonlit"] .promptRow button {
  background: color-mix(in srgb, var(--luma-shell) 68%, var(--luma-surface-card));
  color: var(--luma-text-heading);
  border-color: color-mix(in srgb, var(--luma-accent) 30%, transparent);
}

[data-design="refined"][data-theme="dark"] .lumaConciergeMode em,
[data-design="refined"][data-theme="moonlit"] .lumaConciergeMode em,
[data-design="refined"][data-theme="dark"] #lumaConciergePanelCopy,
[data-design="refined"][data-theme="moonlit"] #lumaConciergePanelCopy,
[data-design="refined"][data-theme="dark"] .lumaConcierge p,
[data-design="refined"][data-theme="moonlit"] .lumaConcierge p {
  color: var(--luma-text);
}

@media (max-width: 380px) {
  [data-design="refined"] .lumaSheetHeader h2 {
    font-size: 1.9rem;
  }

  [data-design="refined"] .lumaChatControls {
    grid-template-columns: 1fr;
  }

  [data-design="refined"] .lumaConciergeModes {
    grid-template-columns: 1fr;
  }
}

/* ——— Girly beauty polish ——— */
[data-design="refined"] .mobileHeader h1,
[data-design="refined"] .checkInCard h2,
[data-design="refined"] .profileCard h2,
[data-design="refined"] .summaryCard h2,
[data-design="refined"] #cycleScreen .monthNavigator h3,
[data-design="refined"] #cycleScreen #monthTitle {
  font-family: var(--r-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

[data-design="refined"] .mobileHeader h1 {
  font-style: italic;
  font-size: clamp(1.55rem, 5.5vw, 1.85rem);
  color: var(--luma-text-heading);
}

[data-design="refined"] .label,
[data-design="refined"] .homeLumaSnippet .label,
[data-design="refined"] .homeGreetingEyebrow,
[data-design="refined"] .pregnancyWeekSectionLabel,
[data-design="refined"] .pregnancyStoryBrand {
  font-family: var(--r-sans);
  letter-spacing: 0.14em;
  font-weight: 700;
}

[data-design="refined"] .homeLumaSnippetText {
  font-style: italic;
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--luma-text-heading);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryWeekLine {
  font-style: italic;
  font-weight: 600;
}

[data-design="refined"] .wideButton,
[data-design="refined"] .primaryButton,
[data-design="refined"] button.wideButton {
  border-radius: var(--r-radius-md);
}

[data-design="refined"] .checkInCard,
[data-design="refined"] .profileCard,
[data-design="refined"] .summaryCard,
[data-design="refined"] .logComposer,
[data-design="refined"] .settingsRow {
  border-radius: var(--r-radius-md);
  border-color: color-mix(in srgb, var(--luma-accent) 22%, transparent);
}

[data-design="refined"] #cycleScreen .monthCalendarDay.period,
[data-design="refined"] #cycleScreen .monthCalendarDay[data-phase="period"] {
  background: linear-gradient(145deg, #fbe4ea 0%, var(--cycle-period) 100%);
  color: #6a4050;
}

[data-design="refined"] .phoneShell::before {
  opacity: 0.9;
}

@keyframes refinedPetalDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
  50% { transform: translate3d(0, -6px, 0) scale(1.02); opacity: 1; }
}

[data-design="refined"] #todayScreen .homeAtmospherePreview img {
  animation: refinedPetalDrift 7s ease-in-out infinite;
}

/* ——— Typography-first Home hero (tracking / trying only; pregnancy unchanged) ——— */
[data-design="refined"] .homeTypeAtm,
[data-design="refined"] .homeTypeBrand {
  display: none;
}

[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeAtmospherePreview {
  background: transparent;
}

[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeAtmospherePreview img {
  display: none !important;
  animation: none;
}

[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeAtmospherePreview::after {
  display: none;
}

[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeTypeAtm {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--home-type-glow-a), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, var(--home-type-glow-b), transparent 50%),
    linear-gradient(180deg, var(--home-type-base-a) 0%, var(--home-type-base-b) 100%);
}

[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeTypeWash {
  position: absolute;
  inset: 8% 8% auto;
  height: 58%;
  border-radius: 42% 48% 45% 55%;
  background: radial-gradient(ellipse at center, var(--home-type-wash), transparent 70%);
  filter: blur(10px);
  animation: homeTypeBreath 7s ease-in-out infinite;
}

[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeTypeGrain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeTypeBrand {
  display: block;
  position: relative;
  z-index: 3;
  top: auto;
  left: auto;
  margin: 0;
  padding: 2px 0 0;
  font-family: var(--r-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--home-type-brand);
  text-shadow: none;
  pointer-events: none;
}

/* Luma → phase status → Day (compact stack, no dead spacer) */
[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeDaySummary {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: clamp(280px, 36vh, 380px);
  padding: 20px 20px 28px;
  gap: 7px;
}

[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeHeroPhasePill,
[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeDaySummary h2,
[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeDaySummary #todayHeadline,
[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeDaySummary .homePhaseLine,
[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeDaySummary #todayPhaseLine {
  text-shadow: none;
  color: var(--home-type-ink);
}

[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeHeroPhasePill,
[data-design="refined"][data-theme="dark"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeHeroPhasePill,
[data-design="refined"][data-theme="moonlit"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeHeroPhasePill {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px;
  width: auto;
  max-width: min(100%, 36ch);
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--home-type-muted);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeDaySummary h2,
[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeDaySummary #todayHeadline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12em;
  margin: 34px 0 0;
  padding-top: 0;
  max-width: 14ch;
  font-size: clamp(2.1rem, 7.5vw, 2.55rem);
  line-height: 1.05;
  color: var(--home-type-ink);
}

[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeTypeDay {
  display: block;
  font-size: clamp(2.1rem, 7.5vw, 2.55rem);
  line-height: 1.02;
}

[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeTypeSub {
  display: block;
  max-width: 18ch;
  font-size: clamp(1.1rem, 4.2vw, 1.3rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--home-type-ink);
  opacity: 0.88;
}

[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeDaySummary .homePhaseLine,
[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeDaySummary #todayPhaseLine {
  color: var(--home-type-muted);
  max-width: 28ch;
  margin-top: auto;
  font-size: 14px;
  line-height: 1.4;
}

[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode) #todayScreen .homeTypeBrand {
  padding: 0;
  font-size: 1rem;
  line-height: 1.1;
}

/* Light — soft ballet blush */
[data-design="refined"] body.homeTypeHero:not(.pregnancyFocusMode),
[data-design="refined"][data-theme="light"] body.homeTypeHero:not(.pregnancyFocusMode) {
  --home-type-base-a: #fff0f4;
  --home-type-base-b: #f8e4ec;
  --home-type-glow-a: rgba(232, 168, 188, 0.42);
  --home-type-glow-b: rgba(200, 220, 210, 0.28);
  --home-type-wash: rgba(232, 168, 188, 0.45);
  --home-type-brand: #a85878;
  --home-type-ink: #4a3040;
  --home-type-muted: #6e5460;
}

/* Hearth — warm soft peach */
[data-design="refined"][data-theme="hearth"] body.homeTypeHero:not(.pregnancyFocusMode) {
  --home-type-base-a: #fff5f0;
  --home-type-base-b: #f5e4dc;
  --home-type-glow-a: rgba(240, 184, 168, 0.42);
  --home-type-glow-b: rgba(200, 210, 190, 0.26);
  --home-type-wash: rgba(240, 184, 168, 0.42);
  --home-type-brand: #b06048;
  --home-type-ink: #3a2e2a;
  --home-type-muted: #6e5a52;
}

/* Dark — charcoal with soft rose */
[data-design="refined"][data-theme="dark"] body.homeTypeHero:not(.pregnancyFocusMode) {
  --home-type-base-a: #3a2e36;
  --home-type-base-b: #2a2228;
  --home-type-glow-a: rgba(240, 176, 196, 0.28);
  --home-type-glow-b: rgba(168, 212, 200, 0.14);
  --home-type-wash: rgba(240, 176, 196, 0.32);
  --home-type-brand: #f4d8e0;
  --home-type-ink: #faf2f5;
  --home-type-muted: #e8d4dc;
}

/* Moonlit — lilac dusk */
[data-design="refined"][data-theme="moonlit"] body.homeTypeHero:not(.pregnancyFocusMode) {
  --home-type-base-a: #3a3548;
  --home-type-base-b: #2e2a38;
  --home-type-glow-a: rgba(208, 176, 200, 0.32);
  --home-type-glow-b: rgba(168, 200, 208, 0.16);
  --home-type-wash: rgba(208, 176, 200, 0.36);
  --home-type-brand: #ecdce8;
  --home-type-ink: #f8f4fc;
  --home-type-muted: #ddd4f0;
}

/* Pregnancy must never pick up type-hero layers */
[data-design="refined"] body.pregnancyFocusMode #todayScreen .homeTypeAtm,
[data-design="refined"] body.pregnancyFocusMode #todayScreen .homeTypeBrand {
  display: none !important;
}

@keyframes homeTypeBreath {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
  50% { transform: translate3d(0, -8px, 0) scale(1.05); opacity: 1; }
}

[data-design="refined"] .homePrimaryActionBtn:active,
[data-design="refined"] .wideButton.homePrimaryActionBtn:active {
  transform: scale(0.98);
}


/* ——— Contrast safety — readable text on pastel themes ——— */
[data-design="refined"] .label,
[data-design="refined"] .themePickerDesc,
[data-design="refined"] .themePickerLead,
[data-design="refined"] .homeAlertsDesc,
[data-design="refined"] .homePrimaryActionHint,
[data-design="refined"] .monthCalendarHeader span {
  color: var(--luma-text-muted);
}

[data-design="refined"] .textLinkBtn,
[data-design="refined"] .homeAlertsManageLink,
[data-design="refined"] a.textLinkBtn {
  color: var(--luma-accent-text, var(--luma-link));
}

[data-design="refined"] #cycleScreen .calendarViewToggle button {
  color: var(--luma-text-muted);
}

[data-design="refined"] #cycleScreen .calendarViewToggle button.active {
  color: var(--luma-text-heading);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryBrand,
[data-design="refined"] body.pregnancyFocusMode .pregnancyNeoMilestone,
[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekSizeChip {
  text-shadow: none;
}

html:not([data-theme="dark"]):not([data-theme="moonlit"]) [data-design="refined"] .wideButton,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) [data-design="refined"] button.wideButton {
  color: #4a3040;
}


/* Dark/moonlit pastel CTA text */
[data-design="refined"][data-theme="dark"] .tabBar button.active,
[data-design="refined"][data-theme="moonlit"] .tabBar button.active {
  color: #2a2228;
}

[data-design="refined"][data-theme="dark"] .tabBar button.active b,
[data-design="refined"][data-theme="moonlit"] .tabBar button.active b,
[data-design="refined"][data-theme="dark"] .tabBar button.active [data-icon],
[data-design="refined"][data-theme="moonlit"] .tabBar button.active [data-icon] {
  color: #2a2228;
}

[data-design="refined"][data-theme="dark"] .wideButton,
[data-design="refined"][data-theme="moonlit"] .wideButton,
[data-design="refined"][data-theme="dark"] button.wideButton,
[data-design="refined"][data-theme="moonlit"] button.wideButton {
  color: #2a2228;
}

/* Type system reminder (Cormorant + Nunito only):
   - Display (--r-display): screen titles, section headlines, hero brand moments (italic OK)
   - Sans (--r-sans): body, chips, buttons, metrics, form labels, nav
   Do not introduce a third family in refined. */

/* Reminder time controls — match modernSelect / soft chips */
[data-design="refined"] .todayAlertTime,
[data-design="refined"] .reminderTimeChip {
  font-family: var(--r-sans);
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
}

[data-design="refined"] .modernTimeWrap .modernSelect,
[data-design="refined"] #pregnancyReminderLabelTime.modernSelect,
[data-design="refined"] #medTime.modernSelect,
[data-design="refined"] #smartAlertHour.modernSelect {
  border-radius: var(--r-radius-sm);
  font-family: var(--r-sans);
  font-weight: 700;
  letter-spacing: 0.01em;
}

[data-design="refined"] .modernTimeWrap::after,
[data-design="refined"] #unifiedReminderHourField .modernSelectWrap::after {
  opacity: 0.45;
}

[data-design="refined"] .reminderMeta {
  gap: 10px;
}

[data-design="refined"] .addReminderForm .field--time > span,
[data-design="refined"] #unifiedReminderHourField > span {
  font-family: var(--r-sans);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Luma recovery pass — keep chat/analysis crisp after broad surface polish */
[data-design="refined"] #lumaHubScreen {
  scroll-padding-top: 18px;
}

[data-design="refined"] #lumaHubScreen .hubSection {
  margin: 0 16px 16px;
  padding: 18px;
  border-radius: 26px;
  background:
    radial-gradient(ellipse 78% 55% at 0% 0%, color-mix(in srgb, var(--luma-accent) 8%, transparent), transparent 58%),
    linear-gradient(155deg, color-mix(in srgb, var(--luma-surface-card) 96%, white), var(--luma-surface-card-alt));
  border-color: color-mix(in srgb, var(--luma-accent) 14%, transparent);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--luma-accent) 7%, transparent);
}

[data-design="refined"] #lumaHubScreen .hubSectionHeader h2 {
  font-family: var(--r-sans);
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

[data-design="refined"] #lumaHubScreen .hubSectionLead {
  color: var(--luma-text);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

[data-design="refined"] #lumaHubScreen .analysisAnchorNote {
  margin: 4px 0 14px;
  padding: 14px 16px;
  border-radius: 20px;
  color: #2d4f49;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.36;
}

[data-design="refined"] #lumaHubScreen .aiToolsList {
  display: grid;
  gap: 12px;
}

[data-design="refined"] #lumaHubScreen .aiToolCard {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 14%, transparent);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), color-mix(in srgb, var(--luma-accent) 5%, var(--luma-surface-card)));
  box-shadow: none;
}

[data-design="refined"] #lumaHubScreen .aiToolCard h3 {
  margin: 0;
  font-family: var(--r-sans);
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1.18;
  color: var(--luma-text-heading);
}

[data-design="refined"] #lumaHubScreen .aiToolCard p {
  margin: 0;
  color: var(--luma-text);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

[data-design="refined"] #lumaHubScreen .aiToolCard button,
[data-design="refined"] .phoneShell .lumaSheet .aiToolCard button {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--luma-accent-deep) 36%, transparent);
  background: linear-gradient(135deg, var(--luma-accent-deep), var(--luma-accent));
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-family: var(--r-sans);
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--luma-accent-deep) 24%, transparent);
}

[data-design="refined"] #lumaHubScreen .lumaPromptGroupRow {
  margin-top: 0;
}

[data-design="refined"] .lumaSheet {
  max-height: min(88dvh, 780px);
}

[data-design="refined"] .lumaSheetChat {
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

[data-design="refined"] .lumaSheetChat > .lumaPromptGroups {
  flex: 0 0 auto;
}

[data-design="refined"][data-theme="dark"] #lumaHubScreen .hubSection,
[data-design="refined"][data-theme="dark"] #lumaHubScreen .aiToolCard,
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .hubSection,
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .aiToolCard {
  background:
    radial-gradient(ellipse 78% 55% at 0% 0%, color-mix(in srgb, var(--luma-accent) 12%, transparent), transparent 58%),
    linear-gradient(155deg, var(--luma-surface-card), var(--luma-shell));
  border-color: color-mix(in srgb, var(--luma-accent) 24%, transparent);
}

[data-design="refined"][data-theme="dark"] #lumaHubScreen :is(.hubSectionHeader h2, .aiToolCard h3),
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen :is(.hubSectionHeader h2, .aiToolCard h3) {
  color: var(--luma-text-heading);
}

[data-design="refined"][data-theme="dark"] #lumaHubScreen :is(.hubSectionLead, .aiToolCard p),
[data-design="refined"][data-theme="moonlit"] #lumaHubScreen :is(.hubSectionLead, .aiToolCard p) {
  color: var(--luma-text);
}

/* ——— 7. Surface polish pass — bring older utility views into the new Luma model ——— */
[data-design="refined"] .mobileHeader.compact {
  padding-top: 22px;
}

[data-design="refined"] .mobileHeader.compact h1 {
  max-width: 11ch;
  font-family: var(--r-display);
  font-size: clamp(2.35rem, 9vw, 3.15rem);
  font-style: italic;
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

[data-design="refined"] .mobileHeader.compact > div > p,
[data-design="refined"] .utilityHero .label,
[data-design="refined"] .reportSectionToggles + .reportPreview::before {
  font-family: var(--r-sans);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

[data-design="refined"] .appScreen:is(#privacyCenterScreen, #partnerHubScreen, #wearablesHubScreen, #clinicalReportScreen, #medicationsScreen, #paywallScreen) {
  background:
    radial-gradient(ellipse 85% 48% at 20% 0%, color-mix(in srgb, var(--luma-accent) 14%, transparent), transparent 62%),
    linear-gradient(180deg, var(--luma-bg) 0%, var(--luma-shell) 100%);
}

[data-design="refined"] :is(#privacyCenterScreen, #partnerHubScreen, #wearablesHubScreen, #clinicalReportScreen, #medicationsScreen) .hubSection,
[data-design="refined"] :is(#privacyDashboard, #partnerHubContent, #wearablesHubContent),
[data-design="refined"] #clinicalReportScreen .hubSection {
  margin: 0 16px 20px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 16%, transparent);
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, color-mix(in srgb, var(--luma-accent) 10%, transparent), transparent 58%),
    linear-gradient(150deg, color-mix(in srgb, var(--luma-surface-card) 94%, white), var(--luma-surface-card-alt));
  box-shadow:
    0 22px 54px color-mix(in srgb, var(--luma-accent) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

[data-design="refined"] .utilityHero {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--luma-accent-teal) 18%, transparent);
  background:
    radial-gradient(ellipse 78% 75% at 100% 0%, color-mix(in srgb, var(--luma-accent-teal) 18%, transparent), transparent 58%),
    linear-gradient(145deg, color-mix(in srgb, var(--luma-surface-card) 92%, white), color-mix(in srgb, var(--luma-accent) 5%, var(--luma-surface-card)));
}

[data-design="refined"] .utilityHero h2 {
  margin: 0;
  font-family: var(--r-display);
  font-size: clamp(1.8rem, 6vw, 2.25rem);
  font-style: italic;
  font-weight: 650;
  line-height: 0.98;
  color: var(--luma-text-heading);
}

[data-design="refined"] .utilityHero p:not(.label) {
  margin: 0;
  color: var(--luma-text);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.45;
}

[data-design="refined"] .dayEditorOverlay,
[data-design="refined"] .careReaderOverlay,
[data-design="refined"] .pathwayReaderOverlay {
  padding: 12px;
  align-items: end;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--luma-accent) 20%, transparent), transparent 64%),
    rgba(34, 26, 31, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-design="refined"] .dayEditorSheet,
[data-design="refined"] .careReaderSheet,
[data-design="refined"] .pathwayReaderSheet {
  position: relative;
  isolation: isolate;
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 30px 30px 24px 24px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent);
  background:
    radial-gradient(ellipse 90% 54% at 0% 0%, color-mix(in srgb, var(--luma-accent) 13%, transparent), transparent 60%),
    linear-gradient(160deg, var(--luma-surface-card), var(--luma-surface-card-alt));
  box-shadow:
    0 -24px 70px rgba(54, 32, 44, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

[data-design="refined"] .dayEditorSheet::before,
[data-design="refined"] .careReaderSheet::before,
[data-design="refined"] .pathwayReaderSheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(color-mix(in srgb, var(--luma-accent) 14%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--luma-accent) 12%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, black 0%, transparent 76%);
}

[data-design="refined"] .dayEditorHandle {
  width: 52px;
  height: 6px;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--luma-accent) 22%, transparent);
}

[data-design="refined"] .dayEditorSheet h3,
[data-design="refined"] .careReaderHeader h2,
[data-design="refined"] .pathwayReaderHeader h2 {
  color: var(--luma-text-heading);
  font-family: var(--r-display);
  font-size: clamp(1.9rem, 7vw, 2.45rem);
  font-style: italic;
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

[data-design="refined"] .dayEditorSheet > p,
[data-design="refined"] .careReaderHeader p:last-child,
[data-design="refined"] .pathwayReaderHeader p#pathwayReaderSummary {
  color: var(--luma-text);
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.45;
}

[data-design="refined"] .dayEditorActions {
  gap: 11px;
}

[data-design="refined"] .dayEditorActions button,
[data-design="refined"] .careReaderBack,
[data-design="refined"] .pathwayReaderBack {
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 16%, transparent);
  background: color-mix(in srgb, var(--luma-surface-card) 84%, transparent);
  color: var(--luma-text-heading);
  font-family: var(--r-sans);
  font-weight: 900;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--luma-accent) 7%, transparent);
}

[data-design="refined"] .dayEditorActions button[hidden] {
  display: none !important;
}

[data-design="refined"] .dayEditorActions .dayEditorPrimary,
[data-design="refined"] .dayEditorActions button:first-child,
[data-design="refined"] .dayEditorActions button#pregnancyDateSaveBtn {
  background: linear-gradient(135deg, var(--luma-accent), color-mix(in srgb, var(--luma-accent) 72%, var(--luma-copper)));
  color: #fff;
  border-color: transparent;
  justify-content: center;
}

[data-design="refined"] .dayEditorActions button#dayEditorRemoveStart {
  background: color-mix(in srgb, #fff1f4 84%, var(--luma-surface-card));
  color: #9a4148;
  border-color: rgba(154, 65, 72, 0.18);
}

[data-design="refined"] .pregnancyDateField input,
[data-design="refined"] .pregnancyDateField select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 34px 0 14px;
  border-radius: var(--r-radius-sm);
  border: 1px solid var(--luma-input-border);
  background-color: var(--luma-input-surface);
  background-image:
    linear-gradient(45deg, transparent 50%, color-mix(in srgb, var(--luma-accent) 62%, var(--luma-text-muted)) 50%),
    linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 62%, var(--luma-text-muted)) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% + 1px),
    calc(100% - 10px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: var(--luma-on-light-surface-heading);
  font-family: var(--r-sans);
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-design="refined"] .birthdayPicker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

[data-design="refined"] .birthdayPicker--custom .birthdayPickerNative {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

[data-design="refined"] .birthdaySegment {
  position: relative;
  min-width: 0;
  overflow: visible;
}

[data-design="refined"] .birthdayPicker--custom {
  overflow: visible;
}

[data-design="refined"] .birthdaySegmentBtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 48px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--luma-input-border);
  border-radius: var(--r-radius-sm);
  background: var(--luma-input-surface);
  color: var(--luma-on-light-surface-heading);
  font-family: var(--r-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-design="refined"] .birthdaySegmentBtn.is-placeholder {
  color: var(--luma-text-muted);
  font-weight: 500;
}

[data-design="refined"] .birthdaySegmentBtn:focus-visible,
[data-design="refined"] .birthdaySegmentBtn[aria-expanded="true"] {
  outline: none;
  border-color: color-mix(in srgb, var(--luma-accent) 38%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--luma-accent) 12%, transparent);
}

[data-design="refined"] .birthdaySegmentValue {
  flex: 1;
  min-width: 0;
  text-align: center;
}

[data-design="refined"] .birthdaySegmentChevron {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -1px;
  transform: translateY(-50%) rotate(45deg);
  border-right: 1.5px solid color-mix(in srgb, var(--luma-accent) 62%, var(--luma-text-muted));
  border-bottom: 1.5px solid color-mix(in srgb, var(--luma-accent) 62%, var(--luma-text-muted));
  pointer-events: none;
}

[data-design="refined"] .birthdaySegmentMenu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 50%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transform: translateX(-50%);
  max-height: min(220px, 42vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 16%, transparent);
  border-radius: calc(var(--r-radius-sm) + 2px);
  background: var(--luma-surface-card);
  box-shadow: 0 16px 36px rgba(58, 39, 34, 0.12);
}

[data-design="refined"] .birthdaySegmentOption {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: calc(var(--r-radius-sm) - 2px);
  background: transparent;
  color: var(--luma-on-light-surface-heading);
  font-family: var(--r-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

[data-design="refined"] .birthdaySegmentOption:hover,
[data-design="refined"] .birthdaySegmentOption.active {
  background: color-mix(in srgb, var(--luma-accent) 12%, white);
  color: var(--luma-accent-text, var(--luma-link));
}

@media (max-width: 430px) {
[data-design="refined"] .birthdayPicker {
    grid-template-columns: 1fr;
  }
}

[data-design="refined"] .careReaderHeader,
[data-design="refined"] .pathwayReaderHeader {
  padding: 22px 22px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent) 14%, transparent);
}

[data-design="refined"] .careReaderMeta,
[data-design="refined"] .pathwayReaderMeta {
  color: var(--luma-accent-text, var(--luma-link));
  font-family: var(--r-sans);
  letter-spacing: 0.16em;
}

[data-design="refined"] .careReaderBody,
[data-design="refined"] .pathwayReaderBody {
  padding: 18px 22px;
}

[data-design="refined"] .careReaderBody section,
[data-design="refined"] .pathwayEducationBlock {
  padding: 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--luma-surface-card) 76%, transparent);
  border: 1px solid color-mix(in srgb, var(--luma-accent) 10%, transparent);
}

[data-design="refined"] .careReaderBody section h3,
[data-design="refined"] .pathwayEducationBlock h3 {
  color: var(--luma-text-heading);
}

[data-design="refined"] .careReaderBody section p,
[data-design="refined"] .pathwayEducationBlock p {
  color: var(--luma-text);
}

[data-design="refined"] .careReaderEvidenceNote {
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--luma-accent-teal) 18%, transparent);
  background: color-mix(in srgb, var(--luma-accent-teal) 12%, var(--luma-surface-card));
  color: var(--luma-text-heading);
}

[data-design="refined"] .careReaderFooter,
[data-design="refined"] .pathwayReaderFooter {
  border-top: 1px solid color-mix(in srgb, var(--luma-accent) 14%, transparent);
  background: linear-gradient(to top, var(--luma-surface-card) 82%, color-mix(in srgb, var(--luma-surface-card) 72%, transparent));
}

[data-design="refined"] .toggleRow,
[data-design="refined"] .partnerVisibilityList .toggleRow,
[data-design="refined"] .privacyToggleList .toggleRow {
  min-height: 58px;
  border-radius: 18px;
  border-color: color-mix(in srgb, var(--luma-accent) 14%, transparent);
  background: color-mix(in srgb, var(--luma-surface-card) 86%, transparent);
  color: var(--luma-text-heading);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--luma-accent) 6%, transparent);
}

[data-design="refined"] .toggleRow:has(input:checked) {
  border-color: color-mix(in srgb, var(--luma-accent-teal) 36%, transparent);
  background: color-mix(in srgb, var(--luma-accent-teal) 12%, var(--luma-surface-card));
}

[data-design="refined"] .privacySyncStatus,
[data-design="refined"] .partnerSupportCard,
[data-design="refined"] .partnerPrivateCard,
[data-design="refined"] .healthKitPanel,
[data-design="refined"] .wearableCard,
[data-design="refined"] .wearableModelCard,
[data-design="refined"] .manualImportPanel,
[data-design="refined"] .medEmptyState,
[data-design="refined"] .medicationComposer,
[data-design="refined"] .medAdherenceCard,
[data-design="refined"] .medicationRow,
[data-design="refined"] .reportPreview {
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 14%, transparent);
  background:
    radial-gradient(ellipse 78% 60% at 100% 0%, color-mix(in srgb, var(--luma-accent-teal) 8%, transparent), transparent 60%),
    linear-gradient(155deg, color-mix(in srgb, var(--luma-surface-card) 94%, white), var(--luma-surface-card-alt));
  box-shadow:
    0 18px 40px color-mix(in srgb, var(--luma-accent) 8%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

[data-design="refined"] .partnerSupportCard {
  border-color: color-mix(in srgb, var(--luma-accent-teal) 22%, transparent);
}

[data-design="refined"] .partnerSupportCard p:not(.label),
[data-design="refined"] .partnerInvitePanel p,
[data-design="refined"] .partnerPrivatePreview,
[data-design="refined"] .wearablesStatusNote,
[data-design="refined"] .healthKitPanel p,
[data-design="refined"] .wearableCard p,
[data-design="refined"] .wearableModelTop p:not(.label),
[data-design="refined"] .wearableSignalGrid span,
[data-design="refined"] .manualImportHero p:not(.label),
[data-design="refined"] .importHelpText,
[data-design="refined"] .medEmptyState p,
[data-design="refined"] .medComposerIntro p:not(.label),
[data-design="refined"] .medicationRow p,
[data-design="refined"] .reportDoctorQuestions label {
  color: var(--luma-text);
}

[data-design="refined"] .partnerInviteLinkBox {
  border-radius: 18px;
  border-color: color-mix(in srgb, var(--luma-accent-teal) 22%, transparent);
  background: color-mix(in srgb, var(--luma-accent-teal) 12%, var(--luma-surface-card));
}

[data-design="refined"] .conversationCard {
  position: relative;
  padding: 15px 16px 15px 48px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 13%, transparent);
  background: color-mix(in srgb, var(--luma-surface-card) 90%, transparent);
  color: var(--luma-text-heading);
  font-weight: 800;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--luma-accent) 7%, transparent);
}

[data-design="refined"] .conversationCard::before {
  content: "“”";
  position: absolute;
  left: 15px;
  top: 12px;
  color: var(--luma-accent-text, var(--luma-link));
  font-family: var(--r-display);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1;
}

[data-design="refined"] .wearablesStatusNote {
  margin: 0 0 14px;
  padding: 14px 16px;
}

[data-design="refined"] .wearableModelGrid {
  gap: 14px;
}

[data-design="refined"] .wearableSignalGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-design="refined"] .wearableSignalGrid span,
[data-design="refined"] .importChoiceCard,
[data-design="refined"] .medTodayChip,
[data-design="refined"] .medCalendarDay {
  border-radius: 18px;
  background: color-mix(in srgb, var(--luma-surface-card) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--luma-accent) 12%, transparent);
}

[data-design="refined"] .wearableConnectBtn,
[data-design="refined"] .manualImportPanel .wideButton,
[data-design="refined"] .medicationComposer .wideButton,
[data-design="refined"] #clinicalReportExportBtn {
  background: linear-gradient(135deg, var(--luma-accent), color-mix(in srgb, var(--luma-accent) 70%, var(--luma-copper)));
  color: #fff;
}

[data-design="refined"] .reportSectionToggles {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

[data-design="refined"] .reportDoctorQuestions {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--luma-accent-teal) 16%, transparent);
  background: color-mix(in srgb, var(--luma-accent-teal) 9%, var(--luma-surface-card));
}

[data-design="refined"] .reportDoctorQuestions .label {
  margin-bottom: 4px;
  color: var(--luma-accent-text, var(--luma-link));
}

[data-design="refined"] .reportPreview {
  max-height: 360px;
  color: var(--luma-text);
  font-family: var(--r-sans);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

[data-design="refined"] .paywallCard {
  position: relative;
  overflow: hidden;
  margin: 0 16px 24px;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent);
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, color-mix(in srgb, var(--luma-accent) 14%, transparent), transparent 58%),
    linear-gradient(155deg, var(--luma-surface-card), var(--luma-surface-card-alt));
  box-shadow: 0 24px 60px color-mix(in srgb, var(--luma-accent) 12%, transparent);
}

[data-design="refined"] .paywallFeatureList {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

[data-design="refined"] .paywallFeatureList li {
  position: relative;
  padding: 12px 14px 12px 44px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--luma-surface-card) 78%, transparent);
  color: var(--luma-text);
  font-weight: 800;
}

[data-design="refined"] .paywallFeatureList li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 11px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--luma-accent-teal) 18%, transparent);
  color: #15665e;
  font-size: 0.8rem;
  font-weight: 950;
}

[data-design="refined"][data-theme="dark"] :is(#privacyCenterScreen, #partnerHubScreen, #wearablesHubScreen, #clinicalReportScreen, #medicationsScreen) .hubSection,
[data-design="refined"][data-theme="dark"] :is(#privacyDashboard, #partnerHubContent, #wearablesHubContent),
[data-design="refined"][data-theme="dark"] .utilityHero,
[data-design="refined"][data-theme="dark"] .dayEditorSheet,
[data-design="refined"][data-theme="dark"] .careReaderSheet,
[data-design="refined"][data-theme="dark"] .pathwayReaderSheet,
[data-design="refined"][data-theme="dark"] .privacySyncStatus,
[data-design="refined"][data-theme="dark"] .partnerSupportCard,
[data-design="refined"][data-theme="dark"] .partnerPrivateCard,
[data-design="refined"][data-theme="dark"] .healthKitPanel,
[data-design="refined"][data-theme="dark"] .wearableCard,
[data-design="refined"][data-theme="dark"] .wearableModelCard,
[data-design="refined"][data-theme="dark"] .manualImportPanel,
[data-design="refined"][data-theme="dark"] .medEmptyState,
[data-design="refined"][data-theme="dark"] .medicationComposer,
[data-design="refined"][data-theme="dark"] .medAdherenceCard,
[data-design="refined"][data-theme="dark"] .medicationRow,
[data-design="refined"][data-theme="dark"] .reportPreview,
[data-design="refined"][data-theme="dark"] .reportDoctorQuestions,
[data-design="refined"][data-theme="dark"] .paywallCard {
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(216, 169, 184, 0.12), transparent 58%),
    linear-gradient(155deg, #2a2028, #1b151d);
  border-color: rgba(216, 169, 184, 0.2);
  color: #f7eef4;
}

[data-design="refined"][data-theme="moonlit"] :is(#privacyCenterScreen, #partnerHubScreen, #wearablesHubScreen, #clinicalReportScreen, #medicationsScreen) .hubSection,
[data-design="refined"][data-theme="moonlit"] :is(#privacyDashboard, #partnerHubContent, #wearablesHubContent),
[data-design="refined"][data-theme="moonlit"] .utilityHero,
[data-design="refined"][data-theme="moonlit"] .dayEditorSheet,
[data-design="refined"][data-theme="moonlit"] .careReaderSheet,
[data-design="refined"][data-theme="moonlit"] .pathwayReaderSheet,
[data-design="refined"][data-theme="moonlit"] .privacySyncStatus,
[data-design="refined"][data-theme="moonlit"] .partnerSupportCard,
[data-design="refined"][data-theme="moonlit"] .partnerPrivateCard,
[data-design="refined"][data-theme="moonlit"] .healthKitPanel,
[data-design="refined"][data-theme="moonlit"] .wearableCard,
[data-design="refined"][data-theme="moonlit"] .wearableModelCard,
[data-design="refined"][data-theme="moonlit"] .manualImportPanel,
[data-design="refined"][data-theme="moonlit"] .medEmptyState,
[data-design="refined"][data-theme="moonlit"] .medicationComposer,
[data-design="refined"][data-theme="moonlit"] .medAdherenceCard,
[data-design="refined"][data-theme="moonlit"] .medicationRow,
[data-design="refined"][data-theme="moonlit"] .reportPreview,
[data-design="refined"][data-theme="moonlit"] .reportDoctorQuestions,
[data-design="refined"][data-theme="moonlit"] .paywallCard {
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(168, 184, 216, 0.14), transparent 58%),
    linear-gradient(155deg, #3a3548, #1c2535);
  border-color: rgba(168, 184, 216, 0.2);
  color: #f4f6fb;
}

[data-design="refined"][data-theme="dark"] .mobileHeader.compact h1,
[data-design="refined"][data-theme="dark"] .utilityHero h2,
[data-design="refined"][data-theme="dark"] .dayEditorSheet h3,
[data-design="refined"][data-theme="dark"] .careReaderHeader h2,
[data-design="refined"][data-theme="dark"] .pathwayReaderHeader h2,
[data-design="refined"][data-theme="dark"] :is(.partnerSupportCard, .partnerPrivateCard, .healthKitPanel, .wearableModelCard, .medicationRow, .medEmptyState, .medicationComposer, .reportDoctorQuestions) :is(h2, h3, strong),
[data-design="refined"][data-theme="moonlit"] .mobileHeader.compact h1,
[data-design="refined"][data-theme="moonlit"] .utilityHero h2,
[data-design="refined"][data-theme="moonlit"] .dayEditorSheet h3,
[data-design="refined"][data-theme="moonlit"] .careReaderHeader h2,
[data-design="refined"][data-theme="moonlit"] .pathwayReaderHeader h2,
[data-design="refined"][data-theme="moonlit"] :is(.partnerSupportCard, .partnerPrivateCard, .healthKitPanel, .wearableModelCard, .medicationRow, .medEmptyState, .medicationComposer, .reportDoctorQuestions) :is(h2, h3, strong) {
  color: #fff;
}

[data-design="refined"][data-theme="dark"] :is(.utilityHero p:not(.label), .dayEditorSheet > p, .careReaderHeader p:last-child, .pathwayReaderHeader p#pathwayReaderSummary, .partnerSupportCard p:not(.label), .partnerInvitePanel p, .partnerPrivatePreview, .wearablesStatusNote, .healthKitPanel p, .wearableCard p, .wearableModelTop p:not(.label), .wearableSignalGrid span, .manualImportHero p:not(.label), .importHelpText, .medEmptyState p, .medComposerIntro p:not(.label), .medicationRow p, .reportDoctorQuestions label, .paywallFeatureList li),
[data-design="refined"][data-theme="moonlit"] :is(.utilityHero p:not(.label), .dayEditorSheet > p, .careReaderHeader p:last-child, .pathwayReaderHeader p#pathwayReaderSummary, .partnerSupportCard p:not(.label), .partnerInvitePanel p, .partnerPrivatePreview, .wearablesStatusNote, .healthKitPanel p, .wearableCard p, .wearableModelTop p:not(.label), .wearableSignalGrid span, .manualImportHero p:not(.label), .importHelpText, .medEmptyState p, .medComposerIntro p:not(.label), .medicationRow p, .reportDoctorQuestions label, .paywallFeatureList li) {
  color: #e8ecf4;
}

[data-design="refined"][data-theme="dark"] :is(.toggleRow, .conversationCard, .wearableSignalGrid span, .importChoiceCard, .medTodayChip, .medCalendarDay, .paywallFeatureList li),
[data-design="refined"][data-theme="moonlit"] :is(.toggleRow, .conversationCard, .wearableSignalGrid span, .importChoiceCard, .medTodayChip, .medCalendarDay, .paywallFeatureList li) {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f4f6fb;
}

@media (max-width: 430px) {
  [data-design="refined"] .wearableSignalGrid {
    grid-template-columns: 1fr;
  }

  [data-design="refined"] .mobileHeader.compact h1 {
    font-size: clamp(2.15rem, 11vw, 2.65rem);
  }

  [data-design="refined"] :is(#privacyCenterScreen, #partnerHubScreen, #wearablesHubScreen, #clinicalReportScreen, #medicationsScreen) .hubSection,
  [data-design="refined"] :is(#privacyDashboard, #partnerHubContent, #wearablesHubContent),
  [data-design="refined"] #clinicalReportScreen .hubSection {
    margin-inline: 12px;
    padding: 15px;
    border-radius: 24px;
  }
}

/* Final Luma chat polish: keep the chat sheet conversational, not dashboard-like. */



































/* Final launch override: the chat order below is tested in every focus mode. */















@media (max-width: 420px) {


}
/* Final You tab dropdown rhythm: this must stay last so Reminders matches the other rows. */
[data-design="refined"] #profileScreen .settingsListDetails:not([open]) {
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

[data-design="refined"] #profileScreen .settingsListDetails:not([open]) > summary {
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  padding: 0 11px 0 16px !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 34px !important;
  align-items: center !important;
  column-gap: 8px !important;
}

[data-design="refined"] #profileScreen .settingsListDetails:not([open]) > summary h2 {
  grid-column: 2 !important;
  margin: 0 !important;
  align-self: center !important;
  justify-self: center !important;
  transform: none !important;
  line-height: 1 !important;
  color: var(--luma-accent-text, var(--luma-link)) !important;
}

[data-design="refined"] #profileScreen .settingsListDetails:not([open]) > summary p,
[data-design="refined"] #profileScreen .settingsListDetails:not([open]) > summary .settingsSectionLead,
[data-design="refined"] #profileScreen .settingsListDetails:not([open]) > summary .settingsSectionIntro {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

[data-design="refined"] #profileScreen .settingsListDetails:not([open]) > summary::after {
  grid-column: 3 !important;
  align-self: center !important;
  justify-self: center !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
}

[data-design="refined"] #profileScreen #notificationsHub:not([open]) {
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
}

/* Launch polish: keep every You tab dropdown row compact, centered, and equal. */
[data-design="refined"] #profileScreen .settingsListDetails {
  width: calc(100% - 20px) !important;
  margin: 7px auto !important;
  border-radius: 20px !important;
}

[data-design="refined"] #profileScreen .settingsListDetails:not([open]),
[data-design="refined"] #profileScreen #notificationsHub:not([open]) {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 !important;
}

[data-design="refined"] #profileScreen .settingsListDetails:not([open]) > summary {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 10px 0 14px !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) 30px !important;
  align-items: center !important;
  column-gap: 8px !important;
}

[data-design="refined"] #profileScreen .settingsListDetails:not([open]) > summary h2 {
  grid-column: 2 !important;
  align-self: center !important;
  justify-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--you-pink, var(--luma-accent-text)) !important;
  font-family: var(--luma-font-display) !important;
  font-size: clamp(0.98rem, 3.6vw, 1.24rem) !important;
  font-style: italic !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
}

[data-design="refined"] #profileScreen .settingsListDetails:not([open]) > summary::after {
  grid-column: 3 !important;
  align-self: center !important;
  justify-self: center !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
}

[data-design="refined"] #profileScreen .settingsListDetails[open] > summary {
  min-height: 50px !important;
  padding: 8px 10px 8px 14px !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) 30px !important;
  align-items: center !important;
  column-gap: 8px !important;
}

[data-design="refined"] #profileScreen .settingsListDetails[open] > summary h2 {
  grid-column: 2 !important;
  align-self: center !important;
  justify-self: center !important;
  margin: 0 !important;
  color: var(--you-pink, var(--luma-accent-text)) !important;
  font-size: clamp(1rem, 3.8vw, 1.26rem) !important;
  line-height: 1 !important;
  text-align: center !important;
}

[data-design="refined"] #profileScreen .settingsListDetails[open] > summary p {
  display: none !important;
}

[data-design="refined"] #profileScreen .settingsListDetails[open] > summary::after {
  grid-column: 3 !important;
  align-self: center !important;
  justify-self: center !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
}

/* Back-to-current-week — same secondary CTA as Read week guide. */
[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekResetBtn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: var(--r-radius-md) !important;
  background: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 42%, transparent) !important;
  box-shadow: none !important;
  color: var(--luma-text-heading) !important;
  font-family: var(--luma-font-body, inherit) !important;
  font-size: 0.94rem !important;
  font-style: normal !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekResetBtn[hidden] {
  display: none !important;
}

/* Final dark-theme contrast lock for the premium pregnancy cover card. */
[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .pregnancyStoryHero,
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .pregnancyStoryHero {
  color: #f8eef8 !important;
}

[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .pregnancyStoryHero .pregnancyStoryBrand,
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .pregnancyStoryHero .pregnancyStoryBrand {
  color: #fff8fb !important;
}

[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .pregnancyStoryHero :is(.pregnancyStoryWeekLine, .pregnancyWeekNumber),
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .pregnancyStoryHero :is(.pregnancyStoryWeekLine, .pregnancyWeekNumber) {
  color: #f4ecff !important;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.3) !important;
}

[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .pregnancyStoryHero .pregnancyNeoMilestone,
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .pregnancyStoryHero .pregnancyNeoMilestone {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: #ffe2ee !important;
  -webkit-text-fill-color: #ffe2ee !important;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.24) !important;
}

[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .pregnancyStoryHero :is(.pregnancyWeekSizeChip, .pregnancyStoryHeroCopy p),
[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .pregnancyStoryHero :is(.pregnancyWeekSizeChip, .pregnancyStoryHeroCopy p) {
  color: #f1e8f4 !important;
  -webkit-text-fill-color: #f1e8f4 !important;
}

html:is([data-theme="dark"], [data-theme="moonlit"]) body.pregnancyFocusMode .pregnancyStoryHero .pregnancyNeoMilestone,
html:is([data-theme="dark"], [data-theme="moonlit"]) .phoneShell .pregnancyStoryHero .pregnancyNeoMilestone,
[data-theme="dark"] .pregnancyStoryHero .pregnancyNeoMilestone,
[data-theme="moonlit"] .pregnancyStoryHero .pregnancyNeoMilestone {
  background: transparent !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #ffe6f1 !important;
  -webkit-text-fill-color: #ffe6f1 !important;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28) !important;
}

html:is([data-theme="dark"], [data-theme="moonlit"]) body.pregnancyFocusMode .pregnancyStoryHero .pregnancyWeekSizeChip,
html:is([data-theme="dark"], [data-theme="moonlit"]) .phoneShell .pregnancyStoryHero .pregnancyWeekSizeChip,
[data-theme="dark"] .pregnancyStoryHero .pregnancyWeekSizeChip,
[data-theme="moonlit"] .pregnancyStoryHero .pregnancyWeekSizeChip {
  color: #e8fff8 !important;
  -webkit-text-fill-color: #e8fff8 !important;
}

html[data-design="refined"] .pregnancyStoryHero .pregnancyNeoMilestone,
html[data-design="refined"] .pregnancyStoryHero .pregnancyWeekFruitCompare {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 0.9 !important;
}

/* Flatten "What Luma learns" — no nested pink/white cards. */
[data-design="refined"] #cycleScreen .bodyLogInsightsCard,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .bodyLogInsightsCard {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

[data-design="refined"] #cycleScreen .bodyLogInsightsHead {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
}

[data-design="refined"] #cycleScreen .bodyLogInsightsHead .label {
  margin: 0;
  font-family: var(--r-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--luma-accent) 55%, var(--luma-text-muted));
}

[data-design="refined"] #cycleScreen .bodyLogInsightsCard > h2,
[data-design="refined"] #cycleScreen .bodyLogInsightsHead h2 {
  margin: 0;
  font-family: var(--r-display) !important;
  font-size: clamp(1.35rem, 5vw, 1.55rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--luma-text-heading);
}

[data-design="refined"] #cycleScreen .bodyLogInsightsCard > #logSummary,
[data-design="refined"] #cycleScreen .bodyLogInsightsHead #logSummary {
  margin: 2px 0 0;
  max-width: 34ch;
  font-family: var(--r-sans);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

[data-design="refined"] #cycleScreen .lumaLearningPanel {
  gap: 16px;
  margin-top: 0;
}

[data-design="refined"] #cycleScreen .lumaLearningCore {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

[data-design="refined"] #cycleScreen .lumaLearningStage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 6px 10px;
  width: 100%;
  min-width: 0;
}

[data-design="refined"] #cycleScreen .lumaLearningStage span {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: color-mix(in srgb, var(--luma-accent) 62%, var(--luma-text-muted));
  font-family: var(--r-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

[data-design="refined"] #cycleScreen .lumaLearningStage strong {
  color: var(--luma-text-heading);
  font-family: var(--r-sans);
  font-size: 0.95rem;
  font-weight: 650;
  text-align: right;
  letter-spacing: -0.01em;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
  max-width: 100%;
}

[data-design="refined"] #cycleScreen .lumaLearningProgress {
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--luma-accent) 12%, transparent);
}

[data-design="refined"] #cycleScreen .lumaLearningProgress span {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--luma-accent) 72%, #fff),
    var(--luma-accent)
  );
}

[data-design="refined"] #cycleScreen .lumaLearningEvidence {
  gap: 8px;
  padding-top: 2px;
}

[data-design="refined"] #cycleScreen .lumaLearningEvidence li {
  padding-left: 14px;
  color: var(--luma-text);
  font-family: var(--r-sans);
  font-size: 0.88rem;
  line-height: 1.4;
}

[data-design="refined"] #cycleScreen .lumaLearningEvidence li::before {
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: color-mix(in srgb, var(--luma-accent) 70%, transparent);
}

[data-design="refined"] #cycleScreen .lumaLearningNext {
  margin: 2px 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--luma-text-muted);
  font-family: var(--r-sans);
  font-size: 0.88rem;
  line-height: 1.45;
}

[data-design="refined"] #cycleScreen .lumaLearningWhere {
  width: 100% !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid color-mix(in srgb, var(--luma-accent) 14%, transparent) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

[data-design="refined"] #cycleScreen .lumaLearningWhere > summary {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 10px 0 !important;
  color: var(--luma-text-heading) !important;
  font-family: var(--r-sans, var(--luma-font-body, inherit)) !important;
  font-size: 0.95rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
  list-style: none !important;
  cursor: pointer !important;
}

[data-design="refined"] #cycleScreen .lumaLearningWhere > summary::-webkit-details-marker {
  display: none !important;
}

[data-design="refined"] #cycleScreen .lumaLearningWhere > summary::before {
  content: none !important;
}

[data-design="refined"] #cycleScreen .lumaLearningWhere > summary::after {
  content: '⌄' !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--luma-text-muted) !important;
  font-family: var(--r-sans, var(--luma-font-body, inherit)) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  transform: rotate(0deg) !important;
  transition: transform 0.16s ease !important;
}

[data-design="refined"] #cycleScreen .lumaLearningWhere[open] > summary::after {
  transform: rotate(180deg) !important;
}

[data-design="refined"] #cycleScreen .lumaLearningWhere > ul {
  margin: 0 0 4px !important;
  padding: 0 0 8px 0 !important;
  display: grid !important;
  gap: 8px !important;
  list-style: none !important;
  color: var(--luma-text-muted) !important;
  font-family: var(--r-sans) !important;
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
}

[data-design="refined"] #cycleScreen .lumaLearningWhere > ul li strong {
  color: var(--luma-text-heading);
  font-weight: 650;
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .bodyLogInsightsHead .label,
[data-design="refined"] body.pregnancyFocusMode #cycleScreen .lumaLearningStage span {
  color: color-mix(in srgb, var(--luma-accent-teal) 48%, #24382f);
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .lumaLearningProgress {
  background: color-mix(in srgb, var(--luma-accent-teal) 14%, transparent);
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .lumaLearningProgress span {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--luma-accent-teal) 65%, #fff),
    var(--luma-accent-teal)
  );
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .lumaLearningEvidence li::before {
  background: color-mix(in srgb, var(--luma-accent-teal) 70%, transparent);
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .lumaLearningWhere {
  border-top-color: color-mix(in srgb, var(--luma-accent-teal) 16%, transparent) !important;
}

[data-design="refined"][data-theme="dark"] #cycleScreen .bodyLogInsightsHead h2,
[data-design="refined"][data-theme="moonlit"] #cycleScreen .bodyLogInsightsHead h2,
[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningStage strong,
[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningStage strong,
[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningWhere > summary,
[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningWhere > summary,
[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningWhere > ul li strong,
[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningWhere > ul li strong {
  color: var(--luma-text-heading) !important;
  -webkit-text-fill-color: currentColor !important;
}

[data-design="refined"][data-theme="dark"] #cycleScreen .bodyLogInsightsHead #logSummary,
[data-design="refined"][data-theme="moonlit"] #cycleScreen .bodyLogInsightsHead #logSummary,
[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningEvidence li,
[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningEvidence li,
[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningNext,
[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningNext,
[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningWhere > ul,
[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningWhere > ul {
  color: var(--luma-text-muted) !important;
  -webkit-text-fill-color: currentColor !important;
}



/* ===== 20260830-polish1: flatten Track→Log nested cards ===== */
[data-design="refined"] #cycleScreen .unifiedTrackLogPanel,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

[data-design="refined"] #cycleScreen .bodyLogPurpose,
[data-design="refined"] #cycleScreen .pregnancyLogBanner,
[data-design="refined"] #cycleScreen .bodyLogContext,
[data-design="refined"] #cycleScreen .logDatePicker,
[data-design="refined"] #cycleScreen #bodyLogCheckInDetails,
[data-design="refined"] #cycleScreen #opkScannerSection,
[data-design="refined"] #cycleScreen .logHistoryDropdown,
[data-design="refined"] #cycleScreen .logComposer {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

[data-design="refined"] #cycleScreen .bodyLogPurpose {
  display: grid;
  gap: 6px;
  margin: 0 0 18px !important;
}

[data-design="refined"] #cycleScreen .bodyLogPurpose .label,
[data-design="refined"] #cycleScreen .pregnancyLogBannerHead .label,
[data-design="refined"] #cycleScreen .logDatePickerHead .label,
[data-design="refined"] #cycleScreen #opkScannerSection .label,
[data-design="refined"] #cycleScreen .logHistorySummary .label {
  margin: 0;
  font-family: var(--r-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--luma-accent) 55%, var(--luma-text-muted));
}

[data-design="refined"] #cycleScreen .bodyLogPurposeText,
[data-design="refined"] #cycleScreen #pregnancyLogBannerCopy,
[data-design="refined"] #cycleScreen .bodyLogPatternHint,
[data-design="refined"] #cycleScreen .logDatePickerHint,
[data-design="refined"] #cycleScreen #opkScannerSection .hubSectionLead {
  margin: 0;
  max-width: 36ch;
  font-family: var(--r-sans);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .pregnancyLogBanner[hidden],
[data-design="refined"] body.focus-pregnant #cycleScreen .pregnancyLogBanner[hidden],
[data-design="refined"] #cycleScreen .pregnancyLogBanner[hidden] {
  display: none !important;
}
[data-design="refined"] body.pregnancyFocusMode #cycleScreen .pregnancyLogBanner:not([hidden]),
[data-design="refined"] body.focus-pregnant #cycleScreen .pregnancyLogBanner:not([hidden]) {
  display: grid !important;
  gap: 8px;
  margin: 0 0 18px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent-teal) 16%, transparent) !important;
}

[data-design="refined"] #cycleScreen .pregnancyLogBannerHead strong,
[data-design="refined"] #cycleScreen .bodyLogContextLabel,
[data-design="refined"] #cycleScreen .bodyLogContextPhase {
  color: var(--luma-text-heading);
  font-family: var(--r-sans);
}

[data-design="refined"] #cycleScreen .bodyLogContext {
  display: grid !important;
  gap: 4px;
  margin: 0 0 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent) 12%, transparent) !important;
}

[data-design="refined"] #cycleScreen .logDatePicker {
  display: grid !important;
  gap: 10px;
  margin: 0 0 18px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent) 12%, transparent) !important;
}

[data-design="refined"] #cycleScreen .logDatePickerNavBtn {
  border-radius: var(--r-radius-md);
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent);
  background: color-mix(in srgb, var(--luma-surface-card) 70%, transparent);
}

[data-design="refined"] #cycleScreen #bodyLogCheckInDetails {
  margin: 0 0 18px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent) 12%, transparent) !important;
}

[data-design="refined"] #cycleScreen #bodyLogCheckInDetails > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 12px !important;
  border: 0 !important;
  background: transparent !important;
  font-family: var(--r-display);
  font-size: clamp(1.2rem, 4.4vw, 1.4rem);
  font-weight: 600;
  font-style: italic;
  color: var(--luma-text-heading);
}

[data-design="refined"] #cycleScreen #bodyLogCheckInDetails > summary::-webkit-details-marker {
  display: none;
}

[data-design="refined"] #cycleScreen .logComposer {
  display: grid;
  gap: 14px;
  padding-top: 4px !important;
}

[data-design="refined"] #cycleScreen #opkScannerSection {
  margin: 0 0 18px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent) 12%, transparent) !important;
}

[data-design="refined"] #cycleScreen #opkScannerSection .hubSectionHeader {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

[data-design="refined"] #cycleScreen #opkScannerSection .opkCaptureBtn {
  border-style: dashed !important;
  border-color: color-mix(in srgb, var(--luma-accent) 28%, transparent) !important;
  background: color-mix(in srgb, var(--luma-surface-card) 55%, transparent) !important;
  box-shadow: none !important;
}

[data-design="refined"] #cycleScreen .logHistoryDropdown {
  margin: 18px 0 0 !important;
  padding: 0 !important;
}

[data-design="refined"] #cycleScreen .logHistorySummary {
  min-height: 0 !important;
  padding: 12px 0 !important;
  border: 0 !important;
  border-top: 1px solid color-mix(in srgb, var(--luma-accent) 14%, transparent) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

[data-design="refined"] #cycleScreen .logHistoryDropdown[open] .logHistorySummary {
  border-bottom: 0 !important;
}

[data-design="refined"] #cycleScreen .logHistorySummary h2 {
  font-family: var(--r-display) !important;
  font-style: italic;
  font-weight: 600;
  color: var(--luma-text-heading);
}

[data-design="refined"] #cycleScreen .logHistoryChevron {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--luma-text-muted) !important;
}

[data-design="refined"] #cycleScreen .logHistoryDropdownBody {
  padding: 8px 0 4px !important;
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .bodyLogPurpose .label,
[data-design="refined"] body.pregnancyFocusMode #cycleScreen .pregnancyLogBannerHead .label,
[data-design="refined"] body.pregnancyFocusMode #cycleScreen .logDatePickerHead .label,
[data-design="refined"] body.pregnancyFocusMode #cycleScreen .logHistorySummary .label {
  color: color-mix(in srgb, var(--luma-accent-teal) 48%, #24382f);
}

/* ===== Ritual soft-pink auth (default) ===== */
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell:has(#authScreen.active) {
  --auth-peach: #f3d6e2;
  --auth-peach-deep: #e8a8bc;
  --auth-rose: #f0b8cc;
  --auth-ink: #4a3040;
  --auth-muted: #6e5460;
  --auth-shell: #fbf7f9;
  --auth-btn-text: #4a3040;
  background: linear-gradient(180deg, #fdf8fa 0%, var(--auth-shell, #fbf7f9) 48%, #f8f0f4 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authExperience {
  width: min(100%, var(--luma-shell-max, 392px)) !important;
  padding: 22px 18px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authHero {
  align-items: flex-start !important;
  text-align: left !important;
  gap: 8px !important;
  padding: 4px 0 20px !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authHero .label,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authHero h1,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authSubtitle {
  text-align: left !important;
  margin-inline: 0 !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authBrandMark {
  margin: 0 0 10px !important;
  font-family: var(--r-display) !important;
  font-size: clamp(2.6rem, 11vw, 3.35rem) !important;
  font-weight: 600 !important;
  font-style: italic !important;
  letter-spacing: -0.03em !important;
  line-height: 0.92 !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authHero .label {
  color: color-mix(in srgb, var(--auth-peach-deep) 55%, var(--auth-muted)) !important;
  letter-spacing: 0.12em !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authHero h1 {
  max-width: 12ch !important;
  font-family: var(--r-display) !important;
  font-size: clamp(1.55rem, 6.2vw, 1.95rem) !important;
  font-weight: 600 !important;
  font-style: italic !important;
  line-height: 1.08 !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authSubtitle {
  max-width: 30ch !important;
  font-family: var(--r-sans) !important;
  font-size: 0.95rem !important;
  color: var(--auth-muted) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authSignalPanel {
  display: grid !important;
  grid-template-columns: 10px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  text-align: left !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authSignalPanel::before,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authSignalPanel::after {
  content: none !important;
  display: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authSignalDot {
  width: 8px !important;
  height: 8px !important;
  margin-top: 6px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #f0b8cc 0%, #e8a8bc 48%, #e098b0 100%) !important;
  color: var(--auth-btn-text, #4a3040) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-peach) 45%, transparent) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authSignalPanel strong {
  display: block !important;
  font-family: var(--r-sans) !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authSignalPanel small {
  display: block !important;
  margin-top: 2px !important;
  font-family: var(--r-sans) !important;
  font-size: 0.8rem !important;
  line-height: 1.35 !important;
  color: var(--auth-muted) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authCard {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authModeSwitch {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authModeSwitch button {
  min-height: 44px !important;
  border-radius: 14px !important;
  border: 1px solid color-mix(in srgb, var(--auth-peach-deep) 32%, transparent) !important;
  background: color-mix(in srgb, #fff 70%, var(--auth-peach) 30%) !important;
  color: var(--auth-ink) !important;
  font-family: var(--r-sans) !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authModeSwitch button.active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--auth-peach) 70%, #fff), color-mix(in srgb, var(--auth-peach-deep) 55%, #fff)) !important;
  border-color: color-mix(in srgb, var(--auth-peach-deep) 45%, transparent) !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authForm .field span,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authForm .fieldHint,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authHelpText,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authLink,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authLocalOnlyBtn {
  font-family: var(--r-sans) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authForm input,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authForm textarea,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authForm select {
  border-radius: 14px !important;
  border: 1px solid color-mix(in srgb, var(--auth-peach-deep) 28%, transparent) !important;
  background: color-mix(in srgb, #fff 88%, var(--auth-peach) 12%) !important;
  font-family: var(--r-sans) !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authForm .wideButton {
  border-radius: 16px !important;
  border: 0 !important;
  background: linear-gradient(135deg, #f0b8cc 0%, #e8a8bc 48%, #e098b0 100%) !important;
  color: var(--auth-btn-text, #4a3040) !important;
  font-family: var(--r-sans) !important;
  font-weight: 750 !important;
  box-shadow: 0 12px 28px rgba(220, 140, 170, 0.28) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authTermsCard {
  margin-top: 18px !important;
  padding: 14px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid color-mix(in srgb, var(--auth-peach-deep) 22%, transparent) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--auth-muted) !important;
  font-family: var(--r-sans) !important;
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
}

/* Soft-pink auth polish — labels + Google mark; no boxed signal card */
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authForm .field span {
  color: var(--luma-accent-text, #a85878) !important;
  letter-spacing: 0.1em !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authSignalPanel {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .googleButton span {
  background: linear-gradient(135deg, #f0b8cc 0%, #e8a8bc 48%, #e098b0 100%) !important;
  color: #4a3040 !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authDivider {
  color: color-mix(in srgb, var(--auth-peach-deep) 55%, var(--auth-muted)) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authDivider::before,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authDivider::after {
  background: color-mix(in srgb, var(--auth-peach-deep) 28%, transparent) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authLink,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authLocalOnlyBtn {
  color: var(--luma-accent-text, #a85878) !important;
}

/* ===== You / Learn / Luma chrome polish ===== */
[data-design="refined"] #profileScreen .settingsRow,
[data-design="refined"] #profileScreen .checkInCard,
[data-design="refined"] #profileScreen .remindersStudio,
[data-design="refined"] #profileScreen .launchReadinessPanel {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: var(--r-radius-md) !important;
  background: color-mix(in srgb, var(--luma-surface-card) 72%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 14%, transparent) !important;
  box-shadow: none !important;
}

[data-design="refined"] #careScreen .careCategoryGrid > button,
[data-design="refined"] #careScreen .careArticleCard {
  border-radius: var(--r-radius-md) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 14%, transparent) !important;
  background: color-mix(in srgb, var(--luma-surface-card) 78%, transparent) !important;
  box-shadow: none !important;
}

[data-design="refined"] #lumaHubScreen .lumaHubHero {
  border-radius: var(--r-radius-lg);
  box-shadow: none !important;
  border-color: color-mix(in srgb, var(--luma-accent) 16%, transparent);
}

[data-design="refined"] #lumaHubScreen .lumaHubHero::before {
  content: none !important;
  display: none !important;
}

[data-design="refined"] #lumaHubScreen .lumaHubHero {
  padding-top: var(--r-space-3);
}

[data-design="refined"] #lumaHubScreen .lumaActionCenter,
[data-design="refined"] #lumaHubScreen .lumaInsightsHubDetails {
  border: 0 !important;
  border-top: 1px solid color-mix(in srgb, var(--luma-accent) 12%, transparent) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* Final Luma chat polish: align lane selector, replies, and Pro talk-back in every theme. */
html[data-design="refined"] .phoneShell .lumaSheet,
html[data-design="refined"] .phoneShell .lumaSheet * {
  box-sizing: border-box !important;
}

html[data-design="refined"] .phoneShell .lumaSheet {
  overflow-x: hidden !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat {
  width: 100% !important;
  max-width: 100% !important;
  gap: 12px !important;
  padding: 0 10px 24px !important;
  overflow-x: hidden !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat > * {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge {
  display: grid !important;
  gap: 12px !important;
  padding: 14px !important;
  border-radius: 26px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 28%, transparent), transparent 36%),
    color-mix(in srgb, var(--luma-surface-card, #fff8fb) 88%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 58%, transparent) !important;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--luma-shadow, #d9b5c4) 14%, transparent) !important;
  pointer-events: auto !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge > .label {
  display: flex !important;
  align-items: center !important;
  min-height: 36px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--luma-surface-card, #fff8fb) 82%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 46%, transparent) !important;
  color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  font-family: var(--r-sans, var(--luma-font-body, inherit)) !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.16em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergeTitle,
html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergeContext {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  overflow: visible !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  min-height: 52px !important;
  padding: 8px 9px !important;
  border-radius: 20px !important;
  text-align: left !important;
  overflow: hidden !important;
  pointer-events: auto !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode span {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  font-size: 0.92rem !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode strong {
  min-width: 0 !important;
  color: var(--luma-text-heading, #3f2b38) !important;
  font-size: 0.82rem !important;
  line-height: 1.05 !important;
  overflow-wrap: anywhere !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode em {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergePanel {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  position: relative !important;
  pointer-events: auto !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePanelCopy {
  margin: 0 !important;
  position: relative !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 3 !important;
  min-height: 42px !important;
  height: auto !important;
  align-items: stretch !important;
  pointer-events: auto !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 4 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 8px 9px !important;
  border-radius: 18px !important;
  font-size: 0.78rem !important;
  line-height: 1.08 !important;
  text-align: center !important;
  pointer-events: auto !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessages {
  display: grid !important;
  gap: 10px !important;
  width: 100% !important;
  max-height: 230px !important;
  padding: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessage {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 24px !important;
  padding: 14px 16px !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  white-space: pre-line !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessage.luma {
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 16%, transparent), transparent 38%),
    color-mix(in srgb, var(--luma-surface-card, #fff8fb) 92%, transparent) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm {
  width: 100% !important;
  margin-top: 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoicePanel {
  display: grid !important;
  gap: 12px !important;
  padding: 14px !important;
  border-radius: 24px !important;
  overflow: hidden !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote {
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  background: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 34%, transparent) !important;
  color: var(--luma-text, #51404b) !important;
  line-height: 1.35 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceUpgrade {
  display: grid !important;
  gap: 10px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceUpgrade p {
  margin: 0 !important;
  color: var(--luma-text, #51404b) !important;
  line-height: 1.35 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceUpgrade .wideButton {
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  border-radius: 999px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceControls {
  display: grid !important;
  gap: 12px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceMeta {
  display: grid !important;
  gap: 8px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceBadge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 26px !important;
  width: 100% !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 42%, transparent) !important;
  color: var(--luma-accent-text, #9b4f73) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceActions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 58px !important;
  align-items: center !important;
  gap: 12px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceToggle {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  color: var(--luma-text-heading, #3f2b38) !important;
  font-size: 0.95rem !important;
  font-weight: 750 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceToggle input {
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceMic {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  margin: 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheet > .lumaInsightsSection {
  width: calc(100% - 20px) !important;
  max-width: calc(100% - 20px) !important;
  margin: 12px auto 0 !important;
  overflow: hidden !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaConcierge,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaConcierge,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaConciergePanel,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaConciergePanel,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .mobileMessage.luma,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .mobileMessage.luma,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaVoicePanel,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaVoicePanel {
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 232, 244, 0.1), transparent 34%),
    rgba(255, 244, 250, 0.1) !important;
  border-color: rgba(255, 232, 244, 0.22) !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaConcierge > .label,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaConcierge > .label,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaVoiceBadge,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaVoiceBadge {
  background: rgba(255, 244, 250, 0.12) !important;
  border-color: rgba(255, 232, 244, 0.2) !important;
  color: #f6d7e7 !important;
  -webkit-text-fill-color: #f6d7e7 !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaConciergeMode strong,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaConciergeMode strong,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .mobileMessage,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .mobileMessage,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaVoiceToggle,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaVoiceToggle,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaVoiceUpgrade p,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaVoiceUpgrade p,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote {
  color: #fff1f8 !important;
  -webkit-text-fill-color: #fff1f8 !important;
}

@media (max-width: 430px) {
  html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode {
    min-height: 48px !important;
  }
}

/* Final Luma chat alignment pass: compact lanes, contained replies, aligned Pro controls. */
html[data-design="refined"] .phoneShell .lumaSheetChat {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding-inline: clamp(14px, 4vw, 22px) !important;
  overflow-x: hidden !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatControls {
  order: 1 !important;
  gap: 10px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge {
  order: 2 !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 24px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge > .label {
  justify-content: center !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--luma-surface-card, #fff8fb) 92%, transparent), color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 16%, transparent)) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.18em !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  min-height: 58px !important;
  padding: 10px 6px !important;
  text-align: center !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode span {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  margin: 0 auto !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode strong {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergePanel {
  gap: 10px !important;
  padding: 10px !important;
  background: color-mix(in srgb, var(--luma-surface-card, #fff8fb) 74%, transparent) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergePanelHead {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePanelCopy {
  display: block !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 10%, transparent), transparent 42%),
    color-mix(in srgb, var(--luma-surface-card, #fff8fb) 86%, transparent) !important;
  color: var(--luma-text, #51404b) !important;
  font-size: 0.93rem !important;
  line-height: 1.35 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  overflow: visible !important;
  margin: 0 !important;
  transform: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow button {
  min-height: 42px !important;
  border-radius: 999px !important;
  white-space: normal !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessages {
  order: 3 !important;
  gap: 10px !important;
  max-height: min(34vh, 260px) !important;
  padding: 0 !important;
  margin: 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessage {
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 44%, transparent) !important;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--luma-shadow, #d9b5c4) 10%, transparent) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessage.luma {
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 13%, transparent), transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--luma-surface-card, #fff8fb) 90%, transparent), color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 16%, var(--luma-surface-card, #fff8fb))) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoicePanel {
  order: 5 !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 22px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceControls:not([hidden]),
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceUpgrade:not([hidden]) {
  display: grid !important;
  gap: 10px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceActions {
  grid-template-columns: minmax(0, 1fr) 54px !important;
  gap: 10px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceToggle {
  min-height: 50px !important;
  padding: 0 2px !important;
  line-height: 1.2 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceMic {
  width: 54px !important;
  height: 54px !important;
  justify-self: end !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm {
  order: 4 !important;
  position: relative !important;
  bottom: auto !important;
  transform: none !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 54px !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px !important;
  border-radius: 24px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm input {
  min-height: 52px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm button {
  width: 54px !important;
  height: 54px !important;
}

html[data-design="refined"] .phoneShell .lumaSheet > .lumaInsightsSection {
  order: 6 !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaConcierge > .label,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaConcierge > .label {
  background: rgba(255, 244, 250, 0.13) !important;
  color: #f7d8e8 !important;
  -webkit-text-fill-color: #f7d8e8 !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat #lumaConciergePanelCopy,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat #lumaConciergePanelCopy,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .mobileMessage.luma,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .mobileMessage.luma {
  background:
    radial-gradient(circle at 100% 0%, rgba(196, 238, 228, 0.11), transparent 42%),
    rgba(255, 244, 250, 0.12) !important;
  border-color: rgba(255, 232, 244, 0.24) !important;
  color: #fff1f8 !important;
  -webkit-text-fill-color: #fff1f8 !important;
}

/* Final Track dark/moonlit soften: replace bright white pregnancy timeline panels. */
html[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .calendarViewToggle,
html[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .calendarViewToggle,
html[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .monthNavigator,
html[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .monthNavigator,
html[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActions,
html[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActions {
  background:
    radial-gradient(circle at 8% 0%, rgba(198, 239, 228, 0.1), transparent 38%),
    linear-gradient(135deg, rgba(122, 113, 139, 0.78), rgba(91, 78, 108, 0.78)) !important;
  border-color: rgba(232, 214, 228, 0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.14) !important;
}

html[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .calendarViewToggle button,
html[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .calendarViewToggle button,
html[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .monthNavigator button,
html[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .monthNavigator button {
  background: rgba(239, 235, 241, 0.2) !important;
  border-color: rgba(255, 244, 250, 0.16) !important;
  color: #fff3fa !important;
  -webkit-text-fill-color: #fff3fa !important;
}

html[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .calendarViewToggle button[aria-selected="true"],
html[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .calendarViewToggle button[aria-selected="true"],
html[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .calendarViewToggle button.active,
html[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .calendarViewToggle button.active {
  background: rgba(223, 213, 224, 0.36) !important;
  color: #fff8fb !important;
  -webkit-text-fill-color: #fff8fb !important;
}

html[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .monthNavigator h3,
html[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .monthNavigator h3,
html[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen #monthTitle,
html[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen #monthTitle,
html[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActionCopy strong,
html[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActionCopy strong,
html[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActionCopy span,
html[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActionCopy span {
  color: #fff1f8 !important;
  -webkit-text-fill-color: #fff1f8 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActionCopy .label,
html[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActionCopy .label {
  color: #c4eee4 !important;
  -webkit-text-fill-color: #c4eee4 !important;
}

html[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActions .calendarSecondaryBtn,
html[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #cycleScreen .pregnancyCalendarActions .calendarSecondaryBtn {
  background: rgba(255, 244, 250, 0.14) !important;
  border-color: rgba(255, 232, 244, 0.22) !important;
  color: #ffeaf5 !important;
  -webkit-text-fill-color: #ffeaf5 !important;
}

/* Final full-year calendar polish: compact, balanced month cards across all focus modes. */
html[data-design="refined"] #cycleScreen .yearGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

html[data-design="refined"] #cycleScreen .yearGridAll {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact {
  min-height: 0 !important;
  padding: 10px 9px 11px !important;
  border-radius: 20px !important;
  display: grid !important;
  align-content: start !important;
  gap: 6px !important;
  overflow: hidden !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthTitle {
  min-height: 32px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) !important;
  column-gap: 6px !important;
  align-items: center !important;
  text-align: left !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthTitle strong {
  font-family: var(--r-sans) !important;
  font-size: 14px !important;
  line-height: 1.04 !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  color: var(--luma-text-heading) !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthTitle span {
  margin-top: 0 !important;
  font-family: var(--r-sans) !important;
  font-size: 9px !important;
  line-height: 1.08 !important;
  font-weight: 700 !important;
  color: var(--luma-text-muted) !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .weekdayRow,
html[data-design="refined"] #cycleScreen .monthCardCompact .monthDays {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 4px !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .weekdayRow {
  margin-top: 0 !important;
  font-size: 8px !important;
  line-height: 1 !important;
  font-weight: 750 !important;
  letter-spacing: 0.04em !important;
  color: var(--luma-text-muted) !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay,
html[data-design="refined"] #cycleScreen .monthCardCompact .emptyDay {
  width: 100% !important;
  min-width: 0 !important;
  aspect-ratio: 0.76 / 1 !important;
  min-height: 25px !important;
  max-height: 30px !important;
  border-radius: 999px !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay {
  padding: 0 !important;
  font-family: var(--r-sans) !important;
  font-size: 12.5px !important;
  line-height: 1 !important;
  font-weight: 650 !important;
  display: grid !important;
  place-items: center !important;
}

html[data-design="refined"] body.pregnancyFocusMode #cycleScreen .monthCardCompact .monthDay {
  grid-template-rows: auto auto !important;
  gap: 0 !important;
  font-size: 11.5px !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay .cycleLabel,
html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay .pregnancyWeekLabel {
  font-size: 7px !important;
  line-height: 1 !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .monthCardCompact,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .monthCardCompact {
  background:
    radial-gradient(circle at 0% 0%, rgba(198, 239, 228, 0.08), transparent 40%),
    rgba(255, 244, 250, 0.1) !important;
  border-color: rgba(255, 232, 244, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .monthCardCompact .monthTitle strong,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .monthCardCompact .monthTitle strong,
html[data-design="refined"][data-theme="dark"] #cycleScreen .monthCardCompact .monthDay,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .monthCardCompact .monthDay {
  color: #fff1f8 !important;
  -webkit-text-fill-color: #fff1f8 !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .monthCardCompact .monthTitle span,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .monthCardCompact .monthTitle span,
html[data-design="refined"][data-theme="dark"] #cycleScreen .monthCardCompact .weekdayRow,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .monthCardCompact .weekdayRow {
  color: rgba(255, 235, 246, 0.82) !important;
  -webkit-text-fill-color: rgba(255, 235, 246, 0.82) !important;
}

/* Final Luma analysis contrast: readable mint on dark/moonlit surfaces. */
html[data-design="refined"][data-theme="dark"] #lumaHubScreen .analysisAnchorNote,
html[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .analysisAnchorNote,
html[data-design="refined"][data-theme="dark"] .phoneShell .analysisAnchorNote,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .analysisAnchorNote {
  background:
    radial-gradient(circle at 0% 0%, rgba(198, 239, 228, 0.14), transparent 42%),
    rgba(255, 244, 250, 0.13) !important;
  border: 1px solid rgba(255, 232, 244, 0.2) !important;
  color: #d9fff5 !important;
  -webkit-text-fill-color: #d9fff5 !important;
  text-shadow: none !important;
}

html[data-design="refined"][data-theme="dark"] #lumaHubScreen .aiToolCard button,
html[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .aiToolCard button {
  background: rgba(255, 244, 250, 0.16) !important;
  border-color: rgba(220, 248, 240, 0.26) !important;
  color: #d9fff5 !important;
  -webkit-text-fill-color: #d9fff5 !important;
}

html[data-design="refined"][data-theme="dark"] #lumaHubScreen .aiToolCard button:hover,
html[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .aiToolCard button:hover {
  background: rgba(220, 248, 240, 0.22) !important;
  color: #fff8fb !important;
  -webkit-text-fill-color: #fff8fb !important;
}

/* Final cross-focus consistency: shared Track controls cannot fall back to old bright panels. */
html[data-design="refined"][data-theme="dark"] #cycleScreen .calendarViewToggle,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .calendarViewToggle,
html[data-design="refined"][data-theme="dark"] #cycleScreen .monthNavigator,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .monthNavigator,
html[data-design="refined"][data-theme="dark"] #cycleScreen .calendarModeNotice,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .calendarModeNotice,
html[data-design="refined"][data-theme="dark"] #cycleScreen .calendarNoPeriodPanel,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .calendarNoPeriodPanel,
html[data-design="refined"][data-theme="dark"] #cycleScreen .ttcSignalPriority,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .ttcSignalPriority {
  background:
    radial-gradient(circle at 8% 0%, rgba(198, 239, 228, 0.11), transparent 38%),
    linear-gradient(135deg, rgba(122, 113, 139, 0.8), rgba(91, 78, 108, 0.8)) !important;
  border-color: rgba(232, 214, 228, 0.24) !important;
  color: #fff1f8 !important;
  -webkit-text-fill-color: #fff1f8 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.14) !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .calendarViewToggle button,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .calendarViewToggle button,
html[data-design="refined"][data-theme="dark"] #cycleScreen .monthNavigator button,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .monthNavigator button {
  background: rgba(239, 235, 241, 0.2) !important;
  border-color: rgba(255, 244, 250, 0.17) !important;
  color: #fff3fa !important;
  -webkit-text-fill-color: #fff3fa !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .calendarViewToggle button[aria-selected="true"],
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .calendarViewToggle button[aria-selected="true"],
html[data-design="refined"][data-theme="dark"] #cycleScreen .calendarViewToggle button.active,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .calendarViewToggle button.active {
  background: rgba(223, 213, 224, 0.38) !important;
  color: #fff8fb !important;
  -webkit-text-fill-color: #fff8fb !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .monthNavigator h3,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .monthNavigator h3,
html[data-design="refined"][data-theme="dark"] #cycleScreen #monthTitle,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen #monthTitle,
html[data-design="refined"][data-theme="dark"] #cycleScreen .calendarModeNotice,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .calendarModeNotice,
html[data-design="refined"][data-theme="dark"] #cycleScreen .calendarNoPeriodPanel,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .calendarNoPeriodPanel,
html[data-design="refined"][data-theme="dark"] #cycleScreen .ttcSignalPriority,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .ttcSignalPriority,
html[data-design="refined"][data-theme="dark"] #cycleScreen :is(.calendarModeNotice strong, .calendarModeNotice span, .calendarModeNotice p, .calendarNoPeriodPanel strong, .calendarNoPeriodPanel span, .calendarNoPeriodPanel p, .ttcSignalPriority h2, .ttcSignalPriority p),
html[data-design="refined"][data-theme="moonlit"] #cycleScreen :is(.calendarModeNotice strong, .calendarModeNotice span, .calendarModeNotice p, .calendarNoPeriodPanel strong, .calendarNoPeriodPanel span, .calendarNoPeriodPanel p, .ttcSignalPriority h2, .ttcSignalPriority p) {
  color: #fff1f8 !important;
  -webkit-text-fill-color: #fff1f8 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen :is(.calendarModeNotice .label, .calendarNoPeriodPanel .label, .ttcSignalPriority .label),
html[data-design="refined"][data-theme="moonlit"] #cycleScreen :is(.calendarModeNotice .label, .calendarNoPeriodPanel .label, .ttcSignalPriority .label) {
  color: #c4eee4 !important;
  -webkit-text-fill-color: #c4eee4 !important;
}

/* Final Track history dark/moonlit refresh: align old log panels to the premium glass system. */
html[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningWhere,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningWhere {
  width: calc(100% - 26px) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(198, 239, 228, 0.1), transparent 38%),
    linear-gradient(135deg, rgba(82, 69, 88, 0.74), rgba(55, 43, 58, 0.78)) !important;
  border-color: rgba(255, 232, 244, 0.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.16) !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningWhere > summary,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningWhere > summary {
  min-height: 50px !important;
  padding: 0 12px 0 18px !important;
  color: #fff3fa !important;
  -webkit-text-fill-color: #fff3fa !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningWhere > summary::after,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningWhere > summary::after {
  background: rgba(255, 244, 250, 0.18) !important;
  color: #fff3fa !important;
  -webkit-text-fill-color: #fff3fa !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningWhere > ul,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningWhere > ul {
  padding: 0 18px 16px 34px !important;
  color: rgba(255, 241, 248, 0.9) !important;
  -webkit-text-fill-color: rgba(255, 241, 248, 0.9) !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningWhere > ul strong,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningWhere > ul strong {
  color: #c4eee4 !important;
  -webkit-text-fill-color: #c4eee4 !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistoryDropdown,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistoryDropdown {
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 6% 0%, rgba(198, 239, 228, 0.08), transparent 40%),
    linear-gradient(145deg, rgba(77, 64, 83, 0.8), rgba(48, 38, 53, 0.82)) !important;
  border-color: rgba(255, 232, 244, 0.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.18) !important;
  overflow: hidden !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistorySummary,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistorySummary {
  min-height: 106px !important;
  padding: 22px 22px !important;
  background:
    radial-gradient(circle at 95% 8%, rgba(236, 166, 196, 0.12), transparent 44%),
    linear-gradient(135deg, rgba(255, 244, 250, 0.08), rgba(198, 239, 228, 0.05)) !important;
  border-bottom: 0 !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistoryDropdown[open] .logHistorySummary,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistoryDropdown[open] .logHistorySummary {
  border-bottom: 1px solid rgba(255, 232, 244, 0.13) !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistorySummary .label,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistorySummary .label {
  color: #c4eee4 !important;
  -webkit-text-fill-color: #c4eee4 !important;
  letter-spacing: 0.14em !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistorySummary h2,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistorySummary h2 {
  color: #fff3fa !important;
  -webkit-text-fill-color: #fff3fa !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistorySummaryMeta,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistorySummaryMeta {
  background: rgba(255, 244, 250, 0.15) !important;
  color: #fff3fa !important;
  -webkit-text-fill-color: #fff3fa !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistoryChevron,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistoryChevron {
  background: rgba(45, 31, 43, 0.8) !important;
  border-color: rgba(255, 232, 244, 0.18) !important;
  color: #fff3fa !important;
  -webkit-text-fill-color: #fff3fa !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistoryDropdownBody,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistoryDropdownBody {
  padding: 18px 22px 22px !important;
  background: rgba(255, 244, 250, 0.03) !important;
  border-top: 0 !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistoryIntro,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistoryIntro {
  color: rgba(255, 241, 248, 0.9) !important;
  -webkit-text-fill-color: rgba(255, 241, 248, 0.9) !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistoryFilters,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistoryFilters {
  gap: 10px !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistoryFilters button,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistoryFilters button {
  min-height: 42px !important;
  padding: 9px 16px !important;
  border-radius: 999px !important;
  background: rgba(255, 248, 251, 0.88) !important;
  border-color: rgba(255, 232, 244, 0.18) !important;
  color: #3f2d38 !important;
  -webkit-text-fill-color: #3f2d38 !important;
  box-shadow: none !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistoryFilters button.active,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistoryFilters button.active {
  background: rgba(74, 50, 58, 0.88) !important;
  color: #fff8fb !important;
  -webkit-text-fill-color: #fff8fb !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistoryItem,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistoryItem,
html[data-design="refined"][data-theme="dark"] #cycleScreen .emptyLog,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .emptyLog {
  background:
    radial-gradient(circle at 100% 0%, rgba(236, 166, 196, 0.1), transparent 42%),
    rgba(255, 248, 251, 0.12) !important;
  border-color: rgba(255, 232, 244, 0.16) !important;
  color: #fff3fa !important;
  -webkit-text-fill-color: #fff3fa !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistoryItem :is(strong, div, p, b),
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistoryItem :is(strong, div, p, b),
html[data-design="refined"][data-theme="dark"] #cycleScreen .emptyLog :is(strong, p),
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .emptyLog :is(strong, p) {
  color: #fff3fa !important;
  -webkit-text-fill-color: #fff3fa !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistoryItem span,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistoryItem span {
  color: #f1ddea !important;
  -webkit-text-fill-color: #f1ddea !important;
}

/* Final dark/moonlit hero subtitle lock: keep italic sublines readable in every focus mode. */
html[data-design="refined"][data-theme="dark"] .phoneShell :is(.homeTrustSub, .pregnancyNeoMilestone, .trackHeroHeadline em, .trackHeroHint em),
html[data-design="refined"][data-theme="moonlit"] .phoneShell :is(.homeTrustSub, .pregnancyNeoMilestone, .trackHeroHeadline em, .trackHeroHint em) {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #ffe6f1 !important;
  -webkit-text-fill-color: #ffe6f1 !important;
  opacity: 1 !important;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.28) !important;
}

html[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #todayScreen .homeTrustCard :is(.homeTrustMain, .homeTrustSub),
html[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #todayScreen .homeTrustCard :is(.homeTrustMain, .homeTrustSub) {
  color: #f7ecff !important;
  -webkit-text-fill-color: #f7ecff !important;
}

html[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode #todayScreen .homeTrustCard .homeTrustSub,
html[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode #todayScreen .homeTrustCard .homeTrustSub {
  color: #ffe6f1 !important;
  -webkit-text-fill-color: #ffe6f1 !important;
}

/* Final Track learning-card dark/moonlit pass: remove the bright white inset card. */
html[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningCore,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningCore {
  background:
    radial-gradient(circle at 8% 0%, rgba(198, 239, 228, 0.1), transparent 40%),
    linear-gradient(145deg, rgba(84, 72, 91, 0.86), rgba(56, 45, 61, 0.9)) !important;
  border-color: rgba(255, 232, 244, 0.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.18) !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningCore .lumaLearningStage span,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningCore .lumaLearningStage span {
  background: rgba(232, 164, 192, 0.18) !important;
  color: #ffd7e8 !important;
  -webkit-text-fill-color: #ffd7e8 !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningCore .lumaLearningStage strong,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningCore .lumaLearningStage strong,
html[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningCore .lumaLearningEvidence li,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningCore .lumaLearningEvidence li {
  color: #fff1f8 !important;
  -webkit-text-fill-color: #fff1f8 !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningCore .lumaLearningProgress,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningCore .lumaLearningProgress {
  background: rgba(255, 244, 250, 0.16) !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningCore .lumaLearningProgress span,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningCore .lumaLearningProgress span {
  background: linear-gradient(90deg, #e8a4c0, #d582aa) !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .lumaLearningCore .lumaLearningNext,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .lumaLearningCore .lumaLearningNext {
  background: rgba(255, 244, 250, 0.12) !important;
  color: #f4e6ef !important;
  -webkit-text-fill-color: #f4e6ef !important;
}

/* Final Luma chat repair: one stable sheet layout across every focus and theme. */
html[data-design="refined"] .phoneShell .lumaSheet {
  display: flex !important;
  flex-direction: column !important;
  width: min(100%, 430px) !important;
  max-height: min(88dvh, 760px) !important;
  overflow: hidden !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeader {
  flex: 0 0 auto !important;
  padding: 18px 20px 16px !important;
  gap: 14px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeader h2 {
  font-size: clamp(2.05rem, 9vw, 3.05rem) !important;
  line-height: 0.94 !important;
  margin: 4px 0 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetClose {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  border-radius: 22px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 14px 18px 22px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat > * {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaSheetTodayCard,
html[data-design="refined"] .phoneShell .lumaSheetChat .memoryStrip {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatControls {
  order: 1 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatControls button {
  min-height: 56px !important;
  padding: 0 14px !important;
  border-radius: 22px !important;
  font-size: 1.05rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 18%, transparent), transparent 45%),
    color-mix(in srgb, var(--luma-surface-card, #fff8fb) 88%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 48%, transparent) !important;
  color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  -webkit-text-fill-color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--luma-shadow, #d9b5c4) 12%, transparent) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaPreviousChatsPanel {
  order: 2 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge {
  order: 5 !important;
  display: grid !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 26px !important;
  overflow: visible !important;
  background:
    radial-gradient(circle at 95% 0%, color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 14%, transparent), transparent 42%),
    color-mix(in srgb, var(--luma-surface-card, #fff8fb) 86%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 42%, transparent) !important;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--luma-shadow, #d9b5c4) 12%, transparent) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge > .label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 18%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 38%, transparent) !important;
  color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  -webkit-text-fill-color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  font-family: var(--r-sans, var(--luma-font-body, inherit)) !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.18em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergeTitle,
html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergeContext {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
  padding: 8px 6px !important;
  border-radius: 20px !important;
  text-align: center !important;
  overflow: visible !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode span {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  font-size: 0.9rem !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode strong {
  display: block !important;
  width: 100% !important;
  color: var(--luma-text-heading, #3f2b38) !important;
  -webkit-text-fill-color: var(--luma-text-heading, #3f2b38) !important;
  font-size: 0.82rem !important;
  line-height: 1.08 !important;
  text-align: center !important;
  overflow-wrap: anywhere !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode em {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergePanel {
  display: grid !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergePanelHead {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePanelCopy {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 13px 15px !important;
  border-radius: 22px !important;
  overflow: visible !important;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 12%, transparent), transparent 42%),
    color-mix(in srgb, var(--luma-surface-card, #fff8fb) 90%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 34%, transparent) !important;
  color: var(--luma-text, #51404b) !important;
  -webkit-text-fill-color: var(--luma-text, #51404b) !important;
  font-size: 0.95rem !important;
  line-height: 1.38 !important;
  white-space: normal !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  transform: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 9px 10px !important;
  border-radius: 999px !important;
  white-space: normal !important;
  line-height: 1.08 !important;
  text-align: center !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessages {
  order: 4 !important;
  display: grid !important;
  gap: 10px !important;
  max-height: 240px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessages:empty {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessage {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 13px 15px !important;
  border-radius: 22px !important;
  overflow: visible !important;
  white-space: pre-line !important;
  overflow-wrap: anywhere !important;
  line-height: 1.36 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm {
  order: 5 !important;
  position: relative !important;
  bottom: auto !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 56px !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 74px !important;
  padding: 10px !important;
  margin: 0 !important;
  border-radius: 26px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 95% 0%, color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 18%, transparent), transparent 40%),
    color-mix(in srgb, var(--luma-surface-card, #fff8fb) 88%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 38%, transparent) !important;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--luma-shadow, #d9b5c4) 11%, transparent) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm input {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 52px !important;
  padding: 0 14px !important;
  border-radius: 18px !important;
  font-size: 0.92rem !important;
  text-overflow: ellipsis !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm button {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  border-radius: 19px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote {
  order: 6 !important;
  display: block !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 18%, transparent), transparent 42%),
    color-mix(in srgb, var(--luma-surface-card, #fff8fb) 86%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 36%, transparent) !important;
  color: var(--luma-text, #51404b) !important;
  -webkit-text-fill-color: var(--luma-text, #51404b) !important;
  font-size: 0.92rem !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoicePanel {
  order: 7 !important;
  display: grid !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 24px !important;
  overflow: visible !important;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 10%, transparent), transparent 42%),
    color-mix(in srgb, var(--luma-surface-card, #fff8fb) 86%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 34%, transparent) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceUpgrade:not([hidden]),
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceControls:not([hidden]) {
  display: grid !important;
  gap: 10px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceUpgrade p,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceStatus,
html[data-design="refined"] .phoneShell .lumaSheetChat #lumaVoiceStatus {
  margin: 0 !important;
  color: var(--luma-text, #51404b) !important;
  -webkit-text-fill-color: var(--luma-text, #51404b) !important;
  line-height: 1.34 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceUpgrade .wideButton {
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  white-space: normal !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceActions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 54px !important;
  align-items: center !important;
  gap: 10px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceToggle {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 48px !important;
  margin: 0 !important;
  min-width: 0 !important;
  color: var(--luma-text-heading, #3f2b38) !important;
  -webkit-text-fill-color: var(--luma-text-heading, #3f2b38) !important;
  line-height: 1.2 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceToggle input {
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceMic {
  width: 54px !important;
  height: 54px !important;
  margin: 0 !important;
  justify-self: end !important;
}

html[data-design="refined"] .phoneShell .lumaSheet > .lumaInsightsSection {
  flex: 0 0 auto !important;
  width: calc(100% - 36px) !important;
  max-width: calc(100% - 36px) !important;
  margin: 0 auto 16px !important;
  border-radius: 24px !important;
  overflow: hidden !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaChatControls button,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaChatControls button,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaConcierge,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaConcierge,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat #lumaConciergePanelCopy,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat #lumaConciergePanelCopy,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .mobileChatForm,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .mobileChatForm,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaVoicePanel,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaVoicePanel,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote {
  background:
    radial-gradient(circle at 100% 0%, rgba(196, 238, 228, 0.08), transparent 42%),
    linear-gradient(145deg, rgba(93, 82, 103, 0.76), rgba(48, 39, 54, 0.84)) !important;
  border-color: rgba(255, 232, 244, 0.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 16px 34px rgba(0, 0, 0, 0.16) !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaConcierge > .label,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaConcierge > .label {
  background: rgba(232, 164, 192, 0.16) !important;
  border-color: rgba(255, 232, 244, 0.18) !important;
  color: #ffd8e8 !important;
  -webkit-text-fill-color: #ffd8e8 !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat :is(.lumaConciergeMode strong, #lumaConciergePanelCopy, .mobileMessage, .mobileMessage.luma, .mobileChatForm input, .lumaChatUpgradeNote, .lumaVoiceUpgrade p, #lumaVoiceStatus, .lumaVoiceToggle),
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat :is(.lumaConciergeMode strong, #lumaConciergePanelCopy, .mobileMessage, .mobileMessage.luma, .mobileChatForm input, .lumaChatUpgradeNote, .lumaVoiceUpgrade p, #lumaVoiceStatus, .lumaVoiceToggle) {
  color: #fff3fa !important;
  -webkit-text-fill-color: #fff3fa !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .mobileChatForm input::placeholder,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .mobileChatForm input::placeholder {
  color: rgba(255, 241, 248, 0.7) !important;
  -webkit-text-fill-color: rgba(255, 241, 248, 0.7) !important;
  opacity: 1 !important;
}

@media (max-width: 430px) {
  html[data-design="refined"] .phoneShell .lumaSheetChat {
    padding-inline: 14px !important;
  }

  html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes {
    grid-template-columns: repeat(3, minmax(86px, 1fr)) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 2px !important;
    scrollbar-width: none !important;
  }

  html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes::-webkit-scrollbar {
    display: none !important;
  }

  html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Luma chat room: lighter companion layout shared by every focus mode. */
html[data-design="refined"] .phoneShell .lumaSheet {
  width: min(100%, 430px) !important;
  max-height: min(90dvh, 780px) !important;
  border-radius: 34px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeader {
  min-height: 106px !important;
  padding: 18px 22px 14px !important;
  align-items: flex-start !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeader h2 {
  max-width: calc(100% - 74px) !important;
  font-size: clamp(2rem, 8.5vw, 2.65rem) !important;
  line-height: 0.96 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetClose {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  border-radius: 20px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat {
  gap: 13px !important;
  padding: 14px 18px 18px !important;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 18%, transparent), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--luma-shell, #fff7fb) 96%, white), color-mix(in srgb, var(--luma-surface, #fffaf7) 94%, white)) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .memoryStrip {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatControls {
  order: 1 !important;
  display: flex !important;
  gap: 9px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatControls button {
  min-height: 46px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  font-family: var(--r-display, var(--luma-font-heading, serif)) !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--luma-shadow, #d9b5c4) 9%, transparent) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaSheetTodayCard {
  order: 2 !important;
  display: grid !important;
  gap: 8px !important;
  min-height: 0 !important;
  padding: 16px 17px !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 94% 0%, color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 16%, transparent), transparent 45%),
    color-mix(in srgb, var(--luma-surface-card, #fff8fb) 90%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 38%, transparent) !important;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--luma-shadow, #d9b5c4) 10%, transparent) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetTodayCard .label {
  color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  -webkit-text-fill-color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.16em !important;
}

html[data-design="refined"] .phoneShell .lumaSheetTodayCard h3 {
  margin: 0 !important;
  color: var(--luma-text-heading, #3f2b38) !important;
  -webkit-text-fill-color: var(--luma-text-heading, #3f2b38) !important;
  font-family: var(--r-sans, var(--luma-font-body, inherit)) !important;
  font-size: 1.03rem !important;
  line-height: 1.18 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetTodayCard p:not(.label) {
  margin: 0 !important;
  color: var(--luma-text, #66525f) !important;
  -webkit-text-fill-color: var(--luma-text, #66525f) !important;
  font-size: 0.9rem !important;
  line-height: 1.35 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetTodayCard .lumaContextChips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetTodayCard .lumaContextChips span {
  padding: 6px 9px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 18%, white) !important;
  color: color-mix(in srgb, var(--luma-teal-text, #1f7469) 86%, #2e2130) !important;
  -webkit-text-fill-color: color-mix(in srgb, var(--luma-teal-text, #1f7469) 86%, #2e2130) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge {
  order: 5 !important;
  display: grid !important;
  gap: 11px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge > .label {
  justify-content: flex-start !important;
  min-height: 0 !important;
  width: auto !important;
  padding: 0 4px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  -webkit-text-fill-color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  letter-spacing: 0.2em !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes {
  display: flex !important;
  gap: 9px !important;
  padding: 2px 2px 6px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes::-webkit-scrollbar {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 106px !important;
  min-height: 46px !important;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 8px 13px !important;
  border-radius: 999px !important;
  text-align: center !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode span {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  font-size: 0.82rem !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode strong {
  width: auto !important;
  font-size: 0.82rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergePanel {
  display: grid !important;
  gap: 8px !important;
  padding: 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePanelCopy {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow {
  display: flex !important;
  gap: 8px !important;
  padding: 0 2px 4px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow::-webkit-scrollbar {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 96px !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  font-size: 0.8rem !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessages {
  order: 3 !important;
  max-height: 185px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm {
  order: 4 !important;
  position: relative !important;
  bottom: auto !important;
  min-height: 68px !important;
  padding: 8px !important;
  margin-top: 4px !important;
  border-radius: 24px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm input {
  min-height: 50px !important;
  font-size: 0.9rem !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm button {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  border-radius: 18px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoicePanel {
  order: 6 !important;
  padding: 13px 14px !important;
  border-radius: 24px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote {
  order: 7 !important;
  padding: 12px 14px !important;
  font-size: 0.88rem !important;
}

html[data-design="refined"] .phoneShell .lumaSheet > .lumaInsightsSection {
  width: calc(100% - 36px) !important;
  max-width: calc(100% - 36px) !important;
  margin: 0 auto 14px !important;
  border-radius: 24px !important;
}

html[data-design="refined"] .phoneShell .lumaSheet > .lumaInsightsSection:not([open]) .lumaInsightsHeader {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 44px !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 70px !important;
  padding: 13px 16px !important;
}

html[data-design="refined"] .phoneShell .lumaSheet > .lumaInsightsSection:not([open]) .lumaInsightsHeader::after {
  width: 44px !important;
  height: 44px !important;
}

html[data-design="refined"] .phoneShell .lumaSheet > .lumaInsightsSection:not([open]) .lumaInsightsHeader h3 {
  font-size: 1.05rem !important;
  line-height: 1.1 !important;
}

html[data-design="refined"] .phoneShell .lumaSheet > .lumaInsightsSection:not([open]) .lumaInsightsDesc {
  display: none !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat {
  background:
    radial-gradient(circle at 20% 0%, rgba(232, 164, 192, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(56, 46, 65, 0.96), rgba(39, 30, 42, 0.98)) !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaSheetTodayCard,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaSheetTodayCard,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat #lumaConciergePanelCopy,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat #lumaConciergePanelCopy {
  background:
    radial-gradient(circle at 100% 0%, rgba(196, 238, 228, 0.1), transparent 42%),
    linear-gradient(145deg, rgba(85, 74, 96, 0.76), rgba(45, 36, 51, 0.84)) !important;
  border-color: rgba(255, 232, 244, 0.2) !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetTodayCard :is(.label, h3, p, span),
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetTodayCard :is(.label, h3, p, span),
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat #lumaConciergePanelCopy,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat #lumaConciergePanelCopy {
  color: #fff3fa !important;
  -webkit-text-fill-color: #fff3fa !important;
}

@media (max-width: 430px) {
  html[data-design="refined"] .phoneShell .lumaSheetHeader {
    min-height: 98px !important;
    padding: 16px 18px 12px !important;
  }

  html[data-design="refined"] .phoneShell .lumaSheetHeader h2 {
    font-size: clamp(1.9rem, 8vw, 2.35rem) !important;
  }

  html[data-design="refined"] .phoneShell .lumaSheetChat {
    padding-inline: 13px !important;
  }
}

/* Luma chat final flow: applies to every focus mode and theme. */
html[data-design="refined"] .phoneShell .lumaSheetChat {
  align-content: start !important;
  gap: 11px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaSheetTodayCard {
  order: 2 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge {
  order: 3 !important;
  gap: 9px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes {
  min-height: 48px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode {
  min-height: 42px !important;
  min-width: 96px !important;
  padding: 7px 12px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow {
  min-height: 40px !important;
  max-height: 44px !important;
  flex-wrap: nowrap !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow button {
  min-height: 36px !important;
  padding: 7px 11px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessages {
  order: 4 !important;
  max-height: 128px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm {
  order: 5 !important;
  margin-top: 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoicePanel {
  order: 6 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote {
  order: 7 !important;
}

/* You tab: Appearance now follows the same compact dropdown system. */
html[data-design="refined"] .phoneShell #profileScreen .themePickerSection.settingsListDetails {
  overflow: hidden !important;
}

html[data-design="refined"] .phoneShell #profileScreen .themePickerSection.settingsListDetails:not([open]) {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 !important;
}

html[data-design="refined"] .phoneShell #profileScreen .themePickerSection.settingsListDetails > summary h2 {
  color: var(--you-pink, #b75c84) !important;
  font-family: var(--luma-font-display, var(--r-display)) !important;
  font-style: italic !important;
  font-size: clamp(0.98rem, 3.6vw, 1.24rem) !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}

html[data-design="refined"] .phoneShell #profileScreen .themePickerSection.settingsListDetails[open] {
  padding-bottom: 10px !important;
}

html[data-design="refined"] .phoneShell #profileScreen .themePickerBody {
  padding: 10px 12px 12px !important;
}

html[data-design="refined"] .phoneShell #profileScreen .themePickerBody .themePickerLead {
  max-width: 92% !important;
  margin: 0 auto 10px !important;
  color: var(--luma-text-muted) !important;
  font-size: 0.82rem !important;
  line-height: 1.32 !important;
  text-align: center !important;
}

html[data-design="refined"] .phoneShell #profileScreen .themePickerBody .themePickerGrid {
  gap: 8px !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .themePickerBody .themePickerLead,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .themePickerBody .themePickerLead {
  color: #f4d8e7 !important;
  -webkit-text-fill-color: #f4d8e7 !important;
}

/* Luma chat room: a more open companion layout across every focus and theme. */
html[data-design="refined"] .phoneShell .lumaSheet {
  width: min(calc(100% - 14px), 420px) !important;
  max-height: min(88dvh, 760px) !important;
  border-radius: 30px !important;
  overflow: hidden !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeader {
  min-height: 94px !important;
  padding: 17px 20px 12px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 42%, transparent) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeader h2 {
  max-width: calc(100% - 70px) !important;
  font-size: clamp(2rem, 8vw, 2.55rem) !important;
  line-height: 0.98 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetClose {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  border-radius: 20px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 14px 16px 18px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 24%, transparent), transparent 38%),
    radial-gradient(circle at 100% 28%, color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 15%, transparent), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--luma-shell, #fff7fb) 98%, white), color-mix(in srgb, var(--luma-surface, #fffaf7) 94%, white)) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat > * {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatControls {
  order: 1 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatControls button {
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 0 14px !important;
  border-radius: 20px !important;
  font-family: var(--r-display, var(--luma-font-heading, serif)) !important;
  font-size: 1.08rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaSheetTodayCard {
  order: 2 !important;
  display: grid !important;
  gap: 7px !important;
  min-height: 0 !important;
  padding: 4px 4px 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetTodayCard .label {
  color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  -webkit-text-fill-color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.18em !important;
}

html[data-design="refined"] .phoneShell .lumaSheetTodayCard h3 {
  margin: 0 !important;
  color: var(--luma-text-heading, #3f2b38) !important;
  -webkit-text-fill-color: var(--luma-text-heading, #3f2b38) !important;
  font-family: var(--r-sans, var(--luma-font-body, inherit)) !important;
  font-size: 1.02rem !important;
  line-height: 1.18 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetTodayCard p:not(.label) {
  margin: 0 !important;
  color: var(--luma-text, #66525f) !important;
  -webkit-text-fill-color: var(--luma-text, #66525f) !important;
  font-size: 0.86rem !important;
  line-height: 1.32 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetTodayCard .lumaContextChips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetTodayCard .lumaContextChips span,
html[data-design="refined"] .phoneShell .lumaSheetChat .memoryStrip span {
  padding: 6px 9px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 18%, white) !important;
  color: color-mix(in srgb, var(--luma-teal-text, #1f7469) 88%, #2e2130) !important;
  -webkit-text-fill-color: color-mix(in srgb, var(--luma-teal-text, #1f7469) 88%, #2e2130) !important;
  font-size: 0.7rem !important;
  font-weight: 900 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .memoryStrip {
  order: 3 !important;
  display: flex !important;
  gap: 7px !important;
  padding: 0 2px 2px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .memoryStrip::-webkit-scrollbar {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge {
  order: 4 !important;
  display: grid !important;
  gap: 11px !important;
  padding: 13px !important;
  border-radius: 24px !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 42%, transparent) !important;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 24%, transparent), transparent 42%),
    color-mix(in srgb, var(--luma-surface-card, #fff8fb) 86%, transparent) !important;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--luma-shadow, #d9b5c4) 10%, transparent) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge > .label {
  width: max-content !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  -webkit-text-fill-color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  letter-spacing: 0.18em !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergeTitle {
  margin: 0 !important;
  font-size: 1rem !important;
  line-height: 1.12 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergeContext {
  margin: 0 !important;
  font-size: 0.8rem !important;
  line-height: 1.25 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode {
  min-width: 0 !important;
  width: 100% !important;
  min-height: 74px !important;
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  gap: 2px 9px !important;
  padding: 10px !important;
  border-radius: 20px !important;
  text-align: left !important;
  white-space: normal !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode span {
  grid-row: 1 / 3 !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 14px !important;
  font-size: 0.9rem !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode strong {
  font-size: 0.84rem !important;
  line-height: 1.02 !important;
  white-space: normal !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode em {
  display: block !important;
  color: var(--luma-text-muted, #7a6572) !important;
  -webkit-text-fill-color: var(--luma-text-muted, #7a6572) !important;
  font-size: 0.66rem !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode.active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--you-pink, #b45b83) 82%, white), color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 72%, var(--you-pink, #b45b83))) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode.active em,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode.active strong {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergePanel {
  display: grid !important;
  gap: 9px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergePanelHead {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePanelCopy {
  display: block !important;
  margin: 0 !important;
  padding: 9px 10px !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 18%, white) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 34%, transparent) !important;
  color: var(--luma-text, #66525f) !important;
  -webkit-text-fill-color: var(--luma-text, #66525f) !important;
  font-size: 0.78rem !important;
  line-height: 1.22 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow button {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  white-space: normal !important;
  font-size: 0.74rem !important;
  line-height: 1.05 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessages {
  order: 5 !important;
  max-height: 160px !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessages:empty {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm {
  order: 6 !important;
  position: relative !important;
  bottom: auto !important;
  min-height: 60px !important;
  padding: 7px !important;
  margin: 0 !important;
  border-radius: 22px !important;
  flex: 0 0 auto !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm input {
  min-width: 0 !important;
  min-height: 46px !important;
  font-size: 0.86rem !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm button {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 18px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote {
  order: 7 !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border-radius: 18px !important;
  background: color-mix(in srgb, var(--luma-accent-copper, #c77f55) 14%, white) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-copper, #c77f55) 26%, transparent) !important;
  color: var(--luma-text, #66525f) !important;
  -webkit-text-fill-color: var(--luma-text, #66525f) !important;
  font-size: 0.8rem !important;
  line-height: 1.25 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoicePanel {
  order: 8 !important;
  padding: 11px 12px !important;
  border-radius: 20px !important;
}

html[data-design="refined"] .phoneShell .lumaSheet > .lumaInsightsSection {
  width: calc(100% - 32px) !important;
  max-width: calc(100% - 32px) !important;
  margin: 0 auto 14px !important;
  border-radius: 22px !important;
}

html[data-design="refined"] .phoneShell .lumaSheet > .lumaInsightsSection:not([open]) .lumaInsightsHeader {
  min-height: 66px !important;
  padding: 12px 15px !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat {
  background:
    radial-gradient(circle at 12% 0%, rgba(232, 164, 192, 0.16), transparent 36%),
    radial-gradient(circle at 100% 34%, rgba(196, 238, 228, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(55, 45, 64, 0.96), rgba(36, 28, 41, 0.98)) !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaConcierge,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaConcierge {
  background:
    radial-gradient(circle at 0% 0%, rgba(232, 164, 192, 0.12), transparent 42%),
    rgba(72, 62, 84, 0.5) !important;
  border-color: rgba(255, 232, 244, 0.18) !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat :is(.lumaSheetTodayCard h3, .lumaSheetTodayCard p, #lumaConciergeTitle, #lumaConciergeContext, .lumaConciergeMode strong, .mobileMessage, .mobileMessage.luma),
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat :is(.lumaSheetTodayCard h3, .lumaSheetTodayCard p, #lumaConciergeTitle, #lumaConciergeContext, .lumaConciergeMode strong, .mobileMessage, .mobileMessage.luma) {
  color: #fff4fb !important;
  -webkit-text-fill-color: #fff4fb !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaConciergeMode em,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaConciergeMode em {
  color: #f2dce9 !important;
  -webkit-text-fill-color: #f2dce9 !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat #lumaConciergePanelCopy,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat #lumaConciergePanelCopy,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote {
  background: rgba(98, 84, 109, 0.58) !important;
  border-color: rgba(255, 232, 244, 0.18) !important;
  color: #fff4fb !important;
  -webkit-text-fill-color: #fff4fb !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .mobileChatForm,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .mobileChatForm {
  background: rgba(70, 60, 82, 0.72) !important;
  border-color: rgba(255, 232, 244, 0.18) !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .mobileChatForm input,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .mobileChatForm input {
  color: #fff4fb !important;
  -webkit-text-fill-color: #fff4fb !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .mobileChatForm input::placeholder,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .mobileChatForm input::placeholder {
  color: #d9c7d4 !important;
  -webkit-text-fill-color: #d9c7d4 !important;
}

@media (max-width: 430px) {
  html[data-design="refined"] .phoneShell .lumaSheet {
    width: calc(100% - 10px) !important;
    max-height: min(89dvh, 740px) !important;
  }

  html[data-design="refined"] .phoneShell .lumaSheetChat {
    padding: 12px 13px 16px !important;
  }

  html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode {
    min-height: 70px !important;
    padding: 9px !important;
  }

  html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode strong {
    font-size: 0.8rem !important;
  }

  html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode em {
    font-size: 0.62rem !important;
  }
}

/* 20260830 focus cleanup: one final shared polish layer for all focus modes. */
html[data-design="refined"] #premiumPreviewRibbon,
html[data-design="refined"] #homeModeMicroNav,
html[data-design="refined"] #homePremiumOwnerNote,
html[data-design="refined"] #trackAccuracyRail,
html[data-design="refined"] #lumaConciergePreview,
html[data-design="refined"] #learnMagazineMasthead,
html[data-design="refined"] #learnPremiumStartHere,
html[data-design="refined"] #learnEditorialShelf,
html[data-design="refined"] #youPremiumLedger,
html[data-design="refined"] #lifeStagePreviewCard,
html[data-design="refined"] .lumaPremiumModeRail,
html[data-design="refined"] .youControlMap {
  display: none !important;
}

html[data-design="refined"] #profileScreen .settingsListDetails {
  width: calc(100% - 30px) !important;
  margin: 8px auto !important;
  border-radius: 18px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html[data-design="refined"] #profileScreen .settingsListDetails:not([open]) {
  min-height: 46px !important;
  height: 46px !important;
  max-height: 46px !important;
}

html[data-design="refined"] #profileScreen .settingsListDetails > summary {
  min-height: 46px !important;
  height: 46px !important;
  padding: 6px 54px 6px 18px !important;
  display: grid !important;
  place-items: center !important;
  text-align: center !important;
}

html[data-design="refined"] #profileScreen .settingsListDetails > summary h2,
html[data-design="refined"] #profileScreen .themePickerSection > summary h2 {
  margin: 0 !important;
  color: var(--you-pink, #b85b87) !important;
  -webkit-text-fill-color: var(--you-pink, #b85b87) !important;
  font-family: var(--luma-font-display, Georgia, serif) !important;
  font-size: clamp(1rem, 3.5vw, 1.24rem) !important;
  font-style: italic !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

html[data-design="refined"] #profileScreen .settingsListDetails > summary p {
  display: none !important;
}

html[data-design="refined"] #profileScreen .settingsListDetails > summary::after {
  right: 16px !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
}

html[data-design="refined"] #profileScreen .settingsListDetails[open] {
  padding: 0 12px 12px !important;
}

html[data-design="refined"] #profileScreen .settingsListDetails[open] > summary {
  margin: 0 -12px 10px !important;
}

html[data-design="refined"] body.pregnancyFocusMode #profileTrackingModeRow {
  display: none !important;
}

html[data-design="refined"] #profileScreen :is(.youCommandGrid, .profileCommandGrid) {
  align-items: stretch !important;
}

html[data-design="refined"] #profileScreen :is(.youCommandCard, .profileCommandCard, .quickProfileAction) {
  min-height: 92px !important;
  display: grid !important;
  place-items: center !important;
  text-align: center !important;
  padding: 14px 10px !important;
  gap: 7px !important;
}

html[data-design="refined"] .phoneShell .lumaSheet {
  width: min(calc(100% - 12px), 430px) !important;
  max-height: min(92dvh, 760px) !important;
  border-radius: 30px 30px 24px 24px !important;
  overflow: hidden !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeader {
  min-height: 92px !important;
  padding: 18px 22px 16px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat {
  padding: 14px 18px 18px !important;
  gap: 14px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

html[data-design="refined"] .phoneShell .lumaChatControls {
  gap: 10px !important;
}

html[data-design="refined"] .phoneShell .lumaChatControls button {
  min-height: 46px !important;
  border-radius: 999px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge > .label {
  width: auto !important;
  min-height: 0 !important;
  justify-content: flex-start !important;
  padding: 0 2px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergeTitle,
html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergeContext {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 9px !important;
  padding: 1px 1px 3px !important;
  scrollbar-width: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes::-webkit-scrollbar {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 104px !important;
  min-height: 44px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode span {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode em {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergePanel {
  padding: 10px !important;
  border-radius: 22px !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #efd5e1) 44%, transparent) !important;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--luma-accent-mint, #c9efe6) 22%, transparent), transparent 42%),
    color-mix(in srgb, var(--luma-bg, #fff8fb) 86%, var(--luma-accent-soft, #efd5e1)) !important;
  box-shadow: 0 14px 34px rgba(78, 51, 66, 0.08) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePanelCopy {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow button {
  min-height: 36px !important;
  padding: 8px 12px !important;
  font-size: 0.74rem !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessages {
  max-height: 205px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm {
  border-radius: 22px !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 2 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote {
  padding: 10px 13px !important;
  border-radius: 18px !important;
}

html[data-design="refined"][data-theme="dark"] .pregnancyStoryHero .pregnancyNeoMilestone,
html[data-design="refined"][data-theme="dark"] .pregnancyStoryHero #pregnancyWeekFruitCompare,
html[data-design="refined"][data-theme="moonlit"] .pregnancyStoryHero .pregnancyNeoMilestone,
html[data-design="refined"][data-theme="moonlit"] .pregnancyStoryHero #pregnancyWeekFruitCompare {
  color: #ffe7f3 !important;
  -webkit-text-fill-color: #ffe7f3 !important;
  opacity: 1 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18) !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat {
  background:
    radial-gradient(circle at 14% 0%, rgba(232, 164, 192, 0.14), transparent 34%),
    radial-gradient(circle at 100% 40%, rgba(196, 238, 228, 0.11), transparent 40%),
    linear-gradient(180deg, rgba(52, 44, 63, 0.96), rgba(35, 28, 42, 0.98)) !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaConciergePanel,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaConciergePanel {
  background:
    radial-gradient(circle at 0% 0%, rgba(196, 238, 228, 0.1), transparent 38%),
    rgba(255, 244, 250, 0.08) !important;
  border-color: rgba(255, 232, 244, 0.18) !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen :is(.lumaLearningCore, .lumaLearningPanel, .lumaLearningWhere, .logHistoryPanel),
html[data-design="refined"][data-theme="moonlit"] #cycleScreen :is(.lumaLearningCore, .lumaLearningPanel, .lumaLearningWhere, .logHistoryPanel) {
  background:
    radial-gradient(circle at 0% 0%, rgba(196, 238, 228, 0.11), transparent 42%),
    rgba(255, 244, 250, 0.1) !important;
  border-color: rgba(255, 232, 244, 0.18) !important;
  color: #fff1f8 !important;
  -webkit-text-fill-color: #fff1f8 !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen :is(.lumaLearningCore, .lumaLearningPanel, .lumaLearningWhere, .logHistoryPanel) :is(h2, h3, p, li, span, strong),
html[data-design="refined"][data-theme="moonlit"] #cycleScreen :is(.lumaLearningCore, .lumaLearningPanel, .lumaLearningWhere, .logHistoryPanel) :is(h2, h3, p, li, span, strong) {
  color: #fff1f8 !important;
  -webkit-text-fill-color: #fff1f8 !important;
}

/* Filter chips keep cream fill — never inherit the panel's white ink. */
html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistoryFilters button:not(.active),
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistoryFilters button:not(.active) {
  background: rgba(255, 248, 251, 0.92) !important;
  border-color: rgba(255, 232, 244, 0.22) !important;
  color: var(--luma-on-light-surface-heading, #3a2a34) !important;
  -webkit-text-fill-color: var(--luma-on-light-surface-heading, #3a2a34) !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen .logHistoryFilters button.active,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .logHistoryFilters button.active {
  background: rgba(74, 50, 58, 0.92) !important;
  color: #fff8fb !important;
  -webkit-text-fill-color: #fff8fb !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen :is(.lumaLearningCore .label, .logHistoryPanel .label),
html[data-design="refined"][data-theme="moonlit"] #cycleScreen :is(.lumaLearningCore .label, .logHistoryPanel .label) {
  color: #c4eee4 !important;
  -webkit-text-fill-color: #c4eee4 !important;
}

html[data-design="refined"][data-theme="dark"] #lumaHubScreen .analysisAnchorNote,
html[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .analysisAnchorNote,
html[data-design="refined"][data-theme="dark"] .phoneShell .analysisAnchorNote,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .analysisAnchorNote {
  background: rgba(255, 244, 250, 0.13) !important;
  border-color: rgba(255, 232, 244, 0.2) !important;
  color: #fff1f8 !important;
  -webkit-text-fill-color: #fff1f8 !important;
}

html[data-design="refined"][data-theme="dark"] #lumaHubScreen .analysisAnchorNote :is(p, span, strong),
html[data-design="refined"][data-theme="moonlit"] #lumaHubScreen .analysisAnchorNote :is(p, span, strong) {
  color: #fff1f8 !important;
  -webkit-text-fill-color: #fff1f8 !important;
}

html[data-design="refined"] #careScreen .careArticleCard {
  grid-template-rows: auto !important;
}

html[data-design="refined"] #careScreen .careArticleCard::before,
html[data-design="refined"] #careScreen .careArticleCard .careArticleImage,
html[data-design="refined"] #careScreen .careArticleCard .careArticleThumb,
html[data-design="refined"] #careScreen .careArticleCard .articleVisual {
  display: none !important;
}

html[data-design="refined"] #cycleScreen .yearGrid,
html[data-design="refined"] #cycleScreen .yearGridAll {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact {
  min-height: 0 !important;
  max-height: 190px !important;
  padding: 9px 8px !important;
  border-radius: 18px !important;
  display: grid !important;
  align-content: start !important;
  gap: 5px !important;
  overflow: hidden !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthTitle {
  min-height: 27px !important;
  gap: 4px !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthTitle strong {
  font-size: 12px !important;
  line-height: 1.02 !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthTitle span {
  font-size: 7.5px !important;
  line-height: 1.05 !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .weekdayRow,
html[data-design="refined"] #cycleScreen .monthCardCompact .monthDays {
  gap: 3px !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .weekdayRow {
  font-size: 7px !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay,
html[data-design="refined"] #cycleScreen .monthCardCompact .emptyDay {
  min-height: 20px !important;
  max-height: 24px !important;
  aspect-ratio: 0.68 / 1 !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay {
  font-size: 10px !important;
}

html[data-design="refined"] body.pregnancyFocusMode #cycleScreen .monthCardCompact .monthDay {
  font-size: 9px !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay .cycleLabel,
html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay .pregnancyWeekLabel {
  font-size: 5.8px !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen :is(.calendarViewToggle, .monthNavigator, .pregnancyCalendarActions, .calendarModeNotice, .calendarNoPeriodPanel, .ttcSignalPriority),
html[data-design="refined"][data-theme="moonlit"] #cycleScreen :is(.calendarViewToggle, .monthNavigator, .pregnancyCalendarActions, .calendarModeNotice, .calendarNoPeriodPanel, .ttcSignalPriority) {
  background:
    radial-gradient(circle at 8% 0%, rgba(196, 238, 228, 0.1), transparent 38%),
    linear-gradient(135deg, rgba(122, 113, 139, 0.76), rgba(88, 76, 104, 0.78)) !important;
  border-color: rgba(255, 232, 244, 0.2) !important;
  color: #fff1f8 !important;
  -webkit-text-fill-color: #fff1f8 !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen :is(.calendarViewToggle, .monthNavigator, .pregnancyCalendarActions, .calendarModeNotice, .calendarNoPeriodPanel, .ttcSignalPriority) :is(h2, h3, p, span, strong, button),
html[data-design="refined"][data-theme="moonlit"] #cycleScreen :is(.calendarViewToggle, .monthNavigator, .pregnancyCalendarActions, .calendarModeNotice, .calendarNoPeriodPanel, .ttcSignalPriority) :is(h2, h3, p, span, strong, button) {
  color: #fff1f8 !important;
  -webkit-text-fill-color: #fff1f8 !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen :is(.calendarViewToggle button.active, .calendarViewToggle button[aria-selected="true"]),
html[data-design="refined"][data-theme="moonlit"] #cycleScreen :is(.calendarViewToggle button.active, .calendarViewToggle button[aria-selected="true"]) {
  background: rgba(231, 219, 231, 0.28) !important;
}

@media (max-width: 430px) {
  html[data-design="refined"] .phoneShell .lumaSheet {
    width: calc(100% - 8px) !important;
    max-height: min(92dvh, 760px) !important;
  }

  html[data-design="refined"] .phoneShell .lumaSheetChat {
    padding: 12px 14px 16px !important;
  }

  html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode {
    min-height: 42px !important;
    min-width: 96px !important;
    padding: 7px 10px !important;
  }

  html[data-design="refined"] #cycleScreen .monthCardCompact {
    max-height: 176px !important;
  }
}

/* Pregnancy home: make care notes wider so long clinical copy does not stack into tall skinny columns. */
html[data-design="refined"] body.pregnancyFocusMode #todayScreen .previewPregnancyWeekBody .pregnancyWeekIntelligence,
html[data-design="refined"] body.pregnancyFocusMode #todayScreen .pregnancyWeekIntelligence {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
}

html[data-design="refined"] body.pregnancyFocusMode #todayScreen .pregnancyWeekCareNote,
html[data-design="refined"] body.pregnancyFocusMode #todayScreen .pregnancyWeekVisitNote {
  width: 100% !important;
  min-height: 0 !important;
  padding: 14px 16px !important;
  border-radius: 22px !important;
}

html[data-design="refined"] body.pregnancyFocusMode #todayScreen .pregnancyWeekIntelligence .label {
  margin: 0 0 7px !important;
  font-size: 0.72rem !important;
  line-height: 1.05 !important;
}

html[data-design="refined"] body.pregnancyFocusMode #todayScreen .pregnancyWeekIntelligence p:not(.label) {
  margin: 0 !important;
  max-width: 62ch !important;
  font-size: clamp(0.88rem, 3.15vw, 0.98rem) !important;
  line-height: 1.38 !important;
}

/* Welcome + account: keep first-run and login screens on the current Luma visual system. */
html[data-design="refined"] body:not([data-auth-style="ritual"]) .phoneShell:has(#onboardingScreen.active),
html[data-design="refined"] body:not([data-auth-style="ritual"]) .phoneShell:has(#welcomeScreen.active),
html[data-design="refined"] body:not([data-auth-style="ritual"]) .phoneShell:has(#authScreen.active) {
  background:
    radial-gradient(ellipse 82% 48% at 22% -6%, rgba(230, 160, 188, 0.34), transparent 62%),
    radial-gradient(ellipse 70% 42% at 105% 16%, rgba(204, 224, 218, 0.34), transparent 56%),
    linear-gradient(155deg, #fff8fb 0%, #f9edf5 48%, #fbfff9 100%) !important;
  color: #3b2633 !important;
}

html[data-design="refined"] body:not([data-auth-style="ritual"]) .phoneShell :is(#onboardingScreen, #welcomeScreen, #authScreen) {
  background:
    linear-gradient(90deg, rgba(133, 68, 119, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(133, 68, 119, 0.035) 1px, transparent 1px),
    transparent !important;
  background-size: 42px 42px !important;
  overflow-y: auto !important;
}

html[data-design="refined"] .phoneShell :is(.onboardingContent, .welcomeContent, .authExperience) {
  width: min(100%, 760px);
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 48px) clamp(20px, 5vw, 34px) 124px !important;
}

html[data-design="refined"] .phoneShell .authExperience {
  gap: 12px !important;
  padding-top: clamp(18px, 4vw, 28px) !important;
}

html[data-design="refined"] .phoneShell :is(.onboardingStep.active, .welcomeContent, .authHero) {
  position: relative;
}

html[data-design="refined"] .phoneShell .onboardingStep.active {
  width: 100%;
  min-height: 430px;
  display: grid !important;
  align-content: center;
  justify-items: center;
  padding: clamp(28px, 6vw, 44px);
  border: 1px solid rgba(194, 95, 143, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(ellipse 86% 72% at 78% 10%, rgba(232, 168, 188, 0.34), transparent 62%),
    radial-gradient(ellipse 70% 58% at 4% 100%, rgba(207, 234, 226, 0.46), transparent 60%),
    linear-gradient(145deg, rgba(255, 252, 250, 0.94), rgba(253, 238, 247, 0.78));
  box-shadow: 0 26px 72px rgba(128, 63, 115, 0.14);
}

html[data-design="refined"] .phoneShell .onboardingVisual,
html[data-design="refined"] .phoneShell .welcomeVisual {
  width: 66px !important;
  height: 66px !important;
  margin-bottom: 18px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(135deg, #b45a95, #df93b0 58%, #c9805c) !important;
  color: #fff !important;
  box-shadow: 0 18px 42px rgba(180, 90, 149, 0.22) !important;
}

html[data-design="refined"] .phoneShell :is(.onboardingVisual, .welcomeVisual) svg {
  width: 30px !important;
  height: 30px !important;
}

html[data-design="refined"] .phoneShell :is(.onboardingStep h1, .welcomeContent h1, .authHero h1) {
  margin: 0 !important;
  color: #382331 !important;
  font-family: var(--luma-font-display) !important;
  font-size: clamp(2.65rem, 10vw, 4.7rem) !important;
  font-weight: 650 !important;
  line-height: 0.9 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

html[data-design="refined"] .phoneShell .authHero h1 {
  max-width: 11ch !important;
  font-size: clamp(2.25rem, 8vw, 3.45rem) !important;
  line-height: 0.94 !important;
}

html[data-design="refined"] .phoneShell .authHero {
  width: 100% !important;
  padding: clamp(18px, 4.5vw, 26px) !important;
  border: 1px solid rgba(194, 95, 143, 0.16) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(ellipse 86% 60% at 92% 0%, rgba(226, 162, 188, 0.2), transparent 58%),
    linear-gradient(145deg, rgba(255, 252, 250, 0.86), rgba(255, 242, 249, 0.62)) !important;
  box-shadow: 0 18px 46px rgba(128, 63, 115, 0.1) !important;
}

html[data-design="refined"] .phoneShell :is(.onboardingStep p, .welcomeSubtitle, .authSubtitle) {
  max-width: 34rem !important;
  margin: 14px auto 0 !important;
  color: #6a5360 !important;
  font-size: clamp(0.96rem, 3.4vw, 1.08rem) !important;
  font-weight: 760 !important;
  line-height: 1.45 !important;
}

html[data-design="refined"] .phoneShell .authHero .label {
  width: max-content;
  margin: 0 0 8px !important;
  padding: 7px 13px;
  border: 1px solid rgba(194, 95, 143, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 252, 0.72) !important;
  color: #bd5f8d !important;
  font-size: 0.72rem !important;
  box-shadow: 0 12px 28px rgba(128, 63, 115, 0.08);
}

html[data-design="refined"] .phoneShell .authSubtitle {
  margin-top: 10px !important;
  max-width: 27rem !important;
  font-size: clamp(0.9rem, 3vw, 1rem) !important;
  line-height: 1.38 !important;
  font-weight: 720 !important;
}

html[data-design="refined"] .phoneShell :is(.authSignalPanel, .authCard, .authTermsCard, .welcomeGuide article, .welcomeSummary li) {
  border-color: rgba(194, 95, 143, 0.18) !important;
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(232, 168, 188, 0.16), transparent 58%),
    linear-gradient(145deg, rgba(255, 253, 250, 0.9), rgba(255, 244, 250, 0.72)) !important;
  color: #3b2633 !important;
  box-shadow:
    0 22px 56px rgba(128, 63, 115, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html[data-design="refined"] .phoneShell .authSignalPanel {
  width: 100% !important;
  margin-top: 14px;
  padding: 12px !important;
  border-radius: 22px !important;
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
}

/* Ritual first-run: no card around Private by design / welcome recap */
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell :is(#authScreen, #onboardingScreen, #welcomeScreen) .authSignalPanel,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .welcomeRecap {
  position: relative !important;
  width: 100% !important;
  min-height: 0 !important;
  margin-top: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  grid-template-columns: 10px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell :is(#authScreen, #onboardingScreen, #welcomeScreen) .authSignalPanel::before,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell :is(#authScreen, #onboardingScreen, #welcomeScreen) .authSignalPanel::after,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .welcomeRecap::before,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .welcomeRecap::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: none !important;
  box-shadow: none !important;
}


html[data-design="refined"] .phoneShell .authSignalPanel .signalIcon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 18px !important;
}

html[data-design="refined"] .phoneShell .authSignalPanel strong,
html[data-design="refined"] .phoneShell .welcomeGuide strong {
  color: #382331 !important;
}

html[data-design="refined"] .phoneShell .authSignalPanel small,
html[data-design="refined"] .phoneShell .welcomeGuide span {
  color: #76616d !important;
}

html[data-design="refined"] .phoneShell .authTrustStrip {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

html[data-design="refined"] .phoneShell .authTrustStrip span {
  min-height: 42px !important;
  padding: 8px 10px !important;
  border-radius: 16px !important;
  background: rgba(255, 250, 252, 0.72) !important;
  color: #884475 !important;
  font-size: 0.78rem !important;
  line-height: 1.1 !important;
}

html[data-design="refined"] .phoneShell :is(.authCard, .authTermsCard) {
  border-radius: 30px !important;
}

html[data-design="refined"] .phoneShell .authCard {
  padding: clamp(14px, 3.6vw, 20px) !important;
}

html[data-design="refined"] .phoneShell .authCard .authForm input,
html[data-design="refined"] .phoneShell .authCard .authForm textarea,
html[data-design="refined"] .phoneShell .authCard .googleButton {
  min-height: 56px !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(194, 95, 143, 0.16) !important;
  color: #32252d !important;
}

html[data-design="refined"] .phoneShell .authCard .wideButton,
html[data-design="refined"] .phoneShell .welcomeContent .wideButton,
html[data-design="refined"] .phoneShell .onboardingActions .wideButton {
  border-radius: 999px !important;
  background: linear-gradient(135deg, #f0b8cc 0%, #e8a8bc 48%, #e098b0 100%) !important;
  color: var(--auth-btn-text, #4a3040) !important;
  box-shadow: 0 12px 28px rgba(220, 140, 170, 0.28) !important;
}

html[data-design="refined"] .phoneShell .welcomeGuide {
  max-width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
}

html[data-design="refined"] .phoneShell .welcomeSummary {
  max-width: 100% !important;
}

@media (max-width: 560px) {
  html[data-design="refined"] .phoneShell .authTrustStrip,
  html[data-design="refined"] .phoneShell .welcomeGuide {
    grid-template-columns: 1fr !important;
  }

  html[data-design="refined"] .phoneShell .onboardingStep.active {
    min-height: 390px;
  }
}


/* Auth: match refined app interior (Home / Luma hub light theme). */
html[data-design="refined"] body:not([data-auth-style="ritual"]) .phoneShell:has(#authScreen.active) {
  background:
    radial-gradient(ellipse 90% 55% at 18% -6%, color-mix(in srgb, var(--luma-accent) 48%, transparent), transparent 52%),
    radial-gradient(ellipse 70% 45% at 95% 22%, color-mix(in srgb, var(--luma-accent) 28%, transparent), transparent 48%),
    radial-gradient(ellipse 55% 40% at 8% 92%, color-mix(in srgb, var(--luma-accent-teal) 18%, transparent), transparent 45%),
    var(--luma-shell) !important;
  color: var(--luma-text) !important;
}

html[data-design="refined"][data-theme="hearth"] .phoneShell:has(#authScreen.active) {
  background:
    radial-gradient(ellipse 85% 50% at 20% -8%, color-mix(in srgb, var(--luma-accent) 32%, transparent), transparent 52%),
    radial-gradient(ellipse 60% 40% at 95% 80%, color-mix(in srgb, var(--luma-accent-teal) 20%, transparent), transparent 48%),
    linear-gradient(165deg, var(--luma-shell) 0%, color-mix(in srgb, var(--luma-shell) 92%, var(--luma-accent) 8%) 50%, var(--luma-shell) 100%) !important;
}

html[data-design="refined"] .phoneShell #authScreen {
  background: transparent !important;
  background-size: auto !important;
  overflow-y: auto !important;
}

html[data-design="refined"] .phoneShell #authScreen .authExperience {
  position: relative !important;
  width: min(100%, 520px) !important;
  min-height: 100% !important;
  margin: 0 auto !important;
  padding: 28px 20px 112px !important;
  gap: 0 !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent) !important;
  border-radius: var(--r-radius-lg) !important;
  background: var(--luma-glass-surface) !important;
  box-shadow: var(--luma-glass-surface-shadow) !important;
  overflow: hidden !important;
}

html[data-design="refined"] .phoneShell #authScreen .authExperience::before,
html[data-design="refined"] .phoneShell #authScreen .authHero::before,
html[data-design="refined"] .phoneShell #authScreen .authHero::after {
  display: none !important;
  content: none !important;
}

html[data-design="refined"] .phoneShell #authScreen .authHero {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 8px 8px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--luma-text) !important;
}

html[data-design="refined"] .phoneShell #authScreen .authHero .label,
html[data-design="refined"] .phoneShell #authScreen .authHero h1,
html[data-design="refined"] .phoneShell #authScreen .authSubtitle {
  text-align: center !important;
  margin-inline: auto !important;
}

html[data-design="refined"] .phoneShell #authScreen .authHero .label {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--r-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: 0.14em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  color: var(--luma-accent-text, var(--luma-link)) !important;
}

html[data-design="refined"] .phoneShell #authScreen .authHero h1 {
  max-width: 14ch !important;
  margin: 0 !important;
  font-family: var(--r-display) !important;
  font-size: clamp(2rem, 8vw, 2.85rem) !important;
  font-weight: 600 !important;
  font-style: italic !important;
  line-height: 1.06 !important;
  letter-spacing: -0.01em !important;
  color: var(--luma-text-heading) !important;
  text-wrap: balance !important;
}

html[data-design="refined"] .phoneShell #authScreen .authSubtitle {
  max-width: 28ch !important;
  margin: 0 !important;
  font-family: var(--r-sans) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 1.45 !important;
  color: var(--luma-text-muted) !important;
}

html[data-design="refined"] .phoneShell #authScreen .authSignalPanel {
  display: none !important;
}

html[data-design="refined"] .phoneShell #authScreen .authSignalDot {
  width: 10px !important;
  height: 10px !important;
  margin-top: 5px !important;
  border-radius: 999px !important;
  background: var(--luma-accent) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--luma-accent) 22%, transparent) !important;
}

html[data-design="refined"] .phoneShell #authScreen .authSignalPanel strong {
  display: block !important;
  font-family: var(--r-display) !important;
  font-size: clamp(1rem, 3.6vw, 1.12rem) !important;
  font-weight: 600 !important;
  font-style: italic !important;
  line-height: 1.2 !important;
  color: var(--luma-text-heading) !important;
}

html[data-design="refined"] .phoneShell #authScreen .authSignalPanel small {
  display: block !important;
  margin-top: 4px !important;
  font-family: var(--r-sans) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: var(--luma-text-muted) !important;
}

html[data-design="refined"] .phoneShell #authScreen .authTrustStrip {
  display: none !important;
}

html[data-design="refined"] .phoneShell #authScreen .authCard {
  position: relative !important;
  margin: 0 !important;
  padding: 18px 6px 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--luma-on-light-surface) !important;
}

html[data-design="refined"] .phoneShell #authScreen .authCard::before {
  content: "" !important;
  display: block !important;
  height: 1px !important;
  margin: 0 8px 18px !important;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--luma-accent) 28%, transparent) 18%,
    color-mix(in srgb, var(--luma-accent) 28%, transparent) 82%,
    transparent
  ) !important;
}

html[data-design="refined"] .phoneShell #authScreen .authModeSwitch {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4px !important;
  min-height: 0 !important;
  margin: 0 0 16px !important;
  padding: 4px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--luma-accent) 10%, var(--luma-surface-inset)) !important;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--luma-accent) 8%, transparent) !important;
}

html[data-design="refined"] .phoneShell #authScreen .authModeSwitch button {
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--luma-text-muted) !important;
  font-family: var(--r-sans) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  box-shadow: none !important;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease !important;
}

html[data-design="refined"] .phoneShell #authScreen .authModeSwitch button.active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 78%, white), var(--luma-accent)) !important;
  color: var(--luma-text-heading) !important;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--luma-accent) 24%, transparent) !important;
}

html[data-design="refined"] .phoneShell #authScreen .authForm {
  gap: 14px !important;
}

html[data-design="refined"] .phoneShell #authScreen .authHelpText {
  margin: 0 !important;
  font-family: var(--r-sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  color: var(--luma-text-muted) !important;
}

html[data-design="refined"] .phoneShell #authScreen .authCard .authForm .field {
  gap: 6px !important;
}

html[data-design="refined"] .phoneShell #authScreen .authCard .authForm .field span,
html[data-design="refined"] .phoneShell #authScreen .authProfileDivider span {
  font-family: var(--r-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--luma-accent-text, var(--luma-link)) !important;
}

html[data-design="refined"] .phoneShell #authScreen .authCard .authForm .field span.fieldHint {
  font-family: var(--r-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #6e5460 !important;
}

html[data-design="refined"] .phoneShell #authScreen .authFormError {
  background: #fff !important;
  border: 1px solid rgba(176, 72, 104, 0.5) !important;
  color: #4a3040 !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.4 !important;
}

html[data-design="refined"] .phoneShell #authScreen .authBackendStatus:not([hidden]) {
  position: sticky;
  top: 0;
  z-index: 4;
}

html[data-design="refined"] .phoneShell #authScreen .authCard .authForm input,
html[data-design="refined"] .phoneShell #authScreen .authCard .authForm textarea,
html[data-design="refined"] .phoneShell #authScreen .authCard .authForm select,
html[data-design="refined"] .phoneShell #authScreen .authCard .googleButton {
  min-height: 48px !important;
  border-radius: var(--r-radius-sm) !important;
  border: 1px solid var(--luma-input-border) !important;
  background-color: var(--luma-input-surface) !important;
  color: var(--luma-on-light-surface-heading) !important;
  font-family: var(--r-sans) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell #authScreen .authCard .authForm select {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding: 0 34px 0 14px !important;
  background-image:
    linear-gradient(45deg, transparent 50%, color-mix(in srgb, var(--luma-accent) 62%, var(--luma-text-muted)) 50%),
    linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 62%, var(--luma-text-muted)) 50%, transparent 50%) !important;
  background-position:
    calc(100% - 16px) calc(50% + 1px),
    calc(100% - 10px) calc(50% + 1px) !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  cursor: pointer !important;
}

html[data-design="refined"] .phoneShell #authScreen .authCard .authForm select:has(option[value=""]:checked) {
  color: var(--luma-text-muted) !important;
  font-weight: 500 !important;
}

html[data-design="refined"] .phoneShell #authScreen .authCard .authForm select:focus {
  outline: none !important;
  border-color: color-mix(in srgb, var(--luma-accent) 38%, transparent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--luma-accent) 12%, transparent) !important;
}

html[data-design="refined"] .phoneShell #authScreen .authCard .authForm .field:has(.birthdayPicker) {
  overflow: visible !important;
}

html[data-design="refined"] .phoneShell #authScreen .authExperience:has(.birthdaySegmentMenu:not([hidden])) {
  overflow: visible !important;
}

html[data-design="refined"] .phoneShell #authScreen .authCard .authForm .birthdayPicker {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
}

html[data-design="refined"] .phoneShell #authScreen .authCard .authForm input::placeholder,
html[data-design="refined"] .phoneShell #authScreen .authCard .authForm textarea::placeholder {
  color: var(--luma-text-muted) !important;
  font-weight: 500 !important;
}

html[data-design="refined"] .phoneShell #authScreen .authCard .wideButton {
  min-height: 48px !important;
  margin-top: 4px !important;
  border: 0 !important;
  border-radius: var(--r-radius-md) !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 78%, white), var(--luma-accent)) !important;
  color: var(--luma-text-heading) !important;
  font-family: var(--r-sans) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--luma-accent) 28%, transparent) !important;
}

html[data-design="refined"] .phoneShell #authScreen .authCard .googleButton {
  font-weight: 700 !important;
}

html[data-design="refined"] .phoneShell #authScreen .authDivider {
  margin: 4px 0 !important;
  color: var(--luma-text-muted) !important;
  font-family: var(--r-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

html[data-design="refined"] .phoneShell #authScreen .authDivider::before,
html[data-design="refined"] .phoneShell #authScreen .authDivider::after {
  background: color-mix(in srgb, var(--luma-accent) 16%, transparent) !important;
}

html[data-design="refined"] .phoneShell #authScreen .authLinkRow {
  margin: 0 !important;
}

html[data-design="refined"] .phoneShell #authScreen .authLink,
html[data-design="refined"] .phoneShell #authScreen .authLocalOnlyBtn {
  font-family: var(--r-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--luma-link) !important;
}

html[data-design="refined"] .phoneShell #authScreen .authTermsCard {
  border-radius: var(--r-radius-md) !important;
  border-color: color-mix(in srgb, var(--luma-accent) 16%, transparent) !important;
  background: color-mix(in srgb, var(--luma-surface-card) 92%, transparent) !important;
  color: var(--luma-text-muted) !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell #authScreen .authHero,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #authScreen .authHero,
html[data-design="refined"][data-theme="dark"] .phoneShell #authScreen .authCard,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #authScreen .authCard {
  color: var(--luma-on-glass) !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell #authScreen .authHero h1,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #authScreen .authHero h1,
html[data-design="refined"][data-theme="dark"] .phoneShell #authScreen .authSignalPanel strong,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #authScreen .authSignalPanel strong {
  color: var(--luma-on-glass-heading) !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell #authScreen .authSubtitle,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #authScreen .authSubtitle,
html[data-design="refined"][data-theme="dark"] .phoneShell #authScreen .authSignalPanel small,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #authScreen .authSignalPanel small {
  color: var(--luma-on-glass-muted) !important;
}

@media (max-width: 430px) {
  html[data-design="refined"] .phoneShell #authScreen .authExperience {
    padding-inline: 14px !important;
  }

  html[data-design="refined"] .phoneShell #authScreen .authHero h1 {
    font-size: clamp(1.55rem, 6.8vw, 2rem) !important;
  }
}

/* Auth layout previews — same interior tokens, different composition. ?authLayout=stack|editorial|invite|sheet */
html[data-design="refined"] body[data-auth-layout="editorial"] .phoneShell #authScreen .authExperience {
  gap: 0 !important;
  padding-top: 18px !important;
}

html[data-design="refined"] body[data-auth-layout="editorial"] .phoneShell #authScreen .authHero {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom: 0 !important;
  padding-bottom: 12px !important;
}

html[data-design="refined"] body[data-auth-layout="editorial"] .phoneShell #authScreen .authHero h1 {
  font-size: clamp(2rem, 7.4vw, 2.75rem) !important;
  max-width: 11ch !important;
}

html[data-design="refined"] body[data-auth-layout="editorial"] .phoneShell #authScreen .authSignalPanel {
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  background: color-mix(in srgb, var(--luma-accent-teal) 8%, var(--luma-surface-card)) !important;
}

html[data-design="refined"] body[data-auth-layout="editorial"] .phoneShell #authScreen .authCard {
  margin-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-top: 0 !important;
  padding-top: 16px !important;
}

html[data-design="refined"] body[data-auth-layout="invite"] .phoneShell #authScreen .authExperience {
  padding-top: 28px !important;
  gap: 14px !important;
}

html[data-design="refined"] body[data-auth-layout="invite"] .phoneShell #authScreen .authHero {
  text-align: center !important;
  align-items: center !important;
  padding: 28px 22px 20px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] body[data-auth-layout="invite"] .phoneShell #authScreen .authHero .label,
html[data-design="refined"] body[data-auth-layout="invite"] .phoneShell #authScreen .authHero h1,
html[data-design="refined"] body[data-auth-layout="invite"] .phoneShell #authScreen .authSubtitle {
  text-align: center !important;
  margin-inline: auto !important;
}

html[data-design="refined"] body[data-auth-layout="invite"] .phoneShell #authScreen .authHero h1 {
  max-width: 14ch !important;
  font-size: clamp(2rem, 8vw, 2.85rem) !important;
}

html[data-design="refined"] body[data-auth-layout="invite"] .phoneShell #authScreen .authSignalPanel {
  display: none !important;
}

html[data-design="refined"] body[data-auth-layout="invite"] .phoneShell #authScreen .authCard {
  padding: 18px !important;
}

html[data-design="refined"] body[data-auth-layout="invite"] .phoneShell #authScreen .authModeSwitch {
  grid-template-columns: 1fr 1fr !important;
  gap: 4px !important;
  padding: 4px !important;
  background: color-mix(in srgb, var(--luma-accent) 10%, var(--luma-surface-inset)) !important;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--luma-accent) 8%, transparent) !important;
}

html[data-design="refined"] body[data-auth-layout="invite"] .phoneShell #authScreen .authModeSwitch button {
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
}

html[data-design="refined"] body[data-auth-layout="invite"] .phoneShell #authScreen .authModeSwitch button.active {
  border-color: transparent !important;
}

html[data-design="refined"] body[data-auth-layout="sheet"] .phoneShell #authScreen .authExperience {
  padding: 0 0 112px !important;
  gap: 0 !important;
}

html[data-design="refined"] body[data-auth-layout="sheet"] .phoneShell #authScreen .authHero {
  min-height: 34vh !important;
  justify-content: flex-end !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(ellipse 85% 55% at 12% 0%, color-mix(in srgb, var(--luma-accent) 32%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 90%, color-mix(in srgb, var(--luma-accent-teal) 20%, transparent), transparent 50%),
    linear-gradient(155deg, var(--luma-surface-card) 0%, var(--luma-shell) 100%) !important;
  box-shadow: none !important;
  padding: 32px 22px 42px !important;
}

html[data-design="refined"] body[data-auth-layout="sheet"] .phoneShell #authScreen .authSignalPanel {
  display: none !important;
}

html[data-design="refined"] body[data-auth-layout="sheet"] .phoneShell #authScreen .authCard {
  position: relative !important;
  z-index: 2 !important;
  margin-top: -28px !important;
  padding: 22px 18px 18px !important;
  border-top-left-radius: 34px !important;
  border-top-right-radius: 34px !important;
  border-bottom-left-radius: var(--r-radius-lg) !important;
  border-bottom-right-radius: var(--r-radius-lg) !important;
  box-shadow:
    0 -8px 32px color-mix(in srgb, var(--luma-accent) 10%, transparent),
    var(--luma-glass-surface-shadow) !important;
}

html[data-design="refined"] body[data-auth-layout="stack"] .phoneShell #authScreen .authExperience {
  gap: var(--r-space-2) !important;
}

/* Pregnancy home — kill legacy glass/outline layers from mobile.css base theme. */
[data-design="refined"] body.pregnancyFocusMode .pregnancyDueDateChip,
[data-design="refined"] body.pregnancyFocusMode .pregnancyTrimesterProgress,
[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekCareNote,
[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekVisitNote {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekCareNote::after,
[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekVisitNote::after {
  display: none !important;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyWeekNavBtn {
  background: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 38%, transparent);
  border: 0;
  border-radius: 999px;
  color: var(--luma-text-heading);
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyApptCard {
  border: 0;
  border-radius: var(--r-radius-lg);
  background: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 18%, transparent);
  box-shadow: none;
}

[data-design="refined"] body.pregnancyFocusMode .pregnancyStoryExtras {
  gap: 10px;
}

/* Slimmer shell + unified content rails (You tab legacy calc overrides). */
html[data-design="refined"] #profileScreen .settingsListDetails,
html[data-design="refined"] #profileScreen .themePickerSection.settingsListDetails,
html[data-design="refined"] #profileScreen .youCommandStrip,
html[data-design="refined"] #profileScreen .powerToolsStrip {
  width: var(--luma-content-rail) !important;
  max-width: var(--luma-content-rail) !important;
  margin-inline: auto !important;
}

html[data-design="refined"] .phoneShell .lumaSheet {
  width: min(calc(100% - 10px), var(--luma-shell-max)) !important;
  max-width: var(--luma-shell-max) !important;
}


/* ===== 20260830-logfix1: Track Log IA cleanup ===== */
[data-design="refined"] #cycleScreen .trackLogPanelHeader {
  margin-bottom: 10px;
}

[data-design="refined"] #cycleScreen .trackLogPanelHeader .cycleSubtitle {
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-family: var(--r-sans) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  color: var(--luma-accent-text, var(--luma-link)) !important;
}

[data-design="refined"] #cycleScreen .trackLogPanelHeader p.trackLogLead {
  margin: 8px 0 0;
  max-width: 36ch;
  font-family: var(--r-sans);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--luma-text-muted);
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount {
  display: grid;
  gap: 18px;
}

[data-design="refined"] #cycleScreen .logDatePickerCalendarHost {
  width: 100%;
  overflow: hidden;
}

[data-design="refined"] #cycleScreen .logDatePickerCalendarHost .monthCalendarLayout,
[data-design="refined"] #cycleScreen .logDatePickerCalendarHost .monthCalendarGrid {
  width: 100%;
  max-width: 100%;
}

[data-design="refined"] #cycleScreen .logDatePickerCalendarHost .monthCalendarDay {
  min-height: 42px;
  border-radius: 12px;
}

[data-design="refined"] #cycleScreen #bodyLogCheckInDetails[open] > .logComposer {
  padding-top: 8px;
}

[data-design="refined"] #cycleScreen .logSupportDetails > summary,
[data-design="refined"] #cycleScreen .bodyLogInsightsCard .lumaLearningWhere > summary {
  min-height: 44px;
}

[data-design="refined"] #cycleScreen .unifiedTrackLogHeader {
  display: none !important;
}

[data-design="refined"] #cycleScreen .bodyLogPurpose,
[data-design="refined"] #cycleScreen .bodyLogContext {
  display: none !important;
}

[data-design="refined"] #cycleScreen .trackPanel--log {
  padding-bottom: calc(var(--luma-fab-clearance, 88px) + env(safe-area-inset-bottom, 0px));
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen .pregnancyLogBanner:not([hidden]),
[data-design="refined"] body.focus-pregnant #cycleScreen .pregnancyLogBanner:not([hidden]) {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid color-mix(in srgb, var(--luma-accent) 14%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent) 10%, transparent);
}

[data-design="refined"] #cycleScreen .pregnancyRedFlagLabel {
  margin: 4px 0 0;
  font-family: var(--r-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--luma-danger, #c44) 78%, var(--luma-text-muted));
}

[data-design="refined"] #cycleScreen .logDatePickerHead {
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
}

[data-design="refined"] #cycleScreen .logDatePickerHint {
  margin: 4px 0 0;
  font-family: var(--r-sans);
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--luma-text-muted);
}

/* ===== 20260830-lumacta1: AI analysis CTA contrast lock ===== */
html:not([data-theme="dark"]):not([data-theme="moonlit"]) [data-design="refined"] #lumaHubScreen .aiToolCard button,
html:not([data-theme="dark"]):not([data-theme="moonlit"]) [data-design="refined"] .phoneShell .lumaSheet .aiToolCard button {
  background: linear-gradient(135deg, #c07090 0%, #e8a8bc 100%) !important;
  border-color: color-mix(in srgb, #c07090 42%, transparent) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ===== 20260830-logpanel1: Track → Log matches app design system ===== */
body.track-segment-log #cycleScreen.appScreen {
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
}

body.track-segment-log #lumaFab {
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount {
  display: grid;
  gap: 20px;
}

[data-design="refined"] #cycleScreen .logDatePicker {
  display: grid !important;
  gap: 10px;
  margin: 0 !important;
  padding: 0 0 16px !important;
  border: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent) 12%, transparent) !important;
  background: transparent !important;
}

[data-design="refined"] #cycleScreen .logDatePickerNav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  width: 100%;
}

[data-design="refined"] #cycleScreen .logDatePickerMonth {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

[data-design="refined"] #cycleScreen .logDatePickerMonth .label,
[data-design="refined"] #cycleScreen .logDatePickerMonth strong,
[data-design="refined"] #cycleScreen #logDateMonthLabel {
  margin: 0;
  font-family: var(--r-sans) !important;
  font-style: normal !important;
  letter-spacing: 0.02em;
}

[data-design="refined"] #cycleScreen #logDateMonthLabel {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--luma-text-heading);
}

[data-design="refined"] #cycleScreen .logDatePickerHint {
  margin: 0;
  max-width: none;
  font-family: var(--r-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--luma-text-muted);
}

[data-design="refined"] #cycleScreen .logDatePickerNavBtn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent);
  background: color-mix(in srgb, var(--luma-surface-card) 82%, transparent);
  color: var(--luma-text-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

[data-design="refined"] #cycleScreen .logDatePickerCalendarHost {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

[data-design="refined"] #cycleScreen .logDatePickerCalendarHost .monthCalendarLayout--logPicker,
[data-design="refined"] #cycleScreen .logDatePickerCalendarHost .monthCalendarLayout {
  gap: 8px;
}

[data-design="refined"] #cycleScreen .logDatePickerCalendarHost .monthCalendarHeader {
  gap: 4px;
  margin-bottom: 2px;
}

[data-design="refined"] #cycleScreen .logDatePickerCalendarHost .monthCalendarHeader span {
  font-family: var(--r-sans);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--luma-text-muted);
}

[data-design="refined"] #cycleScreen .logDatePickerCalendarHost .monthCalendarGrid {
  gap: 5px;
}

[data-design="refined"] #cycleScreen .logDatePickerCalendarHost .monthCalendarDay {
  aspect-ratio: 1;
  min-height: 0;
  width: 100%;
  padding: 0;
  display: grid;
  place-items: center;
  align-content: center;
  justify-content: center;
  border-radius: 12px;
}

[data-design="refined"] #cycleScreen .logDatePickerCalendarHost .monthCalendarDay .dayNumber {
  margin: 0;
  font-family: var(--r-sans);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1;
}

[data-design="refined"] #cycleScreen .logDatePickerCalendarHost .monthCalendarDay .cycleLabel,
[data-design="refined"] #cycleScreen .logDatePickerCalendarHost .monthCalendarDay .pregnancyWeekLabel {
  display: none;
}

[data-design="refined"] #cycleScreen .pregnancyLogBanner {
  gap: 10px;
  margin: 0 !important;
  padding: 0 0 16px !important;
  border: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent-teal) 16%, transparent) !important;
  background: transparent !important;
}

[data-design="refined"] #cycleScreen .pregnancyLogBannerHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

[data-design="refined"] #cycleScreen .pregnancyLogBannerHead strong {
  font-family: var(--r-sans);
  font-size: 0.98rem;
  font-weight: 800;
  font-style: normal;
  color: var(--luma-text-heading);
  white-space: nowrap;
}

[data-design="refined"] #cycleScreen .pregnancyRedFlagLabel {
  margin: 2px 0 0;
  font-family: var(--r-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, #b04058 82%, var(--luma-text-heading));
}

[data-design="refined"] #cycleScreen .pregnancyRedFlagRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

[data-design="refined"] #cycleScreen .pregnancyRedFlagBtn {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #b04058 24%, transparent);
  background: color-mix(in srgb, var(--luma-surface-card) 88%, transparent);
  color: #8a3048;
  font-family: var(--r-sans);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen #opkScannerSection,
[data-design="refined"] body.focus-pregnant #cycleScreen #opkScannerSection {
  display: none !important;
}

[data-design="refined"] #cycleScreen #bodyLogCheckInDetails {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

[data-design="refined"] #cycleScreen #bodyLogCheckInDetails > summary,
[data-design="refined"] #cycleScreen .logCheckInSummary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0 0 12px !important;
  border: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent) 12%, transparent) !important;
  background: transparent !important;
  cursor: pointer;
}

[data-design="refined"] #cycleScreen #bodyLogCheckInDetails > summary::-webkit-details-marker {
  display: none;
}

[data-design="refined"] #cycleScreen #bodyLogCheckInDetails > summary::after,
[data-design="refined"] #cycleScreen .logCheckInSummary::after {
  display: none !important;
  content: none !important;
}

[data-design="refined"] #cycleScreen .logCheckInSummary h2,
[data-design="refined"] #cycleScreen #logCheckInSummaryLabel {
  margin: 0;
  font-family: var(--r-sans) !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  font-style: normal !important;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--luma-text-heading);
}

[data-design="refined"] #cycleScreen .logCheckInSummary .label,
[data-design="refined"] #cycleScreen #logCheckInSummaryEyebrow {
  margin: 0 0 2px;
  font-family: var(--r-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--luma-accent) 55%, var(--luma-text-muted));
}

[data-design="refined"] #cycleScreen .logCheckInSummaryMeta {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 8px;
}

[data-design="refined"] #cycleScreen .logCheckInCount {
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--luma-accent) 14%, var(--luma-surface-card));
  color: var(--luma-text-heading);
  font-family: var(--r-sans);
  font-size: 0.78rem;
  font-weight: 800;
}

[data-design="refined"] #cycleScreen .logCheckInCount:empty {
  display: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
}

[data-design="refined"] #cycleScreen .logCheckInChevron {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 16%, transparent);
  background: color-mix(in srgb, var(--luma-surface-card) 80%, transparent);
  color: var(--luma-text-muted);
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

/* Track log selects: one custom chevron, vertically centered on the right */
[data-design="refined"] #cycleScreen .logDetailFields select,
[data-design="refined"] #cycleScreen #logDetailFields select,
[data-design="refined"] #cycleScreen #flowLevelSelect,
[data-design="refined"] #cycleScreen #cervicalFluidSelect,
[data-design="refined"] #cycleScreen #sexActivitySelect {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  min-height: 48px !important;
  padding: 12px 40px 12px 14px !important;
  border-radius: 14px !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 16%, transparent) !important;
  background-color: var(--luma-surface-card) !important;
  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") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 14px !important;
  color: var(--luma-text-heading) !important;
  font-family: var(--r-sans) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  cursor: pointer !important;
}

[data-design="refined"] #cycleScreen .logDetailFields select::-ms-expand,
[data-design="refined"] #cycleScreen #logDetailFields select::-ms-expand {
  display: none !important;
}

[data-design="refined"] #cycleScreen #bodyLogCheckInDetails[open] .logCheckInChevron {
  transform: rotate(180deg);
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount .hubSectionHeader h2,
[data-design="refined"] #cycleScreen #opkScannerSection h2 {
  font-family: var(--r-sans) !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  font-style: normal !important;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--luma-text-heading);
}

[data-design="refined"] #cycleScreen #opkScannerSection {
  margin: 0 !important;
  padding: 0 0 16px !important;
  border: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent) 12%, transparent) !important;
  background: transparent !important;
}

[data-design="refined"] #cycleScreen #opkScannerSection .hubSectionHeader {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

[data-design="refined"] #cycleScreen .bodyLogInsightsHead h2 {
  font-family: var(--r-display) !important;
  font-style: italic;
  font-weight: 600;
}

/* ===== 20260830-onboard1: onboarding matches ritual login ===== */
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell:has(#onboardingScreen.active) {
  --auth-peach: #f3d6e2;
  --auth-peach-deep: #e8a8bc;
  --auth-rose: #f0b8cc;
  --auth-ink: #4a3040;
  --auth-muted: #6e5460;
  --auth-shell: #fbf7f9;
  --auth-btn-text: #4a3040;
  background: linear-gradient(180deg, #fdf8fa 0%, #fbf7f9 48%, #f8f0f4 100%) !important;
  color: var(--auth-ink) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55) inset,
    0 28px 70px rgba(120, 90, 108, 0.12) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell:has(#onboardingScreen.active)::before,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell:has(#onboardingScreen.active)::after {
  display: none !important;
  content: none !important;
  background: none !important;
  opacity: 0 !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen {
  background: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .onboardingExperience {
  width: min(100%, var(--luma-shell-max, 392px)) !important;
  min-height: 100%;
  margin: 0 auto;
  padding: 96px 28px calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  text-align: center !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .onboardingStep.active {
  display: grid !important;
  justify-items: center;
  align-content: center;
  gap: 10px;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  aspect-ratio: auto;
  min-height: 0;
  margin: 0;
  padding: 8px 4px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
  overflow: visible;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .onboardingStep.active.authHero {
  width: 100% !important;
  aspect-ratio: auto;
  padding: 8px 4px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .onboardingStep.active::before,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .onboardingStep.active::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .authSignalPanel {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 6px !important;
  width: auto !important;
  max-width: 28ch !important;
  margin: 8px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  text-align: center !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .authSignalDot {
  display: none !important;
  width: 8px !important;
  height: 8px !important;
  min-width: 8px !important;
  min-height: 8px !important;
  margin-top: 6px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #f0b8cc 0%, #e8a8bc 48%, #e098b0 100%) !important;
  color: var(--auth-btn-text, #4a3040) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-peach) 45%, transparent) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .authSignalDot::before,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .authSignalDot::after {
  display: none !important;
  content: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .onboardingStep:not(.active) {
  display: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .onboardingVisual {
  display: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .authBrandMark {
  margin: 0 auto 4px !important;
  text-align: center !important;
  font-family: var(--r-display) !important;
  font-size: clamp(2.6rem, 11vw, 3.35rem) !important;
  font-weight: 600 !important;
  font-style: italic !important;
  letter-spacing: -0.03em !important;
  line-height: 0.92 !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .authHero .label {
  margin: 0 auto !important;
  text-align: center !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: color-mix(in srgb, var(--auth-peach-deep) 55%, var(--auth-muted)) !important;
  font-family: var(--r-sans) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .authHero h1 {
  max-width: 16ch !important;
  margin: 0 auto !important;
  font-size: clamp(1.35rem, 5.4vw, 1.7rem) !important;
  text-align: center !important;
  font-family: var(--r-display) !important;
  font-size: clamp(1.55rem, 6.2vw, 1.95rem) !important;
  font-weight: 600 !important;
  font-style: italic !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen :is(.authSubtitle, .onboardingTagline) {
  max-width: 30ch !important;
  margin: 0 auto !important;
  font-size: 0.84rem !important;
  text-align: center !important;
  font-family: var(--r-sans) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  color: var(--auth-muted) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .authSignalPanel strong {
  text-align: center !important;
  font-family: var(--r-sans) !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .authSignalPanel small {
  text-align: center !important;
  display: block !important;
  margin-top: 2px !important;
  font-family: var(--r-sans) !important;
  font-size: 0.8rem !important;
  line-height: 1.35 !important;
  color: var(--auth-muted) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .onboardingFooter {
  display: grid;
  gap: 18px;
  width: 100%;
  margin-top: auto;
  padding-top: 32px;
  flex: 0 0 auto;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .onboardingDots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .onboardingDots button {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--auth-peach-deep) 28%, transparent);
  cursor: pointer;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .onboardingDots button::after {
  display: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .onboardingDots button.active {
  width: 24px;
  background: linear-gradient(135deg, #f0b8cc 0%, #e8a8bc 48%, #e098b0 100%);
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .onboardingActions {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .onboardingPrimaryBtn {
  width: 100%;
  min-height: 52px;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #f0b8cc 0%, #e8a8bc 48%, #e098b0 100%) !important;
  color: var(--auth-btn-text, #4a3040) !important;
  font-family: var(--r-sans) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 28px rgba(220, 140, 170, 0.28) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .skipButton {
  justify-self: center;
  border: 0 !important;
  background: transparent !important;
  color: var(--auth-muted) !important;
  font-family: var(--r-sans) !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  text-decoration: none;
}

/* ===== 20260830-logcards1: restore boxed cards on Track → Log ===== */
[data-design="refined"] #cycleScreen #unifiedTrackLogMount {
  gap: 14px !important;
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard {
  margin: 0 !important;
  padding: 18px 20px !important;
  border-radius: var(--r-radius-lg) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 16%, transparent) !important;
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, color-mix(in srgb, var(--luma-accent) 12%, transparent), transparent 55%),
    linear-gradient(160deg, var(--luma-surface-card) 0%, var(--luma-surface-card-alt) 100%) !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--luma-accent) 8%, transparent) !important;
  overflow: hidden;
}

[data-design="refined"] body.pregnancyFocusMode #cycleScreen #unifiedTrackLogMount .trackLogCard {
  border-color: color-mix(in srgb, var(--luma-accent-teal) 18%, transparent) !important;
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, color-mix(in srgb, var(--luma-accent-teal) 14%, transparent), transparent 55%),
    linear-gradient(160deg, var(--luma-surface-card) 0%, color-mix(in srgb, var(--luma-accent-teal) 6%, var(--luma-surface-card-alt)) 100%) !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--luma-accent-teal) 8%, transparent) !important;
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard.logDatePicker,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard.pregnancyLogBanner,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard.bodyLogInsightsCard,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard.opkScannerSection,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard#bodyLogCheckInDetails,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard.logHistoryDropdown,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard#bbtChartSection {
  padding-bottom: 18px !important;
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard.opkScannerSection {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard#bodyLogCheckInDetails,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard.logHistoryDropdown,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard#bbtChartSection {
  padding: 0 !important;
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard#bodyLogCheckInDetails > summary,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard.logHistoryDropdown > summary,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard#bbtChartSection > summary {
  margin: 0 !important;
  padding: 18px 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard#bodyLogCheckInDetails[open] > summary,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard.logHistoryDropdown[open] > summary,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard#bbtChartSection[open] > summary {
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent) 12%, transparent) !important;
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard#bodyLogCheckInDetails[open] > .logComposer,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard.logHistoryDropdown .logHistoryDropdownBody,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard#bbtChartSection[open] > :not(summary) {
  padding: 0 20px 18px !important;
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard .logCheckInSummary h2,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard .logHistorySummary h2,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard .bodyLogInsightsHead h2 {
  font-family: var(--r-display) !important;
  font-size: clamp(1.35rem, 5vw, 1.55rem) !important;
  font-weight: 600 !important;
  font-style: italic !important;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--luma-text-heading);
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard .bodyLogInsightsHead {
  margin: 0 0 14px;
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard .lumaLearningCore {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard .logHistorySummary {
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard .logHistoryChevron,
[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard .logCheckInChevron {
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent) !important;
  background: color-mix(in srgb, var(--luma-surface-card) 86%, transparent) !important;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--luma-accent) 7%, transparent) !important;
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard#bbtChartSection > summary {
  font-family: var(--r-display) !important;
  font-size: clamp(1.2rem, 4.4vw, 1.4rem) !important;
  font-weight: 600 !important;
  font-style: italic;
  color: var(--luma-text-heading);
}

[data-design="refined"] #cycleScreen #unifiedTrackLogMount .trackLogCard .logDatePickerNavBtn {
  background: color-mix(in srgb, var(--luma-surface-card) 82%, transparent) !important;
}

/* ===== 20260830-welcome1: welcome + auth ritual flow (wins over legacy first-run chrome) ===== */
html[data-design="refined"] body[data-auth-style="ritual"] {
  --auth-peach: #f3d6e2;
  --auth-peach-deep: #e8a8bc;
  --auth-rose: #f0b8cc;
  --auth-ink: #4a3040;
  --auth-muted: #6e5460;
  --auth-shell: #fbf7f9;
  --auth-btn-text: #4a3040;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell:has(#welcomeScreen.active),
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell:has(#authScreen.active) {
  background: linear-gradient(180deg, #fdf8fa 0%, var(--auth-shell, #fbf7f9) 48%, #f8f0f4 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell :is(#welcomeScreen, #authScreen) {
  background: transparent !important;
  background-image: none !important;
  background-size: auto !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell :is(.welcomeExperience, #authScreen .authExperience) {
  width: min(100%, var(--luma-shell-max, 392px)) !important;
  min-height: 100%;
  margin: 0 auto;
  padding: 22px 18px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  display: grid !important;
  align-content: space-between;
  gap: 20px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  text-align: left !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .welcomeHero::before,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .welcomeHero::after,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authHero::before,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authHero::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .welcomeExperience {
  align-items: center !important;
  align-content: stretch !important;
  justify-items: center !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  padding-top: 96px !important;
  text-align: center !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .welcomeHero,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authHero {
  display: grid !important;
  justify-items: start !important;
  align-content: start !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell :is(.welcomeHero, #authScreen .authHero) .authBrandMark {
  margin: 0 0 10px !important;
  font-family: var(--r-display) !important;
  font-size: clamp(2.6rem, 11vw, 3.35rem) !important;
  font-weight: 600 !important;
  font-style: italic !important;
  letter-spacing: -0.03em !important;
  line-height: 0.92 !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell :is(.welcomeHero, #authScreen .authHero) .label {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: color-mix(in srgb, var(--auth-peach-deep) 55%, var(--auth-muted)) !important;
  font-family: var(--r-sans) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell :is(.welcomeHero, #authScreen .authHero) h1 {
  max-width: 11em !important;
  width: min(100%, 11em) !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  font-family: var(--r-display) !important;
  font-size: clamp(1.55rem, 6.2vw, 1.95rem) !important;
  font-weight: 600 !important;
  font-style: italic !important;
  line-height: 1.16 !important;
  letter-spacing: -0.02em !important;
  word-spacing: 0.08em !important;
  color: var(--auth-ink) !important;
  text-align: center !important;
  text-wrap: balance !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell :is(.welcomeHero, #authScreen .authHero) .authSubtitle {
  max-width: 32ch !important;
  margin: 0 !important;
  font-family: var(--r-sans) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  color: var(--auth-muted) !important;
  text-align: left !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .welcomeHero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  justify-items: center !important;
  align-content: center !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
  overflow: visible !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .welcomeHero :is(.authBrandMark, .label, h1, .authSubtitle, .welcomeRecap, .welcomeRecap strong, .welcomeRecap small) {
  text-align: center !important;
  margin-inline: auto !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .welcomeRecap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  width: min(100%, 34ch) !important;
  max-width: 34ch !important;
  min-width: 0 !important;
  text-align: center !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .welcomeRecap .authSignalDot {
  display: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authSignalPanel {
  display: grid !important;
  grid-template-columns: 10px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  text-align: left !important;
  overflow: visible !important;
  min-height: 0 !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authSignalPanel::before,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authSignalPanel::after {
  content: none !important;
  display: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authSignalPanel .authSignalDot {
  width: 8px !important;
  height: 8px !important;
  margin-top: 6px !important;
  border-radius: 50% !important;
  background: #e8a8bc !important;
  box-shadow: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authSignalPanel strong {
  display: block !important;
  font-family: var(--r-sans) !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  font-style: normal !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authSignalPanel small {
  display: block !important;
  margin-top: 2px !important;
  font-family: var(--r-sans) !important;
  font-size: 0.8rem !important;
  line-height: 1.35 !important;
  color: var(--auth-muted) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .welcomeActions {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .welcomePrimaryBtn {
  width: 100%;
  min-height: 52px;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #f0b8cc 0%, #e8a8bc 48%, #e098b0 100%) !important;
  color: var(--auth-btn-text, #4a3040) !important;
  font-family: var(--r-sans) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 28px rgba(220, 140, 170, 0.28) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authCard {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authCard::before {
  display: none !important;
  content: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authModeSwitch {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authModeSwitch button {
  min-height: 44px !important;
  border-radius: 14px !important;
  border: 1px solid color-mix(in srgb, var(--auth-peach-deep) 32%, transparent) !important;
  background: color-mix(in srgb, #fff 70%, var(--auth-peach) 30%) !important;
  color: var(--auth-ink) !important;
  font-family: var(--r-sans) !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authModeSwitch button.active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--auth-peach) 70%, #fff), color-mix(in srgb, var(--auth-peach-deep) 55%, #fff)) !important;
  border-color: color-mix(in srgb, var(--auth-peach-deep) 45%, transparent) !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authForm input,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authForm textarea,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authForm select,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .googleButton {
  border-radius: 14px !important;
  border: 1px solid color-mix(in srgb, var(--auth-peach-deep) 28%, transparent) !important;
  background: color-mix(in srgb, #fff 88%, var(--auth-peach) 12%) !important;
  font-family: var(--r-sans) !important;
  color: var(--auth-ink) !important;
  box-shadow: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authForm .wideButton {
  border-radius: 16px !important;
  border: 0 !important;
  background: linear-gradient(135deg, #f0b8cc 0%, #e8a8bc 48%, #e098b0 100%) !important;
  color: var(--auth-btn-text, #4a3040) !important;
  font-family: var(--r-sans) !important;
  font-weight: 750 !important;
  box-shadow: 0 12px 28px rgba(220, 140, 170, 0.28) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #authScreen .authTermsCard {
  margin-top: 18px !important;
  padding: 14px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid color-mix(in srgb, var(--auth-peach-deep) 22%, transparent) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--auth-muted) !important;
  font-family: var(--r-sans) !important;
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
}

/* ===== 20260912-setup1: intake + period history match ritual peach ===== */
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell:has(#intakeScreen.active),
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell:has(#periodHistoryScreen.active) {
  background: linear-gradient(180deg, #fdf8fa 0%, var(--auth-shell, #fbf7f9) 48%, #f8f0f4 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell :is(#intakeScreen, #periodHistoryScreen) {
  background: transparent !important;
  background-image: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .ritualSetupExperience {
  width: min(100%, var(--luma-shell-max, 392px)) !important;
  /* Content-sized: min-height 100% + overflow children was collapsing the focus cards. */
  height: auto !important;
  min-height: min-content !important;
  margin: 0 auto;
  padding: 22px 18px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  display: grid !important;
  align-content: start;
  grid-auto-rows: min-content !important;
  gap: 18px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .ritualSetupHero {
  display: grid !important;
  justify-items: start !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
  /* Override .phoneShell .authHero overflow:hidden — it zeroed auto min-size in the parent grid. */
  overflow: visible !important;
  height: auto !important;
  min-height: min-content !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .ritualSetupHero .authBrandMark {
  margin: 0 0 8px !important;
  font-family: var(--r-display) !important;
  font-size: clamp(2.4rem, 10vw, 3.1rem) !important;
  font-weight: 600 !important;
  font-style: italic !important;
  letter-spacing: -0.03em !important;
  line-height: 0.92 !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .ritualSetupHero .label {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: color-mix(in srgb, var(--auth-peach-deep) 55%, var(--auth-muted)) !important;
  font-family: var(--r-sans) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .ritualSetupHero h1 {
  max-width: 14ch !important;
  margin: 0 !important;
  font-family: var(--r-display) !important;
  font-size: clamp(1.45rem, 5.8vw, 1.85rem) !important;
  font-weight: 600 !important;
  font-style: italic !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
  color: var(--auth-ink) !important;
  text-align: left !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .ritualSetupHero :is(.authSubtitle, .intakeSubtitle, .paywallSubtitle) {
  max-width: 34ch !important;
  margin: 0 !important;
  font-family: var(--r-sans) !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  color: var(--auth-muted) !important;
  text-align: left !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #intakeScreen .intakeGrid {
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
  /* overflow:auto + max-height made this grid item shrink to ~48px under a sized parent. */
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
  min-height: min-content !important;
  align-self: start !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #intakeScreen .intakeCard {
  display: grid !important;
  grid-template-columns: 44px 1fr 28px !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  border: 1px solid color-mix(in srgb, var(--auth-peach-deep) 28%, transparent) !important;
  background: color-mix(in srgb, #fff 82%, var(--auth-peach) 18%) !important;
  box-shadow: none !important;
  text-align: left !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #intakeScreen .intakeCard.selected,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #intakeScreen .intakeCard[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--auth-peach-deep) 55%, transparent) !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--auth-peach) 55%, #fff), color-mix(in srgb, var(--auth-peach-deep) 28%, #fff)) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #intakeScreen .intakeCard h3 {
  margin: 0 0 4px !important;
  font-family: var(--r-sans) !important;
  font-size: 0.98rem !important;
  font-weight: 750 !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #intakeScreen .intakeCard p {
  margin: 0 !important;
  font-family: var(--r-sans) !important;
  font-size: 0.82rem !important;
  line-height: 1.4 !important;
  color: var(--auth-muted) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #intakeScreen .focusImpactCard {
  margin: 0 !important;
  padding: 14px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid color-mix(in srgb, var(--auth-peach-deep) 24%, transparent) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #intakeScreen .focusImpactCard h2 {
  font-family: var(--r-sans) !important;
  font-size: 0.98rem !important;
  font-weight: 750 !important;
  font-style: normal !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #periodHistoryScreen .onboardingCycleModePanel,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #periodHistoryScreen .periodHistoryCard {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #periodHistoryScreen .cycleModeSwitcher {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #periodHistoryScreen .cycleModeOption {
  min-height: 72px !important;
  padding: 12px !important;
  border-radius: 16px !important;
  border: 1px solid color-mix(in srgb, var(--auth-peach-deep) 28%, transparent) !important;
  background: color-mix(in srgb, #fff 78%, var(--auth-peach) 22%) !important;
  text-align: left !important;
  box-shadow: none !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #periodHistoryScreen .cycleModeOption[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--auth-peach-deep) 50%, transparent) !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--auth-peach) 60%, #fff), color-mix(in srgb, var(--auth-peach-deep) 30%, #fff)) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #periodHistoryScreen .field span,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #periodHistoryScreen .cycleModeHint,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #periodHistoryScreen .periodHistoryCount {
  font-family: var(--r-sans) !important;
  color: var(--auth-muted) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #periodHistoryScreen input[type="date"] {
  border-radius: 14px !important;
  border: 1px solid color-mix(in srgb, var(--auth-peach-deep) 28%, transparent) !important;
  background: color-mix(in srgb, #fff 88%, var(--auth-peach) 12%) !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell .ritualPrimaryBtn,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #intakeContinueBtn,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingPeriodContinue,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingAddPeriodBtn {
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #f0b8cc 0%, #e8a8bc 48%, #e098b0 100%) !important;
  color: var(--auth-btn-text, #4a3040) !important;
  font-family: var(--r-sans) !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 28px rgba(220, 140, 170, 0.28) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #intakeScreen .intakeFooter,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #periodHistoryScreen .authLink,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingPeriodSkip {
  color: var(--auth-muted) !important;
  font-family: var(--r-sans) !important;
  font-weight: 700 !important;
  text-align: center;
}

/* Ensure OPK gallery never shows inside Log during pregnancy (wins over trackLogCard). */
[data-design="refined"] body.pregnancyFocusMode #cycleScreen #unifiedTrackLogMount #opkScannerSection.trackLogCard,
[data-design="refined"] body.focus-pregnant #cycleScreen #unifiedTrackLogMount #opkScannerSection.trackLogCard,
[data-design="refined"] body.pregnancyFocusMode #cycleScreen #opkScannerSection,
[data-design="refined"] body.focus-pregnant #cycleScreen #opkScannerSection {
  display: none !important;
  visibility: hidden !important;
}

/* ===== 20260912-plus1: Learn/Luma expand chips — circular chevrons, not tall + pills ===== */
[data-design="refined"] #careScreen .progressiveHubDetails > summary.hubSectionHeader,
[data-design="refined"] #lumaHubScreen .progressiveHubDetails > summary.hubSectionHeader,
[data-design="refined"] .phoneShell .lumaInsightsSection.progressiveHubDetails > summary {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px;
}

[data-design="refined"] #careScreen .progressiveHubDetails > summary.hubSectionHeader::after,
[data-design="refined"] #lumaHubScreen .progressiveHubDetails > summary.hubSectionHeader::after,
[data-design="refined"] .phoneShell .progressiveHubDetails > summary::after {
  content: "" !important;
  flex: 0 0 32px !important;
  align-self: flex-start !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  margin: 2px 0 0 auto !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent) 18%, transparent) !important;
  background-color: color-mix(in srgb, var(--luma-surface-card) 90%, transparent) !important;
  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") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 14px 14px !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--luma-accent) 8%, transparent) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transform: none;
  transition: transform 0.18s ease, background-color 0.18s ease !important;
}

[data-design="refined"] body.pregnancyFocusMode #careScreen .progressiveHubDetails > summary.hubSectionHeader::after,
[data-design="refined"] body.focus-pregnant #careScreen .progressiveHubDetails > summary.hubSectionHeader::after {
  border-color: color-mix(in srgb, var(--luma-accent-teal) 22%, transparent) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b5f' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
}

[data-design="refined"] #careScreen .progressiveHubDetails[open] > summary.hubSectionHeader::after,
[data-design="refined"] #lumaHubScreen .progressiveHubDetails[open] > summary.hubSectionHeader::after,
[data-design="refined"] .phoneShell .progressiveHubDetails[open] > summary::after {
  content: "" !important;
  transform: rotate(180deg) !important;
}

/* ===== 20260912-lumachat1: calm chat-first sheet (wins over prior Luma chat override layers) ===== */
html[data-design="refined"] .phoneShell .lumaSheet {
  display: flex !important;
  flex-direction: column !important;
  width: min(100%, 430px) !important;
  max-height: min(90dvh, 780px) !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--luma-shell, #fff7fb) 94%, white), color-mix(in srgb, var(--luma-surface, #fffaf7) 96%, white)) !important;
}

html[data-design="refined"] .phoneShell .lumaSheet::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeader {
  flex: 0 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  grid-template-areas: "main actions close" !important;
  align-items: start !important;
  justify-content: stretch !important;
  gap: 6px 8px !important;
  min-height: 0 !important;
  padding: 14px 16px 10px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 28%, transparent) !important;
  background: transparent !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeaderMain {
  grid-area: main !important;
  flex: none !important;
  min-width: 0 !important;
  max-width: none !important;
  text-align: left !important;
}

html[data-design="refined"] .phoneShell .lumaSheetBrand {
  margin: 0 !important;
  color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  -webkit-text-fill-color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  font-family: var(--r-display, var(--luma-font-heading, Georgia, serif)) !important;
  font-size: 1.35rem !important;
  font-weight: 500 !important;
  font-style: italic !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeader h2,
html[data-design="refined"] .phoneShell .lumaSheetHeader #lumaSheetTitle {
  max-width: none !important;
  margin: 2px 0 0 !important;
  color: var(--luma-text-heading, #3f2b38) !important;
  -webkit-text-fill-color: var(--luma-text-heading, #3f2b38) !important;
  font-family: var(--r-sans, var(--luma-font-body, system-ui, sans-serif)) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1.25 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetContext {
  margin: 6px 0 0 !important;
  color: var(--luma-text, #66525f) !important;
  -webkit-text-fill-color: var(--luma-text, #66525f) !important;
  font-family: var(--r-sans, var(--luma-font-body, system-ui, sans-serif)) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeaderActions,
html[data-design="refined"] .phoneShell .lumaSheetHeader .lumaChatControls {
  grid-area: actions !important;
  order: 0 !important;
  flex: none !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-self: start !important;
  gap: 2px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeaderActions button,
html[data-design="refined"] .phoneShell .lumaSheetHeader .lumaChatControls button {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--luma-text, #66525f) !important;
  -webkit-text-fill-color: var(--luma-text, #66525f) !important;
  font-family: var(--r-sans, var(--luma-font-body, system-ui, sans-serif)) !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  font-style: normal !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 70%, transparent);
  text-underline-offset: 3px;
}

html[data-design="refined"] .phoneShell .lumaSheetHeaderActions button[aria-expanded="true"],
html[data-design="refined"] .phoneShell .lumaSheetHeader .lumaChatControls button[aria-expanded="true"],
html[data-design="refined"] .phoneShell .lumaSheetHeaderActions button:active,
html[data-design="refined"] .phoneShell .lumaSheetHeader .lumaChatControls button:active {
  background: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 22%, transparent) !important;
  color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  -webkit-text-fill-color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  text-decoration: none;
}

html[data-design="refined"] .phoneShell .lumaSheetClose {
  grid-area: close !important;
  flex: none !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 36%, transparent) !important;
  background: color-mix(in srgb, var(--luma-surface-card, #fff8fb) 88%, transparent) !important;
  color: var(--luma-text-heading, #3f2b38) !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 12px 16px 14px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: transparent !important;
  background-image: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat > * {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .memoryStrip,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaSheetTodayCard,
html[data-design="refined"] .phoneShell .lumaConcierge > .label,
html[data-design="refined"] .phoneShell .lumaConciergePanelHead,
html[data-design="refined"] .phoneShell #lumaConciergePanelIcon,
html[data-design="refined"] .phoneShell #lumaConciergePanelKicker,
html[data-design="refined"] .phoneShell #lumaConciergePanelTitle,
html[data-design="refined"] .phoneShell #lumaConciergePanelCopy,
html[data-design="refined"] .phoneShell .lumaConcierge #lumaConciergeTitle:not(.sr-only),
html[data-design="refined"] .phoneShell .lumaConcierge #lumaConciergeContext:not(.sr-only) {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaPreviousChatsPanel {
  order: 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge {
  order: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  width: 100% !important;
  padding: 4px !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--luma-surface-card, #fff8fb) 72%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 32%, transparent) !important;
  box-shadow: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes::-webkit-scrollbar {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode {
  flex: 1 0 auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 10px !important;
  border-radius: 12px !important;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--luma-text, #66525f) !important;
  -webkit-text-fill-color: var(--luma-text, #66525f) !important;
  text-align: center !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode span {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode strong {
  margin: 0 !important;
  font-family: var(--r-sans, var(--luma-font-body, system-ui, sans-serif)) !important;
  font-size: 0.82rem !important;
  font-weight: 750 !important;
  line-height: 1.1 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode em {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode.active {
  background: color-mix(in srgb, var(--auth-peach, #f0b0c4) 88%, #fff) !important;
  background-image: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode.active strong {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergePanel {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaPromptGroupRow {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow > button,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaPromptGroupRow > button {
  flex: 0 1 auto !important;
  min-height: 34px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 42%, transparent) !important;
  background: color-mix(in srgb, var(--luma-surface-card, #fff8fb) 90%, transparent) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--luma-text-heading, #3f2b38) !important;
  -webkit-text-fill-color: var(--luma-text-heading, #3f2b38) !important;
  font-family: var(--r-sans, var(--luma-font-body, system-ui, sans-serif)) !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow > button.lumaPromptPrimary,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaPromptGroupRow > button.lumaPromptPrimary {
  background: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 28%, white) !important;
  border-color: color-mix(in srgb, var(--you-pink, #b45b83) 28%, transparent) !important;
  color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
  -webkit-text-fill-color: var(--you-pink, var(--luma-accent-text, #b45b83)) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #mobileMessages {
  order: 2 !important;
  flex: 1 1 auto !important;
  min-height: 140px !important;
  max-height: none !important;
  overflow-y: auto !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaSheetComposer {
  order: 3 !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 2 !important;
  display: grid !important;
  gap: 6px !important;
  margin-top: auto !important;
  padding-top: 4px !important;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--luma-surface, #fffaf7) 92%, white) 28%) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm {
  display: flex !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm input {
  flex: 1 1 auto !important;
  min-height: 48px !important;
  border-radius: 16px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote {
  margin: 0 !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--luma-text, #66525f) !important;
  -webkit-text-fill-color: var(--luma-text, #66525f) !important;
  font-family: var(--r-sans, var(--luma-font-body, system-ui, sans-serif)) !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoicePanel {
  order: 4 !important;
}

html[data-design="refined"] .phoneShell .lumaInsightsSection {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 16px 14px !important;
  border: 0 !important;
  border-top: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 30%, transparent) !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaInsightsSection > summary.lumaInsightsHeader {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 12px 0 4px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaInsightsSection > summary .label {
  margin: 0 !important;
  color: var(--luma-text, #66525f) !important;
  -webkit-text-fill-color: var(--luma-text, #66525f) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.14em !important;
}

html[data-design="refined"] .phoneShell .lumaInsightsSection > summary h3 {
  margin: 2px 0 0 !important;
  color: var(--luma-text-heading, #3f2b38) !important;
  -webkit-text-fill-color: var(--luma-text-heading, #3f2b38) !important;
  font-family: var(--r-sans, var(--luma-font-body, system-ui, sans-serif)) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

html[data-design="refined"] .phoneShell .lumaInsightsSection > summary .lumaInsightsDesc {
  display: none !important;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell .lumaSheetChat .lumaConciergeMode.active,
html[data-design="refined"] body.focus-pregnant .phoneShell .lumaSheetChat .lumaConciergeMode.active {
  background: color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 78%, #2f6b5f) !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetHeaderActions button,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetHeaderActions button,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetHeader .lumaChatControls button,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetHeader .lumaChatControls button,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetContext,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetContext {
  color: var(--luma-text, #d9c7d0) !important;
  -webkit-text-fill-color: var(--luma-text, #d9c7d0) !important;
}


/* ===== 20260912-lumachat1b: align selectors to live sheet markup ===== */
html[data-design="refined"] .phoneShell .lumaSheetHeader {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  grid-template-areas: "main actions close" !important;
  align-items: start !important;
  gap: 4px 8px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeaderMain { grid-area: main !important; }
html[data-design="refined"] .phoneShell .lumaSheetHeaderActions,
html[data-design="refined"] .phoneShell .lumaSheetHeader .lumaChatControls { grid-area: actions !important; align-self: start !important; }
html[data-design="refined"] .phoneShell .lumaSheetClose { grid-area: close !important; margin: 0 !important; }

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaSheetComposer,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaSheetComposer {
  order: 3 !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 2 !important;
  display: grid !important;
  gap: 6px !important;
  margin-top: auto !important;
  padding-top: 4px !important;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--luma-surface, #fffaf7) 92%, white) 28%) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm,
html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm {
  display: flex !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote {
  margin: 0 !important;
  padding: 0 2px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaPromptGroupRow,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaPromptGroupRow,
html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}


/* ===== 20260912-lumachat1c: quiet voice upsell so chat stays primary ===== */
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoiceUpgrade,
html[data-design="refined"] .phoneShell .lumaSheetChat #lumaVoiceUpgrade {
  display: none !important;
}


/* ===== 20260912-lumachat1d: honor [hidden] on voice chrome in chat sheet ===== */
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoicePanel [hidden],
html[data-design="refined"] .phoneShell .lumaSheetChat #lumaVoiceControls[hidden],
html[data-design="refined"] .phoneShell .lumaSheetChat #lumaVoiceUpgrade[hidden],
html[data-design="refined"] .phoneShell .lumaSheetChat #lumaVoiceUnsupported[hidden] {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoicePanel:not(:has(:not([hidden]))) {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoicePanel:has(#lumaVoiceControls[hidden]):has(#lumaVoiceUpgrade[hidden]):has(#lumaVoiceUnsupported[hidden]),
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoicePanel:has(#lumaVoiceControls[hidden]):has(#lumaVoiceUpgrade[style*="display: none"]):has(#lumaVoiceUnsupported[hidden]) {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ===== 20260912-lumachat1e ===== */

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoicePanel:has(#lumaVoiceControls[hidden]) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}


/* ===== 20260912-profilechevron1: Profile Details dropdown — peach circular chevron, not mint ===== */
html[data-design="refined"] .phoneShell #profileScreen .profileIdentityChevron {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #b45b83) 18%, transparent) !important;
  background-color: color-mix(in srgb, #fff 88%, var(--luma-accent-soft, #f0cfdf) 12%) !important;
  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") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 13px 13px !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--luma-accent, #b45b83) 8%, transparent) !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  text-indent: -999px !important;
}

html[data-design="refined"] .phoneShell #profileScreen .profileIdentityCard[open] .profileIdentityChevron,
html[data-design="refined"] .phoneShell #profileScreen .profileCardDetails[open] .profileIdentityChevron {
  transform: rotate(180deg) !important;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #profileScreen .profileIdentityChevron,
html[data-design="refined"] body.focus-pregnant .phoneShell #profileScreen .profileIdentityChevron {
  border-color: color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 22%, transparent) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b5f' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
}


/* ===== 20260912-designfix14: Home/Hub/Chat/Track first-viewport declutter ===== */

/* Home: quieter hero phase pill */
html[data-design="refined"] .phoneShell #todayScreen .homeHeroPhasePill {
  max-width: 100% !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.12em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[data-design="refined"] .phoneShell #todayScreen #todayPhaseLine {
  max-width: 28ch !important;
}

/* Luma hub: one CTA composition */
html[data-design="refined"] .phoneShell #lumaHubScreen .lumaHubHero {
  display: grid !important;
  gap: 12px !important;
  padding: 18px 4px 8px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell #lumaHubScreen .lumaHubHero > .label,
html[data-design="refined"] .phoneShell #lumaHubScreen .lumaActionCenter,
html[data-design="refined"] .phoneShell #lumaHubScreen .lumaCommandDeck,
html[data-design="refined"] .phoneShell #lumaHubScreen .lumaSupportDrawer--values,
html[data-design="refined"] .phoneShell #lumaHubScreen #lumaHubPrompts,
html[data-design="refined"] .phoneShell #lumaHubScreen #lumaHubPremiumNote {
  display: none !important;
}

html[data-design="refined"] .phoneShell #lumaHubScreen .lumaHubHero #lumaHubHeroTitle {
  margin: 0 !important;
  font-family: var(--r-display, var(--luma-font-heading, Georgia, serif)) !important;
  font-size: clamp(1.6rem, 6vw, 2.1rem) !important;
  line-height: 1.1 !important;
}

html[data-design="refined"] .phoneShell #lumaHubScreen .lumaHubGreeting {
  margin: 0 !important;
  max-width: 32ch !important;
  color: var(--luma-text, #66525f) !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
}

html[data-design="refined"] .phoneShell #lumaHubScreen .lumaHubActions {
  justify-items: center !important;
  text-align: center !important;
}

html[data-design="refined"] .phoneShell #lumaHubScreen #lumaHubOpenChat {
  margin: 4px auto 0 !important;
  justify-self: center !important;
  width: auto !important;
  min-width: min(100%, 240px) !important;
  text-align: center !important;
}

html[data-design="refined"] .phoneShell #lumaHubScreen #lumaHubFreshChat {
  justify-self: center !important;
  text-align: center !important;
}

html[data-design="refined"] .phoneShell #lumaHubScreen .lumaInsightsHubDetails {
  margin-top: 18px !important;
  border-top: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 34%, transparent) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Chat: messages own the sheet; quiet lock state */
html[data-design="refined"] .phoneShell .lumaSheetChat #mobileMessages,
html[data-design="refined"] .phoneShell .lumaSheetChat #mobileMessages:empty {
  display: block !important;
  flex: 1 1 auto !important;
  min-height: 160px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #mobileMessages:empty::before {
  content: "Pick a lane or prompt to begin. Open chat unlocks free typing.";
  display: block;
  margin: 8px 2px 0;
  color: var(--luma-text, #66525f);
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.85;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote {
  margin: 0 !important;
  padding: 0 2px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--luma-text, #66525f) !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm.lumaChatFormLocked input {
  color: var(--luma-text, #66525f) !important;
  -webkit-text-fill-color: var(--luma-text, #66525f) !important;
}

/* Track: calendar first; options collapsed */
html[data-design="refined"] .phoneShell #cycleScreen .trackCalendarHeader,
html[data-design="refined"] .phoneShell #cycleScreen #calendarQuickGuide,
html[data-design="refined"] .phoneShell #cycleScreen #cycleTrackHero {
  display: none !important;
}

html[data-design="refined"] .phoneShell #cycleScreen #yearCalendarPanel {
  order: 1 !important;
  padding: 12px !important;
  border-radius: 22px !important;
}

html[data-design="refined"] .phoneShell #cycleScreen #calendarPrimaryActions {
  order: 2 !important;
  display: grid !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

html[data-design="refined"] .phoneShell #cycleScreen #calendarPrimaryActions .calendarNoPeriodBtn,
html[data-design="refined"] .phoneShell #cycleScreen #calendarPrimaryActions .calendarSecondaryBtn {
  display: none !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .calendarMoreChrome {
  margin-top: 12px !important;
  border-top: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 32%, transparent) !important;
  padding-top: 8px !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .calendarMoreChrome > summary {
  list-style: none !important;
  cursor: pointer !important;
  color: var(--luma-text, #66525f) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  padding: 8px 2px !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .calendarMoreChrome > summary::-webkit-details-marker {
  display: none !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .calendarMoreChrome[open] > summary {
  margin-bottom: 10px !important;
}


/* ===== 20260912-designfix58: chevrons, home buttons, pills, You mint → peach ===== */

/* 5. Unified peach circular chevrons */
html[data-design="refined"] .phoneShell .progressiveHubDetails > summary::after,
html[data-design="refined"] .phoneShell .settingsListDetails > summary::after,
html[data-design="refined"] .phoneShell .careMoreTopics > summary::after,
html[data-design="refined"] .phoneShell .homeCleanupSupport > summary::after,
html[data-design="refined"] .phoneShell .calendarMoreChrome > summary::after,
html[data-design="refined"] .phoneShell .lumaInsightsSection > summary::after,
html[data-design="refined"] .phoneShell #profileScreen .settingsListDetails > summary::after,
html[data-design="refined"] .phoneShell #careScreen .progressiveHubDetails > summary.hubSectionHeader::after,
html[data-design="refined"] .phoneShell #lumaHubScreen .progressiveHubDetails > summary.hubSectionHeader::after {
  content: "" !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #b45b83) 18%, transparent) !important;
  background-color: color-mix(in srgb, #fff 88%, var(--luma-accent-soft, #f0cfdf) 12%) !important;
  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") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 13px 13px !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--luma-accent, #b45b83) 8%, transparent) !important;
  color: transparent !important;
  font-size: 0 !important;
}

html[data-design="refined"] .phoneShell .progressiveHubDetails[open] > summary::after,
html[data-design="refined"] .phoneShell .settingsListDetails[open] > summary::after,
html[data-design="refined"] .phoneShell .careMoreTopics[open] > summary::after,
html[data-design="refined"] .phoneShell .homeCleanupSupport[open] > summary::after,
html[data-design="refined"] .phoneShell .calendarMoreChrome[open] > summary::after,
html[data-design="refined"] .phoneShell .lumaInsightsSection[open] > summary::after,
html[data-design="refined"] .phoneShell #careScreen .progressiveHubDetails[open] > summary.hubSectionHeader::after,
html[data-design="refined"] .phoneShell #lumaHubScreen .progressiveHubDetails[open] > summary.hubSectionHeader::after {
  transform: rotate(180deg) !important;
}

html[data-design="refined"] .phoneShell #profileScreen .profileIdentityChevron {
  background-color: color-mix(in srgb, #fff 88%, var(--luma-accent-soft, #f0cfdf) 12%) !important;
  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") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 13px 13px !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #b45b83) 18%, transparent) !important;
  color: transparent !important;
  font-size: 0 !important;
}

/* 6. No duplicate floating Home buttons (tab bar is enough) */
html[data-design="refined"] .phoneShell .appScreen > .mobileHeader .roundButton[data-go-screen="today"],
html[data-design="refined"] .phoneShell .trackHomeBtn,
html[data-design="refined"] .phoneShell #profileScreen .mobileHeader .roundButton[data-icon="home"],
html[data-design="refined"] .phoneShell #careScreen .mobileHeader .roundButton[data-icon="home"],
html[data-design="refined"] .phoneShell #lumaHubScreen .mobileHeader .roundButton[data-icon="home"] {
  display: none !important;
}

/* 7. Quieter pill clusters */
html[data-design="refined"] .phoneShell #todayScreen .todayTrackingModeChip {
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--luma-text-heading, #3f2b38) !important;
  font-size: 0.78rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.04em !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none !important;
}

html[data-design="refined"] .phoneShell #todayScreen .homeLumaPrompts,
html[data-design="refined"] .phoneShell #todayScreen .homeLumaSnippet .lumaPromptGroupRow {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow > button {
  min-height: 32px !important;
  padding: 5px 10px !important;
  font-size: 0.74rem !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes {
  gap: 4px !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .yearControls,
html[data-design="refined"] .phoneShell #cycleScreen .yearControlsCompact,
html[data-design="refined"] .phoneShell #cycleScreen #yearControlsCompact {
  display: none !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .calendarMoreChrome[open] .yearControls,
html[data-design="refined"] .phoneShell #cycleScreen .calendarMoreChrome[open] .yearControlsCompact {
  display: none !important;
}

/* Pregnancy calendar key — match the marks used on the month grid */
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .pregnancyCalendarLegend,
html[data-design="refined"] body.focus-pregnant .phoneShell #cycleScreen .pregnancyCalendarLegend {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 22%, transparent);
  background: color-mix(in srgb, var(--luma-surface-card, #fff) 92%, transparent);
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .pregnancyCalendarLegend[hidden] {
  display: none !important;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .pregnancyCalendarLegend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--r-sans);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--luma-text-heading);
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .pregnancyCalendarLegend i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-sizing: border-box;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .pregnancySelectedMark {
  background: linear-gradient(145deg, rgba(126, 63, 106, 0.18), rgba(27, 123, 116, 0.14));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 70%, #2f6b5f);
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .pregnancyTodayMark {
  background: color-mix(in srgb, var(--luma-surface-card, #fff) 80%, transparent);
  box-shadow: inset 0 0 0 2px var(--luma-accent, #b45b83);
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .pregnancyWeekMark {
  border-radius: 4px;
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--luma-text-muted, #8a6f7a) 45%, transparent);
  position: relative;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .pregnancyWeekMark::after {
  content: "W";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 7px;
  font-weight: 800;
  color: var(--luma-text-muted, #8a6f7a);
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .pregnancyWeek1Mark {
  background: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 55%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--luma-accent, #b45b83) 35%, transparent);
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .pregnancyLoggedMark {
  background: color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 42%, #fff);
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen #calendarMoreChrome > .cardTop {
  display: none !important;
}

/* 8. You controls: peach/rose icons, not mint */
html[data-design="refined"] .phoneShell #profileScreen .powerToolBtn span,
html[data-design="refined"] .phoneShell #profileScreen .youCommandStrip .powerToolBtn [data-icon],
html[data-design="refined"] .phoneShell #profileScreen .youCommandStrip .powerToolBtn span {
  background: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 46%, #fff) !important;
  background-color: color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 46%, #fff) !important;
  color: var(--you-pink, var(--luma-accent-text, #a85878)) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #b45b83) 14%, transparent) !important;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #profileScreen .powerToolBtn span,
html[data-design="refined"] body.focus-pregnant .phoneShell #profileScreen .powerToolBtn span {
  background: color-mix(in srgb, var(--luma-accent-teal-soft, #e8f8f2) 70%, #fff) !important;
  color: var(--luma-teal-text, #2f6b5f) !important;
  border-color: color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 28%, transparent) !important;
}


/* ===== 20260912-patternmemory1: Pattern Memory title must not clip ===== */
html[data-design="refined"] .phoneShell .lumaLearningCore,
html[data-design="refined"] .phoneShell #cycleScreen .lumaLearningCore,
html[data-design="refined"] .phoneShell #cycleScreen .trackLogCard .lumaLearningCore {
  min-width: 0 !important;
  overflow: visible !important;
}

html[data-design="refined"] .phoneShell .lumaLearningStage,
html[data-design="refined"] .phoneShell #cycleScreen .lumaLearningStage {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 6px 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

html[data-design="refined"] .phoneShell .lumaLearningStage strong,
html[data-design="refined"] .phoneShell #cycleScreen .lumaLearningStage strong,
html[data-design="refined"] .phoneShell #lumaLearningStageTitle {
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  text-align: right !important;
  line-height: 1.3 !important;
}

@media (max-width: 390px) {
  html[data-design="refined"] .phoneShell .lumaLearningStage,
  html[data-design="refined"] .phoneShell #cycleScreen .lumaLearningStage {
    grid-template-columns: 1fr !important;
  }

  html[data-design="refined"] .phoneShell .lumaLearningStage strong,
  html[data-design="refined"] .phoneShell #cycleScreen .lumaLearningStage strong,
  html[data-design="refined"] .phoneShell #lumaLearningStageTitle {
    text-align: left !important;
  }
}


/* ===== 20260912-logoutline1: kill outer Track→Log outlined box around cards ===== */
html[data-design="refined"] .phoneShell #cycleScreen .unifiedTrackLogPanel,
html[data-design="refined"] .phoneShell #cycleScreen #unifiedTrackLogPanel,
html[data-design="refined"] .phoneShell #cycleScreen #unifiedTrackLogMount {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .unifiedTrackLogPanel::before,
html[data-design="refined"] .phoneShell #cycleScreen .unifiedTrackLogPanel::after,
html[data-design="refined"] .phoneShell #cycleScreen #unifiedTrackLogPanel::before,
html[data-design="refined"] .phoneShell #cycleScreen #unifiedTrackLogPanel::after {
  content: none !important;
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .unifiedTrackLogPanel,
html[data-design="refined"] body.focus-pregnant .phoneShell #cycleScreen .unifiedTrackLogPanel {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}


/* ===== 20260912-patternnest1: kill nested outline inside Pattern Memory card ===== */
html[data-design="refined"] .phoneShell #cycleScreen .lumaLearningPanel,
html[data-design="refined"] .phoneShell #cycleScreen .bodyLogInsightsCard .lumaLearningPanel,
html[data-design="refined"] .phoneShell #cycleScreen .trackLogCard .lumaLearningPanel,
html[data-design="refined"] .phoneShell #cycleScreen .lumaLearningCore,
html[data-design="refined"] .phoneShell #cycleScreen .bodyLogInsightsCard .lumaLearningCore,
html[data-design="refined"] .phoneShell #cycleScreen .trackLogCard .lumaLearningCore {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  outline: none !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .lumaLearningWhere {
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}


/* ===== 20260912-timeline1: Past check-ins dropdown — quiet count + peach chevron ===== */
html[data-design="refined"] .phoneShell #cycleScreen .logHistoryDropdown > summary.logHistorySummary,
html[data-design="refined"] .phoneShell #cycleScreen #logHistoryDropdown > summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .logHistorySummaryMeta,
html[data-design="refined"] .phoneShell #cycleScreen #trackLogPanel .logHistorySummaryMeta,
html[data-design="refined"] .phoneShell #cycleScreen .trackLogCard .logHistorySummaryMeta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .logHistorySummaryMeta #logHistoryCount,
html[data-design="refined"] .phoneShell #cycleScreen #logHistoryCount {
  color: var(--luma-text-muted, #6b5a54) !important;
  font-family: var(--r-sans, inherit) !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.01em !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .logHistoryChevron,
html[data-design="refined"] .phoneShell #cycleScreen .trackLogCard .logHistoryChevron,
html[data-design="refined"] .phoneShell #cycleScreen #logHistoryDropdown .logHistoryChevron {
  display: inline-grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #b45b83) 18%, transparent) !important;
  background-color: color-mix(in srgb, #fff 88%, var(--luma-accent-soft, #f0cfdf) 12%) !important;
  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") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 13px 13px !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--luma-accent, #b45b83) 8%, transparent) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transition: transform 0.18s ease !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .logHistoryDropdown[open] .logHistoryChevron,
html[data-design="refined"] .phoneShell #cycleScreen #logHistoryDropdown[open] .logHistoryChevron {
  transform: rotate(180deg) !important;
}


/* ===== 20260912-timeline2: Past check-ins = accordion, not select pill; BBT peach chevron ===== */
html[data-design="refined"] .phoneShell #cycleScreen #logHistoryCount[hidden],
html[data-design="refined"] .phoneShell #cycleScreen #logHistoryCount:empty {
  display: none !important;
}

html[data-design="refined"] .phoneShell #cycleScreen #bbtChartSection > summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  list-style: none !important;
}

html[data-design="refined"] .phoneShell #cycleScreen #bbtChartSection > summary::-webkit-details-marker {
  display: none !important;
}

html[data-design="refined"] .phoneShell #cycleScreen #bbtChartSection > summary::after {
  content: "" !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  flex: 0 0 32px !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #b45b83) 18%, transparent) !important;
  background-color: color-mix(in srgb, #fff 88%, var(--luma-accent-soft, #f0cfdf) 12%) !important;
  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") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 13px 13px !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--luma-accent, #b45b83) 8%, transparent) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transition: transform 0.18s ease !important;
}

html[data-design="refined"] .phoneShell #cycleScreen #bbtChartSection[open] > summary::after {
  transform: rotate(180deg) !important;
}


/* ===== 20260912-p1p2: pregnancy week art + mini visuals + chevrons + tablet ===== */

/* Hide literal + glyphs that fight peach ::after chevrons */
html[data-design="refined"] .phoneShell .homeCleanupSupport > summary > i,
html[data-design="refined"] .phoneShell .progressiveHubDetails > summary > i,
html[data-design="refined"] .phoneShell #lumaHubScreen .progressiveHubDetails > summary > i {
  display: none !important;
}

/* Peach circular chevron for Check-in + Home reminders */
html[data-design="refined"] .phoneShell .logCheckInChevron,
html[data-design="refined"] .phoneShell .homeAlertsChevron,
html[data-design="refined"] .phoneShell #cycleScreen .trackLogCard .logCheckInChevron,
html[data-design="refined"] .phoneShell #cycleScreen #unifiedTrackLogMount .trackLogCard .logCheckInChevron,
html[data-design="refined"] .phoneShell #cycleScreen #bodyLogCheckInDetails .logCheckInChevron {
  display: inline-grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #b45b83) 18%, transparent) !important;
  background: color-mix(in srgb, #fff 88%, var(--luma-accent-soft, #f0cfdf) 12%)
    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")
    center / 13px 13px no-repeat !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--luma-accent, #b45b83) 8%, transparent) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transition: transform 0.18s ease !important;
}

html[data-design="refined"] .phoneShell #bodyLogCheckInDetails[open] .logCheckInChevron,
html[data-design="refined"] .phoneShell #homeRemindersDropdown[open] .homeAlertsChevron {
  transform: rotate(180deg) !important;
}

/* Mini pregnancy visuals — Track hero + Log banner */
html[data-design="refined"] .phoneShell .trackHeroPregnancyMini {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 4px 0 12px;
}

html[data-design="refined"] .phoneShell .trackHeroPregnancyMini[hidden] {
  display: none !important;
}

html[data-design="refined"] .phoneShell .pregnancyMiniVisual {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, #fff 70%, transparent), transparent 55%),
    radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 35%, #f7ebe8), color-mix(in srgb, var(--luma-accent, #e8a8bc) 28%, #f3ddd8));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--luma-accent, #b45b83) 14%, transparent);
}

html[data-design="refined"] .phoneShell .pregnancyMiniVisual .pregnancyBabyPhotoFloat {
  position: absolute;
  inset: 6%;
  animation: none !important;
}

html[data-design="refined"] .phoneShell .pregnancyMiniVisual .pregnancyBabyPhoto {
  max-width: calc(var(--babyFill, 0.55) * 100%) !important;
  max-height: calc(var(--babyFill, 0.55) * 100%) !important;
  filter: var(--babyFilter, contrast(1.04) saturate(1.06));
}

html[data-design="refined"] .phoneShell .pregnancyMiniCaption {
  margin: 0;
  font-family: var(--r-sans);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--luma-text-heading);
}

html[data-design="refined"] .phoneShell .pregnancyLogBannerLayout {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

html[data-design="refined"] .phoneShell .pregnancyMiniVisual--banner {
  width: 64px;
  height: 64px;
}

html[data-design="refined"] .phoneShell .pregnancyLogBannerCopyBlock {
  min-width: 0;
  max-width: 100%;
}

/* Stack label over week title so long milestones wrap instead of clipping. */
html[data-design="refined"] .phoneShell #cycleScreen .pregnancyLogBannerHead {
  display: grid !important;
  gap: 4px !important;
  align-items: start !important;
  justify-content: start !important;
  width: 100%;
  max-width: 100%;
}

html[data-design="refined"] .phoneShell #cycleScreen .pregnancyLogBannerHead strong,
html[data-design="refined"] .phoneShell #cycleScreen #pregnancyLogBannerWeek {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

html[data-design="refined"] .phoneShell #cycleScreen #unifiedTrackLogMount > .trackLogCard.pregnancyLogBanner,
html[data-design="refined"] .phoneShell #cycleScreen #unifiedTrackLogMount > .trackLogCard#bodyLogCheckInDetails {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  justify-self: stretch !important;
  box-sizing: border-box !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .pregnancyRedFlagRow {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .pregnancyRedFlagBtn {
  width: 100%;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

html[data-design="refined"] .phoneShell #pregnancyBaby3dHost .pregnancyBabyPhotoFloat {
  filter: var(--babyFilter, none);
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #pregnancyBaby3dHost {
  inset: 2% 4% 4% !important;
  overflow: visible !important;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyBabyPhoto {
  max-width: calc(var(--babyFill, 0.55) * 100%) !important;
  max-height: calc(var(--babyFill, 0.55) * 100%) !important;
  object-position: center 52% !important;
  filter: none !important;
  transition: max-width 0.45s ease, max-height 0.45s ease, transform 0.45s ease !important;
}

/* Tablet / laptop: real wider shell (not a 392 phone mock) */
@media (min-width: 768px) {
  html[data-design="refined"] {
    --luma-shell-max: min(720px, calc(100vw - 48px));
  }

  html[data-design="refined"] .phoneShell {
    width: var(--luma-shell-max) !important;
    max-width: var(--luma-shell-max) !important;
    height: min(920px, calc(100dvh - 32px));
    min-height: 0;
    max-height: calc(100dvh - 32px);
    border-radius: 28px !important;
  }

  html[data-design="refined"] .phoneShell .appScreen {
    max-width: 100%;
  }
}

@media (min-width: 1100px) {
  html[data-design="refined"] {
    --luma-shell-max: min(840px, calc(100vw - 64px));
  }
}

/* ===== 20260912-pregweek1: baby-first hero + week tracker under image ===== */
html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyWeekTracker {
  display: grid !important;
  gap: 10px !important;
  margin: 0 0 12px !important;
  padding: 12px 10px 10px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(165deg, color-mix(in srgb, #fff 88%, var(--r-accent-preg, #c47890) 12%), #fff) !important;
  border: 1px solid color-mix(in srgb, var(--r-accent-preg, #c47890) 22%, transparent) !important;
  box-shadow: 0 10px 28px rgba(120, 70, 90, 0.08) !important;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyWeekTracker .pregnancyWeekNav {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyWeekRail {
  display: flex !important;
  gap: 6px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 2px 2px 4px !important;
  margin: 0 !important;
  scrollbar-width: none;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyWeekRail::-webkit-scrollbar {
  display: none;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyWeekRailChip {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--r-accent-preg, #c47890) 24%, transparent);
  background: color-mix(in srgb, #fff 92%, var(--r-accent-preg, #c47890) 8%);
  color: var(--luma-text-heading, #3a2a32);
  font-family: var(--r-sans);
  font-size: 0.78rem;
  font-weight: 750;
  scroll-snap-align: center;
  cursor: pointer;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyWeekRailChip.is-current:not(.is-active) {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--r-accent-preg, #c47890) 45%, transparent);
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyWeekRailChip.is-active {
  background: linear-gradient(145deg, color-mix(in srgb, var(--r-accent-preg, #c47890) 72%, #fff), color-mix(in srgb, #7e3f6a 55%, #c47890));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(126, 63, 106, 0.22);
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyStorySheet {
  gap: 14px !important;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyStoryHeroCopy .pregnancyWeekSizeChip {
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 0 !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, #d8ece8 70%, #fff) !important;
  font-size: 0.72rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyWombVisual[data-week="38"] .pregnancyBabyPhoto,
html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyWombVisual[data-week="39"] .pregnancyBabyPhoto,
html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyWombVisual[data-week="40"] .pregnancyBabyPhoto,
html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyBaby3dHost[data-week="38"] .pregnancyBabyPhoto,
html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyBaby3dHost[data-week="39"] .pregnancyBabyPhoto,
html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyBaby3dHost[data-week="40"] .pregnancyBabyPhoto {
  max-width: calc(var(--babyFill, 0.96) * 100%) !important;
  max-height: calc(var(--babyFill, 0.96) * 100%) !important;
  object-position: center 54% !important;
  filter: none !important;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyWombScanLine {
  opacity: 0.35 !important;
  top: 72% !important;
  animation: none !important;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyWombVisual[data-week="38"] .pregnancyWombScanLine,
html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyWombVisual[data-week="39"] .pregnancyWombScanLine,
html[data-design="refined"] body.pregnancyFocusMode .phoneShell .pregnancyWombVisual[data-week="40"] .pregnancyWombScanLine {
  display: none !important;
}

html[data-design="refined"][data-theme="moonlit"] body.pregnancyFocusMode .phoneShell .pregnancyWeekRailChip,
html[data-design="refined"][data-theme="dark"] body.pregnancyFocusMode .phoneShell .pregnancyWeekRailChip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: inherit;
}


/* ===== 20260912-lumafix1: sheet scroll + deep analyst + free/pro note ===== */
html[data-design="refined"] .phoneShell .lumaSheet {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: hidden !important;
  max-height: min(86vh, 760px) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaInsightsSection,
html[data-design="refined"] .phoneShell .lumaSheet .lumaInsightsSection {
  width: calc(100% - 8px) !important;
  max-width: none !important;
  margin: 12px 4px 18px !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaInsightsSection[open],
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaInsightsSection[open] .aiToolsList {
  overflow: visible !important;
  max-height: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .aiToolsList {
  display: grid !important;
  gap: 10px !important;
  max-height: none !important;
  overflow: visible !important;
}

html[data-design="refined"] .phoneShell #lumaHubScreen #lumaHubInsightsDetails[open],
html[data-design="refined"] .phoneShell #lumaHubScreen #lumaHubTools {
  overflow: visible !important;
  max-height: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote {
  cursor: pointer !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ===== 20260912-whitebox1: kill empty Track white box in pregnancy ===== */
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen #calendarPrimaryActions,
html[data-design="refined"] body.focus-pregnant .phoneShell #cycleScreen #calendarPrimaryActions,
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .calendarPrimaryActions,
html[data-design="refined"] body.focus-pregnant .phoneShell #cycleScreen .calendarPrimaryActions {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen #yearControlsCompact,
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .yearControls,
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .yearControlsCompact,
html[data-design="refined"] body.focus-pregnant .phoneShell #cycleScreen #yearControlsCompact {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ===== 20260920-publishready1: Log card language (winning stack) =====
   polish1 flatten → logcards1 boxed cards → logoutline1/patternnest1 kill outer nests.
   Keep individual trackLogCard chrome; never reintroduce a panel outline. */
html[data-design="refined"] .phoneShell #cycleScreen #unifiedTrackLogMount .trackLogCard {
  border-radius: 18px;
}

/* Paywall shares Home blush shell — but must respect dark/moonlit (no white-on-blush). */
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell:has(#paywallScreen.active) {
  --auth-peach: #f3d6e2;
  --auth-peach-deep: #e8a8bc;
  --auth-rose: #f0b8cc;
  --auth-ink: #4a3040;
  --auth-muted: #6e5460;
  --auth-shell: #fbf7f9;
  --auth-btn-text: #4a3040;
  background: linear-gradient(180deg, #fdf8fa 0%, #fbf7f9 48%, #f8f0f4 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--auth-ink, #4a3040) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #paywallScreen {
  background: transparent !important;
}

/* Compact-header dark theme paints h1 white — override on the light paywall blush shell. */
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #paywallScreen .paywallHeader .label,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #paywallScreen .paywallSubtitle,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #paywallScreen .paywallTrialNote,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #paywallScreen .paywallFootnote {
  color: var(--auth-muted, #6e5460) !important;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #paywallScreen .paywallHeader h1,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #paywallScreen #paywallTitle {
  max-width: 10.5em;
  color: var(--auth-ink, #4a3040) !important;
  font-family: var(--r-display) !important;
  font-style: italic;
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #paywallScreen .paywallSubtitle,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #paywallScreen #paywallSubtitle {
  margin: 12px 0 0 !important;
  max-width: 34ch !important;
  font-family: var(--r-sans) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  font-style: normal !important;
  line-height: 1.45 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

/* Dark / moonlit: theme attribute is on <html>, auth-style on <body>. */
html[data-design="refined"][data-theme="dark"] body[data-auth-style="ritual"] .phoneShell:has(#paywallScreen.active) {
  --auth-ink: #f7eef4;
  --auth-muted: #d4c2cc;
  --auth-shell: #1b151d;
  --auth-btn-text: #f7eef4;
  background: linear-gradient(180deg, #241c24 0%, #1b151d 48%, #151015 100%) !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"][data-theme="moonlit"] body[data-auth-style="ritual"] .phoneShell:has(#paywallScreen.active) {
  --auth-ink: #f4f6fb;
  --auth-muted: #c8d0e0;
  --auth-shell: #1c2535;
  --auth-btn-text: #f4f6fb;
  background: linear-gradient(180deg, #252d40 0%, #1c2535 48%, #151b28 100%) !important;
  color: var(--auth-ink) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"]) body[data-auth-style="ritual"] .phoneShell #paywallScreen .paywallHeader h1,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"]) body[data-auth-style="ritual"] .phoneShell #paywallScreen #paywallTitle {
  color: var(--auth-ink) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"]) body[data-auth-style="ritual"] .phoneShell #paywallScreen .paywallHeader .label,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"]) body[data-auth-style="ritual"] .phoneShell #paywallScreen .paywallSubtitle,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"]) body[data-auth-style="ritual"] .phoneShell #paywallScreen .paywallTrialNote,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"]) body[data-auth-style="ritual"] .phoneShell #paywallScreen .paywallFootnote,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"]) body[data-auth-style="ritual"] .phoneShell #paywallScreen .paywallLinks .textLinkBtn {
  color: var(--auth-muted) !important;
}

/* ===== 20260920-flo-p1: journeys + community pattern cards + OPK confirm ===== */
html[data-design="refined"] .pathwayJourneyBlock {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--luma-border, #e8ddd6) 80%, transparent);
}
html[data-design="refined"] .pathwayJourneyList {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
html[data-design="refined"] .pathwayJourneyItem {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
  color: var(--luma-text, #3a2f2c);
}
html[data-design="refined"] .pathwayJourneyItem input {
  margin-top: 3px;
}
html[data-design="refined"] .communityPatternGrid {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
html[data-design="refined"] .communityPatternCard {
  padding: 14px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--luma-surface-card, #fff) 92%, #f5d0dc);
  border: 1px solid color-mix(in srgb, #e8a8bc 22%, transparent);
}
html[data-design="refined"] .communityPatternCard h3 {
  margin: 0 0 6px;
  font-family: var(--r-display);
  font-size: 1.05rem;
  font-weight: 600;
}
html[data-design="refined"] .communityPatternCard p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--luma-text-muted, #6d5c57);
}
html[data-design="refined"] #opkConfirmSaveBtn {
  margin-top: 10px;
}

html[data-design="refined"] #opkConfirmSaveBtn[hidden] {
  display: none !important;
}

/* ===== 20260920-flop1deep: confidence, journeys, community, peri ===== */
html[data-design="refined"] .homeCareNoticeCard--labelOnly {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px;
  text-align: center;
}
html[data-design="refined"] .homeCareNoticeCard--labelOnly .label {
  width: 100%;
  margin: 0;
  text-align: center;
}
html[data-design="refined"] .homeCareNoticeCard--labelOnly :is(h2, p, .homeCareNoticeActions):empty,
html[data-design="refined"] .homeCareNoticeCard--labelOnly :is(h2, p, .homeCareNoticeActions)[hidden] {
  display: none !important;
}
html[data-design="refined"] .homeCareNoticeCard h2 {
  margin: 2px 0 6px;
  font-family: var(--r-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.15;
}
html[data-design="refined"] .homeCareNoticeCard p {
  margin: 0;
  color: var(--luma-text-muted, #6d5c57);
  line-height: 1.45;
}
html[data-design="refined"] .homeCareNoticeTww {
  margin-top: 8px !important;
  font-size: 0.92rem;
}
html[data-design="refined"] .homeCareNoticeActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
html[data-design="refined"] .homeCareNoticeActions .wideButton,
html[data-design="refined"] .homeCareNoticeActions .textLinkBtn {
  flex: 1 1 auto;
}

html[data-design="refined"] .periCheckField {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
html[data-design="refined"] .periCheckField input {
  width: 18px;
  height: 18px;
}
html[data-design="refined"] .periVisitCard,
html[data-design="refined"] .howLumaWorksCard {
  margin-top: 12px;
}
html[data-design="refined"] #profileScreen .profileCardDetails[hidden] {
  display: none !important;
}
html[data-design="refined"] #profileScreen .profileCardDetails {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 24px;
  border: 1px solid rgba(232, 168, 188, 0.22);
  background:
    radial-gradient(circle at 92% 0%, rgba(232, 168, 188, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 253, 254, 0.86), rgba(255, 247, 251, 0.64));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.66) inset,
    0 12px 24px rgba(106, 67, 88, 0.045);
}
html[data-design="refined"] #profileScreen .profileCardSummary {
  min-height: 46px;
  padding: 0;
  gap: 10px;
}
html[data-design="refined"] #profileScreen .profileCardSummary .label {
  margin: 0 0 2px;
  color: var(--you-final-pink, #b85f89);
}
html[data-design="refined"] #profileScreen .profileCardSummary h2 {
  margin: 0;
  color: #4a3040;
  font-family: var(--r-display);
  font-size: clamp(1.15rem, 4.4vw, 1.42rem);
  font-weight: 550;
  line-height: 1.1;
}
html[data-design="refined"] #profileScreen .profileCardDetails:not([open]) {
  padding-bottom: 12px;
}
html[data-design="refined"] #profileScreen .profileCardDetails[open] > .profileCardSummary {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(232, 168, 188, 0.22);
}
html[data-design="refined"] #profileScreen .profileCardDetails[open] .profileIdentityChevron {
  transform: rotate(180deg);
}
html[data-design="refined"] .periVisitSummary {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
html[data-design="refined"] .periVisitSummary li {
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff4f7;
  color: #4a3040;
  font-family: var(--r-sans, Nunito, sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}
html[data-design="refined"] .periVisitHighlightsLabel {
  margin: 14px 0 0;
  font-family: var(--r-display, Cormorant, serif);
  font-size: 1.05rem;
  font-weight: 550;
  color: #4a3040;
}
html[data-design="refined"] .periVisitList {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
html[data-design="refined"] .periVisitList li {
  padding: 10px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--luma-surface-card, #fff) 88%, #f5d0dc);
  color: #4a3040;
  font-family: var(--r-sans, Nunito, sans-serif);
}
html[data-design="refined"] #copyPeriVisitNotesBtn {
  margin-top: 12px;
}
html[data-design="refined"] .reminderPacksLabel {
  font-family: var(--r-sans, Nunito, sans-serif);
  color: #4a3040;
}
html[data-design="refined"] .reminderPackBtn {
  border: 1px solid color-mix(in srgb, #e8a8bc 42%, transparent);
  background: #fff4f7;
  color: #4a3040;
  font-family: var(--r-sans, Nunito, sans-serif);
}
html[data-design="refined"] .howLumaWorksCard {
  font-family: var(--r-sans, Nunito, sans-serif) !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  font-kerning: normal !important;
  font-variant-ligatures: none !important;
  font-feature-settings: normal !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}
html[data-design="refined"] .howLumaWorksCard *,
html[data-design="refined"] .howLumaWorksCard *::before,
html[data-design="refined"] .howLumaWorksCard *::after {
  letter-spacing: normal !important;
  word-spacing: normal !important;
  font-kerning: normal !important;
  font-variant-ligatures: none !important;
  font-feature-settings: normal !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}
html[data-design="refined"] .howLumaWorksCard *:not(.profileIdentityChevron)::before,
html[data-design="refined"] .howLumaWorksCard *:not(.profileIdentityChevron)::after {
  content: none !important;
}
html[data-design="refined"] #profileScreen .howLumaWorksCard .profileCardSummary .label {
  font-family: var(--r-sans, Nunito, sans-serif) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.08em !important;
  word-spacing: 0.12em !important;
  text-transform: uppercase !important;
}
html[data-design="refined"] #profileScreen .howLumaWorksCard .profileCardSummary h2 {
  font-family: var(--r-display, "Cormorant Garamond", Georgia, serif) !important;
  font-style: italic !important;
  font-weight: 550 !important;
  font-size: 1.12rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.08em !important;
  color: var(--you-row-title, #b75c84) !important;
  -webkit-text-fill-color: var(--you-row-title, #b75c84) !important;
  text-transform: none !important;
}
html[data-design="refined"] .howLumaWorksCard #howLumaWorksLead,
html[data-design="refined"] .howLumaWorksCard .settingsSectionLead {
  margin: 10px 0 0 !important;
  font-family: var(--r-sans, Nunito, sans-serif) !important;
  font-size: 0.84rem !important;
  font-weight: 550 !important;
  font-style: normal !important;
  line-height: 1.45 !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.06em !important;
  color: #7a5c6a !important;
  -webkit-text-fill-color: #7a5c6a !important;
  text-transform: none !important;
}
html[data-design="refined"] .howLumaSteps {
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
html[data-design="refined"] .howLumaSectionLabel {
  margin: 8px 0 0;
  font-family: var(--r-sans, Nunito, sans-serif) !important;
  font-size: 0.7rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: #e8a8bc !important;
  -webkit-text-fill-color: #e8a8bc !important;
}
html[data-design="refined"] .howLumaStepBtn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, #e8a8bc 22%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, #fff 88%, #fff4f7);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #4a3040;
  -webkit-text-fill-color: #4a3040;
  box-shadow: none;
}
html[data-design="refined"] .howLumaStepCopy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
html[data-design="refined"] .howLumaStepBtn strong {
  font-family: var(--r-sans, Nunito, sans-serif) !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1.25 !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.06em !important;
  color: #4a3040 !important;
  -webkit-text-fill-color: #4a3040 !important;
  text-transform: none !important;
}
html[data-design="refined"] .howLumaStepCopy > span {
  font-family: var(--r-sans, Nunito, sans-serif) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 1.45 !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.06em !important;
  color: #7a5c6a !important;
  -webkit-text-fill-color: #7a5c6a !important;
  text-transform: none !important;
}
html[data-design="refined"] .howLumaStepBtn em {
  font-family: var(--r-sans, Nunito, sans-serif) !important;
  font-style: normal !important;
  font-size: 0.72rem !important;
  font-weight: 750 !important;
  color: #e8a8bc !important;
  -webkit-text-fill-color: #e8a8bc !important;
}
html[data-design="refined"] .howLumaWorksCard .textLinkBtn {
  margin-top: 12px;
  font-family: var(--r-sans, Nunito, sans-serif) !important;
  font-size: 0.82rem !important;
}
html[data-design="refined"] .homeHonestConfidence {
  margin: 6px 0 0;
  font-family: var(--r-sans, Nunito, sans-serif);
  font-size: 0.82rem;
  font-weight: 650;
  color: #4a3040;
}
html[data-design="refined"] .homeAfterLossQuietCard {
  margin: 0 16px 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, #e8a8bc 24%, transparent);
  background: #fff4f7;
}
html[data-design="refined"] .homeAfterLossQuietRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
html[data-design="refined"] .homeAfterLossQuietRow h3 {
  margin: 0;
  font-family: var(--r-sans, Nunito, sans-serif);
  font-size: 0.92rem;
  color: #4a3040;
}
html[data-design="refined"] .homeAfterLossQuietRow p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #7a5c6a;
}
html[data-design="refined"] .homeJourneySkipNote {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: #7a5c6a;
}
html[data-design="refined"] .homeJourneyActions {
  display: grid;
  gap: 8px;
}
html[data-design="refined"] .tabBar button b {
  font-family: var(--r-sans, Nunito, sans-serif) !important;
  font-style: normal !important;
  font-weight: 650 !important;
  letter-spacing: 0.02em !important;
  word-spacing: 0.08em !important;
  font-kerning: normal !important;
  font-variant-ligatures: none !important;
  font-feature-settings: normal !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  text-transform: none !important;
}
html[data-design="refined"] .tabBar button b::before,
html[data-design="refined"] .tabBar button b::after {
  content: none !important;
}
html[data-design="refined"] .navTour {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: end center;
  padding: 18px 16px calc(92px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, #2a1c22 22%, transparent);
  pointer-events: none;
}
html[data-design="refined"] .navTour[hidden] {
  display: none;
}
html[data-design="refined"] .navTourCard {
  width: min(440px, 100%);
  padding: 16px 16px 12px;
  border-radius: 22px;
  background: var(--luma-surface-card, #fff);
  box-shadow: 0 18px 40px color-mix(in srgb, #2a1c22 24%, transparent);
  pointer-events: auto;
  font-family: var(--r-sans, Nunito, sans-serif);
  letter-spacing: normal;
  word-spacing: normal;
}
html[data-design="refined"] .navTourCard .label,
html[data-design="refined"] .navTourCard h2,
html[data-design="refined"] .navTourCard p {
  letter-spacing: normal !important;
  word-spacing: 0.04em !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  font-variant-ligatures: none;
}
html[data-design="refined"] .navTourCard h2 {
  margin: 4px 0 8px;
  font-family: var(--r-sans, Nunito, sans-serif);
  font-size: 1.15rem;
  font-weight: 750;
  color: #4a3040;
  -webkit-text-fill-color: #4a3040;
}
html[data-design="refined"] .navTourCard p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #7a5c6a;
  -webkit-text-fill-color: #7a5c6a;
}
html[data-design="refined"] .navTourCard .label {
  font-size: 0.68rem;
  letter-spacing: 0.08em !important;
}
html[data-design="refined"] .navTourActions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
html[data-design="refined"] .navTourActions .wideButton {
  flex: 1;
}
html[data-design="refined"] body.luma-nav-tour .tabBar button.active {
  box-shadow: 0 0 0 3px color-mix(in srgb, #e8a8bc 70%, #fff);
}

html[data-design="refined"] .homeFertilityConfidenceCard,
html[data-design="refined"] .homeJourneyCard {
  margin-top: 10px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--luma-surface-card, #fff) 94%, #f5d0dc);
  border: 1px solid color-mix(in srgb, #e8a8bc 20%, transparent);
}
html[data-design="refined"] .fertilityConfidenceScoreRow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 10px;
}
html[data-design="refined"] .fertilityConfidenceScoreRow strong {
  font-family: var(--r-display);
  font-size: 2rem;
  font-weight: 600;
}
html[data-design="refined"] .fertilityConfidenceMeter,
html[data-design="refined"] .homeJourneyProgress {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, #e8a8bc 18%, #fff);
  overflow: hidden;
  margin-bottom: 12px;
}
html[data-design="refined"] .fertilityConfidenceMeter i,
html[data-design="refined"] .homeJourneyProgress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #e8a8bc, #f0b8c8);
  border-radius: inherit;
}
html[data-design="refined"] .fertilityConfidenceSignals {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 8px;
}
html[data-design="refined"] .fertilityConfidenceSignals li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  font-size: 13px;
  padding-bottom: 6px;
}
html[data-design="refined"] .fertilityConfidenceSignals li i {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 999px;
  background: #e8a8bc;
  opacity: 0.85;
}
html[data-design="refined"] .communityTopicRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
html[data-design="refined"] .communityTopicChip {
  border: 1px solid color-mix(in srgb, #e8a8bc 35%, transparent);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
}
html[data-design="refined"] .communityTopicChip.active {
  background: color-mix(in srgb, #f5d0dc 55%, #fff);
}
html[data-design="refined"] .communityQaList {
  display: grid;
  gap: 10px;
}
html[data-design="refined"] .communityQaCard {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid color-mix(in srgb, #e8ddd6 80%, transparent);
}
html[data-design="refined"] .communityQaCard h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}
html[data-design="refined"] .communityQaCard p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--luma-text-muted, #6d5c57);
}
html[data-design="refined"] .pathwayProgramList {
  margin: 8px 0 12px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
}
html[data-design="refined"] .partnerSupportTodayMock {
  margin: 10px 0;
  padding: 12px;
  border-radius: 14px;
  background: color-mix(in srgb, #fff 80%, #f5d0dc);
}
html[data-design="refined"] body.focus-perimenopause #todayScreen .homePhaseLine,
html[data-design="refined"] body.focus-perimenopause #cycleScreen .trackHeroHeadline {
  color: color-mix(in srgb, #7a4e3a 70%, #3a2f2c);
}

/* ===== 20260920-moat1: Support / privacy / pregnancy ops ===== */
html[data-design="refined"] .homeSupportCard,
html[data-design="refined"] .homePrivacyHeadline,
html[data-design="refined"] .pregnancyKickCard,
html[data-design="refined"] .pregnancyAppointmentsCard {
  margin-top: 10px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--luma-surface-card, #fff) 94%, #f5d0dc);
  border: 1px solid color-mix(in srgb, #e8a8bc 18%, transparent);
}
html[data-design="refined"] .homeSupportCard[data-mode="healing"] {
  background: color-mix(in srgb, #fff 88%, #e8d5e2);
  border-color: color-mix(in srgb, #7a3f6a 18%, transparent);
}
html[data-design="refined"] .homeSupportCard h2,
html[data-design="refined"] .homePrivacyHeadline h2,
html[data-design="refined"] .pregnancyKickCard h2,
html[data-design="refined"] .pregnancyAppointmentsCard h2 {
  margin: 4px 0 8px;
  font-family: var(--r-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}
html[data-design="refined"] .homeSupportCard p,
html[data-design="refined"] .homePrivacyHeadline p,
html[data-design="refined"] .pregnancyKickCard p,
html[data-design="refined"] .pregnancyAppointmentsCard p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--luma-text-muted, #6d5c57);
}
html[data-design="refined"] .homeSupportActions {
  display: grid;
  gap: 8px;
}
html[data-design="refined"] .fertilityConfidenceExplain {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--luma-text-muted, #6d5c57);
}
html[data-design="refined"] .pregnancyKickSession {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, #fff 70%, #f5d0dc);
}
html[data-design="refined"] .pregnancyKickSession strong {
  font-family: var(--r-display);
  font-size: 2.4rem;
  font-weight: 600;
}
html[data-design="refined"] .pregnancyKickSession span {
  font-variant-numeric: tabular-nums;
  font-size: 1.1rem;
  font-weight: 600;
}
html[data-design="refined"] .pregnancyKickActions {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
html[data-design="refined"] .pregnancyKickHistory,
html[data-design="refined"] .pregnancyAppointmentsList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
html[data-design="refined"] .pregnancyKickHistory li,
html[data-design="refined"] .pregnancyAppointmentsList li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid color-mix(in srgb, #e8ddd6 80%, transparent);
  font-size: 13px;
}
html[data-design="refined"] .pregnancyAppointmentsAdd {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}
html[data-design="refined"] .pregnancyAppointmentsAdd input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #e8ddd6 90%, transparent);
  padding: 10px 12px;
  font: inherit;
}
html[data-design="refined"] .pregnancyAppointmentItem.is-done span {
  text-decoration: line-through;
  opacity: 0.7;
}
html[data-design="refined"] .pregnancyAppointmentItem.is-past {
  opacity: 0.72;
}
html[data-design="refined"] .pregnancyApptToggle {
  flex: 1;
  display: grid;
  gap: 2px;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
html[data-design="refined"] .pregnancyVisitPrepAsk {
  margin-top: 10px;
}
html[data-design="refined"] .homePrivacyHeadline {
  background: color-mix(in srgb, #fff 92%, #d9ebe6);
  border-color: color-mix(in srgb, #1b7b74 14%, transparent);
}

/* ===== 20260920-chatp0: conversation-first Luma sheet ===== */
html[data-design="refined"] .phoneShell .lumaSheetChat {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge {
  order: 1 !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 4px !important;
  width: 100% !important;
  padding: 4px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: color-mix(in srgb, var(--luma-surface-card, #fff8fb) 78%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 34%, transparent) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode {
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
  grid-template-columns: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode span,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode em {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode strong {
  font-size: 0.82rem !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode.active {
  background: color-mix(in srgb, var(--auth-peach, #f0b0c4) 90%, #fff) !important;
  color: #fff !important;
}

html[data-design="refined"] body.pregnancyFocusMode .phoneShell .lumaSheetChat .lumaConciergeMode.active,
html[data-design="refined"] body.focus-pregnant .phoneShell .lumaSheetChat .lumaConciergeMode.active {
  background: color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 82%, #2f6b5f) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode.active strong {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  max-height: none !important;
  overflow: visible !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow button {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  font-size: 0.76rem !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #mobileMessages {
  order: 2 !important;
  flex: 1 1 auto !important;
  min-height: 160px !important;
  max-height: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaSheetComposer {
  order: 3 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoicePanel {
  order: 4 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaInsightsSection,
html[data-design="refined"] .phoneShell .lumaSheet .lumaInsightsSection {
  order: 9 !important;
  margin-top: 4px !important;
  padding: 0 !important;
  border-top: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 28%, transparent) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaInsightsSection > summary.lumaInsightsHeader {
  min-height: 44px !important;
  padding: 10px 2px !important;
  align-items: center !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaInsightsSection > summary h3 {
  font-size: 0.86rem !important;
  font-weight: 650 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessage.luma {
  font-size: 0.92rem !important;
  line-height: 1.45 !important;
}

/* ===== 20260920-chatp1: hierarchy, Support default, calm polish ===== */
html[data-design="refined"] .phoneShell .lumaSheet {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetBrand {
  font-size: 0.72rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-family: var(--r-sans) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  color: var(--luma-text-muted, #6d5c57) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeader h2 {
  margin: 2px 0 0 !important;
  font-family: var(--r-display) !important;
  font-size: clamp(1.55rem, 6.2vw, 2rem) !important;
  font-style: italic !important;
  font-weight: 600 !important;
  line-height: 1.05 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetContext {
  margin-top: 4px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeaderActions {
  gap: 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeaderActions button {
  padding: 0 8px !important;
  font-size: 0.74rem !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  overflow: hidden !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge {
  order: 1 !important;
  flex: 0 0 auto !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #mobileMessages {
  order: 2 !important;
  flex: 1 1 auto !important;
  min-height: 120px !important;
  max-height: none !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaCareFootnote {
  order: 3 !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 2px !important;
  font-size: 0.7rem !important;
  line-height: 1.35 !important;
  color: var(--luma-text-muted, #6d5c57) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaSheetComposer {
  order: 4 !important;
  flex: 0 0 auto !important;
  position: sticky !important;
  bottom: 0 !important;
  margin-top: 0 !important;
  padding-top: 2px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaChatUpgradeNote {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaVoicePanel {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheet > .lumaInsightsSection,
html[data-design="refined"] .phoneShell .lumaInsightsDrawer {
  order: unset !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 16px 12px !important;
  border-top: 1px solid color-mix(in srgb, var(--luma-accent-soft, #f0cfdf) 28%, transparent) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  max-height: 42vh !important;
  overflow: auto !important;
}

html[data-design="refined"] .phoneShell .lumaInsightsDrawer:not([open]) {
  max-height: none !important;
  overflow: visible !important;
}

html[data-design="refined"] .phoneShell .lumaInsightsDrawer:not([open]) > summary {
  display: none !important;
}

html[data-design="refined"] .phoneShell .lumaInsightsDrawer[open] > summary {
  display: flex !important;
  min-height: 40px !important;
  padding: 8px 0 !important;
}

/* ===== 20260920-darkpass1: dark/moonlit contrast safety net (wins last) =====
   Cream/#fff cards + chips still rendered in dark themes while ink was forced
   light → white-on-white. Prefer dark glass surfaces + light ink. */

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell :is(
    .homeDailyInsightCard,
    .homePrivacyHeadline,
    .homeSupportCard,
    .homeFertilityConfidenceCard,
    .homeJourneyCard,
    .learnCommunityTeaser
  ) {
  background: var(--luma-glass-surface) !important;
  border-color: var(--luma-ai-border) !important;
  box-shadow: var(--luma-glass-surface-shadow) !important;
  color: var(--luma-on-glass) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell :is(
    .homeDailyInsightCard,
    .homePrivacyHeadline,
    .homeSupportCard,
    .homeFertilityConfidenceCard,
    .homeJourneyCard,
    .learnCommunityTeaser
  ) :is(h2, h3, strong) {
  color: var(--luma-on-glass-heading, #faf2f5) !important;
  -webkit-text-fill-color: var(--luma-on-glass-heading, #faf2f5) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell :is(
    .homeDailyInsightCard,
    .homePrivacyHeadline,
    .homeSupportCard,
    .homeFertilityConfidenceCard,
    .homeJourneyCard,
    .learnCommunityTeaser
  ) :is(.label, p, span, em) {
  color: var(--luma-on-glass-muted, #e4d0d8) !important;
  -webkit-text-fill-color: var(--luma-on-glass-muted, #e4d0d8) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell :is(
    .homeDailyInsightCard,
    .homePrivacyHeadline,
    .homeSupportCard,
    .learnCommunityTeaser
  ) :is(.textLinkBtn, a, button.textLinkBtn) {
  color: var(--luma-on-glass-link, #f0d0dc) !important;
  -webkit-text-fill-color: var(--luma-on-glass-link, #f0d0dc) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .homeSupportCard[data-mode="healing"] {
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(200, 140, 180, 0.16), transparent 58%),
    var(--luma-glass-surface) !important;
  border-color: rgba(200, 140, 180, 0.28) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell :is(.communityTopicChip, .communityQaCard, .communityPatternCard, .partnerSupportTodayMock) {
  background: color-mix(in srgb, var(--luma-surface-elevated) 88%, transparent) !important;
  border-color: var(--luma-ai-border) !important;
  color: var(--luma-text-heading) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell :is(.communityTopicChip, .communityQaCard, .communityPatternCard) :is(h3, p, strong, span) {
  color: var(--luma-text-heading) !important;
  -webkit-text-fill-color: var(--luma-text-heading) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .communityPatternCard p,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .communityQaCard p {
  color: var(--luma-text-muted) !important;
  -webkit-text-fill-color: var(--luma-text-muted) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .learnCommunityTeaser .communityMirrorCard {
  background: rgba(0, 0, 0, 0.28) !important;
  color: var(--luma-on-dark-heading, #faf2f5) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell #cycleScreen .pregnancyRedFlagLabel {
  color: var(--luma-danger, #f0a0a8) !important;
  -webkit-text-fill-color: var(--luma-danger, #f0a0a8) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell #cycleScreen .pregnancyRedFlagBtn {
  background: var(--luma-danger-bg, rgba(154, 59, 70, 0.32)) !important;
  border-color: var(--luma-danger-border, rgba(240, 140, 150, 0.45)) !important;
  color: #ffe0e4 !important;
  -webkit-text-fill-color: #ffe0e4 !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell #cycleScreen .monthCalendarDay:not(.empty):not(.period):not(.active):not(.fertile):not(.ovulation):not(.tender):not(.predicted) {
  background: rgba(255, 248, 252, 0.16) !important;
  border-color: rgba(255, 220, 230, 0.14) !important;
  color: #f8f2f8 !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell #cycleScreen .monthCalendarDay .dayNumber,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell #cycleScreen .logDatePicker .monthCalendarDay .dayNumber,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell #cycleScreen .yearCalendarPanel .monthCalendarDay .dayNumber {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell #cycleScreen .monthCalendarDay.pregnancyDay:not(.selected),
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.focus-pregnant .phoneShell #cycleScreen .monthCalendarDay.pregnancyDay:not(.selected) {
  background: rgba(255, 248, 252, 0.14) !important;
  color: #f8f2f8 !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell #cycleScreen .monthCalendarDay.pregnancyDay:not(.selected) .dayNumber,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.focus-pregnant .phoneShell #cycleScreen .monthCalendarDay.pregnancyDay:not(.selected) .dayNumber {
  color: #f8f2f8 !important;
  -webkit-text-fill-color: #f8f2f8 !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell #cycleScreen .monthCalendarDay:is(.period, .active, .fertile, .ovulation, .tender, .predicted) .dayNumber {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergeModes {
  background: transparent !important;
  border-color: transparent !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergeMode:not(.active) {
  background: transparent !important;
  color: var(--luma-on-glass-muted, #e4d0d8) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergeMode:not(.active) strong {
  color: var(--luma-on-glass-heading, #faf2f5) !important;
  -webkit-text-fill-color: var(--luma-on-glass-heading, #faf2f5) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergeMode.active {
  background: color-mix(in srgb, var(--luma-accent) 42%, #4a3040) !important;
  color: #fff8fb !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergeMode.active strong {
  color: #fff8fb !important;
  -webkit-text-fill-color: #fff8fb !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .lumaSheetChat .lumaConciergeMode.active,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.focus-pregnant .phoneShell .lumaSheetChat .lumaConciergeMode.active {
  background: color-mix(in srgb, var(--luma-accent-teal, #9bd9cb) 38%, #1f3a34) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaSheetComposer {
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--luma-shell) 94%, transparent) 32%
  ) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .mobileChatForm {
  background: var(--luma-input-surface) !important;
  border: 1px solid var(--luma-input-border) !important;
  box-shadow: none !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .mobileChatForm input {
  color: var(--luma-text-heading) !important;
  -webkit-text-fill-color: var(--luma-text-heading) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .mobileChatForm input::placeholder {
  color: var(--luma-text-muted) !important;
  opacity: 0.85;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell :is(
    .signalGrid button:not(.active):not(.pregnancyRedFlagBtn),
    .feelingGrid button:not(.active),
    .bodyLogPurpose,
    .importedCycles .historyChip
  ) {
  color: var(--luma-on-light-surface-heading, #3a2a34) !important;
  -webkit-text-fill-color: var(--luma-on-light-surface-heading, #3a2a34) !important;
}

/* Quiet chip dismiss — never a fat red pill (all themes / focus modes). */
html[data-design="refined"] .phoneShell :is(.historyChip, .noPeriodHistoryChip, .customDateChip) {
  gap: 8px !important;
  padding: 7px 8px 7px 12px !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell :is(
  .historyChip .historyChipRemove,
  .historyChip button.historyChipRemove,
  .noPeriodHistoryChip .historyChipRemove,
  .noPeriodHistoryChip button.historyChipRemove,
  .customDateChip .historyChipRemove,
  .customDateChip button.historyChipRemove,
  .importedCycles .historyChip button,
  .noPeriodHistoryChips .noPeriodHistoryChip button,
  .customDateChips .customDateChip button
) {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: color-mix(in srgb, var(--luma-on-light-surface-heading, #3a2a34) 10%, transparent) !important;
  color: color-mix(in srgb, var(--luma-on-light-surface-heading, #3a2a34) 78%, transparent) !important;
  -webkit-text-fill-color: color-mix(in srgb, var(--luma-on-light-surface-heading, #3a2a34) 78%, transparent) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell :is(
  .historyChip .historyChipRemove,
  .noPeriodHistoryChip .historyChipRemove,
  .customDateChip .historyChipRemove,
  .importedCycles .historyChip button,
  .noPeriodHistoryChips .noPeriodHistoryChip button
):is(:hover, :focus-visible) {
  background: color-mix(in srgb, #a8494f 18%, transparent) !important;
  color: #8a3038 !important;
  -webkit-text-fill-color: #8a3038 !important;
}

/* ===== 20260920-chatflat1: kill tacky nested chat boxes =====
   Conversation surface, not a stack of bordered cards. */

html[data-design="refined"] .phoneShell .lumaSheet {
  background: var(--luma-shell, #1b151d) !important;
  box-shadow: none !important;
}

html[data-design="refined"]:not([data-theme="dark"]):not([data-theme="moonlit"]) .phoneShell .lumaSheet {
  background: linear-gradient(180deg, #fdf8fa 0%, #f7f0f4 100%) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 8px 18px 18px !important;
  gap: 12px !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"]) .phoneShell .lumaSheetChat {
  background: transparent !important;
}

/* Close: quiet ghost, not a bordered tile */
html[data-design="refined"] .phoneShell .lumaSheetClose {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--luma-text-heading) !important;
  -webkit-text-fill-color: var(--luma-text-heading) !important;
  font-size: 1.45rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  opacity: 0.72 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetClose:hover,
html[data-design="refined"] .phoneShell .lumaSheetClose:focus-visible {
  opacity: 1 !important;
  background: color-mix(in srgb, var(--luma-text-heading) 8%, transparent) !important;
}

/* Header actions: text links, no underline chrome / pill frames */
html[data-design="refined"] .phoneShell .lumaSheetHeaderActions button {
  min-height: 0 !important;
  padding: 4px 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  color: var(--luma-text-muted) !important;
  -webkit-text-fill-color: var(--luma-text-muted) !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeaderActions button[aria-expanded="true"],
html[data-design="refined"] .phoneShell .lumaSheetHeaderActions button:active {
  color: var(--luma-text-heading) !important;
  -webkit-text-fill-color: var(--luma-text-heading) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

/* Concierge: no card wrapper */
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergePanel {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Mode lane: bare tabs, no outer tray */
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergeModes {
  display: flex !important;
  gap: 4px !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--luma-text-muted) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode strong {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode.active {
  background: color-mix(in srgb, var(--luma-accent) 22%, transparent) !important;
  color: var(--luma-text-heading) !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode.active strong {
  color: var(--luma-text-heading) !important;
  -webkit-text-fill-color: var(--luma-text-heading) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergeMode.active {
  background: color-mix(in srgb, var(--luma-accent) 28%, transparent) !important;
  color: #fff8fb !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergeMode.active strong {
  color: #fff8fb !important;
  -webkit-text-fill-color: #fff8fb !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergeMode:not(.active) strong {
  color: var(--luma-on-glass-muted, #e4d0d8) !important;
  -webkit-text-fill-color: var(--luma-on-glass-muted, #e4d0d8) !important;
}

/* ===== 20260920-chatflat4: keep chat bubbles; kill prompt-row squares ===== */

/* Restore Luma reply bubbles */
html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessages {
  gap: 10px !important;
  padding: 6px 0 2px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessage {
  max-width: 92% !important;
  padding: 12px 14px !important;
  border: 0 !important;
  box-shadow: none !important;
  font-weight: 500 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessage.luma,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .mobileMessage.luma {
  border-radius: 18px 18px 18px 6px !important;
  background: color-mix(in srgb, var(--luma-surface-card) 72%, transparent) !important;
  color: var(--luma-text) !important;
  -webkit-text-fill-color: var(--luma-text) !important;
  font-size: 0.95rem !important;
  line-height: 1.48 !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .mobileMessage.luma {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f7eef4 !important;
  -webkit-text-fill-color: #f7eef4 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessage.you {
  max-width: 88% !important;
  margin-left: auto !important;
  border-radius: 18px 18px 6px 18px !important;
  background: color-mix(in srgb, var(--luma-accent) 72%, #4a3040) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Kill the 3-column grid squares under Facts / Support / Symptoms */
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergePanel,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergePanel {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaPromptGroupRow,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat #lumaConciergePromptRow,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaPromptGroupRow {
  display: flex !important;
  flex-wrap: wrap !important;
  grid-template-columns: none !important;
  gap: 6px 14px !important;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  align-items: center !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow > button,
html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow button,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaPromptGroupRow > button,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat #lumaConciergePromptRow > button,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat #lumaConciergePromptRow button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 2px 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  justify-content: flex-start !important;
  color: var(--luma-accent-text, var(--luma-link)) !important;
  -webkit-text-fill-color: var(--luma-accent-text, var(--luma-link)) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-color: color-mix(in srgb, var(--luma-accent) 42%, transparent) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat #lumaConciergePromptRow button {
  color: color-mix(in srgb, var(--luma-accent) 82%, #fff) !important;
  -webkit-text-fill-color: color-mix(in srgb, var(--luma-accent) 82%, #fff) !important;
  text-decoration-color: color-mix(in srgb, var(--luma-accent) 40%, transparent) !important;
}

@media (max-width: 430px) {
  html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow {
    grid-template-columns: none !important;
  }
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaCareFootnote {
  border: 0 !important;
  background: transparent !important;
  color: var(--luma-text-muted) !important;
  -webkit-text-fill-color: var(--luma-text-muted) !important;
}

/* Composer: one quiet field, no nested frame */
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaSheetComposer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-top: 6px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 4px 4px 4px 14px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: color-mix(in srgb, var(--luma-surface-card) 82%, transparent) !important;
  box-shadow: none !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .mobileChatForm {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm > button {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

/* Analysis strip: same sheet, no cream slab */
html[data-design="refined"] .phoneShell .lumaSheet > .lumaInsightsSection,
html[data-design="refined"] .phoneShell .lumaInsightsDrawer {
  background: transparent !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-top: 1px solid color-mix(in srgb, var(--luma-text-heading) 10%, transparent) !important;
  box-shadow: none !important;
  padding: 10px 18px 16px !important;
}

html[data-design="refined"] .phoneShell .lumaInsightsDrawer .lumaInsightsHeader {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 48px !important;
  padding: 8px 0 !important;
}

html[data-design="refined"] .phoneShell .lumaInsightsDrawer .lumaInsightsHeader::after {
  border: 0 !important;
  background: color-mix(in srgb, var(--luma-text-heading) 8%, transparent) !important;
  box-shadow: none !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaInsightsDrawer :is(.label, h3, .lumaInsightsDesc, p) {
  color: var(--luma-on-glass-muted, #e4d0d8) !important;
  -webkit-text-fill-color: var(--luma-on-glass-muted, #e4d0d8) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaInsightsDrawer h3 {
  color: var(--luma-on-glass-heading, #faf2f5) !important;
  -webkit-text-fill-color: var(--luma-on-glass-heading, #faf2f5) !important;
}

/* ===== 20260920-chatflat5: pill modes tray + separate chat bubbles ===== */

/* Facts / Support / Symptoms — same pill chrome as "Tap a prompt" composer */
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergeModes {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 4px !important;
  width: 100% !important;
  padding: 4px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--luma-surface-card) 82%, transparent) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergeModes {
  background: rgba(255, 255, 255, 0.06) !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode.active {
  background: color-mix(in srgb, var(--luma-accent) 22%, transparent) !important;
  box-shadow: none !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergeMode.active {
  background: color-mix(in srgb, var(--luma-accent) 42%, #4a3040) !important;
  color: #fff8fb !important;
}

/* Bubbles were stuck: #mobileMessages { display:block } killed gap */
html[data-design="refined"] .phoneShell .lumaSheetChat #mobileMessages,
html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessages {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;
  padding: 8px 0 4px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #mobileMessages:empty {
  display: flex !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #mobileMessages > .mobileMessage,
html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessage {
  flex: 0 0 auto !important;
  margin: 0 !important;
  max-width: 92% !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #mobileMessages > .mobileMessage.luma,
html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessage.luma {
  align-self: flex-start !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat #mobileMessages > .mobileMessage.you,
html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessage.you {
  align-self: flex-end !important;
}

/* ===== 20260920-chatflat6: kill square box around modes/prompts =====
   Dark theme rule (html[data-theme]…) was winning over chatflat transparent. */
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergePanel,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaConcierge,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaConcierge,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaConciergePanel,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaConciergePanel,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConcierge,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergePanel {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

/* ===== 20260920-chatflat7: same chat layout in every focus mode =====
   Track / TTC / Pregnancy / Peri / healing — one chrome, no focus forks. */

html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-tracking, .focus-perimenopause)
  .phoneShell .lumaSheetChat .lumaConcierge,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConcierge,
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-tracking)
  .phoneShell .lumaSheetChat .lumaConcierge,
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-tracking)
  .phoneShell .lumaSheetChat .lumaConcierge,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .lumaConcierge,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .lumaConcierge,
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant)
  .phoneShell .lumaSheetChat .lumaConciergePanel,
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant)
  .phoneShell .lumaSheetChat .lumaConciergePanel {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* Modes tray: identical pill in every focus */
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-tracking)
  .phoneShell .lumaSheetChat .lumaConciergeModes,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeModes,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-tracking)
  .phoneShell .lumaSheetChat .lumaConciergeModes,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergeModes {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  width: 100% !important;
  padding: 4px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--luma-surface-card) 82%, transparent) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-tracking)
  .phoneShell .lumaSheetChat .lumaConciergeModes,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergeModes {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Same active accent everywhere — no pregnancy teal fork */
html[data-design="refined"] body.pregnancyFocusMode .phoneShell .lumaSheetChat .lumaConciergeMode.active,
html[data-design="refined"] body.focus-pregnant .phoneShell .lumaSheetChat .lumaConciergeMode.active,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .lumaSheetChat .lumaConciergeMode.active,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.focus-pregnant .phoneShell .lumaSheetChat .lumaConciergeMode.active,
html[data-design="refined"] .phoneShell .lumaSheetChat .lumaConciergeMode.active,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergeMode.active {
  background: color-mix(in srgb, var(--luma-accent) 42%, #4a3040) !important;
  color: #fff8fb !important;
  box-shadow: none !important;
}

html[data-design="refined"]:not([data-theme="dark"]):not([data-theme="moonlit"])
  body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-tracking)
  .phoneShell .lumaSheetChat .lumaConciergeMode.active,
html[data-design="refined"]:not([data-theme="dark"]):not([data-theme="moonlit"])
  .phoneShell .lumaSheetChat .lumaConciergeMode.active {
  background: color-mix(in srgb, var(--luma-accent) 22%, transparent) !important;
  color: var(--luma-text-heading) !important;
}

/* Bubbles + composer identical across foci */
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-tracking)
  .phoneShell .lumaSheetChat #mobileMessages,
html[data-design="refined"] .phoneShell .lumaSheetChat #mobileMessages,
html[data-design="refined"] .phoneShell .lumaSheetChat .mobileMessages {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-tracking)
  .phoneShell .lumaSheetChat .mobileChatForm,
html[data-design="refined"] .phoneShell .lumaSheetChat .mobileChatForm,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-tracking)
  .phoneShell .lumaSheetChat .mobileChatForm,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .mobileChatForm {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px 4px 4px 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--luma-surface-card) 82%, transparent) !important;
  box-shadow: none !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-tracking)
  .phoneShell .lumaSheetChat .mobileChatForm,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .lumaSheetChat .mobileChatForm {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Prompt links stay text-underlines in every focus (never squares) */
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-tracking)
  .phoneShell .lumaSheetChat #lumaConciergePromptRow button,
html[data-design="refined"] .phoneShell .lumaSheetChat #lumaConciergePromptRow button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 2px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* ===== 20260922-pregdark1: pregnancy home dark contrast =====
   Week tracker stayed cream/#fff while dark ink was forced light → invisible. */

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .pregnancyWeekTracker,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.focus-pregnant .phoneShell .pregnancyWeekTracker {
  background: var(--luma-glass-surface, rgba(48, 40, 52, 0.92)) !important;
  border: 1px solid var(--luma-ai-border, rgba(255, 220, 230, 0.14)) !important;
  box-shadow: var(--luma-glass-surface-shadow, 0 12px 28px rgba(0, 0, 0, 0.28)) !important;
  color: var(--luma-on-glass, #e8dce2) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .pregnancyWeekTracker .pregnancyWeekNav,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.focus-pregnant .phoneShell .pregnancyWeekTracker .pregnancyWeekNav {
  background: transparent !important;
  border: 0 !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .pregnancyWeekTracker .pregnancyWeekNavLabel .label,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .pregnancyWeekTracker #pregnancyWeekTrimester,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.focus-pregnant .phoneShell .pregnancyWeekTracker .pregnancyWeekNavLabel .label {
  color: var(--luma-on-glass-muted, #e4d0d8) !important;
  -webkit-text-fill-color: var(--luma-on-glass-muted, #e4d0d8) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .pregnancyWeekTracker .pregnancyWeekNavLabel strong,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .pregnancyWeekTracker #pregnancyWeekNavTitle,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.focus-pregnant .phoneShell .pregnancyWeekTracker .pregnancyWeekNavLabel strong {
  color: var(--luma-on-glass-heading, #faf2f5) !important;
  -webkit-text-fill-color: var(--luma-on-glass-heading, #faf2f5) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .pregnancyWeekTracker .pregnancyWeekNavBtn,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.focus-pregnant .phoneShell .pregnancyWeekTracker .pregnancyWeekNavBtn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--luma-on-glass-heading, #faf2f5) !important;
  -webkit-text-fill-color: var(--luma-on-glass-heading, #faf2f5) !important;
  border: 0 !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .pregnancyWeekRailChip,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.focus-pregnant .phoneShell .pregnancyWeekRailChip {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--luma-on-glass-heading, #faf2f5) !important;
  -webkit-text-fill-color: var(--luma-on-glass-heading, #faf2f5) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .pregnancyWeekRailChip.is-current:not(.is-active),
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.focus-pregnant .phoneShell .pregnancyWeekRailChip.is-current:not(.is-active) {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--r-accent-preg, #9bd9cb) 55%, transparent) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .pregnancyWeekRailChip.is-active,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.focus-pregnant .phoneShell .pregnancyWeekRailChip.is-active {
  background: color-mix(in srgb, var(--r-accent-preg, #9bd9cb) 42%, #1f3a34) !important;
  border-color: transparent !important;
  color: #f4fffb !important;
  -webkit-text-fill-color: #f4fffb !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28) !important;
}

/* Size chip: was mint-on-dark with pale ink */
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .pregnancyWeekSizeChip,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .pregnancyStoryHeroCopy .pregnancyWeekSizeChip,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.focus-pregnant .phoneShell .pregnancyWeekSizeChip {
  background: rgba(155, 217, 203, 0.16) !important;
  border: 1px solid rgba(155, 217, 203, 0.28) !important;
  color: #dff7f0 !important;
  -webkit-text-fill-color: #dff7f0 !important;
  opacity: 1 !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .pregnancyNeoMilestone,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.focus-pregnant .phoneShell .pregnancyNeoMilestone {
  color: var(--luma-on-glass-heading, #faf2f5) !important;
  -webkit-text-fill-color: var(--luma-on-glass-heading, #faf2f5) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .pregnancyStoryWeekLine,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.pregnancyFocusMode .phoneShell .pregnancyWeekNumber,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  body.focus-pregnant .phoneShell .pregnancyStoryWeekLine {
  color: var(--luma-on-glass-heading, #faf2f5) !important;
  -webkit-text-fill-color: var(--luma-on-glass-heading, #faf2f5) !important;
}

/* ===== 20260922-pregdark2: kick + visits nested white boxes ===== */

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell :is(.pregnancyKickCard, .pregnancyAppointmentsCard) {
  background: var(--luma-glass-surface, rgba(48, 40, 52, 0.92)) !important;
  border-color: var(--luma-ai-border, rgba(255, 220, 230, 0.14)) !important;
  box-shadow: var(--luma-glass-surface-shadow, none) !important;
  color: var(--luma-on-glass, #e8dce2) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell :is(.pregnancyKickCard, .pregnancyAppointmentsCard) :is(h2, strong) {
  color: var(--luma-on-glass-heading, #faf2f5) !important;
  -webkit-text-fill-color: var(--luma-on-glass-heading, #faf2f5) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell :is(.pregnancyKickCard, .pregnancyAppointmentsCard) :is(.label, p, .pregnancyApptLead) {
  color: var(--luma-on-glass-muted, #e4d0d8) !important;
  -webkit-text-fill-color: var(--luma-on-glass-muted, #e4d0d8) !important;
}

/* Timer / count strip was cream #fff with light ink */
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .pregnancyKickSession {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--luma-on-glass-heading, #faf2f5) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .pregnancyKickSession strong,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .pregnancyKickSession span,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell #pregnancyKickCount,
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell #pregnancyKickTimer {
  color: var(--luma-on-glass-heading, #faf2f5) !important;
  -webkit-text-fill-color: var(--luma-on-glass-heading, #faf2f5) !important;
}

/* Empty / history / visit rows were solid #fff */
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell :is(.pregnancyKickHistory li, .pregnancyAppointmentsList li, .pregnancyKickEmpty) {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--luma-on-glass-muted, #e4d0d8) !important;
  -webkit-text-fill-color: var(--luma-on-glass-muted, #e4d0d8) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell :is(.pregnancyKickHistory li, .pregnancyAppointmentsList li) :is(strong, span, button) {
  color: var(--luma-on-glass-heading, #faf2f5) !important;
  -webkit-text-fill-color: var(--luma-on-glass-heading, #faf2f5) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .pregnancyAppointmentsAdd input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  color: var(--luma-on-glass-heading, #faf2f5) !important;
  -webkit-text-fill-color: var(--luma-on-glass-heading, #faf2f5) !important;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .pregnancyAppointmentsAdd input::placeholder {
  color: var(--luma-on-glass-muted, #e4d0d8) !important;
  opacity: 0.85;
}

html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"])
  .phoneShell .pregnancyAppointmentsAdd button[type="submit"] {
  background: color-mix(in srgb, var(--luma-accent, #e8a8bc) 42%, #4a3040) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff8fb !important;
  -webkit-text-fill-color: #fff8fb !important;
}

/* Weeks 4–6 keep native cord direction so 6→7 does not flip. */

/* ===== 20261003-launchdive2: Luma chat header — title row gets the full width ===== */
html[data-design="refined"] .phoneShell .lumaSheetHeader {
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "main close"
    "actions actions" !important;
  gap: 6px 10px !important;
  padding: 14px 16px 8px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeaderMain {
  grid-area: main !important;
  min-width: 0 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetBrand {
  white-space: nowrap !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeader h2,
html[data-design="refined"] .phoneShell .lumaSheetHeader #lumaSheetTitle {
  font-family: var(--r-display, var(--luma-font-heading, Georgia, serif)) !important;
  font-size: clamp(1.45rem, 5.6vw, 1.75rem) !important;
  font-style: italic !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.01em !important;
}

html[data-design="refined"] .phoneShell .lumaSheetContext {
  margin-top: 2px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeaderActions,
html[data-design="refined"] .phoneShell .lumaSheetHeader .lumaChatControls {
  grid-area: actions !important;
  justify-self: start !important;
  align-self: center !important;
  margin: 0 0 0 -8px !important;
  gap: 2px !important;
}

html[data-design="refined"] .phoneShell .lumaSheetHeaderActions button,
html[data-design="refined"] .phoneShell .lumaSheetHeader .lumaChatControls button {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 8px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
}

html[data-design="refined"] .phoneShell .lumaSheetClose {
  grid-area: close !important;
  align-self: start !important;
}

/* Month arrows stay pinned in the same slots in every focus mode */
html[data-design="refined"] .phoneShell #cycleScreen .monthNavigator,
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .monthNavigator,
html[data-design="refined"] body.focus-trying .phoneShell #cycleScreen .monthNavigator,
html[data-design="refined"] body.focus-tracking .phoneShell #cycleScreen .monthNavigator,
html[data-design="refined"] body.focus-pregnant .phoneShell #cycleScreen .monthNavigator,
html[data-design="refined"] body.focus-perimenopause .phoneShell #cycleScreen .monthNavigator {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  align-items: center !important;
  column-gap: 8px !important;
  min-height: 52px !important;
  margin: 0 0 10px !important;
  padding: 6px 8px !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .monthNavigator .monthTitleWrap {
  grid-column: 2 !important;
  min-width: 0 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .monthNavigator h3,
html[data-design="refined"] .phoneShell #cycleScreen #monthTitle,
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .monthNavigator h3,
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen #monthTitle {
  margin: 0 !important;
  width: 100% !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.1 !important;
  font-size: clamp(1.35rem, 5.2vw, 1.65rem) !important;
}

html[data-design="refined"] .phoneShell #cycleScreen .monthNavigator button,
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #cycleScreen .monthNavigator button {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  justify-self: center !important;
  align-self: center !important;
  line-height: 1 !important;
  font-size: 1.05rem !important;
}

/* Dark / moonlit: keep blush taps and readable ink on white-looking surfaces */
html[data-design="refined"][data-theme="dark"] .phoneShell #authScreen .authCard .authForm .field span.fieldHint,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #authScreen .authCard .authForm .field span.fieldHint {
  color: var(--luma-text-muted, #d8c4cf) !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell #authScreen .authFormError,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #authScreen .authFormError {
  background: rgba(36, 28, 34, 0.96) !important;
  border-color: rgba(232, 168, 188, 0.45) !important;
  color: #f5eef2 !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetHeader h2,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetHeader h2,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetHeader #lumaSheetTitle,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetHeader #lumaSheetTitle {
  color: var(--luma-text-heading, #f5eef2) !important;
  -webkit-text-fill-color: var(--luma-text-heading, #f5eef2) !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .mobileMessage.luma,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .mobileMessage.luma {
  color: var(--luma-text-heading, #f5eef2) !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat #mobileMessages > .mobileMessage.you,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat #mobileMessages > .mobileMessage.you,
html[data-design="refined"][data-theme="dark"] .phoneShell .lumaSheetChat .mobileMessage.you,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .lumaSheetChat .mobileMessage.you {
  background: linear-gradient(135deg, #f0b8cc, #e8a8bc) !important;
  color: #2a2228 !important;
  -webkit-text-fill-color: #2a2228 !important;
}

html[data-design="refined"][data-theme="dark"] .phoneShell .homeTrustAction,
html[data-design="refined"][data-theme="moonlit"] .phoneShell .homeTrustAction {
  color: #2a2228 !important;
  background: linear-gradient(135deg, #f0b8cc, #e8a8bc 55%, #e098b0) !important;
}

/* Focus isolation — pregnancy / TTC / peri chrome cannot leak across modes. */
html[data-design="refined"] body:not(.pregnancyFocusMode):not(.focus-pregnant) .phoneShell :is(
  #pregnancyLogBanner,
  .pregnancyLogBanner,
  #homePregnancyHub,
  #pregnancyWeekCard,
  #pregnancyApptCard,
  #pregnancyKickCard,
  #pregnancyAppointmentsCard,
  #pregnancyCalendarActions,
  #pregnancyCalendarLegend,
  #pregnancyApptNoteField,
  #trackHeroPregnancyMini,
  .pregnancyWeekLabel
) {
  display: none !important;
}

html[data-design="refined"] body:not(.focus-trying) .phoneShell :is(
  #ttcSignalPriority,
  .ttcSignalPriority
) {
  display: none !important;
}

html[data-design="refined"] body:not(.focus-perimenopause) .phoneShell :is(
  #periVisitTimeline,
  #flashCountField,
  #nightSweatField
) {
  display: none !important;
}

/* Track — past periods / cycle settings: oval headers only, no wrapping square */
html[data-design="refined"] #cycleScreen #cycleHistorySection,
html[data-design="refined"] #cycleScreen #cycleSettingsSection {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection > summary,
html[data-design="refined"] #cycleScreen #cycleSettingsSection > summary {
  min-height: 54px !important;
  padding: 14px 18px !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #e8a8bc) 22%, transparent) !important;
  background: var(--track-settings-pill, #fff) !important;
  color: var(--track-settings-pill-ink, inherit) !important;
  box-shadow: none !important;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection[open] > summary,
html[data-design="refined"] #cycleScreen #cycleSettingsSection[open] > summary {
  border-radius: 999px !important;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection > :not(summary),
html[data-design="refined"] #cycleScreen #cycleSettingsSection > :not(summary) {
  padding: 12px 2px 2px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] #cycleScreen .cycleHistorySheet {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection :is(
  .cycleEditorPanel,
  .importPanel,
  .historyPanel
) {
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .cycleHistoryListDetails {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .cycleHistoryListDetails > summary {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #e8a8bc) 22%, transparent);
  background: var(--track-settings-pill, color-mix(in srgb, var(--luma-accent, #e8a8bc) 8%, #fff));
  color: var(--track-settings-pill-ink, var(--luma-text-heading, #4a3040));
  font-family: var(--r-sans);
  font-size: 15px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .cycleHistoryListDetails > summary::-webkit-details-marker {
  display: none;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .cycleHistoryListDetails > summary::after {
  content: '+';
  float: right;
  color: color-mix(in srgb, var(--luma-text-heading, #4a3040) 55%, transparent);
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .cycleHistoryListDetails[open] > summary::after {
  content: '−';
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .cycleHistoryListBody {
  display: grid;
  gap: 12px;
  padding: 12px 2px 4px;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .addPeriodForm {
  gap: 12px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .addPeriodForm .field {
  display: grid;
  gap: 8px;
  margin: 0;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection #newPeriodStart {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #e8a8bc) 22%, transparent);
  background: color-mix(in srgb, var(--luma-accent, #e8a8bc) 8%, #fff);
  color: var(--luma-text-heading, #4a3040);
  font-family: var(--r-sans);
  font-size: 15px;
  font-weight: 650;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .noPeriodMonthHint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--luma-text-heading, #4a3040) 68%, transparent);
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .addPeriodActions {
  display: grid;
  gap: 10px;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .addPeriodActions .calendarPrimaryBtn,
html[data-design="refined"] #cycleScreen #cycleHistorySection .addPeriodActions .calendarNoPeriodBtn {
  width: 100%;
  min-height: 48px;
  margin: 0;
  border-radius: 999px;
  font-family: var(--r-sans);
  font-size: 15px;
  font-weight: 700;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .addPeriodActions .calendarPrimaryBtn {
  border: 0;
  background: linear-gradient(135deg, #f0b8cc, #e8a8bc);
  color: #4a3040;
  box-shadow: 0 10px 22px rgba(143, 90, 120, 0.16);
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .addPeriodActions .calendarNoPeriodBtn {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #e8a8bc) 28%, transparent);
  color: #4a3040;
  box-shadow: none;
}

html[data-design="refined"] #cycleScreen .cycleHistoryListHead {
  margin: 0 0 12px;
}

html[data-design="refined"] #cycleScreen .cycleHistoryListHead .label {
  margin: 0 0 4px;
}

html[data-design="refined"] #cycleScreen .cycleHistoryListHead h3,
html[data-design="refined"] #cycleScreen #cycleHistorySection .importPanel h3 {
  margin: 0;
  font-family: var(--r-display);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--luma-text-heading, #4a3040);
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .importedCycles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  flex-wrap: unset;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .importedCycles .historyChip {
  width: 100%;
  min-height: 52px;
  justify-content: space-between;
  align-items: center;
  gap: 12px !important;
  padding: 10px 10px 10px 14px !important;
  border-radius: 16px !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #e8a8bc) 18%, transparent);
  background: color-mix(in srgb, var(--luma-accent, #e8a8bc) 8%, #fff);
  box-shadow: none !important;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .historyChipMeta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .historyChipDate {
  font-family: var(--r-sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 750;
  color: var(--luma-text-heading, #4a3040);
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .historyChipIndex {
  font-family: var(--r-sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  color: color-mix(in srgb, var(--luma-text-heading, #4a3040) 58%, transparent);
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .cycleHistoryEmpty {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--luma-text-heading, #4a3040) 68%, transparent);
}

html[data-design="refined"] #cycleScreen .cyclePatternStats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 10px;
}

html[data-design="refined"] #cycleScreen .cyclePatternStats > div {
  min-width: 0;
  padding: 10px 8px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--luma-accent, #e8a8bc) 8%, #fff);
  text-align: center;
}

html[data-design="refined"] #cycleScreen .cyclePatternStats dt {
  margin: 0;
  font-family: var(--r-sans);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--luma-text-heading, #4a3040) 58%, transparent);
}

html[data-design="refined"] #cycleScreen .cyclePatternStats dd {
  margin: 4px 0 0;
  font-family: var(--r-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  color: var(--luma-text-heading, #4a3040);
  overflow-wrap: anywhere;
}

html[data-design="refined"] #cycleScreen #yearPatternInsight {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--luma-text-heading, #4a3040) 72%, transparent);
}

html[data-design="refined"] #cycleScreen #cycleHistorySection #historyInsight {
  display: none;
}

html[data-design="refined"] #cycleScreen #cycleHistorySection .historyPanel:not(:has(#historyChartWrap:not([hidden]))):not(:has(#noPeriodHistory:not([hidden]))) {
  display: none;
}

html[data-design="refined"] #cycleScreen .cycleSettingsSheet {
  display: grid;
  gap: 12px;
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .mobileSettings {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 4px 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .mobileSettings p,
html[data-design="refined"] #cycleScreen #cycleSettingsSection .settingsIntro,
html[data-design="refined"] #cycleScreen #cycleSettingsSection #mobilePredictionNote {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--luma-text-heading, #4a3040) 70%, transparent);
  font-family: var(--r-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .cycleSettingsField {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  margin: 0;
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .cycleSettingsFieldTitle {
  display: inline;
  font-family: var(--r-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--luma-accent-text, #4a3040);
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .cycleSettingsField > input,
html[data-design="refined"] #cycleScreen #cycleSettingsSection .cycleSettingsField > .stepperField {
  flex: 1 1 100%;
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .settingsFieldBadge {
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .settingsFieldBadge[data-mode="history"] {
  color: #4a3040;
  background: color-mix(in srgb, var(--luma-accent, #e8a8bc) 18%, #fff);
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .settingsFieldBadge[data-mode="manual"] {
  color: #4a3040;
  background: color-mix(in srgb, var(--luma-accent, #e8a8bc) 28%, #fff);
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection #mobilePeriodStart {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #e8a8bc) 22%, transparent);
  background: color-mix(in srgb, var(--luma-accent, #e8a8bc) 8%, #fff);
  color: var(--luma-text-heading, #4a3040);
  font-family: var(--r-sans);
  font-size: 15px;
  font-weight: 650;
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .settingPair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .stepperField {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 4px;
  min-height: 52px;
  padding: 4px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #e8a8bc) 22%, transparent);
  background: color-mix(in srgb, var(--luma-accent, #e8a8bc) 8%, #fff);
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .mobileSettings label:has([data-source="history"]) input,
html[data-design="refined"] #cycleScreen #cycleSettingsSection .mobileSettings label:has([data-source="history"]) .stepperField,
html[data-design="refined"] #cycleScreen #cycleSettingsSection .mobileSettings label:has([data-source="manual"]) input,
html[data-design="refined"] #cycleScreen #cycleSettingsSection .mobileSettings label:has([data-source="manual"]) .stepperField {
  border-color: color-mix(in srgb, var(--luma-accent, #e8a8bc) 22%, transparent);
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .stepperField button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #e8a8bc) 22%, transparent);
  border-radius: 999px;
  background: #fff;
  color: #4a3040;
  font-family: var(--r-sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .stepperField input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--luma-text-heading, #4a3040);
  font-family: var(--r-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .stepperField input::-webkit-outer-spin-button,
html[data-design="refined"] #cycleScreen #cycleSettingsSection .stepperField input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .cycleSettingsActions {
  display: grid;
  gap: 10px;
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .cycleSettingsActions .wideButton {
  width: 100%;
  min-height: 48px;
  margin: 0;
  border-radius: 999px;
  font-family: var(--r-sans);
  font-size: 15px;
  font-weight: 700;
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .settingsApply {
  border: 0;
  background: linear-gradient(135deg, #f0b8cc, #e8a8bc);
  color: #4a3040;
  box-shadow: 0 10px 22px rgba(143, 90, 120, 0.16);
}

html[data-design="refined"] #cycleScreen #cycleSettingsSection .settingsResetHistory {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #e8a8bc) 28%, transparent);
  color: #4a3040;
  box-shadow: none;
}

html[data-design="refined"] #cycleScreen .cycleSettingsForecast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

html[data-design="refined"] #cycleScreen .cycleSettingsForecast > div {
  min-width: 0;
  padding: 10px 8px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--luma-accent, #e8a8bc) 8%, #fff);
  text-align: center;
}

html[data-design="refined"] #cycleScreen .cycleSettingsForecast dt {
  margin: 0;
  font-family: var(--r-sans);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--luma-text-heading, #4a3040) 58%, transparent);
}

html[data-design="refined"] #cycleScreen .cycleSettingsForecast dd {
  margin: 4px 0 0;
  font-family: var(--r-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  color: var(--luma-text-heading, #4a3040);
  overflow-wrap: anywhere;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen #cycleSettingsSection .mobileSettings,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen #cycleSettingsSection .mobileSettings {
  background: transparent;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen #cycleSettingsSection :is(#mobilePeriodStart, .stepperField, .cycleSettingsForecast > div),
html[data-design="refined"][data-theme="moonlit"] #cycleScreen #cycleSettingsSection :is(#mobilePeriodStart, .stepperField, .cycleSettingsForecast > div) {
  background: color-mix(in srgb, var(--luma-accent, #e8a8bc) 16%, transparent);
  color: var(--luma-text-heading);
}

html[data-design="refined"][data-theme="dark"] #cycleScreen #cycleSettingsSection .stepperField button,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen #cycleSettingsSection .stepperField button,
html[data-design="refined"][data-theme="dark"] #cycleScreen #cycleSettingsSection .settingsResetHistory,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen #cycleSettingsSection .settingsResetHistory {
  background: transparent;
  border-color: rgba(240, 220, 232, 0.42);
  color: var(--luma-text-heading) !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen #cycleHistorySection :is(
  .cycleEditorPanel,
  .importPanel,
  .historyPanel
),
html[data-design="refined"][data-theme="moonlit"] #cycleScreen #cycleHistorySection :is(
  .cycleEditorPanel,
  .importPanel,
  .historyPanel
) {
  background: transparent !important;
}

html[data-design="refined"][data-theme="dark"] #cycleScreen #cycleHistorySection #newPeriodStart,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen #cycleHistorySection #newPeriodStart,
html[data-design="refined"][data-theme="dark"] #cycleScreen #cycleHistorySection .importedCycles .historyChip,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen #cycleHistorySection .importedCycles .historyChip,
html[data-design="refined"][data-theme="dark"] #cycleScreen .cyclePatternStats > div,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen .cyclePatternStats > div {
  background: color-mix(in srgb, var(--luma-accent, #e8a8bc) 16%, transparent);
  color: var(--luma-text-heading);
}

html[data-design="refined"][data-theme="dark"] #cycleScreen #cycleHistorySection .addPeriodActions .calendarNoPeriodBtn,
html[data-design="refined"][data-theme="moonlit"] #cycleScreen #cycleHistorySection .addPeriodActions .calendarNoPeriodBtn {
  background: transparent;
  border-color: rgba(240, 220, 232, 0.42);
  color: var(--luma-text-heading) !important;
}

/* Same Track settings chrome in every cycle-applicable focus. Pregnancy hides these sections. */
html[data-design="refined"] body:is(.focus-tracking, .focus-trying, .focus-perimenopause, .healingFocusMode)
  .phoneShell #cycleScreen :is(#cycleHistorySection, #cycleSettingsSection) {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-design="refined"] body:is(.focus-tracking, .focus-trying, .focus-perimenopause, .healingFocusMode)
  .phoneShell #cycleScreen :is(#cycleHistorySection, #cycleSettingsSection) > summary {
  min-height: 54px !important;
  padding: 14px 18px !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, #e8a8bc 22%, transparent) !important;
  background: var(--track-settings-pill, #fff) !important;
  color: var(--track-settings-pill-ink, inherit) !important;
  box-shadow: none !important;
}

html[data-design="refined"] body:is(.focus-tracking, .focus-trying, .focus-perimenopause, .healingFocusMode)
  .phoneShell #cycleScreen :is(#cycleHistorySection, #cycleSettingsSection) > :not(summary) {
  padding: 12px 2px 2px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] body:is(.focus-tracking, .focus-trying, .focus-perimenopause, .healingFocusMode)
  .phoneShell #cycleScreen #cycleHistorySection :is(.cycleEditorPanel, .importPanel, .historyPanel, .addPeriodForm) {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-design="refined"] body:is(.focus-tracking, .focus-trying, .focus-perimenopause, .healingFocusMode)
  .phoneShell #cycleScreen #cycleHistorySection .cycleHistoryListDetails > summary {
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, #e8a8bc 22%, transparent) !important;
  background: var(--track-settings-pill, color-mix(in srgb, #e8a8bc 8%, #fff)) !important;
  color: var(--track-settings-pill-ink, var(--luma-text-heading, #4a3040)) !important;
}

html[data-design="refined"] body:is(.focus-tracking, .focus-trying, .focus-perimenopause, .healingFocusMode)
  .phoneShell #cycleScreen #cycleSettingsSection .mobileSettings {
  padding: 4px 2px 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-design="refined"] body:is(.focus-tracking, .focus-trying, .focus-perimenopause, .healingFocusMode, .focus-pregnant, .pregnancyFocusMode)
  .phoneShell #cycleScreen #cycleSettingsSection .mobileSettings p,
html[data-design="refined"] body:is(.focus-tracking, .focus-trying, .focus-perimenopause, .healingFocusMode)
  .phoneShell #cycleScreen #cycleSettingsSection .settingsIntro,
html[data-design="refined"] body:is(.focus-tracking, .focus-trying, .focus-perimenopause, .healingFocusMode)
  .phoneShell #cycleScreen #cycleSettingsSection #mobilePredictionNote {
  background: transparent !important;
  color: color-mix(in srgb, var(--luma-text-heading, #4a3040) 70%, transparent) !important;
}

html[data-design="refined"] body:is(.focus-tracking, .focus-trying, .focus-perimenopause, .healingFocusMode)
  .phoneShell #cycleScreen #cycleSettingsSection .stepperField button {
  background: #fff !important;
  color: #4a3040 !important;
  border: 1px solid color-mix(in srgb, #e8a8bc 22%, transparent) !important;
}

html[data-design="refined"][data-theme="hearth"] #cycleScreen #cycleSettingsSection .mobileSettings,
html[data-design="refined"][data-theme="hearth"] #cycleScreen #cycleHistorySection :is(
  .cycleEditorPanel,
  .importPanel,
  .historyPanel
) {
  background: transparent !important;
}

/* Full-year calendar — quieter days, stacked month labels */
html[data-design="refined"] #cycleScreen #yearCalendarPanel[data-calendar-layout="year"] .monthNavigator,
html[data-design="refined"] #cycleScreen #yearCalendarPanel[data-calendar-layout="all"] .monthNavigator {
  margin-bottom: 14px;
}

html[data-design="refined"] #cycleScreen #yearCalendarPanel[data-calendar-layout="year"] #monthTitle,
html[data-design="refined"] #cycleScreen #yearCalendarPanel[data-calendar-layout="all"] #monthTitle {
  font-family: var(--r-display);
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

html[data-design="refined"] #cycleScreen .yearGrid,
html[data-design="refined"] #cycleScreen .yearGridAll {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px 14px !important;
  align-items: start !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact {
  min-height: 0 !important;
  max-height: none !important;
  padding: 4px 2px 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 8px !important;
  overflow: visible !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact.monthCardFocused {
  box-shadow: none !important;
  border: 0 !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthTitle {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  margin: 0 2px 2px !important;
  padding: 0 !important;
  gap: 2px !important;
  background: transparent !important;
  border: 0 !important;
  text-align: left !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthTitle strong {
  font-family: var(--r-display) !important;
  font-size: 1.2rem !important;
  font-style: italic !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  color: var(--luma-text-heading, #4a3040) !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthTitle span {
  display: block !important;
  margin: 0 !important;
  font-family: var(--r-sans) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  color: color-mix(in srgb, var(--luma-text-heading, #4a3040) 55%, transparent) !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .weekdayRow,
html[data-design="refined"] #cycleScreen .monthCardCompact .monthDays {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 3px !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .weekdayRow {
  margin: 0 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: color-mix(in srgb, var(--luma-text-heading, #4a3040) 42%, transparent) !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay,
html[data-design="refined"] #cycleScreen .monthCardCompact .emptyDay {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 22px !important;
  max-height: none !important;
  aspect-ratio: 1 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay {
  display: grid !important;
  place-items: center !important;
  font-family: var(--r-sans) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  color: var(--luma-text-heading, #4a3040) !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay:is(.steady, .tender, .noPeriodMonth),
html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay[class*="trust-"] {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay.trust-confirmedSignal::after,
html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay.editable::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay.period {
  background: var(--cycle-period, #f8d5e0) !important;
  color: #4a3040 !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay.active {
  background: var(--cycle-period-active, #efa0b8) !important;
  color: #4a3040 !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay.fertile {
  background: var(--cycle-fertile, #eaf5ee) !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay.ovulation {
  background: var(--cycle-ovulation, #fceede) !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay.predicted {
  background: var(--cycle-purple, #ebe6f7) !important;
  outline: none !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay.today:not(.period):not(.active) {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--luma-accent, #e8a8bc) 70%, transparent) !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay.selected {
  box-shadow: inset 0 0 0 1.5px #4a3040 !important;
}

html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay .cycleLabel,
html[data-design="refined"] #cycleScreen .monthCardCompact .monthDay .pregnancyWeekLabel {
  display: none !important;
}

html[data-design="refined"] .privacyWalk {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}
html[data-design="refined"] .privacyWalk > h2 {
  margin: 0;
  font-family: var(--r-display, "Cormorant Garamond", Georgia, serif) !important;
  font-style: italic;
  font-size: 1.7rem !important;
  font-weight: 600 !important;
  color: #4a3040 !important;
  -webkit-text-fill-color: #4a3040 !important;
}
html[data-design="refined"] .privacyWalkDots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
html[data-design="refined"] .privacyWalkDot {
  display: grid;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, #e8a8bc 22%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, #fff 88%, #fff4f7);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #4a3040;
}
html[data-design="refined"] .privacyWalkDot.is-active {
  border-color: #e8a8bc;
  background: #fff4f7;
}
html[data-design="refined"] .privacyWalkDot strong {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8a8bc;
}
html[data-design="refined"] .privacyWalkDot span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4a3040;
}
html[data-design="refined"] .privacyWalkCard {
  display: grid;
  gap: 6px;
  padding: 14px 4px 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
html[data-design="refined"] .privacyWalkCard h3 {
  margin: 0;
  font-family: var(--r-sans, Nunito, sans-serif) !important;
  font-size: 1.05rem !important;
  font-weight: 750 !important;
  color: #4a3040 !important;
}
html[data-design="refined"] .privacyWalkCard p,
html[data-design="refined"] .privacyWalkStatus {
  margin: 0;
  color: #7a5c6a !important;
  font-size: 0.86rem;
  line-height: 1.45;
}
html[data-design="refined"] .privacyWalkStatus {
  font-weight: 700;
  color: #4a3040 !important;
}
html[data-design="refined"] .privacyWalkNav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

html[data-design="refined"] .wearableTruthGrid {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}
html[data-design="refined"] .wearableTruthCard {
  padding: 12px 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
html[data-design="refined"] .wearableTruthCard h3 {
  margin: 2px 0 4px;
  font-size: 1rem;
  color: #4a3040;
}
html[data-design="refined"] .wearableTruthCard p {
  margin: 0;
  color: #7a5c6a;
  font-size: 0.82rem;
  line-height: 1.4;
}

html[data-design="refined"] .lumaPreviousChatsFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
html[data-design="refined"] .lumaPreviousChatsFilter {
  margin: 0;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, #e8a8bc 28%, transparent);
  border-radius: 999px;
  background: transparent;
  color: #7a5c6a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}
html[data-design="refined"] .lumaPreviousChatsFilter.is-active {
  background: #fff4f7;
  color: #4a3040;
  border-color: #e8a8bc;
}
html[data-design="refined"] .lumaPreviousChatGroup {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}
html[data-design="refined"] .lumaPreviousChatGroupLabel {
  margin: 4px 0 0;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8a8bc;
}

html[data-design="refined"] .youBlock {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}
html[data-design="refined"] .youBlockHeader {
  display: grid;
  gap: 4px;
}
html[data-design="refined"] .youBlockHeader h2 {
  margin: 0;
  font-family: var(--r-display, "Cormorant Garamond", Georgia, serif) !important;
  font-style: italic;
  font-size: 1.7rem !important;
  font-weight: 600 !important;
  color: #4a3040 !important;
  -webkit-text-fill-color: #4a3040 !important;
}
html[data-design="refined"] .lumaHubActions {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  justify-items: center;
  text-align: center;
}
html[data-design="refined"] .lumaHubThreadPreview,
html[data-design="refined"] .lumaHubThreads {
  margin: 10px 0 0;
  color: #7a5c6a;
  font-size: 0.86rem;
  line-height: 1.45;
}
html[data-design="refined"] .lumaHubThreads {
  display: grid;
  gap: 8px;
}
html[data-design="refined"] .authLocalPanel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}
html[data-design="refined"] .authLocalPanel[hidden],
html[data-design="refined"] .authCloudPanel[hidden] {
  display: none;
}
html[data-design="refined"] .youLegalLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 12px 2px 4px;
}
html[data-design="refined"] .youLegalLinks a {
  color: var(--luma-text-heading, #4a3040);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html[data-design="refined"][data-theme="dark"] .youLegalLinks a,
html[data-design="refined"][data-theme="moonlit"] .youLegalLinks a {
  color: var(--luma-text-heading, #f7eef2);
}
html[data-design="refined"] .homeMedDueLine {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--r-radius-md, 16px);
  background: #fff4f7;
  color: var(--luma-text-heading, #4a3040);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
html[data-design="refined"] body.pregnancyFocusMode #todayScreen > .homeMedDueLine:not([hidden]) {
  order: 3;
}
html[data-design="refined"][data-theme="dark"] .youBlockHeader h2,
html[data-design="refined"][data-theme="moonlit"] .youBlockHeader h2,
html[data-design="refined"][data-theme="dark"] .privacyWalk > h2,
html[data-design="refined"][data-theme="moonlit"] .privacyWalk > h2 {
  color: var(--luma-text-heading, #f7eef2) !important;
  -webkit-text-fill-color: var(--luma-text-heading, #f7eef2) !important;
}
html[data-design="refined"][data-theme="dark"] .youBlockHeader .settingsSectionLead,
html[data-design="refined"][data-theme="moonlit"] .youBlockHeader .settingsSectionLead {
  background: none;
  color: var(--luma-text-heading, #f7eef2);
}
html[data-design="refined"][data-theme="dark"] .privacyWalkCard p,
html[data-design="refined"][data-theme="moonlit"] .privacyWalkCard p,
html[data-design="refined"][data-theme="dark"] .homeMedDueLine,
html[data-design="refined"][data-theme="moonlit"] .homeMedDueLine {
  background: rgba(232, 168, 188, 0.14);
  color: var(--luma-text-heading, #f7eef2);
}
html[data-design="refined"][data-theme="dark"] .lumaHubThreadPreview,
html[data-design="refined"][data-theme="moonlit"] .lumaHubThreadPreview,
html[data-design="refined"][data-theme="dark"] .wearablesStatusNote,
html[data-design="refined"][data-theme="moonlit"] .wearablesStatusNote {
  color: var(--luma-text, #e8d4dc) !important;
  -webkit-text-fill-color: var(--luma-text, #e8d4dc) !important;
}

/* You account overview: elegant numbers, readable labels, intact word spaces. */
html[data-design="refined"] #profileScreen .profileStats {
  gap: 8px !important;
  margin-top: 14px !important;
  align-items: stretch !important;
}
html[data-design="refined"] #profileScreen .profileStats .profileStat,
html[data-design="refined"] #profileScreen .profileStats > div {
  min-height: 82px !important;
  padding: 13px 8px 12px !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  place-items: unset !important;
}
html[data-design="refined"] #profileScreen .profileStats .profileStatValue,
html[data-design="refined"] #profileScreen .profileStats b {
  display: block !important;
  max-width: 100% !important;
  font-family: var(--r-display, "Cormorant Garamond", Georgia, serif) !important;
  font-style: normal !important;
  font-weight: 600 !important;
  font-size: clamp(1.55rem, 6vw, 1.85rem) !important;
  line-height: 1 !important;
  letter-spacing: 0.02em !important;
  word-spacing: 0.16em !important;
  color: #4a3040 !important;
  -webkit-text-fill-color: #4a3040 !important;
  font-kerning: normal !important;
  font-variant-ligatures: none !important;
  font-feature-settings: normal !important;
}
html[data-design="refined"] #profileScreen .profileStats #profileMode,
html[data-design="refined"] #profileScreen .profileStats .profileStatValue--focus {
  font-style: italic !important;
  font-weight: 500 !important;
  font-size: clamp(0.82rem, 2.8vw, 0.94rem) !important;
  line-height: 1.22 !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.14em !important;
  text-wrap: balance !important;
  text-align: center !important;
}
html[data-design="refined"] #profileScreen .profileStats .profileStatLabel,
html[data-design="refined"] #profileScreen .profileStats span {
  display: block !important;
  font-family: var(--r-sans, Nunito, sans-serif) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  font-style: normal !important;
  line-height: 1.25 !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.18em !important;
  white-space: normal !important;
  text-wrap: balance !important;
  text-transform: none !important;
  color: #7a5c6a !important;
  -webkit-text-fill-color: #7a5c6a !important;
  font-kerning: normal !important;
  font-variant-ligatures: none !important;
  font-feature-settings: normal !important;
}
html[data-design="refined"][data-theme="dark"] #profileScreen .profileStats b,
html[data-design="refined"][data-theme="moonlit"] #profileScreen .profileStats b {
  color: var(--luma-text-heading, #f7eef2) !important;
  -webkit-text-fill-color: var(--luma-text-heading, #f7eef2) !important;
}
html[data-design="refined"][data-theme="dark"] #profileScreen .profileStats span,
html[data-design="refined"][data-theme="moonlit"] #profileScreen .profileStats span {
  color: var(--luma-text, #c9b4bd) !important;
  -webkit-text-fill-color: var(--luma-text, #c9b4bd) !important;
}

/* You tab: one rhythm — section title, one card family, danger last. */
html[data-design="refined"] #profileScreen {
  --you-line: rgba(232, 168, 188, 0.22);
  --you-card: linear-gradient(160deg, rgba(255, 253, 254, 0.94), rgba(255, 246, 250, 0.72));
  --you-row-title: #b75c84;
}
html[data-design="refined"][data-theme="dark"] #profileScreen {
  --you-line: rgba(242, 184, 206, 0.2);
  --you-card: linear-gradient(160deg, rgba(54, 40, 48, 0.96), rgba(32, 24, 30, 0.94));
  --you-row-title: #f6c4d6;
}
html[data-design="refined"][data-theme="moonlit"] #profileScreen {
  --you-line: rgba(232, 196, 220, 0.22);
  --you-card: linear-gradient(160deg, rgba(56, 48, 74, 0.96), rgba(38, 32, 54, 0.94));
  --you-row-title: #edc8e4;
}
html[data-design="refined"][data-theme="hearth"] #profileScreen {
  --you-row-title: #c47860;
}
html[data-design="refined"] #profileScreen .youBlock {
  gap: 10px !important;
  margin: 0 0 28px !important;
}
html[data-design="refined"] #profileScreen .youBlockHeader {
  display: grid !important;
  gap: 4px !important;
  padding: 0 4px !important;
}
html[data-design="refined"] #profileScreen .youBlockHeader .label {
  display: none !important;
}
html[data-design="refined"] #profileScreen .youBlockHeader h2 {
  margin: 0 !important;
  font-family: var(--r-display, "Cormorant Garamond", Georgia, serif) !important;
  font-style: italic !important;
  font-size: clamp(1.45rem, 5.4vw, 1.7rem) !important;
  font-weight: 550 !important;
  line-height: 1.1 !important;
  color: #4a3040 !important;
  -webkit-text-fill-color: #4a3040 !important;
}
html[data-design="refined"] #profileScreen .youBlockHeader .settingsSectionLead {
  margin: 0 !important;
  max-width: 34ch !important;
  font-size: 0.82rem !important;
  font-weight: 550 !important;
  line-height: 1.4 !important;
  color: #7a5c6a !important;
  -webkit-text-fill-color: #7a5c6a !important;
}
html[data-design="refined"] #profileScreen .youStack,
html[data-design="refined"] #profileScreen .youCommandStrip,
html[data-design="refined"] #profileScreen .youOverviewCard,
html[data-design="refined"] #profileScreen .profileFocusCard,
html[data-design="refined"] #profileScreen .youBlock > .settingsRow,
html[data-design="refined"] #profileScreen .youSession {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 4px !important;
  border-radius: 22px !important;
  border: 1px solid var(--you-line) !important;
  background: var(--you-card) !important;
  box-shadow: 0 10px 22px rgba(106, 67, 88, 0.04) !important;
}
html[data-design="refined"] #profileScreen .youStack > * {
  grid-column: 1 / -1 !important;
  min-width: 0 !important;
}
html[data-design="refined"] #profileScreen .youOverviewCard,
html[data-design="refined"] #profileScreen .profileFocusCard,
html[data-design="refined"] #profileScreen .youCommandStrip,
html[data-design="refined"] #profileScreen .youSession {
  padding: 14px !important;
}
html[data-design="refined"] #profileScreen .youStack,
html[data-design="refined"] #profileScreen .youSettingsStack {
  padding: 8px 6px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background-clip: padding-box !important;
}
html[data-design="refined"] #profileScreen .youBlock > .settingsRow,
html[data-design="refined"] .phoneShell #profileScreen #goToPrivacyCenterBtn {
  display: grid !important;
  grid-template-columns: 26px minmax(0, 1fr) 26px !important;
  align-items: center !important;
  justify-items: center !important;
  place-items: center !important;
  gap: 0 !important;
  min-height: 40px !important;
  height: auto !important;
  padding: 6px 10px !important;
  text-align: center !important;
}
html[data-design="refined"] .phoneShell #profileScreen #goToPrivacyCenterBtn > [data-icon] {
  display: none !important;
}
html[data-design="refined"] .phoneShell #profileScreen #goToPrivacyCenterBtn > div {
  grid-column: 2 !important;
  width: 100% !important;
  text-align: center !important;
}
html[data-design="refined"] .phoneShell #profileScreen #goToPrivacyCenterBtn h3 {
  margin: 0 !important;
  font-family: var(--r-display, "Cormorant Garamond", Georgia, serif) !important;
  font-style: italic !important;
  font-size: clamp(1.02rem, 3.8vw, 1.16rem) !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.15 !important;
  text-align: center !important;
  color: var(--you-row-title, #b75c84) !important;
  -webkit-text-fill-color: var(--you-row-title, #b75c84) !important;
}
html[data-design="refined"] .phoneShell #profileScreen #goToPrivacyCenterBtn p {
  display: none !important;
}
html[data-design="refined"] .phoneShell #profileScreen #goToPrivacyCenterBtn::after {
  content: "" !important;
  grid-column: 3 !important;
  justify-self: end !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--luma-accent, #b45b83) 18%, transparent) !important;
  background-color: color-mix(in srgb, #fff 88%, var(--luma-accent-soft, #f0cfdf) 12%) !important;
  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") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 11px 11px !important;
}
html[data-design="refined"] #profileScreen .youStack .howLumaWorksCard,
html[data-design="refined"] #profileScreen .youStack .settingsListDetails,
html[data-design="refined"] #profileScreen .youStack .profileIdentityCard,
html[data-design="refined"] #profileScreen .youStack .youSettingsGroup,
html[data-design="refined"] #profileScreen .youStack .themePickerSection {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
html[data-design="refined"] #profileScreen .youStack > * + *,
html[data-design="refined"] #profileScreen .youStack .youSettingsGroup + .settingsListDetails,
html[data-design="refined"] #profileScreen .youSettingsStack > * + * {
  border-top: 0 !important;
}
html[data-design="refined"] .phoneShell #profileScreen .youStack .howLumaWorksCard > summary,
html[data-design="refined"] .phoneShell #profileScreen .youStack .settingsListDetails > summary,
html[data-design="refined"] .phoneShell #profileScreen .youSettingsStack .settingsListDetails > summary,
html[data-design="refined"] .phoneShell #profileScreen .youStack .profileIdentitySummary {
  min-height: 40px !important;
  height: auto !important;
  padding: 6px 10px !important;
  display: grid !important;
  grid-template-columns: 26px minmax(0, 1fr) 26px !important;
  align-items: center !important;
  justify-content: center !important;
  justify-items: center !important;
  gap: 0 !important;
  place-items: center !important;
  background: transparent !important;
  border: 0 !important;
  text-align: center !important;
  overflow: visible !important;
}
html[data-design="refined"] #profileScreen .youStack .settingsListDetails,
html[data-design="refined"] #profileScreen .youStack .settingsListDetails:not([open]),
html[data-design="refined"] #profileScreen .youSettingsStack .settingsListDetails,
html[data-design="refined"] #profileScreen .youSettingsStack .settingsListDetails:not([open]) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}
html[data-design="refined"] #profileScreen .youStack .settingsListDetails > summary,
html[data-design="refined"] #profileScreen .youSettingsStack .settingsListDetails > summary {
  height: auto !important;
  min-height: 40px !important;
  place-items: center !important;
  justify-items: center !important;
  text-align: center !important;
  padding: 6px 10px !important;
  grid-template-columns: 26px minmax(0, 1fr) 26px !important;
}
html[data-design="refined"] #profileScreen .youStack .settingsListDetails > summary::before {
  display: none !important;
  content: none !important;
}
html[data-design="refined"] #profileScreen .youStack .howLumaWorksCard .label,
html[data-design="refined"] #profileScreen .youStack .profileIdentitySummary .label {
  display: none !important;
}
html[data-design="refined"] .phoneShell #profileScreen .youStack .howLumaWorksCard > summary > div,
html[data-design="refined"] .phoneShell #profileScreen .youStack .profileIdentitySummary > div {
  grid-column: 2 !important;
  width: 100% !important;
  text-align: center !important;
}
html[data-design="refined"] .phoneShell #profileScreen .youStack .howLumaWorksCard h2,
html[data-design="refined"] .phoneShell #profileScreen .youStack .settingsListDetails > summary h2,
html[data-design="refined"] .phoneShell #profileScreen .youSettingsStack .settingsListDetails > summary h2,
html[data-design="refined"] .phoneShell #profileScreen .youStack .profileIdentitySummary h3 {
  margin: 0 !important;
  grid-column: 2 !important;
  width: 100% !important;
  flex: none !important;
  text-align: center !important;
  justify-self: center !important;
  transform: none !important;
  font-family: var(--r-display, "Cormorant Garamond", Georgia, serif) !important;
  font-style: italic !important;
  font-size: clamp(1.02rem, 3.8vw, 1.16rem) !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.15 !important;
  color: var(--you-row-title, #b75c84) !important;
  -webkit-text-fill-color: var(--you-row-title, #b75c84) !important;
}
html[data-design="refined"] .phoneShell #profileScreen .youStack .howLumaWorksCard > summary::after,
html[data-design="refined"] .phoneShell #profileScreen .youStack .settingsListDetails > summary::after,
html[data-design="refined"] .phoneShell #profileScreen .youSettingsStack .settingsListDetails > summary::after,
html[data-design="refined"] .phoneShell #profileScreen .youStack .profileIdentityChevron {
  position: static !important;
  inset: auto !important;
  right: auto !important;
  top: auto !important;
  grid-column: 3 !important;
  justify-self: end !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  background-size: 11px 11px !important;
  box-shadow: none !important;
}
html[data-design="refined"] .phoneShell #profileScreen .youStack .settingsListDetails > summary::before,
html[data-design="refined"] .phoneShell #profileScreen .youSettingsStack .settingsListDetails > summary::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
}
html[data-design="refined"] #profileScreen .youCommandStrip .powerToolsHeader {
  display: none !important;
}
html[data-design="refined"] #profileScreen .youCommandStrip .powerToolsRow {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
html[data-design="refined"] #profileScreen .youSession {
  display: grid !important;
  gap: 8px !important;
  margin-top: 4px !important;
}
html[data-design="refined"] #profileScreen .youSession .wideButton {
  margin: 0 !important;
}
html[data-design="refined"] #profileScreen .youSession .dangerSettingsRow {
  width: 100% !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.45) !important;
}
html[data-design="refined"][data-theme="dark"] #profileScreen .youBlockHeader h2,
html[data-design="refined"][data-theme="moonlit"] #profileScreen .youBlockHeader h2 {
  color: var(--luma-text-heading, #f7eef2) !important;
  -webkit-text-fill-color: var(--luma-text-heading, #f7eef2) !important;
}
html[data-design="refined"][data-theme="dark"] #profileScreen .youBlockHeader .settingsSectionLead,
html[data-design="refined"][data-theme="moonlit"] #profileScreen .youBlockHeader .settingsSectionLead,
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode, .focus-tracking) #profileScreen .youBlockHeader .settingsSectionLead,
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode, .focus-tracking) #profileScreen .youBlockHeader .settingsSectionLead {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--luma-text, #c9b4bd) !important;
  -webkit-text-fill-color: var(--luma-text, #c9b4bd) !important;
}

/* You tab polish: softer cards, blush session, quieter leads. */
html[data-design="refined"] #profileScreen > .mobileHeader.compact h1 {
  font-family: var(--r-display, "Cormorant Garamond", Georgia, serif) !important;
  font-style: italic !important;
  font-weight: 500 !important;
  letter-spacing: -0.03em !important;
  max-width: none !important;
  width: max-content !important;
  white-space: nowrap !important;
  font-size: clamp(1.9rem, 8.5vw, 2.55rem) !important;
  line-height: 1.08 !important;
}
html[data-design="refined"] #profileScreen [data-you-block="shortcuts"] .youBlockHeader .settingsSectionLead {
  display: none !important;
}
html[data-design="refined"] #profileScreen .youBlockHeader .settingsSectionLead {
  max-width: 28ch !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.06em !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
html[data-design="refined"] #profileScreen .profileFocusCard .label {
  margin: 0 0 6px !important;
  color: #c47d96 !important;
  -webkit-text-fill-color: #c47d96 !important;
  font-size: 0.66rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.14em !important;
  word-spacing: 0.16em !important;
}
html[data-design="refined"] #profileScreen .profileFocusCard strong {
  display: block !important;
  font-family: var(--r-display, "Cormorant Garamond", Georgia, serif) !important;
  font-style: italic !important;
  font-size: clamp(1.45rem, 5.6vw, 1.75rem) !important;
  font-weight: 500 !important;
  line-height: 1.12 !important;
  color: #4a3040 !important;
  -webkit-text-fill-color: #4a3040 !important;
}
html[data-design="refined"] #profileScreen .profileFocusCard p {
  margin: 6px 0 0 !important;
  max-width: 30ch !important;
  color: #7a5c6a !important;
  font-size: 0.84rem !important;
  line-height: 1.4 !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.06em !important;
}
html[data-design="refined"] .phoneShell #profileScreen .youCommandStrip .powerToolsRow {
  justify-items: center !important;
  justify-content: center !important;
}
html[data-design="refined"] .phoneShell #profileScreen .youCommandStrip .powerToolBtn {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: auto !important;
  justify-items: center !important;
  align-content: center !important;
  place-items: center !important;
  place-content: center !important;
  text-align: center !important;
  min-height: 86px !important;
  width: 100% !important;
  padding: 14px 8px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(232, 168, 188, 0.2) !important;
  box-shadow: none !important;
}
html[data-design="refined"] .phoneShell #profileScreen .youCommandStrip .powerToolBtn strong {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  font-family: var(--r-sans, Nunito, sans-serif) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.06em !important;
  text-align: center !important;
  justify-self: center !important;
  color: #4a3040 !important;
}
html[data-design="refined"] .phoneShell #profileScreen .youCommandStrip .powerToolBtn [data-icon],
html[data-design="refined"] .phoneShell #profileScreen .youCommandStrip .powerToolBtn span {
  display: grid !important;
  place-items: center !important;
  place-content: center !important;
  margin: 0 auto !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 999px !important;
  background: #fff4f7 !important;
  color: var(--you-row-title, #b75c84) !important;
}
html[data-design="refined"] .phoneShell #profileScreen .youCommandStrip .powerToolBtn [data-icon] svg,
html[data-design="refined"] .phoneShell #profileScreen .youCommandStrip .powerToolBtn span svg {
  display: block !important;
  margin: 0 auto !important;
  width: 15px !important;
  height: 15px !important;
}
html[data-design="refined"] #profileScreen .youSession {
  padding: 12px !important;
  background:
    linear-gradient(180deg, rgba(255, 252, 253, 0.9), rgba(255, 244, 247, 0.7)) !important;
}
html[data-design="refined"] #profileScreen .youSession #profileLogoutBtn {
  min-height: 48px !important;
  border-radius: 999px !important;
  background: #fff4f7 !important;
  color: #4a3040 !important;
  -webkit-text-fill-color: #4a3040 !important;
  border: 1px solid rgba(232, 168, 188, 0.4) !important;
  box-shadow: none !important;
  font-weight: 750 !important;
}
html[data-design="refined"] #profileScreen .youSession .dangerSettingsRow {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 8px 6px 4px !important;
}
html[data-design="refined"] #profileScreen .youSession .dangerSettingsRow h3 {
  font-size: 0.88rem !important;
  color: #8a4a58 !important;
}
html[data-design="refined"] #profileScreen .youStack .profileIdentitySummary h3 {
  font-size: clamp(1.02rem, 3.8vw, 1.16rem) !important;
}

/* You tab: same cards, type, and blush in every focus. */
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) #profileScreen {
  --you-line: rgba(232, 168, 188, 0.22);
  --you-row-title: #b75c84;
}
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) #profileScreen {
  --you-line: rgba(242, 184, 206, 0.2);
  --you-card: linear-gradient(160deg, rgba(54, 40, 48, 0.96), rgba(32, 24, 30, 0.94));
  --you-row-title: #f6c4d6;
}
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) #profileScreen {
  --you-line: rgba(232, 196, 220, 0.22);
  --you-card: linear-gradient(160deg, rgba(56, 48, 74, 0.96), rgba(38, 32, 54, 0.94));
  --you-row-title: #edc8e4;
}
html[data-design="refined"][data-theme="hearth"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) #profileScreen {
  --you-row-title: #c47860;
}
html[data-design="refined"] .phoneShell #profileScreen .youStack .howLumaWorksCard h2,
html[data-design="refined"] .phoneShell #profileScreen .youStack .howLumaWorksCard .profileCardSummary h2,
html[data-design="refined"] .phoneShell #profileScreen .youStack .settingsListDetails > summary h2,
html[data-design="refined"] .phoneShell #profileScreen .youSettingsStack .settingsListDetails > summary h2,
html[data-design="refined"] .phoneShell #profileScreen .youStack .profileIdentitySummary h3,
html[data-design="refined"] .phoneShell #profileScreen #goToPrivacyCenterBtn h3,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youStack .howLumaWorksCard h2,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youStack .settingsListDetails > summary h2,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youSettingsStack .settingsListDetails > summary h2,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youStack .profileIdentitySummary h3,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen #goToPrivacyCenterBtn h3 {
  color: var(--you-row-title, #b75c84) !important;
  -webkit-text-fill-color: var(--you-row-title, #b75c84) !important;
}
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen > .mobileHeader.compact h1 {
  max-width: none !important;
  width: max-content !important;
  white-space: nowrap !important;
  font-size: clamp(1.9rem, 8.5vw, 2.55rem) !important;
}
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youStack,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youSettingsStack {
  padding: 8px 6px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
}
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youStack .howLumaWorksCard > summary,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youStack .settingsListDetails > summary,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youSettingsStack .settingsListDetails > summary,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen #goToPrivacyCenterBtn {
  min-height: 40px !important;
  padding: 6px 10px !important;
  text-align: center !important;
}
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youCommandStrip .powerToolBtn {
  display: grid !important;
  justify-items: center !important;
  place-items: center !important;
  text-align: center !important;
}
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youCommandStrip .powerToolBtn [data-icon],
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youCommandStrip .powerToolBtn span,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant) .phoneShell #profileScreen .powerToolBtn span {
  background: #fff4f7 !important;
  background-color: #fff4f7 !important;
  color: var(--you-row-title, #b75c84) !important;
  border-color: rgba(180, 91, 131, 0.14) !important;
}
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youStack .howLumaWorksCard > summary::after,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youStack .settingsListDetails > summary::after,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youSettingsStack .settingsListDetails > summary::after,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .profileIdentityChevron,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen #goToPrivacyCenterBtn::after {
  width: 26px !important;
  height: 26px !important;
  border-color: color-mix(in srgb, #b45b83 18%, transparent) !important;
  background-color: color-mix(in srgb, #fff 88%, #f0cfdf 12%) !important;
  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") !important;
}

/* Dark + moonlit You/Track: dark cards, readable blush — every focus. */
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .youStack,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .youStack,
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .youSettingsStack,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .youSettingsStack,
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .youCommandStrip,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .youCommandStrip,
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .youOverviewCard,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .youOverviewCard,
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .profileFocusCard,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .profileFocusCard,
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .youSession,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .youSession,
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen #goToPrivacyCenterBtn,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen #goToPrivacyCenterBtn,
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youStack,
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youStack,
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youSettingsStack,
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youSettingsStack,
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youCommandStrip,
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youCommandStrip,
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen #goToPrivacyCenterBtn,
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen #goToPrivacyCenterBtn {
  background: var(--you-card) !important;
  border-color: var(--you-line) !important;
  box-shadow: none !important;
}
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .youCommandStrip .powerToolBtn,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .youCommandStrip .powerToolBtn,
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youCommandStrip .powerToolBtn,
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youCommandStrip .powerToolBtn {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .youCommandStrip .powerToolBtn strong,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .youCommandStrip .powerToolBtn strong {
  color: #f7eef2 !important;
  -webkit-text-fill-color: #f7eef2 !important;
}
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .youCommandStrip .powerToolBtn [data-icon],
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .youCommandStrip .powerToolBtn [data-icon],
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .youCommandStrip .powerToolBtn span,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .youCommandStrip .powerToolBtn span,
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youCommandStrip .powerToolBtn [data-icon],
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youCommandStrip .powerToolBtn [data-icon],
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youCommandStrip .powerToolBtn span,
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youCommandStrip .powerToolBtn span,
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant) .phoneShell #profileScreen .powerToolBtn span,
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant) .phoneShell #profileScreen .powerToolBtn span {
  background: rgba(246, 196, 214, 0.16) !important;
  background-color: rgba(246, 196, 214, 0.16) !important;
  color: var(--you-row-title, #f6c4d6) !important;
  border-color: rgba(246, 196, 214, 0.22) !important;
}
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .youStack .howLumaWorksCard > summary::after,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .youStack .howLumaWorksCard > summary::after,
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .youStack .settingsListDetails > summary::after,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .youStack .settingsListDetails > summary::after,
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .youSettingsStack .settingsListDetails > summary::after,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .youSettingsStack .settingsListDetails > summary::after,
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .profileIdentityChevron,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .profileIdentityChevron,
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen #goToPrivacyCenterBtn::after,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen #goToPrivacyCenterBtn::after,
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youStack .howLumaWorksCard > summary::after,
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youStack .howLumaWorksCard > summary::after,
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youStack .settingsListDetails > summary::after,
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youStack .settingsListDetails > summary::after,
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youSettingsStack .settingsListDetails > summary::after,
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .youSettingsStack .settingsListDetails > summary::after,
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .profileIdentityChevron,
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen .profileIdentityChevron,
html[data-design="refined"][data-theme="dark"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen #goToPrivacyCenterBtn::after,
html[data-design="refined"][data-theme="moonlit"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #profileScreen #goToPrivacyCenterBtn::after {
  border-color: rgba(246, 196, 214, 0.24) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6c4d6' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
}
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .youSession #profileLogoutBtn,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .youSession #profileLogoutBtn {
  background: rgba(246, 196, 214, 0.14) !important;
  color: #f7eef2 !important;
  -webkit-text-fill-color: #f7eef2 !important;
  border-color: rgba(246, 196, 214, 0.28) !important;
}
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .themePickerLead,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .themePickerLead,
html[data-design="refined"][data-theme="dark"] .phoneShell #profileScreen .profileFocusCard,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #profileScreen .profileFocusCard {
  color: #ead3df !important;
}
html[data-design="refined"][data-theme="dark"],
html[data-design="refined"][data-theme="moonlit"] {
  --track-settings-pill: rgba(255, 255, 255, 0.08);
  --track-settings-pill-ink: #f7eef2;
}
html[data-design="refined"][data-theme="dark"] .phoneShell #cycleScreen #cycleHistorySection > summary,
html[data-design="refined"][data-theme="dark"] .phoneShell #cycleScreen #cycleSettingsSection > summary,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #cycleScreen #cycleHistorySection > summary,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #cycleScreen #cycleSettingsSection > summary,
html[data-design="refined"][data-theme="dark"] body:is(.focus-tracking, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #cycleScreen :is(#cycleHistorySection, #cycleSettingsSection) > summary,
html[data-design="refined"][data-theme="moonlit"] body:is(.focus-tracking, .focus-trying, .focus-perimenopause, .healingFocusMode) .phoneShell #cycleScreen :is(#cycleHistorySection, #cycleSettingsSection) > summary {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(246, 196, 214, 0.22) !important;
  color: #f7eef2 !important;
  -webkit-text-fill-color: #f7eef2 !important;
}
html[data-design="refined"][data-theme="dark"] .phoneShell #cycleScreen #cycleHistorySection .cycleHistoryListDetails > summary,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #cycleScreen #cycleHistorySection .cycleHistoryListDetails > summary,
html[data-design="refined"][data-theme="dark"] body:is(.focus-tracking, .focus-trying, .focus-perimenopause, .healingFocusMode, .pregnancyFocusMode, .focus-pregnant) .phoneShell #cycleScreen #cycleHistorySection .cycleHistoryListDetails > summary,
html[data-design="refined"][data-theme="moonlit"] body:is(.focus-tracking, .focus-trying, .focus-perimenopause, .healingFocusMode, .pregnancyFocusMode, .focus-pregnant) .phoneShell #cycleScreen #cycleHistorySection .cycleHistoryListDetails > summary {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(246, 196, 214, 0.22) !important;
  color: #f7eef2 !important;
  -webkit-text-fill-color: #f7eef2 !important;
}
html[data-design="refined"][data-theme="dark"] .phoneShell #cycleScreen #cycleHistorySection .cycleHistoryListDetails > summary::after,
html[data-design="refined"][data-theme="moonlit"] .phoneShell #cycleScreen #cycleHistorySection .cycleHistoryListDetails > summary::after {
  color: #f6c4d6 !important;
}

/* Welcome ready screen: keep words spaced and the recap readable in every focus. */
html[data-design="refined"] .phoneShell #welcomeScreen .welcomeHero,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #welcomeScreen .welcomeHero,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode, .focus-tracking) .phoneShell #welcomeScreen .welcomeHero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  gap: 10px !important;
  text-align: center !important;
}
html[data-design="refined"] .phoneShell #welcomeScreen .welcomeHero :is(.authBrandMark, .label, h1, .authSubtitle, .welcomeRecap, .welcomeRecap > div, .welcomeRecap strong, .welcomeRecap small),
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #welcomeScreen .welcomeHero :is(.authBrandMark, .label, h1, .authSubtitle, .welcomeRecap, .welcomeRecap > div, .welcomeRecap strong, .welcomeRecap small),
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode, .focus-tracking) .phoneShell #welcomeScreen .welcomeHero :is(.authBrandMark, .label, h1, .authSubtitle, .welcomeRecap, .welcomeRecap > div, .welcomeRecap strong, .welcomeRecap small) {
  min-width: 0 !important;
  margin-inline: auto !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  font-kerning: normal !important;
  font-variant-ligatures: none !important;
  font-feature-settings: normal !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}
html[data-design="refined"] .phoneShell #welcomeScreen .welcomeHero .authBrandMark,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #welcomeScreen .welcomeHero .authBrandMark,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode, .focus-tracking) .phoneShell #welcomeScreen .welcomeHero .authBrandMark {
  width: auto !important;
  max-width: none !important;
  letter-spacing: 0 !important;
  word-spacing: 0.12em !important;
}
html[data-design="refined"] .phoneShell #welcomeScreen .welcomeHero .label,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #welcomeScreen .welcomeHero .label,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode, .focus-tracking) .phoneShell #welcomeScreen .welcomeHero .label {
  width: auto !important;
  max-width: none !important;
  letter-spacing: 0.14em !important;
  word-spacing: 0.42em !important;
}
html[data-design="refined"] .phoneShell #welcomeScreen .welcomeHero h1,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #welcomeScreen .welcomeHero h1,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode, .focus-tracking) .phoneShell #welcomeScreen .welcomeHero h1 {
  width: min(100%, 13em) !important;
  max-width: 13em !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.28em !important;
  line-height: 1.2 !important;
  text-wrap: balance !important;
}
html[data-design="refined"] .phoneShell #welcomeScreen .welcomeHero .authSubtitle,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #welcomeScreen .welcomeHero .authSubtitle,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode, .focus-tracking) .phoneShell #welcomeScreen .welcomeHero .authSubtitle {
  width: min(100%, 36ch) !important;
  max-width: 36ch !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  word-spacing: 0.22em !important;
  line-height: 1.55 !important;
}
html[data-design="refined"] .phoneShell #welcomeScreen .welcomeRecap,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #welcomeScreen .welcomeRecap,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode, .focus-tracking) .phoneShell #welcomeScreen .welcomeRecap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  width: min(100%, 34ch) !important;
  max-width: 34ch !important;
}
html[data-design="refined"] .phoneShell #welcomeScreen .welcomeRecap > div,
html[data-design="refined"] .phoneShell #welcomeScreen .welcomeRecap strong,
html[data-design="refined"] .phoneShell #welcomeScreen .welcomeRecap small,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #welcomeScreen .welcomeRecap > div,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #welcomeScreen .welcomeRecap strong,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #welcomeScreen .welcomeRecap small,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode, .focus-tracking) .phoneShell #welcomeScreen .welcomeRecap > div,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode, .focus-tracking) .phoneShell #welcomeScreen .welcomeRecap strong,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode, .focus-tracking) .phoneShell #welcomeScreen .welcomeRecap small {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  letter-spacing: 0.02em !important;
  word-spacing: 0.28em !important;
  line-height: 1.5 !important;
  font-weight: 650 !important;
}
html[data-design="refined"] .phoneShell #welcomeScreen .welcomePrimaryBtn,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #welcomeScreen .welcomePrimaryBtn,
html[data-design="refined"] body:is(.pregnancyFocusMode, .focus-pregnant, .focus-trying, .focus-perimenopause, .healingFocusMode, .focus-tracking) .phoneShell #welcomeScreen .welcomePrimaryBtn {
  letter-spacing: 0.02em !important;
  word-spacing: 0.2em !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  font-variant-ligatures: none !important;
}

/* First-run onboarding: same readable words as the rest of the current app. */
html[data-design="refined"] .phoneShell:has(#onboardingScreen.active) .tabBar,
html[data-design="refined"] .phoneShell:has(#intakeScreen.active) .tabBar,
html[data-design="refined"] .phoneShell:has(#periodHistoryScreen.active) .tabBar,
html[data-design="refined"] .phoneShell:has(#welcomeScreen.active) .tabBar,
html[data-design="refined"] .phoneShell:has(#authScreen.active) .tabBar {
  display: none !important;
}
html[data-design="refined"] .phoneShell #onboardingScreen .onboardingStep.active.authHero,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .onboardingStep.active.authHero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 12px !important;
  text-align: center !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[data-design="refined"] .phoneShell #onboardingScreen :is(.authBrandMark, .label, h1, .authSubtitle, .onboardingTagline, .authSignalPanel, .authSignalPanel strong, .authSignalPanel small),
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen :is(.authBrandMark, .label, h1, .authSubtitle, .onboardingTagline, .authSignalPanel, .authSignalPanel strong, .authSignalPanel small) {
  min-width: 0 !important;
  margin-inline: auto !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  font-kerning: normal !important;
  font-variant-ligatures: none !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}
html[data-design="refined"] .phoneShell #onboardingScreen .authBrandMark,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .authBrandMark {
  width: auto !important;
  max-width: none !important;
  letter-spacing: 0 !important;
  word-spacing: 0.12em !important;
}
html[data-design="refined"] .phoneShell #onboardingScreen .authHero .label,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .authHero .label {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  letter-spacing: 0.14em !important;
  word-spacing: 0.42em !important;
}
html[data-design="refined"] .phoneShell #onboardingScreen .authHero h1,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .authHero h1 {
  width: min(100%, 14em) !important;
  max-width: 14em !important;
  font-style: normal !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.28em !important;
  line-height: 1.2 !important;
  text-wrap: balance !important;
}
html[data-design="refined"] .phoneShell #onboardingScreen :is(.authSubtitle, .onboardingTagline),
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen :is(.authSubtitle, .onboardingTagline) {
  width: min(100%, 36ch) !important;
  max-width: 36ch !important;
  letter-spacing: 0.02em !important;
  word-spacing: 0.22em !important;
  line-height: 1.55 !important;
}
html[data-design="refined"] .phoneShell #onboardingScreen .authSignalPanel,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .authSignalPanel {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  width: min(100%, 34ch) !important;
  max-width: 34ch !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
html[data-design="refined"] .phoneShell #onboardingScreen .authSignalDot,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .authSignalDot {
  display: none !important;
}
html[data-design="refined"] .phoneShell #onboardingScreen .authSignalPanel strong,
html[data-design="refined"] .phoneShell #onboardingScreen .authSignalPanel small,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .authSignalPanel strong,
html[data-design="refined"] body[data-auth-style="ritual"] .phoneShell #onboardingScreen .authSignalPanel small {
  display: block !important;
  width: 100% !important;
  letter-spacing: 0.02em !important;
  word-spacing: 0.28em !important;
  line-height: 1.5 !important;
}
/* Companion controls follow the existing blush theme. */
.lumaAiIdentity{font-size:11px;text-align:center;color:var(--muted,#856b78);margin:3px 12px;line-height:1.5}
.lumaPrivacyTools,.lumaMessageControls{display:flex;gap:10px;align-items:center;justify-content:center;margin:5px 0}
.lumaPrivacyTools button,.lumaMessageControls button,.lumaMemoryNotice button,.lumaStopButton{border:0;background:transparent;color:var(--accent,#a35277);font-size:11px;padding:6px;cursor:pointer}
.lumaStopButton{align-self:center}.mobileChatForm[data-reply-pending=true]~.lumaStopButton{display:block}
.lumaActionCard{margin:8px 12px;padding:14px;border:1px solid #e9cbd8;border-radius:18px;background:var(--surface,#fff7fa);font-size:13px;line-height:1.5}
.lumaActionCard button{border:1px solid #d6a7bd;background:#f8e5ef;border-radius:15px;margin:4px;padding:7px 14px;color:#65354c}
.lumaConsentToggle{display:flex;gap:8px;align-items:center;font-size:13px;margin:12px 0}.lumaConsentToggle input{accent-color:#b56185}
.lumaMessageContent p{margin:0 0 .65em}.lumaMessageContent p:last-child{margin-bottom:0}.lumaMessageContent ul,.lumaMessageContent ol{padding-left:1.3em;margin:.6em 0}.lumaMessageContent a{color:inherit;text-decoration:underline}.lumaMessageControls{justify-content:flex-end;opacity:.8;margin:8px -3px -4px}
.lumaMemoryNotice{font-size:11px;padding:8px 16px;color:#886578}.lumaSheetChat .lumaSheetFooter{padding-bottom:max(12px,env(safe-area-inset-bottom));}
@media(prefers-reduced-motion:reduce){.lumaThinkingFlower{animation:none!important}}
.lumaVoicePreferences{font-size:11px;margin:4px 12px;color:var(--muted,#886578)}.lumaVoicePreferences label{display:inline-flex;gap:5px;margin:8px}.lumaVoicePreferences button,.lumaVoicePreferences select{font:inherit;border:1px solid #e6ccda;border-radius:12px;padding:5px 8px;background:transparent;color:inherit}.lumaSources{font-size:11px;margin-top:10px}.lumaSources a{display:inline-block;margin:4px 0}.lumaActionCard p{white-space:pre-wrap}.lumaMemoryForm input,.lumaMemoryForm select{border:1px solid #e3c2d3;padding:8px;border-radius:10px;font:inherit;background:transparent;color:inherit}.lumaMemoryForm label{display:grid;gap:4px}.lumaMemoryForm{flex-wrap:wrap}#lumaTasksPanel{max-height:45vh;overflow:auto}
/* One bounded chat column: the transcript owns scrolling. */
#lumaSheetOverlay .lumaSheet{display:flex!important;flex-direction:column!important;height:calc(var(--luma-viewport-height,100dvh) - 110px)!important;max-height:800px!important;min-height:240px!important;overflow:hidden!important;padding:18px!important}
#lumaSheetOverlay .lumaSheetHeader{flex:0 0 auto!important;margin-bottom:8px!important;padding-bottom:8px!important}
#lumaSheetOverlay .lumaSheetChat{display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;overflow:hidden!important;gap:5px!important;padding:0!important;position:relative!important}
#lumaSheetOverlay .lumaSheetChat>.lumaAiIdentity{flex:0 0 auto!important;order:0!important;margin:0!important;padding:0!important;font-size:10px!important;line-height:1.5!important}
#lumaSheetOverlay .lumaPrivacyTools{order:1!important;flex:0 0 auto!important;margin:2px 0!important;gap:6px!important;justify-content:space-between!important}
#lumaSheetOverlay .lumaPrivacyTools button{font-size:10px!important;padding:4px 2px!important;white-space:nowrap!important}
#lumaSheetOverlay .lumaVoicePreferences{order:2!important;flex:0 0 auto!important;margin:0!important;padding:3px 0!important}
#lumaSheetOverlay .lumaConcierge{order:3!important;flex:0 0 auto!important;padding:0!important;margin:0!important}
#lumaSheetOverlay .lumaSheetChat.hasConversation>.lumaConcierge{display:none!important}
#lumaSheetOverlay .lumaConciergeModes{margin:4px 0!important}
#lumaSheetOverlay #mobileMessages{order:5!important;display:flex!important;flex:1 1 0!important;min-height:90px!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;padding:12px 2px!important;scroll-behavior:auto!important}
#lumaSheetOverlay #mobileMessages:empty::before{content:"A little space for you. Say hello, ask a question, or tell Luma how you're feeling."!important;display:block!important;font-size:14px!important;line-height:1.7!important;text-align:center!important;padding:24px 16px!important;opacity:.7!important}
#lumaSheetOverlay .lumaSheetComposer{order:8!important;flex:0 0 auto!important;position:relative!important;inset:auto!important;margin:0!important;padding:6px 0 max(4px,env(safe-area-inset-bottom))!important;background:transparent!important}
#lumaSheetOverlay .mobileChatForm{position:relative!important;inset:auto!important;margin:0!important;min-height:50px!important}
#lumaSheetOverlay #mobileChatInput{font-size:16px!important;min-width:0!important;width:100%!important}
#lumaSheetOverlay .lumaCareFootnote{display:none!important}
#lumaSheetOverlay .lumaVoicePanel{order:9!important;flex:0 0 auto!important}
#lumaSheetOverlay .lumaInsightsSection:not([open]){display:none!important}
#lumaSheetOverlay .lumaInsightsSection[open]{flex:0 1 45%!important;overflow:auto!important;min-height:80px!important}
#lumaSheetOverlay .lumaPreviousChatsPanel{order:4!important;flex:0 1 auto!important;max-height:65%!important;overflow:auto!important;margin:4px 0!important}
#lumaSheetOverlay .lumaNewMessageBtn{order:6!important;flex:0 0 auto!important;align-self:center!important}

/* Keep secondary controls available without reducing the reading area. */
#lumaSheetOverlay .lumaChatOptions{order:1!important;flex:0 0 auto!important;font-size:11px;color:var(--muted,#856b78);margin:0!important;padding:2px 0!important}
#lumaSheetOverlay .lumaChatOptions>summary{cursor:pointer;padding:3px 0;text-align:right;list-style-position:inside}
#lumaSheetOverlay .lumaChatOptions[open]{border-bottom:1px solid rgba(160,99,126,.12);padding-bottom:6px!important}
#lumaSheetOverlay .lumaChatOptions .lumaPrivacyTools{margin:6px 0!important}
#lumaSheetOverlay .lumaMessageContent p{margin:0 0 12px!important;line-height:1.55!important}
#lumaSheetOverlay .lumaMessageContent p:last-child{margin-bottom:0!important}
.lumaChatError {
  align-self: stretch;
  padding: 14px 16px;
  margin: 8px 0;
  border: 1px solid var(--rose, #c7839d);
  border-radius: 18px;
  background: var(--surface, #fff7fa);
  color: var(--ink, #503d49);
  font-size: 0.9rem;
}
.lumaChatError p { margin: 0 0 8px; }
[data-theme="dark"] .lumaChatError,
[data-theme="moonlit"] .lumaChatError { background: #332a39; color: #f8eef5; }

/* You: personal context first, care tools next, grouped controls below. */
html[data-design="refined"] .phoneShell #profileScreen.youPage.active {
  display: block !important;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage > :is(.youPageHeader, .youIdentity, .youSection) {
  width: 100%;
  max-width: 620px;
  margin-inline: auto !important;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youPageHeader {
  margin-bottom: 20px !important;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youPageHeader h1 {
  width: auto !important;
  font-size: clamp(2rem, 8vw, 2.5rem) !important;
  white-space: normal !important;
  margin-bottom: 5px !important;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youPageLead {
  margin: 0 !important;
  font: 400 0.87rem/1.5 var(--luma-font-sans) !important;
  color: var(--luma-text-muted) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youIdentity,
html[data-design="refined"] .phoneShell #profileScreen.youPage .youSettingsList,
html[data-design="refined"] .phoneShell #profileScreen.youPage .youFocusCard {
  border: 1px solid var(--luma-border);
  border-radius: 20px;
  background: var(--luma-surface-card);
  box-shadow: 0 6px 20px rgba(90, 50, 70, 0.025);
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youIdentity {
  margin-bottom: 24px !important;
  overflow: hidden;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youIdentityMain {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youIdentityMain > div:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage #profileEmail {
  order: -1;
  margin: 0 !important;
  color: var(--luma-text-heading) !important;
  -webkit-text-fill-color: currentColor !important;
  font: 750 1.15rem/1.3 var(--luma-font-sans) !important;
  overflow-wrap: anywhere;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youIdentityStatus {
  margin: 0;
  color: var(--luma-text-muted);
  font: 500 0.73rem/1.4 var(--luma-font-sans);
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youAvatar {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--luma-surface-inset);
  color: var(--luma-link);
  font: 600 1.55rem/1 var(--luma-font-display);
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youSection {
  margin-bottom: 24px !important;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youSectionTitle {
  margin: 0 4px 10px !important;
  color: var(--luma-text-heading) !important;
  -webkit-text-fill-color: currentColor !important;
  font: 800 0.88rem/1.4 var(--luma-font-sans) !important;
  letter-spacing: 0 !important;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youFocusCard {
  padding: 16px;
  background: linear-gradient(130deg, var(--luma-surface-inset), var(--luma-surface-card) 75%);
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youFocusSummary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youFocusSummary .label {
  margin: 0 0 4px;
  color: var(--luma-link);
  font: 800 0.66rem/1.4 var(--luma-font-sans);
  letter-spacing: 0.09em;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage #profilePregnancyWeekNumber {
  display: block;
  color: var(--luma-text-heading);
  font: 600 1.65rem/1.1 var(--luma-font-display);
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youFocusChange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 5px;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid var(--luma-border);
  border-radius: 14px;
  background: var(--luma-surface-card);
  color: var(--luma-link);
  font: 750 0.78rem/1.3 var(--luma-font-sans);
  cursor: pointer;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youFocusChange svg {
  width: 14px;
  height: 14px;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage #profilePregnancyWeekMilestone {
  margin: 10px 0 4px;
  color: var(--luma-text);
  font: 500 0.8rem/1.45 var(--luma-font-sans);
}
html[data-design="refined"] .phoneShell #profileScreen.youPage #profilePregnancyWeekMeta {
  color: var(--luma-text-muted);
  font: 400 0.7rem/1.4 var(--luma-font-sans);
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youToolsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youTool {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--luma-border);
  border-radius: 16px;
  background: var(--luma-surface-card);
  color: var(--luma-text-heading);
  text-align: left;
  cursor: pointer;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youTool strong {
  flex: 1;
  min-width: 0;
  color: inherit;
  font: 750 0.8rem/1.35 var(--luma-font-sans);
  overflow-wrap: break-word;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youTool > .youChevron {
  display: none;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youRowIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  color: var(--luma-link);
  background: var(--luma-surface-inset);
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youRowIcon svg {
  width: 18px;
  height: 18px;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youSettingsList {
  overflow: hidden;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youDisclosure {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
/* The old reminder panel had a fixed collapsed height. Allow its labeled row to grow. */
html[data-design="refined"] .phoneShell #profileScreen.youPage #notificationsHub {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youSettingsList > * + *,
html[data-design="refined"] .phoneShell #profileScreen.youPage .youIdentity > .youDisclosure {
  border-top: 1px solid var(--luma-border);
}
html[data-design="refined"] body .phoneShell #profileScreen.youPage .youRow,
html[data-design="refined"] body .phoneShell #profileScreen.youPage #goToPrivacyCenterBtn.youRow {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 72px !important;
  height: auto !important;
  max-height: none !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--luma-text-heading) !important;
  text-align: left !important;
  list-style: none;
  cursor: pointer;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youRow::-webkit-details-marker {
  display: none;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youRowCopy {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youRowTitle {
  color: var(--luma-text-heading) !important;
  -webkit-text-fill-color: currentColor !important;
  font: 750 0.87rem/1.35 var(--luma-font-sans) !important;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youRowCopy small {
  color: var(--luma-text-muted);
  font: 400 0.71rem/1.4 var(--luma-font-sans);
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youChevron {
  display: block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin: 0 3px 4px 6px;
  border: solid var(--luma-text-muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youDisclosure[open] > .youRow .youChevron {
  transform: rotate(225deg);
  margin-bottom: 0;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youChevron--forward {
  transform: rotate(-45deg);
  margin-bottom: 0;
}
html[data-design="refined"] body .phoneShell #profileScreen.youPage #goToPrivacyCenterBtn.youRow::after {
  display: none !important;
  content: none !important;
}
html[data-design="refined"] body .phoneShell #profileScreen.youPage #goToPrivacyCenterBtn.youRow > .youRowIcon {
  display: inline-flex !important;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youDisclosureBody {
  padding: 0 16px 16px;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youDisclosure:not([open]) > .youDisclosureBody,
html[data-design="refined"] .phoneShell #profileScreen.youPage [hidden] {
  display: none !important;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youDisclosureBody .settingsRow {
  margin: 4px 0;
  border: 0;
  background: var(--luma-surface-card-alt);
  border-radius: 14px;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .profileDetailsForm {
  padding: 0;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youDisclosureBody :is(input, select, textarea) {
  font-size: 16px;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youBodyHeading {
  margin: 8px 0;
  font: 700 0.85rem/1.4 var(--luma-font-sans);
  color: var(--luma-text-heading);
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .profileStats {
  margin: 0 0 12px !important;
  gap: 8px !important;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .profileStats .profileStat {
  min-height: 70px !important;
  padding: 10px 6px !important;
  background: var(--luma-surface-inset) !important;
  border: 0 !important;
  border-radius: 12px !important;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage #youAccountDetails #profileLogoutBtn {
  margin: 12px 0;
  min-height: 44px;
  background: var(--luma-surface-inset);
  color: var(--luma-link);
  box-shadow: none;
  border: 1px solid var(--luma-border);
}
html[data-design="refined"] .phoneShell #profileScreen.youPage #deleteAccountBtn {
  background: transparent;
  color: var(--luma-text-muted);
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youLegalLinks {
  justify-content: center;
  gap: 10px 18px;
  padding: 16px 0 4px;
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youLegalLinks a {
  color: var(--luma-text-muted);
  font: 600 0.67rem/1.4 var(--luma-font-sans);
}
html[data-design="refined"] .phoneShell #profileScreen.youPage :is(.youRow, .youTool, .youFocusChange):focus-visible {
  outline: 2px solid var(--luma-link);
  outline-offset: -3px;
}
@media (max-width: 360px) {
  html[data-design="refined"] .phoneShell #profileScreen.youPage .youTool {
    gap: 7px;
    padding: 10px;
  }
  html[data-design="refined"] .phoneShell #profileScreen.youPage .youTool strong {
    font-size: 0.75rem;
  }
}

/* Companion design: quiet chrome, spacious conversation, and useful starting points. */
html[data-design="refined"] .phoneShell .lumaCompanionBloom {
  display: inline-grid !important; place-items: center; flex: 0 0 auto;
  width: 52px; height: 52px; border-radius: 38% 48% 42% 48%;
  background: radial-gradient(circle at 28% 20%, #ffe8ef, #dfa1b8 58%, #bb8cb4);
  color: #81506c; font-family: Georgia, serif; font-size: 36px; line-height: 1;
  box-shadow: 0 8px 22px rgba(157, 86, 119, .14), inset 0 1px 1px #fff9;
  -webkit-text-fill-color: #81506c;
}
html[data-design="refined"] .phoneShell #lumaHubScreen.companionHub .mobileHeader {
  margin-bottom: 18px !important;
}
html[data-design="refined"] .phoneShell #lumaHubScreen.companionHub .mobileHeader h1 {
  font-size: clamp(2.1rem, 8vw, 2.7rem) !important; line-height: 1.05 !important;
}
html[data-design="refined"] .phoneShell #lumaHubScreen.companionHub .lumaHubHero {
  display: flex !important; flex-direction: column !important; align-items: center !important;
  padding: 24px 20px 20px !important; margin: 0 0 24px !important; gap: 0 !important;
  border: 1px solid var(--luma-border) !important; border-radius: 28px !important;
  background: radial-gradient(ellipse at 50% -10%, #e8a8bc24, transparent 72%), var(--luma-surface-card) !important;
  box-shadow: 0 8px 28px #74475b06 !important; text-align: center !important;
}
html[data-design="refined"] .phoneShell #lumaHubScreen.companionHub .lumaHubHero::before,
html[data-design="refined"] .phoneShell #lumaHubScreen.companionHub .lumaHubHero::after { display: none !important; }
html[data-design="refined"] .phoneShell #lumaHubScreen.companionHub .lumaHubHero #lumaHubScope {
  display: block !important; margin: 16px 0 9px !important; color: var(--luma-link) !important;
  font: 700 10px/1.4 var(--luma-font-body, sans-serif) !important; letter-spacing: .15em !important;
}
html[data-design="refined"] .phoneShell #lumaHubScreen.companionHub #lumaHubHeroTitle {
  font: 500 clamp(1.9rem, 7.5vw, 2.4rem)/1.06 var(--r-display, "Cormorant Garamond", Georgia, serif) !important;
  color: var(--luma-text-heading) !important; -webkit-text-fill-color: currentColor !important;
  max-width: 360px; margin: 0 auto 12px !important; text-align: center !important; letter-spacing: -.025em !important;
}
html[data-design="refined"] .phoneShell #lumaHubScreen.companionHub .lumaHubGreeting {
  font: 400 13px/1.65 var(--luma-font-body, sans-serif) !important; color: var(--luma-text-muted) !important;
  max-width: 330px; margin: 0 auto !important; text-align: center !important;
}
html[data-design="refined"] .phoneShell #lumaHubScreen.companionHub .lumaHubActions {
  display: flex !important; flex-direction: column; width: 100%; gap: 6px !important; margin-top: 18px !important;
}
html[data-design="refined"] .phoneShell #lumaHubScreen.companionHub .lumaHubActions .wideButton {
  width: 100% !important; max-width: 340px; min-height: 48px !important; border-radius: 16px !important;
  background: var(--luma-text-heading) !important; color: var(--luma-surface-card) !important;
  -webkit-text-fill-color: currentColor !important; box-shadow: none !important; font-size: 13px !important;
}
html[data-design="refined"] .phoneShell #lumaHubScreen.companionHub .lumaHubActions .textLinkBtn {
  font: 600 12px/1.4 var(--luma-font-body, sans-serif) !important; min-height: 36px; padding: 6px 12px !important;
}
html[data-design="refined"] .phoneShell .lumaExploreHead { margin: 0 2px 12px; }
html[data-design="refined"] .phoneShell .lumaExploreHead h2 {
  font: 600 1.55rem/1.15 var(--r-display, Georgia, serif) !important; color: var(--luma-text-heading) !important; margin: 0 0 4px !important;
}
html[data-design="refined"] .phoneShell .lumaExploreHead p { font-size: 12px; color: var(--luma-text-muted); margin: 0; }
html[data-design="refined"] .phoneShell .lumaStarterGrid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; width: 100%; }
html[data-design="refined"] .phoneShell button.lumaStarterCard {
  position: relative; display: flex !important; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  gap: 12px; min-width: 0; min-height: 112px; padding: 15px 12px !important;
  border: 1px solid var(--luma-border) !important; border-radius: 20px !important;
  background: var(--luma-surface-card) !important; color: var(--luma-text) !important;
  -webkit-text-fill-color: currentColor !important; text-align: left !important; box-shadow: none !important;
  transition: border-color .2s, transform .2s, background .2s;
}
html[data-design="refined"] .phoneShell button.lumaStarterCard:hover { border-color: var(--luma-accent-deep) !important; transform: translateY(-2px); }
html[data-design="refined"] .phoneShell .lumaStarterCard strong { font: 600 12px/1.4 var(--luma-font-body, sans-serif) !important; max-width: 130px; }
html[data-design="refined"] .phoneShell .lumaStarterIcon { display: grid; place-items: center; width: 30px; height: 30px; background: var(--luma-surface-inset); color: var(--luma-link); border-radius: 10px; }
html[data-design="refined"] .phoneShell .lumaStarterIcon svg { width: 17px; height: 17px; stroke-width: 1.6; }
html[data-design="refined"] .phoneShell .lumaStarterArrow { position: absolute; top: 16px; right: 14px; color: var(--luma-text-muted); font-size: 15px; opacity: .7; }
html[data-design="refined"] .phoneShell #lumaHubScreen.companionHub .lumaHubHistory { margin-top: 22px !important; }
html[data-design="refined"] .phoneShell #lumaHubScreen.companionHub .lumaInsightsHubDetails { margin-top: 12px !important; padding: 16px !important; border: 1px solid var(--luma-border) !important; border-radius: 20px !important; background: var(--luma-surface-card) !important; }
html[data-design="refined"] .phoneShell #lumaHubScreen.companionHub .lumaInsightsHubDetails h2 { font: 600 13px/1.4 var(--luma-font-body, sans-serif) !important; margin: 0 !important; }
html[data-design="refined"] .phoneShell #lumaHubScreen.companionHub .lumaInsightsHubDetails .hubSectionLead { font-size: 11px !important; line-height: 1.5 !important; font-weight: 400 !important; }
html[data-design="refined"] .phoneShell #lumaHubScreen.companionHub .lumaInsightsHubDetails .label { display: none !important; }

/* Full conversation sheet: the header stays compact and the transcript owns scrolling. */
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign {
  padding: 8px 8px calc(80px + env(safe-area-inset-bottom)) !important;
  grid-template-rows: minmax(0, 1fr) !important; justify-items: center !important;
  align-items: end !important; background: #35272d40 !important; backdrop-filter: blur(10px);
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheet {
  width: 100% !important; max-width: 680px !important; height: 100% !important;
  max-height: min(900px, 100%) !important; min-height: 240px !important; padding: 0 16px !important;
  border-radius: 28px !important; background: var(--luma-surface-card) !important;
  border: 1px solid var(--luma-border) !important; box-shadow: 0 24px 80px #38222f26 !important;
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetHeader {
  display: flex !important; align-items: center !important; gap: 10px !important;
  position: relative !important; overflow: visible !important; z-index: 10;
  flex: 0 0 auto !important; margin: 0 !important; padding: 17px 0 15px !important;
  background: transparent !important; border-bottom: 1px solid var(--luma-border) !important;
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaHeaderBloom { width: 38px; height: 38px; font-size: 26px; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetHeaderMain { flex: 1; min-width: 0; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetBrand { display: none !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #lumaSheetTitle {
  margin: 0 0 3px !important; padding: 0 !important; font: 600 24px/1 var(--r-display, Georgia, serif) !important;
  color: var(--luma-text-heading) !important; -webkit-text-fill-color: currentColor !important;
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #lumaSheetContext {
  margin: 0 !important; font: 400 10px/1.35 var(--luma-font-body, sans-serif) !important; letter-spacing: 0 !important;
  text-transform: none !important; color: var(--luma-text-muted) !important; white-space: normal !important;
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetHeaderActions {
  display: flex !important; align-items: center; flex: 0 0 auto; gap: 2px !important; margin: 0 !important; padding: 0 !important;
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetHeaderActions > button,
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatOptions > summary,
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetClose {
  display: grid !important; place-items: center; width: 34px !important; height: 40px !important; min-height: 40px !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 12px !important;
  position: static !important; background: transparent !important; color: var(--luma-text-muted) !important;
  font: 500 20px/1 var(--luma-font-body, sans-serif) !important; box-shadow: none !important; cursor: pointer;
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetHeaderActions svg { width: 18px; height: 18px; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatOptions { position: static; margin: 0 !important; padding: 0 !important; border: 0 !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatOptions > summary { letter-spacing: 1px; list-style: none; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatOptions > summary::-webkit-details-marker { display: none; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatMenu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(268px, calc(100vw - 56px));
  max-height: min(70dvh, 520px); overflow: auto; padding: 8px; border-radius: 22px;
  background: var(--luma-surface-card); border: 1px solid var(--luma-border);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--luma-text-heading) 12%, transparent);
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatMenu > .lumaMenuLabel { display: none !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaMenuLabel { font: 600 11px/1.4 var(--r-sans, sans-serif) !important; color: var(--luma-text-muted) !important; letter-spacing: 0.04em !important; text-transform: none !important; margin: 0 4px 8px !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign :is(.lumaMenuTools, .lumaPrivacyTools) { display: grid !important; grid-template-columns: 1fr !important; gap: 2px !important; margin: 0 !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign :is(.lumaMenuTools, .lumaPrivacyTools) button,
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaVoicePreferences > summary {
  display: flex !important; align-items: center; width: 100%; box-sizing: border-box;
  border: 0 !important; border-radius: 14px !important; min-height: 44px; padding: 0 12px !important;
  background: transparent !important; color: var(--luma-text) !important; text-align: left !important;
  font: 600 15px/1.3 var(--r-sans, sans-serif) !important; cursor: pointer; list-style: none;
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaVoicePreferences > summary::-webkit-details-marker { display: none; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign :is(.lumaMenuTools, .lumaPrivacyTools) button:hover,
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaVoicePreferences > summary:hover { background: var(--luma-surface-inset) !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #lumaDeleteChatBtn { color: var(--luma-accent-text, var(--luma-link)) !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaVoicePreferences { border: 0; padding: 0 !important; margin: 2px 0 0 !important; color: var(--luma-text); }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaVoicePreferences label { display: grid; gap: 6px; width: 100%; margin: 8px 0; padding: 0 12px; box-sizing: border-box; font: 600 12px/1.4 var(--r-sans, sans-serif); color: var(--luma-text-muted); }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaVoicePreferences select { width: 100%; max-width: 100%; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaVoicePreferences button { margin: 4px 12px 8px; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaConcierge { margin: 8px 4px 2px !important; padding: 12px 0 4px !important; border-top: 1px solid var(--luma-border) !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaConciergePanel { display: none !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaConciergeModes { display: flex !important; gap: 6px; padding: 0; background: transparent; border-radius: 0; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaConciergeMode { flex: 1; min-height: 36px; padding: 6px 4px !important; border: 1px solid var(--luma-border) !important; border-radius: 999px !important; background: transparent !important; color: var(--luma-text-muted) !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaConciergeMode strong { font: 650 13px/1.2 var(--r-sans, sans-serif) !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaConciergeMode.active { background: var(--luma-text-heading) !important; border-color: var(--luma-text-heading) !important; color: var(--luma-surface-card) !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaConciergeMode.active strong { color: inherit !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #lumaChatPrivacyLabel { margin: 10px 4px 4px !important; font: 500 12px/1.4 var(--r-sans, sans-serif) !important; text-align: center; text-transform: none !important; letter-spacing: 0 !important; color: var(--luma-text-muted) !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #lumaChatPrivacyLabel[hidden] { display: none !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetChat { gap: 0 !important; border: 0 !important; background: transparent !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatWelcome {
  order: 5; flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; align-items: center; padding: 28px 4px 16px; text-align: center;
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatWelcome[hidden] { display: none !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaWelcomeBloom { width: 66px; height: 66px; font-size: 44px; margin: 0 0 20px; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatWelcome .label { color: var(--luma-link) !important; font: 700 9px/1.4 var(--luma-font-body, sans-serif) !important; letter-spacing: .16em; margin: 0 0 9px; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatWelcome h3 { font: 500 32px/1.05 var(--r-display, Georgia, serif) !important; color: var(--luma-text-heading) !important; margin: 0 0 12px !important; letter-spacing: -.025em; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatWelcome > p:not(.label) { font: 400 13px/1.65 var(--luma-font-body, sans-serif) !important; color: var(--luma-text-muted) !important; margin: 0 0 24px !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaStarterCard { min-height: 100px; gap: 8px; background: var(--luma-surface-inset) !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #mobileMessages { padding: 22px 0 16px !important; gap: 18px !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #mobileMessages:empty { display: none !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #mobileMessages:empty::before { content: none !important; display: none !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .mobileMessage {
  width: auto !important; max-width: 94% !important; flex: 0 0 auto; margin: 0 !important; padding: 16px !important;
  font: 400 15px/1.65 var(--luma-font-body, sans-serif) !important; letter-spacing: 0 !important; word-spacing: normal !important;
  color: var(--luma-text) !important; -webkit-text-fill-color: currentColor !important; box-shadow: none !important;
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .mobileMessage.luma {
  align-self: flex-start; background: transparent !important; border: 0 !important; padding: 0 6px 0 2px !important; max-width: 100% !important; border-radius: 0 !important;
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .mobileMessage.luma:not(.lumaThinkingMessage)::before {
  content: 'Luma'; display: block; font: 700 10px/1.3 var(--luma-font-body, sans-serif); color: var(--luma-link); margin-bottom: 8px; letter-spacing: .06em;
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .mobileMessage.you { align-self: flex-end; border-radius: 20px 20px 5px 20px !important; border: 1px solid var(--luma-border) !important; background: var(--luma-surface-inset) !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaMessageContent p { line-height: 1.65 !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaMessageContent :is(h2,h3,h4) { font: 650 16px/1.4 var(--luma-font-body, sans-serif) !important; margin: 20px 0 8px !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaMessageControls { justify-content: flex-start; gap: 10px; margin: 8px 0 0; border-top: 1px solid var(--luma-border); padding-top: 4px; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaMessageControls button { min-height: 34px; padding: 4px 6px; font-size: 10px; color: var(--luma-text-muted); }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaThinkingMessage { display: flex !important; align-items: center !important; flex-wrap: nowrap !important; gap: 9px !important; padding: 12px 0 !important; font-size: 12px !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaThinkingFlower { width: 30px !important; height: 30px !important; font-size: 20px !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaThinkingLabel { flex: 0 1 auto !important; min-width: 0; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaThinkingDots { display: inline-flex !important; flex: 0 0 auto !important; gap: 3px !important; width: auto !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaThinkingDots span { width: 3px !important; height: 3px !important; min-width: 3px !important; margin: 0 !important; padding: 0 !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetComposer { padding: 12px 0 max(12px, env(safe-area-inset-bottom)) !important; border-top: 1px solid var(--luma-border); }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .mobileChatForm {
  display: flex !important; align-items: flex-end !important; gap: 8px !important; padding: 8px !important; min-height: 62px !important;
  box-sizing: border-box !important;
  background: var(--luma-surface-inset) !important; border: 1px solid var(--luma-border) !important; border-radius: 22px !important;
  box-shadow: none !important; outline: none !important;
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .mobileChatForm:focus-within { border-color: var(--luma-accent-deep) !important; box-shadow: 0 0 0 3px #ca86a112 !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #mobileChatInput {
  display: block !important; flex: 1 1 0%; min-width: 0 !important; width: 0 !important; min-height: 44px !important; max-height: 128px;
  box-sizing: border-box !important; padding: 10px 4px !important; margin: 0 !important; resize: none; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; color: var(--luma-text) !important; -webkit-text-fill-color: currentColor !important;
  outline: none !important; box-shadow: none !important; font: 400 16px/24px var(--luma-font-body, sans-serif) !important;
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #mobileChatInput::placeholder { color: var(--luma-text-muted); opacity: .8; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .mobileChatForm > button {
  display: grid !important; place-items: center !important; grid-template-columns: none !important; gap: 0 !important;
  flex: 0 0 44px !important; width: 44px !important; min-width: 44px !important; max-width: 44px !important;
  height: 44px !important; min-height: 44px !important; max-height: 44px !important; padding: 0 !important; margin: 0 !important;
  box-sizing: border-box !important; line-height: 1 !important;
  border: 0 !important; border-radius: 50% !important; background: var(--luma-text-heading) !important;
  color: var(--luma-surface-card) !important; -webkit-text-fill-color: currentColor !important; box-shadow: none !important;
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .mobileChatForm > button:disabled { opacity: .35; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .mobileChatForm > button svg { display: block; width: 20px; height: 20px; margin: 0; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaComposerSafety { margin: 8px 0 0; text-align: center; font: 400 9px/1.5 var(--luma-font-body, sans-serif); color: var(--luma-text-muted); }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaComposerSafety a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatUpgradeNote { display: none !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaPreviousChatsPanel { padding: 16px !important; background: var(--luma-surface-inset) !important; border: 1px solid var(--luma-border) !important; border-radius: 18px !important; font-size: 12px; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaPreviousChatsPanel[hidden] { display: none !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaPreviousChatItem { padding: 12px !important; border-radius: 12px !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaPreviousChatItem strong { font-size: 12px !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatError { background: var(--luma-surface-inset); border-color: var(--luma-border); font-size: 13px; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaRetryButton { border: 1px solid var(--luma-border); border-radius: 12px; padding: 8px 14px; font: 600 12px/1.4 var(--luma-font-body, sans-serif); background: var(--luma-surface-card); color: var(--luma-link); }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaStopButton { min-height: 34px; margin: 0 auto 6px; }

/* App-wide rhythm: one primary action, followed by optional depth. */
/* Home uses the screen's padding once, including cards inside the pregnancy hub. */
html[data-design="refined"] .phoneShell #todayScreen {
  --luma-content-rail: 100%;
  gap: 16px !important;
}
html[data-design="refined"] .phoneShell #todayScreen > *,
html[data-design="refined"] .phoneShell #todayScreen #homePregnancyHub > * {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
}
html[data-design="refined"] .phoneShell #todayScreen .homeQuickActions {
  display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 9px; margin: 0 !important; padding: 0 !important;
}
html[data-design="refined"] .phoneShell #todayScreen .homeQuickActions button {
  display: flex !important; align-items: center; justify-content: center; align-self: stretch; gap: 7px;
  box-sizing: border-box; width: 100%; min-width: 0; height: auto !important; min-height: 48px !important; margin: 0 !important; padding: 10px !important;
  border: 1px solid var(--luma-border) !important; border-radius: 16px !important; font: 600 12px/1.4 var(--luma-font-body, sans-serif) !important;
  background: var(--luma-surface-card) !important; color: var(--luma-text) !important; box-shadow: none !important;
}
html[data-design="refined"] .phoneShell #todayScreen .homeQuickActions #homePrimaryActionBtn { background: var(--luma-text-heading) !important; color: var(--luma-surface-card) !important; -webkit-text-fill-color: currentColor !important; }
html[data-design="refined"] .phoneShell #todayScreen .homeQuickActions .homePrimaryActionHint { grid-column: 1 / -1; font-size: 11px; text-align: center; color: var(--luma-text-muted); margin: 0 !important; }
html[data-design="refined"] .phoneShell #todayScreen .appDisclosure,
html[data-design="refined"] .phoneShell #careScreen .learningExtras {
  border: 1px solid var(--luma-border); border-radius: 20px; background: var(--luma-surface-card); margin: 12px 0; padding: 0 !important;
}
html[data-design="refined"] .phoneShell :is(.appDisclosure, .learningExtras) > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; padding: 17px; }
html[data-design="refined"] .phoneShell :is(.appDisclosure, .learningExtras) > summary::-webkit-details-marker { display: none; }
html[data-design="refined"] .phoneShell :is(.appDisclosure, .learningExtras) > summary strong { display: block; font: 600 13px/1.4 var(--luma-font-body, sans-serif); color: var(--luma-text); }
html[data-design="refined"] .phoneShell :is(.appDisclosure, .learningExtras) > summary small { display: block; font: 400 11px/1.5 var(--luma-font-body, sans-serif); color: var(--luma-text-muted); margin-top: 3px; }
html[data-design="refined"] .phoneShell #todayScreen .homeInsightBody { padding: 0 16px 16px; }
html[data-design="refined"] .phoneShell #todayScreen .homeInsightBody :is(.homeTrustCard, .homeDailyInsightCard) { padding: 16px 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
html[data-design="refined"] .phoneShell #todayScreen .homeInsightBody .homeDailyInsightCard { border-top: 1px solid var(--luma-border) !important; }
html[data-design="refined"] .phoneShell #todayScreen .homePrivacyDisclosure .homePrivacyHeadline { margin: 0 !important; padding: 0 17px 17px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
html[data-design="refined"] .phoneShell #todayScreen .homePrivacyDisclosure .homePrivacyHeadline > :is(.label,h2) { display: none !important; }
html[data-design="refined"] .phoneShell #todayScreen .homePrivacyDisclosure .homePrivacyHeadline p { font-size: 12px !important; }
html[data-design="refined"] .phoneShell #careScreen .careIntro { font-size: 13px !important; line-height: 1.6 !important; margin-bottom: 18px !important; }
html[data-design="refined"] .phoneShell #careScreen .careSearchLabel { display: block; margin: 20px 0 !important; }
html[data-design="refined"] .phoneShell #careScreen .careSearchInput { min-height: 50px; border: 1px solid var(--luma-border) !important; border-radius: 16px !important; padding: 14px 16px !important; background: var(--luma-surface-card) !important; box-shadow: none !important; font-size: 14px !important; }
html[data-design="refined"] .phoneShell #careScreen .learnResourceGroup { margin-top: 28px; }
html[data-design="refined"] .phoneShell #careScreen .learningExtras > :not(summary) { margin-inline: 17px; }
html[data-design="refined"] .phoneShell #careScreen .learningExtras > :last-child { margin-bottom: 17px; }
html[data-design="refined"] .phoneShell #careScreen .learnResourceGroup .hubSection { border: 1px solid var(--luma-border) !important; border-radius: 20px !important; background: var(--luma-surface-card) !important; margin: 12px 0 !important; }
html[data-design="refined"] .phoneShell #careScreen .learnResourceGroup .hubSection h2 { font: 600 14px/1.4 var(--luma-font-body, sans-serif) !important; }
html[data-design="refined"] .phoneShell #careScreen .learnResourceGroup .hubSectionLead { font: 400 11px/1.5 var(--luma-font-body, sans-serif) !important; }
html[data-design="refined"] .phoneShell #careScreen .learnResourceGroup .label { display: none !important; }
html[data-design="refined"] .phoneShell :is(.lumaStarterCard, .lumaSheetHeader button, .lumaChatOptions summary, .appDisclosure summary, .learningExtras summary):focus-visible { outline: 2px solid var(--luma-link) !important; outline-offset: 4px; }
@media (max-width: 350px) {
  html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaHeaderBloom { display: none !important; }
  html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatWelcome h3 { font-size: 28px !important; }
}
@media (max-height: 650px) {
  html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatWelcome { padding-top: 18px; }
  html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaWelcomeBloom { width: 40px; height: 40px; font-size: 28px; margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-design="refined"] .phoneShell .lumaStarterCard { transition: none; transform: none !important; }
}
/* Keep flexible empty state and composer order explicit against legacy sheet rules. */
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatWelcome { flex: 1 1 0 !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetComposer { display: flex !important; flex-direction: column !important; gap: 0 !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetComposer > #mobileChatForm { order: 1 !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetComposer > .lumaComposerSafety { order: 2 !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetComposer > .lumaStopButton { order: 0 !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaMenuLabel { display: block !important; }
/* Pregnancy Home keeps the week summary before actions, with the guide on demand. */
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen #homePregnancyHub:not([hidden]) { display: contents !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .homeDaySummary { display: none !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen #pregnancyWeekCard:not([hidden]) { order: 1 !important; gap: 12px !important; margin: 0 !important; padding: 0 !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .homeQuickActions { order: 2 !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen #homePregnancyHub > :not(#pregnancyWeekCard) { order: 4 !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .pregnancyStoryHero { height: 226px !important; min-height: 226px !important; max-height: 226px !important; margin: 0 !important; padding: 0 !important; border-radius: 26px !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .pregnancyWombVisual { width: 170px !important; height: 190px !important; margin: 0 !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .pregnancyWombShell { width: 145px !important; height: 180px !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .pregnancyStoryBrand { font-size: 13px !important; top: 20px !important; left: 20px !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .pregnancyWeekTracker { margin: 0 !important; padding: 12px !important; border-radius: 20px !important; box-shadow: none !important; border: 1px solid var(--luma-border); background: var(--luma-surface-card) !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .pregnancyStorySheet { margin: 0 !important; padding: 0 !important; gap: 12px !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .pregnancyStoryHeroCopy { padding: 4px 3px 0 !important; margin: 0 !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .pregnancyStoryWeekLine { margin: 0 0 3px !important; font-size: 30px !important; line-height: 1.15 !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .pregnancyNeoMilestone { margin: 0 0 9px !important; font-size: 18px !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .pregnancyWeekDetails { margin: 0 !important; width: 100%; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .pregnancyWeekDetailsBody { padding: 0 16px 16px; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .pregnancyWeekDetailsBody .pregnancyStoryTimeline { margin: 18px 0 !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .homeInsightDisclosure .homeTrustBrand { display: none !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .homeInsightDisclosure .homeTrustLabel { margin: 0 !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen .homeInsightDisclosure :is(.homeTrustMain,.homeTrustSub) { font-size: 24px !important; }
html[data-design="refined"] .phoneShell #careScreen .learnVisualFeature { border: 1px solid var(--luma-border) !important; border-radius: 24px !important; background: var(--luma-surface-card) !important; padding: 0 !important; overflow: hidden; }
html[data-design="refined"] .phoneShell #careScreen .learnVisualFeature #learnFocusVisual { height: 132px !important; min-height: 132px !important; max-height: 132px !important; object-fit: cover; }
html[data-design="refined"] .phoneShell #careScreen .learnVisualFeature > div { padding: 20px !important; }
html[data-design="refined"] .phoneShell #careScreen .learnVisualFeature #learnVisualTitle { font-size: 24px !important; line-height: 1.15 !important; margin: 7px 0 10px !important; }
html[data-design="refined"] .phoneShell #careScreen .learnFocusAbout { margin: 10px 0 14px; font-size: 12px; color: var(--luma-text-muted); }
html[data-design="refined"] .phoneShell #careScreen .learnFocusAbout summary { cursor: pointer; font-weight: 500; padding: 5px 0; }
html[data-design="refined"] .phoneShell #careScreen .learnFocusAbout p { font-size: 12px !important; line-height: 1.65 !important; }
html[data-design="refined"] .phoneShell #careScreen .learnFeaturedArticle .careArticleCard { padding: 14px !important; border: 1px solid var(--luma-border) !important; border-radius: 16px !important; background: var(--luma-surface-inset) !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen #pregnancyWeekCard > .homeQuickActions { order: 0 !important; margin: 0 !important; }
html[data-design="refined"] body.pregnancyFocusMode .phoneShell #todayScreen #pregnancyWeekCard > .homeQuickActions .homePrimaryActionHint { display: none; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetHeaderActions > button,
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaChatOptions > summary,
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetClose { width: 40px !important; }
/* Secondary chat panels share the same reading area instead of stacking. */
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetChat:has(> .lumaPreviousChatsPanel:not([hidden])) > :is(#mobileMessages,.lumaChatWelcome,.lumaSheetComposer,.lumaNewMessageBtn) { display: none !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetChat > .lumaPreviousChatsPanel:not([hidden]) { flex: 1 1 0 !important; max-height: none !important; margin-block: 12px !important; min-height: 0 !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaPreviousChatsHeader button { width: 40px; height: 40px; flex: 0 0 auto; }
html[data-design="refined"] .phoneShell #cycleScreen #pregnancyCalendarActions.appDisclosure { display: block !important; padding: 0 !important; border: 1px solid var(--luma-border) !important; border-radius: 18px !important; margin: 10px 0 14px !important; background: var(--luma-surface-card) !important; }
html[data-design="refined"] .phoneShell #cycleScreen #pregnancyCalendarActions[hidden] { display: none !important; }
html[data-design="refined"] .phoneShell #cycleScreen .pregnancyCalendarDetailsBody { padding: 0 14px 14px; }
html[data-design="refined"] .phoneShell #cycleScreen .pregnancyCalendarActionRow { margin-top: 10px !important; }
html[data-design="refined"] .phoneShell #todayScreen .pregnancyWeekRail { scroll-behavior: auto !important; }
html[data-design="refined"] .phoneShell #todayScreen :is(#homeRemindersCount, #pregnancyKickStartBtn, #pregnancyKickTapBtn, #pregnancyKickStopBtn)[hidden] { display: none !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaSheetHeaderMain { flex: 1 1 0 !important; min-width: 0 !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaMessageContent { overflow-wrap: anywhere; }
@media (max-width: 350px) {
  html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #lumaSheetContext { display: none !important; }
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #lumaSheetContext { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; }

/* Prenatal visits share Luma's blush surfaces, editorial type, and soft controls. */
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard.appointmentsRedesign {
  padding: 20px !important;
  border: 1px solid var(--luma-border) !important;
  border-radius: 24px !important;
  background: var(--luma-surface-card) !important;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--luma-accent) 10%, transparent) !important;
  color: var(--luma-text) !important;
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitCardHeader {
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; text-align: left;
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitCardHeader > div { min-width: 0; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitCardIcon {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 15px;
  background: var(--luma-surface-inset); color: var(--luma-link); border: 1px solid var(--luma-border);
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitCardIcon svg { width: 21px; height: 21px; stroke-width: 1.6; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitCardHeader .label {
  margin: 0 0 3px !important; color: var(--luma-link) !important;
  font: 700 9px/1.5 var(--r-sans) !important; letter-spacing: .12em !important;
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard #pregnancyAppointmentsHeading {
  margin: 0 !important; font: italic 500 28px/1.05 var(--r-display) !important; color: var(--luma-text-heading) !important;
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .pregnancyApptLead {
  margin: 14px 0 18px !important; font: 400 12px/1.6 var(--r-sans) !important; color: var(--luma-text-muted) !important;
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .pregnancyAppointmentsList { gap: 10px; margin: 0; padding: 0; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .pregnancyAppointmentsList > li {
  padding: 10px; gap: 4px; border: 1px solid var(--luma-border) !important; border-radius: 16px;
  background: var(--luma-surface-card) !important; color: var(--luma-text) !important;
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .pregnancyAppointmentsList > .pregnancyApptEmpty {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 16px;
  background: var(--luma-surface-inset) !important; border-color: transparent !important;
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .pregnancyApptEmpty strong { font: 600 13px/1.5 var(--r-sans); color: var(--luma-text-heading) !important; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .pregnancyApptEmpty > span { font: 400 12px/1.6 var(--r-sans); color: var(--luma-text-muted) !important; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .pregnancyAppointmentsAdd {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--luma-border);
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitFormHeading { margin: 0; font: 600 13px/1.5 var(--r-sans); color: var(--luma-text-heading); }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitField {
  display: grid; gap: 6px; min-width: 0; margin: 0; font: 600 11px/1.5 var(--r-sans); color: var(--luma-text-muted);
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitField input {
  box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 12px 14px !important;
  appearance: none; border: 1px solid var(--luma-border) !important; border-radius: 14px !important;
  background: var(--luma-surface-card) !important; color: var(--luma-text) !important; -webkit-text-fill-color: currentColor !important;
  font: 400 16px/1.4 var(--r-sans) !important; box-shadow: none !important;
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitField input::placeholder { color: var(--luma-text-muted) !important; opacity: .65; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitSaveButton {
  display: flex; align-items: center; justify-content: center; gap: 8px; appearance: none; width: 100%; min-height: 48px; margin: 2px 0 0; padding: 12px 16px;
  border: 0 !important; border-radius: 16px !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 72%, #fffafc), var(--luma-accent)) !important;
  color: #4a3040 !important; -webkit-text-fill-color: currentColor !important; font: 700 14px/1.4 var(--r-sans) !important;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--luma-accent) 24%, transparent); cursor: pointer;
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitSaveButton [data-icon] { display: grid; place-items: center; width: 18px; height: 18px; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitSaveButton svg { width: 18px; height: 18px; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitStorageNote {
  display: flex; align-items: center; justify-content: center; gap: 5px; margin: 14px 0 0 !important;
  font: 400 10px/1.5 var(--r-sans) !important; color: var(--luma-text-muted) !important;
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitStorageNote [data-icon] { display: grid; place-items: center; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitStorageNote svg { width: 11px; height: 11px; stroke-width: 1.6; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .pregnancyApptToggle {
  display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 0; margin: 0;
  border: 0; border-radius: 10px; background: transparent; box-shadow: none; font-family: var(--r-sans);
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitDateBadge {
  display: grid; place-items: center; gap: 0; flex: 0 0 40px; padding: 7px 0; border-radius: 11px;
  background: var(--luma-surface-inset); color: var(--luma-link) !important;
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitDateBadge > span { color: var(--luma-link) !important; font: 700 9px/1.3 var(--r-sans); text-transform: uppercase; letter-spacing: .06em; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitDateBadge > strong { color: var(--luma-text-heading) !important; font: 600 22px/1.1 var(--r-display); }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitItemDetails { flex: 1; display: grid; gap: 3px; min-width: 0; text-align: left; overflow-wrap: anywhere; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitItemDetails > strong { color: var(--luma-text-heading) !important; font: 600 12px/1.4 var(--r-sans); }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitItemDetails > span { color: var(--luma-text-muted) !important; font: 400 10px/1.5 var(--r-sans); }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitCompletionMark { display: grid; place-items: center; flex: 0 0 16px; height: 16px; border: 1px solid var(--luma-border); border-radius: 50%; color: var(--luma-link) !important; font-size: 11px; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .is-done span { text-decoration: none; opacity: 1; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .is-done .visitCompletionMark { border-color: var(--luma-link); background: var(--luma-surface-inset); }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .pregnancyApptRemove {
  flex: 0 0 32px; width: 32px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--luma-text-muted) !important; font: 400 20px/1 var(--r-sans); cursor: pointer;
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard :is(input, button):focus-visible { outline: 2px solid var(--luma-link) !important; outline-offset: 3px; }
html[data-design="refined"]:is([data-theme="dark"], [data-theme="moonlit"]) .phoneShell #pregnancyAppointmentsCard input[type="date"] { color-scheme: dark; }

/* Account plans remain discoverable beside the device-only care tools. */
html[data-design="refined"] .phoneShell #profileScreen.youPage .youAssistantPlans {
  margin-bottom: 14px; padding: 16px; border-radius: 16px; background: var(--luma-surface-inset); font: 400 12px/1.6 var(--r-sans);
}
html[data-design="refined"] .phoneShell #profileScreen.youPage .youAssistantPlans > strong { font-weight: 700; color: var(--luma-text-heading); }
html[data-design="refined"] .phoneShell #profileScreen.youPage .youAssistantPlans > p { margin: 5px 0 12px; color: var(--luma-text-muted); }
html[data-design="refined"] .phoneShell #profileScreen.youPage #youAssistantPlansBtn {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--luma-border); border-radius: 12px; background: var(--luma-surface-card); color: var(--luma-link); font: 600 12px/1.5 var(--r-sans);
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitAccountLink {
  display: block; width: 100%; margin: 10px 0 0; padding: 8px 0; border: 0; background: transparent; color: var(--luma-link); font: 600 11px/1.5 var(--r-sans); cursor: pointer;
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitAccountLink[hidden] { display: none !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #lumaTasksPanel { background: var(--luma-surface-card) !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #lumaTasksPanel .lumaPlansLead { font: 400 12px/1.6 var(--r-sans); color: var(--luma-text-muted); margin: 10px 0 16px; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #lumaEnableNotificationsBtn {
  width: 100%; min-height: 44px; padding: 10px 14px; margin: 0 0 12px; border: 1px solid var(--luma-border);
  border-radius: 14px; background: var(--luma-surface-inset); color: var(--luma-link); font: 600 12px/1.5 var(--r-sans); cursor: pointer;
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #lumaTasksList h4 { margin: 20px 0 9px; font: 700 13px/1.5 var(--r-sans); color: var(--luma-text-heading); }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign #lumaTasksList > p { margin: 0 0 14px; font: 400 12px/1.6 var(--r-sans); color: var(--luma-text-muted); }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaActionCard { margin: 8px 0; padding: 14px; border: 1px solid var(--luma-border); background: var(--luma-surface-inset); color: var(--luma-text); }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaActionCard button { min-height: 40px; margin: 4px 4px 0 0; padding: 8px 12px; border: 1px solid var(--luma-border); border-radius: 12px; background: var(--luma-surface-card); color: var(--luma-link); font: 600 11px/1.5 var(--r-sans); }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaMemoryForm { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--luma-border); }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaMemoryForm h4 { margin: 0; font: 700 13px/1.5 var(--r-sans); }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaMemoryForm label { display: grid; gap: 6px; min-width: 0; font: 600 11px/1.5 var(--r-sans); color: var(--luma-text-muted); }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaMemoryForm :is(input:not([type="checkbox"]),select) {
  box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--luma-border); border-radius: 14px; background: var(--luma-surface-card); color: var(--luma-text); font: 400 16px/1.4 var(--r-sans);
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaMemoryForm > button[type="submit"] {
  min-height: 48px; padding: 12px 16px; border: 0; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--luma-accent) 72%, #fffafc), var(--luma-accent)); color: #4a3040; font: 700 13px/1.5 var(--r-sans); cursor: pointer;
}
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaMemoryForm > button:disabled { opacity: .6; cursor: wait; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaReminderScheduleRow { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaMemoryForm [hidden] { display: none !important; }
html[data-design="refined"] .phoneShell #lumaSheetOverlay.lumaChatRedesign .lumaMemoryForm :is(input,select,button):focus-visible { outline: 2px solid var(--luma-link); outline-offset: 3px; }

html[data-design="refined"] .phoneShell .visitAccountLink[hidden] { display: none !important; }
html[data-design="refined"] .phoneShell .visitStorageNote > span:last-child { min-width: 0; overflow-wrap: anywhere; }

html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitImportReview {
  margin-top: 14px; padding: 16px; border: 1px solid var(--luma-border); border-radius: 18px; background: var(--luma-surface-inset); text-align: left;
}
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitImportReview[hidden] { display: none !important; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitImportReview h3 { margin: 0 0 8px; font: 600 20px/1.3 var(--r-display); }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitImportReview :is(p,li) { font: 400 12px/1.6 var(--r-sans); color: var(--luma-text-muted); overflow-wrap: anywhere; }
html[data-design="refined"] .phoneShell #pregnancyAppointmentsCard .visitImportReview ul { padding-left: 18px; margin: 12px 0; }

/* Consent is a deliberate choice, with the same calm surfaces as chat. */
html[data-design="refined"] .lumaAiConsentDialog {
  box-sizing: border-box; width: min(440px, calc(100vw - 28px)); max-height: calc(100dvh - 32px);
  padding: 24px; border: 1px solid var(--luma-border); border-radius: 26px; margin: auto;
  background: var(--luma-surface-card); color: var(--luma-text); box-shadow: 0 24px 80px #38222f33;
  font: 400 14px/1.55 var(--r-sans); overflow-y: auto; overscroll-behavior: contain;
}
html[data-design="refined"] .lumaAiConsentDialog::backdrop { background: #35272d66; backdrop-filter: blur(8px); }
html[data-design="refined"] .lumaAiConsentDialog form { display: grid; gap: 16px; }
html[data-design="refined"] .lumaAiConsentDialog h2 { margin: 0; font: 600 30px/1.1 var(--r-display); color: var(--luma-text-heading); }
html[data-design="refined"] .lumaAiConsentDialog p { margin: 0; }
html[data-design="refined"] .lumaConsentBloom { font-size: 30px; color: var(--luma-link); }
html[data-design="refined"] .lumaAiConsentDialog fieldset { display: grid; gap: 14px; min-width: 0; padding: 16px; border: 1px solid var(--luma-border); border-radius: 16px; }
html[data-design="refined"] .lumaAiConsentDialog legend { padding: 0 5px; font-weight: 700; }
html[data-design="refined"] .lumaAiConsentDialog label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
html[data-design="refined"] .lumaAiConsentDialog input { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--luma-link); }
html[data-design="refined"] .lumaAiConsentDialog :is(.lumaConsentDetail,small) { font-size: 12px; color: var(--luma-text-muted); }
html[data-design="refined"] .lumaAiConsentDialog a { color: var(--luma-link); text-underline-offset: 3px; }
html[data-design="refined"] .lumaConsentActions { display: grid; gap: 8px; }
html[data-design="refined"] .lumaConsentActions button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--luma-border); border-radius: 14px; background: transparent; color: var(--luma-text-heading); font: 700 14px/1.4 var(--r-sans); }
html[data-design="refined"] .lumaConsentActions button[type="submit"] { background: var(--luma-accent); }
html[data-design="refined"] .lumaAiConsentDialog :focus-visible { outline: 2px solid var(--luma-link); outline-offset: 3px; }
html[data-design="refined"] .phoneShell .lumaAiSharingActions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
html[data-design="refined"] .phoneShell .lumaAiSharingActions button { min-height: 40px; padding: 8px 12px; border: 1px solid var(--luma-border); border-radius: 12px; background: var(--luma-surface-card); color: var(--luma-link); font: 600 12px/1.4 var(--r-sans); }

/* Tracking audit: a clear, consistent hierarchy without clipping long labels. */
[data-design="refined"] #cycleScreen .trackingAccuracyNote{padding:16px 18px;margin:16px 0 22px;border:1px solid var(--line,#eedbe3);border-radius:20px;background:var(--card,#fffafc);font-size:12px;line-height:1.6;color:var(--muted,#7b626e)}
[data-design="refined"] #cycleScreen .trackingAccuracyNote strong{display:block;color:var(--text,#49313e);font-size:13px;margin-bottom:4px}
[data-design="refined"] #cycleScreen .calendarPrimaryActions{display:grid;gap:10px;grid-template-columns:minmax(0,1fr)}
[data-design="refined"] #cycleScreen .calendarPrimaryActions button{min-height:48px;height:auto;white-space:normal;line-height:1.4;padding:13px 18px}
[data-design="refined"] #cycleScreen .trackSectionTitle{margin:4px 0 6px;letter-spacing:-.02em}
[data-design="refined"] #cycleScreen .logDetailFields{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
[data-design="refined"] #cycleScreen .logDetailFields .field{min-width:0;margin:0}
[data-design="refined"] #cycleScreen input,[data-design="refined"] #cycleScreen select,[data-design="refined"] #cycleScreen textarea{max-width:100%;min-width:0;font-size:16px}
body.focus-pregnant #trackingAccuracyNote{display:none}
@media(prefers-reduced-motion:reduce){.appScreen *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
