:root {
  --plum: #0a0a12;
  --midnight: #05050a;
  --rose: #c4736a;
  --cream: #0a0a12;
  --gold: #c9a96e;
  --blush: #1a1a2e;
  --muted: #c8c8d4;
  --paper: #12121e;
  --ink: #f5f0eb;
  --line: rgba(255, 255, 255, 0.08);
  --soft: #1a1a2e;
  --silver: #c8c8d4;
  --phase-menstrual: #8a9bb5;
  --phase-follicular: #c9a96e;
  --phase-ovulation: #c4736a;
  --phase-luteal: #9b7b8a;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
  --radius: 16px;
  --ease-luxury: cubic-bezier(0.2, 0.72, 0.18, 1);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --radius-soft: 24px;
  --radius-luxe: 32px;
  --motion-soft: 360ms var(--ease-luxury);
  --motion-slow: 620ms var(--ease-luxury);
  --motion-micro: 120ms ease-out;
  --motion-card: 260ms var(--ease-luxury);
  --motion-screen: 320ms var(--ease-luxury);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.18);
  --shadow-lift: 0 24px 64px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  color-scheme: dark;
  font-size: 16px;
}

body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0a0a12;
  color: var(--ink);
  font-family: "Montserrat";
}

body.dark-mode {
  --cream: #0a0a12;
  --paper: #11111c;
  --ink: #faf5f0;
  --line: rgba(250, 245, 240, 0.12);
  --soft: #1b1b2c;
  --muted: #d7cbd2;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
  background: #0a0a12;
  color: var(--ink);
  color-scheme: dark;
}

body.light-mode {
  --plum: #2b1a2f;
  --midnight: #faf5f0;
  --rose: #c4736a;
  --cream: #faf5f0;
  --gold: #c8a97a;
  --blush: #edd5d8;
  --muted: #6f5a61;
  --paper: #fffaf5;
  --ink: #2b1a2f;
  --line: rgba(43, 26, 47, 0.12);
  --soft: #f1e4e1;
  --shadow: 0 18px 48px rgba(43, 26, 47, 0.12);
  background: #faf5f0;
  color: var(--ink);
  color-scheme: light;
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  min-width: 44px;
  min-height: 44px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Cormorant Garamond";
  line-height: 1.1;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 4.7rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: var(--rose);
}

.legal-page {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 200, 212, 0.12), transparent 34%),
    #0a0a12;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

.legal-shell {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 16px 72px;
}

.legal-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
}

.legal-logo img {
  width: 48px;
  height: 48px;
}

.legal-page .ritual-card {
  position: static;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
}

.legal-page p,
.legal-page li,
.legal-page h1,
.legal-page h2 {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-page h2 {
  margin-top: 24px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
}

.legal-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.legal-list strong,
.strong-list li {
  color: var(--ink);
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(196, 115, 106, 0.12), transparent 34%),
    radial-gradient(circle at 50% 34%, rgba(245, 240, 235, 0.08), transparent 24%),
    linear-gradient(180deg, #030308 0%, #0a0a12 58%, #05050a 100%);
  animation: splashOut 2.1s var(--ease-luxury) forwards;
}

.splash::before,
.splash::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.splash::before {
  width: 340px;
  height: 340px;
  background:
    conic-gradient(from 228deg, transparent 0 22%, rgba(196, 115, 106, 0.18) 34%, transparent 52% 100%),
    radial-gradient(circle, rgba(245, 240, 235, 0.14), transparent 66%);
  transform: translateY(-16px);
  animation: moonPulse 1.8s ease both;
}

.splash::after {
  width: 190px;
  height: 190px;
  border: 1px solid rgba(245, 240, 235, 0.08);
  box-shadow: 0 0 80px rgba(196, 115, 106, 0.11);
  animation: splashMoonRise 1.65s var(--ease-luxury) both, splashMoonBreath 12s ease-in-out infinite;
}

.skip-splash .splash {
  display: none;
}

.splash-logo-wrap {
  position: absolute;
  z-index: 2;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  border-radius: 34px;
  background:
    radial-gradient(circle at 28% 16%, rgba(245, 240, 235, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(18, 18, 30, 0.78), rgba(10, 10, 18, 0.32));
  box-shadow: 0 0 58px rgba(200, 200, 212, 0.14), 0 0 132px rgba(196, 115, 106, 0.1);
  transform: translateY(22px) scale(0.9);
  animation: splashMoonRise 1.55s var(--ease-luxury) both;
}

.splash-logo-wrap::before,
.splash-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.splash-logo-wrap::before {
  z-index: -2;
  width: 250px;
  aspect-ratio: 1;
  background:
    conic-gradient(from 220deg, transparent 0 18%, rgba(196, 115, 106, 0.18) 30%, transparent 48% 100%),
    radial-gradient(circle, rgba(245, 240, 235, 0.18), transparent 68%);
  filter: blur(14px);
  animation: moonHaloTurn 20s linear infinite;
}

.splash-logo-wrap::after {
  z-index: -1;
  width: 198px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(245, 240, 235, 0.16), transparent 70%);
  filter: blur(8px);
  animation: moonStageBreath 12s ease-in-out infinite;
}

.splash-logo {
  position: relative;
  z-index: 2;
  width: 142px;
  height: 142px;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 16px 28px rgba(10, 10, 18, 0.36));
}

.splash-wordmark {
  position: absolute;
  z-index: 3;
  top: calc(50% + 92px);
  color: #f5f0eb;
  font-family: "Cormorant Garamond";
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  animation: logoIn 1.1s ease 0.42s both;
}

@keyframes logoIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splashOut {
  0%,
  74% {
    opacity: 1;
    pointer-events: auto;
  }

  100% {
    opacity: 0;
    pointer-events: none;
  }
}

