/* Fonts chosen by Lily (27.11): Secular One for titles & inspiration, Varela Round for text. Stored locally, no network. */
@font-face { font-family: 'Secular One'; src: url('fonts/secular-one-hebrew.woff2') format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: 'Secular One'; src: url('fonts/secular-one-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: 'Varela Round'; src: url('fonts/varela-round-hebrew.woff2') format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: 'Varela Round'; src: url('fonts/varela-round-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }

:root {
  --bg: #160c14;
  --bg-2: #241220;
  --card: rgba(255, 236, 228, 0.055);
  --card-line: rgba(255, 220, 210, 0.1);
  --text: #f6e9e2;
  --muted: #b9a2a6;
  --rose: #e8899c;
  --wine: #8e2442;
  --moon: #f3e6d3;
  --gold: #e8b75c;

  --winter: #c81e3a;
  --blood: #ff2d4a;
  --spring: #86b89b;
  --summer: #e8b75c;
  --autumn: #d9775a;

  --serif: 'Cormorant Garamond', 'Bodoni 72', Didot, 'Playfair Display', Georgia, serif;
  --display: 'Secular One', 'Varela Round', ui-rounded, system-ui, sans-serif;
  --round: 'Varela Round', ui-rounded, 'SF Pro Rounded', 'Avenir Next', 'Nunito', 'Varela Round', system-ui, sans-serif;
  --sans: 'Varela Round', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* night sky / candle light */
.sky {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(232, 137, 156, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(142, 36, 66, 0.35), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 70%, rgba(232, 183, 92, 0.08), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
}
.sky::after {
  content: ''; position: absolute; inset: 0; opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent),
    radial-gradient(1px 1px at 78% 9%, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 88% 34%, #ffe 50%, transparent),
    radial-gradient(1px 1px at 30% 6%, #fff 50%, transparent),
    radial-gradient(1px 1px at 55% 22%, #fff 50%, transparent),
    radial-gradient(1px 1px at 6% 48%, #fff 50%, transparent),
    radial-gradient(1px 1px at 95% 62%, #fff 50%, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.7; } }

main {
  max-width: 480px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 24px) 18px calc(env(safe-area-inset-bottom) + 96px);
}

.top { text-align: center; }
.date {
  font-family: var(--round);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 0.005em;
  background: linear-gradient(100deg, #fff4ec 20%, #f6c3cd 60%, #f3d39b 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sun {
  display: flex; justify-content: center; gap: 14px;
  margin-top: 4px;
  font-family: var(--round);
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em;
}
.sun span:first-child { color: var(--gold); opacity: 0.9; }
.meta {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
}
.meta span { color: var(--muted); opacity: 0.6; margin: 0 2px; }

.ring-wrap { display: flex; justify-content: center; margin: 10px 0 4px; }
.ring { width: min(88vw, 340px); height: auto; overflow: visible; }
.season-arc { fill: none; stroke-width: 22; stroke-linecap: round; opacity: 0.42; }
.window-arc { fill: none; stroke: var(--rose); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; opacity: 0.9; }
.dot { fill: rgba(246, 233, 226, 0.2); }
.dot-past { fill: rgba(246, 233, 226, 0.75); }
.dot-period { fill: var(--winter); }
.dot-today { fill: var(--rose); stroke: #fff4ef; stroke-width: 2; }
.today-glow { fill: var(--rose); opacity: 0.25; animation: breathe 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 0%, 100% { transform: scale(0.85); opacity: 0.18; } 50% { transform: scale(1.15); opacity: 0.35; } }
.moon-full { fill: var(--moon); }
.moon-new { fill: var(--bg); stroke: var(--moon); stroke-width: 1.5; }
.moon-dark { fill: rgba(243, 230, 211, 0.08); stroke: rgba(243, 230, 211, 0.2); }
.moon-lit { fill: url(#moonGlow); filter: drop-shadow(0 0 8px rgba(255, 240, 220, 0.45)); }
.empty-ring { fill: none; stroke: var(--card-line); stroke-width: 18; }
.ring-day { font-family: var(--round); font-weight: 700; font-size: 44px; fill: url(#dateG); text-anchor: middle; }
.ring-season { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; fill: var(--muted); text-anchor: middle; }

.greeting {
  position: relative;
  text-align: center;
  margin: 8px 0 24px;
  padding: 18px 12px;
}
.greeting::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(243, 177, 189, 0.22), transparent 70%);
  filter: blur(6px);
  animation: breathe-soft 7s ease-in-out infinite;
}
.greeting p {
  position: relative;
  font-family: var(--round);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.4;
  margin: 0;
}
.greeting .emo { filter: drop-shadow(0 0 8px rgba(255, 220, 180, 0.6)); white-space: nowrap; }
.greeting .g {
  background: linear-gradient(100deg, #ffe7c2, #f6b3c1 45%, #fff2e6 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(246, 179, 193, 0.55)) drop-shadow(0 0 22px rgba(232, 137, 156, 0.35));
  animation: shimmer-text 9s ease-in-out infinite;
}
.sparkle { position: absolute; color: #ffe7c2; text-shadow: 0 0 8px #f3c98b; animation: twinkle-one 3.2s ease-in-out infinite; }
.sparkle.s1 { top: 0; right: 14%; font-size: 14px; }
.sparkle.s2 { bottom: 2px; left: 12%; font-size: 12px; animation-delay: 1.1s; }
.sparkle.s3 { top: 30%; left: 4%; font-size: 9px; animation-delay: 2s; }
@keyframes twinkle-one { 0%, 100% { opacity: 0.2; transform: scale(0.7) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@keyframes shimmer-text { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes breathe-soft { 0%, 100% { opacity: 0.6; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.05); } }

.checkin {
  display: block;
  width: 100%;
  padding: 18px;
  border: 0;
  border-radius: 999px;
  font: 600 17px var(--sans);
  letter-spacing: 0.06em;
  color: #2a0e18;
  background: linear-gradient(120deg, #f3b1bd, var(--rose) 45%, #d9775a);
  box-shadow: 0 10px 30px rgba(232, 137, 156, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.checkin { position: relative; overflow: hidden; }
.checkin::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: sweep 5s ease-in-out infinite;
}
@keyframes sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.checkin small { display: block; font: 500 13px var(--sans); letter-spacing: 0; margin-top: 3px; color: rgba(42, 14, 24, 0.75); }
.checkin:active { transform: scale(0.98); }
.checkin span { margin-left: 6px; }

.card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(60, 26, 48, 0.72), rgba(26, 12, 22, 0.72)) padding-box,
    linear-gradient(135deg, rgba(243, 177, 189, 0.55), rgba(255, 255, 255, 0.04) 40%, rgba(232, 183, 92, 0.45)) border-box;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.he { font-size: 15px; line-height: 1.5; margin: 6px 0 0; text-align: right; }

.move-card { display: flex; align-items: center; gap: 16px; }
.move-card > div { flex: 1; }
.move-ring { width: 96px; height: 96px; flex: none; }
.move-seg { fill: none; stroke: rgba(246, 233, 226, 0.12); stroke-width: 10; stroke-linecap: round; }
.move-seg.filled { filter: drop-shadow(0 0 4px rgba(232, 183, 92, 0.45)); }
.move-count { font-family: var(--round); font-weight: 500; font-size: 34px; fill: var(--text); text-anchor: middle; }
.move-extra { font-size: 11px; fill: var(--gold); text-anchor: middle; }
.move-goal { font-family: var(--round); font-weight: 500; font-size: 24px; margin-top: 2px; }

.fineprint { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.5; margin: 22px 12px 0; opacity: 0.8; }

.tabs {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom) + 14px);
  display: flex; gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(36, 18, 32, 0.85);
  border: 1px solid var(--card-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.tabs a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.tabs a.active { background: rgba(232, 137, 156, 0.18); color: var(--text); }
.tabs a.soon { opacity: 0.45; }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 84px);
  transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 16px;
  background: #2d1626; border: 1px solid var(--card-line);
  font-size: 15px; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.moon-lit-flat { fill: var(--moon); }
.label .sep { opacity: 0.5; margin: 0 2px; }

/* bleeding forecast */
.forecast {
  text-align: center; margin: -6px 0 14px;
  font-family: var(--round); font-size: 16px; color: var(--text);
}
.forecast b { color: var(--blood); font-weight: 700; text-shadow: 0 0 10px rgba(255, 45, 74, 0.6); }
.forecast small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: 0.04em; }

/* movement chips + add */
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.chip {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px 9px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  font-size: 15px;
}
.chip-name { flex: 1; text-align: right; }
.chip-day { font-size: 12px; color: var(--muted); }
.chip-x {
  border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
}
.add-move {
  display: block; width: 100%; margin-top: 14px; padding: 13px;
  border-radius: 999px; border: 1px dashed rgba(232, 183, 92, 0.55);
  background: rgba(232, 183, 92, 0.08); color: var(--gold);
  font: 600 15px var(--round); letter-spacing: 0.04em; cursor: pointer;
}

/* bottom sheet */
.sheet { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.sheet.open { pointer-events: auto; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 4, 9, 0.6); opacity: 0; transition: opacity 0.25s; }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: 480px; margin: 0 auto;
  padding: 10px 18px calc(env(safe-area-inset-bottom) + 22px);
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #2d1626, #1c0e18);
  border-top: 1px solid var(--card-line);
  transform: translateY(100%); transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
}
.sheet.open .sheet-panel { transform: translateY(0); }
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.2); margin: 0 auto 14px; }
.sheet-panel h3 { font-family: var(--round); font-weight: 500; font-size: 21px; text-align: center; margin: 0 0 14px; }
.when { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.when-btn {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--card-line);
  background: none; color: var(--muted); font: 500 14px var(--round); cursor: pointer;
}
.when-btn.active { background: rgba(232, 137, 156, 0.2); color: var(--text); border-color: transparent; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 15px 18px; border-radius: 20px; cursor: pointer;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  color: var(--text); font: 500 17px var(--sans);
}
.option:active { transform: scale(0.98); }
.opt-emoji { font-size: 22px; order: 2; }

/* coming up tiles */
.he.sub { text-align: left; direction: rtl; text-align: right; color: var(--muted); font-size: 13px; margin-top: 4px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.tile {
  text-align: center; padding: 14px 6px 12px; border-radius: 20px;
  background: rgba(255, 236, 228, 0.05);
  border: 1px solid var(--card-line);
}
.tile-bleed { background: radial-gradient(circle at 50% 20%, rgba(176, 58, 91, 0.35), rgba(255, 236, 228, 0.04) 70%); border-color: rgba(232, 137, 156, 0.35); }
.tile-full { background: radial-gradient(circle at 50% 20%, rgba(243, 230, 211, 0.18), rgba(255, 236, 228, 0.04) 70%); }
.tile-visual { height: 44px; display: flex; align-items: center; justify-content: center; }
.tile-full .mini-moon { filter: drop-shadow(0 0 10px rgba(255, 240, 220, 0.7)); }
.tile-new .moon-dark { stroke: rgba(243, 230, 211, 0.55); }
.tile-drop { filter: drop-shadow(0 0 8px rgba(232, 137, 156, 0.6)); }
.tile-when { font-family: var(--round); font-weight: 700; font-size: 20px; margin-top: 8px; }
.tile-bleed .tile-when { color: var(--rose); }
.tile-name { font-size: 11px; color: var(--muted); margin-top: 3px; }
.tile-he { font-size: 12px; margin-top: 6px; color: var(--text); opacity: 0.85; }

/* ring extras */
.astrolabe { fill: none; stroke: rgba(243, 230, 211, 0.18); stroke-width: 1; animation: spin 240s linear infinite; transform-origin: 160px 160px; }
@keyframes spin { to { transform: rotate(360deg); } }
.ovu-arc { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(232, 183, 92, 0.8)); }
.window-arc { stroke-width: 3; stroke-dasharray: none; filter: drop-shadow(0 0 4px rgba(232, 137, 156, 0.8)); }
.ring-label { font: 600 10px var(--round); letter-spacing: 0.08em; text-anchor: middle; dominant-baseline: middle; }
.ovu-label { fill: var(--gold); }
.bleed-label { fill: var(--rose); }
.halo { animation: breathe-soft 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.dot-today { filter: drop-shadow(0 0 6px rgba(243, 177, 189, 0.9)); }

/* magical sky */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.b1 { width: 70vw; height: 70vw; background: #7a1f45; top: -20vw; left: -25vw; animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 60vw; height: 60vw; background: #5a2a6e; top: 40vh; right: -30vw; animation: drift2 32s ease-in-out infinite alternate; opacity: 0.4; }
.b3 { width: 50vw; height: 50vw; background: #b8673e; bottom: -20vw; left: 10vw; animation: drift1 38s ease-in-out infinite alternate-reverse; opacity: 0.25; }
@keyframes drift1 { to { transform: translate(18vw, 12vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-15vw, -10vh) scale(0.9); } }
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 40% 70%, #fff, transparent),
    radial-gradient(1px 1px at 65% 15%, #ffe, transparent),
    radial-gradient(2px 2px at 85% 80%, #f6c3cd, transparent),
    radial-gradient(1px 1px at 10% 90%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 50% 50%, #f3d39b, transparent),
    radial-gradient(1px 1px at 75% 45%, #fff, transparent);
  background-size: 240px 300px;
  animation: twinkle 5s ease-in-out infinite alternate-reverse;
}
.shooting {
  position: absolute; top: 12%; left: 70%; width: 120px; height: 1.5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
  transform: rotate(-25deg); opacity: 0;
  animation: shoot 14s ease-in 3s infinite;
}
@keyframes shoot {
  0% { opacity: 0; transform: rotate(155deg) translateX(0); }
  2% { opacity: 1; }
  6% { opacity: 0; transform: rotate(155deg) translateX(260px); }
  100% { opacity: 0; transform: rotate(155deg) translateX(260px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

/* stronger (but gentle) bleeding + ovulation marks */
.ovu-arc { stroke-width: 5; filter: drop-shadow(0 0 6px rgba(232, 183, 92, 0.9)); }
.window-arc { stroke: #f08aa0; stroke-width: 5; filter: drop-shadow(0 0 6px rgba(240, 138, 160, 0.9)); }
.ring-label { font-size: 12px; font-weight: 700; }
.ovu-label { filter: drop-shadow(0 0 4px rgba(232, 183, 92, 0.6)); }
.bleed-label { fill: #f39aae; filter: drop-shadow(0 0 4px rgba(240, 138, 160, 0.6)); }
.dot-ovu { fill: var(--gold); }
.dot-window { fill: #f08aa0; opacity: 0.85; }

/* bleeding = glowing red (Lily, 27.11) */
.window-arc { stroke: var(--blood); filter: drop-shadow(0 0 6px rgba(255, 45, 74, 0.95)); }
.bleed-label { fill: #ff5a70; filter: drop-shadow(0 0 5px rgba(255, 45, 74, 0.8)); }
.dot-window { fill: var(--blood); opacity: 0.9; }
.dot-period { fill: #e0203f; filter: drop-shadow(0 0 3px rgba(255, 45, 74, 0.8)); }
.tile-bleed { background: radial-gradient(circle at 50% 20%, rgba(255, 45, 74, 0.32), rgba(255, 236, 228, 0.04) 70%); border-color: rgba(255, 45, 74, 0.45); }
.tile-bleed .tile-when { color: var(--blood); text-shadow: 0 0 10px rgba(255, 45, 74, 0.6); }
.tile-drop { filter: drop-shadow(0 0 9px rgba(255, 45, 74, 0.8)); }
.lg-window { background: rgba(255, 45, 74, 0.4); }

/* healing reminder, always on home */
.healing {
  margin: 12px auto 0; padding: 7px 16px; width: fit-content; max-width: 100%;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #f3d39b; background: rgba(232, 183, 92, 0.08);
  border: 1px solid rgba(232, 183, 92, 0.3);
  text-shadow: 0 0 10px rgba(232, 183, 92, 0.55);
  box-shadow: 0 0 18px rgba(232, 183, 92, 0.12);
}

/* meditation */
.med-slots { display: flex; gap: 12px; justify-content: center; margin: 14px 0 4px; }
.med-slot {
  width: 74px; height: 74px; border-radius: 50%; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: rgba(180, 150, 255, 0.06); border: 1.5px dashed rgba(190, 165, 255, 0.5);
  color: #cdbdff; font-family: var(--round);
}
.med-slot .med-icon { font-size: 24px; line-height: 1; }
.med-slot small { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.med-slot.done {
  border: 1.5px solid rgba(205, 189, 255, 0.8);
  background: radial-gradient(circle, rgba(170, 140, 255, 0.35), rgba(120, 80, 200, 0.12));
  box-shadow: 0 0 18px rgba(170, 140, 255, 0.45);
  color: #fff;
}
.med-card .he { text-align: center; }

/* ---------- navigation ---------- */
a.checkin { text-decoration: none; text-align: center; }
.tabs a { text-decoration: none; cursor: pointer; }
.tabs a.tab-mic { color: var(--text); }
.he.center, .label.center { text-align: center; }

/* ---------- portals ---------- */
.portals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 6px; margin-top: 14px; }
.portal { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); }
.orb {
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 45%, transparent), color-mix(in srgb, var(--c) 10%, transparent) 70%);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: inset 0 0 14px color-mix(in srgb, var(--c) 25%, transparent);
  transition: transform 0.2s;
}
.portal:active .orb { transform: scale(0.94); }
.portal.lit .orb {
  border: 2px solid var(--c);
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 70%, transparent), inset 0 0 14px color-mix(in srgb, var(--c) 35%, transparent);
}
.pname { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-align: center; }
.portal.lit .pname { color: var(--text); }

/* ---------- room page ---------- */
.room-head { position: relative; text-align: center; padding-top: 4px; }
.back {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--text); text-decoration: none; background: rgba(255,255,255,0.06);
}
.room-orb {
  display: inline-flex; width: 84px; height: 84px; border-radius: 50%; align-items: center; justify-content: center; font-size: 40px;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, transparent), color-mix(in srgb, var(--c) 8%, transparent) 70%);
  border: 2px solid var(--c);
  box-shadow: 0 0 30px color-mix(in srgb, var(--c) 55%, transparent);
  animation: breathe-soft 6s ease-in-out infinite;
}
.room-head h1 {
  font-family: var(--round); font-weight: 700; font-size: 30px; margin: 12px 0 2px;
  background: linear-gradient(100deg, #fff4ec 20%, #f6c3cd 60%, #f3d39b 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.room-he { margin: 0; color: var(--c); font-size: 15px; text-shadow: 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); }
.daynav { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.06); }
.daynav span { min-width: 120px; font-family: var(--round); font-weight: 600; font-size: 15px; }
.daynav button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.08); color: var(--text); font-size: 20px; cursor: pointer; }
.daynav button:disabled { opacity: 0.25; }
.room-body .card:first-child { margin-top: 18px; }

/* fields */
.field { padding: 14px 0; border-top: 1px solid var(--card-line); }
.field:first-child { border-top: 0; padding-top: 4px; }
.q { font-size: 17px; font-weight: 600; text-align: right; margin-bottom: 10px; }
.hint { font-size: 12.5px; color: var(--muted); text-align: right; line-height: 1.5; margin: 6px 0 0; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg.yn { justify-content: flex-end; }
.seg-btn {
  flex: 1; min-width: 56px; padding: 11px 8px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid var(--card-line); color: var(--text);
  font: 500 14px var(--round);
}
.seg.yn .seg-btn { flex: 0 0 84px; font-size: 15px; }
.seg.moons .seg-btn { font-size: 22px; padding: 8px 0; }
.seg-btn.on { background: rgba(232, 137, 156, 0.28); border-color: var(--rose); box-shadow: 0 0 12px rgba(232, 137, 156, 0.35); }
.seg.flow .seg-btn.on { background: rgba(255, 45, 74, 0.3); border-color: var(--blood); box-shadow: 0 0 12px rgba(255, 45, 74, 0.5); }
.chips-multi { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; direction: rtl; }
.mchip {
  padding: 9px 13px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid var(--card-line); color: var(--text); font: 500 14px var(--sans);
}
.mchip.on { background: rgba(232, 183, 92, 0.22); border-color: var(--gold); box-shadow: 0 0 10px rgba(232, 183, 92, 0.35); }
.slider { position: relative; }
.slider-val { text-align: center; font: 700 34px var(--round); color: var(--muted); }
.slider.set .slider-val { color: var(--text); text-shadow: 0 0 14px rgba(155, 183, 224, 0.6); }
.slider input { width: 100%; accent-color: #9bb7e0; }
.slider-ends, .slider-ends span { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); direction: rtl; }
.slider-ends { direction: ltr; }
.clear { position: absolute; top: 4px; left: 0; border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.stepper { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; }
.stepper > button[data-step] { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--card-line); background: rgba(255,255,255,0.06); color: var(--text); font-size: 24px; cursor: pointer; }
.step-val { min-width: 90px; text-align: center; font: 700 32px var(--round); color: var(--muted); }
.step-val.set { color: var(--text); }
.step-val small { font-size: 15px; font-weight: 500; }
textarea, input.time {
  width: 100%; padding: 12px 14px; border-radius: 16px; resize: vertical;
  background: rgba(255,255,255,0.05); border: 1px solid var(--card-line); color: var(--text);
  font: 400 15px var(--sans);
}
input.time { width: auto; color-scheme: dark; }
.field:has(input.time) { text-align: right; }
.saved {
  position: fixed; top: calc(env(safe-area-inset-top) + 12px); left: 50%; transform: translate(-50%, -10px);
  padding: 6px 14px; border-radius: 999px; background: rgba(134, 184, 155, 0.25); border: 1px solid rgba(134, 184, 155, 0.6);
  font-size: 12px; opacity: 0; transition: all 0.25s; pointer-events: none;
}
.saved.show { opacity: 1; transform: translate(-50%, 0); }

/* cycle list */
.big-stat { font: 700 36px var(--round); margin: 8px 0 4px; }
.big-stat small { font-size: 13px; font-weight: 500; color: var(--muted); }
.plist { list-style: none; padding: 0; margin: 10px 0 0; }
.plist li { display: grid; grid-template-columns: 14px 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--card-line); }
.pdot { width: 10px; height: 10px; border-radius: 50%; background: var(--blood); box-shadow: 0 0 8px var(--blood); }
.pdate { font-family: var(--round); font-weight: 600; }
.plen { color: var(--muted); font-size: 13px; }
.pmoon { grid-column: 2 / 4; font-size: 12px; color: var(--muted); }
.pmoon.red { color: #ff6b7d; }
.pmoon.white { color: var(--moon); }

/* history */
.hist { margin-top: 14px; }
.hist-label { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.bars { display: flex; gap: 3px; height: 96px; }
.bar-col { flex: 1; display: flex; flex-direction: column; }
.bar-track { flex: 1; display: flex; align-items: flex-end; }
.bar { width: 100%; border-radius: 6px 6px 3px 3px; position: relative; box-shadow: 0 0 8px rgba(255,255,255,0.15); }
.bar span { position: absolute; top: -15px; left: 0; right: 0; text-align: center; font-size: 9px; color: var(--muted); }
.bar-empty { width: 100%; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.08); }
.bar-day, .hd-day { font-size: 9px; color: var(--muted); text-align: center; margin-top: 4px; }
.dots-row { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 6px; margin-top: 6px; }
.dots-label { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; justify-items: center; }
.hd { width: 12px; height: 12px; border-radius: 50%; }
.hd.yes { background: var(--c); box-shadow: 0 0 6px var(--c); }
.hd.no { border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent); }
.hd.none { background: rgba(255,255,255,0.05); transform: scale(0.5); }

/* movement balance */
.options.inline { margin-top: 12px; }
.balance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 6px; margin: 12px 0 6px; }
.bal { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.bal-orb {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: color-mix(in srgb, var(--c) 25%, transparent); border: 1px solid var(--c);
  transform: scale(var(--s)); box-shadow: 0 0 calc(var(--s) * 16px) color-mix(in srgb, var(--c) 60%, transparent);
}
.bal b { font: 700 18px var(--round); }
.bal small { font-size: 11px; color: var(--muted); }

/* check-in page */
.voice-card { text-align: center; }
.mic {
  width: 110px; height: 110px; border-radius: 50%; border: 0; margin: 6px auto 10px; display: flex; align-items: center; justify-content: center;
  font-size: 44px; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #f3b1bd, #e8899c 50%, #8e2442);
  box-shadow: 0 0 40px rgba(232, 137, 156, 0.55), 0 0 0 10px rgba(232, 137, 156, 0.1);
  animation: breathe-soft 4s ease-in-out infinite;
}
.bubbles { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 10px; }
.bubble { padding: 7px 12px; border-radius: 999px; font-size: 13px; background: rgba(255,255,255,0.06); border: 1px solid var(--card-line); }

/* data page */
.data-actions { display: flex; flex-direction: column; gap: 8px; }
.dbtn {
  display: block; width: 100%; padding: 14px; border-radius: 16px; cursor: pointer; text-align: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--card-line); color: var(--text); font: 600 15px var(--round);
}
.danger .dbtn { color: #ff8a9a; border-color: rgba(255, 45, 74, 0.4); }
.tabs a { white-space: nowrap; }
.seg.yn { direction: rtl; justify-content: flex-start; }

.field.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; }
.field.row .q { margin: 0; flex: 1; font-size: 16px; }
.field.row .seg.yn { flex: none; flex-wrap: nowrap; }
.field.row .seg.yn .seg-btn { flex: 0 0 62px; padding: 9px 6px; }
.seg.moons, .seg.flow { flex-wrap: nowrap; } .seg.moons .seg-btn, .seg.flow .seg-btn { min-width: 0; } .seg.flow .seg-btn { font-size: 12.5px; padding: 11px 2px; }

.guidance {
  text-align: center; margin: -6px auto 14px; padding: 8px 14px; max-width: 340px;
  font-size: 14px; line-height: 1.5; color: #ffd9c2;
  background: rgba(217, 119, 90, 0.1); border: 1px solid rgba(217, 119, 90, 0.3); border-radius: 16px;
}
.grp { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* water */
.water-top { display: flex; justify-content: space-between; align-items: baseline; }
.water-n { font: 700 26px var(--round); color: #bfe6f5; text-shadow: 0 0 12px rgba(124, 199, 232, 0.6); }
.water-n small { font-size: 12px; font-weight: 500; color: var(--muted); text-shadow: none; }
.drops { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0; font-size: 22px; }
.drop { opacity: 0.18; filter: grayscale(1); transition: all 0.3s; }
.drop.full { opacity: 1; filter: drop-shadow(0 0 6px rgba(124, 199, 232, 0.9)); }
.water-btns { display: flex; gap: 8px; }
.wbtn { border-radius: 999px; padding: 12px; cursor: pointer; font: 600 15px var(--round); color: #d8f1fb; }
.wbtn.plus { flex: 1; background: rgba(124, 199, 232, 0.16); border: 1px solid rgba(124, 199, 232, 0.55); }
.wbtn.minus { width: 48px; background: rgba(255,255,255,0.05); border: 1px solid var(--card-line); font-size: 20px; }
.wbtn:disabled { opacity: 0.3; }
.water-card .he { text-align: center; }

/* movement nudge: after 3+ days of the week with no movement */
.move-urgent {
  border-color: transparent;
  background:
    linear-gradient(160deg, rgba(80, 26, 40, 0.85), rgba(30, 10, 20, 0.85)) padding-box,
    linear-gradient(135deg, #ff7a59, #ff2d4a 40%, #e8b75c) border-box;
  animation: urgent-glow 2.6s ease-in-out infinite;
}
@keyframes urgent-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 90, 80, 0.35); }
  50% { box-shadow: 0 0 38px rgba(255, 90, 80, 0.75); }
}
.move-nudge { text-align: right; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 140, 120, 0.3); }
.nudge-title { font: 700 18px var(--round); color: #ffb199; text-shadow: 0 0 12px rgba(255, 120, 90, 0.7); }
.move-nudge p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; }
.move-urgent .add-move {
  background: linear-gradient(120deg, #ff9a6b, #ff4d6a); color: #2a0e18; border: 0;
  font-size: 16px; padding: 15px; box-shadow: 0 8px 24px rgba(255, 77, 106, 0.4);
}
.move-pill {
  position: fixed; z-index: 15; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom) + 76px);
  padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 14px var(--round); color: #2a0e18; white-space: nowrap;
  background: linear-gradient(120deg, #ffb199, #ff4d6a);
  box-shadow: 0 6px 24px rgba(255, 77, 106, 0.55);
  animation: pill-bounce 3s ease-in-out infinite;
}
@keyframes pill-bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }

/* display font for titles & inspiration (Secular One has one weight: no fake bold) */
.date, .ring-day, .greeting p, .room-head h1, .nudge-title, .healing, .big-stat, .move-goal, .water-n, .tile-when {
  font-family: var(--display); font-weight: 400;
}
.ring-day { font-weight: 400; }

/* holding space */
.hold-invite {
  display: block; width: 100%; margin-top: 14px; padding: 13px; border-radius: 18px; cursor: pointer; text-align: center;
  background: rgba(205, 189, 255, 0.08); border: 1px solid rgba(205, 189, 255, 0.35); color: #e4dcff; font: 500 15px var(--sans);
}
.hold-invite.strong {
  margin: 16px 0 0; padding: 16px; background: linear-gradient(135deg, rgba(170, 140, 255, 0.25), rgba(255, 126, 182, 0.18));
  border-color: rgba(205, 189, 255, 0.7); box-shadow: 0 0 24px rgba(170, 140, 255, 0.35);
}
.hold-invite b { display: block; font: 400 19px var(--display); color: #fff; }
.hold-invite span { font-size: 13px; color: #d9cffd; }
.hold-pill { background: linear-gradient(120deg, #cdbdff, #ff9ccc); }
.sheet-panel.holding { max-height: 88vh; overflow-y: auto; text-align: right; }
.holding h3 { font-family: var(--display); font-weight: 400; font-size: 26px; }
.hold-lead { text-align: center; font-size: 16px; line-height: 1.6; margin: 0 0 8px; }
.breath { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 10px 0 18px; text-align: center; }
.breath-orb {
  width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 189, 255, 0.9), rgba(170, 140, 255, 0.25) 70%);
  box-shadow: 0 0 30px rgba(170, 140, 255, 0.6);
  transition: transform 4s ease-in-out;
}
.breath-orb.in { transform: scale(1.7); }
.breath-orb:not(.in) { transition-duration: 6s; }
.breath-text { margin-top: 28px; font: 400 18px var(--display); color: #e4dcff; }
.breath small { font-size: 12.5px; color: var(--muted); max-width: 280px; line-height: 1.5; }
.hold-q { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.needs { display: flex; flex-wrap: wrap; gap: 7px; }
.need { padding: 9px 12px; border-radius: 999px; cursor: pointer; background: rgba(255,255,255,0.06); border: 1px solid var(--card-line); color: var(--text); font: 500 14px var(--sans); }
.need.on { background: rgba(205, 189, 255, 0.22); border-color: #cdbdff; }
.need-answer { min-height: 1em; font-size: 15px; line-height: 1.55; color: #f3e6ff; margin: 10px 0 14px; }
.hold-card { padding: 14px; border-radius: 18px; background: rgba(255,255,255,0.05); border: 1px solid var(--card-line); font-size: 14.5px; line-height: 1.6; margin-bottom: 12px; }
.hold-card.talk { background: rgba(232, 137, 156, 0.1); border-color: rgba(232, 137, 156, 0.35); }
.hold-aff { text-align: center; font: 400 17px var(--display); color: #ffd9e4; line-height: 1.5; margin: 6px 0 14px; }
.hold-help { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(255, 45, 74, 0.08); border: 1px solid rgba(255, 45, 74, 0.35); font-size: 14px; line-height: 1.5; }
.hold-help > b { grid-column: 1 / -1; font-weight: 600; }
.hold-help a { color: #fff; font-weight: 700; text-decoration: none; padding: 8px 12px; border-radius: 12px; background: rgba(255, 45, 74, 0.25); white-space: nowrap; }
.hold-help span { color: var(--muted); font-size: 13px; }
.hold-help small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.hold-close { display: block; width: 100%; margin-top: 16px; padding: 14px; border-radius: 999px; border: 0; cursor: pointer; background: linear-gradient(120deg, #cdbdff, #ff9ccc); color: #2a0e18; font: 600 15px var(--sans); }

/* weekly letter */
.week-letter h3 { font-family: var(--display); font-weight: 400; font-size: 26px; text-align: center; margin: 6px 0 8px;
  background: linear-gradient(100deg, #ffe7c2, #f6b3c1 50%, #fff2e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wl-open { text-align: center; font-size: 16px; line-height: 1.6; margin: 0 0 10px; }
.wl-seasons, .wl-moods { text-align: center; font-size: 14px; color: #f3d39b; margin: 6px 0 12px; }
.wl-stats { list-style: none; padding: 0; margin: 0 0 8px; }
.wl-stats li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--card-line); font-size: 14.5px; }
.wl-stats li:first-child { border-top: 0; }
.wl-stats b { font-family: var(--display); font-weight: 400; font-size: 16px; }
.wl-one { margin: 14px 0; padding: 14px; border-radius: 18px; font-size: 15px; line-height: 1.6;
  background: linear-gradient(135deg, rgba(232, 183, 92, 0.18), rgba(255, 126, 182, 0.12)); border: 1px solid rgba(232, 183, 92, 0.45); }
.wl-reflect label { display: block; font-size: 14px; margin-bottom: 10px; }
.wl-reflect textarea { margin-top: 6px; }

/* voice check-in */
#talk { font-size: 17px; line-height: 1.6; min-height: 150px; margin-bottom: 12px; border-color: rgba(232, 137, 156, 0.45); }
.bubble { transition: all 0.25s; }
.bubble.hit { background: rgba(232, 183, 92, 0.25); border-color: var(--gold); box-shadow: 0 0 12px rgba(232, 183, 92, 0.5); color: #fff; }
#understand { margin-top: 16px; }
.understood { margin-top: 16px; text-align: right; }
.u-list { list-style: none; padding: 0; margin: 8px 0; }
.u-list li { display: grid; grid-template-columns: 1fr auto 32px; gap: 8px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--card-line); font-size: 15px; }
.u-list li.off { opacity: 0.35; text-decoration: line-through; }
.u-list b { font-family: var(--display); font-weight: 400; }
.u-list button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.08); color: var(--text); cursor: pointer; font-size: 16px; }
.journal-entry { padding: 10px 0; border-top: 1px solid var(--card-line); }
.journal-entry:first-of-type { border-top: 0; }
.journal-entry small { color: var(--gold); font-size: 12px; }
.journal-entry p { margin: 4px 0 0; font-size: 15px; line-height: 1.6; }

/* moon rhythm */
.moon-rhythm { background:
  linear-gradient(160deg, rgba(40, 24, 60, 0.85), rgba(26, 12, 22, 0.8)) padding-box,
  linear-gradient(135deg, #f3e6d3, rgba(255,255,255,0.05) 45%, #ff2d4a) border-box; }
.mr-now { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
.mr-icon { font-size: 44px; filter: drop-shadow(0 0 14px rgba(255, 240, 220, 0.6)); }
.mr-now b { display: block; font: 400 26px var(--display); }
.mr-now small { color: var(--muted); font-size: 12px; }
.mr-now.red b { color: #ff6b7d; text-shadow: 0 0 14px rgba(255, 45, 74, 0.7); }
.mr-now.white b { color: #fff4e6; text-shadow: 0 0 14px rgba(255, 240, 220, 0.7); }
.mr-now.between b { background: linear-gradient(90deg, #fff4e6, #ff6b7d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mr-line { display: flex; justify-content: space-between; gap: 4px; margin: 14px 0 10px; }
.mr-dot { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.mr-dot i { width: 20px; height: 20px; border-radius: 50%; display: block; }
.mr-dot.white i { background: #f3e6d3; box-shadow: 0 0 10px rgba(255, 240, 220, 0.8); }
.mr-dot.red i { background: #ff2d4a; box-shadow: 0 0 10px rgba(255, 45, 74, 0.9); }
.mr-dot.between i { background: linear-gradient(90deg, #f3e6d3 50%, #ff2d4a 50%); box-shadow: 0 0 8px rgba(255, 140, 150, 0.6); }
.mr-dot.next i { outline: 2px dashed rgba(255,255,255,0.6); outline-offset: 3px; }
.mr-dot small { font-size: 10px; color: var(--muted); }
.mr-change { padding: 12px; border-radius: 16px; font-size: 14.5px; line-height: 1.6; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(243, 230, 211, 0.14), rgba(255, 45, 74, 0.16)); border: 1px solid rgba(255, 140, 150, 0.45); }
.mr-meaning { font-size: 15px; line-height: 1.65; text-align: right; margin: 6px 0; }
.tile-moon { display: block; margin-top: 6px; font-size: 11px; color: #ffd0d8; }

/* tinnitus support */
.tin-support { margin: 6px 0 4px; padding: 14px; border-radius: 18px; text-align: right;
  background: linear-gradient(135deg, rgba(155, 183, 224, 0.2), rgba(205, 189, 255, 0.14)); border: 1px solid rgba(155, 183, 224, 0.5); }
.tin-support b { font: 400 19px var(--display); color: #dbe8ff; }
.tin-support p { margin: 6px 0 10px; font-size: 14.5px; line-height: 1.6; }
.tin-btns { display: flex; gap: 8px; }
.tin-btns .dbtn { padding: 11px 8px; font-size: 14px; }

/* 10 portals in 2 rows of 5 */
.portals .orb { width: 54px; height: 54px; font-size: 23px; }
.pname { font-size: 10px; letter-spacing: 0.03em; }
.tabs a { padding: 10px 12px; font-size: 12.5px; }
.mini-remind { display: block; margin-top: 14px; padding: 10px 14px; border-radius: 14px; text-decoration: none; color: #ffe7b0; font-size: 14px;
  background: rgba(201, 176, 107, 0.14); border: 1px solid rgba(201, 176, 107, 0.45); }
.water-btns .wbtn.plus { font-size: 14px; }
/* support */
details.support { margin: 10px 0; padding: 12px 14px; border-radius: 16px; background: rgba(134, 184, 155, 0.1); border: 1px solid rgba(134, 184, 155, 0.4); }
details.support summary { cursor: pointer; font-weight: 600; font-size: 15px; }
details.support ul { margin: 10px 0 4px; padding-right: 18px; line-height: 1.8; font-size: 14.5px; }
/* sleep picker */
.numexact { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.numexact input { width: 90px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid var(--card-line); color: var(--text); font: 600 15px var(--round); }
.numexact input[type=url] { width: 100%; font-size: 12px; }
/* spotify */
.spotify { margin-top: 12px; }
.spotify > b { display: block; font-size: 15px; margin-bottom: 8px; }
.sp-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sp { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: #d5ffe2; background: rgba(30, 215, 96, 0.14); border: 1px solid rgba(30, 215, 96, 0.45); font-size: 13.5px; }
.sp-mine { display: block; margin-bottom: 8px; text-decoration: none; text-align: center; color: #d5ffe2; border-color: rgba(30, 215, 96, 0.6); }
/* insights */
.ins-progress { height: 8px; border-radius: 8px; background: rgba(255,255,255,0.08); overflow: hidden; margin: 8px 0; }
.ins-progress i { display: block; height: 100%; background: linear-gradient(90deg, #e8899c, #e8b75c); }
.insight { padding: 12px 0; border-top: 1px solid var(--card-line); text-align: right; }
.insight:first-of-type { border-top: 0; }
.insight p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.insight small { color: var(--muted); font-size: 12px; }
.watch { list-style: none; padding: 0; margin: 8px 0; }
.watch li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid var(--card-line); font-size: 14px; }
.watch li small { color: var(--muted); white-space: nowrap; }
.watch li.found small { color: var(--gold); }

/* bigger, warmer praise toast */
.toast { font-size: 16px; padding: 14px 20px; border-radius: 20px; text-align: center; max-width: min(340px, calc(100vw - 32px));
  background: linear-gradient(135deg, #3a1630, #2a1226); border: 1px solid rgba(243, 177, 189, 0.55);
  box-shadow: 0 10px 34px rgba(0,0,0,0.45), 0 0 22px rgba(232, 137, 156, 0.35); }
.toast.show { animation: toast-pop 0.45s cubic-bezier(.2,1.4,.4,1); }
@keyframes toast-pop { from { transform: translate(-50%, 16px) scale(0.92); opacity: 0; } to { transform: translate(-50%, 0) scale(1); opacity: 1; } }
/* move now */
.move-now { margin-top: 12px; padding: 14px; border-radius: 18px; text-align: right;
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.18), rgba(255, 126, 182, 0.14)); border: 1px solid rgba(255, 140, 120, 0.5); }
.move-now > b { font: 400 19px var(--display); color: #ffc2a8; }
.mn-grid { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.mn { display: block; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--text); font-weight: 600;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255, 180, 160, 0.4); }
.mn-did { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.mn-did span { font-weight: 700; color: #ffd0b8; }
.mn-did .sp { cursor: pointer; font: 500 13px var(--sans); }
.mn-settings { margin-top: 10px; font-size: 13px; color: var(--muted); }
.mn-settings label { display: block; margin-top: 8px; }
.mn-settings textarea, .mn-settings input { width: 100%; margin-top: 4px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--card-line); color: var(--text); font: 14px var(--sans); }
/* good to know */
.good-to-know { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: right; }
.good-to-know summary { cursor: pointer; line-height: 1.5; }
.good-to-know p { color: var(--text); font-size: 14.5px; line-height: 1.6; margin: 8px 0 4px; }

/* good to know, highlighted */
.good-to-know { margin-top: 14px; padding: 12px 14px; border-radius: 16px; color: var(--text);
  background: linear-gradient(135deg, rgba(155, 120, 255, 0.16), rgba(243, 211, 155, 0.12)); border: 1px solid rgba(205, 189, 255, 0.45); }
.good-to-know summary { font-weight: 600; font-size: 14px; color: #e4dcff; }
.good-to-know small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
/* rituals */
.ritual-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; margin: 10px 0; }
.ritual-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f3d39b, #ff9ccc); transition: width 0.4s; }
.ritual.evening .ritual-bar i { background: linear-gradient(90deg, #b3a1ff, #cdbdff); }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--card-line); font-size: 15.5px; }
.steps li:first-child { border-top: 0; }
.steps li span { flex: 1; }
.steps li button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(243, 211, 155, 0.6); background: none; color: #2a0e18; font-weight: 800; cursor: pointer; flex: none; }
.steps li.on button { background: linear-gradient(135deg, #f3d39b, #ff9ccc); border-color: transparent; box-shadow: 0 0 10px rgba(243, 211, 155, 0.6); }
.steps li.on span { color: #fff; }
.step-go { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; color: #d5ffe2; background: rgba(30, 215, 96, 0.18); border: 1px solid rgba(30, 215, 96, 0.5); font-size: 12px; }

.feel-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.feel-btns button { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--card-line); background: rgba(255,255,255,0.06); color: var(--text); font: 500 13.5px var(--sans); cursor: pointer; }
.feel-btns button.on { background: rgba(243, 211, 155, 0.28); border-color: #f3d39b; }
.challenge p { font-size: 15px; line-height: 1.6; text-align: right; }
.ch-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 12px 0 6px; direction: rtl; }
.ch-grid i { aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; color: var(--muted); border: 1px dashed rgba(205, 189, 255, 0.45); }
.ch-grid i.on { color: #fff; border: 0; background: radial-gradient(circle, #cdbdff, #8f6bff); box-shadow: 0 0 10px rgba(170, 140, 255, 0.7); }
.mini-remind.chen { color: #e4dcff; background: rgba(170, 140, 255, 0.14); border-color: rgba(205, 189, 255, 0.5); }

.celebrate h3 { font-size: 30px; text-align: center; }
.confetti { text-align: center; font-size: 20px; letter-spacing: 4px; line-height: 1.6; animation: twinkle-one 2.4s ease-in-out infinite; overflow: hidden; height: 34px; }

/* 🏆 Victories (focused, 28.11) */
.vic-line { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 10px; padding: 10px 14px; border-radius: 14px;
  border: 1px solid rgba(255,200,120,0.25); background: rgba(255,179,107,0.08); color: var(--text); font: 14px var(--round); cursor: pointer; text-align: right; }
.vic-line b { font-family: var(--display); font-weight: normal; color: #ffb36b; }
.vic-line span { opacity: 0.4; }
.vic-line i { margin-inline-start: auto; font-style: normal; opacity: 0.5; }
.vic-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.vic-emoji { font-size: 22px; width: 28px; text-align: center; }
.vic-he { flex: 1; font-family: var(--round); }
.vic-he small { opacity: 0.6; font-size: 11px; }
.vic-n { font-family: var(--display); font-weight: normal; font-size: 26px; color: #ffb36b; }
.vic-sub { margin: 6px 38px 4px 0; font-size: 13px; opacity: 0.85; }
.vic-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 6px; }
.vic-marks small { opacity: 0.7; }
.vmark { border: 1px solid var(--card-line); background: rgba(255,255,255,0.05); color: var(--text); border-radius: 999px; padding: 6px 12px; font: 13px var(--round); cursor: pointer; }
.t-big { font-size: 56px; text-align: center; margin-top: 6px; animation: twinkle-one 2.4s ease-in-out infinite; }
.tin-passed { line-height: 1.6; font-family: var(--round); background: rgba(155,183,224,0.12); }

/* 🌸 After-11 self-care invitation (30.11) */
.selfcare {
  display: block; margin: 0 0 14px; padding: 13px 16px; border-radius: 18px; text-align: center; text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 156, 204, 0.16), rgba(243, 211, 155, 0.12));
  border: 1px solid rgba(255, 156, 204, 0.4); color: #ffe3f0;
}
.selfcare b { display: block; font: 400 18px var(--display); color: #fff; }
.selfcare span { font-size: 13.5px; color: #ffd6ea; }

/* 2.12: toasts float above the bottom pill instead of hiding behind it; the holding sheet gets a ✕ */
.toast { bottom: calc(env(safe-area-inset-bottom) + 136px); z-index: 30; }
.sheet-x {
  position: absolute; top: 12px; left: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 16px; line-height: 34px; padding: 0; z-index: 2;
}
