/* Restrained, system-native visual layer. Existing controls/data stay intact. */
:root{--ink:#29252b;--muted:#78727b;--pink:#a65f7f;--paper:#f5f4f7;--line:#e9e6eb;--shadow:none}
body{background:var(--paper);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Khmer OS',sans-serif;font-size:15px;line-height:1.5}h1,h2,h3,.brand,.teaser-copy h3,.insight-number,.goal-overview>strong,.mini-stat strong,.chapter-ring strong{font-family:inherit;font-style:normal}h1{font-size:34px!important;font-weight:720;letter-spacing:-1px;line-height:1.2}h2{font-size:21px!important;font-weight:650;letter-spacing:-.4px;line-height:1.35}h3{font-size:15px;font-weight:600}.shell{max-width:1060px;padding:20px 30px 130px}.top{border:0;padding:0;margin-bottom:25px;min-height:36px}.brand{font-size:24px;font-weight:700;letter-spacing:-1px;color:var(--ink);display:flex;align-items:center;gap:4px}.brand .brand-dot{width:5px;height:5px;border-radius:50%;background:#b67b98;margin:14px 0 0}.lang{border:0;background:#eae7ed;box-shadow:none;font-size:12px;padding:7px 12px;max-width:120px;border-radius:12px}.greeting{margin-bottom:24px}.greeting .eyebrow{font-size:11px;text-transform:none;letter-spacing:0;color:var(--muted);font-weight:500;margin-bottom:6px}.greeting .muted{font-size:14px;margin-top:8px}.privacy-pill{background:transparent;color:var(--muted);font-size:11px;padding:0}.eyebrow{letter-spacing:.6px;font-size:10px;color:var(--muted)}.card,.chapter-card{background:#fff;border:0;border-radius:20px;box-shadow:none;padding:22px;margin-bottom:20px}.home-primary,.home-secondary,.grid{gap:20px}.chapter-card{background:#f0e6ed}.chapter-card:before{display:none}.chapter-top{margin-bottom:18px}.chapter-top .pill{padding:0;background:transparent;border-radius:0;font-size:12px;color:#8a5b74}.chapter-main{grid-template-columns:1fr 134px;gap:14px}.chapter-main h2{font-size:26px!important;font-weight:650;letter-spacing:-.6px;max-width:230px}.chapter-main p{font-size:12px;color:#7e6776;margin-top:12px}.chapter-main p strong{font-size:15px;font-weight:600;display:inline-block;margin-top:4px}.chapter-ring{width:134px;height:134px;filter:none}.chapter-ring>div{width:106px;height:106px;background:#ffffff75}.chapter-ring strong{font-size:41px;font-weight:600;letter-spacing:-1px;color:#78546a}.chapter-ring span{font-size:10px}.ring-track{stroke:#fff;stroke-width:3}.ring-value{stroke:#b47f9b;stroke-width:3}.chapter-card .chapter-detail{margin:18px 0 16px}.chapter-card .notice{color:#7c6a76;font-size:11px}.chapter-card>.btn{background:white;border:0;min-height:44px;color:#8d5b76}.btn{box-shadow:none;border-radius:12px;min-height:44px;font-size:14px;padding:11px 16px;font-weight:600}.btn.outline{border:0;background:#f2eff4;color:#795b73}.btn.light{background:white}.btn:hover{box-shadow:none;transform:none}.text-btn{font-size:20px;background:transparent;color:#9a6984}.quick-check{display:block;padding:22px}.quick-check .row>.pill{display:none}.moods{margin-top:20px;gap:5px}.moods button{padding:8px 2px 5px;border:0;border-radius:12px}.moods button.selected{background:#f3edf3!important;box-shadow:none!important}.moods button.selected .mood-face{transform:none}.mood-face{width:37px;height:37px}.moods button small{font-size:10px;margin-top:8px}.mood-dot{display:none}.quick-check .moods{margin-bottom:22px}.quick-fields{gap:0;border:1px solid #eeebf0;border-radius:14px;overflow:hidden;margin-bottom:18px}.mini-stat,.mini-stat:first-child{border:0;background:#faf9fb;border-radius:0;padding:14px 12px}.mini-stat:first-child{border-right:1px solid #eeebf0}.mini-stat>span{font-size:12px}.mini-stat strong{font-size:24px;font-weight:600;letter-spacing:-.4px}.mini-stat input{font-size:22px;background:white;border-radius:8px}.stepper{box-shadow:none;border:0;background:#eeebf1;border-radius:9px;font-size:18px;width:32px}.section{margin:12px 2px 12px}.home-secondary h2{font-size:19px!important}.goal-overview{padding-bottom:10px;gap:6px 10px}.goal-overview>strong{font-size:23px;font-weight:600}.goal-segments{margin-top:4px;gap:4px}.goal-segments i{height:3px}.goal-segments i.filled{background:#ba9bb6}.goals .row{padding:16px 0;border-color:#eeebf0}.goals h3{font-size:14px;font-weight:500}.goals small{font-size:11px}.iconbox{height:35px;width:35px;border-radius:10px;background:#f3eef4}.iconbox .line-icon{width:20px;height:20px}.check{width:32px;height:32px;font-size:16px;border-color:#ded6df}.check.yes{background:#a688aa;border-color:#a688aa;box-shadow:none}.movement-teaser{display:flex;align-items:center;padding:14px;gap:15px;min-height:128px}.movement-teaser .workart{width:128px;flex-shrink:0;border-radius:12px;aspect-ratio:3/2}.teaser-copy{padding:0;flex:1;gap:8px}.teaser-copy h3{font-size:16px;font-weight:600;line-height:1.4}.teaser-copy .eyebrow{font-size:10px;letter-spacing:0}.round-action{width:36px;height:36px;background:transparent;font-size:21px;flex-shrink:0}.care-drawer{background:#fff;border:0;border-radius:18px;margin:0 0 18px;padding:3px 20px}.care-drawer summary{font-size:14px;padding:16px 0;font-weight:500}.care-drawer summary>svg{width:20px;height:20px;color:#a07c97}.care-drawer summary>span{font-size:19px;color:#91838f}.care-drawer .card{background:#f8f6f9;border-radius:14px}.banner{background:#eeebf3;border-radius:16px;padding:18px;font-size:13px}.pill{background:#f2edf3;color:#886680;font-size:11px}.nav{bottom:0;left:0;transform:none;width:100%;max-width:none;border-radius:0;border:0;border-top:1px solid #d9d3de90;background:#faf9fcf0;box-shadow:none;backdrop-filter:blur(20px);justify-content:center;padding:8px max(12px,calc((100vw - 570px)/2)) max(10px,env(safe-area-inset-bottom))}.nav button{border-radius:0;padding:5px 2px;flex:1;max-width:115px;font-size:10px;color:#8c8590;font-weight:500}.nav button.active{background:transparent;color:#9d6586}.nav button.active:after{display:none}.nav .active .line-icon{transform:none!important;animation:none!important}.nav b{height:28px}.nav button .line-icon{width:23px;height:23px}.nav button.active .line-icon{stroke-width:2}.experience-card{background:#fff}.setting-row{padding:18px 0}.setting-row strong{font-size:14px;font-weight:500}.setting-row small{font-size:11px}.field{margin:18px 0}.field span{font-size:13px;color:#625965;font-weight:500}input,select,textarea{background:#f7f5f9;border:0;border-radius:11px;padding:12px;font-size:16px}.lang{font-size:12px}.field input:focus,.field textarea:focus{outline:2px solid #bea5b9;outline-offset:1px}.modecards{gap:5px;background:#f0edf3;padding:4px;border-radius:12px}.modecards button{border:0;background:transparent;padding:12px 5px;border-radius:9px}.modecards button.selected{background:white!important;box-shadow:0 1px 3px #0000000a!important}.modecards b{font-size:20px;margin-bottom:4px}.modecards button{font-size:12px}.calendar button{background:#f7f5f9;border-radius:12px;min-height:38px}.calendar button.selected{outline:2px solid #a77e9c}.chips button{border:0;background:#f2eff5;border-radius:10px;padding:10px 13px;font-size:13px}.chips button.selected{box-shadow:none!important;background:#eadfea!important}.session-controls{border:0;border-radius:15px;bottom:90px;background:#faf9fcf0}.session-controls .btn{min-height:46px}.session-complete{padding:30px 22px}.timer{font-family:inherit;font-size:60px;font-weight:300;font-variant-numeric:tabular-nums;letter-spacing:-2px}.complete-mark{box-shadow:none}.bar i,.sleep-column i{background:#c5b1d1}.progress i{background:#b79fc2}.range-control{border-radius:10px;padding:3px}.range-control button{border-radius:8px;font-size:11px}.insight-number{font-size:37px;font-weight:600}.insight-coverage strong{font-family:inherit;font-size:23px;font-weight:600}.notice{font-size:12px;line-height:1.6}#toast{bottom:100px;background:#514653ee;border-radius:13px;font-size:12px;box-shadow:none}.touch-bloom{background:#ba9ab324}.workart{border-radius:14px}.welcome h1{font-size:34px!important}.welcome .hero{border-radius:22px;background:#f0e6ed}.home-secondary section .goals{margin-bottom:20px}@media(max-width:720px){.shell{padding:18px 18px 115px}.top{margin-bottom:26px}.greeting h1{font-size:34px!important}.greeting{margin-bottom:22px}.card,.chapter-card{padding:20px;border-radius:18px;margin-bottom:18px}.chapter-main{grid-template-columns:1fr 120px;gap:10px}.chapter-main h2{font-size:25px!important}.chapter-ring{width:120px;height:120px}.chapter-ring>div{width:94px;height:94px}.chapter-ring strong{font-size:38px}.quick-check h2{font-size:20px!important}.mini-stat{padding:13px 10px}.mood-face{width:37px;height:37px}.movement-teaser{padding:13px;gap:13px;min-height:118px}.movement-teaser .workart{width:105px}.teaser-copy{display:flex;gap:5px}.teaser-copy h3{font-size:15px}.round-action{width:25px;font-size:20px}.nav{bottom:0;max-width:none;width:100%;border-radius:0;padding:8px 10px max(12px,env(safe-area-inset-bottom))}.nav button{font-size:10px;max-width:none;border-radius:0}.care-drawer{padding:2px 18px}.home-secondary h2{font-size:19px!important}.session-controls{bottom:92px}.privacy-pill{display:none}}@media(max-width:360px){.shell{padding-left:14px;padding-right:14px}.chapter-card{padding:18px}.chapter-main{grid-template-columns:1fr 103px;gap:8px}.chapter-main h2{font-size:22px!important}.chapter-ring{width:103px;height:103px}.chapter-ring>div{width:82px;height:82px}.chapter-ring strong{font-size:33px}.mood-face{width:32px;height:32px}.movement-teaser .workart{width:88px}.teaser-copy h3{font-size:14px}.nav button{font-size:9px}}html[lang=km] h1,html[lang=km] h2{line-height:1.5;letter-spacing:0}html[lang=km] .chapter-main h2{font-size:22px!important}html[lang=km] .teaser-copy h3{font-size:14px}html[lang=zh] h1,html[lang=zh] h2{letter-spacing:0}
/* Local vault: quiet, focused and keyboard-friendly. */
.privacy-screen{max-width:460px;margin:32px auto;padding:24px 20px 100px}.privacy-screen h1{text-align:center;margin:20px 0}.privacy-screen>.muted{text-align:center}.privacy-screen .card{margin-top:24px}.privacy-emblem{width:72px;height:72px;border-radius:24px;background:#f3e5ee;color:#97677e;display:grid;place-items:center;margin:auto}.privacy-emblem svg{width:34px;height:34px}.privacy-screen input[type=password]{font:inherit;width:100%;min-height:48px}.privacy-screen input[type=checkbox]{flex-shrink:0}.privacy-screen button{margin-top:10px}.privacy-screen [role=alert]{color:#a13d54}.top #lock-now{font-size:12px;margin-left:auto;margin-right:12px}
/* Native webview includes its own safe-area handling. */
.native-app .shell{padding-top:calc(20px + env(safe-area-inset-top));padding-bottom:calc(130px + env(safe-area-inset-bottom))}.native-app body{overscroll-behavior-y:none}.native-app input,.native-app textarea,.native-app select{font-size:16px}
/* Luna motion studio — small responses, generous settling time. */
:root{--luna-spring:cubic-bezier(.18,.85,.25,1);--luna-ease:cubic-bezier(.22,.61,.36,1)}
.btn,.stepper,.round-action,.check,.moods button,.palette,.nav button{transition:transform 220ms var(--luna-spring),background-color 220ms ease,box-shadow 220ms ease;-webkit-tap-highlight-color:transparent}
.btn:active,.round-action:active{transform:scale(.965)}.stepper:active,.check:active{transform:scale(.88)}.moods button:active .mood-face{transform:scale(.88) rotate(-5deg)}.mood-face{transition:transform 350ms var(--luna-spring),filter 250ms ease}.moods .selected .mood-face{filter:drop-shadow(0 4px 5px #bc829a30)}
.nav button.active b{animation:nav-arrive 450ms var(--luna-spring)}.nav button.active:after{content:'';position:absolute;width:4px;height:4px;border-radius:50%;background:currentColor;bottom:4px;left:calc(50% - 2px);animation:soft-arrive 350ms ease}.nav button{position:relative}.progress i{transition:width 650ms var(--luna-ease)}.chapter-ring .ring-value{transition:stroke-dasharray 900ms var(--luna-ease)}.goal-segments i{transition:background-color 350ms ease,transform 350ms var(--luna-spring)}.goal-segments i.filled{transform:scaleY(1.08)}
#main-content.animate{animation:none}.session-complete .complete-mark{animation:completion-mark 650ms var(--luna-spring)}.session-complete .completion-halo{animation:soft-arrive 700ms ease}.session-complete h2{animation:soft-arrive 500ms 80ms both}.session-complete .timer{animation:soft-arrive 500ms 150ms both}.privacy-screen{animation:soft-arrive 250ms ease}#toast{transition:opacity 220ms ease,transform 300ms var(--luna-spring)}
.sound-palettes{border:0;padding:0;margin:18px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.sound-palettes legend{font-size:13px;color:var(--muted);margin-bottom:12px}.palette{border:1px solid #e9e1e7;border-radius:18px;background:#faf7fa;padding:14px 6px;display:grid;gap:8px;place-items:center;cursor:pointer}.palette span{font-size:29px;line-height:1;color:#a67592}.palette strong{font-size:12px;font-weight:550}.palette.chosen{background:#f0e5ee;border-color:#bc91ab;box-shadow:inset 0 0 0 1px #bc91ab}.palette:active{transform:scale(.95)}
.calm-visual{height:290px;position:relative;display:grid;place-items:center;isolation:isolate;overflow:hidden;border-radius:28px;background:radial-gradient(ellipse at 50% 65%,#eee3f4 0,#fcf8f6 66%);margin:0 0 10px}.calm-aura{position:absolute;width:210px;height:210px;border-radius:50%;background:radial-gradient(circle,#dfc4dc66,transparent 70%);animation:aura-drift 9s ease-in-out infinite}.calm-orb{width:136px;height:136px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 32% 24%,#fff8f4 0,#eed5e4 38%,#c8b5d8 85%);box-shadow:inset 0 2px 5px #fff9,0 15px 35px #9d7caa22;animation:orb-float 9s ease-in-out infinite}.calm-orb span{font-size:53px;color:#94748c;text-shadow:0 2px 2px #fff9}.calm-orbit{position:absolute;width:220px;height:220px;border:1px solid #c1a3bf45;border-radius:50%;transform:rotateX(58deg) rotate(-25deg)}.orbit-two{width:250px;height:250px;transform:rotateX(55deg) rotate(38deg);border-color:#d7b8c53d}.calm-spark{position:absolute;width:6px;height:6px;background:#fff5e8;border-radius:50%;box-shadow:0 0 12px #ccadc9;animation:spark-drift 7s ease-in-out infinite}.spark-one{left:24%;top:34%}.spark-two{right:23%;top:63%;animation-delay:-2s;width:4px;height:4px}.spark-three{right:32%;top:21%;animation-delay:-4s;width:3px;height:3px}.calm-caption{text-align:center;font-size:13px!important;color:var(--muted);max-width:290px;margin:0 auto 24px!important;line-height:1.6}.is-paused .calm-orb,.is-paused .calm-aura,.is-paused .calm-spark{animation-play-state:paused}.walking-art{position:relative}.walking-path{display:flex;justify-content:center;gap:9px;position:absolute;bottom:16px;left:0;right:0}.walking-path i{width:5px;height:5px;border-radius:50%;background:#a77e98;animation:walk-dot 2s ease-in-out infinite}.walking-path i:nth-child(2){animation-delay:.2s}.walking-path i:nth-child(3){animation-delay:.4s}.walking-path i:nth-child(4){animation-delay:.6s}.walking-path i:nth-child(5){animation-delay:.8s}.session-card.is-paused .walking-path i{animation-play-state:paused}
@keyframes orb-float{0%,100%{transform:translateY(5px) scale(.96)}50%{transform:translateY(-5px) scale(1.04)}}@keyframes aura-drift{0%,100%{transform:scale(.9);opacity:.65}50%{transform:scale(1.16);opacity:1}}@keyframes spark-drift{0%,100%{transform:translateY(4px);opacity:.35}50%{transform:translateY(-8px);opacity:.9}}@keyframes nav-arrive{0%{transform:translateY(3px) scale(.85)}65%{transform:translateY(-2px) scale(1.06)}100%{transform:none}}@keyframes soft-arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes completion-mark{0%{transform:scale(.65);opacity:0}65%{transform:scale(1.1);opacity:1}100%{transform:scale(1)}}@keyframes walk-dot{0%,70%,100%{transform:translateY(0);opacity:.3}35%{transform:translateY(-4px);opacity:1}}
@media(hover:hover){.btn:hover,.palette:hover{box-shadow:0 5px 16px #a5809918}.palette:hover{transform:translateY(-2px)}}
@media(max-width:380px){.calm-visual{height:250px}.calm-orb{width:120px;height:120px}}
html[data-motion=off] *,html[data-motion=off] *:before,html[data-motion=off] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}html[data-motion=off] .calm-orb{transform:none}html[data-motion=off] .btn:active,html[data-motion=off] .stepper:active,html[data-motion=off] .palette:active{transform:none}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* V1.7: moonlit scene, liquid journal and dimensional controls. */
.hydration-stat{position:relative;overflow:hidden;isolation:isolate;padding-top:16px!important}.hydration-stat>span,.hydration-stat>.row,.hydration-stat>small{position:relative;z-index:2}.hydration-stat>.row{margin-top:10px}.water-vessel{position:absolute;right:-6px;bottom:-22px;width:85px;height:112px;border:1px solid #b9cedd55;border-radius:15px 15px 30px 30px;transform:rotate(-9deg);overflow:hidden;background:linear-gradient(110deg,#fff7,#ecf5fa33);opacity:.55;z-index:0}.liquid-fill{position:absolute;bottom:0;left:0;right:0;min-height:0;background:linear-gradient(#a7cddd,#a4bfd655);transition:height 700ms var(--luna-spring)}.liquid-fill>i{position:absolute;left:-30%;width:160%;height:20px;top:-9px;border-radius:46%;background:#a7cddd9c;animation:liquid-sway 4s ease-in-out infinite alternate}.liquid-fill>i:nth-child(2){top:-6px;background:#d3e9ef99;animation-delay:-2s;animation-duration:5s}.glass-glint{position:absolute;left:9px;top:14px;width:3px;height:60px;border-radius:10px;background:#fffc}.liquid-fill>span{position:absolute;left:21px;bottom:20px;width:4px;height:4px;border:1px solid #ffffffbb;border-radius:50%;box-shadow:20px -12px 0 -1px #fff8,8px 14px 0 -1px #fff7}
.calm-visual{height:340px;background:linear-gradient(170deg,#f7edf0 0%,#e9def1 44%,#d9d5eb 72%,#f6e9ed 100%);perspective:800px}.calm-orb{z-index:3;width:140px;height:140px;background:radial-gradient(circle at 30% 24%,#fffdf5 0%,#f8e6e6 34%,#dbbed8 68%,#b4a2c9 100%);box-shadow:inset -10px -10px 25px #a98fbd33,inset 4px 4px 14px #fff9,0 22px 42px #9d7caa28;animation:moon-hover 12s ease-in-out infinite}.calm-orb span{font-size:58px;font-weight:300;color:#96738e;opacity:.85}.calm-aura{z-index:2;width:260px;height:260px;background:radial-gradient(circle,#fff6e966,#f0cddf33 45%,transparent 70%)}.calm-orbit{z-index:4;border-color:#fff7;width:240px;height:240px;transform:rotateX(68deg) rotateZ(-25deg)}.orbit-two{width:280px;height:280px;transform:rotateX(68deg) rotateZ(36deg);border-color:#fff4}.scene-mist{position:absolute;width:150%;height:170px;border-radius:50%;filter:blur(15px);pointer-events:none;z-index:1}.mist-one{left:-50%;top:22%;background:linear-gradient(100deg,#dfd6ee11,#fdf3edaa,#d3c9e144);animation:mist-cross 20s ease-in-out infinite alternate}.mist-two{right:-60%;bottom:-20%;height:230px;background:linear-gradient(100deg,#fff1e888,#c9c6e444);animation:mist-cross 25s -8s ease-in-out infinite alternate-reverse}.scene-horizon{position:absolute;left:-20%;right:-20%;height:110px;bottom:-70px;border-radius:50%;border-top:1px solid #fff8;box-shadow:0 -12px 32px #ffffff44;background:#f9f2f055;z-index:2}.scene-reflection{position:absolute;width:120px;height:20px;border-radius:50%;bottom:34px;background:radial-gradient(ellipse,#a58bae33,transparent 72%);filter:blur(4px);animation:reflection-drift 12s ease-in-out infinite}.calm-spark{z-index:5;background:#fffaeb}.spark-one{width:5px;height:5px}.spark-two{right:18%;top:47%}.spark-three{top:17%;right:38%}.calm-caption{margin-top:16px!important}.is-paused .scene-mist,.is-paused .scene-reflection{animation-play-state:paused}
.soundscape-panel{margin:22px 0;padding:18px;border:1px solid #e8dfea;border-radius:22px;background:linear-gradient(120deg,#faf6fb,#f7f3f1);text-align:left}.soundscape-panel h3{margin:0 0 4px}.soundscape-panel small{font-size:11px;color:var(--muted)}.soundscape-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}.soundscape-options button{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;background:#fff9;border:1px solid #e4dce7;border-radius:13px;min-height:48px;padding:8px 5px;font:inherit;font-size:12px;color:var(--ink);transition:background 250ms,transform 250ms var(--luna-spring);cursor:pointer}.soundscape-options button.selected{background:#e9deee;border-color:#bfa4cd}.soundscape-options button:active{transform:scale(.95)}.soundscape-options .line-icon{width:17px;height:17px}.soundscape-panel .field{font-size:11px;margin-bottom:0}.sound-meter{height:24px;display:flex;gap:3px;align-items:center;margin-left:12px}.sound-meter i{height:4px;width:3px;border-radius:3px;background:#b48dac}.sound-meter.playing i{height:18px;animation:sound-level 1.3s ease-in-out infinite alternate}.sound-meter i:nth-child(2){animation-delay:-.6s}.sound-meter i:nth-child(3){animation-delay:-.3s}.sound-meter i:nth-child(4){animation-delay:-.9s}.motion-style{margin-top:20px}.chapter-ring{filter:drop-shadow(0 7px 12px #ad849510)}.chapter-ring .ring-value{stroke-linecap:round}.session-complete{background:radial-gradient(ellipse at 50% 15%,#f2e5f2,transparent 60%),#fff!important}.session-complete .completion-halo i{animation-iteration-count:1!important}.btn:focus-visible,.palette:focus-visible,.soundscape-options button:focus-visible{outline:3px solid #b69ac9;outline-offset:3px}
@keyframes liquid-sway{from{transform:translateX(-5px) rotate(-5deg)}to{transform:translateX(5px) rotate(5deg)}}@keyframes moon-hover{0%,100%{transform:translateY(4px) rotate(-4deg)}50%{transform:translateY(-8px) rotate(3deg)}}@keyframes mist-cross{from{transform:translateX(-8%) rotate(-6deg)}to{transform:translateX(12%) rotate(5deg)}}@keyframes reflection-drift{0%,100%{transform:scaleX(1);opacity:.7}50%{transform:scaleX(.8);opacity:.35}}@keyframes sound-level{from{transform:scaleY(.25)}to{transform:scaleY(1)}}
html[data-intensity=soft] .scene-mist,html[data-intensity=soft] .calm-spark,html[data-intensity=soft] .liquid-fill>i,html[data-intensity=soft] .scene-reflection{animation:none!important}html[data-intensity=soft] .calm-orb{animation-duration:20s}html[data-paused=true] *{animation-play-state:paused!important}@media(max-width:380px){.calm-visual{height:290px}.soundscape-panel{padding:14px}.soundscape-options button{font-size:11px}}html[data-motion=off] *,html[data-motion=off] *:before,html[data-motion=off] *:after{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* V1.8 mobile ergonomics and daily sheet */
input,select,textarea{font-size:16px}
button,.text-btn,.lang,summary{min-height:44px}
.calendar button{min-height:44px}
.reminder-switch{min-height:48px;gap:16px}
.reminder-switch input{width:24px;height:24px;flex:none;accent-color:#9d6278}
.daily-invite{display:flex;flex-direction:column;justify-content:center;gap:14px;background:linear-gradient(145deg,#fffaf7,#f2e9f4)}
.daily-invite h2{font-size:26px;line-height:1.3}
.daily-invite p{margin:0}.saved-label{color:#547361;font-weight:600}
.week-card{margin-top:22px}.week-metrics{display:grid;grid-template-columns:1fr 1fr;gap:18px;min-width:0}
.week-metrics>div{display:flex;flex-direction:column;gap:6px}.week-metrics strong{font-size:30px;font-weight:500}.week-metrics small{color:#706773}.week-metrics input{min-width:0;width:100%}
.week-metrics .field{min-width:0}.bar.unrecorded i{min-height:3px!important;border:1px dashed #988e98;background:transparent!important}
body.sheet-open{overflow:hidden}
.daily-sheet{color:#453c48;background:#fcf8f5;border:0;border-radius:28px 28px 0 0;padding:0;width:min(100%,600px);max-width:100%;max-height:calc(100dvh - env(safe-area-inset-top) - 12px);margin:auto auto 0;box-shadow:0 -12px 60px #38203925;overflow:auto;overscroll-behavior:contain}
.daily-sheet::backdrop{background:#30243e66;backdrop-filter:blur(5px)}
.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 24px 12px}.sheet-heading h2{margin:8px 0 0;font-size:25px}.sheet-heading button{min-width:44px}
.sheet-content{padding:0 24px 12px}.sheet-content fieldset{border:0;padding:16px 0;margin:0}.sheet-content legend{font-weight:600;padding:0}.sheet-content .field{margin-top:16px}
.check-options{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0}.check-options button{flex:1 0 70px;display:flex;align-items:center;flex-direction:column;gap:8px;padding:12px 8px;border:1px solid #e2d6df;border-radius:16px;background:#fffaf8;color:inherit;font:inherit;min-height:48px}
.check-options button[aria-pressed=true]{background:#ead8e5;border-color:#a66f8c;box-shadow:inset 0 0 0 1px #a66f8c}.check-options button[aria-pressed=false]{box-shadow:none;background:#fffaf8;border-color:#e2d6df}
.check-options.symptoms button{flex:1 0 30%;font-size:14px}
.sheet-footer{position:sticky;bottom:0;background:#fcf8f5ee;padding:14px 24px max(20px,env(safe-area-inset-bottom));border-top:1px solid #e8dde3;backdrop-filter:blur(12px)}
.daily-sheet[open]{animation:sheet-arrive .28s cubic-bezier(.2,.8,.2,1)}
@keyframes sheet-arrive{from{transform:translateY(35px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.daily-sheet[open]{animation:none}}
html[data-motion="off"] .daily-sheet[open]{animation:none}
@media(max-width:380px){.sheet-content{padding-inline:16px}.sheet-heading{padding-inline:16px}.week-metrics{gap:12px}.week-metrics small{font-size:11px}}

/* V1.9 — Luna's illustrated dashboard and coordinated two-tone icon family. */
:root{--paper:#faf7f5;--ink:#403440;--muted:#81717e;--pink:#a4597b}
body{background:radial-gradient(ellipse at 90% 0,#eadff055,transparent 45%),var(--paper)}
.shell{padding-top:22px}.top{margin-bottom:22px}.brand{gap:7px;font-size:25px}.brand-emblem{display:grid;place-items:center;width:35px;height:35px;border-radius:13px;background:linear-gradient(140deg,#fff3de,#e9dcec);box-shadow:inset 0 1px 1px #fff,0 3px 8px #8c597414}.brand-emblem .line-icon{width:23px;height:23px}.brand .brand-dot{margin-left:-4px}
.luna-icon{--icon-tint:#ead0df;--icon-ink:#94617f;color:var(--icon-ink);display:inline-block;vertical-align:middle;flex-shrink:0}.luna-icon .icon-fill{fill:var(--icon-tint)}.luna-icon .icon-glint{stroke:#fff;stroke-width:2;opacity:.9}.luna-icon .icon-knob{fill:#fff}.luna-icon .icon-detail{stroke:var(--icon-ink);stroke-width:1.8}
.icon-water{--icon-tint:#c5e5ed;--icon-ink:#53879e}.icon-rest{--icon-tint:#eadcb5;--icon-ink:#9c7950}.icon-move,.icon-breathe,.icon-shield,.icon-check{--icon-tint:#d4e5d9;--icon-ink:#658674}.icon-settings,.icon-goals{--icon-tint:#e0d5ee;--icon-ink:#87709f}.icon-track{--icon-tint:#f0d3df;--icon-ink:#a06a86}.icon-sparkle{--icon-tint:#f4dfb8;--icon-ink:#b08a53}
.greeting h1{font-size:30px!important;font-weight:650;letter-spacing:-.8px}.greeting .muted{font-size:13px;margin-top:6px}.greeting{margin-bottom:18px}
.card{border:1px solid #eee6eb;box-shadow:0 4px 18px #72506805;border-radius:23px}.home-primary{gap:16px}.chapter-card{position:relative;overflow:hidden;background:radial-gradient(ellipse at 90% 0,#fff7e9 0,transparent 48%),linear-gradient(125deg,#f0dfe9,#e9e0f1);border:1px solid #fff8;border-radius:25px;box-shadow:0 8px 22px #9a6f8610;padding:20px;margin-bottom:16px}.chapter-card .chapter-main{position:relative;z-index:1;gap:12px}.chapter-top{margin-bottom:12px}.chapter-top .pill{display:flex;gap:7px;align-items:center;font-weight:600}.chapter-top .pill .line-icon{width:25px;height:25px}.chapter-top .eyebrow{font-size:9px;letter-spacing:.8px}.chapter-main h2{font-size:24px!important;line-height:1.2;max-width:220px}.chapter-main p{line-height:1.5;margin-top:9px}.chapter-main{grid-template-columns:1fr 105px}.chapter-ring{width:105px;height:105px}.chapter-ring>div{width:82px;height:82px;background:#fff9;box-shadow:inset 0 1px 2px #fff}.chapter-ring strong{font-size:32px}.chapter-ring small{font-size:10px}.chapter-ring span{font-size:9px}.chapter-card>.btn{display:flex;gap:9px;align-items:center;justify-content:center;margin-top:17px;background:#fffc;box-shadow:0 3px 8px #81637d08}.chapter-card>.btn .line-icon{width:18px;height:18px}.chapter-card>.btn .icon-arrow{margin-left:auto}.chapter-card>.btn .icon-track{margin-right:auto}
.chapter-emblem{position:relative;width:105px;height:112px;display:grid;place-items:center;isolation:isolate}.chapter-emblem>i{position:absolute;width:102px;height:102px;border:1px solid #fff9;border-radius:50%;transform:rotate(-24deg) scaleY(.77)}.chapter-emblem>i:nth-child(2){transform:rotate(40deg) scaleY(.88);width:94px;height:94px}.chapter-emblem>.luna-icon{width:70px;height:70px;stroke-width:.9;filter:drop-shadow(0 7px 7px #9a708521);transform:rotate(-9deg)}.chapter-emblem>span{position:absolute;right:3px;top:7px}.chapter-emblem>span .luna-icon{width:21px;height:21px}.chapter-emblem:after{content:'';position:absolute;bottom:15px;right:15px;width:5px;height:5px;border-radius:50%;background:#fff;box-shadow:-74px -49px 0 -1px #fff}
.daily-invite{gap:10px;padding:20px;background:linear-gradient(135deg,#fffdfb,#faf0f4);border-color:#f0e0e8;position:relative;overflow:hidden}.invite-heading{display:flex;align-items:center;gap:9px}.invite-heading .eyebrow{font-size:9px;letter-spacing:.6px}.feature-icon{width:33px;height:33px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#fae4e9,#ead5e3);box-shadow:inset 0 1px 1px #fff}.feature-icon svg{width:21px;height:21px}.privacy-mark{margin-left:auto}.privacy-mark svg{width:18px;height:18px}.daily-invite h2{font-size:22px!important;margin:0}.daily-invite p{font-size:13px;color:#796575;line-height:1.6}.daily-invite .btn{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(105deg,#a35b7c,#927099);box-shadow:0 5px 11px #a76e8a21;margin-top:3px}.daily-invite .btn svg{color:#fff;width:20px;height:20px}
.today-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 20px}.snapshot-tile{position:relative;display:grid;grid-template-columns:39px 1fr;gap:6px 10px;text-align:left;padding:16px;border:1px solid #e5e9e9;border-radius:20px;background:linear-gradient(140deg,#f4fafb,#eaf3f5);font:inherit;color:var(--ink);cursor:pointer;transition:transform .22s var(--luna-spring),box-shadow .22s ease}.snapshot-tile.tile-rest{background:linear-gradient(140deg,#faf7fd,#eee7f5);border-color:#e8e1ed}.tile-icon{grid-row:span 2;align-self:center;width:39px;height:44px;display:grid;place-items:center}.tile-icon svg{width:34px;height:34px;filter:drop-shadow(0 3px 3px #73617612)}.tile-label{font-size:11px;color:#736575}.snapshot-tile strong{font-size:25px;font-weight:600;line-height:1.2}.snapshot-tile small{display:inline-block;font-size:10px;font-weight:400;color:#7c7080;margin-left:5px}.tile-arrow{position:absolute;right:10px;top:10px;opacity:.5}.tile-arrow svg{width:13px;height:13px}.snapshot-tile:active{transform:scale(.97)}
.week-card{margin-top:0}.icon-heading{display:flex;align-items:center;gap:9px}.icon-heading svg{width:25px;height:25px}.week-card .week-metrics{padding:15px;border-radius:16px;background:#f8f5fa;gap:18px}.week-card .week-metrics>div>span{font-size:11px}.week-card .week-metrics strong{font-size:27px}.week-card .week-metrics small{font-size:10px}.week-card>.notice{font-size:11px}.week-card>p:not(.notice){font-size:12px}
.nav{left:50%;transform:translateX(-50%);bottom:max(9px,env(safe-area-inset-bottom));width:calc(100% - 24px);max-width:540px;padding:7px 5px;border-radius:25px;background:#fffdfcf2;border:1px solid #fff;box-shadow:0 8px 32px #56384f18,0 0 0 1px #ad92a511;gap:3px}.nav button{border-radius:19px;font-size:10px;min-height:57px;gap:4px;padding:7px 2px;color:#867984;max-width:none}.nav b{height:26px;display:flex;justify-content:center;align-items:center}.nav button .line-icon{width:25px;height:25px;stroke-width:1.5}.nav button.active{background:linear-gradient(135deg,#f3e3eb,#eee5f4);color:#86516f;box-shadow:inset 0 1px 1px #fff9}.nav button.active:after{display:none}.nav button:not(.active) .luna-icon{opacity:.72}.nav button.active .luna-icon{filter:drop-shadow(0 2px 2px #89658420);stroke-width:1.6}
/* Override generic fieldset sibling spacing and oversized text buttons in the sheet. */
.daily-sheet{background:#fcf9f7}.sheet-heading{padding:20px 20px 10px}.sheet-heading h2{font-size:22px!important}.sheet-heading .eyebrow{font-size:10px}.sheet-heading #close-check{background:#f0e8ed;border:0;border-radius:50%;width:36px;height:36px;min-width:44px;min-height:44px;display:grid;place-items:center;padding:8px}.sheet-heading #close-check svg{width:19px;height:19px}.sheet-content{padding:0 20px 10px}.sheet-content>.notice{font-size:12px;margin:4px 0 16px}.sheet-content fieldset{padding:10px 0}.sheet-content fieldset>*+*{margin-top:0}.sheet-content legend{font-size:14px}.check-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:10px 0 3px}.check-options button{font-size:11px;min-width:0;padding:10px 3px;border-radius:15px;gap:7px;background:#fff;border-color:#ebe2e7;box-shadow:0 3px 6px #805b7405;transition:transform .2s var(--luna-spring),background .2s,border-color .2s}.check-options .mood-face{width:35px;height:35px;filter:drop-shadow(0 3px 3px #8a6e821a)}.check-options button[aria-pressed=true]{background:#f0deeb;border-color:#b481a3;box-shadow:inset 0 0 0 1px #b481a3}.check-options button:active{transform:scale(.94)}.check-options button[aria-pressed=true] .mood-face{animation:mood-select .4s var(--luna-spring)}.sheet-content [data-check-mood=""]{font-size:12px;text-align:left;padding:6px 0;min-height:44px;color:#8c7185}.check-options.symptoms{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding-top:10px}.check-options.symptoms button{display:flex;flex-direction:row;justify-content:flex-start;gap:9px;padding:10px 12px;font-size:12px;min-height:46px;border-radius:13px}.check-options.symptoms svg{width:22px;height:22px}.check-options.symptoms button:last-child{grid-column:auto}.sheet-content .week-metrics{margin-top:6px;padding:0;gap:12px}.sheet-content .field{margin:10px 0}.sheet-footer{padding:12px 20px max(20px,env(safe-area-inset-bottom))}.modecards .line-icon{width:26px;height:26px}
@keyframes mood-select{0%{transform:scale(.85)}65%{transform:scale(1.12) rotate(-5deg)}100%{transform:none}}
@media(max-width:380px){.shell{padding-inline:14px}.greeting h1{font-size:28px!important}.chapter-main h2{font-size:22px!important}.chapter-main{grid-template-columns:1fr 90px}.chapter-emblem{width:90px}.chapter-emblem>i{width:86px;height:86px}.snapshot-tile{padding:13px 10px;gap:5px}.snapshot-tile strong{font-size:23px}.nav button{font-size:9px}.sheet-content{padding-inline:16px}.check-options .mood-face{width:30px;height:30px}.check-options button{font-size:10px}.check-options.symptoms button{font-size:11px;padding-inline:8px}.sheet-heading h2{font-size:20px!important}}
html[lang=km] .nav button{font-size:10px}html[lang=km] .check-options button{line-height:1.6}html[lang=km] .chapter-main h2{font-size:21px!important}
/* V1.10: keyboard, narrow screens, focus and readable multilingual controls. */
.lang{font-size:16px;max-width:145px}.top{flex-wrap:wrap;gap:8px}.top #lock-now{min-width:44px;margin-right:0}.greeting>div,.grid>section,.home-primary>*,.row>.grow{min-width:0}h1,h2,h3,.btn,.nav button,.calendar-key{overflow-wrap:anywhere}
.daily-sheet{max-height:calc(var(--visible-height,100dvh) - env(safe-area-inset-top) - 12px)}html.keyboard-open .nav{visibility:hidden;pointer-events:none}html.keyboard-open .session-controls{position:static}html.keyboard-open .daily-sheet{max-height:calc(var(--visible-height,100dvh) - 8px)}
input,textarea,select{scroll-margin-block:100px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #9167a3;outline-offset:3px}.sheet-content input{font-size:16px}.sheet-footer .btn{min-height:48px}.nav{align-items:stretch}.nav button{white-space:normal;line-height:1.3}.nav button b{flex-shrink:0}
@media(max-width:380px){.calendar{gap:3px}.calendar button{min-width:0;padding:2px;min-height:44px;aspect-ratio:auto}.calendar small{min-width:0}.card{padding:16px}.lang{max-width:120px}.top{column-gap:6px}.sheet-content .check-options{grid-template-columns:repeat(3,minmax(0,1fr))}.sheet-content .check-options.symptoms{grid-template-columns:repeat(2,minmax(0,1fr))}.greeting{flex-wrap:wrap;gap:10px}.week-metrics{gap:10px}}
html[lang=km] .nav button{line-height:1.6}html[lang=km] .sheet-heading h2{line-height:1.6}html[lang=km] .check-options button{font-size:12px}
/* Clear stage actions, calendar evidence and first-use guidance. */
.next-care{display:flex;gap:14px;background:linear-gradient(120deg,#f0e6f2,#f9edef);border:1px solid #e8d8e5;border-radius:23px;padding:19px;margin-bottom:18px}.next-care-icon{display:grid;place-items:center;align-self:flex-start;flex-shrink:0;width:42px;height:42px;border-radius:15px;background:#fff9}.next-care-icon svg{width:27px;height:27px}.next-care h2{font-size:19px!important;margin:5px 0}.next-care p{font-size:12px;color:#786574;line-height:1.65;margin:0}.next-care .text-btn,.day-summary .text-btn{font-size:13px;font-weight:600;display:flex;align-items:center;gap:9px;padding:6px 0}.next-care .text-btn svg,.day-summary .text-btn svg{width:18px;height:18px}.first-entry{display:flex;gap:12px;padding:16px;margin:0 0 20px;border:1px dashed #d6c1d5;border-radius:18px}.first-entry>span svg{width:25px;height:25px}.first-entry h3{font-size:14px;margin:0 0 4px}.first-entry p{font-size:12px;color:var(--muted);margin:0;line-height:1.65}
.mode-preview{display:flex;gap:12px;text-align:left;background:#f4eaf3;padding:17px;border-radius:17px;margin:16px 0}.mode-preview .feature-icon{flex-shrink:0}.mode-preview strong{font-size:14px}.mode-preview p{font-size:12px;margin:6px 0 0;line-height:1.65;color:#786574}.optional-setup{text-align:left;background:#fff9;border:1px solid #e7dce6;border-radius:15px;padding:0 14px;margin:16px 0}.optional-setup summary{display:flex;align-items:center;cursor:pointer;font-size:13px;min-height:48px}.optional-setup summary:after{content:'+';margin-left:auto;font-size:20px}.optional-setup[open] summary:after{content:'−'}#skip-setup{margin-top:10px}.welcome .hero{max-height:155px;overflow:hidden}.welcome .orb{transform:scale(.75)}
.calendar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:49px;line-height:1.2}.calendar button.logged:after{display:none}.day-markers{display:flex;align-items:center;justify-content:center;gap:3px;height:6px}.day-markers i,.calendar-key i.marker-symptom,.calendar-key i.marker-appointment,.calendar-key i.marker-log{display:inline-block;width:5px;height:5px;flex-shrink:0}.marker-symptom{background:#a5753b;border-radius:50%}.marker-appointment{background:#528579;transform:rotate(45deg);border-radius:1px!important}.marker-log{background:#9275aa;border-radius:50%}.calendar-key{gap:9px 13px;margin:17px 0 10px}.calendar-key i.marker-appointment,.calendar-key i.marker-symptom,.calendar-key i.marker-log{width:8px;height:8px}.day-summary{background:#f7f1f6;border:1px solid #eadde8;border-radius:17px;padding:15px;margin:15px 0}.day-summary h3{margin:6px 0 9px}.day-summary-tags{display:flex;flex-wrap:wrap;gap:6px}.day-summary-tags>span{display:flex;align-items:center;gap:6px;font-size:11px;padding:5px 8px;background:#fff;border-radius:9px}.day-summary-tags svg{width:19px;height:19px}.day-summary-tags .estimate-tag{border:1px dashed #ae7998;background:transparent}.day-visit{display:flex;align-items:center;gap:8px;font-size:12px;overflow-wrap:anywhere}.day-visit svg{width:19px;height:19px}.day-summary .notice{margin:8px 0 0}
.saved-label{display:flex;align-items:center;gap:7px}.saved-label:before{content:'';width:7px;height:7px;border-radius:50%;background:#73967e}.saved-feedback .saved-label{animation:saved-settle .55s var(--luna-spring)}.saved-feedback .feature-icon{animation:saved-settle .55s var(--luna-spring)}.hydration-stat.water-confirmed:after{content:'';position:absolute;left:50%;top:50%;width:90px;height:90px;border:2px solid #7bb2c488;border-radius:50%;pointer-events:none;animation:water-confirm .65s ease-out both}.check-options button[aria-pressed=true] .icon-check{animation:saved-settle .4s var(--luna-spring)}
@keyframes water-confirm{from{transform:translate(-50%,-50%) scale(.3);opacity:.9}to{transform:translate(-50%,-50%) scale(1.7);opacity:0}}@keyframes saved-settle{0%{transform:scale(.85);opacity:.5}65%{transform:scale(1.06);opacity:1}100%{transform:none}}
@media(max-width:380px){.next-care{padding:15px;gap:10px}.next-care-icon{width:34px;height:34px}.next-care h2{font-size:18px!important}.calendar button{font-size:13px;min-height:46px}}
/* Three Chapters: three distinct rooms, one familiar Luna. */
:root{--chapter-accent:#92729f;--chapter-soft:#efe6f5;--chapter-glow:#ddc9e8;--chapter-warm:#f6e8de}
html[data-theme=flower]{--chapter-accent:#a66584;--chapter-soft:#f7e5ec;--chapter-glow:#edbed2;--chapter-warm:#fff0dd}
html[data-theme=garden]{--chapter-accent:#648573;--chapter-soft:#e7f0e8;--chapter-glow:#bbd8c5;--chapter-warm:#f4eddb}
.chapter-portal{display:flex;align-items:center;gap:12px;width:100%;border:1px solid #fff;background:linear-gradient(115deg,var(--chapter-soft),#fff9);box-shadow:0 4px 20px #78566f09;border-radius:20px;text-align:left;padding:15px 17px;color:var(--ink);font:inherit;margin-bottom:18px;cursor:pointer}.portal-art{display:grid;place-items:center;flex-shrink:0;width:43px;height:43px;border-radius:15px;background:#fffa;box-shadow:inset 0 1px 1px #fff}.portal-art svg{width:29px;height:29px;filter:drop-shadow(0 3px 3px #96778f18)}.chapter-portal small,.chapter-portal strong{display:block}.chapter-portal small{font-size:10px;letter-spacing:.4px;color:var(--chapter-accent);margin-bottom:3px}.chapter-portal strong{font-size:15px;font-weight:600}.chapter-portal>.luna-icon{width:20px;height:20px}.chapter-portal:active{transform:scale(.985)}
.chapter-stage{position:relative;overflow:hidden;display:flex;align-items:center;gap:25px;padding:22px 28px;margin:18px 0 22px;border:1px solid #fff9;border-radius:28px;background:radial-gradient(ellipse at 15% 20%,#fff9,transparent 50%),linear-gradient(120deg,var(--chapter-soft),var(--chapter-warm));min-height:192px}.chapter-stage>div:last-child{max-width:470px}.chapter-stage h2{font-size:29px!important;font-weight:600;line-height:1.2;margin:8px 0}.chapter-stage p{font-size:13px;line-height:1.7;color:#7d6c7b;margin:0}.chapter-stage .eyebrow{color:var(--chapter-accent)}
.chapter-art{width:150px;height:150px;position:relative;display:grid;place-items:center;flex-shrink:0;isolation:isolate}.chapter-art>div{display:grid;place-items:center;width:101px;height:101px;border-radius:36% 48% 42% 46%;background:radial-gradient(circle at 30% 20%,#fff,var(--chapter-glow));box-shadow:inset 0 2px 8px #fff9,0 13px 25px #98749422;transform:rotate(-8deg);animation:chapter-float 8s ease-in-out infinite}.chapter-art>div svg{width:63px;height:63px;stroke-width:1.1;filter:drop-shadow(0 4px 3px #7c57731a)}.chapter-art>i{position:absolute;width:147px;height:147px;border:1px solid #fff;border-radius:50%;transform:rotate(-30deg) scaleY(.7)}.chapter-art>i:nth-child(2){transform:rotate(35deg) scaleY(.9);border-color:#fff8}.chapter-art>span{position:absolute;right:4px;top:20px}.chapter-art>span svg{width:25px;height:25px}.chapter-art>b{width:6px;height:6px;border-radius:50%;background:#fff;position:absolute;bottom:23px;left:16px;box-shadow:116px -9px 0 -1px #fff8}
.theme-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:18px 0}.theme-choices button{display:grid;gap:8px;place-items:center;padding:15px 6px;border:1px solid #e4d9e6;border-radius:18px;background:#faf7fb;font:inherit;font-size:12px;color:var(--ink);cursor:pointer}.theme-choices svg{width:30px;height:30px}.theme-choices button[aria-pressed=true]{background:var(--chapter-soft);border-color:var(--chapter-accent);box-shadow:inset 0 0 0 1px var(--chapter-accent)}.chapter-customize{padding:0 17px;background:#fff9;border-radius:20px;margin:20px 0}.chapter-customize>summary{display:flex;align-items:center;min-height:52px;font-size:13px;cursor:pointer}.chapter-customize>summary:after{content:'+';margin-left:auto;font-size:20px}.chapter-customize[open]>summary:after{content:'−'}.chapter-customize .card{box-shadow:none;border:0;padding:10px 0}.chapter-preferences input[type=checkbox]{width:23px;height:23px;flex-shrink:0;accent-color:var(--chapter-accent)}
.cycle-explore-main{display:flex;align-items:center;justify-content:center;gap:14px;margin:24px 0}.cycle-dial{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:185px;height:185px;border-radius:50%;background:radial-gradient(circle,#fff 57%,var(--chapter-soft) 58%,var(--chapter-soft) 65%,#fff 66%);border:1px solid var(--chapter-glow);box-shadow:0 10px 25px #9a668414,inset 0 0 0 6px #fff6;color:var(--ink);font:inherit;cursor:pointer}.cycle-dial>span{font-size:10px;max-width:120px;color:var(--chapter-accent);line-height:1.4}.cycle-dial>strong{font-size:48px;letter-spacing:-2px;line-height:1.1;font-weight:500}.cycle-dial>small{font-size:10px;color:var(--muted)}.cycle-dial>i{position:absolute;top:2px;right:17px;display:grid;place-items:center;background:var(--chapter-soft);border-radius:50%;width:35px;height:35px;border:3px solid #fff}.cycle-dial>i svg{width:22px;height:22px}.cycle-explorer .round-action{width:44px;height:44px;background:#f4edf4;border-radius:50%;font-size:25px}.round-action:disabled{opacity:.3;cursor:default}.chapter-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px}.chapter-metrics>div{display:flex;flex-direction:column;gap:5px;background:#f7f3f8;border-radius:17px;padding:15px}.chapter-metrics strong{font-size:29px;font-weight:550}.chapter-metrics small,.chapter-metrics span{font-size:11px;color:var(--muted)}.cycle-records button{display:flex;align-items:center;gap:12px;width:100%;font:inherit;color:var(--ink);padding:17px 0;border:0;border-bottom:1px solid #eee6ed;background:transparent;text-align:left;cursor:pointer}.cycle-records strong,.cycle-records small{display:block}.cycle-records strong{font-size:13px;font-weight:600}.cycle-records small{font-size:10px;color:var(--muted);margin-top:4px}.cycle-records button>span:not(.grow){font-size:12px}.cycle-records svg{width:17px;height:17px}.timeline-dot{width:9px;height:9px;background:#c490aa;border:2px solid #f5dfeb;border-radius:50%;flex-shrink:0}
.weekly-chapter{background:linear-gradient(140deg,#fff,#faf3f7)}.week-bloom{display:grid;place-items:center;width:57px;height:57px;background:var(--chapter-soft);border-radius:20px}.week-bloom svg{width:35px;height:35px}.week-browser{display:flex;align-items:end;gap:10px;margin:16px 0 8px}.week-browser .field{flex:1;min-width:0;margin:0}.week-browser select{width:100%;font-size:16px}.week-browser .btn{min-width:44px;font-size:23px;padding:5px 13px}.weekly-reading{border:1px solid #e8dce5;border-radius:16px;padding:0 15px;background:#fff9;margin:18px 0}.weekly-reading summary{display:flex;align-items:center;font-size:13px;font-weight:600;cursor:pointer;min-height:48px}.weekly-reading p{font-size:13px;line-height:1.7}.weekly-reading a{font-size:12px;color:#8c527b}.weekly-reading .notice{font-size:11px;margin:13px 0}.week-prompt{display:flex;gap:12px;background:var(--chapter-soft);border-radius:17px;padding:17px;margin:18px 0}.week-prompt svg{width:24px;height:24px}.week-prompt p{font-size:13px;line-height:1.7;margin:0}.paused-chapter{background:#f2edf3;text-align:center}.paused-chapter>svg{width:43px;height:43px;margin:5px 0 15px}.paused-chapter p{font-size:13px;line-height:1.8;color:var(--muted)}
.need-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0}.need-choices button{display:flex;flex-direction:column;align-items:center;gap:10px;background:#f5f0f7;border:1px solid #e9dfed;border-radius:18px;padding:17px 8px;font:inherit;font-size:12px;color:var(--ink);line-height:1.5;cursor:pointer}.need-choices svg{width:32px;height:32px}.recovery-row{margin:22px 0}.recovery-row>.row{font-size:12px;margin-bottom:10px}.recovery-row>.row>span{font-size:10px;color:var(--muted)}.recovery-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.recovery-days button{border:1px solid #e8dfeb;background:#f8f4fa;border-radius:13px;padding:10px 2px;display:grid;gap:5px;color:var(--ink);font:inherit;cursor:pointer;min-width:0}.recovery-days strong{font-size:16px;font-weight:550}.recovery-days small{font-size:10px;color:var(--muted)}
.planner-list{margin:16px 0}.planner-item{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #eee6ed}.planner-item h3{font-size:13px;line-height:1.5;margin:0}.planner-item small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.planner-item .check{flex-shrink:0;width:36px;min-width:36px;min-height:44px}.planner-item.is-done h3{text-decoration:line-through;color:var(--muted)}.compact.text-btn{font-size:12px;min-width:44px;min-height:44px;padding:5px}.compact svg{width:17px;height:17px}.task-planner form,.question-notebook form,.keepsake-journal form{border-top:1px solid #eee4ed;margin-top:18px;padding-top:5px}.question-list details{border:1px solid #e8dfe9;border-radius:15px;padding:0 13px;margin-top:10px;background:#faf7fb}.question-list summary{font-size:13px;line-height:1.6;padding:12px 0;overflow-wrap:anywhere;cursor:pointer}.question-list p{white-space:pre-wrap;font-size:13px;line-height:1.7}.question-list .row{margin-bottom:12px}.keepsake-list article{background:linear-gradient(120deg,#fbf2ed,#f6edf7);border:1px solid #efe0ea;border-radius:19px;padding:18px;margin-top:16px}.keepsake-list article>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8}.keepsake-list article>.eyebrow{font-size:10px}.keepsake-list .row{justify-content:space-between}
@keyframes chapter-float{0%,100%{transform:translateY(3px) rotate(-8deg)}50%{transform:translateY(-4px) rotate(-3deg)}}
@media(min-width:721px){.chapter-stage{min-height:210px}.cycle-explorer .chapter-metrics{max-width:500px;margin:auto}.task-planner form{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.task-planner form>.row{grid-column:1/-1}.weekly-chapter{padding:28px}.recovery-days button{padding-block:15px}}
@media(max-width:420px){.chapter-stage{gap:14px;padding:19px 17px;min-height:170px}.chapter-stage h2{font-size:23px!important}.chapter-stage p{font-size:12px}.chapter-art{width:110px;height:130px}.chapter-art>div{width:80px;height:80px}.chapter-art>div svg{width:51px;height:51px}.chapter-art>i{width:108px;height:108px}.chapter-art>b{left:7px;bottom:18px;box-shadow:90px -7px 0 -1px #fff8}.chapter-art>span{right:-3px;top:13px}.planner-item{flex-wrap:wrap;gap:8px}.planner-item>.grow{flex-basis:calc(100% - 52px)}.planner-item>.compact:first-of-type{margin-left:auto}.cycle-dial{width:165px;height:165px}.cycle-dial strong{font-size:42px}.need-choices button{font-size:11px;padding:14px 6px}.chapter-portal strong{font-size:14px}.recovery-days{gap:3px}}
html[lang=km] .chapter-stage h2{font-size:21px!important;line-height:1.6}html[data-intensity=soft] .chapter-art>div{animation:none!important}

/* V1.12 Today order: portal sits under the primary cards */
.home-primary+.chapter-portal{margin:16px 0}
.today-tiles+.next-care{margin-top:16px}
.average-toggle{margin-top:14px;padding:14px;border-radius:16px;background:var(--chapter-soft,#f6eef4)}
.average-toggle small{display:block;margin-top:4px;color:var(--muted,#7a6a75);font-size:13px;line-height:1.4}
.average-toggle input[disabled]+*,.average-toggle input[disabled]{opacity:.5}
.estimate-source{display:block;margin-top:4px;font-size:12px;opacity:.75}

/* V1.12 visit summary */
.visit-entry{display:flex;align-items:center;gap:12px;width:100%;margin:4px 0 16px;padding:14px;border:1px solid var(--line,#eadde6);border-radius:16px;background:var(--chapter-soft,#f8f1f6);color:inherit;font:inherit;text-align:left;cursor:pointer}
.visit-entry strong,.visit-entry small{display:block}.visit-entry small{color:var(--muted,#7a6a75);font-size:13px;margin-top:2px}
.visit-head{margin-bottom:8px}
.visit-range{display:flex;gap:8px;margin:16px 0}
.visit-range button{flex:1;min-height:40px;border-radius:999px;border:1px solid var(--line,#eadde6);background:#fff;color:inherit;font:inherit;font-size:14px;cursor:pointer}
.visit-range button[aria-pressed="true"]{background:var(--accent,#9b5a7d);border-color:transparent;color:#fff}
.visit-sheet{display:grid;gap:18px}
.visit-sheet h3{font-size:13px;letter-spacing:.4px;text-transform:uppercase;color:var(--muted,#7a6a75);margin:0 0 8px}
.visit-sheet p{margin:4px 0}
.visit-sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--line,#eadde6)}
.visit-sheet-head strong,.visit-sheet-head small{display:block}.visit-sheet-head small{color:var(--muted,#7a6a75);margin-top:3px}
.visit-table{width:100%;border-collapse:collapse;font-size:14px}
.visit-table th{text-align:left;font-weight:500;color:var(--muted,#7a6a75);font-size:12px;padding:0 6px 6px 0}
.visit-table td{padding:7px 6px 7px 0;border-top:1px solid var(--line,#f0e6ec)}
.visit-metrics{display:grid;gap:8px;margin:0}
.visit-metrics div{display:flex;justify-content:space-between;gap:12px;font-size:14px}
.visit-metrics dt{color:var(--muted,#7a6a75)}.visit-metrics dd{margin:0;text-align:right;font-weight:500}
.visit-bar{display:grid;grid-template-columns:96px 1fr 28px;align-items:center;gap:10px;font-size:14px;margin:6px 0}
.visit-bar i{height:8px;border-radius:99px;background:var(--line,#f1e7ee);overflow:hidden}
.visit-bar b{display:block;height:100%;border-radius:inherit;background:var(--accent,#9b5a7d);opacity:.7}
.visit-bar strong{text-align:right}
.note-lines{height:96px;background:repeating-linear-gradient(transparent 0 31px,var(--line,#eadde6) 31px 32px)}
.visit-actions{display:grid;gap:10px;margin-top:18px}
@media print{
 @page{margin:14mm}
 body,html{background:#fff!important}
 .top,.nav,.no-print,#toast{display:none!important}
 .shell,main{padding:0!important;margin:0!important;max-width:none!important}
 .visit-sheet{box-shadow:none!important;border:0!important;background:#fff!important;padding:0!important}
 .visit-sheet section{break-inside:avoid}
 .visit-bar b{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
.visit-table td:nth-child(-n+2){white-space:nowrap}.visit-table th:last-child,.visit-table td:last-child{text-align:right}

/* ===== V1.13 ===== */
.symptom-map .map-wrap{display:flex;justify-content:center;margin:6px 0 2px}
.map-svg{width:100%;max-width:330px;height:auto;overflow:visible}
.map-svg text{font-size:10.5px;fill:var(--muted)}
.map-track{fill:none;stroke:var(--line);stroke-width:1}
.map-period{fill:none;stroke:var(--chapter-glow,#edbed2);stroke-width:8;stroke-linecap:round;opacity:.7}
.map-core{fill:var(--chapter-soft,#f6eef4)}
.map-svg .map-core-num{font-size:24px;font-weight:650;fill:var(--ink)}
.map-svg .map-core-label{font-size:10.5px;fill:var(--muted)}
.map-dot{cursor:pointer;transition:r .2s var(--luna-ease,ease),opacity .25s;transform-box:fill-box;transform-origin:center;animation:map-pop .5s var(--luna-ease,ease) both;animation-delay:calc(var(--i)*12ms)}
.map-dot:focus-visible{outline:none;stroke:var(--ink);stroke-width:2}
.map-dot.picked{stroke:#fff;stroke-width:2}
@keyframes map-pop{from{transform:scale(0);opacity:0}}
.map-pick{text-align:center;font-size:14px;min-height:22px;margin:4px 0 12px;color:var(--muted)}
.map-legend{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.map-legend button{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 12px;font:inherit;font-size:13px;color:var(--ink);cursor:pointer;min-height:36px}
.map-legend button[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.map-legend i,.map-pattern i{width:10px;height:10px;border-radius:50%;display:inline-block;flex:none}
.map-legend small{color:var(--muted)}
.map-patterns{margin:14px 0 4px;display:grid;gap:8px}
.map-pattern{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:14px;background:var(--chapter-soft,#f6eef4)}
.map-pattern i{margin-top:6px}.map-pattern p{margin:0;font-size:14px;line-height:1.45}
.map-badge{display:inline-flex;gap:4px;align-items:center;font-size:12px;animation:badge-in .7s var(--luna-ease,ease) both}
.map-badge .luna-icon{width:14px;height:14px}
@keyframes badge-in{from{transform:translateY(6px);opacity:0}}
.map-empty{text-align:center;padding:12px 0}.map-empty .luna-icon{width:34px;height:34px;color:var(--chapter-accent,#a66584)}

.kick-button{position:relative;display:grid;place-items:center;width:184px;height:184px;margin:18px auto 12px;border-radius:50%;border:0;cursor:pointer;color:var(--ink);font:inherit;background:radial-gradient(circle at 35% 30%,#fff,var(--chapter-soft,#f3e7ef) 60%,var(--chapter-glow,#e6c8d8));box-shadow:0 14px 40px -18px #7a4c6a88,inset 0 -6px 18px #ffffff80;-webkit-tap-highlight-color:transparent;transition:transform .15s}
.kick-button:active{transform:scale(.96)}
.kick-inner{display:grid;justify-items:center;gap:4px;position:relative;z-index:1}
.kick-inner .luna-icon{width:30px;height:30px;color:var(--chapter-accent,#a66584)}
.kick-inner strong{font-size:16px}.kick-inner small{color:var(--muted);font-size:13px}
.kick-ripple,.kick-ripple::after{position:absolute;inset:0;border-radius:50%;border:2px solid var(--chapter-accent,#a66584);opacity:0;pointer-events:none}
.kick-ripple::after{content:"";inset:-2px}
.kick-button.play .kick-ripple{animation:ripple 1.1s ease-out}
.kick-button.play .kick-ripple::after{animation:ripple 1.1s .25s ease-out}
.kick-mini.play{animation:pop .5s var(--luna-ease,ease)}
@keyframes ripple{0%{transform:scale(.9);opacity:.7}100%{transform:scale(1.45);opacity:0}}
@keyframes pop{40%{transform:scale(1.15)}}
.kick-typical{display:flex;gap:8px;align-items:center;justify-content:center;font-size:14px;margin:4px 0 10px}
.kick-typical .luna-icon{width:16px;height:16px;color:var(--chapter-accent,#a66584)}
.kick-sessions h3{font-size:13px;letter-spacing:.3px;text-transform:uppercase;color:var(--muted);margin:14px 0 6px}
.kick-session{display:grid;grid-template-columns:112px 1fr 28px;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line);font-size:14px}
.kick-dots{display:flex;gap:4px;flex-wrap:wrap}.kick-dots i{width:8px;height:8px;border-radius:50%;background:var(--chapter-accent,#a66584);opacity:.6}
.kick-session strong{text-align:right}
.safety-line{display:flex;gap:10px;align-items:flex-start;margin:16px 0 6px;padding:12px 14px;border-radius:14px;background:#fff4ec;border:1px solid #f1d8c4}
.safety-line .luna-icon{width:20px;height:20px;flex:none;color:#b0643a;margin-top:1px}
.safety-line p{margin:0;font-size:14px;line-height:1.45;color:#5a3a2a}
.kick-drawer>.card{margin-top:12px}
.quick-kick,.quick-feed{display:flex;align-items:center;gap:14px;margin-top:16px}
.quick-kick h3{margin:2px 0;font-size:16px}.quick-kick small,.quick-feed small{color:var(--muted)}
.quick-feed p{margin:4px 0;font-size:14px}
.kick-mini{display:grid;place-items:center;width:64px;height:64px;flex:none;border-radius:50%;border:0;background:var(--chapter-soft,#f3e7ef);color:var(--chapter-accent,#a66584);font:inherit;font-weight:650;cursor:pointer}
.kick-mini .luna-icon{width:20px;height:20px}

.feeding-log .feed-status{font-size:15px;margin:6px 0 4px}
.night-cheer{padding:10px 12px;border-radius:14px;background:#eef0fa;font-size:14px;margin:8px 0}
.feed-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}
.feed-btn{display:grid;justify-items:center;gap:2px;min-height:84px;padding:10px 6px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);font:inherit;font-size:14px;font-weight:550;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .12s}
.feed-btn:active{transform:scale(.95)}
.feed-btn span{font-size:26px;line-height:1.2}
.feed-btn small{font-size:11px;font-weight:500;color:var(--chapter-accent,#a66584);text-transform:uppercase;letter-spacing:.3px}
.feed-btn.suggested{border-color:var(--chapter-accent,#a66584);box-shadow:inset 0 0 0 1px var(--chapter-accent,#a66584);background:var(--chapter-soft,#f6eef4)}
.bottle-chips{display:flex;flex-wrap:wrap;gap:8px;margin:-2px 0 14px;animation:badge-in .3s ease both}
.bottle-chips button{flex:1 0 28%;min-height:44px;border-radius:999px;border:1px solid var(--line);background:#fff;font:inherit;font-size:14px;color:var(--ink);cursor:pointer}
.feed-timer{text-align:center;margin:14px 0;padding:18px;border-radius:20px;background:var(--chapter-soft,#f6eef4)}
.feed-timer strong{display:block;font-size:46px;font-weight:300;font-variant-numeric:tabular-nums;letter-spacing:1px;margin:6px 0 12px}
.feed-timer-actions{display:grid;grid-template-columns:2fr 1fr;gap:10px}
.feed-totals{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;text-align:center;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:4px 0 10px}
.feed-totals strong{display:block;font-size:18px}.feed-totals small{font-size:11.5px;color:var(--muted)}
.feed-list summary{cursor:pointer;font-size:14px;padding:6px 0}
.feed-entry{padding:8px 0;border-top:1px solid var(--line);font-size:14px;gap:12px}
.feed-entry>span:first-child{font-variant-numeric:tabular-nums;color:var(--muted);width:44px}
.feeding-log.play{animation:pop .45s var(--luna-ease,ease)}
.feeding-log.night,.quick-feed.night{background:#262335;color:#ece8f4;border-color:#3a3550}
.feeding-log.night .eyebrow,.feeding-log.night .notice,.feeding-log.night small,.quick-feed.night small,.quick-feed.night .eyebrow{color:#b9b2cc}
.feeding-log.night .feed-btn,.feeding-log.night .bottle-chips button{background:#322e45;border-color:#433d5c;color:#ece8f4}
.feeding-log.night .feed-btn.suggested{background:#3d3657;border-color:#b9a3e3;box-shadow:inset 0 0 0 1px #b9a3e3}
.feeding-log.night .feed-btn small{color:#cdb8f2}
.feeding-log.night .feed-totals,.feeding-log.night .feed-entry{border-color:#3a3550}
.feeding-log.night .feed-timer{background:#322e45}
.feeding-log.night .pill{background:#3d3657;color:#ece8f4}

.garden-card{overflow:hidden}
.garden-svg{width:100%;height:auto;display:block;margin:8px 0 6px}
.g-hill{fill:#e9f1e4}
.g-seed{fill:#c9b9a5}
.g-stem{fill:none;stroke:#7fa27f;stroke-width:1.6;stroke-linecap:round}
.g-leaf{fill:#9cc39a}
.g-flower circle{fill:#f0a9c0}.g-flower .g-heart{fill:#f6d77e}
.g-tulip{fill:#c995d9}
.g-lotus path{fill:#f3b6c8;stroke:#e391aa;stroke-width:.6}
.g-plant{transform-box:fill-box;transform-origin:50% 100%;animation:sprout .7s var(--luna-ease,ease) both;animation-delay:calc(var(--i)*35ms)}
.g-plant.grow{animation:grow 1.4s var(--luna-spring,ease) both}
@keyframes sprout{from{transform:scaleY(0);opacity:0}}
@keyframes grow{0%{transform:scale(0)}60%{transform:scale(1.15)}100%{transform:scale(1)}}
.garden-card p{margin:4px 0}
html[data-theme=garden] .g-hill{fill:#dcebdc}

[data-motion="off"] .map-dot,[data-motion="off"] .g-plant,[data-motion="off"] .kick-ripple,[data-motion="off"] .kick-ripple::after,[data-motion="off"] .feeding-log.play,[data-motion="off"] .kick-mini.play,[data-motion="off"] .map-badge,[data-motion="off"] .bottle-chips{animation:none!important}
@media (max-width:360px){.feed-grid{grid-template-columns:repeat(2,1fr)}.kick-button{width:160px;height:160px}.kick-session{grid-template-columns:96px 1fr 24px}}
.movement-log [data-kick-undo]{font-size:14px;align-self:flex-start}.quick-feed .btn .luna-icon{color:currentColor}
/* V1.13.1: keep the garden a calm strip on wide screens */
.garden-svg{max-width:560px;max-height:150px;margin:8px auto 6px}

/* ===== V1.14 / V1.15 ===== */
.small-link{font-size:14px;align-self:flex-start}
.moment-card{position:relative;overflow:hidden;text-align:center;margin-top:16px;background:linear-gradient(160deg,#fff,var(--chapter-soft,#f6eef4))}
.moment-card .eyebrow{display:inline-flex;gap:6px;align-items:center}.moment-card .eyebrow .luna-icon{width:14px;height:14px;color:var(--chapter-accent,#a66584)}
.moment-card h2{margin:6px 0 10px}
.petals{position:absolute;inset:0;pointer-events:none}
.petals i{position:absolute;top:-14px;width:10px;height:14px;border-radius:60% 0 60% 0;background:var(--chapter-glow,#edbed2);opacity:.85;animation:petal 3.6s ease-in infinite}
.petals i:nth-child(1){left:8%;animation-delay:0s}.petals i:nth-child(2){left:20%;animation-delay:.6s}.petals i:nth-child(3){left:33%;animation-delay:1.3s;background:#f6d77e}.petals i:nth-child(4){left:46%;animation-delay:.3s}.petals i:nth-child(5){left:58%;animation-delay:1.9s}.petals i:nth-child(6){left:70%;animation-delay:.9s;background:#c9b6ea}.petals i:nth-child(7){left:82%;animation-delay:2.4s}.petals i:nth-child(8){left:92%;animation-delay:1.6s}.petals i:nth-child(9){left:65%;animation-delay:2.9s}
@keyframes petal{0%{transform:translateY(0) rotate(0)}100%{transform:translateY(260px) rotate(320deg);opacity:0}}
.moments-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-top:10px}
.moment{display:flex;gap:8px;align-items:center;padding:10px 12px;border-radius:14px;border:1px dashed var(--line);font-size:13.5px;color:var(--muted)}
.moment .luna-icon{width:18px;height:18px;flex:none;opacity:.4}
.moment.got{border-style:solid;border-color:transparent;background:var(--chapter-soft,#f6eef4);color:var(--ink)}
.moment.got .luna-icon{opacity:1;color:var(--chapter-accent,#a66584)}
.letter-entry{display:flex;align-items:center;gap:14px;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;margin-top:16px;background:linear-gradient(120deg,#fffaf3,var(--chapter-soft,#f6eef4))}
.letter-entry small,.letter-entry strong,.letter-entry .muted{display:block}.letter-entry small{color:var(--chapter-accent,#a66584);font-size:11px;letter-spacing:.4px;text-transform:uppercase}.letter-entry strong{font-size:16px;margin:2px 0}.letter-entry .muted{font-size:13px}
.letter-seal{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--chapter-accent,#a66584);color:#fff;flex:none}.letter-seal .luna-icon{width:22px;height:22px}
.letter-deck{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:16px 2px 18px;margin:0 -2px;-webkit-overflow-scrolling:touch}
.letter-card{flex:0 0 86%;max-width:420px;min-height:340px;scroll-snap-align:center;display:flex;flex-direction:column;justify-content:center;gap:8px;position:relative;text-align:center}
.letter-card .letter-step{position:absolute;bottom:14px;left:0;right:0;color:var(--muted);font-size:12px}
.lc-0{background:linear-gradient(160deg,#fff,var(--chapter-soft,#f6eef4))}.lc-2{background:linear-gradient(160deg,#fff,#eef0fa)}.lc-4{background:linear-gradient(160deg,#fff,var(--chapter-warm,#fff0dd))}
.big-num{font-size:64px;font-weight:300;line-height:1;margin:8px 0}.big-num small{font-size:24px;color:var(--muted)}
.letter-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0}.letter-pair strong{display:block;font-size:40px;font-weight:300}.letter-pair small{color:var(--muted)}
.letter-faces,.letter-flower{font-size:44px;margin:6px 0}
.mood-support{margin-top:16px;background:#f3f1fb;border-color:#e2dcf3}
.help-list{margin:10px 0;padding-left:20px;line-height:1.7;font-size:14.5px}.help-list a{color:var(--pink);font-weight:600}
.mood-actions{gap:10px;flex-wrap:wrap}
.contraction-button{display:grid;place-items:center;gap:4px;position:relative;width:100%;min-height:150px;margin:14px 0;border:0;border-radius:24px;background:var(--chapter-soft,#f6eef4);color:var(--ink);font:inherit;cursor:pointer;overflow:hidden}
.contraction-button strong{font-size:22px;position:relative;z-index:1}.contraction-button span{color:var(--muted);font-size:14px;position:relative;z-index:1}
.contraction-card.active .contraction-button{background:var(--chapter-accent,#a66584)}.contraction-card.active .contraction-button strong{font-size:48px;font-weight:300;color:#fff;font-variant-numeric:tabular-nums}.contraction-card.active .contraction-button span{color:#ffffffcc}
.breath-orb{position:absolute;width:130px;height:130px;border-radius:50%;background:#ffffff33;animation:breathe 8s ease-in-out infinite}
@keyframes breathe{0%,100%{transform:scale(.7)}50%{transform:scale(1.5)}}
.breath-guide{text-align:center;color:var(--muted);font-size:14px;margin:-4px 0 10px}
.vitals-form{display:grid;grid-template-columns:1fr auto 1fr;gap:8px 6px;align-items:end;margin:10px 0}
.vitals-form .field:nth-of-type(3){grid-column:1/3}.vitals-form .btn{grid-column:3}
.bp-slash{font-size:22px;color:var(--muted);padding-bottom:12px}
.vital-alert{display:flex;gap:10px;padding:12px 14px;border-radius:14px;margin:8px 0;font-size:14px}.vital-alert p{margin:0}.vital-alert .luna-icon{width:20px;height:20px;flex:none}
.vital-alert.high{background:#fff4ec;border:1px solid #f1d8c4;color:#5a3a2a}.vital-alert.urgent{background:#fdeaea;border:1px solid #f0c2c2;color:#6d2323}
.flag-dot{width:9px;height:9px;border-radius:50%;background:#d8893f}.flag-dot.urgent{background:#c94a4a}
.bump-preview{position:relative;overflow:hidden;margin:12px 0;padding:26px 20px 18px;border-radius:22px;text-align:center;background:linear-gradient(160deg,var(--chapter-soft,#f6eef4),var(--chapter-warm,#fff0dd))}
.bump-preview small{display:block;letter-spacing:.5px;text-transform:uppercase;color:var(--chapter-accent,#a66584);font-size:11.5px}.bump-preview strong{display:block;font-size:44px;font-weight:650;margin:4px 0}.bump-preview p{margin:6px 0 10px;font-size:15px;min-height:22px}.bump-preview em{font-style:normal;font-weight:650;color:var(--chapter-accent,#a66584)}
.bump-deco{position:absolute;right:-10px;top:-10px;opacity:.25}.bump-deco .luna-icon{width:90px;height:90px;color:var(--chapter-accent,#a66584)}
.bump-actions{gap:10px}.bump-actions .btn{flex:1}
.bump-album{display:flex;gap:8px;overflow-x:auto;padding:12px 0 4px}
.bump-mini{flex:0 0 72px;height:84px;border-radius:14px;border:1px solid var(--line);background:linear-gradient(160deg,#fff,var(--chapter-soft,#f6eef4));font:inherit;color:var(--ink);cursor:pointer;display:grid;place-content:center;gap:2px;padding:4px}
.bump-mini strong{font-size:22px}.bump-mini small{font-size:9.5px;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:64px}.bump-mini.on{border-color:var(--chapter-accent,#a66584)}
.bleed-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}
.bleed-chips button{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:#fff;font:inherit;font-size:14px;color:var(--ink);cursor:pointer}
.bleed-chips button[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.bleed-chips i{width:10px;height:10px;border-radius:50%}
.bl-none{background:#cfe3d4}.bl-spotting{background:#f2c9d2}.bl-light{background:#e59aae}.bl-medium{background:#c9617f}.bl-heavy{background:#8e2f4c}.bl-unknown{background:#ece8ec}
.bleed-strip{display:grid;grid-template-columns:repeat(14,1fr);gap:4px;height:34px}.bleed-strip span{border-radius:6px}
.bleed-axis small{color:var(--muted);font-size:11.5px}
.pelvic-gate{gap:12px;padding:12px;border-radius:14px;background:var(--chapter-soft,#f6eef4);margin-top:10px}.pelvic-gate input{width:22px;height:22px}
.pelvic-session{display:grid;justify-items:center;gap:6px;padding:14px 0}
.pelvic-orb{width:110px;height:110px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,var(--chapter-glow,#edbed2));transition:transform 4.6s ease-in-out;transform:scale(.75)}
.pelvic-orb.squeeze{transform:scale(1.15)}.pelvic-orb.relax{transform:scale(.75)}
.pelvic-session strong{font-size:20px;margin-top:8px}.pelvic-count{font-size:40px;font-weight:300;font-variant-numeric:tabular-nums}.pelvic-session small{color:var(--muted)}
.stone-path{width:100%;height:auto;margin:10px 0 0}.stone{fill:#ece5e9}.stone.on{fill:var(--chapter-accent,#a66584);opacity:.75}
[data-motion="off"] .petals,[data-motion="off"] .breath-orb{display:none}[data-motion="off"] .pelvic-orb{transition:none}
@media (max-width:360px){.letter-card{flex-basis:92%}.vitals-form{grid-template-columns:1fr auto 1fr}}
.vitals-list .feed-entry>span:first-child{width:auto;white-space:nowrap;min-width:84px}
.unit-toggle{display:inline-flex;border:1px solid var(--line);border-radius:999px;overflow:hidden;flex:none}.unit-toggle button{border:0;background:#fff;padding:6px 12px;font:inherit;font-size:13px;color:var(--muted);cursor:pointer}.unit-toggle button[aria-pressed="true"]{background:var(--chapter-accent,#a66584);color:#fff}

/* ===== Luna Plus ===== */
.plus-badge{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:linear-gradient(120deg,#c9a24a,#d98aa6);color:#fff;font-size:10px;font-weight:700;letter-spacing:.3px;vertical-align:middle}
.plus-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#f3d58a,#e7a6c0);color:#fff;flex:none}.plus-mark .luna-icon{width:22px;height:22px}
.plus-entry{display:flex;align-items:center;gap:14px;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;margin-bottom:18px;background:linear-gradient(120deg,#fffaf0,#fbeef4)}
.plus-entry small,.plus-entry strong,.plus-entry .muted{display:block}.plus-entry small{font-size:11px;letter-spacing:.4px;text-transform:uppercase;color:#b0803a}.plus-entry strong{font-size:16px;margin:2px 0}.plus-entry .muted{font-size:13px}
.plus-hero{text-align:center;padding:10px 6px 4px}.plus-hero .plus-mark{width:64px;height:64px;margin:0 auto 10px}.plus-hero .plus-mark .luna-icon{width:30px;height:30px}.plus-hero p{max-width:520px;margin:8px auto 0;color:var(--muted)}
.plus-perks{display:grid;gap:14px;margin-top:16px}
.plus-perk{display:flex;gap:12px;align-items:flex-start}.plus-perk .luna-icon{width:22px;height:22px;flex:none;color:#b0803a;margin-top:2px}.plus-perk strong,.plus-perk small{display:block}.plus-perk small{color:var(--muted);font-size:13.5px;margin-top:2px}
.plus-buy .row{align-items:flex-start;margin-bottom:14px}.plus-price{font-size:28px;font-weight:650}
.plus-buy a.btn{display:flex;justify-content:center;text-decoration:none}
.plus-active{text-align:center}

/* ===== V1.18 ===== */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.tour-backdrop{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:24px max(16px,env(safe-area-inset-left,0px));background:#2a1f2b66;backdrop-filter:blur(3px);animation:fade .25s ease both}
.tour-card{width:min(380px,100%);background:#fff;border-radius:26px;padding:28px 24px 20px;text-align:center;box-shadow:0 30px 60px -20px #3b234080;display:grid;gap:10px;justify-items:center}
.tour-card h2{margin:4px 0 0}.tour-card p{margin:0;color:var(--muted);line-height:1.5}
.tour-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--chapter-soft,#f6eef4);color:var(--chapter-accent,#a66584)}.tour-icon .luna-icon{width:30px;height:30px}
.tour-dots{display:flex;gap:6px;margin:6px 0}.tour-dots i{width:7px;height:7px;border-radius:50%;background:var(--line)}.tour-dots i.on{background:var(--chapter-accent,#a66584);width:18px;border-radius:4px}
.tour-actions{display:flex;justify-content:space-between;align-items:center;width:100%;gap:10px}.tour-actions .btn{min-width:110px}
@keyframes fade{from{opacity:0}}
.first-week{margin-top:16px}
.fw-bar{height:6px;border-radius:99px;background:var(--line);overflow:hidden;margin:6px 0 10px}.fw-bar i{display:block;height:100%;background:var(--chapter-accent,#a66584);border-radius:inherit;transition:width .5s var(--luna-ease,ease)}
.fw-list{list-style:none;margin:0;padding:0;display:grid}
.fw-list li{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line);font-size:15px}
.fw-list li.done .grow{color:var(--muted);text-decoration:line-through}
.fw-check{width:22px;height:22px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;flex:none}
.fw-list li.done .fw-check{background:var(--chapter-accent,#a66584);border-color:transparent;color:#fff}.fw-check .luna-icon{width:14px;height:14px}
.fw-help{padding:12px;border-radius:14px;background:var(--chapter-soft,#f6eef4);margin:6px 0;display:grid;gap:10px}.fw-help p{margin:0;font-size:14px}
.trackers-card{margin-top:16px}.trackers-card.locked,.baby-card.locked{background:linear-gradient(120deg,#fffaf0,#fbeef4)}
.tracker{padding:12px 0;border-top:1px solid var(--line);display:grid;gap:8px}
.tr-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--tr);margin-right:8px}
.tr-yesno{display:flex;gap:8px}.tr-yesno button,.tr-scale button{border:1px solid var(--line);background:#fff;border-radius:999px;font:inherit;color:var(--ink);cursor:pointer}
.tr-yesno button{flex:1;min-height:40px}.tr-yesno button[aria-pressed="true"],.tr-scale button[aria-pressed="true"]{background:var(--tr);border-color:transparent;color:#fff}
.tr-scale{display:grid;grid-template-columns:repeat(11,1fr);gap:4px}.tr-scale button{min-height:34px;padding:0;font-size:13px;border-radius:10px}
.tr-number{display:flex;gap:8px;align-items:center}.tr-number input{width:120px;min-height:40px;border:1px solid var(--line);border-radius:12px;padding:0 10px;font:inherit}.tr-number span{color:var(--muted);font-size:14px}
.tracker-chart{width:100%;height:auto}
.tracker-add{margin-top:10px}.tracker-add summary{cursor:pointer;font-weight:600;color:var(--chapter-accent,#a66584);padding:8px 0}
.tr-colors{border:0;padding:0;margin:0;display:flex;gap:10px;flex-wrap:wrap}.tr-colors legend{font-size:13px;color:var(--muted);margin-bottom:6px}
.tr-colors label{position:relative}.tr-colors input{position:absolute;opacity:0}.tr-colors i{display:block;width:30px;height:30px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px var(--line);cursor:pointer}
.tr-colors input:checked+i{box-shadow:0 0 0 2px var(--ink)}.tr-colors input:focus-visible+i{outline:2px solid var(--ink);outline-offset:2px}
.tr-form-actions{gap:10px;flex-wrap:wrap}.danger-text{color:#b44a4a}
.deep-entry{display:flex;align-items:center;gap:14px;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;margin-top:16px}
.deep-entry small,.deep-entry strong,.deep-entry .muted{display:block}.deep-entry small{font-size:11px;letter-spacing:.4px;text-transform:uppercase;color:#b0803a}.deep-entry strong{font-size:16px;margin:2px 0}.deep-entry .muted{font-size:13px}
.deep-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}
.deep-groups div{background:var(--chapter-soft,#f6eef4);border-radius:14px;padding:10px;display:grid;gap:4px;text-align:center}
.deep-groups small{color:var(--muted);font-size:12px}.deep-groups strong{font-size:20px}.deep-groups strong span{font-size:11px;font-weight:400;color:var(--muted)}.deep-groups em{font-style:normal;font-size:12px;color:var(--muted)}
@media (max-width:380px){.deep-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}
.deep-link{padding:10px 0;border-top:1px solid var(--line)}.deep-link p{margin:4px 0;font-size:14.5px;line-height:1.45}.deep-link small{color:var(--muted)}
.deep-sub{font-size:13px;letter-spacing:.3px;text-transform:uppercase;color:var(--muted);margin:16px 0 4px}
.deep-chart{width:100%;height:auto}.deep-chart .deep-val{font-size:10px;fill:var(--ink)}.deep-chart .deep-lab{font-size:11px;fill:var(--muted)}
.baby-card{margin-top:16px}
.baby-switch{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0 12px}
.baby-switch button{min-height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:#fff;font:inherit;color:var(--ink);cursor:pointer}
.baby-switch button[aria-pressed="true"]{background:var(--chapter-accent,#a66584);color:#fff;border-color:transparent}
.baby-switch .baby-add-btn{border-style:dashed;color:var(--chapter-accent,#a66584)}
.baby-form,.growth-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;align-items:end;margin:8px 0}
.baby-form .btn,.growth-form .btn{grid-column:1/-1}
.baby-sleep{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.baby-sleep strong{font-size:24px;display:block}.baby-sleep small{color:var(--muted)}
.nap-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:10px 0}.nap-chips small{width:100%;color:var(--muted)}
.nap-chips button{min-height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:#fff;font:inherit;font-size:13px;cursor:pointer;color:var(--ink)}
.sleep-week{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;align-items:end;height:80px;margin:6px 0 4px}
.sleep-week div{display:grid;justify-items:center;gap:4px;align-content:end;height:100%}.sleep-week i{display:block;width:70%;min-height:2px;border-radius:6px 6px 2px 2px;background:#9aa6dc}.sleep-week small{font-size:11px;color:var(--muted)}
.growth-chart{width:100%;height:auto;margin:4px 0}
[data-motion="off"] .tour-backdrop{animation:none}
.tr-tools .text-btn{font-size:14px}