@keyframes moonRise {
  from {
    opacity: 0;
    transform: translateY(44px) scale(0.82);
  }

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

@keyframes splashMoonRise {
  from {
    opacity: 0;
    transform: translateY(46px) scale(0.78);
  }

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

@keyframes splashMoonBreath {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes moonPulse {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.88);
  }

  to {
    opacity: 1;
    transform: translateY(-24px) scale(1);
  }
}

.app-shell {
  position: relative;
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding: 32px 24px 148px;
  background: #0a0a12;
  scrollbar-width: thin;
  transform: translateY(12px);
  transition: opacity 220ms ease-out, transform 220ms ease-out, filter 220ms ease-out;
  will-change: opacity, transform;
}

.screen.is-active {
  display: block;
}

body.light-mode .screen {
  background: #faf5f0;
}

body.light-mode .today-screen.menstrual,
body.light-mode .today-screen.follicular,
body.light-mode .today-screen.ovulation,
body.light-mode .today-screen.luteal {
  background: linear-gradient(150deg, #faf5f0, #edd5d8);
}

body.light-mode .today-header h1,
body.light-mode .today-header p,
body.light-mode .brand-mark {
  color: var(--plum);
}

body.light-mode .gate-screen,
body.light-mode .welcome-screen,
body.light-mode .onboarding-screen {
  background:
    radial-gradient(circle at 50% 18%, rgba(196, 115, 106, 0.14), transparent 30%),
    linear-gradient(160deg, #faf5f0, #edd5d8);
}

body.light-mode .ritual-card,
body.light-mode .phase-card,
body.light-mode .skin-check-panel,
body.light-mode .daily-signals-panel,
body.light-mode .weather-permission-card,
body.light-mode .today-look-card,
body.light-mode .today-why-card,
body.light-mode .today-change-card,
body.light-mode .avoid-today-card,
body.light-mode .coach-card,
body.light-mode .skin-timeline-card,
body.light-mode .recommendation-stack,
body.light-mode .patterns-card,
body.light-mode .weekly-report-card,
body.light-mode .routine-card,
body.light-mode .account-card,
body.light-mode .owned-product-card,
body.light-mode .edit-card,
body.light-mode .ingredient-checker,
body.light-mode .guest-save-card,
body.light-mode .top-picks,
body.light-mode .beauty-read-card,
body.light-mode .shade-finder-hero,
body.light-mode .budget-swaps-panel,
body.light-mode .product-card,
body.light-mode .calendar-month-header,
body.light-mode .cycle-day,
body.light-mode .bottom-sheet {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

body.light-mode .tracker-stat,
body.light-mode .ritual-split article,
body.light-mode .beauty-read-grid article,
body.light-mode .budget-swap-stack article,
body.light-mode .routine-step,
body.light-mode .skin-check-strip button,
body.light-mode input,
body.light-mode select,
body.light-mode textarea {
  background: var(--soft);
  color: var(--ink);
}

body.light-mode .bottom-nav {
  border-color: rgba(43, 26, 47, 0.12);
  background: rgba(255, 250, 245, 0.92);
}

body.light-mode .button-secondary {
  background: #fffaf5;
  color: var(--plum);
}

.screen.is-active {
  visibility: visible;
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
  transform: translateX(0);
  animation: slideIn 360ms var(--ease-luxury) both;
}

.screen.is-exiting {
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.screen.is-exiting.exit-left {
  transform: translateX(-26px);
}

.screen.is-exiting.exit-right {
  transform: translateX(26px);
}

.screen.slide-left {
  --slide-start: -28px;
}

.screen.slide-right {
  --slide-start: 28px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(var(--slide-start, 18px)) translateY(4px) scale(0.992);
  }

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

@keyframes pageTurnIn {
  from {
    opacity: 0;
    transform: translateX(28px) rotateY(-4deg) scale(0.992);
  }

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

.screen-inner,
.ritual-card {
  width: min(960px, 100%);
  margin: 0 auto;
}

.screen-inner {
  overflow-x: clip;
}

.gate-screen,
.welcome-screen,
.onboarding-screen {
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 14%, rgba(245, 240, 235, 0.1), transparent 16%),
    radial-gradient(circle at 50% 44%, rgba(196, 115, 106, 0.08), transparent 34%),
    linear-gradient(160deg, #05050a, #0a0a12 58%, #030308);
}

.gate-screen.is-active,
.welcome-screen.is-active,
.onboarding-screen.is-active {
  display: grid;
}

.welcome-screen {
  background:
    radial-gradient(circle at 50% 16%, rgba(245, 240, 235, 0.11), transparent 17%),
    radial-gradient(circle at 50% 58%, rgba(196, 115, 106, 0.13), transparent 36%),
    linear-gradient(160deg, #05050a, #11111d 62%, #0a0a12);
}

.onboarding-screen {
  background:
    radial-gradient(circle at 50% 18%, rgba(200, 200, 212, 0.1), transparent 30%),
    linear-gradient(160deg, #0a0a12, #12121e);
}

.onboarding-screen .ritual-card {
  max-width: min(760px, calc(100vw - 32px));
  padding: clamp(30px, 6vw, 56px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 200, 212, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(18, 18, 30, 0.98), rgba(13, 13, 22, 0.96));
  text-align: center;
  transform-origin: center right;
  animation: pageTurnIn 420ms var(--ease-luxury) both;
}

.onboarding-screen .microcopy {
  margin-inline: auto;
  max-width: 520px;
}

.ritual-card {
  position: relative;
  max-width: calc(100vw - 32px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 18, 30, 0.96), rgba(13, 13, 22, 0.96));
  box-shadow: var(--shadow);
}

body.dark-mode .ritual-card {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(18, 18, 30, 0.96), rgba(13, 13, 22, 0.96));
}

.ritual-card.narrow {
  max-width: 580px;
}

.ritual-card.centered {
  text-align: center;
}

.gate-screen .ritual-card,
.welcome-screen .ritual-card {
  width: 100%;
  max-width: 580px;
  padding: clamp(30px, 5vw, 56px);
  border-color: rgba(245, 240, 235, 0.08);
  border-radius: 36px;
  background:
    radial-gradient(circle at 16% 12%, rgba(245, 240, 235, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(18, 18, 30, 0.78), rgba(10, 10, 18, 0.64));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(20px);
}

.gate-screen .ritual-card::before,
.welcome-screen .ritual-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(245, 240, 235, 0.06);
  border-radius: 26px;
  pointer-events: none;
}

.gate-screen h1,
.welcome-screen h1 {
  font-size: clamp(2rem, 7vw, 3.25rem);
  max-width: 13ch;
}

.gate-screen p,
.welcome-screen p {
  max-width: 36ch;
  overflow-wrap: anywhere;
}

.screen-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.welcome-logo {
  width: 112px;
  height: 112px;
  margin-bottom: 12px;
  object-fit: contain;
  border-radius: 30px;
  background: transparent;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
}

.welcome-logo.animated {
  animation: logoIn 900ms ease both;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.microcopy,
.form-note,
.screen-disclaimer,
.timestamp {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.screen-disclaimer {
  width: min(820px, 100%);
  margin: 26px auto 0;
  text-align: center;
}

.stacked-actions,
.quick-start-form,
.account-form,
.note-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

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

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(250, 245, 240, 0.05);
}

.auth-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.auth-tabs button.is-active {
  background: var(--rose);
  color: #0a0a12;
  box-shadow: 0 12px 28px rgba(196, 115, 106, 0.22);
}

.auth-panel .oauth-actions {
  margin-top: 0;
}

.auth-panel .button {
  width: 100%;
}

.account-form {
  padding: 16px;
  border: 1px solid rgba(250, 245, 240, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

body.light-mode .account-form {
  background: rgba(255, 255, 255, 0.56);
}

.account-form-quiet {
  margin-top: 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
}

textarea {
  min-height: 112px;
  padding: 12px 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  border-color: var(--rose);
  outline: 3px solid rgba(201, 125, 144, 0.24);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease-luxury), background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

button:active,
.button:active,
.tap-card:active,
.product-card:active,
.cycle-day:active,
.bottom-nav button:active,
.product-visual:active {
  transform: scale(0.97);
  transition: transform 120ms ease-out;
}

.button-primary {
  background: var(--rose);
  color: #0a0a12;
  box-shadow: 0 16px 34px rgba(196, 115, 106, 0.18);
}

.button-secondary {
  background: rgba(250, 245, 240, 0.06);
  border-color: var(--line);
  color: var(--ink);
}

.utility-action {
  min-height: 44px;
  padding-inline: 14px;
  font-size: 0.78rem;
}

body.dark-mode .button-secondary {
  border-color: var(--line);
  background: var(--soft);
  color: var(--ink);
}

.button-ghost {
  min-height: 38px;
  padding: 0 12px;
  border-color: var(--line);
  background: var(--cream);
  color: var(--plum);
  font-size: 0.78rem;
}

body.dark-mode .button-ghost {
  border-color: var(--line);
  background: var(--soft);
  color: var(--ink);
}

body.dark-mode .button-primary {
  background: var(--rose);
  color: var(--plum);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  border-color: var(--line);
  background: var(--soft);
  color: var(--ink);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #bfa9b3;
}

.text-button,
.skip-button,
.sign-out-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.skip-button {
  position: absolute;
  top: 18px;
  right: 18px;
}

.sign-out-link {
  display: block;
  margin: 26px auto 0;
}

.onboarding-progress {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 2;
  width: min(420px, calc(100% - 42px));
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(43, 26, 47, 0.12);
  transform: translateX(-50%);
}

.onboarding-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--rose);
}

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

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

.tap-card {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 20px;
  border: 1px solid rgba(250, 245, 240, 0.075);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(200, 200, 212, 0.06), transparent 28%),
    rgba(250, 245, 240, 0.035);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms var(--ease-luxury), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.tap-card:hover {
  border-color: rgba(196, 115, 106, 0.34);
  background: rgba(196, 115, 106, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

body.dark-mode .tap-card,
body.dark-mode .tag-cloud button,
body.dark-mode .swatch-row button {
  border-color: rgba(250, 245, 240, 0.1);
  background: rgba(250, 245, 240, 0.045);
  color: var(--ink);
}

.tap-card span {
  color: var(--muted);
  line-height: 1.4;
}

.tap-card.is-selected,
.tag-cloud button.is-selected,
.swatch-row button.is-selected {
  border-color: var(--rose);
  box-shadow: inset 0 0 0 2px rgba(201, 125, 144, 0.3);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.tag-cloud button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.swatch-section {
  margin: 22px 0;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.swatch-row button {
  width: 76px;
  min-height: 98px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.swatch-row button::before {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(43, 26, 47, 0.18);
}

.selfie-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.selfie-drop label {
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed var(--rose);
  border-radius: 24px;
  background: var(--soft);
  text-align: center;
  cursor: pointer;
}

.selfie-drop strong,
.selfie-drop span {
  letter-spacing: 0;
  text-transform: none;
}

.selfie-result-card {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.selfie-result-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.selfie-result-row > span {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(245, 240, 235, 0.28);
  border-radius: 50%;
  background: var(--swatch);
}

.selfie-result-row strong {
  color: var(--ink);
}

.selfie-result-row p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.today-screen {
  transition: background 500ms ease;
}

.today-screen.menstrual {
  background: linear-gradient(150deg, #0a0a12, #141823);
}

.today-screen.follicular {
  background: linear-gradient(150deg, #0a0a12, #18150f);
}

.today-screen.ovulation {
  background: linear-gradient(150deg, #0a0a12, #1d1212);
}

.today-screen.luteal {
  background: linear-gradient(150deg, #0a0a12, #1a1218);
}

.today-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding-top: 4px;
  width: min(860px, 100%);
  margin: 0 auto 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  gap: 4px;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.brand-mark img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.today-header h1,
.today-header p {
  margin: 0;
  color: white;
}

.today-header h1 {
  font-size: clamp(2.05rem, 6vw, 3.8rem);
}

.today-header p {
  font-size: 14px;
  line-height: 1.6;
}

.today-heading-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.today-intelligence-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px !important;
  padding: 8px 12px;
  border: 1px solid rgba(200, 200, 212, 0.16);
  border-radius: 999px;
  background: rgba(18, 18, 30, 0.72);
  color: var(--silver) !important;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.35 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

  body.light-mode .today-intelligence-chip {
    border-color: rgba(43, 26, 47, 0.12);
    background: rgba(255, 250, 245, 0.78);
    color: var(--muted) !important;
  }

.avatar-button,
.profile-avatar-large {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(245, 240, 235, 0.92);
  color: #0a0a12;
  font-weight: 900;
}

.avatar-button {
  width: 52px;
  height: 52px;
  cursor: pointer;
}

.profile-avatar-large {
  width: 76px;
  height: 76px;
  border-color: var(--line);
}

.phase-card,
.skin-check-panel,
.daily-signals-panel,
.weather-permission-card,
.today-look-card,
.today-why-card,
.today-change-card,
.avoid-today-card,
.coach-card,
.skin-timeline-card,
.recommendation-stack,
.patterns-card,
.weekly-report-card,
.routine-card,
.account-card,
.owned-product-card,
.edit-card,
.ingredient-checker,
.guest-save-card,
.top-picks {
  margin: 14px 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: #12121e;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
}

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

.weekly-letter-grid article {
  padding: 14px;
  border: 1px solid rgba(250, 245, 240, 0.08);
  border-radius: 16px;
  background: rgba(250, 245, 240, 0.04);
}

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

.weekly-letter-grid span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.phase-card {
  position: relative;
  overflow: hidden;
  width: min(860px, 100%);
  min-height: 380px;
  display: grid;
  align-items: stretch;
  margin: 10px auto 18px;
  border-left: 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 240, 235, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 22%, rgba(245, 240, 235, 0.46) 0 1px, transparent 2px),
    radial-gradient(circle at 66% 76%, rgba(245, 240, 235, 0.34) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 70%, rgba(200, 200, 212, 0.2) 0 1px, transparent 2px),
    radial-gradient(circle at 32% 38%, rgba(245, 240, 235, 0.24), transparent 24%),
    radial-gradient(circle at 12% 92%, rgba(196, 115, 106, 0.2), transparent 30%),
    linear-gradient(145deg, #1a1a2e 0%, #11111d 46%, #080811 100%);
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.48);
}

.phase-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(250, 245, 240, 0.08);
  border-radius: 26px;
  background:
    linear-gradient(120deg, rgba(245, 240, 235, 0.08), transparent 32%),
    radial-gradient(circle at 30% 46%, rgba(200, 200, 212, 0.11), transparent 34%);
  pointer-events: none;
}

.phase-card::after {
  content: "";
  position: absolute;
  inset: auto -12% -42% 34%;
  height: 66%;
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(ellipse at center, rgba(200, 200, 212, 0.18), transparent 66%),
    linear-gradient(90deg, transparent, rgba(196, 115, 106, 0.1), transparent);
  pointer-events: none;
}

.phase-card .phase-hero-grid::before,
.cycle-rhythm-hero .oracle-moon-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.phase-card .phase-hero-grid::before {
  inset: 4% auto 4% -4%;
  width: min(520px, 58vw);
  border-radius: 50%;
  background:
    linear-gradient(115deg, transparent 0 32%, rgba(245, 240, 235, 0.11) 44%, transparent 58%),
    radial-gradient(circle at 46% 48%, rgba(245, 240, 235, 0.14), transparent 54%);
  filter: blur(8px);
  opacity: 0.74;
}

.phase-hero-grid {
  position: relative;
  z-index: 1;
  min-height: 326px;
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
}

.today-screen.menstrual .phase-card,
.today-screen.menstrual .recommendation-stack,
.today-screen.menstrual .skin-check-panel {
  border-left-color: var(--phase-menstrual);
}

.today-screen.menstrual .phase-card {
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 240, 235, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 22%, rgba(245, 240, 235, 0.36) 0 1px, transparent 2px),
    radial-gradient(circle at 32% 38%, rgba(138, 155, 181, 0.32), transparent 24%),
    radial-gradient(circle at 12% 92%, rgba(245, 240, 235, 0.1), transparent 28%),
    linear-gradient(145deg, #171b28 0%, #10111c 48%, #070811 100%);
}

.today-screen.follicular .phase-card,
.today-screen.follicular .recommendation-stack,
.today-screen.follicular .skin-check-panel {
  border-left-color: var(--phase-follicular);
}

.today-screen.follicular .phase-card {
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 240, 235, 0.62) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 22%, rgba(245, 240, 235, 0.34) 0 1px, transparent 2px),
    radial-gradient(circle at 32% 38%, rgba(201, 169, 110, 0.32), transparent 24%),
    radial-gradient(circle at 12% 92%, rgba(237, 213, 216, 0.13), transparent 28%),
    linear-gradient(145deg, #211b10 0%, #151411 52%, #090911 100%);
}

.today-screen.ovulation .phase-card,
.today-screen.ovulation .recommendation-stack,
.today-screen.ovulation .skin-check-panel {
  border-left-color: var(--phase-ovulation);
}

.today-screen.ovulation .phase-card {
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 240, 235, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 22%, rgba(245, 240, 235, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 32% 38%, rgba(196, 115, 106, 0.34), transparent 24%),
    radial-gradient(circle at 12% 92%, rgba(245, 230, 200, 0.14), transparent 28%),
    linear-gradient(145deg, #241514 0%, #171219 52%, #090911 100%);
}

.today-screen.luteal .phase-card,
.today-screen.luteal .recommendation-stack,
.today-screen.luteal .skin-check-panel {
  border-left-color: var(--phase-luteal);
}

.today-screen.luteal .phase-card {
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 240, 235, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 22%, rgba(245, 240, 235, 0.34) 0 1px, transparent 2px),
    radial-gradient(circle at 32% 38%, rgba(155, 123, 138, 0.34), transparent 24%),
    radial-gradient(circle at 12% 92%, rgba(196, 115, 106, 0.16), transparent 28%),
    linear-gradient(145deg, #221722 0%, #17121a 52%, #090911 100%);
}

body.dark-mode .phase-card,
body.dark-mode .skin-check-panel,
body.dark-mode .daily-signals-panel,
body.dark-mode .weather-permission-card,
body.dark-mode .today-look-card,
body.dark-mode .today-why-card,
body.dark-mode .today-change-card,
body.dark-mode .avoid-today-card,
body.dark-mode .coach-card,
body.dark-mode .skin-timeline-card,
body.dark-mode .recommendation-stack,
body.dark-mode .patterns-card,
body.dark-mode .weekly-report-card,
body.dark-mode .routine-card,
body.dark-mode .account-card,
body.dark-mode .owned-product-card,
body.dark-mode .edit-card,
body.dark-mode .ingredient-checker,
body.dark-mode .guest-save-card,
body.dark-mode .top-picks {
  border-color: rgba(250, 245, 240, 0.1);
  background: color-mix(in srgb, var(--paper) 86%, #1a1a2e);
}

.phase-card h2 {
  font-size: clamp(3.75rem, 9vw, 6.4rem);
  line-height: 0.92;
  margin-bottom: 12px;
  letter-spacing: 0;
  color: #f5f0eb;
  text-shadow: 0 24px 70px rgba(245, 240, 235, 0.12);
}

.phase-card h3 {
  font-family: "Montserrat";
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--silver);
}

.phase-card p {
  max-width: 620px;
  color: #ded4d8;
}

.phase-action-brief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.phase-action-brief article {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(250, 245, 240, 0.1);
  border-radius: 18px;
  background: rgba(10, 10, 18, 0.36);
}

.phase-action-brief strong,
.phase-action-brief span {
  display: block;
}

.phase-action-brief strong {
  color: var(--cream);
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.phase-action-brief span {
  margin-top: 8px;
  color: rgba(245, 240, 235, 0.82);
  font-size: 0.9rem;
  line-height: 1.45;
}

.is-guided-focus {
  animation: guidedFocus 1.35s ease-out;
}

@keyframes guidedFocus {
  0% {
    box-shadow: 0 0 0 0 rgba(196, 115, 106, 0);
  }
  28% {
    box-shadow: 0 0 0 6px rgba(196, 115, 106, 0.16), 0 24px 80px rgba(196, 115, 106, 0.16);
  }
  100% {
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  }
}

.phase-moon-art {
  --moon-accent: var(--rose);
  width: clamp(172px, 25vw, 244px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 36%, rgba(245, 240, 235, 0.14), transparent 22%),
    radial-gradient(circle at 50% 50%, rgba(200, 200, 212, 0.11), transparent 56%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--moon-accent) 18%, transparent), transparent 75%);
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.36));
  animation: moonBreath 12s ease-in-out infinite;
  transform-origin: center;
}

.phase-moon-art::before,
.phase-moon-art::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.phase-moon-art::before {
  z-index: -2;
  width: 126%;
  aspect-ratio: 1;
  background:
    conic-gradient(from 210deg, transparent 0 18%, color-mix(in srgb, var(--moon-accent) 32%, transparent) 28%, transparent 44% 100%),
    radial-gradient(circle, rgba(245, 240, 235, 0.16), transparent 68%);
  filter: blur(12px);
  opacity: 0.72;
  animation: none;
}

.phase-moon-art::after {
  z-index: -1;
  width: 84%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 40% 34%, rgba(255, 249, 240, 0.1), transparent 46%);
  box-shadow:
    0 0 70px color-mix(in srgb, var(--moon-accent) 24%, transparent),
    0 0 132px rgba(200, 200, 212, 0.16);
  opacity: 0.82;
}

.phase-moon-art.phase-menstrual {
  --moon-accent: var(--phase-menstrual);
}

.phase-moon-art.phase-follicular {
  --moon-accent: var(--phase-follicular);
}

.phase-moon-art.phase-ovulation {
  --moon-accent: var(--phase-ovulation);
}

.phase-moon-art.phase-luteal {
  --moon-accent: var(--phase-luteal);
}

.phase-moon-art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.today-moon-reveal {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.today-moon-reveal::before,
.today-moon-reveal::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.today-moon-reveal::before {
  z-index: -2;
  width: min(430px, 72vw);
  aspect-ratio: 1;
  background:
    radial-gradient(circle, rgba(245, 240, 235, 0.25), rgba(200, 200, 212, 0.12) 38%, rgba(196, 115, 106, 0.06) 58%, transparent 72%);
  filter: blur(4px);
  animation: moonStageBreath 12s ease-in-out infinite;
}

.today-moon-reveal::after {
  z-index: -1;
  width: min(390px, 66vw);
  aspect-ratio: 1;
  border: 1px solid rgba(245, 240, 235, 0.12);
  border-style: dashed;
  opacity: 0.56;
  transform: translate(-50%, -50%) rotate(-16deg);
  animation: none;
}

.phase-card .today-moon-reveal .phase-moon-art {
  width: clamp(214px, 27vw, 322px);
}

.today-moon-reveal:active {
  transform: scale(0.985);
}

.today-moon-reveal.is-revealing .phase-moon-art {
  animation: oracleRevealMoon 720ms var(--ease-luxury) both;
}

.today-reading-panel {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(245, 240, 235, 0.12);
  border-radius: 22px;
  background: rgba(245, 240, 235, 0.06);
  animation: oracleRise 320ms var(--ease-luxury) both;
}

.today-reading-panel h3 {
  margin: 0;
  color: var(--cream);
}

.today-reading-panel p {
  max-width: 68ch;
  margin: 0;
}

.moon-orbit {
  fill: none;
  stroke: rgba(245, 240, 235, 0.18);
  stroke-width: 1;
  stroke-dasharray: 2 8;
  transform-origin: 110px 110px;
  animation: moonOrbitDrift 18s linear infinite;
}

.lurei-moon-dust {
  fill: rgba(245, 240, 235, 0.76);
  opacity: 0.56;
  transform-origin: 110px 110px;
  animation: moonDustDrift 12s ease-in-out infinite;
}

.moon-aura {
  transform-origin: 110px 110px;
  animation: moonAuraBreath 8.8s ease-in-out infinite;
}

.moon-rim {
  stroke-width: 1.4;
  opacity: 0.72;
}

.moon-surface {
  opacity: 0.98;
}

.moon-texture {
  fill: rgba(245, 240, 235, 0.12);
  mix-blend-mode: soft-light;
  opacity: 0.42;
}

.moon-basin {
  opacity: 0.86;
}

.basin-three {
  opacity: 0.42;
}

.moon-mare {
  fill: rgba(72, 74, 96, 0.2);
  filter: blur(0.35px);
}

.moon-highland {
  fill: rgba(255, 249, 240, 0.13);
  filter: blur(0.3px);
}

.moon-spec {
  fill: rgba(255, 249, 240, 0.34);
}

.moon-terminator-glow {
  fill: rgba(245, 240, 235, 0.1);
  filter: blur(1.4px);
  opacity: 0.72;
}

.moon-crater {
  fill: rgba(60, 62, 82, 0.22);
  stroke: rgba(255, 248, 240, 0.16);
  stroke-width: 0.7;
  filter: drop-shadow(0 0.8px 0 rgba(255, 249, 240, 0.12));
}

.moon-crater.crater-large {
  fill: rgba(72, 74, 94, 0.2);
}

.moon-crater.crater-soft {
  fill: rgba(72, 74, 94, 0.15);
}

.moon-crater.pin-crater {
  fill: rgba(60, 62, 82, 0.18);
}

.moon-thread {
  fill: none;
  stroke: rgba(200, 200, 212, 0.34);
  stroke-width: 1.2;
  stroke-linecap: round;
}

@keyframes moonFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes moonBreath {
  0%,
  100% {
    filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.36));
  }

  50% {
    filter: drop-shadow(0 34px 72px rgba(200, 200, 212, 0.16));
  }
}

@keyframes moonAuraBreath {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(0.97);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

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

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

@keyframes moonDustDrift {
  0%,
  100% {
    opacity: 0.38;
    transform: rotate(-2deg) translateY(0);
  }

  50% {
    opacity: 0.72;
    transform: rotate(2deg) translateY(-3px);
  }
}

@keyframes moonStageBreath {
  0%,
  100% {
    opacity: 0.58;
    transform: translate(-50%, -50%) scale(0.96);
  }

  50% {
    opacity: 0.96;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@keyframes moonHaloTurn {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.phase-insight-line {
  color: rgba(245, 240, 235, 0.86);
  font-size: 1rem;
  line-height: 1.7;
}

.phase-promise-line {
  max-width: 58ch;
  margin-top: 10px;
  color: rgba(245, 240, 235, 0.92);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.55;
}

.phase-primary-action {
  min-height: 48px;
  margin-top: 22px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5f0eb, #c8c8d4);
  color: #0a0a12;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.phase-primary-action:active {
  transform: scale(0.97);
}

.weather-context {
  color: var(--silver);
  font-weight: 700;
}

.phase-context-stack {
  display: grid;
  gap: 8px;
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(0, max-content));
}

.phase-context-stack span,
.phase-context-stack button,
.today-formula {
  border: 1px solid rgba(200, 200, 212, 0.14);
  border-radius: 999px;
  background: rgba(200, 200, 212, 0.08);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.phase-context-stack span {
  padding: 9px 12px;
}

.phase-context-stack button {
  min-height: 44px;
  padding: 9px 14px;
  background: rgba(196, 115, 106, 0.16);
  color: var(--cream);
  cursor: pointer;
}

.phase-context-stack button:hover {
  border-color: rgba(196, 115, 106, 0.42);
  background: rgba(196, 115, 106, 0.24);
}

.today-formula {
  width: fit-content;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 10px 14px;
}

.today-why-card {
  border-left: 4px solid var(--gold);
}

.ritual-insight-drawer {
  margin-top: 18px;
  border: 1px solid rgba(245, 240, 235, 0.1);
  border-radius: 22px;
  background: rgba(245, 240, 235, 0.035);
  overflow: hidden;
}

.ritual-insight-drawer > summary {
  min-height: 64px;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  color: var(--cream);
  cursor: pointer;
  list-style: none;
}

.ritual-insight-drawer > summary::marker,
.ritual-insight-drawer > summary::-webkit-details-marker {
  display: none;
}

.ritual-insight-drawer > summary span {
  font-family: var(--display);
  font-size: 1.28rem;
  line-height: 1.1;
}

.ritual-insight-drawer > summary small {
  color: var(--muted);
  font-size: 0.82rem;
}

.ritual-insight-drawer[open] {
  padding-bottom: 14px;
}

.ritual-insight-drawer[open] > article {
  margin: 14px 14px 0;
}

.today-change-card,
.coach-card {
  border-left: 4px solid var(--phase-ovulation);
}

.avoid-today-card {
  border-left: 4px solid var(--rose);
}

.skin-timeline-card {
  border-left: 4px solid var(--silver);
}

.today-why-list,
.insight-list,
.avoid-list,
.coach-steps,
.use-avoid-grid {
  display: grid;
  gap: 10px;
}

.use-avoid-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.use-avoid-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(200, 200, 212, 0.14);
  border-radius: 16px;
  background: var(--soft);
}

.use-avoid-grid span {
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.use-avoid-grid p {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.today-why-list p,
.insight-list p,
.avoid-list p,
.coach-steps p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(200, 200, 212, 0.14);
  border-radius: 14px;
  background: rgba(200, 200, 212, 0.07);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.coach-steps p {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
}

.coach-steps strong {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: var(--plum);
}

.skin-mood-timeline {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mood-dot {
  min-width: 62px;
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  color: var(--ink);
}

.mood-dot span {
  font-weight: 900;
}

.mood-dot small {
  max-width: 54px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mood-dot.clear { border-color: rgba(133, 183, 146, 0.55); }
.mood-dot.oily { border-color: rgba(100, 167, 232, 0.55); }
.mood-dot.dry { border-color: rgba(201, 169, 110, 0.55); }
.mood-dot.breaking-out { border-color: rgba(196, 89, 89, 0.65); }
.mood-dot.reactive { border-color: rgba(201, 125, 144, 0.65); }

.confidence-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(196, 115, 106, 0.35);
  border-radius: 999px;
  background: rgba(196, 115, 106, 0.13);
  color: var(--cream);
  font-size: 12px;
  font-weight: 800;
}

.signals-ack,
.affiliate-disclosure {
  color: var(--muted);
  font-size: 0.82rem;
}

.signals-ack {
  margin-top: 8px;
  color: var(--rose);
  font-weight: 800;
}

.phase-transition-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(250, 245, 240, 0.06);
}

.phase-transition-card summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.daily-signals-panel {
  border-left: 0;
}

.today-tabs {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-width: 100%;
  display: flex;
  gap: 4px;
  padding: 5px;
  margin: 26px auto 14px;
  border: 1px solid rgba(245, 240, 235, 0.08);
  border-radius: 999px;
  background: rgba(245, 240, 235, 0.045);
  backdrop-filter: none;
  box-shadow: none;
}

body.light-mode .today-tabs {
  background: rgba(250, 245, 240, 0.9);
}

.today-tabs button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: background 220ms var(--ease-luxury), color 180ms ease, box-shadow 220ms var(--ease-luxury), transform 180ms var(--ease-luxury);
}

.today-tabs button.is-active {
  background: rgba(196, 115, 106, 0.14);
  color: var(--rose);
  box-shadow: inset 0 0 0 1px rgba(196, 115, 106, 0.18);
}

.today-panel {
  display: none;
  animation: softPanelIn 320ms var(--ease-luxury) both;
}

.today-panel.is-active {
  display: block;
}

.today-loop-utilities {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.today-loop-utilities .weekly-report-card {
  order: 8;
}

@keyframes softPanelIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.995);
  }

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

.weather-permission-card {
  display: grid;
  gap: 16px;
  border-left: 4px solid var(--phase-ovulation);
  background: linear-gradient(135deg, rgba(196, 115, 106, 0.12), rgba(200, 200, 212, 0.08));
}

.weather-permission-card[hidden] {
  display: none;
}

.today-screen.menstrual .daily-signals-panel {
  border-left-color: var(--phase-menstrual);
}

.today-screen.follicular .daily-signals-panel {
  border-left-color: var(--phase-follicular);
}

.today-screen.ovulation .daily-signals-panel {
  border-left-color: var(--phase-ovulation);
}

.today-screen.luteal .daily-signals-panel {
  border-left-color: var(--phase-luteal);
}

.daily-signals-panel summary {
  min-height: 48px;
  cursor: pointer;
  list-style: none;
}

.daily-signals-panel summary::-webkit-details-marker {
  display: none;
}

.daily-signals-panel summary span {
  display: grid;
  gap: 4px;
}

.daily-signals-panel summary strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
}

.daily-signals-panel summary small {
  color: var(--muted);
  font-size: 0.85rem;
}

.signal-stack {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.signal-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-row p {
  flex: 1 0 100%;
  margin: 0;
  color: var(--silver);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.signal-row button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.signal-row button.is-selected {
  border-color: transparent;
  background: var(--rose);
  color: var(--plum);
  box-shadow: 0 0 24px rgba(196, 115, 106, 0.2);
}

.phase-card p {
  max-width: 620px;
}

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

.phase-card .tracker-stat {
  min-height: 78px;
}

.shelf-intelligence-card {
  margin: 18px 0;
  padding: 24px;
  border: 1px solid rgba(250, 245, 240, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(196, 115, 106, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(18, 18, 30, 0.96), rgba(10, 10, 18, 0.98));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.shelf-intelligence-card h2 {
  margin: 8px 0 14px;
  max-width: 760px;
}

.shelf-intelligence-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.shelf-memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.shelf-memory-grid article {
  padding: 14px;
  border-radius: 18px;
  background: rgba(250, 245, 240, 0.055);
}

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

.shelf-memory-grid strong {
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1;
}

.shelf-memory-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.tracker-stat-grid,
.recommendation-grid,
.product-library,
.saved-shelf,
.edit-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tracker-stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.tracker-stat strong {
  display: block;
  font-size: 1.45rem;
}

.tracker-stat span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 800;
  text-transform: uppercase;
}

.section-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.section-row > .button,
.section-actions .button {
  flex: 0 0 auto;
  min-height: 44px;
  max-width: 150px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
}

.status-pill,
.phase-tag,
.product-tag,
.budget-badge,
.profile-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--plum);
  font-size: 0.76rem;
  font-weight: 800;
}

body.dark-mode .status-pill,
body.dark-mode .phase-tag,
body.dark-mode .product-tag,
body.dark-mode .budget-badge,
body.dark-mode .profile-meta span {
  background: var(--soft);
  color: var(--ink);
}

.guest-save-card {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #12121e, #1a1a2e);
}

.guest-save-card.is-visible {
  display: flex;
}

.skin-check-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
}

.skin-check-strip button {
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #1a1a2e;
  color: #f5f0eb;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

body.dark-mode .skin-check-strip button {
  border-color: var(--line);
  background: var(--soft);
  color: var(--ink);
}

body.dark-mode .skin-check-strip button:hover,
body.dark-mode .skin-check-strip button:focus-visible {
  border-color: rgba(250, 245, 240, 0.44);
  box-shadow: 0 0 0 3px rgba(201, 125, 144, 0.18);
}

.skin-check-strip button:active {
  transform: scale(0.97);
}

.skin-check-strip button.is-selected {
  background: var(--rose);
  color: #0a0a12;
}

body.dark-mode .skin-check-strip button.is-selected {
  background: var(--rose);
  color: var(--plum);
}

.makeup-diagnosis-card,
.troubleshoot-base-section {
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--rose);
  background:
    radial-gradient(circle at 88% 10%, rgba(196, 115, 106, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(18, 18, 30, 0.98), rgba(10, 10, 18, 0.92));
}

.diagnosis-hub-card {
  margin-top: 18px;
  border-left-width: 2px;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.diagnosis-hub-card .section-row {
  align-items: end;
}

.diagnosis-hub-card h2 {
  max-width: 720px;
  font-size: clamp(2rem, 5vw, 3.1rem);
}

.mirror-forecast-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  padding: clamp(2px, 1vw, 10px);
  animation: mirrorForecastRise 520ms var(--ease-luxury) both;
}

.mirror-copy {
  max-width: 760px;
}

.mirror-forecast-card h2 {
  margin: 0 0 8px;
  font-size: clamp(2.35rem, 6vw, 4.15rem);
  line-height: 0.98;
}

.mirror-memory-line {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid rgba(200, 200, 212, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 169, 122, 0.12), transparent 30%),
    rgba(245, 240, 235, 0.045);
}

.mirror-memory-line span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mirror-memory-line p {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.55;
}

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

.mirror-wear-forecast article {
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(245, 240, 235, 0.065);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(245, 240, 235, 0.06), rgba(245, 240, 235, 0.025));
}

.mirror-wear-forecast span,
.wear-check-drawer summary span,
.proof-check-row p {
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mirror-wear-forecast p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.48;
}

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

.wear-check-drawer {
  border: 1px solid rgba(245, 240, 235, 0.07);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(245, 240, 235, 0.045), rgba(245, 240, 235, 0.02));
  overflow: hidden;
}

.mirror-tune-drawer {
  border: 1px solid rgba(245, 240, 235, 0.07);
  border-radius: 20px;
  background: rgba(245, 240, 235, 0.028);
  overflow: hidden;
}

.mirror-tune-drawer summary {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
}

.mirror-tune-drawer summary::-webkit-details-marker {
  display: none;
}

.mirror-tune-drawer summary span {
  color: var(--ink);
  font-weight: 850;
}

.mirror-tune-drawer summary small {
  color: var(--muted);
  font-weight: 700;
}

.mirror-tune-drawer .makeup-feel-strip {
  padding: 0 14px 14px;
}

.mirror-tune-drawer .daily-confidence-pill,
.mirror-tune-drawer .what-changed-line,
.mirror-tune-drawer .mirror-adjustment-line {
  margin: 0 14px 12px;
}

.wear-check-drawer summary {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.wear-check-drawer summary::-webkit-details-marker {
  display: none;
}

.wear-check-drawer summary small {
  color: var(--muted);
  font-weight: 700;
}

.wear-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}

.wear-check-row button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(200, 200, 212, 0.14);
  border-radius: 999px;
  background: rgba(200, 200, 212, 0.08);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.wear-check-row button.is-selected {
  border-color: rgba(196, 115, 106, 0.68);
  background: rgba(196, 115, 106, 0.2);
  color: var(--rose);
}

.proof-check-row {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.proof-check-row p {
  margin: 0;
  padding: 0 14px;
}

.mirror-start-action {
  width: fit-content;
  margin-top: 0;
}

.mirror-inline-action {
  align-self: start;
  margin-top: 0;
  white-space: nowrap;
}

.mirror-forecast-card.has-forecast h2 {
  font-size: clamp(2.45rem, 5.4vw, 3.7rem);
}

@keyframes mirrorForecastRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

.makeup-diagnosis-card::before {
  content: "";
  position: absolute;
  inset: auto -12% -45% 24%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(245, 240, 235, 0.12), transparent 68%);
  pointer-events: none;
}

.makeup-feel-strip,
.troubleshoot-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.makeup-feel-strip button,
.troubleshoot-grid button,
.diagnosis-owned-pick {
  min-height: 54px;
  border: 1px solid rgba(245, 240, 235, 0.1);
  border-radius: 18px;
  background: rgba(245, 240, 235, 0.055);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.makeup-feel-strip button {
  display: grid;
  place-items: center;
  padding: 12px;
  min-height: 64px;
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
}

.troubleshoot-grid button {
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 14px;
}

.troubleshoot-grid strong,
.diagnosis-owned-pick strong {
  font-family: "Cormorant Garamond", serif;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.troubleshoot-grid span,
.diagnosis-owned-pick span,
.diagnosis-owned-pick small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.makeup-feel-strip button:hover,
.troubleshoot-grid button:hover,
.diagnosis-owned-pick:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 115, 106, 0.42);
  background: rgba(196, 115, 106, 0.1);
}

.makeup-feel-strip button:active,
.troubleshoot-grid button:active,
.diagnosis-owned-pick:active {
  transform: scale(0.97);
}

.diagnosis-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.diagnosis-grid article {
  min-height: 128px;
  padding: 14px;
  border: 1px solid rgba(245, 240, 235, 0.08);
  border-radius: 18px;
  background: rgba(245, 240, 235, 0.045);
}

.diagnosis-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.diagnosis-grid p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.diagnosis-owned-pick {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  width: 100%;
  margin-top: 12px;
  padding: 14px;
}

.troubleshoot-result-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(245, 240, 235, 0.08);
  border-radius: 20px;
  background: rgba(245, 240, 235, 0.045);
}

.troubleshoot-category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.troubleshoot-category-row::-webkit-scrollbar {
  display: none;
}

.troubleshoot-category-row button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(196, 115, 106, 0.28);
  border-radius: 999px;
  background: rgba(196, 115, 106, 0.1);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

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

.today-look-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #12121e, #1a1a2e);
  border-left: 4px solid var(--rose);
}

body.dark-mode .today-look-card,
body.dark-mode .privacy-card,
body.dark-mode .premium-card {
  background: linear-gradient(135deg, #12121e, #1a1a2e);
}

.today-look-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.14), transparent 58%);
  animation: shimmer 1.5s ease 1;
  pointer-events: none;
}

@keyframes shimmer {
  from {
    transform: translateX(-80%);
  }

  to {
    transform: translateX(80%);
  }
}

.look-actions,
.product-actions,
.shelf-toolbar,
.owned-product-entry,
.account-actions,
.oauth-actions,
.product-tag-row,
.copy-row,
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.today-look-card > *:not(.look-watermark) {
  position: relative;
  z-index: 1;
}

.look-watermark {
  position: absolute;
  right: 20px;
  bottom: 12px;
  z-index: 0;
  color: rgba(245, 240, 235, 0.08);
  font-family: "Cormorant Garamond";
  font-size: 3.4rem;
  font-weight: 700;
}

.ritual-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 4px;
}

.ritual-split article {
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.ritual-split span {
  display: block;
  margin-bottom: 8px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ritual-split strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.ritual-split p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(250, 245, 240, 0.08);
  border-radius: 26px;
  background: linear-gradient(180deg, #171725, #10101a);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.3);
  animation: cardUp 360ms var(--ease-luxury) both;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 240, 235, 0.16);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.36);
}

.product-card.compact {
  min-width: 0;
}

.product-card-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

body.dark-mode .product-card {
  border-color: rgba(250, 245, 240, 0.1);
  background: linear-gradient(180deg, #151523, #10101a);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.product-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

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

.product-title-line strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 1rem;
}

.product-trust-line {
  margin: 7px 0 0;
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card:nth-child(2) {
  animation-delay: 60ms;
}

.product-card:nth-child(3) {
  animation-delay: 120ms;
}

@keyframes cardUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.product-visual {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 72% 25%, rgba(255, 255, 255, 0.62), transparent 18px),
    linear-gradient(135deg, var(--finish-color, #f7e8e3), #f5e6c8);
  color: #0a0a12;
  font-weight: 900;
}

.product-preview {
  position: relative;
  min-height: 286px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 20%, rgba(245, 240, 235, 0.22), transparent 24%),
    radial-gradient(circle at 16% 96%, color-mix(in srgb, var(--category-color) 30%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--category-color) 34%, #191928), #0d0d16 78%);
}

.product-card .heart-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.product-card .product-card-top .heart-button {
  align-self: start;
}

.product-preview.has-real-photo {
  background:
    radial-gradient(circle at 52% 16%, rgba(245, 240, 235, 0.26), transparent 22%),
    linear-gradient(180deg, rgba(245, 240, 235, 0.08), rgba(10, 10, 18, 0.04)),
    linear-gradient(145deg, color-mix(in srgb, var(--category-color) 24%, #191928), #0d0d16 78%);
}

.product-preview.has-rendered-packshot {
  background:
    radial-gradient(circle at 72% 20%, rgba(245, 240, 235, 0.2), transparent 24%),
    radial-gradient(circle at 16% 96%, color-mix(in srgb, var(--category-color) 38%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--category-color) 42%, #191928), #0d0d16 78%);
}

.product-preview::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(245, 240, 235, 0.075);
  border-radius: 28px;
}

.product-preview::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 42%;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  filter: blur(10px);
  transform: translateX(-50%);
}

.product-photo {
  position: absolute;
  inset: auto;
  z-index: 1;
  width: min(76%, 186px);
  height: min(76%, 186px);
  object-fit: contain;
  opacity: 1;
  padding: 12px;
  border: 1px solid rgba(245, 240, 235, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(145deg, rgba(245, 240, 235, 0.94), rgba(218, 218, 228, 0.86));
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.42));
  transform: scale(1);
  transition: transform 220ms ease;
}

.product-preview.has-real-photo .product-photo {
  width: min(80%, 198px);
  height: min(80%, 198px);
  padding: 10px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 74% 12%, rgba(255, 255, 255, 0.88), transparent 26%),
    linear-gradient(145deg, rgba(250, 245, 240, 0.98), rgba(220, 220, 232, 0.92));
}

.product-preview.has-rendered-packshot .product-photo {
  border-color: rgba(245, 240, 235, 0.12);
  background: transparent;
}

.product-card:hover .product-photo {
  transform: scale(1.04);
}

.product-preview.hero {
  min-height: 220px;
  border-radius: 18px;
}

.preview-object {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 118px;
  display: none;
  place-items: center;
  border: 1px solid rgba(245, 240, 235, 0.34);
  border-radius: 18px 18px 24px 24px;
  background:
    linear-gradient(180deg, rgba(245, 240, 235, 0.9), rgba(245, 240, 235, 0.54)),
    var(--category-color);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.32);
  color: #0a0a12;
  font-weight: 900;
}

.preview-cap {
  position: absolute;
  top: -18px;
  width: 46px;
  height: 22px;
  border-radius: 10px 10px 4px 4px;
  background: #0a0a12;
  border: 1px solid rgba(245, 240, 235, 0.18);
}

.preview-label {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 10, 18, 0.88);
  color: #f5f0eb;
}

.preview-swatch {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(245, 240, 235, 0.34);
  border-radius: 50%;
  background: var(--finish-color);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
}

.product-preview.image-fallback .preview-object {
  display: grid;
}

.product-preview.image-fallback .product-photo {
  opacity: 0;
}

.category-lip .preview-object,
.category-setting-spray .preview-object,
.category-serum .preview-object {
  width: 54px;
  border-radius: 28px;
}

.category-setting-powder .preview-object,
.category-blush .preview-object,
.category-bronzer .preview-object,
.category-highlighter .preview-object {
  width: 112px;
  height: 72px;
  border-radius: 50%;
}

body.dark-mode .product-visual {
  color: var(--plum);
  border-color: rgba(250, 245, 240, 0.28);
}

.product-card h3 {
  margin: 0;
  font-size: clamp(1.34rem, 2vw, 1.72rem);
  line-height: 1.18;
}

.product-brand {
  margin: 0 0 4px;
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-card p {
  margin: 0;
  font-size: 0.9rem;
}

.product-price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
}

.product-price-line strong {
  color: var(--ink);
  font-size: 1rem;
}

.product-price-line span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(200, 200, 212, 0.14);
  border-radius: 999px;
  background: rgba(200, 200, 212, 0.07);
  color: var(--silver);
  font-size: 11px;
  font-weight: 800;
}

.product-reason {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(196, 115, 106, 0.32);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 0%, rgba(245, 240, 235, 0.08), transparent 32%),
    rgba(196, 115, 106, 0.16);
  color: var(--ink);
}

.product-reason strong {
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-reason span {
  font-size: 1.04rem;
  line-height: 1.62;
}

.product-finish-line {
  color: var(--muted);
  font-size: 0.82rem !important;
  font-weight: 700;
}

.product-card .product-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.product-card .product-detail-grid span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(245, 240, 235, 0.08);
  border-radius: 14px;
  background: rgba(245, 240, 235, 0.035);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.product-card .product-detail-grid strong {
  color: var(--ink);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-card.compact .product-reason span,
.product-card.compact .shade-callout span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.trust-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trust-badge-row span {
  padding: 5px 8px;
  border: 1px solid rgba(200, 200, 212, 0.14);
  border-radius: 999px;
  background: rgba(200, 200, 212, 0.07);
  color: var(--silver);
  font-size: 11px;
  font-weight: 800;
}

.owned-product-card {
  display: grid;
  gap: 16px;
}

.owned-product-entry input {
  flex: 1 1 240px;
}

.product-reason strong {
  color: var(--rose);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-reason span {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.68;
}

.buy-button {
  justify-content: center;
  min-width: 96px;
  box-shadow: 0 10px 24px rgba(196, 115, 106, 0.22);
}

.signal-match-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.signal-match-row span {
  min-height: 28px;
  padding: 7px 10px;
  border: 1px solid rgba(200, 200, 212, 0.18);
  border-radius: 999px;
  background: rgba(200, 200, 212, 0.08);
  color: var(--silver);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.confidence-meter {
  display: grid;
  gap: 8px;
}

.confidence-meter > span {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(200, 200, 212, 0.12);
}

.confidence-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  box-shadow: 0 0 18px rgba(196, 115, 106, 0.32);
}

.confidence-meter small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.product-more {
  border: 1px solid rgba(200, 200, 212, 0.14);
  border-radius: 14px;
  background: rgba(200, 200, 212, 0.06);
}

.product-more summary {
  min-height: 44px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--cream);
  font-weight: 800;
}

.product-more[open] {
  padding-bottom: 12px;
}

.product-more .advisor-notes,
.product-more .shade-callout,
.product-more .budget-swap-stack {
  margin: 0 12px 10px;
}

.product-more {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--soft) 62%, transparent);
}

.product-more summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.product-more .advisor-notes {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  background: transparent;
}

.advisor-notes {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--soft) 62%, transparent);
}

.advisor-notes p {
  display: grid;
  gap: 3px;
}

.advisor-notes strong,
.shade-callout strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.advisor-notes span,
.shade-callout span {
  color: var(--muted);
}

.shade-callout {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(201, 125, 144, 0.36);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201, 125, 144, 0.12), rgba(200, 169, 122, 0.13));
}

