/*! LunaDeen v1.8.1 | app.css | Brand: Moon Purple #8F6BE8, Lavender #C8B0F4, Blush #F4A4CF, Rose #EC78B5, Soft White #FFF8FC, Deep Purple #65369A */
/* Self-hosted fonts (SIL OFL 1.1, see assets/fonts/OFL.txt): no request to Google */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.v1.8.1.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.v1.8.1.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/nunito-400.v1.8.1.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/nunito-600.v1.8.1.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/nunito-700.v1.8.1.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/nunito-800.v1.8.1.woff2') format('woff2'); }
:root {
  --moon: #8F6BE8; --lav: #C8B0F4; --blush: #F4A4CF; --rose: #EC78B5; --soft: #FFF8FC;
  --deep: #65369A; --ink: #38234F; --muted: #6E5A86; --faint: #74628B; /* 5.2:1 on soft white */
  --line: #EEE3FA; --line2: #E6DAF7; --tint: #F1E8FD; --tint2: #F5EEFC; --pinkbg: #FDEEF6; --night: #4A2775; --night2: #5B3390;
  --haid: #C2357F; --ok: #2A6E48; --warn: #8F610B;
  --r-card: 22px; --r-btn: 18px;
  --font-h: 'Poppins', system-ui, sans-serif; --font-b: 'Nunito', system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; overscroll-behavior: none; }