.hero-ingredient {
  color: var(--muted);
}

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

.budget-compare.has-owned-pick {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.budget-compare button {
  display: grid;
  gap: 2px;
  min-height: 68px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--cream);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

body.dark-mode .budget-compare button {
  background: var(--soft);
  color: var(--ink);
}

.budget-compare button.owned-swap {
  border-color: rgba(200, 169, 122, 0.46);
  background:
    radial-gradient(circle at 0% 0%, rgba(200, 169, 122, 0.18), transparent 34%),
    var(--soft);
}

.budget-compare span {
  color: var(--rose);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.budget-compare strong,
.budget-compare small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--rose);
  font-weight: 800;
}

.product-save-action {
  flex: 1 1 130px;
}

.heart-button {
  min-width: 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--rose);
  font-size: 1.2rem;
  cursor: pointer;
}

.heart-button.is-saved {
  background: var(--rose);
  color: white;
  animation: heartPop 240ms ease;
}

@keyframes heartPop {
  50% {
    transform: scale(1.18);
  }
}

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

.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  border: 1px solid rgba(250, 245, 240, 0.08);
  border-radius: 999px;
  background: rgba(10, 10, 18, 0.72);
  backdrop-filter: blur(16px);
}

.cycle-rhythm-hero,
.cycle-month-insight {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 24px;
  border: 1px solid rgba(250, 245, 240, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 12%, rgba(200, 200, 212, 0.16), transparent 24%),
    linear-gradient(145deg, #171725, #10101a 74%);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.32);
}

.cycle-rhythm-hero {
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
  min-height: 410px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 36px;
  background:
    radial-gradient(circle at 10% 16%, rgba(245, 240, 235, 0.68) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 18%, rgba(245, 240, 235, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 82%, rgba(245, 240, 235, 0.32) 0 1px, transparent 2px),
    radial-gradient(circle at 26% 44%, rgba(245, 240, 235, 0.18), transparent 22%),
    radial-gradient(circle at 82% 12%, rgba(196, 115, 106, 0.14), transparent 28%),
    linear-gradient(145deg, #151520, #0b0b13 74%);
  box-shadow: 0 36px 104px rgba(0, 0, 0, 0.48);
  animation: oracleRise 620ms var(--ease-luxury) both;
}

.cycle-rhythm-hero::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(250, 245, 240, 0.07);
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(245, 240, 235, 0.08), transparent 30%),
    radial-gradient(circle at 30% 50%, rgba(200, 200, 212, 0.12), transparent 34%);
  pointer-events: none;
}

.cycle-rhythm-hero::after {
  content: "";
  position: absolute;
  inset: auto -18% -38% 20%;
  height: 58%;
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(ellipse at center, rgba(200, 200, 212, 0.18), transparent 66%),
    linear-gradient(90deg, transparent, rgba(196, 115, 106, 0.1), transparent);
  pointer-events: none;
}

.cycle-moon-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.oracle-moon-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 210px;
}

.cinematic-oracle-moon {
  width: 100%;
  min-height: 300px;
  isolation: isolate;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.cinematic-oracle-moon:active {
  transform: scale(0.985);
}

.oracle-moon-stage::before {
  content: "";
  position: absolute;
  width: min(350px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(245, 240, 235, 0.28), rgba(200, 200, 212, 0.13) 38%, rgba(196, 115, 106, 0.07) 58%, transparent 72%);
  filter: blur(5px);
  animation: oracleGlow 8s ease-in-out infinite;
}

.cinematic-oracle-moon::after {
  content: "";
  position: absolute;
  width: min(330px, 66vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 235, 0.13);
  border-style: dashed;
  opacity: 0.56;
  transform: rotate(-12deg);
  animation: moonOrbitDrift 24s linear infinite;
  pointer-events: none;
}

.cinematic-oracle-moon.is-revealing .phase-moon-art {
  animation: oracleRevealMoon 860ms var(--ease-luxury) both;
}

.cinematic-oracle-moon.is-revealing::before {
  animation: oracleRevealGlow 860ms ease-out both;
}

.cycle-rhythm-hero .phase-moon-art {
  position: relative;
  z-index: 1;
  width: clamp(228px, 28vw, 350px);
}

.cycle-rhythm-copy,
.moon-oracle-copy {
  position: relative;
  z-index: 1;
}

.moon-oracle-copy {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: clamp(6px, 2vw, 20px);
  border-left: 1px solid rgba(245, 240, 235, 0.08);
}

.oracle-identity-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oracle-identity-line span,
.oracle-next-shift {
  border: 1px solid rgba(245, 240, 235, 0.1);
  background: rgba(245, 240, 235, 0.06);
}

.oracle-identity-line span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--silver);
  font-size: 12px;
  font-weight: 900;
}

.moon-oracle-copy h2 {
  max-width: 10ch;
  font-size: clamp(3.1rem, 7vw, 6.1rem);
  line-height: 0.92;
  color: #f5f0eb;
  text-shadow: 0 24px 70px rgba(245, 240, 235, 0.12);
}

.moon-oracle-copy > p {
  max-width: 44ch;
  color: #ded4d8;
  font-size: 15px;
}

.oracle-next-shift {
  display: grid;
  gap: 5px;
  max-width: 560px;
  padding: 16px;
  border-radius: 20px;
}

.oracle-next-shift strong {
  color: var(--rose);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.oracle-next-shift span {
  color: #f5f0eb;
  line-height: 1.5;
}

.oracle-action {
  width: fit-content;
  margin-top: 4px;
}

.cycle-summary-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.cycle-summary-row h2 {
  margin: 0;
}

.cycle-summary-row span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(250, 245, 240, 0.1);
  border-radius: 999px;
  background: rgba(250, 245, 240, 0.06);
  color: var(--silver);
  font-size: 0.76rem;
  font-weight: 900;
}

.cycle-rhythm-copy h2,
.cycle-month-insight h2 {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
}

.cycle-rhythm-copy p,
.cycle-month-insight p {
  max-width: 620px;
}

.cycle-phase-strip {
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.cycle-phase-strip span {
  min-height: 54px;
  display: grid;
  gap: 3px;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(250, 245, 240, 0.08);
  border-radius: 16px;
  background: rgba(250, 245, 240, 0.04);
}

.cycle-phase-strip span.is-current {
  border-color: rgba(196, 115, 106, 0.62);
  background: rgba(196, 115, 106, 0.14);
  box-shadow: 0 0 28px rgba(196, 115, 106, 0.12);
}

.cycle-phase-strip i {
  font-style: normal;
  font-size: 1.05rem;
}

.cycle-phase-strip strong {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cycle-progress-track {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 10px;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid rgba(250, 245, 240, 0.1);
  border-radius: 999px;
  background: rgba(250, 245, 240, 0.06);
}

.cycle-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--phase-menstrual), var(--phase-follicular), var(--phase-ovulation), var(--phase-luteal));
}

.cycle-progress-copy {
  margin: 8px 0 0;
  color: var(--silver);
  font-size: 12px;
  font-weight: 800;
}

.cycle-month-insight {
  display: grid;
  gap: 18px;
  border-left: 4px solid var(--rose);
}

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

.cycle-rhythm-strip {
  display: grid;
  gap: 14px;
  margin: 18px 0 16px;
  padding: 16px;
  border: 1px solid rgba(245, 240, 235, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 50%, rgba(245, 240, 235, 0.09), transparent 30%),
    rgba(245, 240, 235, 0.035);
}

.rhythm-strip-rail {
  display: grid;
  grid-template-columns: repeat(28, minmax(14px, 1fr));
  gap: 5px;
  align-items: end;
}

.rhythm-day-dot {
  position: relative;
  min-width: 14px;
  min-height: 44px;
  display: grid;
  place-items: end center;
  border: 0;
  border-radius: 999px;
  background: rgba(245, 240, 235, 0.08);
  color: transparent;
  cursor: pointer;
  animation: rhythmDotRise 360ms var(--ease-luxury) both;
}

.rhythm-day-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: currentColor;
  color: rgba(245, 240, 235, 0.28);
  box-shadow: 0 0 0 rgba(245, 240, 235, 0);
}

.rhythm-day-dot.menstrual::before { color: #8a9bb5; }
.rhythm-day-dot.follicular::before { color: #c9a96e; }
.rhythm-day-dot.ovulation::before { color: #c4736a; }
.rhythm-day-dot.luteal::before { color: #9b7b8a; }

.rhythm-day-dot.has-log::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 16px rgba(196, 115, 106, 0.62);
  transform: translateX(-50%);
  pointer-events: none;
}

.rhythm-day-dot.status-clear::after { background: #8fc8a1; }
.rhythm-day-dot.status-oily::after { background: #78aee8; }
.rhythm-day-dot.status-dry::after { background: #d8a262; }
.rhythm-day-dot.status-breaking-out::after,
.rhythm-day-dot.status-breaking_out::after { background: #d96e72; }
.rhythm-day-dot.status-reactive::after,
.rhythm-day-dot.status-sensitive::after { background: #d79ab2; }

.rhythm-day-dot.is-today {
  background: rgba(245, 240, 235, 0.16);
  box-shadow: 0 0 30px rgba(245, 240, 235, 0.12);
}

.rhythm-day-dot.is-today::before {
  width: 15px;
  height: 15px;
  box-shadow: 0 0 22px currentColor;
}

.rhythm-day-dot.is-future {
  opacity: 0.44;
}

.rhythm-day-dot.is-shift {
  outline: 1px solid rgba(245, 240, 235, 0.28);
  outline-offset: 3px;
}

.rhythm-strip-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.rhythm-strip-legend span {
  padding: 6px 9px;
  border: 1px solid rgba(245, 240, 235, 0.08);
  border-radius: 999px;
  background: rgba(245, 240, 235, 0.04);
}

.moon-timeline-segment {
  position: relative;
  min-height: 132px;
  display: grid;
  gap: 5px;
  align-content: center;
  justify-items: start;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(245, 240, 235, 0.08);
  border-radius: 22px;
  background: rgba(245, 240, 235, 0.04);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  animation: oracleRise 420ms var(--ease-luxury) both;
}

.moon-timeline-segment:nth-child(2) {
  animation-delay: 60ms;
}

.moon-timeline-segment:nth-child(3) {
  animation-delay: 120ms;
}

.moon-timeline-segment:nth-child(4) {
  animation-delay: 180ms;
}

.moon-timeline-segment::before {
  content: "";
  position: absolute;
  inset: auto -16% -45% 20%;
  height: 74%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 240, 235, 0.13), transparent 64%);
}

.moon-timeline-segment.is-current {
  border-color: rgba(196, 115, 106, 0.52);
  background: rgba(196, 115, 106, 0.12);
  box-shadow: 0 0 34px rgba(196, 115, 106, 0.12);
}

.moon-timeline-segment.is-future {
  opacity: 0.62;
}

.moon-timeline-segment i {
  font-style: normal;
  font-size: 1.7rem;
}

.moon-timeline-segment strong {
  font-family: "Cormorant Garamond";
  font-size: 1.45rem;
  line-height: 1;
}

.moon-timeline-segment span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.moon-timeline-segment em {
  width: 9px;
  height: 9px;
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 14px rgba(196, 115, 106, 0.5);
}

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

.skin-rhythm-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(245, 240, 235, 0.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at 86% 12%, rgba(196, 115, 106, 0.1), transparent 28%),
    linear-gradient(145deg, rgba(18, 18, 30, 0.96), rgba(10, 10, 18, 0.9));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
}

.skin-rhythm-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.skin-signals-map {
  grid-column: span 2;
}

.signals-orbit {
  position: relative;
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 20px auto 0;
  border: 1px solid rgba(245, 240, 235, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(245, 240, 235, 0.1), transparent 22%),
    radial-gradient(circle, transparent 48%, rgba(245, 240, 235, 0.06) 49%, transparent 51%);
}

.signals-orbit-moon {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-size: 2.2rem;
  filter: drop-shadow(0 0 18px rgba(245, 240, 235, 0.28));
}

.signal-map-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(10, 10, 18, 0.4);
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 16px rgba(196, 115, 106, 0.4);
  cursor: pointer;
}

.signal-map-dot.status-clear { background: #8fc8a1; }
.signal-map-dot.status-oily { background: #78aee8; }
.signal-map-dot.status-dry { background: #d8a262; }
.signal-map-dot.status-breaking-out,
.signal-map-dot.status-breaking_out { background: #d96e72; }
.signal-map-dot.status-reactive,
.signal-map-dot.status-sensitive { background: #d79ab2; }

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

.history-list-item {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 240, 235, 0.08);
  border-radius: 18px;
  background: rgba(245, 240, 235, 0.05);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.history-list-item span {
  display: grid;
  gap: 4px;
}

.history-list-item small,
.history-list-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.history-list-item em {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(245, 240, 235, 0.06);
  white-space: nowrap;
}

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

.oracle-product-row article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(245, 240, 235, 0.08);
  border-radius: 18px;
  background: rgba(245, 240, 235, 0.05);
}

.oracle-product-row span {
  color: var(--muted);
  font-size: 12px;
}

@keyframes oracleRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.988);
  }

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

@keyframes oracleGlow {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes oracleRevealMoon {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 22px 46px rgba(0, 0, 0, 0.32));
  }

  45% {
    transform: translateY(-10px) scale(1.045);
    filter: drop-shadow(0 30px 62px rgba(245, 240, 235, 0.22));
  }

  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 22px 46px rgba(0, 0, 0, 0.32));
  }
}

@keyframes oracleRevealGlow {
  0% { opacity: 0.52; transform: scale(1); }
  45% { opacity: 0.95; transform: scale(1.14); }
  100% { opacity: 0.52; transform: scale(1); }
}

@keyframes rhythmDotRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.calendar-month-header,
.calendar-phase-key {
  grid-column: 1 / -1;
}

.calendar-month-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 0 4px;
  padding: 18px;
  border: 1px solid rgba(250, 245, 240, 0.08);
  border-radius: 22px;
  background: linear-gradient(145deg, #151523, #10101a);
}

.calendar-month-header h2 {
  margin-bottom: 6px;
}

.calendar-context-copy {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.calendar-phase-key {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 2px;
}

.calendar-phase-key span,
.calendar-weekday {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
}

.calendar-weekday {
  color: var(--muted);
}

.cycle-day {
  position: relative;
  min-height: 78px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: stretch;
  align-content: stretch;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 10%, rgba(245, 240, 235, 0.08), transparent 30%),
    #12121e;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  animation: cardUp 260ms ease both;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.cycle-day:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 245, 240, 0.2);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.cycle-day-top {
  min-height: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ecf9b;
}

.check-dot.oily { background: #71a7d8; }
.check-dot.dry { background: #d89c63; }
.check-dot.breaking-out { background: #d76767; }
.check-dot.reactive { background: #d98ca6; }

.save-star {
  color: var(--gold);
  font-size: 0.8rem;
}

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

.year-month-card {
  min-height: 168px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #12121e;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

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

.mini-month span {
  min-height: 16px;
  border-radius: 5px;
  color: rgba(245, 240, 235, 0.82);
  font-size: 0.58rem;
  text-align: center;
}

.mini-month .menstrual,
.history-dot.menstrual { background: rgba(138, 155, 181, 0.28); }
.mini-month .follicular,
.history-dot.follicular { background: rgba(201, 169, 110, 0.28); }
.mini-month .ovulation,
.history-dot.ovulation { background: rgba(196, 115, 106, 0.28); }
.mini-month .luteal,
.history-dot.luteal { background: rgba(155, 123, 138, 0.28); }

.skin-history-strip,
.calendar-stats-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #12121e;
}

.skin-history-strip > div {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.history-dot {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 0.7rem;
}

.history-dot.clear { box-shadow: inset 0 -4px 0 #8ecf9b; }
.history-dot.oily { box-shadow: inset 0 -4px 0 #71a7d8; }
.history-dot.dry { box-shadow: inset 0 -4px 0 #d89c63; }
.history-dot.breaking-out { box-shadow: inset 0 -4px 0 #d76767; }
.history-dot.reactive { box-shadow: inset 0 -4px 0 #d98ca6; }

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

.calendar-stat-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

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

.calendar-stat-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.export-data-button {
  margin-top: 16px;
}

.cycle-day strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1;
}

.cycle-day em {
  font-style: normal;
  line-height: 1;
  opacity: 0.86;
}

.cycle-day small {
  color: var(--silver);
  align-self: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.cycle-day-markers {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.1;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cycle-day.is-today {
  border-color: var(--rose);
  box-shadow: inset 0 0 0 2px rgba(196, 115, 106, 0.7);
}

.cycle-day.has-checkin::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
}

.cycle-day.is-future {
  opacity: 0.52;
}

.cycle-day.menstrual {
  background: rgba(138, 155, 181, 0.18);
  border-left: 3px solid var(--phase-menstrual);
}

.cycle-day.follicular {
  background: rgba(201, 169, 110, 0.18);
  border-left: 3px solid var(--phase-follicular);
}

.cycle-day.ovulation {
  background: rgba(196, 115, 106, 0.18);
  border-left: 3px solid var(--phase-ovulation);
}

.cycle-day.luteal {
  background: rgba(155, 123, 138, 0.18);
  border-left: 3px solid var(--phase-luteal);
}

.cycle-day.untracked {
  background: rgba(255, 255, 255, 0.04);
  opacity: 0.72;
}

.calendar-phase-key .menstrual {
  background: rgba(138, 155, 181, 0.2);
  color: var(--ink);
}

.calendar-phase-key .follicular {
  background: rgba(201, 169, 110, 0.2);
  color: var(--ink);
}

.calendar-phase-key .ovulation {
  background: rgba(196, 115, 106, 0.2);
  color: var(--ink);
}

.calendar-phase-key .luteal {
  background: rgba(155, 123, 138, 0.2);
  color: var(--ink);
}

body.dark-mode .calendar-month-header,
body.dark-mode .cycle-day {
  background: var(--paper);
  color: var(--ink);
}

body.dark-mode .cycle-day.is-today {
  border-color: var(--rose);
  box-shadow: inset 0 0 0 2px var(--rose);
}

.cycle-sheet-hero {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(250, 245, 240, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(200, 169, 122, 0.13), transparent 35%),
    rgba(250, 245, 240, 0.04);
}

.cycle-sheet-moon .phase-moon-art {
  width: 84px;
}

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

.cycle-sheet-grid article,
.cycle-sheet-approach {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(250, 245, 240, 0.04);
}

.cycle-sheet-grid strong,
.cycle-sheet-approach strong {
  color: var(--rose);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cycle-sheet-grid span,
.cycle-sheet-approach p {
  color: var(--muted);
  line-height: 1.55;
}

.cycle-sheet-products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cycle-sheet-products button {
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid rgba(200, 169, 122, 0.22);
  border-radius: 999px;
  background: rgba(200, 169, 122, 0.1);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.cycle-sheet-products span {
  color: var(--gold);
}

.phase-arc {
  display: grid;
  grid-template-columns: 1fr 1.5fr 0.8fr 1.7fr;
  gap: 6px;
  margin-bottom: 18px;
}

.phase-arc span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.phase-arc .menstrual {
  background: rgba(138, 155, 181, 0.2);
  color: var(--ink);
}

.phase-arc .follicular {
  background: rgba(201, 169, 110, 0.2);
}

.phase-arc .ovulation {
  background: rgba(196, 115, 106, 0.2);
}

.phase-arc .luteal {
  background: rgba(155, 123, 138, 0.2);
  color: var(--ink);
}

.screen-header,
.profile-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-top: 8px;
}

.profile-hero {
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(250, 245, 240, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 0%, rgba(196, 115, 106, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(18, 18, 30, 0.92), rgba(10, 10, 18, 0.9));
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.22);
}

.library-filter-drawer {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--cream) 78%, transparent);
  backdrop-filter: blur(18px);
}

body.dark-mode .library-filter-drawer {
  background: rgba(18, 18, 30, 0.78);
}

.library-filter-drawer summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.library-filter-drawer summary::after {
  content: "Refine";
  color: var(--rose);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.library-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(4, minmax(130px, 180px));
  gap: 12px;
  padding: 0 14px 14px;
}

.product-row-section {
  margin: 18px 0 24px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.quick-filter-row {
  display: flex;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 2px 12px;
  margin: 0 0 10px;
  scrollbar-width: none;
}

.quick-filter-row::-webkit-scrollbar {
  display: none;
}

.quick-filter-row button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.quick-filter-row button:first-child {
  background: rgba(196, 115, 106, 0.16);
  color: var(--rose);
}

.lurei-picks-strip {
  margin: 0 0 18px;
}

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

.lurei-picks-row button {
  display: grid;
  gap: 8px;
  min-height: 184px;
  padding: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.lurei-picks-row span,
.lurei-picks-row strong {
  padding: 0 12px;
}

.lurei-picks-row span {
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lurei-picks-row strong {
  color: var(--ink);
  font-size: 0.92rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-preview.mini {
  min-height: 118px;
}

.product-preview.mini .preview-object {
  width: 50px;
  height: 78px;
  border-radius: 14px 14px 18px 18px;
}

.product-preview.mini .preview-label {
  width: 34px;
  height: 34px;
  font-size: 0.78rem;
}

.product-preview.mini .preview-cap {
  top: -13px;
  width: 34px;
  height: 16px;
}

.product-preview.mini .preview-swatch {
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
}

.product-edit-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 1.15fr);
  gap: 18px;
  align-items: stretch;
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--phase-ovulation);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 85% 5%, rgba(196, 115, 106, 0.18), transparent 30%),
    #12121e;
  box-shadow: var(--shadow);
}

.product-edit-hero h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 6vw, 3.35rem);
}

.product-edit-hero p {
  color: var(--muted);
}

.edit-slot-grid {
  display: grid;
  gap: 12px;
}

.edit-slot-card {
  min-height: 128px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(26, 26, 46, 0.86);
  cursor: pointer;
  transition: transform 120ms ease-out, border-color 180ms ease-out, background 180ms ease-out;
}

.edit-slot-card:hover {
  border-color: rgba(196, 115, 106, 0.42);
  background: rgba(40, 31, 54, 0.94);
}

.edit-slot-card span,
.edit-slot-card small {
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.edit-slot-card strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.edit-slot-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.budget-feature .budget-compare {
  margin-top: 10px;
}

.product-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(238px, 280px);
  gap: 14px;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.product-carousel::-webkit-scrollbar {
  display: none;
}

.product-carousel .product-card {
  scroll-snap-align: start;
}

.product-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.product-library-grid.is-collapsed {
  display: none;
}

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

.mini-shelf-row button {
  min-height: 116px;
  display: grid;
  gap: 6px;
  justify-items: start;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.shelf-routine-card {
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid rgba(250, 245, 240, 0.08);
  border-left: 4px solid var(--gold);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(200, 169, 122, 0.12), transparent 30%),
    linear-gradient(145deg, #151523, #10101a);
}

.shelf-routine-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.shelf-routine-steps span {
  min-height: 82px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 13px;
  border: 1px solid rgba(250, 245, 240, 0.08);
  border-radius: 16px;
  background: rgba(250, 245, 240, 0.04);
}

.shelf-routine-steps strong {
  color: var(--ink);
}

.shelf-routine-steps small {
  color: var(--muted);
  line-height: 1.35;
}

.shelf-routine-steps .is-filled {
  border-color: rgba(200, 169, 122, 0.32);
  background: rgba(200, 169, 122, 0.09);
}

.mini-shelf-row span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: #0a0a12;
  font-weight: 900;
}

.mini-shelf-row strong,
.mini-shelf-row small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-shelf-row small {
  color: var(--muted);
}

.discover-tabs {
  width: fit-content;
  display: flex;
  gap: 4px;
  padding: 5px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.discover-tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.discover-tabs button.is-active {
  background: var(--soft);
  color: var(--rose);
}

.discover-panel {
  display: none;
}

.discover-panel.is-active {
  display: block;
}

.ingredient-checker {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
  gap: 18px;
  align-items: start;
  margin-top: 24px;
}

.ingredient-result {
  grid-column: 1 / -1;
}

.ingredient-read-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(200, 169, 122, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 0%, rgba(200, 169, 122, 0.16), transparent 30%),
    rgba(18, 18, 30, 0.82);
}

.ingredient-read-card h3 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.barcode-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(200, 169, 122, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 0%, rgba(200, 169, 122, 0.1), transparent 32%),
    rgba(250, 245, 240, 0.035);
}

.barcode-panel h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.barcode-actions {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.barcode-actions input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.barcode-read-card {
  grid-template-columns: 72px 1fr;
  align-items: center;
}

.barcode-read-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(245, 240, 235, 0.92);
}

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

.ingredient-read-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(250, 245, 240, 0.04);
}

.ingredient-read-grid strong {
  color: var(--rose);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.beauty-read-card,
.beauty-read-preview,
.shade-finder-hero,
.budget-swaps-panel {
  margin: 14px 0;
  padding: 20px;
  border: 1px solid rgba(234, 219, 213, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow);
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

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

.product-detail-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.product-detail-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-detail-grid p {
  margin: 0;
}

.detail-shade {
  margin: 12px 0;
}

body.dark-mode .beauty-read-card,
body.dark-mode .beauty-read-preview,
body.dark-mode .shade-finder-hero,
body.dark-mode .budget-swaps-panel {
  border-color: var(--line);
  background: var(--paper);
}

.beauty-read-hero,
.shade-finder-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

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

.beauty-read-preview {
  margin: 16px 0;
}

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

.beauty-preview-grid article {
  min-height: 108px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.beauty-preview-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.beauty-preview-grid strong {
  display: block;
  color: var(--ink);
}

.beauty-preview-grid p {
  margin: 4px 0 0;
}

.skeleton-card {
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #1a1a2e;
  position: relative;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(245, 240, 235, 0.08), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.beauty-read-grid article,
.budget-swap-stack article,
.routine-step {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

body.dark-mode .beauty-read-grid article,
body.dark-mode .budget-swap-stack article,
body.dark-mode .routine-step {
  background: var(--soft);
}

.beauty-read-grid article {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
}

.beauty-read-grid span,
.routine-step small {
  color: var(--muted);
  font-size: 0.8rem;
}

.beauty-read-grid strong {
  color: var(--ink);
  line-height: 1.25;
}

.beauty-read-picks {
  margin-top: 18px;
}

.shade-family-strip {
  display: flex;
  align-items: center;
  min-width: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.shade-family-strip span {
  width: 46px;
  height: 52px;
}

.shade-family-strip .fair {
  background: #f5d5c0;
}

.shade-family-strip .light {
  background: #ecc9a0;
}

.shade-family-strip .medium {
  background: #d4a27a;
}

.shade-family-strip .tan {
  background: #b07850;
}

.shade-family-strip .deep {
  background: #6b3a2a;
}

.shade-family-strip .rich {
  background: #3d1f10;
}

.budget-swap-stack {
  display: grid;
  gap: 12px;
}

.budget-swap-stack article {
  display: grid;
  gap: 8px;
  padding: 14px;
}

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

.routine-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
}

.routine-mode-row button {
  min-height: 44px;
  flex: 1 1 calc(50% - 8px);
  min-width: min(132px, 100%);
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
}

.routine-mode-row button.is-active {
  border-color: rgba(196, 115, 106, 0.55);
  background: var(--rose);
  color: var(--plum);
}

.routine-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.routine-chip-row span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 240, 235, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--silver);
  background: rgba(245, 240, 235, 0.055);
  font-size: 0.78rem;
  font-weight: 900;
}

.routine-summary {
  margin: 4px 0 6px;
  padding: 14px 16px;
  border: 1px solid rgba(200, 169, 122, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 96% 0%, rgba(200, 169, 122, 0.12), transparent 34%),
    rgba(200, 169, 122, 0.07);
  color: var(--ink);
  font-weight: 750;
  line-height: 1.55;
}

.routine-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.routine-step.has-owned-product {
  border-color: rgba(200, 169, 122, 0.34);
  background:
    radial-gradient(circle at 92% 0%, rgba(200, 169, 122, 0.1), transparent 32%),
    var(--paper);
}

body.dark-mode .routine-step.has-owned-product {
  background:
    radial-gradient(circle at 92% 0%, rgba(200, 169, 122, 0.12), transparent 32%),
    var(--soft);
}

.routine-step.has-gap {
  border-style: dashed;
}

.routine-step > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--rose);
  font-weight: 900;
}

body.dark-mode .routine-step > span {
  background: #4a2e51;
  color: var(--cream);
}

.routine-step p,
.routine-step small,
.routine-step em {
  margin: 2px 0 0;
}

.routine-step strong {
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.42rem;
  line-height: 1.05;
}

.routine-action {
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
}

.routine-why {
  display: block;
  max-width: 62ch;
  line-height: 1.55;
}

.routine-memory,
.routine-gap {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(196, 115, 106, 0.24);
  border-radius: 999px;
  background: rgba(196, 115, 106, 0.09);
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.3;
}

.routine-memory.is-caution,
.routine-gap {
  border-color: rgba(200, 169, 122, 0.34);
  background: rgba(200, 169, 122, 0.09);
}

.edit-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.edit-card::before {
  content: "";
  display: block;
  height: 8px;
  margin: -20px -20px 16px;
  background: var(--phase-color, var(--rose));
}

.edit-card blockquote {
  margin: 16px 0;
  color: var(--rose);
  font-family: "Cormorant Garamond";
  font-size: 1.35rem;
}

.edit-card p {
  white-space: pre-line;
}

.saved-category {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  color: var(--rose);
  font-family: "Cormorant Garamond";
  font-size: 2rem;
}

.vanity-section {
  display: grid;
  gap: 14px;
  margin: 24px 0 34px;
  padding: 18px;
  border: 1px solid rgba(250, 245, 240, 0.07);
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 0%, rgba(200, 169, 122, 0.1), transparent 32%),
    rgba(250, 245, 240, 0.028);
}

.vanity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.shelf-meta {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.memory-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(196, 115, 106, 0.22);
  border-radius: 12px;
  background: rgba(196, 115, 106, 0.08);
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.45;
}

.memory-note span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(196, 115, 106, 0.22);
  color: var(--rose);
  font-weight: 900;
}

.shelf-reason-panel {
  display: grid;
  gap: 8px;
}

.shelf-reason-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shelf-rating-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shelf-rating-buttons button,
.shelf-reason-grid button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.shelf-rating-buttons button.is-selected,
.shelf-reason-grid button.is-selected {
  border-color: rgba(196, 115, 106, 0.72);
  background: rgba(196, 115, 106, 0.18);
  color: var(--rose);
}

.deeper-card {
  display: block;
}

.deeper-card summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  cursor: pointer;
}

.deeper-card summary span {
  display: grid;
  gap: 4px;
}

.deeper-card summary strong {
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
}

.deeper-card summary small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.routine-conflict-card {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(196, 115, 106, 0.32);
  border-left: 3px solid var(--rose);
  border-radius: 14px;
  background: rgba(196, 115, 106, 0.08);
}

.routine-conflict-card strong {
  color: var(--rose);
}

.routine-conflict-card span {
  color: var(--ink);
  line-height: 1.5;
}

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

.rating-row,
.restock-row,
.toggle-list,
.toggle-row {
  display: grid;
  gap: 10px;
}

.notification-connect-card {
  display: grid;
  gap: 16px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(245, 240, 235, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(196, 115, 106, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.notification-connect-card::before {
  content: "☾";
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(196, 115, 106, 0.16);
  color: var(--rose);
  font-size: 1.55rem;
}

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

.notification-connect-card strong {
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.28rem;
  line-height: 1.1;
}

.notification-connect-card span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.notification-connect-card .look-actions {
  align-items: stretch;
}

.toggle-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 48px;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 800;
}

.toggle-row input {
  width: 22px;
  min-height: 22px;
}

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

.privacy-card,
.premium-card {
  background: linear-gradient(135deg, #12121e, #1a1a2e);
}

.privacy-mini-grid,
.privacy-trust-grid {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.privacy-mini-grid {
  grid-template-columns: 1fr;
}

.privacy-mini-grid span,
.privacy-trust-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(250, 245, 240, 0.1);
  border-radius: 16px;
  background: rgba(250, 245, 240, 0.055);
  color: var(--ink);
}

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

.privacy-trust-grid strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.privacy-trust-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.product-source-line {
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.manifesto-card {
  width: min(920px, 100%);
  margin: 0 auto 16px;
  padding: 32px 24px;
  color: var(--ink);
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  font-style: italic;
  line-height: 1.45;
}

.manifesto-card p {
  margin: 0 auto 18px;
  max-width: 780px;
}

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

.intelligence-list button {
  min-height: 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--soft);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.intelligence-list span {
  color: var(--muted);
}

.intelligence-list strong {
  color: var(--ink);
}

.calibration-card,
.avoid-summary-card {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(200, 169, 122, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 169, 122, 0.13), transparent 35%),
    rgba(250, 245, 240, 0.04);
}

.calibration-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.calibration-card span,
.avoid-summary-card span {
  color: var(--muted);
}

.calibration-card strong,
.avoid-summary-card strong {
  color: var(--ink);
}

.calibration-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(200, 200, 212, 0.12);
}

.calibration-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--phase-menstrual), var(--phase-ovulation), var(--rose));
}

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

.faq-card details {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.faq-card summary {
  min-height: 44px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.profile-accordion {
  padding: 0;
  overflow: hidden;
}

.profile-accordion summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.profile-accordion summary::marker {
  color: var(--rose);
}

.profile-accordion > *:not(summary) {
  margin: 0 20px 18px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 50;
  width: min(620px, calc(100% - 28px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(245, 240, 235, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 115, 106, 0.12), transparent 48%),
    rgba(18, 18, 30, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.bottom-nav::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  z-index: 0;
  width: calc((100% - 32px) / 5);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 240, 235, 0.18), transparent 42%),
    radial-gradient(circle, rgba(196, 115, 106, 0.26), rgba(196, 115, 106, 0.08) 64%, transparent);
  transform: translateX(calc(var(--nav-index, 0) * (100% + 4px)));
  transition: transform 340ms var(--ease-luxury), background 180ms ease;
}

body.dark-mode .bottom-nav {
  background: rgba(36, 19, 41, 0.94);
}

body.is-start .bottom-nav {
  display: none;
}

.bottom-nav button {
  position: relative;
  z-index: 1;
  min-height: 50px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  z-index: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.bottom-nav button span {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.bottom-nav button.is-active {
  background: transparent;
  color: #f5f0eb;
  text-shadow: 0 0 18px rgba(196, 115, 106, 0.44);
}

.toast,
.offline-pill {
  position: fixed;
  z-index: 70;
  pointer-events: none;
  max-width: 340px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--plum);
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 160ms ease;
}

.install-card {
  position: fixed;
  right: 18px;
  bottom: 106px;
  z-index: 68;
  width: min(390px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(250, 245, 240, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(196, 115, 106, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(18, 18, 30, 0.98), rgba(9, 9, 17, 0.98));
  color: #f5f0eb;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity 360ms var(--ease-luxury), transform 360ms var(--ease-luxury);
}

.install-card.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.install-card[hidden] {
  display: none;
}

.install-card-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(250, 245, 240, 0.1);
  border-radius: 18px;
  background: rgba(250, 245, 240, 0.06);
}

.install-card-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.install-card h2 {
  margin-bottom: 6px;
  font-size: 1.8rem;
  color: #f5f0eb;
}

.install-card p:not(.panel-kicker) {
  margin: 0;
  color: rgba(245, 240, 235, 0.78);
  font-size: 0.86rem;
  line-height: 1.55;
}

body.light-mode .install-card {
  border-color: rgba(43, 26, 47, 0.12);
  background:
    radial-gradient(circle at 18% 0%, rgba(196, 115, 106, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(250, 245, 240, 0.98), rgba(237, 213, 216, 0.96));
  color: var(--plum);
  box-shadow: 0 24px 72px rgba(43, 26, 47, 0.22);
}

body.light-mode .install-card h2 {
  color: var(--plum);
}

body.light-mode .install-card p:not(.panel-kicker) {
  color: #7a5f65;
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.install-profile-card[hidden] {
  display: none;
}

.toast {
  right: 18px;
  bottom: 92px;
}

.offline-pill {
  left: 50%;
  top: 14px;
  transform: translate(-50%, -10px);
}

.toast.is-visible,
.offline-pill.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.offline-pill.is-visible {
  transform: translate(-50%, 0);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(26, 15, 30, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease-luxury);
}

.bottom-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 80;
  width: min(680px, 100%);
  max-height: 82vh;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 28px);
  transition: opacity 260ms var(--ease-luxury), transform 260ms var(--ease-luxury);
}

.bottom-sheet::before {
  content: "";
  position: sticky;
  top: 0;
  z-index: 3;
  display: block;
  width: 46px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(250, 245, 240, 0.24);
}

.bottom-sheet[hidden],
.sheet-backdrop[hidden] {
  display: none;
}

.sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.dark-mode .bottom-sheet {
  background: var(--paper);
  color: var(--ink);
}

.bottom-sheet h2 {
  font-size: clamp(1.7rem, 8vw, 2.25rem);
}

.why-row-grid {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.why-row-grid article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(250, 245, 240, 0.1);
  border-radius: 16px;
  background: rgba(250, 245, 240, 0.05);
}

.why-row-grid strong {
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.why-row-grid span {
  color: var(--ink);
  line-height: 1.55;
}

.close-sheet {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--plum);
  cursor: pointer;
}

.empty-copy {
  color: var(--muted);
  font-size: 0.95rem;
}

.celestial-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 32px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(circle at 50% 0%, rgba(200, 200, 212, 0.12), transparent 34%), var(--paper);
  text-align: center;
}

.celestial-empty > div {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(196, 115, 106, 0.14);
  color: var(--rose);
  font-size: 28px;
}

.celestial-empty h2,
.celestial-empty p {
  margin: 0;
}

.celestial-empty p {
  max-width: 520px;
  color: var(--muted);
}

@media (max-width: 920px) {
  h1 {
    font-size: clamp(2.25rem, 10.5vw, 2.9rem);
  }

  .screen {
    padding: 20px 16px 152px;
  }

  .ritual-card {
    width: min(100%, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
  }

  .gate-screen .ritual-card,
  .welcome-screen .ritual-card {
    width: min(100%, calc(100vw - 64px));
    max-width: calc(100vw - 64px);
  }

  .gate-screen h1,
  .welcome-screen h1 {
    font-size: clamp(2.1rem, 8.4vw, 2.55rem);
    max-width: 100%;
  }

  .legal-page .ritual-card {
    width: 100%;
    max-width: 100%;
    padding: 24px 16px;
  }

  .today-header {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 12px;
  }

  .today-heading-copy {
    display: contents;
  }

  .today-header h1 {
    grid-column: 2;
    grid-row: 1;
  }

  .today-intelligence-chip {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    width: 100%;
    margin-top: 4px !important;
    text-align: center;
  }

  .today-header h1 {
    font-size: clamp(1.6rem, 6vw, 2.1rem);
  }

  .brand-mark span {
    display: none;
  }

  .tracker-stat-grid,
  .recommendation-grid,
  .product-library,
  .saved-shelf,
  .edit-grid,
  .settings-grid,
  .beauty-read-grid,
  .beauty-preview-grid,
  .routine-steps,
  .shelf-memory-grid,
  .tap-card-grid,
  .tap-card-grid.three,
  .ingredient-checker,
  .phase-hero-grid,
  .phase-action-brief,
  .use-avoid-grid,
  .library-controls,
  .troubleshoot-product-row {
    grid-template-columns: 1fr;
  }

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

  .skin-check-strip button:last-child {
    grid-column: 1 / -1;
  }

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

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

  .phase-card .tracker-stat-grid,
  .ritual-split {
    grid-template-columns: 1fr;
  }

  .phase-card {
    min-height: 0;
    border-radius: 30px;
    padding: 20px;
  }

  .phase-hero-grid {
    min-height: 0;
    gap: 18px;
  }

  .phase-card .today-moon-reveal {
    min-height: 136px;
    margin-bottom: 4px;
  }

  .phase-card .today-moon-reveal .phase-moon-art {
    width: min(152px, 46vw);
  }

  .today-moon-reveal::before {
    width: min(240px, 70vw);
  }

  .today-moon-reveal::after {
    width: min(218px, 64vw);
  }

  .phase-card .tracker-stat {
    min-height: 66px;
  }

  .cycle-calendar {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
  }

  .cycle-rhythm-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px;
    gap: 14px;
    border-radius: 32px;
  }

  .cycle-rhythm-hero .phase-moon-art {
    width: min(214px, 60vw);
  }

  .oracle-moon-stage {
    min-height: 226px;
    justify-items: center;
  }

  .cinematic-oracle-moon {
    min-height: 236px;
  }

  .moon-oracle-copy {
    gap: 10px;
  }

  .moon-oracle-copy h2 {
    max-width: 100%;
    font-size: clamp(2.25rem, 11.5vw, 3.25rem);
    line-height: 0.96;
  }

  .moon-oracle-copy > p {
    font-size: 13px;
    line-height: 1.45;
  }

  .oracle-next-shift {
    padding: 10px 12px;
    border-radius: 16px;
  }

  .oracle-next-shift span {
    font-size: 13px;
    line-height: 1.42;
  }

  .oracle-action {
    width: 100%;
    min-height: 46px;
  }

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

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

  .rhythm-strip-rail {
    grid-template-columns: repeat(6, minmax(44px, 1fr));
    row-gap: 8px;
  }

  .rhythm-day-dot {
    min-height: 44px;
    min-width: 44px;
  }

  .skin-rhythm-grid {
    grid-template-columns: 1fr;
  }

  .skin-signals-map {
    grid-column: auto;
  }

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

  .cycle-month-insight,
  .cycle-summary-row {
    grid-template-columns: 1fr;
  }

  .cycle-summary-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-blank {
    display: none;
  }

  .calendar-weekday {
    display: block;
    font-size: 10px;
    text-align: center;
  }

  .cycle-day {
    min-height: 58px;
    padding: 7px;
    border-left-width: 2px;
    border-radius: 14px;
  }

  .cycle-day strong {
    font-size: 0.92rem;
  }

  .cycle-day small {
    font-size: 9px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .cycle-day-markers {
    display: none;
  }

  .cycle-day em {
    font-size: 0.84rem;
  }

  .cycle-sheet-hero,
  .cycle-sheet-grid {
    grid-template-columns: 1fr;
  }

  .phase-arc {
    grid-template-columns: 1fr;
  }

  .beauty-read-hero,
  .shade-finder-hero,
  .calendar-month-header {
    flex-direction: column;
  }

  .shade-family-strip {
    width: 100%;
    min-width: 0;
  }

  .budget-compare,
  .budget-compare.has-owned-pick,
  .ingredient-read-grid,
  .barcode-actions,
  .barcode-read-card,
  .weekly-letter-grid,
  .calendar-phase-key {
    grid-template-columns: 1fr;
  }

  .product-library-grid,
  .product-edit-hero,
  .product-detail-hero,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-carousel {
    grid-auto-columns: minmax(220px, 72vw);
  }

  .lurei-picks-row {
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 42vw);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .lurei-picks-row::-webkit-scrollbar {
    display: none;
  }

  .library-controls {
    position: static;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

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

  .install-card {
    right: 16px;
    left: 16px;
    bottom: 104px;
    width: auto;
    grid-template-columns: 1fr;
  }

  .install-actions .button {
    flex: 1 1 100%;
  }
}

@media (min-width: 1180px) {
  body:not(.is-start) {
    background:
      radial-gradient(circle at 50% 0%, rgba(196, 115, 106, 0.11), transparent 30%),
      linear-gradient(135deg, #05050a, #0a0a12 48%, #11111c);
  }

  .screen {
    padding-top: 48px;
  }

  .screen-inner {
    width: min(1080px, calc(100vw - 112px));
    padding: 28px;
    border: 1px solid rgba(250, 245, 240, 0.06);
    border-radius: 34px;
    background: rgba(10, 10, 18, 0.42);
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
  }

  body.light-mode .screen-inner {
    background: rgba(255, 250, 245, 0.62);
    border-color: rgba(43, 26, 47, 0.08);
  }

  .today-screen .screen-inner {
    width: min(980px, calc(100vw - 112px));
  }

  .discover-screen .screen-inner,
  .shelf-screen .screen-inner {
    width: min(1180px, calc(100vw - 112px));
  }

  .cycle-screen .screen-inner {
    width: min(1120px, calc(100vw - 112px));
  }

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

@media (max-width: 720px) {
  .phase-card {
    min-height: auto;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .phase-card::before {
    inset: 10px;
    border-radius: 18px;
  }

  .phase-hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 18px;
    text-align: left;
  }

  .phase-moon-art {
    width: 144px;
    justify-self: start;
  }

  .phase-primary-action {
    width: 100%;
    min-height: 44px;
    margin-top: 14px;
  }

  .phase-card h2 {
    font-size: clamp(3rem, 15vw, 4.35rem);
  }

  .phase-card h3 {
    font-size: 0.96rem;
    line-height: 1.32;
  }

  .phase-insight-line,
  .phase-promise-line {
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .phase-context-stack {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .product-preview {
    min-height: 178px;
  }

  .auth-tabs {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.daily-confidence-pill,
.what-changed-line,
.left-out-note {
  border: 1px solid rgba(231, 199, 183, 0.16);
  border-radius: var(--radius-sm, 16px);
  background: rgba(255, 249, 239, 0.045);
  color: var(--text-soft, #d8c8bf);
}

.daily-confidence-pill {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  margin: 0.75rem 0;
}

.daily-confidence-pill strong,
.what-changed-line span {
  color: var(--rose, #d37a72);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.daily-confidence-pill span {
  font-size: 0.86rem;
  line-height: 1.45;
}

.what-changed-line {
  padding: 0.75rem 0.85rem;
  margin: 0.75rem 0;
  line-height: 1.45;
}

.what-changed-line span {
  display: block;
  margin-bottom: 0.24rem;
}

.left-out-note {
  padding: 0.72rem 0.85rem;
  font-size: 0.86rem;
  line-height: 1.45;
}

.oracle-pattern-memory {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(231, 199, 183, 0.14);
  border-radius: 18px;
  background: rgba(255, 249, 239, 0.045);
}

.oracle-pattern-memory strong {
  color: var(--rose, #d37a72);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.oracle-pattern-memory span {
  color: var(--text-soft, #d8c8bf);
  line-height: 1.5;
}

.shelf-screen .owned-product-card {
  background:
    radial-gradient(circle at 14% 0%, rgba(211, 122, 114, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(245, 240, 235, 0.07), rgba(245, 240, 235, 0.025));
}

.vanity-empty-map {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.vanity-empty-map span {
  padding: 0.58rem 0.8rem;
  border: 1px solid rgba(231, 199, 183, 0.14);
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.045);
  color: var(--text-soft, #d8c8bf);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.troubleshoot-result-panel .diagnosis-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .troubleshoot-result-panel .diagnosis-grid {
    grid-template-columns: 1fr;
  }
}

/* Restraint pass: clearer hierarchy, less dashboard weight */
.mirror-adjustment-line {
  margin: -2px 0 4px;
  color: var(--cream);
  background: rgba(196, 115, 106, 0.12);
  border-color: rgba(196, 115, 106, 0.26);
}

.product-discovery-details > summary span,
.vanity-details > summary span,
.rhythm-intelligence-details > summary span,
.rhythm-history-details > summary span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  letter-spacing: 0;
  text-transform: none;
}

.cycle-calendar-details,
.product-discovery-details,
.vanity-details,
.profile-accordion,
.product-card,
.routine-step,
.vanity-section,
.account-status-card {
  border-color: rgba(245, 240, 235, 0.08);
}

.cycle-calendar-details > summary,
.product-discovery-details > summary,
.vanity-details > summary {
  padding-block: 14px;
}

.product-row-section h2,
.vanity-section h2,
.shelf-intelligence-card h2,
.profile-shelf-card h2,
.account-status-card h2,
.routine-card h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.08;
}

.product-card h3 {
  line-height: 1.05;
}

.discover-screen .screen-header.compact,
.profile-screen .screen-header.compact,
.cycle-screen .screen-header.compact {
  margin-bottom: 16px;
}

.discover-screen .screen-header.compact h1,
.cycle-screen .screen-header.compact h1 {
  font-size: clamp(2.65rem, 7.5vw, 5.2rem);
}

.cycle-rhythm-hero .moon-oracle-copy p:not(.panel-kicker) {
  max-width: 54ch;
}

@media (max-width: 720px) {
  .today-screen .screen-inner {
    gap: 14px;
  }

  .today-screen .phase-card {
    padding: 12px;
    border-radius: 24px;
  }

  .today-screen .phase-card::before {
    inset: 7px;
    border-radius: 18px;
  }

  .today-screen .phase-card .phase-hero-grid {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 0;
  }

  .today-screen .phase-card .today-moon-reveal {
    min-height: 86px;
  }

  .today-screen .phase-card .today-moon-reveal .phase-moon-art {
    width: 82px;
    max-width: 82px;
  }

  .today-screen .phase-card h2 {
    margin: 0 0 4px;
    font-size: clamp(1.75rem, 8.2vw, 2.35rem);
    line-height: 0.94;
  }

  .today-screen .phase-card .panel-kicker {
    margin-bottom: 4px;
    font-size: 0.62rem;
  }

  .today-screen .phase-context-stack {
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  .mirror-forecast-card {
    padding: 18px;
    border-radius: 24px;
  }

  .mirror-forecast-card h2 {
    font-size: clamp(1.9rem, 9.2vw, 2.55rem);
  }

  .mirror-forecast-card.has-forecast h2 {
    font-size: clamp(1.75rem, 8.5vw, 2.35rem);
  }

  .makeup-feel-strip {
    gap: 8px;
  }

  .makeup-feel-strip button {
    min-height: 44px;
    padding: 10px 12px;
  }

  .discover-screen .screen-header.compact h1,
  .cycle-screen .screen-header.compact h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .discover-screen .screen-header.compact p,
  .cycle-screen .screen-header.compact p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .cycle-rhythm-hero {
    gap: 14px;
    padding: 16px;
    border-radius: 26px;
  }

  .cycle-rhythm-hero .oracle-moon-stage {
    min-height: 106px;
  }

  .cycle-rhythm-hero .phase-moon-art {
    width: min(122px, 36vw);
  }

  .oracle-identity-line {
    gap: 6px;
  }

  .oracle-identity-line span {
    padding: 7px 9px;
    font-size: 0.66rem;
  }

  .oracle-next-shift {
    padding: 12px;
    border-radius: 18px;
  }

  .product-card,
  .vanity-section,
  .account-status-card,
  .profile-accordion,
  .cycle-calendar-details {
    box-shadow: none;
  }
}

@media (max-width: 520px) {
  .today-screen .phase-card .phase-hero-grid {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .today-screen .phase-card .today-moon-reveal {
    min-height: 78px;
  }

  .today-screen .phase-card .today-moon-reveal .phase-moon-art {
    width: 74px;
    max-width: 74px;
  }

  .today-screen .phase-card h2 {
    font-size: clamp(1.52rem, 7.7vw, 2.05rem);
  }

  .today-screen .phase-context-stack span {
    font-size: 0.66rem;
  }

  .product-row-section h2,
  .vanity-section h2,
  .shelf-intelligence-card h2,
  .profile-shelf-card h2,
  .account-status-card h2,
  .routine-card h2 {
    font-size: clamp(1.22rem, 6.2vw, 1.58rem);
  }
}

/* Smoothness reset */
.screen {
  transition:
    opacity var(--motion-screen),
    transform var(--motion-screen);
}

.screen.is-active {
  animation-duration: var(--motion-screen);
}

.screen.is-exiting {
  transition:
    opacity 220ms var(--ease-luxury),
    transform 220ms var(--ease-luxury);
}

.phase-card,
.makeup-diagnosis-card,
.troubleshoot-base-section,
.owned-product-card,
.account-card,
.deeper-card,
.vanity-section,
.product-row-section,
.cycle-rhythm-hero,
.skin-rhythm-card,
.history-list-item {
  box-shadow: var(--shadow-soft);
}

.product-card {
  contain: layout paint;
  animation: none;
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--motion-micro),
    border-color var(--motion-card),
    box-shadow var(--motion-card);
}

.product-card:hover {
  box-shadow: var(--shadow-lift);
}

.product-carousel .product-card:nth-child(-n + 3),
.recommendation-grid .product-card:nth-child(-n + 3) {
  animation: smoothCardIn var(--motion-card) both;
}

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

.routine-step,
.routine-summary,
.makeup-diagnosis-card,
.mirror-forecast-card,
.cycle-rhythm-strip,
.moon-timeline,
.vanity-section,
.profile-accordion {
  contain: layout paint;
}

.routine-step,
.mirror-forecast-card,
.deeper-card,
.profile-accordion,
.bottom-sheet.is-open {
  animation-duration: var(--motion-card) !important;
}

.is-guided-focus {
  animation: guidedFocusSoft 900ms var(--ease-luxury);
}

@keyframes guidedFocusSoft {
  0% { box-shadow: var(--shadow-soft); }
  45% { box-shadow: 0 0 0 5px rgba(196, 115, 106, 0.13), var(--shadow-lift); }
  100% { box-shadow: var(--shadow-soft); }
}

.rhythm-day-dot,
.moon-timeline-segment {
  animation: none;
}

.rhythm-day-dot {
  transition:
    background var(--motion-card),
    box-shadow var(--motion-card),
    opacity var(--motion-card);
}

.today-moon-reveal.is-revealing,
.cycle-rhythm-hero.is-revealing {
  will-change: transform, opacity;
}

.today-moon-reveal:not(.is-revealing),
.cycle-rhythm-hero:not(.is-revealing),
.product-card:not(:hover),
.routine-step:not(:hover) {
  will-change: auto;
}

.product-card .heart-button,
.install-card,
.bottom-sheet {
  backdrop-filter: none;
}

.bottom-nav,
.sheet-backdrop,
.bottom-sheet.is-open {
  backdrop-filter: blur(16px);
}

.heart-button.is-saved {
  animation: heartOnlyPulse 220ms ease-out;
}

.phase-moon-art::before,
.cinematic-oracle-moon::after,
.oracle-moon-stage::before {
  animation-duration: 18s !important;
  opacity: 0.7;
}

.lurei-moon-dust,
.phase-moon-art .lurei-moon-dust {
  animation-duration: 24s !important;
  opacity: 0.72;
}

@media (max-width: 720px) {
  .phase-card,
  .makeup-diagnosis-card,
  .troubleshoot-base-section,
  .owned-product-card,
  .account-card,
  .deeper-card,
  .vanity-section,
  .product-row-section,
  .cycle-rhythm-hero,
  .skin-rhythm-card,
  .history-list-item,
  .product-card {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  }

  .product-card:hover,
  .product-card:focus-within {
    transform: none;
  }

  .product-photo {
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.32));
  }

  .splash::before,
  .splash::after,
  .phase-card::after,
  .makeup-diagnosis-card::before {
    filter: none;
  }
}

/* Controlled cleanup system */
.screen-inner {
  gap: clamp(18px, 3vw, 32px);
}

.phase-card,
.makeup-diagnosis-card,
.troubleshoot-base-section,
.owned-product-card,
.account-card,
.deeper-card,
.vanity-section,
.product-row-section {
  border-color: rgba(245, 240, 235, 0.075);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.2);
}

.phase-card,
.makeup-diagnosis-card {
  border-radius: var(--radius-luxe);
}

.phase-card .phase-hero-grid {
  min-height: clamp(260px, 36vh, 380px);
  align-content: center;
}

.phase-card h2 {
  max-width: 720px;
  letter-spacing: 0;
}

.phase-insight-line {
  max-width: 58ch;
}

.phase-context-stack {
  margin-top: 6px;
}

.phase-context-stack span,
.phase-context-stack button {
  backdrop-filter: blur(14px);
}

.makeup-diagnosis-card {
  padding: clamp(22px, 4vw, 36px);
  border-left-width: 0;
}

.makeup-diagnosis-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(245, 240, 235, 0.045);
  border-radius: calc(var(--radius-luxe) - 10px);
  pointer-events: none;
}

.mirror-memory-line {
  max-width: 820px;
}

.makeup-feel-strip button,
.troubleshoot-grid button {
  min-height: 72px;
  padding: 14px;
  border-color: rgba(245, 240, 235, 0.075);
  background: rgba(245, 240, 235, 0.045);
}

.makeup-feel-strip button:hover,
.troubleshoot-grid button:hover {
  border-color: rgba(196, 115, 106, 0.36);
  background: rgba(196, 115, 106, 0.12);
}

.problem-first-section {
  margin-bottom: var(--space-4);
  padding: clamp(22px, 4vw, 34px);
  border-left-width: 0;
}

.problem-first-section .section-row {
  margin-bottom: var(--space-2);
}

.problem-first-section h2 {
  font-size: clamp(2.15rem, 5vw, 3.6rem);
}

.problem-first-section .troubleshoot-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.product-card {
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 240, 235, 0.055), transparent 42%),
    linear-gradient(180deg, #171725, #0f0f19);
}

.product-preview {
  min-height: 310px;
}

.product-card-body {
  gap: 14px;
  padding: 22px;
}

.product-card h3 {
  font-size: clamp(1.42rem, 2.2vw, 1.86rem);
}

.product-reason {
  padding: 18px;
  border-color: rgba(196, 115, 106, 0.22);
  background: rgba(196, 115, 106, 0.11);
}

.product-reason span {
  font-size: 1rem;
}

.product-actions .buy-button,
.product-actions a[href],
.product-card .button-primary {
  box-shadow: 0 16px 36px rgba(196, 115, 106, 0.18);
}

.routine-summary {
  max-width: 78ch;
  margin-bottom: 16px;
}

.routine-step {
  border-color: rgba(245, 240, 235, 0.075);
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 240, 235, 0.04), transparent 34%),
    rgba(245, 240, 235, 0.035);
}

.routine-step strong {
  font-size: clamp(1.36rem, 2vw, 1.72rem);
}

.vanity-section {
  padding: clamp(20px, 4vw, 28px);
  border-color: rgba(245, 240, 235, 0.065);
  background:
    radial-gradient(circle at 12% 0%, rgba(200, 169, 122, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(245, 240, 235, 0.035), rgba(245, 240, 235, 0.018));
}

.shelf-intelligence-card,
.profile-shelf-card,
.intelligence-profile-card {
  border-radius: var(--radius-soft);
}

.profile-hero {
  margin-bottom: 0;
}

.about-lurei-card .manifesto-card {
  width: 100%;
  margin: 0;
  padding: 8px 0 0;
  text-align: left;
  font-size: clamp(1.32rem, 3vw, 1.8rem);
}

.about-lurei-card .manifesto-card p {
  max-width: 760px;
  margin-left: 0;
}

.profile-accordion {
  border-radius: 26px;
}

.profile-accordion summary {
  min-height: 64px;
}

.bottom-nav {
  border-color: rgba(245, 240, 235, 0.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 169, 122, 0.12), transparent 44%),
    rgba(10, 10, 18, 0.78);
}

.bottom-nav button.is-active {
  text-shadow: 0 0 18px rgba(196, 115, 106, 0.34);
}

.product-card,
.routine-step,
.mirror-forecast-card,
.vanity-section,
.profile-accordion,
.deeper-card {
  transition:
    transform var(--motion-soft),
    border-color var(--motion-soft),
    background var(--motion-soft),
    box-shadow var(--motion-soft);
}

/* Perceived speed hierarchy */
.today-header {
  margin-bottom: clamp(10px, 2vw, 18px);
}

.today-intelligence-chip {
  max-width: 680px;
}

.phase-card {
  padding-block: clamp(18px, 3vw, 30px);
}

.phase-card .today-moon-reveal {
  min-height: clamp(132px, 24vw, 190px);
}

.phase-card .phase-moon-art {
  width: min(180px, 30vw);
}

.phase-card h2 {
  font-size: clamp(2.75rem, 7vw, 5.1rem);
}

.makeup-diagnosis-card {
  margin-top: clamp(12px, 2vw, 18px);
}

.cycle-rhythm-hero {
  padding: clamp(20px, 4vw, 34px);
}

.cycle-rhythm-hero .oracle-moon-stage {
  min-height: clamp(190px, 38vw, 310px);
}

.cycle-rhythm-hero .phase-moon-art {
  width: min(250px, 44vw);
}

.oracle-next-shift-compact {
  margin-top: 12px;
}

.cycle-month-insight {
  padding: 20px;
}

.moon-timeline-details,
.rhythm-intelligence-details,
.product-discovery-details,
.vanity-details {
  margin-top: 18px;
}

.moon-timeline-details > summary,
.rhythm-intelligence-details > summary,
.product-discovery-details > summary,
.vanity-details > summary {
  background:
    radial-gradient(circle at 92% 0%, rgba(196, 115, 106, 0.09), transparent 34%),
    rgba(245, 240, 235, 0.045);
}

.product-discovery-details .product-row-section,
.vanity-details .vanity-section {
  margin-top: 18px;
}

.screen-header.compact h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
}

.screen-header.compact p:not(.eyebrow) {
  max-width: 52ch;
}

.shelf-screen .top-picks .recommendation-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.profile-screen .premium-card,
.profile-screen .weekly-report-card,
.profile-screen .install-profile-card {
  margin-top: 12px;
}

body.light-mode .phase-card,
body.light-mode .makeup-diagnosis-card,
body.light-mode .troubleshoot-base-section {
  color: #f5f0eb;
}

body.light-mode .product-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(43, 26, 47, 0.04), transparent 42%),
    linear-gradient(180deg, #fffaf5, #f7ece6);
  box-shadow: 0 18px 42px rgba(43, 26, 47, 0.12);
}

@media (max-width: 720px) {
  .phase-card .phase-hero-grid {
    min-height: min(300px, calc(100vh - 360px));
  }

  .makeup-diagnosis-card,
  .problem-first-section {
    padding: 18px;
    border-radius: 28px;
  }

  .phase-card h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .phase-card .today-moon-reveal {
    min-height: 96px;
  }

  .cycle-rhythm-hero .oracle-moon-stage {
    min-height: 180px;
  }

  .cycle-rhythm-hero .phase-moon-art {
    width: min(200px, 54vw);
  }

  .screen-header.compact h1 {
    font-size: clamp(2.65rem, 12vw, 4.1rem);
  }

  .discover-screen .screen-header.compact,
  .shelf-screen .screen-header.compact,
  .profile-screen .profile-hero {
    margin-bottom: 8px;
  }

  .today-header {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
  }

  .today-heading-copy h1 {
    font-size: clamp(2.05rem, 7.2vw, 2.7rem);
    line-height: 0.96;
  }

  .brand-mark img {
    width: 48px;
    height: 48px;
  }

  .brand-mark span {
    display: none;
  }

  .avatar-button {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }

  .today-intelligence-chip {
    padding: 8px 12px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .phase-card {
    padding: 14px;
  }

  .phase-card .phase-hero-grid {
    gap: 10px;
    min-height: 0;
  }

  .phase-card .today-moon-reveal {
    min-height: 86px;
  }

  .phase-card .today-moon-reveal .phase-moon-art {
    width: min(94px, 28vw);
  }

  .phase-card h2 {
    font-size: clamp(1.95rem, 9vw, 2.45rem);
  }

  .makeup-diagnosis-card {
    margin-top: 10px;
  }

  .cycle-rhythm-hero {
    padding: 18px;
  }

  .cycle-rhythm-hero .oracle-moon-stage {
    min-height: 150px;
  }

  .cycle-rhythm-hero .phase-moon-art {
    width: min(164px, 45vw);
  }

  .cycle-rhythm-hero h2,
  .moon-oracle-copy h2 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .oracle-next-shift {
    padding: 14px;
  }

  .cycle-screen .screen-header.compact h1 {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .product-preview {
    min-height: 250px;
  }
}

/* Visual restraint: one hero, then quiet supporting tools */
.why-this-edit-drawer,
.daily-history-details,
.vanity-utility-details {
  margin-top: 16px;
}

.why-this-edit-drawer[open] {
  background: rgba(245, 240, 235, 0.035);
}

.why-this-edit-drawer .beauty-read-preview,
.why-this-edit-drawer .today-change-card,
.why-this-edit-drawer .avoid-today-card,
.why-this-edit-drawer .today-why-card,
.why-this-edit-drawer .coach-card,
.why-this-edit-drawer .weekly-report-card {
  margin-top: 14px;
}

.daily-history-details .patterns-card,
.daily-history-details .skin-timeline-card {
  margin-top: 14px;
}

.oracle-header {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.oracle-header h1,
.discover-problem-header h1 {
  letter-spacing: 0;
}

.discover-problem-header {
  max-width: 720px;
}

.discover-tabs {
  margin-top: 14px;
  opacity: 0.82;
}

.discover-tabs button {
  min-height: 44px;
  font-size: 0.82rem;
}

.shelf-screen .top-picks {
  margin-top: 18px;
}

.vanity-utility-details .shelf-toolbar {
  margin: 14px 0 0;
}

.product-card .product-reason {
  padding: 14px;
  border: 1px solid rgba(196, 115, 106, 0.16);
  border-radius: 18px;
  background: rgba(196, 115, 106, 0.08);
}

.product-card .product-reason strong {
  color: var(--rose);
}

.product-card .product-actions {
  align-items: stretch;
}

.product-card .product-actions .button,
.section-actions .button,
.today-tabs button,
.discover-tabs button {
  min-height: 44px;
}

.product-card .buy-button {
  box-shadow: 0 16px 32px rgba(196, 115, 106, 0.18);
}

.bottom-nav {
  width: min(488px, calc(100% - 34px));
  padding: 6px;
  border-color: rgba(245, 240, 235, 0.08);
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 115, 106, 0.08), transparent 46%),
    rgba(18, 18, 30, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.bottom-nav::before {
  background:
    radial-gradient(circle at 50% 8%, rgba(245, 240, 235, 0.13), transparent 42%),
    radial-gradient(circle, rgba(196, 115, 106, 0.16), rgba(196, 115, 106, 0.04) 64%, transparent);
}

.bottom-nav button {
  min-height: 42px;
  font-size: 0.9rem;
  font-weight: 760;
}

.bottom-nav button span {
  font-size: 0.58rem;
  opacity: 0.88;
}

.bottom-nav button.is-active {
  text-shadow: 0 0 14px rgba(196, 115, 106, 0.34);
}

#productLibrary {
  display: block;
}

#productLibrary > * + * {
  margin-top: 18px;
}

@media (min-width: 900px) {
  .today-screen .phase-card {
    padding: 20px;
  }

  .today-screen .phase-card .phase-hero-grid {
    min-height: clamp(190px, 25vh, 250px);
    grid-template-columns: minmax(150px, 0.24fr) minmax(0, 1fr);
    gap: 20px;
  }

  .today-screen .phase-card .today-moon-reveal {
    min-height: 148px;
  }

  .today-screen .phase-card .today-moon-reveal .phase-moon-art {
    width: min(150px, 15vw);
    max-width: 150px;
  }

  .today-screen .phase-card h2 {
    max-width: 640px;
    font-size: clamp(2.55rem, 4.6vw, 3.85rem);
  }

  .today-screen .phase-card h3 {
    display: none;
  }

  .today-screen .phase-insight-line {
    max-width: 50ch;
    margin-top: 8px;
    font-size: 0.96rem;
  }
}

body.light-mode .why-this-edit-drawer[open],
body.light-mode .daily-history-details[open],
body.light-mode .vanity-utility-details[open],
body.light-mode .product-card .product-reason {
  background: rgba(255, 255, 255, 0.62);
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .routine-step,
  .mirror-forecast-card,
  .vanity-section,
  .profile-accordion,
  .deeper-card {
    transition: none !important;
  }
}

/* Clarity reset */
.quiz-back-button {
  position: absolute;
  top: 18px;
  left: 18px;
  min-width: 64px;
  min-height: 44px;
  border: 1px solid rgba(245, 240, 235, 0.16);
  border-radius: 999px;
  background: rgba(245, 240, 235, 0.06);
  color: var(--cream);
  font: 700 12px/1.2 Montserrat, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiz-back-button:active {
  transform: scale(0.97);
}

.onboarding-screen .ritual-card {
  position: relative;
}

.permission-screen .ritual-card {
  max-width: 520px;
  text-align: center;
}

.phase-hero-grid {
  grid-template-columns: minmax(118px, 0.28fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.phase-context-stack {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.phase-context-stack:empty {
  display: none;
}

.phase-context-stack span {
  border: 1px solid rgba(245, 240, 235, 0.12);
  background: rgba(245, 240, 235, 0.06);
  color: #dcc9d0;
  border-radius: 999px;
  padding: 10px 14px;
}

.phase-primary-action {
  min-height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--rose), #e0a0ad);
  color: #1a0f1e;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(196, 115, 106, 0.22);
}

.cycle-calendar-details {
  margin-top: 22px;
}

.cycle-calendar-details > summary {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 240, 235, 0.14);
  border-radius: 22px;
  background: rgba(245, 240, 235, 0.06);
  color: var(--cream);
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  list-style: none;
}

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

.cycle-calendar-details > summary span {
  font-family: var(--display);
  font-size: 1.28rem;
  line-height: 1.1;
}

.cycle-calendar-details > summary small {
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.cycle-calendar-details > summary::marker {
  display: none;
  color: transparent;
}

.rhythm-history-details .skin-history-strip {
  margin-top: 18px;
}

.rhythm-history-details .export-data-button {
  margin-top: 16px;
}

.profile-section-body,
.account-status-card {
  display: grid;
  gap: 18px;
}

.account-status-card,
.intelligence-profile-card,
.profile-shelf-card {
  padding: 0;
  background: transparent;
  border: 0;
}

.profile-accordion {
  overflow: hidden;
}

.profile-accordion[open] {
  animation: profileOpen 260ms ease-out;
}

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

.auth-stay-signed {
  margin: 0;
}

.inline-name-editor {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(245, 240, 235, 0.1);
  border-radius: 16px;
  background: rgba(245, 240, 235, 0.045);
}

.inline-name-editor span {
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.inline-name-editor input {
  width: 100%;
}

.inline-name-editor .button {
  width: fit-content;
}

.heart-button.is-saved {
  animation: heartOnlyPulse 260ms ease-out;
}

/* Premium system pass: shared hierarchy and calmer surface language */
:root {
  --surface-base: #0a0a12;
  --surface-card: #12121e;
  --surface-raised: #181827;
  --surface-quiet: rgba(245, 240, 235, 0.045);
  --text-main: #f5f0eb;
  --text-soft: #d8cbd2;
  --text-faint: #a995a0;
  --border-quiet: rgba(245, 240, 235, 0.08);
  --border-focus: rgba(196, 115, 106, 0.38);
  --glow-rose: 0 18px 44px rgba(196, 115, 106, 0.16);
  --glow-moon: 0 0 50px rgba(200, 200, 212, 0.18);
  --space-page: clamp(18px, 3vw, 32px);
}

body.light-mode {
  --surface-base: #faf5f0;
  --surface-card: #fffaf5;
  --surface-raised: #f7ece8;
  --surface-quiet: rgba(43, 26, 47, 0.045);
  --text-main: #2b1a2f;
  --text-soft: #66505a;
  --text-faint: #806974;
  --border-quiet: rgba(43, 26, 47, 0.12);
  --border-focus: rgba(196, 115, 106, 0.42);
  --glow-rose: 0 18px 44px rgba(196, 115, 106, 0.14);
  --glow-moon: 0 0 46px rgba(43, 26, 47, 0.10);
}

.app-shell,
.screen.active {
  background:
    radial-gradient(circle at 50% -12%, rgba(200, 200, 212, 0.08), transparent 34%),
    var(--surface-base);
}

.phase-card,
.mirror-forecast-card,
.cycle-rhythm-hero {
  border: 1px solid var(--border-quiet);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(245, 240, 235, 0.055);
}

.mirror-forecast-card,
.today-look-card,
.skin-check-panel,
.daily-signals-panel,
.weather-permission-card,
.routine-card,
.beauty-read-card,
.today-why-card,
.cycle-month-insight,
.skin-rhythm-card,
.product-row-section,
.vanity-section,
.account-status-card,
.profile-accordion,
.cycle-calendar-details {
  background:
    linear-gradient(180deg, rgba(245, 240, 235, 0.035), rgba(245, 240, 235, 0.012)),
    var(--surface-card);
  border-color: var(--border-quiet);
}

.mirror-memory-line,
.memory-note,
.routine-memory,
.routine-gap,
.signals-ack {
  border: 1px solid rgba(200, 169, 122, 0.14);
  background: rgba(200, 169, 122, 0.075);
  color: var(--text-main);
}

.product-card {
  border: 1px solid var(--border-quiet);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 240, 235, 0.05), transparent 42%),
    linear-gradient(180deg, var(--surface-raised), var(--surface-card));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.product-card .product-preview {
  min-height: clamp(190px, 26vw, 260px);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 42%, rgba(250, 245, 240, 0.18), transparent 44%),
    linear-gradient(145deg, rgba(200, 169, 122, 0.12), rgba(196, 115, 106, 0.08) 44%, rgba(18, 18, 30, 0.2));
}

.product-card .heart-button {
  top: 18px;
  right: 18px;
  background: rgba(10, 10, 18, 0.72);
  border-color: rgba(245, 240, 235, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

body.light-mode .product-card .heart-button {
  background: rgba(255, 250, 245, 0.82);
}

.product-reason {
  background:
    linear-gradient(135deg, rgba(196, 115, 106, 0.13), rgba(200, 169, 122, 0.08)),
    rgba(245, 240, 235, 0.025);
  border: 1px solid rgba(196, 115, 106, 0.2);
  box-shadow: inset 0 1px 0 rgba(245, 240, 235, 0.05);
}

.product-reason span {
  color: var(--text-main);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
}

.product-actions .buy-button {
  background: linear-gradient(135deg, var(--rose), #d58a7f);
  color: #0a0a12;
  box-shadow: var(--glow-rose);
}

.routine-step {
  background:
    linear-gradient(180deg, rgba(245, 240, 235, 0.035), rgba(245, 240, 235, 0.01)),
    var(--surface-card);
  border-color: var(--border-quiet);
}

.routine-step > span {
  box-shadow: inset 0 1px 0 rgba(245, 240, 235, 0.12), 0 10px 26px rgba(0, 0, 0, 0.18);
}

.bottom-nav {
  border: 1px solid rgba(245, 240, 235, 0.1);
  background: rgba(15, 15, 25, 0.82);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

.bottom-nav button.is-active::after {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(196, 115, 106, 0.28), transparent 70%);
  filter: blur(3px);
}

.today-tabs button {
  position: relative;
  z-index: 1;
}

.profile-accordion summary,
.cycle-calendar-details summary,
.product-discovery-details > summary,
.vanity-details > summary {
  transition: background var(--motion-card), color var(--motion-card), border-color var(--motion-card);
}

.profile-accordion[open],
.cycle-calendar-details[open],
.product-discovery-details[open],
.vanity-details[open] {
  border-color: rgba(245, 240, 235, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@keyframes heartOnlyPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.product-card {
  animation: cardRise 360ms ease-out both;
}

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

.bottom-sheet.is-open {
  animation: sheetRise 360ms var(--ease-luxury);
}

@keyframes sheetRise {
  from { transform: translateY(24px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

input,
select,
textarea,
button {
  font-size: max(16px, 1rem);
}

body.light-mode {
  --paper: #fffaf5;
  --soft: #f2e7df;
  --ink: #2b1a2f;
  --muted: #6f5a62;
}

body.light-mode .screen,
body.light-mode .screen-inner {
  color: #2b1a2f;
}

body.light-mode .phase-context-stack span,
body.light-mode .cycle-calendar-details > summary,
body.light-mode .quiz-back-button,
body.light-mode .privacy-mini-grid span,
body.light-mode .privacy-trust-grid article {
  color: #2b1a2f;
  background: rgba(43, 26, 47, 0.06);
  border-color: rgba(43, 26, 47, 0.18);
}

body.light-mode .phase-card .phase-context-stack span,
body.light-mode .phase-card .phase-context-stack button {
  color: #f5f0eb;
  background: rgba(245, 240, 235, 0.1);
  border-color: rgba(245, 240, 235, 0.18);
}

body.light-mode .cycle-rhythm-hero,
body.light-mode .cycle-month-insight,
body.light-mode .skin-rhythm-card,
body.light-mode .history-list-item,
body.light-mode .moon-timeline-segment,
body.light-mode .makeup-diagnosis-card,
body.light-mode .troubleshoot-base-section {
  color: #f5f0eb;
  border-color: rgba(245, 240, 235, 0.1);
  background:
    radial-gradient(circle at 82% 12%, rgba(196, 115, 106, 0.14), transparent 24%),
    linear-gradient(145deg, #171520, #0b0b13 74%);
}

body.light-mode .moon-timeline-segment span,
body.light-mode .history-list-item small,
body.light-mode .history-list-item em,
body.light-mode .skin-rhythm-card p,
body.light-mode .troubleshoot-grid span,
body.light-mode .diagnosis-owned-pick span,
body.light-mode .diagnosis-owned-pick small,
body.light-mode .makeup-diagnosis-card .section-copy,
body.light-mode .troubleshoot-base-section .section-copy {
  color: #ded4d8;
}

body.light-mode .troubleshoot-grid strong,
body.light-mode .diagnosis-owned-pick strong,
body.light-mode .diagnosis-grid p {
  color: #f5f0eb;
}

@media (max-width: 720px) {
  .makeup-feel-strip,
  .troubleshoot-grid,
  .diagnosis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnosis-grid article {
    min-height: 116px;
  }

  .privacy-trust-grid {
    grid-template-columns: 1fr;
  }

  .phase-hero-grid {
    grid-template-columns: 1fr;
  }

  .phase-hero-grid .phase-moon-art {
    max-width: 160px;
    margin: 0 auto;
  }

  .quiz-back-button {
    top: 12px;
    left: 12px;
  }
}

.notification-connect-card::before {
  content: "\263E";
}

body.light-mode .mirror-memory-line,
body.light-mode .wear-check-drawer,
body.light-mode .mirror-wear-forecast article,
body.light-mode .vanity-section,
body.light-mode .profile-hero {
  border-color: rgba(245, 240, 235, 0.1);
  background: rgba(245, 240, 235, 0.045);
}

@media (max-width: 720px) {
  .mirror-action-grid,
  .mirror-wear-forecast {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnosis-hub-card {
    margin-top: 12px;
    border-radius: 24px;
  }

  .mirror-forecast-card {
    gap: 13px;
  }

  .mirror-forecast-card h2 {
    font-size: clamp(1.95rem, 9.8vw, 2.85rem);
  }

  .mirror-copy .section-copy {
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .mirror-memory-line {
    padding: 12px 14px;
    border-radius: 18px;
  }

  .mirror-memory-line p {
    font-size: 0.92rem;
    line-height: 1.42;
  }

  .mirror-forecast-card.has-forecast h2 {
    font-size: clamp(2.05rem, 10.2vw, 2.85rem);
  }

  .mirror-forecast-card.has-forecast {
    padding-top: 0;
  }

  .mirror-forecast-card > .section-row {
    display: block;
  }

  .mirror-start-action {
    width: 100%;
    min-height: 46px;
  }

  .mirror-inline-action {
    position: static;
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    padding: 0 14px;
    font-size: 0.72rem;
  }
}

@media (max-width: 520px) {
  .screen {
    padding: 20px 16px 126px;
  }

  .today-header {
    margin-bottom: 12px;
  }

  .today-header h1 {
    font-size: clamp(1.72rem, 9vw, 2.45rem);
  }

  .today-intelligence-chip {
    font-size: 0.73rem;
    line-height: 1.25;
  }

  .phase-card {
    padding: 12px;
    border-radius: 26px;
  }

  .phase-card::before {
    inset: 8px;
    border-radius: 20px;
  }

  .phase-card .today-moon-reveal {
    min-height: 82px;
    margin-bottom: 0;
  }

  .phase-card .today-moon-reveal .phase-moon-art {
    width: min(86px, 26vw);
  }

  .today-moon-reveal::before {
    width: min(178px, 56vw);
  }

  .today-moon-reveal::after {
    width: min(160px, 50vw);
  }

  .phase-card h2 {
    margin-bottom: 0;
    font-size: clamp(1.72rem, 8.1vw, 2.25rem);
    line-height: 0.96;
  }

  .phase-card h3,
  .phase-insight-line {
    display: none;
  }

  .phase-context-stack {
    display: flex;
    gap: 6px;
    margin-top: 8px;
  }

  .phase-context-stack button {
    display: none;
  }

  .phase-context-stack span {
    min-height: 0;
    padding: 6px 9px;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .phase-card .signals-ack,
  .phase-card .phase-transition-card {
    display: none;
  }

  .phase-action-brief {
    display: none;
  }

  .mirror-action-grid,
  .mirror-wear-forecast {
    grid-template-columns: 1fr;
  }

  .makeup-diagnosis-card {
    padding: 16px;
  }

  .mirror-forecast-card h2 {
    font-size: clamp(1.82rem, 9vw, 2.45rem);
  }

  .makeup-feel-strip,
  .troubleshoot-grid {
    grid-template-columns: 1fr;
  }

  .makeup-feel-strip button,
  .troubleshoot-grid button {
    min-height: 54px;
  }

  .product-preview {
    min-height: 216px;
  }

  .vanity-section,
  .profile-hero {
    padding: 16px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mirror-forecast-card,
  .product-card,
  .cycle-rhythm-hero,
  .bottom-sheet.is-open,
  .profile-accordion[open],
  .screen.is-active,
  .today-panel {
    animation: none !important;
  }

  .cinematic-oracle-moon::after,
  .oracle-moon-stage::before,
  .phase-moon-art::before,
  .splash,
  .splash::before,
  .splash::after {
    animation: none !important;
  }
}

/* Full visual run polish: mobile-first fit and dock-safe rhythm */
@media (max-width: 520px) {
  .bottom-nav {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(356px, calc(100% - 28px));
    padding: 5px;
  }

  .bottom-nav button {
    min-height: 44px;
    font-size: 0.82rem;
  }

  .bottom-nav button span {
    font-size: 0.55rem;
  }

  .today-screen .screen-inner,
  .discover-screen .screen-inner,
  .shelf-screen .screen-inner,
  .cycle-screen .screen-inner,
  .profile-screen .screen-inner {
    gap: 14px;
  }

  .discover-screen .screen-header.compact h1,
  .cycle-screen .screen-header.compact h1,
  .shelf-screen .screen-header.compact h1 {
    font-size: clamp(2.42rem, 12vw, 3.12rem);
    line-height: 0.98;
  }

  .discover-tabs {
    width: 100%;
    margin: 12px 0 10px;
  }

  .problem-first-section {
    padding: 18px;
  }

  .problem-first-section h2 {
    font-size: clamp(2rem, 10vw, 2.55rem);
    line-height: 1;
  }

  .problem-first-section .troubleshoot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding: 0;
  }

  .problem-first-section .troubleshoot-grid button {
    min-height: 132px;
  }

  .cycle-rhythm-hero {
    padding: 15px;
    gap: 12px;
  }

  .cycle-rhythm-hero .oracle-moon-stage {
    min-height: 118px;
  }

  .cycle-rhythm-hero .phase-moon-art {
    width: min(132px, 40vw);
  }

  .moon-oracle-copy h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .oracle-next-shift,
  .oracle-pattern-memory {
    padding: 12px;
    border-radius: 18px;
  }

  .owned-product-card {
    padding: 18px;
  }

  .owned-product-entry {
    gap: 10px;
  }

  .owned-product-entry .button {
    width: 100%;
  }

  .profile-hero {
    gap: 14px;
  }

  .profile-avatar-large {
    width: 54px;
    height: 76px;
    min-width: 54px;
  }
}

body.light-mode .bottom-nav {
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 115, 106, 0.12), transparent 46%),
    rgba(255, 250, 245, 0.82);
}

body.light-mode .mirror-forecast-card h2,
body.light-mode .mirror-forecast-card .section-copy,
body.light-mode .mirror-wear-forecast p,
body.light-mode .mirror-memory-line p,
body.light-mode .diagnosis-grid p,
body.light-mode .wear-check-drawer summary small,
body.light-mode .mirror-tune-drawer summary small {
  color: #2b1a2f;
}

body.light-mode .mirror-wear-forecast article,
body.light-mode .mirror-memory-line,
body.light-mode .mirror-tune-drawer {
  border-color: rgba(43, 26, 47, 0.1);
  background: rgba(255, 255, 255, 0.58);
}

body.light-mode .mirror-forecast-card .panel-kicker,
body.light-mode .mirror-wear-forecast span,
body.light-mode .mirror-memory-line span {
  color: #b25f60;
}

/* Structural concept pass: make the main screens stop reading like the old stacked layout */
.today-screen .screen-inner {
  width: min(1120px, 100%);
}

.today-header {
  position: relative;
  z-index: 4;
  width: min(980px, 100%);
  margin-bottom: -76px;
  padding: 8px clamp(10px, 2vw, 20px) 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.today-heading-copy {
  align-self: center;
}

.today-header h1 {
  max-width: 10ch;
  font-size: clamp(2.35rem, 7vw, 5.6rem);
  line-height: 0.88;
  overflow-wrap: normal;
  word-break: normal;
}

.today-intelligence-chip {
  display: none;
}

.phase-card {
  width: min(1040px, 100%);
  min-height: clamp(560px, 82vh, 760px);
  margin-top: 0;
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  align-items: end;
}

.phase-card::before {
  inset: clamp(16px, 2.2vw, 26px);
}

.phase-card::after {
  inset: auto -22% -30% 16%;
  height: 78%;
}

.phase-card .phase-hero-grid {
  width: 100%;
  min-height: 100%;
  grid-template-columns: minmax(260px, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(18px, 5vw, 72px);
  align-items: end;
  padding: clamp(86px, 10vw, 132px) clamp(10px, 2vw, 26px) clamp(18px, 3vw, 34px);
}

.phase-card .phase-hero-grid::before {
  inset: 2% auto 0 -8%;
  width: min(760px, 76vw);
  opacity: 0.95;
  filter: blur(16px);
}

.phase-card .today-moon-reveal {
  min-height: clamp(280px, 44vw, 520px);
  align-self: center;
}

.phase-card .today-moon-reveal .phase-moon-art {
  width: clamp(220px, 34vw, 440px);
}

.today-moon-reveal::before {
  width: clamp(300px, 48vw, 640px);
}

.today-moon-reveal::after {
  width: clamp(260px, 42vw, 560px);
}

.phase-card h2 {
  max-width: 9.4ch;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.84;
}

.phase-card h3,
.phase-insight-line,
.phase-action-brief {
  max-width: 44ch;
}

.phase-context-stack {
  margin-top: 18px;
}

.makeup-diagnosis-card {
  width: min(920px, calc(100% - 32px));
  margin: -138px auto 26px;
  position: relative;
  z-index: 5;
}

.mirror-forecast-card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 40px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 247, 238, 0.12), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(209, 122, 114, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(27, 25, 40, 0.94), rgba(9, 9, 17, 0.96));
}

.mirror-forecast-card > .mirror-copy,
.mirror-forecast-card > .section-row {
  min-width: 0;
}

.mirror-forecast-card h2 {
  max-width: 9.8ch;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 0.86;
}

.mirror-start-action,
.mirror-inline-action {
  width: 100%;
  justify-self: stretch;
}

.mirror-memory-line {
  margin-top: 0;
  align-self: stretch;
  display: grid;
  align-content: center;
}

.mirror-tune-drawer,
.wear-check-drawer,
.mirror-wear-forecast,
.diagnosis-grid,
.mirror-adjustment-line,
.diagnosis-owned-pick {
  grid-column: 1 / -1;
}

.today-tabs {
  width: min(420px, 100%);
  margin-top: 26px;
}

.today-panel.is-active {
  animation: softPanelRise 420ms var(--ease-luxury) both;
}

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

.today-look-card,
.routine-card,
.recommendation-stack,
.skin-check-panel,
.daily-signals-panel,
.cycle-calendar-details,
.owned-product-card,
.profile-accordion,
.ingredient-checker {
  margin-block: 22px;
}

.cycle-screen .screen-inner {
  width: min(1120px, 100%);
}

.cycle-screen .oracle-header {
  position: relative;
  z-index: 4;
  margin-bottom: -96px;
  pointer-events: none;
}

.cycle-screen .oracle-header .eyebrow,
.cycle-screen .oracle-header p {
  display: none;
}

.cycle-screen .oracle-header h1 {
  max-width: 10ch;
  margin-inline: auto;
  color: rgba(255, 247, 238, 0.96);
  font-size: clamp(3.8rem, 10vw, 8.4rem);
  line-height: 0.82;
  text-shadow: 0 24px 80px rgba(255, 247, 238, 0.12);
}

.cycle-rhythm-hero {
  min-height: clamp(640px, 88vh, 860px);
  padding-top: clamp(108px, 16vh, 168px);
  border-radius: 54px;
}

.cycle-rhythm-hero .oracle-moon-stage {
  min-height: clamp(280px, 44vw, 460px);
}

.cycle-rhythm-hero .phase-moon-art {
  width: clamp(260px, 39vw, 500px);
}

.moon-oracle-copy h2 {
  font-size: clamp(3.4rem, 8vw, 7.2rem);
}

.oracle-identity-line span {
  backdrop-filter: blur(12px);
}

.oracle-next-shift,
.oracle-pattern-memory {
  border-color: rgba(255, 247, 238, 0.09);
  background: rgba(255, 247, 238, 0.045);
}

.discover-screen .screen-inner,
.shelf-screen .screen-inner {
  width: min(1180px, 100%);
}

.discover-problem-header,
.shelf-screen .screen-header.compact {
  min-height: 34vh;
  display: grid;
  align-content: end;
  margin-bottom: 22px;
}

.discover-problem-header h1,
.shelf-screen .screen-header h1 {
  max-width: 9ch;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.84;
}

.problem-first-section {
  padding: clamp(28px, 5vw, 56px);
}

.problem-first-section h2 {
  max-width: 9.5ch;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.86;
}

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

.troubleshoot-grid button {
  min-height: 190px;
  align-content: end;
}

.owned-product-card {
  min-height: 320px;
}

.owned-product-card h2 {
  max-width: 10ch;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.9;
}

.profile-screen .screen-inner {
  width: min(1040px, 100%);
}

.profile-hero {
  min-height: 360px;
  align-items: end;
  padding-top: clamp(72px, 12vh, 120px);
}

.profile-hero h1 {
  max-width: 9ch;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.84;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  min-height: 360px;
}

.product-card .product-preview {
  min-height: 100%;
  margin: 10px 0 10px 10px;
}

.product-card-body {
  align-content: center;
}

.product-carousel .product-card,
.recommendation-grid .product-card {
  min-height: 390px;
}

#productLibrary {
  gap: 22px;
}

@media (max-width: 860px) {
  .phase-card {
    min-height: 78vh;
  }

  .phase-card .phase-hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: end;
    text-align: center;
    padding-top: 106px;
  }

  .phase-card .today-moon-reveal {
    min-height: clamp(180px, 42vw, 300px);
  }

  .phase-card .today-moon-reveal .phase-moon-art {
    width: clamp(170px, 48vw, 300px);
  }

  .makeup-diagnosis-card {
    margin-top: -118px;
  }

  .mirror-forecast-card {
    grid-template-columns: 1fr;
  }

  .cycle-rhythm-hero {
    min-height: 78vh;
  }

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

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card .product-preview {
    min-height: 240px;
    margin: 10px 10px 0;
  }
}

@media (max-width: 520px) {
  .today-header {
    margin-bottom: -82px;
  }

  .today-header h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 9vw, 2.8rem);
    line-height: 0.92;
  }

  .phase-card {
    min-height: 74vh;
    border-radius: 34px;
  }

  .phase-card h2 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .makeup-diagnosis-card {
    width: 100%;
    margin-top: -94px;
  }

  .mirror-forecast-card h2 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .cycle-screen .oracle-header {
    margin-bottom: -82px;
  }

  .cycle-screen .oracle-header h1 {
    font-size: clamp(3.2rem, 17vw, 5.2rem);
  }

  .cycle-rhythm-hero {
    min-height: 78vh;
    padding-top: 96px;
  }

  .discover-problem-header,
  .shelf-screen .screen-header.compact {
    min-height: 25vh;
  }

  .discover-problem-header h1,
  .shelf-screen .screen-header h1 {
    font-size: clamp(3.2rem, 15vw, 4.8rem);
  }

  .problem-first-section h2 {
    font-size: clamp(2.6rem, 13vw, 4.1rem);
  }

  .troubleshoot-grid button {
    min-height: 156px;
  }

  .profile-hero {
    min-height: 290px;
  }
}

/* Moonlit Vanity concept pass: bolder premium art direction without changing app behavior */
:root {
  --lurei-black: #05050a;
  --lurei-ink: #090912;
  --lurei-night: #10101b;
  --lurei-plum-glass: rgba(32, 18, 39, 0.72);
  --lurei-wine: #2a1327;
  --lurei-rose: #d17a72;
  --lurei-cream: #fff7ee;
  --lurei-silver: #d9d7df;
  --lurei-veil: rgba(255, 247, 238, 0.075);
  --lurei-hairline: rgba(255, 247, 238, 0.105);
  --lurei-shadow: 0 34px 96px rgba(0, 0, 0, 0.42);
  --lurei-soft-shadow: 0 20px 56px rgba(0, 0, 0, 0.26);
  --lurei-mirror: linear-gradient(145deg, rgba(255, 247, 238, 0.11), rgba(255, 247, 238, 0.025) 38%, rgba(10, 10, 18, 0.28));
  --lurei-motion: 420ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

body.dark-mode {
  background:
    radial-gradient(circle at 50% -14%, rgba(217, 215, 223, 0.14), transparent 30%),
    radial-gradient(circle at 12% 18%, rgba(209, 122, 114, 0.08), transparent 28%),
    linear-gradient(180deg, var(--lurei-black), #080811 48%, var(--lurei-black));
}

.screen {
  background:
    radial-gradient(circle at 50% -18%, rgba(217, 215, 223, 0.1), transparent 30%),
    radial-gradient(circle at 8% 30%, rgba(209, 122, 114, 0.07), transparent 30%),
    linear-gradient(180deg, #07070d, #0a0a12 54%, #05050a);
}

.screen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 9%, rgba(255, 247, 238, 0.06) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 18%, rgba(255, 247, 238, 0.035) 0 1px, transparent 2px),
    radial-gradient(circle at 22% 34%, rgba(255, 247, 238, 0.03) 0 1px, transparent 2px),
    linear-gradient(110deg, transparent 0 28%, rgba(255, 247, 238, 0.035) 42%, transparent 57%);
  opacity: 0.8;
}

.screen-inner {
  width: min(920px, 100%);
}

.gate-screen,
.welcome-screen,
.onboarding-screen {
  padding-inline: clamp(18px, 5vw, 40px);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 247, 238, 0.2), transparent 10%),
    radial-gradient(circle at 50% 32%, rgba(217, 215, 223, 0.12), transparent 32%),
    radial-gradient(circle at 50% 76%, rgba(209, 122, 114, 0.14), transparent 42%),
    linear-gradient(180deg, #030307, #0a0a12 58%, #120915);
}

.gate-screen .ritual-card,
.welcome-screen .ritual-card {
  width: min(620px, 100%);
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid rgba(255, 247, 238, 0.09);
  border-radius: 44px;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 247, 238, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(20, 20, 32, 0.56), rgba(8, 8, 17, 0.36));
  box-shadow: 0 44px 140px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(24px);
}

.gate-screen .ritual-card::after,
.welcome-screen .ritual-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -92px;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 38%, rgba(255, 247, 238, 0.94), rgba(217, 215, 223, 0.36) 34%, rgba(209, 122, 114, 0.14) 58%, transparent 72%);
  filter: blur(0.3px);
  opacity: 0.78;
  transform: translateX(-50%);
  animation: moonStageBreath 12s ease-in-out infinite;
  pointer-events: none;
}

.welcome-logo,
.screen-logo {
  position: relative;
  z-index: 1;
  background: rgba(5, 5, 10, 0.72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.36), 0 0 46px rgba(255, 247, 238, 0.13);
}

.welcome-screen h1,
.gate-screen h1 {
  color: var(--lurei-cream);
  text-shadow: 0 26px 76px rgba(255, 247, 238, 0.13);
}

.today-screen {
  background:
    radial-gradient(circle at 50% -12%, rgba(217, 215, 223, 0.14), transparent 32%),
    radial-gradient(circle at 20% 24%, rgba(209, 122, 114, 0.08), transparent 32%),
    linear-gradient(180deg, #06060d, #0b0b14 48%, #05050a);
}

.today-screen .screen-inner {
  width: min(884px, 100%);
}

.today-header {
  margin-bottom: 14px;
  padding: 4px 4px 0;
}

.brand-mark {
  color: var(--lurei-cream);
}

.brand-mark img {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 247, 238, 0.1);
  border-radius: 18px;
  background: rgba(5, 5, 10, 0.58);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.36);
}

.today-header h1 {
  color: var(--lurei-cream);
  letter-spacing: 0;
  text-shadow: 0 18px 56px rgba(255, 247, 238, 0.11);
}

.today-intelligence-chip {
  border-color: rgba(255, 247, 238, 0.09);
  background: rgba(255, 247, 238, 0.045);
  color: rgba(255, 247, 238, 0.74) !important;
  box-shadow: none;
}

.avatar-button {
  border-color: rgba(255, 247, 238, 0.14);
  background: rgba(255, 247, 238, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.phase-card {
  width: min(884px, 100%);
  min-height: clamp(258px, 38vw, 386px);
  margin: 8px auto 16px;
  border: 1px solid rgba(255, 247, 238, 0.105);
  border-radius: 42px;
  background:
    radial-gradient(circle at 21% 40%, rgba(255, 247, 238, 0.22), transparent 22%),
    radial-gradient(circle at 78% 8%, rgba(255, 247, 238, 0.11), transparent 26%),
    radial-gradient(circle at 18% 86%, rgba(209, 122, 114, 0.18), transparent 38%),
    linear-gradient(142deg, rgba(37, 24, 39, 0.94), rgba(16, 16, 27, 0.98) 52%, rgba(5, 5, 10, 0.98));
  box-shadow: var(--lurei-shadow);
}

.phase-card::before {
  inset: 12px;
  border-color: rgba(255, 247, 238, 0.08);
  border-radius: 32px;
  background:
    linear-gradient(118deg, rgba(255, 247, 238, 0.105), transparent 30%),
    radial-gradient(circle at 18% 48%, rgba(255, 247, 238, 0.08), transparent 34%);
}

.phase-card .phase-hero-grid {
  min-height: clamp(232px, 34vw, 340px);
  grid-template-columns: minmax(150px, 0.38fr) minmax(0, 1fr);
  padding: clamp(18px, 3.6vw, 36px);
}

.phase-card .today-moon-reveal {
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.38));
}

.phase-card h2 {
  max-width: 10.8ch;
  color: var(--lurei-cream);
  font-size: clamp(2.35rem, 6.4vw, 5.45rem);
  line-height: 0.9;
  text-shadow: 0 26px 84px rgba(255, 247, 238, 0.12);
}

.phase-context-stack span {
  border-color: rgba(255, 247, 238, 0.09);
  background: rgba(255, 247, 238, 0.055);
  color: rgba(255, 247, 238, 0.78);
}

.makeup-diagnosis-card {
  width: min(780px, calc(100% - 12px));
  margin: -2px auto 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mirror-forecast-card {
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 247, 238, 0.105);
  border-radius: 34px;
  background:
    radial-gradient(circle at 78% -10%, rgba(255, 247, 238, 0.1), transparent 34%),
    radial-gradient(circle at 8% 92%, rgba(209, 122, 114, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(25, 25, 39, 0.82), rgba(13, 13, 22, 0.92));
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.34);
}

.mirror-forecast-card h2 {
  max-width: 11ch;
  color: var(--lurei-cream);
  font-size: clamp(2.25rem, 5.8vw, 4.7rem);
  line-height: 0.94;
}

.mirror-forecast-card .section-copy {
  max-width: 48ch;
  color: rgba(255, 247, 238, 0.76);
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
}

.mirror-memory-line {
  margin-top: 16px;
  padding: 16px 18px;
  border-color: rgba(255, 247, 238, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 247, 238, 0.08), rgba(209, 122, 114, 0.09)),
    rgba(255, 247, 238, 0.025);
}

.mirror-memory-line span {
  color: var(--lurei-rose);
}

.phase-primary-action,
.mirror-start-action,
.mirror-inline-action {
  min-height: 54px;
  padding-inline: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d17a72, #f1a1ba);
  color: #120912;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 46px rgba(209, 122, 114, 0.26);
}

.today-tabs {
  width: min(520px, 100%);
  margin: 18px auto 4px;
  opacity: 0.9;
}

.today-tabs button {
  min-height: 48px;
}

.routine-card,
.today-look-card,
.skin-check-panel,
.daily-signals-panel,
.recommendation-stack,
.weather-permission-card,
.guest-save-card,
.cycle-calendar-details,
.account-card,
.owned-product-card,
.ingredient-checker,
.edit-card,
.top-picks {
  border-color: rgba(255, 247, 238, 0.085);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 247, 238, 0.045), rgba(255, 247, 238, 0.014)),
    rgba(17, 17, 28, 0.82);
  box-shadow: var(--lurei-soft-shadow);
}

.routine-step {
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 247, 238, 0.052), rgba(255, 247, 238, 0.014)),
    rgba(15, 15, 25, 0.86);
}

.product-card {
  overflow: hidden;
  border-color: rgba(255, 247, 238, 0.105);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 247, 238, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(25, 25, 39, 0.96), rgba(10, 10, 18, 0.98));
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  contain: layout paint;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 247, 238, 0.18);
  box-shadow: 0 30px 88px rgba(0, 0, 0, 0.42);
}

.product-card .product-preview {
  min-height: clamp(230px, 30vw, 322px);
  margin: 10px 10px 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 247, 238, 0.24), transparent 37%),
    radial-gradient(circle at 80% 10%, rgba(255, 247, 238, 0.13), transparent 24%),
    radial-gradient(circle at 10% 92%, color-mix(in srgb, var(--category-color) 34%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--category-color) 32%, #1a1620), #080811 82%);
}

.product-preview::before {
  border-color: rgba(255, 247, 238, 0.075);
}

.product-photo,
.product-preview.has-real-photo .product-photo {
  width: min(82%, 218px);
  height: min(82%, 218px);
  border: 0;
  border-radius: 30px;
  background:
    radial-gradient(circle at 72% 16%, rgba(255, 255, 255, 0.96), transparent 24%),
    linear-gradient(145deg, rgba(255, 250, 245, 0.98), rgba(219, 217, 226, 0.9));
  filter: drop-shadow(0 30px 38px rgba(0, 0, 0, 0.46));
}

.product-card-body {
  gap: 15px;
  padding: 22px;
}

.product-title-line {
  align-items: flex-start;
}

.product-brand {
  color: var(--lurei-rose);
  letter-spacing: 0.08em;
}

.product-card h3 {
  color: var(--lurei-cream);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.product-title-line strong {
  color: var(--lurei-cream);
}

.product-trust-line {
  color: rgba(255, 247, 238, 0.64);
}

.product-reason {
  padding: 18px;
  border-color: rgba(209, 122, 114, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(209, 122, 114, 0.16), rgba(255, 247, 238, 0.055)),
    rgba(255, 247, 238, 0.02);
}

.product-reason span {
  color: rgba(255, 247, 238, 0.88);
}

.product-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto)) minmax(128px, 1fr);
}

.product-actions .button {
  min-height: 46px;
}

.product-actions .buy-button {
  justify-self: stretch;
}

.heart-button {
  border: 1px solid rgba(255, 247, 238, 0.14);
}

.product-card .heart-button {
  width: 50px;
  height: 50px;
  background: rgba(5, 5, 10, 0.64);
  color: var(--lurei-cream);
}

.cycle-screen {
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 215, 223, 0.13), transparent 32%),
    radial-gradient(circle at 50% 58%, rgba(209, 122, 114, 0.08), transparent 42%),
    linear-gradient(180deg, #06060d, #0b0b15 58%, #05050a);
}

.oracle-header {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.oracle-header h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.cycle-rhythm-hero {
  width: min(920px, 100%);
  min-height: clamp(500px, 70vh, 720px);
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 18px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 46px);
  border-radius: 44px;
  text-align: center;
}

.cycle-rhythm-hero::before {
  border-radius: 34px;
}

.cycle-rhythm-hero .oracle-moon-stage {
  min-height: clamp(250px, 40vw, 380px);
}

.cycle-rhythm-hero .phase-moon-art {
  width: clamp(210px, 33vw, 390px);
}

.moon-oracle-copy {
  max-width: 680px;
  justify-items: center;
  padding: 0;
  border-left: 0;
}

.oracle-identity-line {
  justify-content: center;
}

.moon-oracle-copy h2 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 6.4rem);
  text-align: center;
}

.oracle-next-shift,
.oracle-pattern-memory {
  width: min(620px, 100%);
  text-align: left;
}

.cycle-month-insight {
  width: min(860px, 100%);
  margin-inline: auto;
  border-left: 0;
}

.moon-timeline-details > summary,
.cycle-calendar-details > summary {
  border-color: rgba(255, 247, 238, 0.085);
  background: rgba(255, 247, 238, 0.045);
}

.discover-screen .screen-inner,
.shelf-screen .screen-inner,
.profile-screen .screen-inner {
  width: min(1040px, 100%);
}

.discover-problem-header,
.shelf-screen .screen-header,
.profile-screen .screen-header {
  max-width: 780px;
}

.discover-problem-header h1,
.shelf-screen .screen-header h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.discover-tabs {
  margin-inline: 0;
  width: min(560px, 100%);
}

.problem-first-section {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 38px;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 247, 238, 0.09), transparent 32%),
    linear-gradient(180deg, rgba(25, 25, 39, 0.86), rgba(10, 10, 18, 0.92));
}

.troubleshoot-grid button {
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 247, 238, 0.08), transparent 28%),
    linear-gradient(145deg, rgba(255, 247, 238, 0.05), rgba(255, 247, 238, 0.018));
}