html, body { margin: 0; height: 100%; background: var(--soft); color: var(--ink); font-family: var(--font-b); font-size: 16px; }
body { overflow: hidden; -webkit-user-select: none; user-select: none; }
input, textarea, select { -webkit-user-select: text; user-select: text; font-size: 16px; font-family: inherit; color: var(--ink); }
button { font-family: inherit; cursor: pointer; color: inherit; }
a { color: var(--deep); }
h1, h2, h3 { font-family: var(--font-h); font-weight: 600; margin: 0; }
.app { position: relative; height: 100%; max-width: 480px; margin: 0 auto; background: var(--soft); overflow: hidden; }
@media (min-width: 520px) { body { background: #EFE6FB; } .app { box-shadow: 0 0 0 1px var(--line); } }
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: calc(var(--safe-t) + 20px) 20px calc(var(--safe-b) + 116px); }
.screen { scroll-padding-bottom: calc(var(--safe-b) + 110px); }
.screen.no-tab { padding-bottom: calc(var(--safe-b) + 32px); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.rel { position: relative; z-index: 1; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.title { font-size: 22px; }
.sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.small { font-size: 12px; color: var(--muted); line-height: 1.45; margin: 0; }
.center { text-align: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line2); background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; text-decoration: none; }
.icon-btn.solid { background: var(--deep); border-color: var(--deep); }
.icon-btn svg { width: 20px; height: 20px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; }
.card.tight { padding: 4px 16px; }
.card.night { background: var(--night); border: none; color: var(--soft); position: relative; overflow: hidden; }
.card.night .blob { right: -40px; top: -40px; width: 160px; height: 160px; background: var(--night2); }
.card.tint { background: var(--tint); border: none; }
.card.pink { background: var(--pinkbg); border: none; }
.card h3 { font-size: 15px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--blush); margin: 0; }

.btn { height: 54px; border-radius: var(--r-btn); border: 1px solid var(--line2); background: #fff; color: var(--deep); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; text-decoration: none; }
.btn.primary { background: var(--deep); color: #fff; border-color: var(--deep); }
.btn.rose { background: var(--rose); color: #fff; border-color: var(--rose); }
.btn.small { height: 44px; border-radius: 14px; font-size: 13px; padding: 0 14px; white-space: nowrap; }
.btn { text-align: center; line-height: 1.2; }
.btn.stack { flex-direction: column; gap: 5px; height: 68px; font-size: 14px; padding: 0 10px; border-radius: 20px; }
.btn.stack svg { width: 20px; height: 20px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.btn:active, .icon-btn:active, .tile:active { transform: scale(.98); }
.btns { display: flex; gap: 10px; }
.btns > * { flex: 1; }

.seg { display: flex; background: #EFE6FB; border-radius: 999px; padding: 4px; font-size: 13px; font-weight: 700; }
.seg button { white-space: nowrap; border: none; background: none; padding: 8px 16px; min-height: 44px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 13px; flex: 1; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--deep); }
.seg button small { display: block; margin-top: 1px; font-size: 11px; font-weight: 600; line-height: 1.15; opacity: .9; }
.seg button:has(small) { padding-top: 6px; padding-bottom: 6px; line-height: 1.15; }
.seg.square { border-radius: 14px; } .seg.square button { border-radius: 11px; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--deep); background: var(--tint); border-radius: 999px; padding: 5px 11px; }
.pill svg { width: 14px; height: 14px; flex-shrink: 0; }
.pill.rose { color: var(--haid); background: var(--pinkbg); }
.pill.dark { color: #fff; background: var(--deep); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--deep); background: #fff; border: 1px solid var(--line2); border-radius: 999px; padding: 8px 14px; }
.chip[aria-pressed="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }

.ring-wrap { position: relative; width: min(290px, 100%); height: auto; aspect-ratio: 1; margin: 0 auto; }
.ring-wrap > svg { width: 100%; height: 100%; }
.ring-center .pill svg { width: 14px; height: 14px; }
.ring-center { position: absolute; left: 50%; top: 50%; width: 172px; max-height: 176px; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-center .pill { font-size: 11px; padding: 4px 10px; white-space: nowrap; }
.ring-center .small { font-size: 12.5px; line-height: 1.35; }
.ring-center .big { font-family: var(--font-h); font-weight: 600; font-size: 38px; line-height: 1.1; letter-spacing: -.5px; margin: 4px 0 0; }
.ring-center .big em { font-style: normal; color: var(--rose); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 4px; text-align: center; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats .k { margin: 0; font-size: 11px; color: var(--muted); letter-spacing: .4px; }
.stats .v { margin: 3px 0 0; font-family: var(--font-h); font-weight: 600; font-size: 15px; }

.alert { display: flex; gap: 12px; align-items: flex-start; border-radius: 18px; padding: 13px 14px; background: var(--pinkbg); text-decoration: none; color: var(--ink); }
.alert.info { background: var(--tint); }
.alert .ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; }
.alert .ic svg { width: 18px; height: 18px; }
.alert > .grow > b, .alert > b { display: block; font-size: 13px; }
.alert p { margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }

.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F3ECFB; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; font-size: 13px; }
.list-row:last-child { border-bottom: none; }
.dot { width: 12px; height: 12px; border-radius: 6px; flex-shrink: 0; }

.bar { flex: 1; position: relative; height: 20px; border-radius: 7px; overflow: hidden; background: var(--tint2); }
.bar span { position: absolute; top: 0; bottom: 0; }
.hatch { background: repeating-linear-gradient(45deg, var(--line2) 0 4px, #fff 4px 8px); }

.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dw { text-align: center; font-size: 11px; font-weight: 700; color: var(--faint); padding-bottom: 4px; }
button.d { border: none; background: none; padding: 0; font-family: inherit; color: var(--ink); }
.cal { row-gap: 6px; column-gap: 0; }
.cal .d { height: 46px; margin: 0; border-radius: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; position: relative; transition: transform .12s; }
.cal .d b { font-size: 14px; font-weight: 700; }
.cal .d small { font-size: 9.5px; font-weight: 600; color: var(--faint); margin-top: 2px; }
.cal .d:active { transform: scale(.94); }
.cal .d.rs { border-top-left-radius: 15px; border-bottom-left-radius: 15px; margin-left: 2px; }
.cal .d.re { border-top-right-radius: 15px; border-bottom-right-radius: 15px; margin-right: 2px; }
.cal .d:not(.haid):not(.ist):not(.pred) { border-radius: 15px; margin: 0 2px; }
.cal .d.haid { background: linear-gradient(180deg, #CC3F88, #C2357F); color: #fff; }
.cal .d.haid small { color: #fff; }
.cal .d.ist { background: var(--tint); color: var(--deep); }
.cal .d.pred { background: repeating-linear-gradient(135deg, #FDEEF6 0 6px, #FAE0EE 6px 12px); color: #B02F72; }
.cal .d.pred small { color: #B02F72; }
.cal .d.today { box-shadow: inset 0 0 0 2px var(--deep); border-radius: 15px; }
.cal .d.today b { color: var(--deep); }
.cal .d.haid.today { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--deep); }
.cal .d.haid.today b { color: #fff; }
.cal .d .s { position: absolute; bottom: 2px; width: 5px; height: 5px; border-radius: 3px; background: #D9A520; }
.cal .d.ram { color: var(--deep); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; font-size: 11px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.tabbar { position: absolute; left: 14px; right: 14px; bottom: calc(var(--safe-b) + 14px); height: 74px; border-radius: 28px; padding: 0 6px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; z-index: 20;
  background: rgba(255, 255, 255, .93); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(200, 176, 244, .45); box-shadow: 0 12px 32px rgba(101, 54, 154, .16), 0 2px 6px rgba(101, 54, 154, .06), inset 0 1px 0 rgba(255, 255, 255, .9); }
.tabbar a { height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--faint); text-decoration: none; border-radius: 20px; }
.tabbar .ind { width: 54px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; position: relative; transition: transform .2s ease; }
.tabbar .ind::before { content: ''; position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(120deg, #8F6BE8 0%, #B57BD9 55%, #EC78B5 100%); box-shadow: 0 5px 14px rgba(143, 107, 232, .38), inset 0 1px 0 rgba(255,255,255,.35); opacity: 0; transform: scale(.6); transition: opacity .22s ease, transform .28s cubic-bezier(.34,1.56,.64,1); }
.tabbar .ind svg { width: 22px; height: 22px; position: relative; transition: color .2s ease; }
.tabbar .lbl { font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; letter-spacing: .1px; transition: color .2s ease; }
.tabbar a[aria-current="page"] { color: var(--deep); }
.tabbar a[aria-current="page"] .ind { color: #fff; }
.tabbar a[aria-current="page"] .ind::before { opacity: 1; transform: scale(1); }
.tabbar a[aria-current="page"] .lbl { font-weight: 800; }
.tabbar a:active .ind { transform: scale(.92); }
.tabbar.hidden { display: none; }

.sheet-bg { position: absolute; inset: 0; background: rgba(56,35,79,.35); z-index: 40; display: none; }
.sheet-bg.open { display: block; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 28px 28px 0 0; padding: 10px 22px calc(var(--safe-b) + 24px); max-height: 88%; overflow-y: auto; z-index: 41; transform: translateY(105%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
.sheet.open { transform: none; visibility: visible; transition: transform .22s ease; }
.sheet h2[tabindex]:focus { outline: none; }
.grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line2); margin: 0 auto 14px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.input { height: 50px; border-radius: 14px; border: 1px solid var(--line2); background: #fff; padding: 0 14px; width: 100%; }
.input:focus, select:focus { outline: 2px solid var(--moon); outline-offset: 1px; }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 2px; }

.swatches { display: flex; justify-content: space-between; }
.sw { border: none; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.sw i { width: 42px; height: 42px; border-radius: 21px; display: block; }
.sw[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.sw[aria-pressed="true"] i { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--moon); }

.option { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 17px; text-align: left; width: 100%; }
.option[aria-pressed="true"] { border: 2px solid var(--moon); padding: 16px; }
.option .radio { width: 20px; height: 20px; border-radius: 10px; border: 2px solid var(--lav); flex-shrink: 0; margin-top: 2px; }
.option[aria-pressed="true"] .radio { border: 6px solid var(--deep); }
.option b { display: block; font-family: var(--font-h); font-weight: 600; font-size: 16px; }
.option span.d { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }

.faq { border-bottom: 1px solid #F3ECFB; }
.faq:last-child { border-bottom: none; }
.faq button { width: 100%; min-height: 50px; border: none; background: none; padding: 12px 0; display: flex; align-items: center; gap: 10px; text-align: left; font-size: 14px; font-weight: 700; line-height: 1.35; }
.faq .pm { width: 26px; height: 26px; flex-shrink: 0; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--tint2); color: var(--deep); transition: transform .2s; }
.faq.open .pm { background: var(--deep); color: #fff; transform: rotate(45deg); }
.faq p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: #4A3563; display: none; }
.faq.open p { display: block; }

.toast { position: absolute; left: 20px; right: 20px; bottom: calc(var(--safe-b) + 100px); background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 14px; font-size: 14px; display: flex; align-items: center; gap: 12px; z-index: 60; transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .2s; }
.toast.show { transform: none; opacity: 1; pointer-events: auto; }
.toast button { margin-left: auto; border: none; background: var(--blush); color: var(--ink); font-weight: 700; border-radius: 10px; padding: 8px 12px; font-size: 13px; }

.pdf-page { width: 100%; max-width: 300px; aspect-ratio: 210 / 260; margin: 0 auto; background: #fff; border-radius: 6px; padding: 16px; overflow: hidden; position: relative; font-size: 11px; box-shadow: 0 2px 10px rgba(101,54,154,.1); }
.pdf-page .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.pdf-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; padding: 5px 0; border-bottom: 1px solid #F3ECFB; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { height: 64px; border-radius: 16px; border: 1px solid var(--line2); background: #fff; color: var(--deep); font-size: 12px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.tile svg { width: 20px; height: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.step { position: relative; display: flex; gap: 12px; padding-bottom: 12px; }
.step:last-child { padding-bottom: 0; }
.step .n { width: 28px; height: 28px; flex-shrink: 0; border-radius: 14px; background: var(--tint); color: var(--deep); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 30px; bottom: -6px; width: 2px; background: var(--line2); }
.step > div > b { font-size: 13px; display: block; padding-top: 3px; }
.step span { font-size: 12px; color: var(--muted); line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .tabbar, .toast, .sheet, .sheet-bg { display: none !important; } }
/* Keyword highlighting */
b[class^="kw-"] { font-weight: 800; }
.kw-haid { color: #C2357F; } .kw-pure { color: #2A6E48; } .kw-ist { color: #65369A; } .kw-deep { color: #65369A; } .kw-qada { color: #8F610B; } .kw-num { color: #38234F; }
.night-copy b[class^="kw-"], .card.night b[class^="kw-"] { color: #FFFFFF; }
.night-copy .kw-haid { color: #F4A4CF; }
.toggle { appearance: none; outline-offset: 4px; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line2); position: relative; flex-shrink: 0; cursor: pointer; transition: background .2s; margin: 0; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform .2s; }
.toggle:checked { background: var(--deep); } .toggle:checked::after { transform: translateX(18px); }
/* Opening screen (v1.8.1): night sky */
.splash { position: fixed; inset: 0; z-index: 100; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 80% at 50% 38%, #6A3DA6 0%, #43226F 42%, #2A1548 72%, #1E0F36 100%);
  clip-path: circle(150% at 50% 46%); transition: clip-path .6s cubic-bezier(.7,0,.3,1), opacity .25s ease .45s; }
.splash.out { clip-path: circle(0% at 50% 46%); opacity: 0; pointer-events: none; }
.sp-sky { position: absolute; inset: 0; }
.sp-sky i { position: absolute; border-radius: 50%; background: #fff; opacity: .15; box-shadow: 0 0 6px rgba(255,255,255,.8); animation: sp-twinkle 2.6s ease-in-out infinite; }
.sp-aurora { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.sp-a1 { width: 360px; height: 360px; left: -120px; top: -80px; background: #8F6BE8; animation: sp-drift 7s ease-in-out infinite alternate; }
.sp-a2 { width: 380px; height: 380px; right: -150px; bottom: -110px; background: #EC78B5; opacity: .45; animation: sp-drift 8s ease-in-out infinite alternate-reverse; }
.sp-a3 { width: 260px; height: 260px; left: 50%; top: 46%; margin: -130px 0 0 -130px; background: #C8B0F4; opacity: .28; animation: sp-breathe 3s ease-in-out infinite alternate; }
.sp-center { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: -24px; transition: transform .6s cubic-bezier(.7,0,.3,1); }
.splash.out .sp-center { transform: scale(.82); }
.sp-tile { width: 176px; height: 176px; border-radius: 48px; display: flex; align-items: center; justify-content: center; position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 24px 60px rgba(14, 4, 32, .55), inset 0 1px 0 rgba(255,255,255,.35), inset 0 -14px 30px rgba(236,120,181,.12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transform: scale(.86) translateY(8px); animation: sp-tile .7s cubic-bezier(.2,.9,.3,1.15) .05s forwards; }
.sp-tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 62%); background-size: 250% 100%; background-position: 150% 0; animation: sp-sheen 1.1s ease-in-out 1.15s forwards; pointer-events: none; }
.splash-logo { overflow: visible; }
.splash .arc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sp-draw .5s cubic-bezier(.65,0,.35,1) forwards; }
.splash .a1 { animation-delay: .25s } .splash .a2 { animation-delay: .33s } .splash .a3 { animation-delay: .41s } .splash .a4 { animation-delay: .49s } .splash .a5 { animation-delay: .57s } .splash .a6 { animation-delay: .65s } .splash .a7 { animation-delay: .73s }
.splash .dot { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: sp-pop .35s cubic-bezier(.34,1.56,.64,1) forwards; }
.splash .d1 { animation-delay: .3s } .splash .d2 { animation-delay: .4s } .splash .d3 { animation-delay: .5s } .splash .d4 { animation-delay: .6s } .splash .d5 { animation-delay: .7s } .splash .d6 { animation-delay: .8s }
.sp-orbit { transform-origin: 512px 512px; opacity: 0; animation: sp-orbit 1.05s cubic-bezier(.45,0,.25,1) .25s forwards; }
.splash .moon { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.5) rotate(-30deg); filter: drop-shadow(0 0 18px rgba(255, 220, 240, .9)); animation: sp-moon .7s cubic-bezier(.34,1.4,.64,1) .7s forwards; }
.sp-halo { opacity: 0; animation: sp-fade .9s ease-out .85s forwards; }
.splash .star { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(0); filter: drop-shadow(0 0 10px #fff); animation: sp-star .6s ease-out 1.1s forwards; }
.splash .drop { transform-box: fill-box; transform-origin: center; opacity: 0; transform: translateY(-46px); animation: sp-drop .55s cubic-bezier(.34,1.4,.64,1) 1.15s forwards; }
.sp-word { width: 190px; height: 46px; margin-top: 26px; opacity: 0; transform: translateY(10px);
  background: linear-gradient(100deg, #FFFFFF 10%, #F3E9FF 45%, #FFC9E6 90%);
  -webkit-mask: url('../img/wordmark-white.v1.8.1.svg') center / contain no-repeat; mask: url('../img/wordmark-white.v1.8.1.svg') center / contain no-repeat;
  animation: sp-up .6s ease-out 1.05s forwards; }
.splash-tag { margin: 12px 0 0; color: rgba(255,255,255,.78); font-family: var(--font-b); font-size: 14px; font-weight: 600; letter-spacing: .35px; opacity: 0; transform: translateY(8px); animation: sp-up .6s ease-out 1.25s forwards; }
.sp-promise { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 34px); margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: rgba(255,255,255,.55); font-family: var(--font-b); font-size: 12px; font-weight: 600; letter-spacing: .3px; opacity: 0; animation: sp-fade .6s ease-out 1.45s forwards; }
@keyframes sp-tile { to { opacity: 1; transform: none; } }
@keyframes sp-sheen { to { background-position: -60% 0; } }
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
@keyframes sp-pop { to { transform: scale(1); } }
@keyframes sp-orbit { 0% { opacity: 0; transform: rotate(0); } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: rotate(360deg); } }
@keyframes sp-moon { to { opacity: 1; transform: none; } }
@keyframes sp-star { 0% { opacity: 0; transform: scale(0) rotate(-90deg); } 70% { opacity: 1; transform: scale(1.4) rotate(12deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes sp-drop { to { opacity: 1; transform: none; } }
@keyframes sp-up { to { opacity: 1; transform: none; } }
@keyframes sp-fade { to { opacity: 1; } }
@keyframes sp-twinkle { 0%, 100% { opacity: .12; transform: scale(.8); } 50% { opacity: .85; transform: scale(1.15); } }
@keyframes sp-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.15); } }
@keyframes sp-breathe { from { transform: scale(.9); opacity: .2; } to { transform: scale(1.1); opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .splash *, .splash *::after { animation: none !important; }
  .splash .arc { stroke-dashoffset: 0; } .splash .dot, .splash .moon, .splash .star, .splash .drop, .sp-word, .splash-tag, .sp-promise, .sp-tile, .sp-halo { opacity: 1; transform: none; }
  .sp-orbit { opacity: 0; } .sp-sky i { opacity: .5; }
}
/* PIN lock screen (v1.8.1) */
.screen.locked { padding: 0; overflow: hidden; }
.lock { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: space-between; color: #fff;
  padding: calc(var(--safe-t) + 44px) 24px calc(var(--safe-b) + 18px);
  background: radial-gradient(120% 80% at 50% 30%, #6A3DA6 0%, #43226F 42%, #2A1548 72%, #1E0F36 100%); transition: opacity .32s ease, transform .32s ease; animation: lk-in .4s ease-out; }
.lock.out { opacity: 0; transform: scale(1.04); }
.lk-sky { position: absolute; inset: 0; pointer-events: none; }
.lk-sky i { position: absolute; border-radius: 50%; background: #fff; opacity: .15; box-shadow: 0 0 6px rgba(255,255,255,.8); animation: sp-twinkle 2.6s ease-in-out infinite; }
.lk-a1 { width: 340px; height: 340px; left: -130px; top: -90px; background: #8F6BE8; }
.lk-a2 { width: 360px; height: 360px; right: -150px; bottom: -120px; background: #EC78B5; opacity: .4; }
.lk-sky i { will-change: opacity, transform; }
.lk-top { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.lk-icon { border-radius: 20px; box-shadow: 0 14px 34px rgba(14,4,32,.5), 0 0 0 1px rgba(255,255,255,.18); }
.lk-hello { margin: 18px 0 0; font-size: 14px; color: rgba(255,255,255,.72); }
.lk-hello b { color: #fff; font-weight: 800; }
.lk-title { margin: 6px 0 0; font-family: var(--font-h); font-weight: 600; font-size: 24px; color: #fff; }
.lk-sub { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.6); }
.lk-dots { display: flex; gap: 18px; margin-top: 26px; }
.lk-dots i { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); transition: background-color .08s ease, transform .1s ease; }
.lk-dots i.on { background: #fff; border-color: #fff; transform: scale(1.08); box-shadow: 0 0 14px rgba(255, 200, 235, .9); }
.lk-dots.ok i { background: #FFC4E4; border-color: #FFC4E4; box-shadow: 0 0 18px rgba(255, 180, 220, 1); }
.lk-dots.shake { animation: lk-shake .38s cubic-bezier(.36,.07,.19,.97); }
.lk-msg { margin: 14px 0 0; min-height: 18px; font-size: 13px; font-weight: 700; color: #FFC4E4; }
.lk-pad { position: relative; display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 28px; justify-content: center; transition: opacity .2s; }
.lk-pad.disabled { opacity: .35; pointer-events: none; }
.lk-key { width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); color: #fff; font-family: var(--font-h); font-weight: 500; font-size: 30px;
  background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; touch-action: manipulation; -webkit-user-select: none; user-select: none;
  transition: transform .06s ease-out, background-color .06s ease-out; }
.lk-key.pressed, .lk-key:active { transform: scale(.93); background: rgba(255,196,228,.34); transition-duration: 0s; }
.lk-del { background: none; border-color: transparent; box-shadow: none; color: rgba(255,255,255,.8); }
.lk-del.pressed { background: rgba(255,255,255,.12); }
.lk-forgot { position: relative; border: none; background: none; color: rgba(255,255,255,.7); font-size: 14px; font-weight: 700; padding: 10px 16px; margin-top: 6px; }
@keyframes lk-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(5px); } 30%, 50%, 70% { transform: translateX(-9px); } 40%, 60% { transform: translateX(9px); } }
@keyframes lk-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-height: 700px) { .lock { padding-top: calc(var(--safe-t) + 20px); } .lk-key { width: 64px; height: 64px; font-size: 26px; } .lk-pad { grid-template-columns: repeat(3, 64px); gap: 12px 26px; } .lk-hello { margin-top: 10px; } }
@media (prefers-reduced-motion: reduce) { .lock, .lk-sky i, .sp-aurora { animation: none !important; } }
/* Home polish (v1.8.1) */
.empty-moon { width: 40px; height: 40px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #8F6BE8, #EC78B5); box-shadow: 0 8px 20px rgba(143,107,232,.35); }
.empty-moon svg { width: 20px; height: 20px; }
.ring-center .empty-t + .small { max-width: 158px; }
.empty-t { margin: 8px 0 0; max-width: 160px; font-family: var(--font-h); font-weight: 600; font-size: 16px; line-height: 1.25; color: var(--ink); }
.gs h3 { font-size: 16px; }
.gs-bar { height: 6px; border-radius: 3px; background: var(--tint2); margin: 12px 0 4px; overflow: hidden; }
.gs-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8F6BE8, #EC78B5); }
.gs-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 0; border: none; border-bottom: 1px solid #F3ECFB; background: none; text-align: left; }
.gs-row:last-child { border-bottom: none; padding-bottom: 2px; }
.gs-row b { display: block; font-size: 14px; }
.gs-row .grow > span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.gs-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.gs-ic svg { width: 18px; height: 18px; }
.gs-row.done .gs-ic { background: #2A6E48; }
.gs-row.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(110,90,134,.4); }
.gs-go { width: 18px; height: 18px; display: flex; }
/* Timeline polish (v1.8.1) */
.tl-hero { padding: 16px 18px; }
.tl-big { margin: 8px 0 0; font-family: var(--font-h); font-weight: 600; font-size: 30px; line-height: 1.1; color: #fff; }
.tl-big span { font-family: var(--font-b); font-size: 13px; font-weight: 600; color: #E6DAF7; }
.tl-prog { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.tl-prog > div { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.16); overflow: hidden; }
.tl-prog i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #C8B0F4, #F4A4CF); }
.tl-prog span { font-size: 12px; font-weight: 700; color: #E6DAF7; min-width: 104px; text-align: right; }
.tl-card { padding: 16px 14px 16px 12px; }
.tl-hours { display: flex; justify-content: space-between; padding-left: 58px; font-size: 11px; color: var(--faint); margin-bottom: 4px; }
.tl-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.tl-day { width: 48px; font-size: 12px; font-weight: 700; color: var(--muted); }
.tl-row.today .tl-day { color: var(--deep); font-weight: 800; }
.tl-bar { height: 16px; border-radius: 8px; background: #F6F0FD; }
.tl-row.today .tl-bar { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line2); }
.tl-bar .gl { position: absolute; top: 3px; bottom: 3px; width: 1px; background: rgba(101,54,154,.12); }
.tl-bar .seg-blood { background: linear-gradient(90deg, #8F6BE8, #EC78B5); border-radius: 8px; }
.tl-bar .seg-fatrah { background: #F8C9E1; border-radius: 8px; }
.tl-bar .seg-naqa { border-radius: 8px; }
.tl-bar .now { width: 3px; margin-left: -1px; top: -3px; bottom: -3px; border-radius: 2px; background: var(--deep); box-shadow: 0 0 0 2px #fff; }
.tl-empty { text-align: center; padding: 18px 18px 22px; }
.tl-ghost { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; opacity: .55; }
.tl-ghost .bar { height: 12px; border-radius: 6px; background: #F6F0FD; }
.tl-ghost .bar span { border-radius: 6px; background: linear-gradient(90deg, #C8B0F4, #F4A4CF); }
.tl-log { padding: 6px 16px; }
.tl-group + .tl-group { border-top: 1px solid #F3ECFB; }
.tl-gh { margin: 12px 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--faint); }
.tl-ev { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 0; border: none; background: none; text-align: left; }
.tl-ev:not(:last-child)::after { content: ''; position: absolute; left: 11px; top: 32px; bottom: -10px; width: 2px; background: var(--tint2); }
.tl-dot { width: 24px; height: 24px; flex-shrink: 0; border-radius: 12px; background: var(--tint2); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.tl-dot i { width: 12px; height: 12px; border-radius: 6px; display: block; box-sizing: border-box; }
.tl-ev b { display: block; font-size: 14px; }
.tl-ev .grow > span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.tl-time { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
/* Hours per day + 15-day summary (v1.8.1) */
.tl-hours b { width: 34px; text-align: right; font-weight: 800; color: var(--faint); margin-left: 8px; }
.tl-hours { padding-right: 0; }
.tl-hrs { width: 34px; flex-shrink: 0; text-align: right; font-size: 12px; font-weight: 800; color: #C2357F; }
.tl-hrs.zero { color: #CBBEDC; font-weight: 700; }
.sm h3 { font-size: 16px; }
.sm-strip { display: grid; gap: 3px; margin-top: 14px; }
.sm-cell i { display: block; height: 22px; border-radius: 6px; background: #F3EEFA; }
.sm-cell span { display: block; text-align: center; font-size: 10px; font-weight: 700; color: var(--faint); margin-top: 4px; min-height: 12px; }
.sm-cell.haid i { background: linear-gradient(180deg, #EC78B5, #C85A9C); }
.sm-cell.naqa i { background: repeating-linear-gradient(45deg, #F4D2E5 0 3px, #fff 3px 6px); box-shadow: inset 0 0 0 1px #F0C6DC; }
.sm-cell.qada i { background: #FAE3B8; box-shadow: inset 0 0 0 2px #E3A93C; }
.sm-cell.ist i { background: #E6DAF7; box-shadow: inset 0 0 0 2px #A68AD8; }
.sm-cell.pending i { background: #F9D5E8; box-shadow: inset 0 0 0 1.5px #EC78B5; }
.sm-cell.future i { background: #FBF8FE; box-shadow: inset 0 0 0 1px #F0E9F8; }
.sm-key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sm-key.haid { background: #EC78B5; } .sm-key.naqa { background: repeating-linear-gradient(45deg, #F4D2E5 0 2px, #fff 2px 4px); box-shadow: inset 0 0 0 1px #F0C6DC; }
.sm-key.qada { background: #FAE3B8; box-shadow: inset 0 0 0 1.5px #E3A93C; } .sm-key.ist { background: #E6DAF7; box-shadow: inset 0 0 0 1.5px #A68AD8; } .sm-key.pending { background: #F9D5E8; box-shadow: inset 0 0 0 1.5px #EC78B5; }
.sm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; background: var(--soft); border-radius: 14px; padding: 10px 4px; text-align: center; }
.sm-stats > div + div { border-left: 1px solid var(--line); }
.sm-stats .k { margin: 0; font-size: 11px; color: var(--muted); }
.sm-stats .v { margin: 2px 0 0; font-family: var(--font-h); font-weight: 600; font-size: 14px; }
.sm-msg { margin: 12px 0 0; font-size: 13px; line-height: 1.55; color: #4A3563; }
.sm-rules { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line2); font-size: 11px; font-weight: 700; color: var(--faint); text-align: center; }
/* Make-up fasts (v1.8.1) */
.fq-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.16); margin-top: 12px; overflow: hidden; }
.fq-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #C8B0F4, #F4A4CF); }

/* ---------- haid guides ---------- */
.sect-h { margin: 0; font-family: var(--font-h); font-weight: 600; font-size: 16px; color: var(--ink); }
.gstack { display: flex; flex-direction: column; gap: 10px; }
.gcard { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 22px; padding: 14px 14px 14px 14px; color: var(--ink); cursor: pointer; }
.gcard.compact { padding: 11px 14px; border-radius: 18px; }
.gcard .grow { min-width: 0; display: flex; flex-direction: column; }
.gico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff; }
.gcard.compact .gico { width: 38px; height: 38px; border-radius: 13px; }
.gico svg { width: 22px; height: 22px; }
.gcard.compact .gico svg { width: 19px; height: 19px; }
.gcard.purple .gico { background: linear-gradient(135deg, #A88BF0, #8F6BE8); }
.gcard.pink .gico { background: linear-gradient(135deg, #F4A4CF, #EC78B5); }
.gcard.deep .gico { background: linear-gradient(135deg, #7A4BB5, #65369A); }
.gwho { font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--moon); }
.gcard.pink .gwho { color: #C2357F; }
.gt { font-family: var(--font-h); font-weight: 600; font-size: 15px; line-height: 1.3; margin-top: 1px; }
.gs2 { font-size: 12.5px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.gchev { width: 18px; height: 18px; flex-shrink: 0; color: #74628B; display: flex; }
.gchev svg { width: 18px; height: 18px; }

.ghero { position: relative; overflow: hidden; border-radius: 26px; padding: 22px 20px 22px; color: var(--soft); }
.ghero.purple { background: linear-gradient(150deg, #9C7BEC 0%, #7550D0 100%); }
.ghero.pink { background: linear-gradient(150deg, #F29BCB 0%, #D9589E 100%); }
.ghero.deep { background: linear-gradient(150deg, #5B3390 0%, #3F2068 100%); }
.ghero .blob { position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.12); }
.ghero .eyebrow { color: rgba(255,248,252,.85); margin-top: 14px; }
.ghero h1 { margin: 6px 0 0; font-family: var(--font-h); font-weight: 600; font-size: 26px; line-height: 1.2; color: #fff; }
.ghero .gintro { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: rgba(255,248,252,.92); }
.ghero .gintro b { color: #fff !important; }
.gico.big { position: relative; width: 50px; height: 50px; border-radius: 16px; background: rgba(255,255,255,.2); }
.gico.big svg { width: 25px; height: 25px; }

.gsec { padding: 16px 16px 16px; }
.gsh { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.gsi { width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; background: var(--tint); color: var(--deep); display: flex; align-items: center; justify-content: center; }
.gsi svg { width: 18px; height: 18px; }
.gnum { font-family: var(--font-h); font-weight: 600; font-size: 12px; color: var(--lav); }
.gsh h3 { margin: 0; font-family: var(--font-h); font-weight: 600; font-size: 16px; line-height: 1.3; }
.gsec p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: #4A3563; }
.gl { margin: 6px 0 0; padding: 0; list-style: none; }
.gl li { position: relative; padding-left: 18px; margin-top: 7px; font-size: 14px; line-height: 1.55; color: #4A3563; }
.gl li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 4px; background: var(--blush); }
.gsteps { margin: 8px 0 0; padding: 0; list-style: none; }
.gsteps li { display: flex; gap: 11px; align-items: flex-start; margin-top: 9px; font-size: 14px; line-height: 1.55; color: #4A3563; }
.gn { width: 24px; height: 24px; flex-shrink: 0; border-radius: 12px; background: var(--deep); color: #fff; font-family: var(--font-h); font-weight: 600; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 0; }
.gtwo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.gcol { border-radius: 16px; padding: 12px 10px 10px; }
.gcol.no { background: var(--pinkbg); }
.gcol.yes { background: #EAF7F0; }
.gcol > b { display: block; font-family: var(--font-h); font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.gcol.no > b { color: #C2357F; }
.gcol.yes > b { color: #237A52; }
.gcol ul { margin: 0; padding: 0; list-style: none; }
.gcol li { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: #4A3563; }
.gm { width: 16px; height: 16px; flex-shrink: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.gm svg { width: 11px; height: 11px; stroke-width: 3; }
.gcol.no .gm { background: #F8CFE4; color: #C2357F; }
.gcol.yes .gm { background: #C9EBD8; color: #237A52; }
.gtip { margin-top: 12px; border-radius: 14px; background: var(--tint2); border-left: 4px solid var(--moon); padding: 10px 12px; font-size: 13px; line-height: 1.5; color: #4A3563; font-weight: 600; }

/* ---------- husband share page (s.html) ---------- */
body.share-page { overflow: auto; -webkit-user-select: text; user-select: text; height: auto; min-height: 100%; }
.sv { max-width: 480px; margin: 0 auto; padding: calc(var(--safe-t) + 18px) 18px calc(var(--safe-b) + 32px); display: flex; flex-direction: column; gap: 12px; }
.sv-top { display: flex; align-items: center; gap: 10px; }
.sv-top b { display: block; font-family: var(--font-h); font-weight: 600; font-size: 16px; }
.sv-top span { display: block; font-size: 12px; color: var(--muted); }
.sv-hero { padding: 22px 20px 24px; }
.sv-hero .eyebrow { margin-top: 0; }
.sv-lbl { position: relative; z-index: 1; margin: 14px 0 0; font-size: 14px; color: rgba(255,248,252,.88); }
.sv-big { position: relative; z-index: 1; margin: 2px 0 0; font-family: var(--font-h); font-weight: 600; font-size: 64px; line-height: 1; color: #fff; }
.sv-big span { font-size: 20px; margin-left: 8px; font-weight: 500; }
.sv-big.sm { font-size: 24px; line-height: 1.25; margin-top: 12px; }
.sv-sub { position: relative; z-index: 1; margin: 10px 0 0; font-size: 15px; color: #fff; font-weight: 600; }
.sv-st { border-left: 5px solid #2A6E48; }
.sv-st.haid, .sv-st.pending { border-left-color: var(--haid); }
.sv-st.check, .sv-st.naqa { border-left-color: var(--warn); }
.sv-st.istihadhah, .sv-st.short { border-left-color: var(--moon); }
.sv-stn { margin: 4px 0 0; font-family: var(--font-h); font-weight: 600; font-size: 20px; }
.sv-stn span { font-size: 14px; color: var(--muted); font-weight: 500; }
.sv-std { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: #4A3563; }
a.btn { text-decoration: none; }
.sv-priv { align-items: flex-start; padding: 4px 4px 0; }
.sv-priv > span { width: 18px; height: 18px; flex-shrink: 0; color: var(--deep); }
.sv-priv > span svg { width: 18px; height: 18px; }

/* ---------- prediction strip + sheet ---------- */
.pstrip { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 18px; background: linear-gradient(135deg, #FDEEF6, #F5EEFC); }
.pstrip .pico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 13px; background: linear-gradient(135deg, #F4A4CF, #EC78B5); color: #fff; display: flex; align-items: center; justify-content: center; }
.pstrip .pico svg { width: 20px; height: 20px; }
.pstrip .grow { display: flex; flex-direction: column; }
.pstrip .pk { font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--haid); }
.pstrip b { font-family: var(--font-h); font-weight: 600; font-size: 15px; margin-top: 1px; }
.pstrip .grow > span:last-child { font-size: 12px; color: var(--muted); margin-top: 1px; }
.pstrip .pedit { width: 40px; height: 40px; background: #fff; border: none; box-shadow: 0 2px 8px rgba(101,54,154,.12); }
.prow { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 18px; }
.prow .grow { display: flex; flex-direction: column; }
.prow b { font-size: 15px; }
.prow .grow span { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pstep { display: flex; align-items: center; gap: 8px; }
.pstep .icon-btn { width: 44px; height: 44px; background: var(--tint2); border: none; }
.pstep span { min-width: 30px; text-align: center; font-family: var(--font-h); font-weight: 600; font-size: 20px; }

/* ---------- simple mode ---------- */
.praybig { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: none; border-radius: 22px; padding: 16px; color: var(--ink); }
.praybig.yes { background: #E3F3EA; } .praybig.no { background: var(--pinkbg); } .praybig.wait { background: #FBF1DC; }
.praybig .pb-ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; }
.praybig.yes .pb-ic { background: #2A6E48; } .praybig.no .pb-ic { background: var(--haid); } .praybig.wait .pb-ic { background: var(--warn); }
.praybig .pb-ic svg { width: 26px; height: 26px; stroke-width: 2.6; }
.praybig .grow { display: flex; flex-direction: column; }
.praybig .pb-q { font-size: 13px; font-weight: 700; color: var(--muted); }
.praybig .pb-a { font-family: var(--font-h); font-weight: 600; font-size: 18px; line-height: 1.3; margin-top: 2px; }
.praybig.yes .pb-a { color: #2A6E48; } .praybig.no .pb-a { color: var(--haid); } .praybig.wait .pb-a { color: var(--warn); }
.simple-ui .cal .d small, .simple-ui .cal .d .s:not([style]), .simple-ui .lg-sunnah { display: none; }
.simple-ui .cal .d { height: 42px; }
.simple-ui .cal .d b { font-size: 15px; }

/* ---------- large text: scale the whole screen evenly so layouts keep their proportions ---------- */
.big-text .screen, .big-text .sheet, .big-text .toast { zoom: 1.15; }
.big-text .tabbar .lbl { font-size: 12px; font-weight: 800; }

.faq p, .gsec p, .gl li { overflow-wrap: anywhere; }
.cal-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.cal-hint svg { width: 14px; height: 14px; }

/* ---------- husband mode: same icons, fonts and cards; a deeper, cooler LunaDeen palette (night purple, lavender, less pink) ---------- */
.husband-ui { --soft: #F7F4FC; --pinkbg: #EFE8FA; --night: #2E1A52; --night2: #4A2775; }
.husband-ui .card.night { background: linear-gradient(150deg, #4A2775 0%, #2E1A52 60%, #231140 100%); }
.husband-ui .card.night .blob { background: #65369A; opacity: .55; }
.husband-ui .tabbar .ind::before { background: linear-gradient(120deg, #4A2775 0%, #65369A 55%, #8F6BE8 100%); box-shadow: 0 5px 14px rgba(74, 39, 117, .35), inset 0 1px 0 rgba(255,255,255,.25); }
.husband-ui .btn.primary { background: #4A2775; border-color: #4A2775; }
.hb-hero-ic { display: inline-flex; width: 52px; height: 52px; border-radius: 18px; background: rgba(255,255,255,.12); align-items: center; justify-content: center; }
.hb-hero-ic svg { width: 26px; height: 26px; }
.hb-tip { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.hb-tip:first-child { border-top: none; padding-top: 0; }
.hb-tip .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hb-tip .ic svg { width: 20px; height: 20px; }
.hb-tip b { font-size: 14px; } .hb-tip p { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.hb-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; }
.hb-d { height: 46px; border-radius: 12px; background: var(--tint2); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--ink); }
.hb-d small { font-size: 10px; font-weight: 700; color: var(--faint); }
.hb-d.h { background: linear-gradient(180deg, #CC3F88, #C2357F); color: #fff; } .hb-d.h small { color: #fff; }
.hb-d.p { background: repeating-linear-gradient(135deg, #FDEEF6 0 6px, #FAE0EE 6px 12px); color: #B02F72; } .hb-d.p small { color: #B02F72; }
.hb-d.now { box-shadow: inset 0 0 0 2px #4A2775; }
.hb-mod { gap: 12px; }
.hb-num { width: 34px; height: 34px; border-radius: 17px; background: var(--tint); color: var(--deep); font-family: var(--font-h); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hb-num.done { background: var(--ok); } .hb-num svg { width: 18px; height: 18px; }
.hb-mod > svg { width: 18px; height: 18px; flex-shrink: 0; }
.hb-cam { position: relative; margin-top: 14px; border-radius: 20px; overflow: hidden; background: #1B0F30; aspect-ratio: 1 / 1; }
.hb-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-frame { position: absolute; inset: 18%; border: 3px solid #C8B0F4; border-radius: 22px; box-shadow: 0 0 0 999px rgba(27, 15, 48, .35); }
.option.hb-right { border: 2px solid var(--ok); padding: 16px; } .option.hb-wrong { border: 2px solid #A3264F; padding: 16px; }
.qr-box { width: 220px; height: 220px; margin: 14px auto 8px; background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 6px 20px rgba(101, 54, 154, .15); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; text-align: center; }
.qr-box svg { width: 100%; height: 100%; display: block; }

/* Important notice at the top of Home (backup, update husband): night purple with a soft glow, seen without scrolling */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 22px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #8F6BE8 0%, #65369A 42%, #4A2775 100%); box-shadow: 0 10px 26px rgba(74, 39, 117, .28); }
.notice::after { content: ''; position: absolute; right: -30px; top: -40px; width: 120px; height: 120px; border-radius: 60px; background: rgba(255,255,255,.08); pointer-events: none; }
.notice .n-ic { width: 40px; height: 40px; border-radius: 14px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notice .n-ic svg { width: 21px; height: 21px; }
.notice b { font-family: var(--font-h); font-weight: 600; font-size: 15.5px; display: block; }
.notice p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: #EDE3FB; }
.notice .btn.n-main { background: #fff; color: var(--deep); border-color: #fff; }
.notice .btn.n-alt { background: transparent; color: #fff; border-color: rgba(255,255,255,.38); }

.in-steps { margin: 8px 0 0; padding-left: 22px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.in-steps li + li { margin-top: 6px; }
.in-steps.small { font-size: 13px; color: var(--muted); }

/* =====================================================================
   Premium layer (v1.8): soft depth, gradients and glow, same palette.
   ===================================================================== */
.screen { background: radial-gradient(130% 55% at 50% -8%, #F1E8FD 0%, rgba(241, 232, 253, 0) 62%), var(--soft); }
.card { background: linear-gradient(180deg, #FFFFFF 0%, #FCF9FF 100%); border: 1px solid rgba(200, 176, 244, .32); border-radius: 24px;
  box-shadow: 0 1px 2px rgba(56, 35, 79, .04), 0 12px 30px -14px rgba(101, 54, 154, .22); }
.card.night { box-shadow: 0 16px 34px -14px rgba(74, 39, 117, .55); }
.card h3 { display: flex; align-items: center; gap: 8px; }
.card h3 svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn { box-shadow: 0 1px 2px rgba(56, 35, 79, .05); transition: transform .12s ease, box-shadow .2s ease; }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, #8556CF 0%, #65369A 55%, #552A87 100%); border-color: transparent;
  box-shadow: 0 10px 22px -10px rgba(101, 54, 154, .75), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn.rose { background: linear-gradient(135deg, #F28DC2 0%, #EC78B5 45%, #D4599E 100%); border-color: transparent;
  box-shadow: 0 10px 22px -10px rgba(212, 89, 158, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.alert { box-shadow: 0 8px 22px -14px rgba(101, 54, 154, .35); }
.chip[aria-pressed="true"] { background: linear-gradient(135deg, #8556CF, #65369A); border-color: transparent; box-shadow: 0 6px 14px -8px rgba(101, 54, 154, .7); }

/* tab bar: floating glass with a raised Log / Missions button */
.tabbar { overflow: visible; }
.tab-fab { border: none; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--deep); text-decoration: none; font: inherit; cursor: pointer; height: 64px; justify-content: flex-end; }
.tab-fab .fab { width: 60px; height: 60px; border-radius: 30px; margin-top: -34px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(140deg, #F28DC2 0%, #B57BD9 52%, #8F6BE8 100%);
  box-shadow: 0 12px 24px -6px rgba(143, 107, 232, .6), 0 0 0 5px rgba(255, 255, 255, .96), 0 0 0 6px rgba(200, 176, 244, .45); transition: transform .15s ease; }
.tab-fab .fab svg { width: 28px; height: 28px; stroke-width: 2.4; }
.tab-fab:active .fab { transform: scale(.93); }
.tab-fab .lbl { font-size: 11px; font-weight: 800; }
.tab-fab[aria-current="page"] .fab { box-shadow: 0 12px 26px -4px rgba(143, 107, 232, .75), 0 0 0 5px #fff, 0 0 0 8px rgba(143, 107, 232, .35); }
.husband-ui .tab-fab .fab { background: linear-gradient(140deg, #8F6BE8 0%, #65369A 50%, #4A2775 100%); box-shadow: 0 12px 24px -6px rgba(74, 39, 117, .6), 0 0 0 5px rgba(255, 255, 255, .96), 0 0 0 6px rgba(143, 107, 232, .35); }

/* log menu */
.act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.act { border: 1px solid rgba(200, 176, 244, .4); background: linear-gradient(180deg, #fff, #FBF8FF); border-radius: 20px; padding: 14px 12px; text-align: left; display: flex; flex-direction: column; gap: 6px; color: var(--ink); font: inherit; cursor: pointer;
  box-shadow: 0 8px 20px -14px rgba(101, 54, 154, .45); min-height: 118px; }
.act:active { transform: scale(.98); }
.act-ic { width: 44px; height: 44px; border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.act-ic svg { width: 22px; height: 22px; }
.act b { font-size: 14px; line-height: 1.25; } .act span { font-size: 12px; color: var(--muted); line-height: 1.35; }

/* calendar: soft tiles, glowing ranges, icons */
.cal-card .cal { row-gap: 5px; }
.cal .d { height: 50px; }
.cal .d:not(.haid):not(.ist):not(.pred):not(.fert):not(.ovu):not(.ram) { background: linear-gradient(180deg, #FFFFFF, #FAF6FF); box-shadow: inset 0 0 0 1px rgba(200, 176, 244, .26); }
.cal .d.haid { background: linear-gradient(180deg, #D7488F 0%, #C2357F 100%); box-shadow: 0 8px 16px -10px rgba(194, 53, 127, .9); }
.cal .d.pred { box-shadow: inset 0 0 0 1px rgba(236, 120, 181, .35); }
.cal .d.fert { background: linear-gradient(180deg, #F0F9F3, #E3F3EA); color: #2A6E48; border-radius: 15px; margin: 0 2px; box-shadow: inset 0 0 0 1px rgba(42, 110, 72, .15); }
.cal .d.fert small { color: #3E8A5E; }
.cal .d.ovu { background: linear-gradient(160deg, #46A673 0%, #2A6E48 100%); color: #fff; border-radius: 15px; margin: 0 2px; box-shadow: 0 8px 16px -8px rgba(42, 110, 72, .8); }
.cal .d.ovu small { color: #E3F3EA; }
.cal .d.today { box-shadow: inset 0 0 0 2px var(--deep), 0 0 0 3px rgba(143, 107, 232, .22); }
.cal .d .dm { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 13px; height: 13px; display: flex; font-style: normal; }
.cal .d .dm svg { width: 13px; height: 13px; }
.cal .d .dm.p { color: #B02F72; } .cal .d .dm.o { color: #fff; } .cal .d .dm.f { color: #2A6E48; } .cal .d .dm.s { color: #D9A520; }
.cal .d.haid .dm { color: #fff; }
.cal-legend { gap: 6px; margin-top: 12px; }
.cal-legend span { background: #F7F2FD; border-radius: 999px; padding: 5px 10px 5px 8px; font-weight: 700; font-size: 11px; color: var(--muted); }
.cal-legend svg { width: 13px; height: 13px; }
.cal-legend i { width: 11px; height: 11px; border-radius: 4px; }
.lg-haid { color: #C2357F !important; } .lg-pred { color: #B02F72 !important; } .lg-ovu { color: #2A6E48 !important; } .lg-done { color: #2A6E48 !important; } .lg-sun { color: #B8860B !important; }
.lg-ist i { background: var(--tint); box-shadow: inset 0 0 0 1px rgba(101, 54, 154, .25); } .lg-fert i { background: #E3F3EA; box-shadow: inset 0 0 0 1px rgba(42, 110, 72, .25); }
.simple-ui .cal .d { height: 46px; }

/* cycle summary */
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cs-box { border-radius: 18px; padding: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.cs-box.a { background: linear-gradient(160deg, #F1EEFE 0%, #E3E6FB 100%); } .cs-box.b { background: linear-gradient(160deg, #FDF0F7 0%, #FADDEB 100%); }
.cs-box b { display: block; font-family: var(--font-h); font-weight: 600; font-size: 22px; color: var(--ink); }
.cs-box span { font-size: 12px; color: var(--muted); }
.cs-bars { display: flex; align-items: flex-end; gap: 8px; height: 88px; margin-top: 22px; padding: 0 2px; }
.cs-bars i { flex: 1; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, #C8B0F4, #A88BE6); position: relative; font-style: normal; }
.cs-bars i.last { background: linear-gradient(180deg, #F4A4CF, #E070AC); }
.cs-bars em { position: absolute; top: -17px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--muted); }

/* husband: messages, missions */
.msg-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-top: 8px; border: 1px solid rgba(200, 176, 244, .4); border-radius: 16px; background: linear-gradient(180deg, #fff, #FBF8FF); text-align: left; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.msg-row .ic { width: 34px; height: 34px; border-radius: 12px; background: var(--tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.msg-row .ic svg { width: 18px; height: 18px; } .msg-row > svg { width: 18px; height: 18px; flex-shrink: 0; }
.mission { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 0; border: none; border-top: 1px solid var(--line); background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.mission:first-child { border-top: none; }
.mission b { display: block; font-size: 14.5px; } .mission .small { display: block; margin-top: 2px; }
.mission .chk { width: 30px; height: 30px; border-radius: 11px; border: 2px solid var(--lav); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
.mission .chk svg { width: 17px; height: 17px; opacity: 0; }
.mission[aria-pressed="true"] .chk { background: linear-gradient(135deg, #46A673, #2A6E48); border-color: transparent; box-shadow: 0 6px 14px -6px rgba(42, 110, 72, .8); }
.mission[aria-pressed="true"] .chk svg { opacity: 1; }
.mission[aria-pressed="true"] b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(110, 90, 134, .45); }
.hm-week { display: flex; gap: 6px; margin-top: 14px; }
.hm-week span { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.hm-week span.on { background: linear-gradient(90deg, #C8B0F4, #FFFFFF); box-shadow: 0 0 10px rgba(200, 176, 244, .6); }
.dua { font-family: var(--font-h); font-weight: 600; font-size: 17px; color: var(--deep); margin: 10px 0 4px; line-height: 1.5; }
.sync-pill { background: rgba(126, 211, 164, .16) !important; color: #A6E9C4 !important; }
.sync-pill i { width: 7px; height: 7px; border-radius: 4px; background: #7ED3A4; box-shadow: 0 0 0 3px rgba(126, 211, 164, .25); display: inline-block; }

/* icons inside a line of text keep the size of the text */
p > svg, .small > svg, li > svg { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex-shrink: 0; }

/* tab bar: one baseline for every label, the Log button rises above the bar, solid frosted glass */
.tabbar { height: 76px; align-items: end; background: linear-gradient(180deg, rgba(255, 255, 255, .985), rgba(250, 246, 255, .985));
  -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid rgba(200, 176, 244, .5); box-shadow: 0 18px 40px -12px rgba(74, 39, 117, .32), 0 2px 8px rgba(101, 54, 154, .08), inset 0 1px 0 #fff; }
.tabbar a, .tab-fab { height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; padding: 0 0 11px; }
.tabbar .ind { height: 34px; }
.tabbar .lbl { height: 12px; line-height: 12px; }
.tab-fab .fab { width: 62px; height: 62px; border-radius: 31px; margin: 0 0 1px; }
.tab-fab .lbl { color: var(--deep); }
.screen { padding-bottom: calc(var(--safe-b) + 128px); }

/* delete data */
.danger-card { border-color: rgba(163, 38, 79, .22); background: linear-gradient(180deg, #FFFFFF 0%, #FFF8FA 100%); }
.btn.danger { background: linear-gradient(135deg, #C2416E 0%, #A3264F 100%); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -10px rgba(163, 38, 79, .7); }
.btn.danger:disabled { opacity: .45; box-shadow: none; }