.troubleshoot-grid strong {
  font-family: "Cormorant Garamond";
  font-size: 1.5rem;
}

.shelf-screen .screen-header {
  margin-bottom: 10px;
}

.owned-product-card {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 40px;
}

.owned-product-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 122, 114, 0.18), transparent 64%);
  pointer-events: none;
}

.owned-product-entry {
  position: relative;
  z-index: 1;
  padding: 14px;
  border: 1px solid rgba(255, 247, 238, 0.08);
  border-radius: 24px;
  background: rgba(255, 247, 238, 0.04);
}

.profile-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 247, 238, 0.1);
  border-radius: 42px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 247, 238, 0.1), transparent 30%),
    radial-gradient(circle at 10% 100%, rgba(209, 122, 114, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(25, 25, 39, 0.92), rgba(9, 9, 17, 0.96));
  box-shadow: var(--lurei-shadow);
}

.profile-hero::after {
  content: "Lurei";
  position: absolute;
  right: 28px;
  bottom: -10px;
  color: rgba(255, 247, 238, 0.045);
  font-family: "Cormorant Garamond";
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  pointer-events: none;
}

.profile-avatar-large {
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 247, 238, 0.22), transparent 32%),
    rgba(5, 5, 10, 0.72);
  color: var(--lurei-cream);
}

.profile-accordion {
  border-radius: 26px;
}

.profile-accordion summary {
  padding-inline: 22px;
}

.bottom-nav {
  width: min(560px, calc(100% - 34px));
  padding: 7px;
  border-color: rgba(255, 247, 238, 0.105);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 247, 238, 0.13), transparent 42%),
    rgba(17, 13, 28, 0.82);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.42);
}

.bottom-nav::before {
  opacity: 0.5;
  background:
    radial-gradient(circle, rgba(255, 247, 238, 0.16), transparent 58%),
    radial-gradient(circle, rgba(209, 122, 114, 0.16), transparent 72%);
}

.bottom-nav button {
  min-height: 48px;
  color: rgba(255, 247, 238, 0.58);
}

.bottom-nav button.is-active {
  color: var(--lurei-cream);
}

.bottom-nav button span {
  font-size: 0.64rem;
}

.product-discovery-details > summary,
.vanity-details > summary,
.cycle-calendar-details > summary {
  color: var(--lurei-cream);
}

.product-discovery-details > summary span,
.vanity-details > summary span,
.cycle-calendar-details > summary span {
  color: var(--lurei-cream);
}

.product-discovery-details > summary small,
.vanity-details > summary small,
.cycle-calendar-details > summary small {
  color: rgba(255, 247, 238, 0.72);
}

body.light-mode .phase-card,
body.light-mode .mirror-forecast-card,
body.light-mode .cycle-rhythm-hero,
body.light-mode .profile-hero,
body.light-mode .product-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 115, 106, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 250, 245, 0.96), rgba(247, 236, 232, 0.94));
  color: #2b1a2f;
}

body.light-mode .phase-card h2,
body.light-mode .mirror-forecast-card h2,
body.light-mode .moon-oracle-copy h2,
body.light-mode .product-card h3 {
  color: #2b1a2f;
}

body.light-mode .mirror-forecast-card .section-copy,
body.light-mode .product-reason span,
body.light-mode .moon-oracle-copy > p {
  color: #5e4a54;
}

body.light-mode .product-discovery-details > summary,
body.light-mode .vanity-details > summary,
body.light-mode .cycle-calendar-details > summary,
body.light-mode .product-discovery-details > summary span,
body.light-mode .vanity-details > summary span,
body.light-mode .cycle-calendar-details > summary span {
  color: #2b1a2f;
}

body.light-mode .product-discovery-details > summary small,
body.light-mode .vanity-details > summary small,
body.light-mode .cycle-calendar-details > summary small {
  color: #6f5a62;
}

@media (max-width: 720px) {
  .screen {
    padding: 20px 16px 128px;
  }

  .gate-screen .ritual-card,
  .welcome-screen .ritual-card {
    padding: 32px 22px;
    border-radius: 34px;
  }

  .welcome-logo {
    width: 92px;
    height: 92px;
  }

  .today-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }

  .brand-mark img {
    width: 44px;
    height: 44px;
  }

  .brand-mark span {
    display: none;
  }

  .avatar-button {
    width: 50px;
    height: 50px;
  }

  .phase-card {
    min-height: 228px;
    border-radius: 30px;
  }

  .phase-card .phase-hero-grid {
    grid-template-columns: minmax(86px, 0.28fr) minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    min-height: 204px;
  }

  .phase-card h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .makeup-diagnosis-card {
    width: 100%;
  }

  .mirror-forecast-card {
    padding: 22px;
    border-radius: 28px;
  }

  .mirror-forecast-card .section-row {
    grid-template-columns: 1fr;
  }

  .mirror-inline-action {
    width: 100%;
  }

  .today-tabs {
    margin-top: 14px;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .product-card .product-preview {
    min-height: 226px;
  }

  .cycle-rhythm-hero {
    min-height: auto;
    padding: 22px;
    border-radius: 34px;
  }

  .cycle-rhythm-hero .oracle-moon-stage {
    min-height: 186px;
  }

  .cycle-rhythm-hero .phase-moon-art {
    width: min(190px, 58vw);
  }

  .moon-oracle-copy h2 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .owned-product-card {
    grid-template-columns: 1fr;
    border-radius: 32px;
  }

  .profile-hero {
    grid-template-columns: auto 1fr;
    border-radius: 32px;
  }
}

@media (max-width: 420px) {
  .today-header h1 {
    font-size: clamp(1.95rem, 10vw, 2.75rem);
  }

  .today-intelligence-chip {
    display: none;
  }

  .phase-card .phase-hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .phase-card .today-moon-reveal {
    min-height: 96px;
  }

  .phase-context-stack {
    justify-content: center;
  }

  .mirror-memory-line {
    padding: 14px;
  }

  .bottom-nav {
    width: min(354px, calc(100% - 24px));
  }
}
