:root{--bg:#18111f;--card:#fff7ef;--cream:#fffaf3;--text:#fffaf6;--ink:#2b2234;--muted:rgba(255,250,246,.72);--muted-ink:#7a6d82;--line:rgba(255,255,255,.14);--rose:#ff8e9e;--rose2:#ffb1bf;--violet:#b998ff;--gold:#ffd88a;--good:#9be7c3;--bad:#ffb4b4;--shadow:0 18px 52px rgba(23,12,35,.32);color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;min-height:100%;overflow-x:hidden}body{font-family:Manrope,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:radial-gradient(circle at 12% -4%,rgba(255,142,158,.38),transparent 34%),radial-gradient(circle at 88% 2%,rgba(185,152,255,.32),transparent 32%),linear-gradient(180deg,#24172f 0%,#18111f 54%,#110d17 100%);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}button,textarea,input,select{font:inherit}button{border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}.app{width:min(100%,460px);min-height:100dvh;margin:0 auto;position:relative;padding:max(14px,env(safe-area-inset-top)) 14px calc(102px + env(safe-area-inset-bottom));overflow-x:hidden}.topbar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:10px;align-items:center;margin-bottom:14px}.micro{margin:0 0 2px;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}h1{margin:0;font-size:20px;letter-spacing:-.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon-btn{width:44px;height:44px;border-radius:18px;color:var(--text);background:rgba(255,255,255,.1);border:1px solid var(--line);font-size:25px;line-height:1;box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.screen{display:grid;gap:14px;animation:enter .18s ease both}@keyframes enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.hero-card,.card,.soft-card{border:1px solid var(--line);border-radius:30px;padding:21px;box-shadow:var(--shadow);background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.065));backdrop-filter:blur(10px);overflow-wrap:anywhere}.hero-card{min-height:calc(100dvh - 190px);display:flex;flex-direction:column;justify-content:center}.moon{width:76px;height:76px;display:grid;place-items:center;border-radius:28px;margin-bottom:20px;background:linear-gradient(145deg,#fff4d5,#eadfff 62%,#ffc7d0);color:#6f4bc4;font-size:42px;box-shadow:0 16px 42px rgba(255,216,138,.2)}.pill,.tag{display:inline-flex;width:fit-content;max-width:100%;align-items:center;gap:7px;border-radius:999px;padding:8px 12px;background:rgba(255,255,255,.13);border:1px solid var(--line);color:#fff4dc;font-size:12px;font-weight:900;line-height:1.25}.pill.dark{color:#7959be;background:rgba(121,89,190,.1);border-color:rgba(121,89,190,.16)}h2{margin:12px 0 10px;font-size:29px;line-height:1.08;letter-spacing:-.055em}h3{margin:0 0 8px;font-size:19px;line-height:1.2;letter-spacing:-.03em}.mini{margin:0 0 7px;color:#8c65d8;text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:900}p{line-height:1.55}.lead,.muted{color:var(--muted)}.status-card .muted,.status-card .lead{color:#6d6275}.primary,.ghost,.choice,.small-btn{width:100%;min-height:58px;border-radius:22px;padding:15px 17px;font-weight:900;transition:transform .12s ease,filter .12s ease,border-color .12s ease}.primary{position:relative;overflow:hidden;color:#2f1d34;background:linear-gradient(135deg,#ffe6aa 0%,#ffadba 46%,#c8b0ff 100%);box-shadow:0 14px 34px rgba(255,142,158,.22),inset 0 1px 0 rgba(255,255,255,.5);margin-top:14px;display:grid;gap:2px;place-items:center;text-align:center}.primary small{font-size:11.5px;line-height:1.25;opacity:.72;font-weight:800}.ghost{color:var(--text);background:rgba(255,255,255,.075);border:1px solid var(--line);margin-top:10px;box-shadow:inset 0 1px 0 rgba(255,255,255,.08);text-align:center}button:active{transform:scale(.988)}.grid{display:grid;gap:10px}.two{grid-template-columns:1fr 1fr}.choice{text-align:left;color:var(--text);background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.065));border:1px solid var(--line);display:grid;gap:5px;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}.choice strong{font-size:16px;line-height:1.25}.choice span{color:var(--muted);font-size:13.5px;line-height:1.38;font-weight:650}.choice.active{border-color:rgba(255,216,138,.95);background:rgba(255,216,138,.13)}.input,textarea,select{display:block;width:100%;max-width:100%;min-width:0;inline-size:100%;min-inline-size:0;color:var(--text);background:rgba(255,255,255,.09);border:1px solid var(--line);border-radius:20px;padding:15px 16px;outline:0;font-size:16px}.grid>.input,.grid>select{justify-self:stretch}input[type=date].input{-webkit-appearance:none;appearance:none}input[type=date].input::-webkit-date-and-time-value{min-width:0;text-align:center}select option{background:#24172f;color:white}textarea{min-height:160px;resize:vertical;line-height:1.5}.input:focus,textarea:focus,select:focus{border-color:rgba(255,216,138,.76);box-shadow:0 0 0 4px rgba(255,216,138,.1)}.status-card{background:var(--card);color:var(--ink);border-radius:30px;padding:21px;box-shadow:var(--shadow);overflow-wrap:anywhere}.status-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.status-head>div:first-child{min-width:0}.status-emoji{font-size:42px;flex:0 0 auto}.recommendation{margin:16px 0;padding:17px;border-radius:26px;background:#fff;border:1px solid rgba(43,34,52,.08);box-shadow:0 10px 24px rgba(43,34,52,.055)}.check{display:flex;gap:10px;align-items:flex-start;color:var(--muted-ink);font-size:14px;line-height:1.45}.check:before{content:"✓";color:#8661dc;font-weight:900}.moon-strip{display:grid;gap:5px;margin-top:15px;padding:15px;border-radius:24px;background:linear-gradient(135deg,#f3eaff,#fff8e8);border:1px solid rgba(43,34,52,.07)}.moon-strip span{color:#7a55c6;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.moon-strip b{font-size:18px;color:#2b2234!important;line-height:1.22}.moon-strip small{color:#5f5369!important;line-height:1.45;font-weight:750}.mood-row{display:grid;gap:9px;margin:14px 0}.chip-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mood-chip{min-height:42px;border-radius:16px;padding:9px 10px;color:var(--text);background:rgba(255,255,255,.075);border:1px solid var(--line);font-size:13px;font-weight:900;text-align:left}.mood-chip.active{background:rgba(255,216,138,.16);border-color:rgba(255,216,138,.72)}.breath-meta{display:grid;gap:5px;margin:14px 0 12px;color:var(--text)}.breath-meta b{font-size:18px}.breath-meta span{color:var(--muted);font-size:14px;font-weight:900}.breath-meta small{color:var(--muted);font-size:12.5px;font-weight:800}.practice-circle{border:0;appearance:none;-webkit-appearance:none;width:min(214px,67vw);height:min(214px,67vw);margin:18px auto;border-radius:50%;display:grid;place-items:center;text-align:center;color:var(--ink);background:radial-gradient(circle,#fffdf8 0 42%,#ffd9e1 43% 62%,#d8c4ff 63% 100%);box-shadow:0 14px 46px rgba(255,158,176,.24);transition:transform var(--breath-duration,1s) linear,box-shadow var(--breath-duration,1s) linear,filter var(--breath-duration,1s) linear}.practice-circle>div{display:grid;gap:4px;place-items:center;padding:10px;min-width:0}.practice-circle.ready{transform:scale(.98)}.practice-circle.running{box-shadow:0 18px 58px rgba(255,158,176,.34)}.practice-circle.inhale{transform:scale(1.09);filter:saturate(1.08)}.practice-circle.hold-in{transform:scale(1.09);filter:saturate(1.15);transition-duration:.2s}.practice-circle.exhale{transform:scale(.9);filter:saturate(.95)}.practice-circle.hold-out{transform:scale(.9);filter:saturate(.95);transition-duration:.2s}.practice-circle.complete{transform:scale(1);background:radial-gradient(circle,#fffdf8 0 42%,#d8ffe8 43% 64%,#d8c4ff 65% 100%)}.practice-circle strong{display:block;font-size:46px;line-height:.95;font-weight:950;letter-spacing:-.04em;text-transform:none;min-height:44px}.practice-circle.ready strong{display:none}.practice-circle span{font-size:17px;font-weight:950;text-transform:uppercase;letter-spacing:.05em;max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.practice-circle.ready span{font-size:34px;text-transform:none;letter-spacing:-.04em;line-height:1;max-width:150px}.practice-circle small{display:none}.sound-toggle{display:flex;align-items:center;gap:10px;margin:8px 0 12px;color:var(--muted);font-weight:850}.sound-toggle input{width:20px;height:20px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}.settings-grid label{color:var(--muted);font-size:12.5px;font-weight:900;display:grid;gap:5px}.custom-practice{margin-top:10px;padding:14px;border-radius:22px;background:rgba(255,255,255,.07);border:1px solid var(--line)}.done-practice{margin-top:10px}.progress{height:10px;background:rgba(255,255,255,.11);border-radius:999px;overflow:hidden;margin-top:12px}.progress span{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--rose));width:var(--value,0%);transition:width .2s linear}button:disabled{opacity:.78;cursor:default}.quote{color:var(--ink);background:#fff8e8;border-radius:24px;padding:17px;border:1px solid rgba(43,34,52,.08)}.journal-entry,.event{color:var(--ink);background:#fffaf3;border-radius:22px;padding:15px;overflow-wrap:anywhere}.journal-entry time,.event span{display:block;color:var(--muted-ink);font-size:12.5px;font-weight:800;margin:6px 0}.reflection{margin:10px 0 0;color:#876a9b;font-size:13.5px}.bottom-nav{position:fixed;left:50%;bottom:max(10px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(calc(100% - 20px),436px);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:8px;background:rgba(22,17,30,.88);border:1px solid var(--line);border-radius:26px;backdrop-filter:blur(10px);z-index:10}.nav-item{color:rgba(255,250,246,.72);background:transparent;border-radius:18px;padding:8px 1px;font-size:10.5px;line-height:1.05;font-weight:900;display:grid;gap:3px;min-width:0;white-space:normal}.nav-item span{font-size:17px;line-height:1}.nav-item.active{color:#2f1d34;background:linear-gradient(135deg,#fff0c8,#ffb3bf)}.list{display:grid;gap:10px}.paywall{background:linear-gradient(160deg,#fff7e8,#f1e8ff);color:var(--ink)}.paywall .pill{color:#6f4bc4;border-color:rgba(111,75,196,.18);background:rgba(111,75,196,.08)}.footer-note{color:var(--muted);font-size:12.5px;text-align:center}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.day{min-height:56px;border-radius:15px;padding:7px 2px;background:rgba(255,255,255,.08);color:var(--text);border:1px solid var(--line);display:grid;place-items:center;min-width:0}.day strong{font-size:15px;line-height:1}.day span{font-size:10.5px;line-height:1.1;color:var(--muted);white-space:nowrap}.day.today{outline:2px solid var(--gold)}.tone-fog,.tone-knot,.tone-sharp,.tone-dark,.tone-storm,.tone-vanity{background:rgba(255,180,180,.13);border-color:rgba(255,180,180,.25)}.tone-heart,.tone-joy,.tone-sun,.tone-gratitude{background:rgba(255,216,138,.14);border-color:rgba(255,216,138,.32)}.tone-clear,.tone-move,.tone-height{background:rgba(155,231,195,.13);border-color:rgba(155,231,195,.28)}.event.good{border:1px solid rgba(155,231,195,.5)}.event.bad{border:1px solid rgba(255,180,180,.7)}.event.neutral{border:1px solid rgba(185,152,255,.45)}.tags-row{display:flex;gap:8px;flex-wrap:wrap}.tag.light{color:#6f4bc4;background:#f4edff;border-color:#dfd0ff}.good-tag{color:#4d2f91!important;background:#eee4ff!important;border-color:#cbb6ff!important}.careful-tag{color:#4a3108!important;background:#ffe6ad!important;border-color:#d39b28!important}.status-card .tag{color:#5b3aa0;background:#f3ebff;border-color:#ddcffb}.status-card .tag:not(.light){color:#6b4b18;background:#fff4dd;border-color:#f0d99c}.status-card .mini{color:#6d43bd}.actions-card{display:grid;gap:10px}.hidden{display:none!important}@media(max-width:360px){.app{padding-left:12px;padding-right:12px}h2{font-size:25.5px;line-height:1.1}.two{grid-template-columns:1fr}.hero-card,.card,.soft-card,.status-card{padding:18px;border-radius:26px}.practice-circle{width:188px;height:188px}.bottom-nav{width:min(calc(100% - 14px),436px);gap:3px;padding:7px}.nav-item{font-size:10px;padding:8px 0}.nav-item span{font-size:16px}.calendar-grid{gap:4px}.day{min-height:52px;border-radius:13px}.day span{font-size:10px}.pill{font-size:11.5px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}.event{position:relative;padding-right:56px}.event-menu-wrap{position:absolute;top:14px;right:14px;z-index:4}.event-kebab{width:38px;height:38px;min-height:38px;border-radius:16px;background:rgba(43,34,52,.08);color:var(--ink);border:1px solid rgba(43,34,52,.08);font-size:24px;line-height:1;display:grid;place-items:center;padding-bottom:6px}.event-kebab:active{transform:scale(.96);background:rgba(43,34,52,.14)}.event-menu{position:absolute;right:0;top:44px;min-width:178px;padding:8px;border-radius:18px;background:#fffaf3;border:1px solid rgba(43,34,52,.12);box-shadow:0 18px 45px rgba(23,12,35,.28);display:grid;gap:4px}.event-menu button{min-height:46px;text-align:left;border-radius:13px;padding:0 13px;background:transparent;color:var(--ink);font-weight:800}.event-menu button:active{background:rgba(185,152,255,.16)}.event-menu button.danger{color:#b24557}.event-menu button.danger:active{background:rgba(255,142,158,.18)}.event-planner-details{margin-top:18px;border:1px solid rgba(255,255,255,.16);border-radius:24px;background:rgba(255,255,255,.06);padding:6px}.event-planner-details summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:12px 16px;font-weight:800}.event-planner-details summary::-webkit-details-marker{display:none}.event-planner-details summary span{color:var(--text)}.event-planner-details summary small{color:var(--muted);font-weight:700;text-align:right}.event-planner-details[open] summary{border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:14px}.planner-fields{margin-bottom:14px}.event-detail{padding-right:28px}.event-detail summary{list-style:none;cursor:pointer}.event-detail summary::-webkit-details-marker{display:none}.event-detail summary b{display:block;margin-bottom:6px}.event-detail summary span{display:block;color:var(--muted)}:root{--keyboard-inset:0px}.app{padding-bottom:calc(102px + env(safe-area-inset-bottom) + var(--keyboard-inset,0px))}.screen{padding-bottom:var(--keyboard-inset,0px)}.keyboard-open .bottom-nav{transform:translateX(-50%) translateY(130%);pointer-events:none}.keyboard-open textarea{min-height:96px}input,textarea,select{scroll-margin-bottom:calc(130px + var(--keyboard-inset,0px));scroll-margin-top:24px}.lunar-details{display:grid;gap:10px}.lunar-details h3{margin-bottom:2px}.lunar-details details{border:1px solid rgba(255,255,255,.12);border-radius:20px;background:rgba(255,255,255,.055);overflow:hidden}.lunar-details summary{cursor:pointer;min-height:54px;padding:14px 16px;font-weight:900;color:var(--text);display:flex;align-items:center;justify-content:space-between;gap:12px}.lunar-details summary::after{content:"⌄";color:var(--gold);font-size:18px}.lunar-details details[open] summary::after{content:"⌃"}.lunar-details p{margin:0;padding:0 16px 16px;color:var(--muted);line-height:1.55;font-size:14px}.ai-advice{margin-top:10px;padding:14px;border:1px solid rgba(244,201,122,.22);border-radius:18px;background:rgba(244,201,122,.08);display:grid;gap:8px}.ai-advice p{margin:0;color:var(--muted);line-height:1.5}.ai-advice b{color:var(--text)}.ai-advice .reflection{margin-top:2px}.event-detail{margin-top:14px}.event-detail summary{list-style:none}.event-detail summary::-webkit-details-marker{display:none}.event-more{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:13px 15px;border-radius:18px;background:#f0e8df;border:1px solid #ded1c2;color:#2b2234;font-weight:900}.event-more span:after{content:none!important;display:none!important}.event-detail[open] .event-more span:after{content:none!important;display:none!important}.event-more small{color:#7a6d82;font-size:12px;font-weight:800}.event-detail-body{display:grid;gap:12px;padding-top:14px}.event .ai-advice{margin-top:4px;padding:15px;border:1px solid #d8c4a4;border-radius:18px;background:#fff4df;color:#2b2234;box-shadow:none}.event .ai-advice p{margin:0;color:#4f4559;line-height:1.5}.event .ai-advice b,.event .ai-advice .mini{color:#2b2234}.event .ai-advice .reflection{color:#4d2f91;background:#eee4ff;border:1px solid #cbb6ff;border-radius:14px;padding:10px}.event .small-btn{color:#2b2234;background:#f0e8df;border-color:#ded1c2}.event-more{display:block;width:100%;padding:13px 15px;border-radius:18px;background:#f0e8df;border:1px solid #d7c7b7;color:#2b2234!important;font-weight:900;text-align:center}.event-more:after{content:none!important;display:none!important}.event-detail[open] .event-more:after{content:none!important;display:none!important}.event-more span:after,.event-more small{display:none!important}.event-ai h4{margin:8px 0 2px;color:#2b2234;font-size:15px;line-height:1.25}.event-ai h4:first-child{margin-top:0}.event .ai-advice{margin-top:4px;padding:15px;border:1px solid #d8c4a4;border-radius:18px;background:#fff4df;color:#2b2234;box-shadow:none}.event .ai-advice p{margin:0 0 8px;color:#4f4559;line-height:1.5}.event .ai-advice p:last-child{margin-bottom:0}.event-reflection{margin-top:12px;padding:12px;border-radius:18px;background:#fffaf3;border:1px solid rgba(43,34,52,.12);display:grid;gap:10px;color:#2b2234}.event-reflection .mini{color:#6d6275}.event-reflection-input{width:100%;min-height:104px;border-radius:18px;border:1px solid rgba(43,34,52,.14);background:#fff;color:#2b2234;padding:13px;resize:vertical}.event-reflection-ai{background:#fff;border-color:rgba(185,152,255,.28)}.event-reflection-ai h4{color:#2b2234;margin:0 0 6px}.event-reflection-ai .reflection{color:#4d2f91;background:#eee4ff;border-radius:14px;padding:10px}.ai-unavailable{background:#fff3e0;border:1px solid rgba(122,82,20,.2);color:#2b2234}.ai-unavailable h4{margin:0 0 6px;color:#2b2234}.ai-unavailable p{color:#5f4d35}
/* Compass brand watermark */
.brand-block{min-width:0;position:relative;height:48px;display:flex;align-items:center;overflow:visible}.brand-row{position:relative;display:flex;align-items:center;min-width:0;width:100%;height:48px}.brand-watermark{position:absolute;left:-8px;top:50%;transform:translateY(-50%) rotate(-7deg);display:grid;place-items:center;width:76px;height:76px;border-radius:26px;opacity:.22;pointer-events:none;filter:drop-shadow(0 10px 24px rgba(255,216,138,.18));z-index:0}.brand-logo{display:block;width:72px;height:72px}.brand-logo-bg{fill:rgba(255,250,243,.2);stroke:rgba(255,250,243,.34);stroke-width:1}.brand-logo-star{fill:#fffaf3;stroke:#ffd88a;stroke-width:1.35;stroke-linejoin:round}.brand-logo-needle{fill:#fffaf3}.brand-logo-dot{fill:#ffd88a;stroke:#fffaf3;stroke-width:.9}.brand-row h1{position:relative;z-index:1;padding-left:42px;text-shadow:0 2px 14px rgba(24,17,31,.28)}

/* Event UX refinements 2026-05-15 */
.today-events .event.today-event,.event.today-event{border-color:rgba(255,216,138,.78)!important;background:linear-gradient(180deg,rgba(255,248,226,.98),rgba(255,239,217,.96))!important;box-shadow:0 16px 42px rgba(255,184,97,.22), inset 0 0 0 1px rgba(255,216,138,.35)}
.today-badge{display:inline-flex;align-items:center;width:max-content;margin:0 0 6px;padding:5px 10px;border-radius:999px;background:#ffe8a8;color:#51390b;font-size:12px;font-weight:900;letter-spacing:.02em}
.archived-event{opacity:.82;filter:saturate(.85)}
.archive-box{margin-top:14px;border:1px solid rgba(255,255,255,.16);border-radius:22px;background:rgba(255,255,255,.06);overflow:hidden}.archive-box>summary{padding:14px 16px;font-weight:900;color:var(--text);cursor:pointer}.archive-box .list{padding:0 10px 12px}
.ai-loading{display:flex;gap:12px;align-items:center;margin:12px 0;padding:14px;border-radius:20px;background:linear-gradient(135deg,rgba(255,248,230,.98),rgba(246,228,255,.95));border:1px solid rgba(185,152,255,.28);color:#34263e;box-shadow:0 10px 28px rgba(49,30,68,.12)}.ai-loading b{display:block;font-size:14px}.ai-loading small{display:block;margin-top:3px;color:#74647a;font-weight:700;line-height:1.35}.moon-loader{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:0 0 38px;width:38px;height:38px;border-radius:16px;background:linear-gradient(135deg,rgba(255,255,255,.62),rgba(247,231,255,.46));border:1px solid rgba(132,92,172,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.72)}.moon-loader i{display:block;width:6px;height:6px;border-radius:50%;background:#7b5aa6;opacity:.38;animation:moonDot 1.05s ease-in-out infinite}.moon-loader i:nth-child(2){animation-delay:.14s}.moon-loader i:nth-child(3){animation-delay:.28s}@keyframes moonDot{0%,100%{transform:translateY(0);opacity:.32}50%{transform:translateY(-4px);opacity:.9}}
.primary.is-loading,.ghost.is-loading,button:disabled{opacity:.82;pointer-events:none}.primary.is-loading span:after,.ghost.is-loading:after{content:' ';display:inline-block;width:10px;height:10px;margin-left:8px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.compact-ai{font-size:15px;line-height:1.58}.compact-ai h4{margin-bottom:8px}.compact-ai p{margin:7px 0!important}.event-reflection-ai .reflection{margin-top:10px!important;padding-top:10px;border-top:1px solid rgba(70,49,84,.13);font-weight:800;color:#4d3a5b!important}
.event-detail[open] .event-more{color:#5b3b7a}.event-detail-body{scroll-margin-bottom:110px}.event-reflection-input{min-height:98px}.event .small-btn{margin-top:10px}

/* Organic event save modal */
.flow-backdrop{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:22px;background:rgba(15,9,22,.42);backdrop-filter:blur(7px);animation:flowFade .18s ease both}.flow-modal{width:min(100%,340px);border-radius:30px;padding:20px;background:linear-gradient(160deg,rgba(255,250,246,.96),rgba(239,228,255,.94));color:#2b2234;border:1px solid rgba(255,255,255,.68);box-shadow:0 26px 70px rgba(13,7,20,.36), inset 0 1px 0 rgba(255,255,255,.8);animation:flowPop .2s ease both}.flow-modal .pill{color:#6d4a83;background:rgba(185,152,255,.18);border-color:rgba(185,152,255,.2)}.flow-modal h3{margin:6px 0 8px;color:#2b2234;font-size:22px;line-height:1.1;letter-spacing:-.04em}.flow-modal p{margin:8px 0;color:#55475f;line-height:1.5;font-weight:700}.flow-note{font-size:14px}.flow-actions{display:grid;gap:10px;margin-top:16px}.flow-actions .primary,.flow-actions .ghost{width:100%;min-height:58px}.flow-actions .ghost{background:rgba(255,255,255,.56);color:#3a2b45;border-color:rgba(43,34,52,.12)}@keyframes flowFade{from{opacity:0}to{opacity:1}}@keyframes flowPop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}

/* UX audit fixes 2026-05-15 */
.personal-result{background:linear-gradient(180deg,rgba(255,250,246,.16),rgba(185,152,255,.10));border-color:rgba(255,255,255,.18)}.personal-result h3{margin:4px 0 8px;font-size:22px;letter-spacing:-.04em}.personal-result .reflection{color:#f7e9ff;background:rgba(255,255,255,.08);border-radius:18px;padding:12px 14px;margin:12px 0;font-weight:800}.form-error,.form-success{margin:10px 0 12px;padding:11px 13px;border-radius:16px;font-size:14px;font-weight:800;line-height:1.35}.form-error{color:#5a1e22;background:#ffe1e2;border:1px solid #ffb8bd}.form-success{color:#2f4d36;background:#dff8e7;border:1px solid #a9e7bd}.event-kebab{width:44px!important;height:44px!important;min-height:44px!important}.flow-backdrop{align-items:center;justify-items:center;padding:max(18px,env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom) + var(--keyboard-inset,0px))}.flow-modal{max-height:calc(100dvh - 42px - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--keyboard-inset,0px));overflow:auto;-webkit-overflow-scrolling:touch}.flow-warning{background:#fff1cf;border:1px solid #e5bd6a;border-radius:16px;padding:10px 12px;color:#5c3f0b!important}.day{touch-action:manipulation}.day:focus-visible,.event-kebab:focus-visible,.flow-modal button:focus-visible{outline:3px solid rgba(255,216,138,.9);outline-offset:2px}@media(max-width:360px){.nav-item{font-size:11px!important}.day span{font-size:11px!important}}

/* Lunar details inside the light home card */
.lunar-day-meta{display:inline-flex;align-items:center;margin:10px 0 0!important;padding:8px 11px;border-radius:999px;background:#f1e7ff;color:#4f2f83!important;border:1px solid rgba(79,47,131,.12);font-size:12px!important;font-weight:950;letter-spacing:.04em;text-transform:uppercase}.lunar-details{margin-top:18px;padding:12px;border-radius:24px;background:#fffaf6;border:1px solid rgba(43,34,52,.08);box-shadow:0 14px 34px rgba(43,34,52,.08)}.status-card .lunar-detail-row{border-bottom:1px solid rgba(43,34,52,.08)}.status-card .lunar-detail-row:last-child{border-bottom:0}.lunar-detail-toggle{display:block;width:100%;min-height:58px;padding:17px 30px 17px 12px;background:transparent!important;color:#2b2234!important;font-size:16px;font-weight:950;line-height:1.25;text-align:left;position:relative;box-shadow:none!important;border-radius:0}.lunar-detail-toggle:after{content:'⌄';position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#b68b2e;font-size:19px;font-weight:950;transition:transform .22s ease,color .22s ease}.lunar-detail-row.open .lunar-detail-toggle:after{content:'⌃';transform:translateY(-50%) rotate(180deg)}.lunar-detail-body{display:grid;grid-template-rows:0fr;opacity:0;transform:translateY(-6px);transition:grid-template-rows .34s cubic-bezier(.22,.8,.24,1),opacity .24s ease,transform .34s cubic-bezier(.22,.8,.24,1);will-change:grid-template-rows,opacity,transform;overflow:hidden}.lunar-detail-row.open .lunar-detail-body{grid-template-rows:1fr;opacity:1;transform:translateY(0)}.lunar-detail-inner{min-height:0;display:grid;gap:10px;padding:0 10px 13px;overflow:hidden}.lunar-detail-body p{margin:0!important;padding:14px 15px;border-radius:18px;background:#fff2dc;color:#423648!important;font-size:16.5px;line-height:1.62;font-weight:760}.lunar-detail-body .lunar-detail-tip{background:#f4e8ff;color:#4f2f83!important;font-size:15.5px;font-weight:850;line-height:1.5}.lunar-detail-body b{display:block;margin-bottom:4px;color:#5d3d8d;font-size:13px;text-transform:uppercase;letter-spacing:.04em}@media(prefers-reduced-motion:reduce){.lunar-detail-body{transition:none!important}}


/* Home event CTA */
.event-home-cta{margin-top:18px;padding:18px;border-radius:24px;background:linear-gradient(145deg,rgba(255,250,246,.82),rgba(239,228,255,.72));border:1px solid rgba(185,152,255,.25);box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}.event-home-cta h3{margin:0 0 8px;color:#2f2340;font-size:20px;line-height:1.18}.event-home-cta p{margin:0 0 14px;color:#6d6275;font-size:14px;line-height:1.55}.event-home-cta .primary{width:100%}

/* Event cards: tap-safe controls + polished mobile UI */
.today-events{background:linear-gradient(180deg,rgba(255,250,246,.13),rgba(185,152,255,.08));border-color:rgba(255,255,255,.18)}
.today-events h3{margin-bottom:12px;font-size:25px;letter-spacing:-.04em}
.today-events .list{gap:12px}
.event{position:relative;padding:18px!important;padding-right:18px!important;border-radius:25px!important;overflow:visible;background:linear-gradient(180deg,#fff8e7 0%,#fff1da 100%)!important;border:1px solid rgba(255,216,138,.7)!important;box-shadow:0 14px 34px rgba(255,184,97,.16), inset 0 1px 0 rgba(255,255,255,.72);color:#2b2234}
.event-head{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:12px;align-items:start}
.event-title{min-width:0;display:grid;gap:6px;align-content:start}
.event-title b{display:block;font-size:20px;line-height:1.2;letter-spacing:-.035em;color:#2b2234;overflow-wrap:anywhere}
.event-meta,.event span.event-meta{display:block;margin:10px 0 0;color:#70647a;font-size:13px;line-height:1.42;font-weight:850}
.event-kebab{width:48px!important;height:48px!important;min-height:48px!important;border-radius:18px!important;background:rgba(43,34,52,.07)!important;border:1px solid rgba(43,34,52,.10)!important;color:#2b2234!important;font-size:25px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
.event-kebab.active,.event-kebab:active{background:#fff7ef!important;border-color:rgba(185,152,255,.36)!important;box-shadow:0 8px 18px rgba(43,34,52,.10)}
.event-menu-wrap{position:static!important}
.event-menu{display:none!important}
.event-menu-panel{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;padding:8px;border-radius:19px;background:rgba(43,34,52,.055);border:1px solid rgba(43,34,52,.08)}
.event-menu-panel button{min-height:48px;border-radius:15px;background:#fffaf3;color:#2b2234;font-weight:900;border:1px solid rgba(43,34,52,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.65)}
.event-menu-panel button.danger{color:#a9374c;background:#fff1f3;border-color:rgba(178,69,87,.16)}
.event-detail{padding-right:0!important;margin-top:14px}
.event-more{display:grid!important;grid-template-columns:minmax(0,1fr) 32px;align-items:center;gap:10px;width:100%;min-height:58px;padding:14px 16px!important;border-radius:19px!important;background:linear-gradient(180deg,#fffaf5,#f0e5da)!important;border:1px solid rgba(43,34,52,.12)!important;color:#2b2234!important;font-size:16px;font-weight:950;text-align:center;box-shadow:0 8px 18px rgba(43,34,52,.06), inset 0 1px 0 rgba(255,255,255,.7)}
.event-more span{display:block!important;margin:0!important;color:#2b2234!important;font-size:16px!important;line-height:1.1!important}
.event-more small{display:grid;place-items:center;width:32px;height:32px;border-radius:999px;background:rgba(185,152,255,.16);color:#5b3b7a!important;font-size:17px!important;font-weight:950!important}
.event-detail.open .event-more{background:linear-gradient(180deg,#f6edff,#fff8ed)!important;border-color:rgba(185,152,255,.32)!important}
.event-detail-body{margin-top:12px;padding:14px!important;border-radius:18px;background:rgba(255,255,255,.52);border:1px solid rgba(43,34,52,.08)}
.today-badge{margin:0!important;padding:6px 11px!important;border-radius:999px;background:#ffe8a8;color:#51390b;font-size:12px;font-weight:950;width:max-content;box-shadow:inset 0 1px 0 rgba(255,255,255,.65)}

/* Event cards: lunar polish pass */
.today-events{position:relative;overflow:hidden;background:radial-gradient(circle at 85% 8%,rgba(255,216,138,.16),transparent 34%),linear-gradient(180deg,rgba(255,250,246,.14),rgba(185,152,255,.075))!important}
.today-events:before{content:'☾';position:absolute;right:22px;top:18px;color:rgba(255,216,138,.38);font-size:24px;transform:rotate(-18deg);pointer-events:none}.today-events:after{content:'';position:absolute;left:34px;right:34px;top:76px;height:1px;background:linear-gradient(90deg,transparent,rgba(255,216,138,.38),transparent);pointer-events:none}.today-events h3{position:relative;padding-right:36px;text-shadow:0 1px 0 rgba(255,255,255,.06)}
.event{isolation:isolate;position:relative;overflow:hidden!important;background:radial-gradient(circle at 88% 14%,rgba(255,255,255,.78),transparent 23%),radial-gradient(circle at 8% 0%,rgba(255,216,138,.22),transparent 30%),linear-gradient(145deg,#fff8df 0%,#fff0dc 58%,#f8e9ff 100%)!important;border:1px solid rgba(255,216,138,.78)!important;box-shadow:0 18px 42px rgba(255,184,97,.18),0 2px 0 rgba(255,255,255,.38) inset,0 0 0 1px rgba(255,255,255,.34) inset!important}
.event:before{content:'';position:absolute;inset:10px;border-radius:21px;border:1px solid rgba(255,255,255,.52);box-shadow:inset 0 0 28px rgba(255,255,255,.18);pointer-events:none;z-index:-1}.event:after{content:'☽';position:absolute;right:24px;bottom:18px;color:rgba(91,59,122,.075);font-size:70px;line-height:1;transform:rotate(-12deg);pointer-events:none;z-index:-1}.event-title b{font-size:21px;color:#261b30;text-shadow:0 1px 0 rgba(255,255,255,.58)}
.event-meta,.event span.event-meta{max-width:calc(100% - 8px);color:#6a5f73;font-size:13.5px;font-weight:900}.today-badge{background:linear-gradient(135deg,#fff1aa,#ffd879)!important;color:#51390b;box-shadow:0 8px 18px rgba(255,216,138,.24),inset 0 1px 0 rgba(255,255,255,.72)!important}.today-badge:before{content:'✦';margin-right:6px;font-size:10px;color:#7b5521}
.event-kebab{position:relative!important;overflow:hidden;width:50px!important;height:50px!important;border-radius:19px!important;background:radial-gradient(circle at 34% 30%,#fffaf5 0 22%,#f6eaff 23% 42%,#fff3dd 43% 100%)!important;border:1px solid rgba(91,59,122,.14)!important;box-shadow:0 10px 24px rgba(91,59,122,.12),inset 0 1px 0 rgba(255,255,255,.82)!important;padding:0!important}.event-kebab:before{content:'';position:absolute;inset:7px;border-radius:999px;border:1px solid rgba(185,152,255,.22);transform:rotate(-18deg)}.event-kebab:after{content:'';position:absolute;width:5px;height:5px;border-radius:50%;right:11px;top:10px;background:#ffd88a;box-shadow:-22px 25px 0 rgba(185,152,255,.55),-6px 30px 0 rgba(255,142,158,.35)}.event-kebab.active{transform:translateY(-1px);background:radial-gradient(circle at 38% 28%,#fff 0 20%,#eadfff 21% 43%,#ffe9b6 44% 100%)!important;border-color:rgba(185,152,255,.42)!important}.kebab-moon{position:absolute;left:12px;top:8px;font-size:19px;line-height:1;color:#4d3263;transform:rotate(-14deg);pointer-events:none}.kebab-stars{position:absolute;right:9px;bottom:9px;letter-spacing:1px;font-size:15px;line-height:1;color:#4d3263;pointer-events:none}
.event-menu-panel{position:absolute!important;right:18px;top:78px;z-index:8;width:218px;display:grid!important;grid-template-columns:1fr!important;gap:7px;margin:0!important;padding:12px!important;border-radius:22px!important;background:linear-gradient(155deg,rgba(255,250,246,.96),rgba(246,235,255,.95))!important;border:1px solid rgba(255,255,255,.72)!important;box-shadow:0 22px 52px rgba(38,27,48,.24),0 0 0 1px rgba(185,152,255,.16),inset 0 1px 0 rgba(255,255,255,.82)!important;backdrop-filter:blur(12px);animation:eventMenuPop .16s ease both}.event-menu-panel:before{content:'';position:absolute;right:18px;top:-7px;width:14px;height:14px;transform:rotate(45deg);background:rgba(255,250,246,.96);border-left:1px solid rgba(255,255,255,.7);border-top:1px solid rgba(255,255,255,.7)}.event-menu-title{margin:0 0 2px;padding:0 4px;color:#7a6d82;font-size:11px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}.event-menu-panel button{display:flex;align-items:center;gap:10px;justify-content:flex-start;min-height:48px!important;padding:0 12px!important;border-radius:16px!important;background:rgba(255,255,255,.74)!important;color:#2b2234!important;text-align:left;font-weight:950!important;border:1px solid rgba(43,34,52,.075)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.86)!important}.event-menu-panel button span{display:grid;place-items:center;width:25px;height:25px;margin:0;border-radius:999px;background:rgba(185,152,255,.18);color:#5b3b7a;font-size:13px}.event-menu-panel button.danger{background:linear-gradient(135deg,#fff7f8,#ffe9ee)!important;color:#a9374c!important}.event-menu-panel button.danger span{background:rgba(255,142,158,.18);color:#a9374c}.event-menu-panel button:active{transform:scale(.985);filter:saturate(1.08)}@keyframes eventMenuPop{from{opacity:0;transform:translateY(-6px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.event-more{position:relative;overflow:hidden;background:linear-gradient(180deg,#fffdf9,#f3e9df)!important;border-color:rgba(43,34,52,.09)!important;box-shadow:0 11px 24px rgba(43,34,52,.075),inset 0 1px 0 rgba(255,255,255,.85)!important}.event-more:before{content:'';position:absolute;left:-30%;top:0;width:30%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.56),transparent);transform:skewX(-18deg)}.event-more:active:before{animation:buttonGlint .5s ease}.event-more small{background:linear-gradient(135deg,rgba(255,216,138,.45),rgba(185,152,255,.20))!important}@keyframes buttonGlint{to{left:110%}}

/* Event action button: quiet constellation, no button-on-button feeling */
.event-head{grid-template-columns:minmax(0,1fr) 42px!important;gap:10px!important}
.event-kebab{width:42px!important;height:42px!important;min-height:42px!important;border-radius:16px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;align-self:start;transform:translate(2px,-2px)}
.event-kebab:before{inset:5px!important;border:1px solid rgba(91,59,122,.12)!important;background:rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.36);opacity:.9}
.event-kebab:after{width:3px!important;height:3px!important;right:9px!important;top:9px!important;background:rgba(255,216,138,.72)!important;box-shadow:-17px 20px 0 rgba(185,152,255,.34),-4px 24px 0 rgba(255,142,158,.26)!important}.event-kebab.active{background:rgba(255,255,255,.18)!important;border:0!important;box-shadow:0 8px 18px rgba(91,59,122,.08)!important}.kebab-moon{left:11px!important;top:9px!important;font-size:17px!important;color:rgba(77,50,99,.78)!important}.kebab-stars{right:8px!important;bottom:9px!important;font-size:13px!important;color:rgba(77,50,99,.56)!important;letter-spacing:0!important}.event-kebab:active{transform:translate(2px,-2px) scale(.96)!important}
.event-menu-panel{top:66px!important;right:12px!important}

/* Journal compact archive + readable light cards */
.journal-compose{position:relative;overflow:hidden}.journal-toast{animation:journalToast 5s ease forwards}@keyframes journalToast{0%,82%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-6px)}}
.journal-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.journal-section-head h3{margin:2px 0 0;font-size:25px;letter-spacing:-.045em}.journal-moon-count{display:grid;place-items:center;width:54px;height:54px;border-radius:20px;background:radial-gradient(circle at 35% 25%,rgba(255,216,138,.92),rgba(185,152,255,.22));border:1px solid rgba(255,216,138,.36);color:#2b2234;box-shadow:inset 0 1px 0 rgba(255,255,255,.48)}.journal-moon-count span{font-size:18px;line-height:1}.journal-moon-count b{font-size:14px;line-height:1;margin-top:-6px}.journal-today,.journal-archive{position:relative;overflow:hidden;background:radial-gradient(circle at 92% 8%,rgba(255,216,138,.15),transparent 30%),linear-gradient(180deg,rgba(255,250,246,.13),rgba(185,152,255,.075))!important}.journal-today:before,.journal-archive:before{content:'✦';position:absolute;right:24px;bottom:18px;color:rgba(255,216,138,.25);font-size:18px;pointer-events:none}.journal-archive-lead{margin:4px 0 14px!important;color:#eadff0!important;font-size:14px!important;line-height:1.55!important}.journal-date-input{width:132px!important;min-height:44px!important;padding:10px 12px!important;border-radius:16px!important;font-size:14px!important;background:rgba(255,250,246,.92)!important;color:#2b2234!important;border:1px solid rgba(255,255,255,.42)!important}.journal-date-rail{display:flex;gap:8px;overflow-x:auto;padding:2px 0 12px;margin:0 -2px 2px;scrollbar-width:none}.journal-date-rail::-webkit-scrollbar{display:none}.journal-date-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:#f8edf9;font-size:13px;font-weight:900}.journal-date-chip span{color:#ffd88a}.journal-date-chip.active{background:linear-gradient(135deg,#fff1c9,#e7dcff);color:#2b2234;border-color:rgba(255,216,138,.45);box-shadow:0 10px 24px rgba(255,216,138,.12)}.journal-entry{position:relative;background:radial-gradient(circle at 92% 10%,rgba(255,216,138,.18),transparent 28%),linear-gradient(145deg,#fffaf3 0%,#fff4e9 58%,#f6eeff 100%)!important;border:1px solid rgba(255,255,255,.76);box-shadow:0 14px 34px rgba(23,12,35,.12),inset 0 1px 0 rgba(255,255,255,.78);color:#2b2234!important}.journal-entry:after{content:'☾';position:absolute;right:16px;bottom:14px;color:rgba(91,59,122,.07);font-size:46px;pointer-events:none}.journal-entry time{color:#73657d!important;font-weight:950!important}.journal-text{margin:8px 0!important;color:#2b2234!important;font-size:18px;line-height:1.45;font-weight:650}.journal-entry .reflection{color:#7b6687!important;background:transparent!important;font-weight:700}.journal-entry .ghost.small-btn{color:#2b2234!important;background:linear-gradient(135deg,#fff2c7,#eadfff)!important;border:1px solid rgba(91,59,122,.16)!important;box-shadow:0 10px 22px rgba(91,59,122,.10),inset 0 1px 0 rgba(255,255,255,.76)!important}.journal-entry .ai-advice{color:#2b2234!important;background:linear-gradient(145deg,#fff7e8,#f0e7ff)!important;border:1px solid rgba(185,152,255,.24)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.76)}.journal-entry .ai-advice p{color:#4f4559!important}.journal-entry .ai-advice b,.journal-entry .ai-advice .mini{color:#5b3b7a!important}.journal-entry .ai-advice .reflection{color:#5b3b7a!important;background:rgba(185,152,255,.12)!important;border-radius:14px;padding:10px 12px}.empty-moon{display:grid;place-items:center;gap:8px;padding:22px 16px;border-radius:22px;background:rgba(255,255,255,.07);border:1px dashed rgba(255,255,255,.18);text-align:center}.empty-moon span{font-size:34px;color:#ffd88a}.empty-moon p{margin:0;color:#eadff0;font-weight:750;line-height:1.45}

/* Journal reflection controls */
.journal-entry{position:relative!important;overflow:hidden!important}
.journal-entry-head{display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:start;gap:10px;margin-bottom:8px}
.journal-entry-head time{align-self:center}
.journal-kebab{justify-self:end}
.journal-menu-panel{top:58px!important;right:12px!important;width:176px!important}
.journal-entry-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:12px}
.journal-entry-actions .small-btn{width:100%;justify-content:center}
.journal-entry .ai-loading{margin-top:12px}
.journal-practice-cta{width:100%;margin:10px 0 4px;padding:13px 14px;border:1px solid rgba(111,74,152,.18);border-radius:18px;background:linear-gradient(135deg,rgba(255,247,226,.9),rgba(238,226,255,.88));color:#2b2234;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;font-weight:800;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.journal-practice-cta small{color:#6d6275;font-weight:700;font-size:12px;line-height:1.25;text-align:right}
.journal-ai-expanded{display:grid;gap:10px;padding:14px!important;border-radius:20px!important;background:linear-gradient(155deg,rgba(255,250,246,.72),rgba(246,235,255,.64))!important;border:1px solid rgba(91,59,122,.10)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.64)}
.journal-ai-expanded p{margin:0!important;color:#3c3047!important;font-size:15px!important;line-height:1.55!important;font-weight:700}
.journal-ai-unified p{font-weight:650!important;line-height:1.62!important}
.journal-ai-unified p:first-child{font-size:15.5px!important}
.journal-ai-expanded p b{color:#4d3263;font-weight:950}
.journal-ai-expanded .safety-note{margin-top:2px!important;padding-top:10px;border-top:1px solid rgba(77,50,99,.10);color:#766878!important;font-size:13.5px!important}

/* Profile onboarding fields: readable labels and safe insets */
.profile-onboarding{overflow:hidden}
.profile-fields{padding:0 2px;margin:16px 0 14px;gap:13px}
.profile-field{width:100%;max-width:100%;min-width:0;display:grid;gap:7px}
.profile-field label{display:block;padding:0 2px;color:#f6edf8;font-size:13px;font-weight:900;letter-spacing:.01em}
.profile-field small{display:block;padding:0 2px;color:rgba(255,250,246,.66);font-size:12px;font-weight:750;line-height:1.35}
.profile-field .input{width:100%;max-width:100%;min-width:0;min-height:58px;border-radius:20px;padding:15px 18px;background:rgba(255,255,255,.10);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.birth-place-field{position:relative}.birth-place-suggestions{display:grid;gap:7px;margin-top:2px;padding:8px;border-radius:22px;background:rgba(255,250,246,.10);border:1px solid rgba(255,255,255,.14);box-shadow:0 16px 36px rgba(12,7,18,.18)}.birth-place-suggestions button{width:100%;border:0;border-radius:17px;padding:11px 13px;text-align:left;background:rgba(255,255,255,.12);color:#fffaf6;font:inherit}.birth-place-suggestions button span{display:block;font-size:14px;font-weight:900;line-height:1.25}.birth-place-suggestions button small{display:block;margin-top:3px;padding:0;color:rgba(255,250,246,.66);font-size:12px;font-weight:750}.birth-place-suggestions button:active{transform:translateY(1px);background:rgba(255,255,255,.18)}
.profile-field select.input{padding-right:44px}
input[type=date].input,input[type=time].input{width:100%;max-width:100%;min-width:0;-webkit-appearance:none;appearance:none;color:var(--text)}
input[type=date].input::-webkit-date-and-time-value,input[type=time].input::-webkit-date-and-time-value{text-align:left;min-width:0}

/* Profile iteration: top profile entry, keyboard-safe nav, personal facts */
body.keyboard-open .bottom-nav{display:none!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(140%);opacity:0!important}
body.keyboard-open .app{padding-bottom:calc(18px + env(safe-area-inset-bottom) + var(--keyboard-inset,0px))}
.profile-top-btn{position:relative;overflow:hidden;display:grid;place-items:center;font-size:22px;background:linear-gradient(145deg,rgba(255,250,246,.14),rgba(185,152,255,.16));border-color:rgba(255,255,255,.18)}.profile-top-btn:before{content:'';position:absolute;inset:6px;border-radius:15px;background:radial-gradient(circle at 62% 30%,rgba(255,216,138,.22),transparent 34%),linear-gradient(160deg,rgba(255,255,255,.08),rgba(185,152,255,.08));border:1px solid rgba(255,255,255,.08)}.profile-moon{position:absolute;right:8px;top:6px;color:#fffaf6;filter:drop-shadow(0 5px 12px rgba(255,216,138,.18));transform:rotate(-8deg)}.profile-person{position:absolute;left:12px;bottom:10px;width:18px;height:20px}.profile-person:before{content:'';position:absolute;left:6px;top:1px;width:8px;height:8px;border-radius:50%;background:#fffaf6;box-shadow:0 0 0 2px rgba(255,216,138,.16)}.profile-person:after{content:'';position:absolute;left:2px;bottom:0;width:16px;height:10px;border-radius:999px 999px 7px 7px;background:linear-gradient(180deg,#fffaf6,#f3dcff);box-shadow:0 7px 14px rgba(24,17,31,.16)}.profile-spark{position:absolute;left:8px;top:8px;color:rgba(255,216,138,.86);font-size:9px;line-height:1}

.profile-screen .profile-fields{margin-top:14px}
.profile-field input[type=number].input{appearance:textfield;-moz-appearance:textfield}
.profile-field input[type=number].input::-webkit-outer-spin-button,.profile-field input[type=number].input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.personal-birth-meta{margin:14px 0 0;padding:11px 13px;border-radius:16px;background:rgba(255,250,246,.10);color:#eadff0;font-size:13px;font-weight:800;line-height:1.45;text-transform:none;letter-spacing:0;overflow-wrap:anywhere}
.profile-facts{background:linear-gradient(180deg,rgba(255,250,246,.14),rgba(185,152,255,.08));border-color:rgba(255,255,255,.18)}
.profile-facts h3{margin:6px 0 12px;font-size:24px;letter-spacing:-.04em}
.profile-fact-list{display:grid;gap:9px}
.profile-fact{display:grid;gap:4px;padding:12px 13px;border-radius:18px;background:rgba(255,250,246,.10);border:1px solid rgba(255,255,255,.12)}
.profile-fact b{color:#fffaf6;font-size:13px;font-weight:950}
.profile-fact span{color:#e9dced;font-size:14px;line-height:1.4;font-weight:750}
.profile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.profile-head h2{margin-top:6px}.settings-gear-btn{position:relative;overflow:hidden;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;min-width:108px;min-height:52px;padding:8px 11px;border-radius:22px;color:#fffaf6;background:linear-gradient(145deg,rgba(255,250,246,.14),rgba(185,152,255,.16));border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 12px 28px rgba(24,17,31,.16);font-size:12px;font-weight:900;letter-spacing:-.01em}.settings-gear-btn:before{content:'';position:absolute;inset:5px;border-radius:18px;background:radial-gradient(circle at 72% 24%,rgba(255,216,138,.22),transparent 34%),linear-gradient(160deg,rgba(255,255,255,.08),rgba(185,152,255,.08));pointer-events:none}.settings-gear-btn span{position:relative;z-index:1}.gear-core{display:grid;place-items:center;width:28px;height:28px;border-radius:12px;background:radial-gradient(circle at 35% 25%,#fffaf6 0 18%,#f1dcff 19% 56%,rgba(255,216,138,.7) 57% 100%);color:#3a2946;font-size:16px;box-shadow:0 8px 18px rgba(24,17,31,.18),inset 0 1px 0 rgba(255,255,255,.75)}.profile-overview .profile-fact-list{margin-top:8px}.subscription-manage{margin-top:0}.subscription-manage h3{margin:6px 0 8px;font-size:24px;letter-spacing:-.04em}


.lunar-person-story{position:relative;overflow:hidden;margin-top:12px;padding:18px;border-radius:26px;background:linear-gradient(155deg,rgba(255,250,246,.16),rgba(185,152,255,.13));border:1px solid rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}.lunar-person-story:before{content:'';position:absolute;right:-22px;top:-18px;width:110px;height:110px;border-radius:38px;background:radial-gradient(circle,rgba(255,216,138,.24),transparent 62%);transform:rotate(-12deg);pointer-events:none}.story-moon{position:absolute;right:18px;top:16px;color:rgba(255,216,138,.82);font-size:34px;filter:drop-shadow(0 10px 22px rgba(255,216,138,.15))}.lunar-person-story h3{position:relative;margin:10px 0 10px;font-size:25px;line-height:1.12;letter-spacing:-.045em}.lunar-person-story p:not(.pill){position:relative;margin:0;color:#f2e8f5;font-size:15px;line-height:1.62;font-weight:760}.story-advice{position:relative;margin-top:14px;padding:13px 14px;border-radius:19px;background:rgba(255,250,246,.10);border:1px solid rgba(255,255,255,.12);display:grid;gap:4px}.story-advice b{color:#ffd88a;font-size:13px;font-weight:950}.story-advice span{color:#fffaf6;font-size:14px;line-height:1.45;font-weight:800}.astro-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.astro-card{position:relative;overflow:hidden;min-height:126px;padding:14px;border-radius:22px;background:linear-gradient(150deg,rgba(255,250,246,.13),rgba(185,152,255,.10));border:1px solid rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}.astro-card:before{content:'';position:absolute;right:-18px;top:-20px;width:72px;height:72px;border-radius:28px;background:radial-gradient(circle,rgba(255,216,138,.22),transparent 65%);pointer-events:none}.astro-card .astro-icon{display:grid;place-items:center;width:34px;height:34px;margin-bottom:10px;border-radius:14px;background:radial-gradient(circle at 35% 25%,#fffaf6 0 16%,#f1dcff 17% 58%,rgba(255,216,138,.72) 59% 100%);color:#3a2946;font-weight:950;box-shadow:0 8px 18px rgba(24,17,31,.16),inset 0 1px 0 rgba(255,255,255,.75)}.astro-card b{display:block;color:#d9cbe2;font-size:12px;font-weight:950;letter-spacing:.02em;text-transform:uppercase}.astro-card strong{display:block;margin-top:4px;color:#fffaf6;font-size:18px;line-height:1.15;letter-spacing:-.035em}.astro-card small{display:block;margin-top:7px;color:#e6d9ea;font-size:12px;line-height:1.35;font-weight:750}.astro-card:nth-child(3),.astro-card:nth-child(5){grid-column:1/-1;min-height:auto}.profile-facts .profile-fact-list{display:none}@media(max-width:380px){.astro-grid{grid-template-columns:1fr}.astro-card:nth-child(n){grid-column:auto}.profile-head{align-items:stretch;flex-direction:column}.settings-gear-btn{width:max-content}}

/* Clean profile/settings buttons + refined profile symbol cards */
.profile-top-btn{width:44px;height:44px;padding:0;position:relative;overflow:hidden;display:grid;place-items:center;border-radius:18px;background:linear-gradient(145deg,rgba(255,250,246,.13),rgba(185,152,255,.12));border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}.profile-top-btn:before{content:'';position:absolute;inset:7px;border-radius:14px;background:radial-gradient(circle at 70% 25%,rgba(255,216,138,.18),transparent 42%),rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}.profile-glyph{position:relative;z-index:1;width:22px;height:22px;color:#fffaf6}.profile-glyph:before{content:'';position:absolute;left:7px;top:3px;width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 2px rgba(255,216,138,.18)}.profile-glyph:after{content:'';position:absolute;left:3px;bottom:2px;width:16px;height:9px;border-radius:999px 999px 7px 7px;background:currentColor;box-shadow:0 8px 15px rgba(24,17,31,.16)}.settings-gear-btn{width:52px!important;min-width:52px!important;height:52px!important;min-height:52px!important;padding:0!important;display:grid!important;grid-template-columns:1fr!important;place-items:center!important;border-radius:21px!important;background:linear-gradient(145deg,rgba(255,250,246,.13),rgba(185,152,255,.13))!important}.settings-gear-btn .gear-core{width:32px;height:32px;border-radius:14px;font-size:17px}.settings-gear-btn span:not(.gear-core){display:none!important}.profile-head{align-items:flex-start}.astro-grid{display:grid;grid-template-columns:1fr;gap:10px}.astro-card{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:13px;min-height:0!important;padding:14px 15px!important;border-radius:24px!important;background:linear-gradient(145deg,rgba(255,250,246,.14),rgba(185,152,255,.09))!important;border:1px solid rgba(255,255,255,.14)!important}.astro-card:nth-child(n){grid-column:auto!important}.astro-icon{width:52px!important;height:52px!important;margin:0!important;border-radius:19px!important;background:radial-gradient(circle at 34% 26%,#fffaf6 0 15%,#efdfff 16% 56%,rgba(255,216,138,.82) 57% 100%)!important;color:#3a2946!important}.astro-icon svg{width:28px;height:28px}.astro-copy{display:block;min-width:0}.astro-card b{font-size:11px!important;letter-spacing:.06em!important;color:#d9cbe2!important}.astro-card strong{font-size:20px!important;margin-top:3px!important;overflow-wrap:anywhere}.astro-card small{font-size:13px!important;line-height:1.35!important;color:#ecdfef!important}.astro-card:before{right:-24px!important;top:-28px!important;width:90px!important;height:90px!important;opacity:.75}


/* Personal lunar birthday marker in calendar */
.day.personal-lunar-day{position:relative;overflow:hidden;border-color:rgba(255,216,138,.26)!important;box-shadow:inset 0 0 0 1px rgba(255,216,138,.10)!important}.day.personal-lunar-day:before{content:'✦';position:absolute;right:8px;top:7px;color:rgba(255,216,138,.58);font-size:9px;line-height:1;text-shadow:0 0 8px rgba(255,216,138,.22)}.day.personal-lunar-day:after{content:'✦';position:absolute;right:18px;top:17px;color:rgba(255,250,246,.34);font-size:6px;line-height:1;background:none!important;width:auto!important;height:auto!important;border-radius:0!important;box-shadow:none!important}.day.personal-lunar-day em{display:none!important}.personal-lunar-modal{background:radial-gradient(circle at 85% 0%,rgba(255,216,138,.42),transparent 34%),linear-gradient(160deg,rgba(255,250,246,.97),rgba(239,228,255,.96))!important;border-color:rgba(185,152,255,.38)!important}.lunar-date-pill{display:inline-flex!important;align-items:center;gap:8px;padding:8px 12px!important;border-radius:999px!important;text-transform:none!important;letter-spacing:0!important}.lunar-date-pill .date-orbit{width:22px;height:22px;border-radius:999px;display:grid;place-items:center;background:linear-gradient(145deg,#fff7ef,#e8d4ff);color:#4f2f83;font-size:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}.lunar-date-pill b{font-size:13px}.lunar-date-pill small{padding:3px 7px;border-radius:999px;background:rgba(255,216,138,.36);color:#4f2f83;font-size:10px;font-weight:950}.personal-lunar-badge{display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:center;margin:12px 0 14px;padding:12px;border-radius:22px;background:linear-gradient(145deg,rgba(255,216,138,.34),rgba(185,152,255,.22));border:1px solid rgba(185,152,255,.24);color:#2b2234}.personal-lunar-badge span{grid-row:1/3;width:38px;height:38px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(145deg,#ffd88a,#d9b7ff);font-weight:950}.personal-lunar-badge b{font-size:15px;letter-spacing:-.02em}.personal-lunar-badge small{font-size:12px;color:#6a5874;font-weight:800}.personal-hint-strip{border-color:rgba(185,152,255,.32)!important;box-shadow:0 16px 35px rgba(185,152,255,.18)!important}

/* Profile settings control: soft more mark, no mechanical gear */
.settings-more-btn{width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;border-radius:20px!important;background:rgba(255,250,246,.075)!important;border:1px solid rgba(255,255,255,.13)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 10px 24px rgba(24,17,31,.12)!important}.settings-more-btn:before{content:'';position:absolute;inset:8px;border-radius:15px;background:radial-gradient(circle at 32% 28%,rgba(255,216,138,.18),transparent 36%),rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07)}.settings-more-mark{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:4px;width:28px;height:28px;border-radius:999px;background:transparent!important}.settings-more-mark i{display:block;width:4px;height:4px;border-radius:50%;background:rgba(255,250,246,.92);box-shadow:0 0 8px rgba(255,216,138,.18)}.settings-more-mark i:nth-child(2){background:rgba(255,216,138,.86)}.settings-more-btn .gear-core{display:none!important}

/* Profile UX refinement: clear settings button + softer symbol cards */
.profile-head{align-items:flex-start!important;gap:10px!important}.profile-settings-btn{width:auto!important;min-width:118px!important;height:46px!important;min-height:46px!important;padding:7px 12px 7px 9px!important;display:inline-grid!important;grid-template-columns:30px auto!important;align-items:center!important;gap:7px!important;border-radius:19px!important;background:linear-gradient(145deg,rgba(255,250,246,.13),rgba(185,152,255,.12))!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 10px 24px rgba(24,17,31,.10)!important;color:#fffaf6!important}.profile-settings-btn:before{content:'';position:absolute;inset:6px;border-radius:15px;background:radial-gradient(circle at 28% 24%,rgba(255,216,138,.16),transparent 36%),rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.055);pointer-events:none}.settings-person-mark{position:relative;z-index:1;width:30px;height:30px;border-radius:13px;background:rgba(255,250,246,.10);border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}.settings-person-mark:before{content:'';position:absolute;left:10px;top:6px;width:8px;height:8px;border-radius:50%;background:#fffaf6;box-shadow:0 0 0 2px rgba(255,216,138,.15)}.settings-person-mark:after{content:'';position:absolute;left:7px;bottom:6px;width:14px;height:8px;border-radius:999px 999px 7px 7px;background:#fffaf6}.settings-btn-label{position:relative;z-index:1;display:inline!important;font-size:12px;font-weight:950;letter-spacing:-.01em;line-height:1;color:#fffaf6}.profile-settings-btn .settings-more-mark,.profile-settings-btn .gear-core{display:none!important}.astro-card{grid-template-columns:42px minmax(0,1fr)!important;gap:12px!important;padding:14px!important;background:linear-gradient(145deg,rgba(255,250,246,.105),rgba(185,152,255,.075))!important;border-color:rgba(255,255,255,.12)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important}.astro-icon{width:42px!important;height:42px!important;border-radius:999px!important;background:rgba(255,250,246,.08)!important;border:1px solid rgba(255,255,255,.13)!important;color:#fffaf6!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 8px 18px rgba(24,17,31,.10)!important}.astro-icon:before{content:'';position:absolute;inset:7px;border-radius:999px;background:radial-gradient(circle at 35% 25%,rgba(255,216,138,.20),transparent 42%);pointer-events:none}.astro-icon svg{position:relative;z-index:1;width:22px!important;height:22px!important;opacity:.92}.astro-card b{font-size:10px!important;color:rgba(255,250,246,.62)!important;letter-spacing:.075em!important}.astro-card strong{font-size:20px!important;line-height:1.1!important}.astro-card small{font-size:13px!important;line-height:1.36!important;color:rgba(255,250,246,.82)!important;font-weight:780!important}.astro-card:before{opacity:.42!important;background:radial-gradient(circle,rgba(255,216,138,.16),transparent 66%)!important}


/* Profile settings control: white airy gear bubble */
.profile-settings-btn{width:86px!important;min-width:86px!important;height:46px!important;min-height:46px!important;padding:7px 11px!important;display:grid!important;grid-template-columns:1fr!important;place-items:center!important;border-radius:22px!important;background:linear-gradient(145deg,rgba(255,250,246,.18),rgba(255,255,255,.075))!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 -10px 24px rgba(185,152,255,.08),0 12px 28px rgba(24,17,31,.10)!important;color:#fffaf6!important}.profile-settings-btn:before{content:'';position:absolute;inset:5px;border-radius:18px;background:radial-gradient(circle at 30% 24%,rgba(255,255,255,.42),transparent 28%),radial-gradient(circle at 72% 70%,rgba(255,216,138,.12),transparent 36%),rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.075);pointer-events:none}.settings-bubble-gear{position:relative;z-index:1;display:grid;place-items:center;width:32px;height:32px;border-radius:999px;background:radial-gradient(circle at 32% 24%,rgba(255,255,255,.28),rgba(255,255,255,.09) 48%,rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 0 18px rgba(255,250,246,.08)}.settings-bubble-gear svg{width:20px;height:20px;fill:none;stroke:#fffaf6;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 5px rgba(255,250,246,.22))}.profile-settings-btn .settings-person-mark,.profile-settings-btn .settings-btn-label,.profile-settings-btn .settings-more-mark,.profile-settings-btn .gear-core{display:none!important}


/* Profile settings control: simple white gear, no oval */
.profile-settings-btn{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;display:grid!important;grid-template-columns:1fr!important;place-items:center!important;border-radius:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#fffaf6!important;overflow:visible!important}.profile-settings-btn:before{display:none!important}.settings-bubble-gear{position:relative;z-index:1;display:grid;place-items:center;width:30px;height:30px;border-radius:0;background:transparent!important;border:0!important;box-shadow:none!important}.settings-bubble-gear svg{width:25px;height:25px;fill:none;stroke:#fffaf6;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;opacity:.96;filter:drop-shadow(0 0 7px rgba(255,250,246,.28)) drop-shadow(0 4px 10px rgba(24,17,31,.18))}.profile-settings-btn:active .settings-bubble-gear svg{transform:scale(.94);opacity:.82}.profile-settings-btn .settings-person-mark,.profile-settings-btn .settings-btn-label,.profile-settings-btn .settings-more-mark,.profile-settings-btn .gear-core{display:none!important}


/* Profile settings control: visible solid white gear, still no oval */
.profile-settings-btn{width:54px!important;min-width:54px!important;height:54px!important;min-height:54px!important;padding:0!important;margin-top:2px!important;display:grid!important;grid-template-columns:1fr!important;place-items:center!important;border-radius:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#fffaf6!important;overflow:visible!important;flex:0 0 54px!important}.profile-settings-btn:before{display:none!important}.settings-bubble-gear{position:relative;z-index:1;display:grid;place-items:center;width:40px;height:40px;border-radius:0!important;background:transparent!important;border:0!important;box-shadow:none!important}.settings-bubble-gear svg{width:34px;height:34px;fill:none;stroke:#fffaf6;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;opacity:1;filter:drop-shadow(0 0 2px rgba(255,250,246,.92)) drop-shadow(0 0 10px rgba(255,250,246,.35)) drop-shadow(0 5px 12px rgba(31,16,43,.34))}.settings-bubble-gear svg path{fill:rgba(255,250,246,.94);stroke:#fffaf6;stroke-width:1.15}.settings-bubble-gear svg circle{fill:rgba(111,75,128,.96);stroke:#fffaf6;stroke-width:1.35}.profile-settings-btn:active .settings-bubble-gear svg{transform:scale(.94);opacity:.84}.profile-settings-btn .settings-person-mark,.profile-settings-btn .settings-btn-label,.profile-settings-btn .settings-more-mark,.profile-settings-btn .gear-core{display:none!important}


/* Profile settings control: fixed visible CSS gear */
.profile-overview{position:relative!important;overflow:visible!important}.profile-overview .profile-head{padding-right:66px!important}.profile-overview .profile-settings-btn{position:absolute!important;right:22px!important;top:24px!important;z-index:12!important;width:54px!important;min-width:54px!important;height:54px!important;min-height:54px!important;padding:0!important;margin:0!important;display:grid!important;place-items:center!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;color:#fffaf6!important;overflow:visible!important}.profile-overview .profile-settings-btn:before,.profile-overview .profile-settings-btn:after{display:none!important}.profile-overview .settings-bubble-gear{position:relative!important;display:grid!important;place-items:center!important;width:48px!important;height:48px!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}.profile-overview .settings-bubble-gear svg{display:none!important}.profile-overview .settings-bubble-gear:before{content:'⚙';display:block!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI Symbol","Apple Color Emoji",system-ui,sans-serif;font-size:37px;line-height:1;color:#fffaf6;font-weight:400;text-shadow:0 0 2px rgba(255,255,255,.92),0 0 10px rgba(255,250,246,.46),0 5px 14px rgba(31,16,43,.34);transform:translateY(-1px)}

/* Final profile settings UX: small white airy bubble in the card corner */
.profile-overview{position:relative!important;overflow:hidden!important}
.profile-overview .profile-head{padding-right:54px!important}
.profile-overview .profile-settings-direct-btn{
  position:absolute!important;right:22px!important;top:43px!important;z-index:12!important;
  width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;
  padding:0!important;margin:0!important;display:grid!important;place-items:center!important;
  border-radius:16px!important;border:1px solid rgba(255,255,255,.14)!important;
  background:linear-gradient(145deg,rgba(255,250,246,.13),rgba(255,255,255,.045))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -8px 18px rgba(185,152,255,.06),0 8px 18px rgba(24,17,31,.10)!important;
  color:#fffaf6!important;overflow:hidden!important;
}
.profile-overview .profile-settings-direct-btn:before{
  content:'';position:absolute;inset:5px;border-radius:13px;pointer-events:none;
  background:radial-gradient(circle at 30% 24%,rgba(255,255,255,.30),transparent 30%),radial-gradient(circle at 72% 72%,rgba(255,216,138,.08),transparent 42%),rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.055);
}
.profile-overview .settings-gear-bubble{position:relative;z-index:1;display:grid!important;place-items:center;width:22px!important;height:22px!important;border-radius:999px!important;background:transparent!important;border:0!important;box-shadow:none!important}
.profile-overview .settings-gear-bubble svg{display:block!important;width:17px!important;height:17px!important;fill:none!important;stroke:#fffaf6!important;stroke-width:1.45!important;stroke-linecap:round!important;stroke-linejoin:round!important;opacity:.96!important;filter:drop-shadow(0 0 5px rgba(255,250,246,.24))}
.profile-overview .settings-gear-bubble svg path:first-child{fill:rgba(255,250,246,.92)!important;stroke:none!important}
.profile-overview .profile-settings-direct-btn:active{transform:scale(.96);opacity:.86}
.profile-overview .settings-direct-gear{display:none!important}

/* Profile settings final: one aligned control, no layered overlap */
.profile-overview{overflow:hidden!important}
.profile-overview .profile-head{display:block!important;padding-right:0!important;margin-bottom:18px!important}
.profile-title-block{min-width:0;width:100%}
.profile-kicker-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.profile-kicker-row .pill{margin:0!important}
.profile-overview .profile-settings-direct-btn{
  position:static!important;right:auto!important;top:auto!important;z-index:1!important;
  flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;
  display:grid!important;place-items:center!important;padding:0!important;margin:0!important;
  border-radius:15px!important;border:1px solid rgba(255,255,255,.16)!important;
  background:rgba(255,250,246,.105)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 8px 18px rgba(24,17,31,.10)!important;
  color:#fffaf6!important;overflow:hidden!important;
}
.profile-overview .profile-settings-direct-btn:before,.profile-overview .profile-settings-direct-btn:after{display:none!important;content:none!important}
.profile-overview .settings-gear-bubble{display:grid!important;place-items:center!important;width:18px!important;height:18px!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
.profile-overview .settings-gear-bubble svg{display:block!important;width:18px!important;height:18px!important;fill:none!important;stroke:#fffaf6!important;stroke-width:1.55!important;stroke-linecap:round!important;stroke-linejoin:round!important;opacity:.9!important;filter:none!important}
.profile-overview .settings-gear-bubble svg path:first-child{fill:none!important;stroke:#fffaf6!important}
.profile-overview .profile-settings-direct-btn:active{transform:scale(.96);opacity:.82}
body[data-step="profile"] #profileBtn,
body[data-step="profileSettings"] #profileBtn,
body[data-step="paywall"] #profileBtn{visibility:visible!important;opacity:1!important;pointer-events:auto!important}

/* Profile topbar cleanup: avoid icon/watermark overlap on profile screens */
body[data-step="profile"] .brand-watermark,
body[data-step="profileSettings"] .brand-watermark,
body[data-step="paywall"] .brand-watermark{display:none!important}
body[data-step="profile"] .brand-row,
body[data-step="profileSettings"] .brand-row,
body[data-step="paywall"] .brand-row{justify-content:center!important}
body[data-step="profile"] .brand-row h1,
body[data-step="profileSettings"] .brand-row h1,
body[data-step="paywall"] .brand-row h1{padding-left:0!important;text-align:center!important}
body[data-step="profile"] #profileBtn,
body[data-step="profileSettings"] #profileBtn,
body[data-step="paywall"] #profileBtn{visibility:visible!important;opacity:1!important;pointer-events:auto!important}

/* Profile settings final icon: white airy gear bubble */
.profile-overview .settings-more-dots{display:none!important}
.profile-overview .settings-gear-bubble{position:relative;z-index:1;display:grid!important;place-items:center!important;width:24px!important;height:24px!important;border-radius:999px!important;background:radial-gradient(circle at 34% 26%,rgba(255,255,255,.96),rgba(255,250,246,.68) 38%,rgba(239,228,255,.28) 72%,rgba(255,255,255,.10))!important;border:1px solid rgba(255,255,255,.44)!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.9),inset 0 -5px 10px rgba(185,152,255,.10),0 5px 14px rgba(255,250,246,.10)!important}
.profile-overview .settings-gear-bubble svg{display:block!important;width:16px!important;height:16px!important;fill:none!important;stroke:#fff!important;stroke-width:1.65!important;stroke-linecap:round!important;stroke-linejoin:round!important;opacity:.98!important;filter:drop-shadow(0 0 5px rgba(255,255,255,.34))!important}
.profile-overview .settings-gear-bubble svg path:first-child{fill:rgba(255,255,255,.72)!important;stroke:none!important}

/* Topbar profile entry stays a profile button; settings gear lives inside the profile screen */
.profile-top-btn:active{transform:scale(.96);opacity:.9}

/* Lunar location + time clarity */
.lunar-time-card{margin:12px 0 0;padding:13px 14px;border-radius:22px;background:linear-gradient(145deg,rgba(255,250,246,.88),rgba(239,228,255,.78));border:1px solid rgba(185,152,255,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.58)}
.lunar-time-card b{display:block;color:#34263e;font-size:13px;font-weight:950;margin-bottom:4px}
.lunar-time-card span{display:block;color:#5d5068;font-size:13px;font-weight:850;line-height:1.45}
.lunar-time-card small{display:block;margin-top:5px;color:#84748b;font-size:12px;font-weight:750;line-height:1.35}
.lunar-location-field .small-btn{margin-top:2px;width:100%}
.profile-field.lunar-location-field small{line-height:1.38}
.hint-strip small:last-child{margin-top:3px;color:#755e85;font-weight:800}

/* Lunar duration card: start/end/progress */
.lunar-duration-card{margin:14px 0 0;padding:16px 16px 13px;border-radius:24px;background:linear-gradient(145deg,rgba(39,27,55,.96),rgba(28,20,43,.94));border:1px solid rgba(255,250,246,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 16px 36px rgba(31,16,43,.16);color:#fffaf6;overflow:hidden}
.lunar-duration-title{display:flex;align-items:center;gap:8px;margin-bottom:14px;color:#f3d9ad;text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:950}
.lunar-duration-title span{display:grid;place-items:center;width:18px;height:18px;border-radius:999px;color:#f5dcad;background:rgba(255,250,246,.06);border:1px solid rgba(255,250,246,.12);font-size:12px}
.lunar-duration-body{display:grid;grid-template-columns:minmax(82px,1fr) minmax(70px,.9fr) minmax(92px,1.08fr);align-items:center;gap:12px}
.lunar-duration-point{min-width:0}.lunar-duration-point small{display:block;margin-bottom:5px;color:#bcaed0;font-size:12px;font-weight:850}.lunar-duration-point strong{display:block;color:#fffaf6;font-size:16px;line-height:1.18;font-weight:950;letter-spacing:-.02em}.lunar-duration-point.right{text-align:right}.lunar-duration-point em{display:block;margin-top:4px;color:#d9c0ef;font-size:11px;line-height:1.25;font-style:normal;font-weight:850}
.lunar-duration-line{position:relative;height:24px;display:flex;align-items:center}.lunar-duration-line:before{content:'';position:absolute;left:0;right:0;top:50%;height:3px;border-radius:999px;background:rgba(255,250,246,.28);transform:translateY(-50%)}.lunar-duration-line i{position:absolute;left:var(--lunar-progress,50%);top:50%;width:10px;height:10px;border-radius:999px;background:#ffd88a;box-shadow:0 0 0 4px rgba(255,216,138,.13),0 0 15px rgba(255,216,138,.38);transform:translate(-50%,-50%)}
.lunar-duration-place{margin:12px 0 0;color:#bcaed0;font-size:11px;font-weight:800;text-align:center}.lunar-duration-fallback{margin:0;color:#e9dced;font-size:13px;line-height:1.45;font-weight:800}
@media (max-width:360px){.lunar-duration-card{padding:14px 13px 12px}.lunar-duration-body{grid-template-columns:1fr;gap:9px}.lunar-duration-point.right{text-align:left}.lunar-duration-line{order:2}.lunar-duration-point.right{order:3}}

/* Lunar duration card integration v2 */
.status-card .lunar-duration-card{margin:14px 0 22px;padding:18px 20px 15px;border-radius:26px;background:linear-gradient(145deg,#30223f,#251933 72%,#22172f);border:1px solid rgba(255,250,246,.14);box-shadow:0 16px 38px rgba(43,34,52,.16),inset 0 1px 0 rgba(255,255,255,.08);color:#fffaf6}
.status-card .lunar-duration-title{display:flex;align-items:center;gap:10px;margin-bottom:18px;color:#f4d8a6;text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:950}
.status-card .lunar-duration-title span{width:22px;height:22px;border-radius:999px;background:rgba(255,250,246,.07);border:1px solid rgba(255,250,246,.13);font-size:12px;color:#f4d8a6}
.status-card .lunar-duration-body{display:grid;grid-template-columns:minmax(116px,1fr) minmax(72px,.55fr) minmax(116px,1fr);align-items:end;gap:8px}
.status-card .lunar-duration-point{display:grid;grid-template-rows:18px 42px 18px;align-items:start;min-width:0}
.status-card .lunar-duration-point small{grid-row:1;margin:0;color:#c9b7d8;font-size:12px;font-weight:900;line-height:18px}
.status-card .lunar-duration-point strong{grid-row:2;color:#fffaf6;font-size:18px;line-height:1.08;font-weight:950;letter-spacing:-.03em;white-space:normal;align-self:start}
.status-card .lunar-duration-point em{grid-row:3;margin:0;color:#d7c1eb;font-size:11px;line-height:14px;font-style:normal;font-weight:850;align-self:start}
.status-card .lunar-duration-point.right{text-align:right}
.status-card .lunar-duration-line{align-self:center;height:42px;margin-top:18px}
.status-card .lunar-duration-line:before{height:4px;background:rgba(255,250,246,.24)}
.status-card .lunar-duration-line i{width:13px;height:13px;background:#ffd88a;box-shadow:0 0 0 5px rgba(255,216,138,.13),0 0 18px rgba(255,216,138,.44)}
.status-card .lunar-duration-place{appearance:none;border:0;background:transparent;display:block;width:100%;margin:14px 0 0;padding:6px 8px;border-radius:999px;color:#d8c5e8;font-size:12px;font-weight:950;text-align:center;cursor:pointer;letter-spacing:.01em}
.status-card .lunar-duration-place:after{content:' ›';color:#f2d6a3}
.status-card .lunar-duration-place:active{background:rgba(255,250,246,.06);transform:scale(.99)}
.status-card .lunar-duration-fallback{margin:0 0 8px;color:#e9dced;font-size:13px;line-height:1.45;font-weight:800}
@media (max-width:380px){.status-card .lunar-duration-card{padding:16px 16px 13px}.status-card .lunar-duration-body{grid-template-columns:minmax(96px,1fr) 54px minmax(96px,1fr);gap:6px}.status-card .lunar-duration-point strong{font-size:16px}.status-card .lunar-duration-title{margin-bottom:15px}}

/* Lunar duration integrated into cream home card: no nested block */
.status-card .status-copy{min-width:0;width:100%}
.status-card .status-head{align-items:flex-start;gap:12px}
.status-card .status-head .status-emoji{flex:0 0 auto;margin-top:8px}
.status-card .status-copy .muted{margin-top:16px!important}
.status-card .lunar-duration-card{position:relative;margin:16px 0 0;padding:16px 0 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#30243c;overflow:visible}
.status-card .lunar-duration-card:before{content:'';position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,transparent,rgba(108,76,138,.16),transparent)}
.status-card .lunar-duration-title{display:flex;align-items:center;gap:8px;margin:0 0 13px;color:#6c4c8a;text-transform:uppercase;letter-spacing:.105em;font-size:11px;font-weight:950}
.status-card .lunar-duration-title span{width:20px;height:20px;background:rgba(108,76,138,.07);border:1px solid rgba(108,76,138,.10);color:#6c4c8a;box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
.status-card .lunar-duration-body{display:grid;grid-template-columns:minmax(104px,1fr) minmax(64px,.5fr) minmax(104px,1fr);gap:8px;align-items:end}
.status-card .lunar-duration-point{display:grid;grid-template-rows:17px 35px 17px;align-items:start;min-width:0}
.status-card .lunar-duration-point small{grid-row:1;margin:0;color:#8a7b93;font-size:11px;font-weight:900;line-height:17px}
.status-card .lunar-duration-point strong{grid-row:2;color:#281d34;font-size:17px;line-height:1.08;font-weight:950;letter-spacing:-.035em;white-space:normal;align-self:start}
.status-card .lunar-duration-point em{grid-row:3;margin:0;color:#765f88;font-size:10.5px;line-height:14px;font-style:normal;font-weight:850;align-self:start}
.status-card .lunar-duration-point.right{text-align:right}
.status-card .lunar-duration-line{position:relative;align-self:center;height:34px;margin-top:15px;display:flex;align-items:center}
.status-card .lunar-duration-line:before{content:'';position:absolute;left:0;right:0;top:50%;height:4px;border-radius:999px;background:linear-gradient(90deg,rgba(108,76,138,.08),rgba(255,200,110,.28),rgba(108,76,138,.08));transform:translateY(-50%)}
.status-card .lunar-duration-line i{position:absolute;left:var(--lunar-progress,50%);top:50%;width:12px;height:12px;border-radius:999px;background:#ffc86e;box-shadow:0 0 0 5px rgba(255,200,110,.16),0 0 16px rgba(255,200,110,.38);transform:translate(-50%,-50%)}
.status-card .lunar-duration-place{appearance:none;border:0;background:transparent;display:block;width:100%;margin:8px auto 0;padding:4px 0 0;color:#6c4c8a;font-size:11.5px;text-align:center;cursor:pointer;letter-spacing:0;box-shadow:none}
.status-card .lunar-duration-place span{display:block;font-weight:950;line-height:1.25}.status-card .lunar-duration-place small{display:block;margin-top:2px;color:rgba(108,76,138,.58);font-size:10.5px;font-weight:850;line-height:1.25;letter-spacing:0;text-transform:none}.status-card .lunar-duration-place:after{content:''}.status-card .lunar-duration-place span:after{content:' ›';color:#8a6aa5}.status-card .lunar-duration-place:active{background:transparent;transform:scale(.99)}
.status-card .lunar-duration-fallback{margin:0 0 8px;color:#6e5a7e;font-size:13px;line-height:1.45;font-weight:800}
@media (max-width:380px){.status-card .lunar-duration-card{padding-top:15px}.status-card .lunar-duration-body{grid-template-columns:minmax(92px,1fr) 50px minmax(92px,1fr);gap:5px}.status-card .lunar-duration-point strong{font-size:15.5px}.status-card .status-head{gap:8px}.status-card .status-head .status-emoji{font-size:38px}}

/* Home lunar theme + real phase visual */
.status-card .status-head{position:relative}
.status-card .lunar-theme{position:relative;margin:15px 0 0;padding:16px 0 0;border:0;border-radius:0;background:transparent;box-shadow:none}
.status-card .lunar-theme:before{content:'';position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,transparent,rgba(108,76,138,.14),rgba(255,200,110,.34),rgba(108,76,138,.14),transparent)}
.status-card .lunar-theme span{display:block;margin-bottom:6px;color:#8a7598;font-size:10.5px;font-weight:950;line-height:1;text-transform:uppercase;letter-spacing:.11em}
.status-card .lunar-theme b{display:block;color:#281d34;font-size:18px;font-weight:950;line-height:1.15;letter-spacing:-.035em}
.status-card .lunar-theme p{margin:7px 0 0!important;color:#6d6275;font-size:14.5px;font-weight:650;line-height:1.48;letter-spacing:-.012em}
.status-card .status-emoji{width:56px;height:56px;display:grid;place-items:center;margin-top:34px!important;font-size:0!important}
.moon-exact{--moon-mask-x:-8%;position:relative;width:46px;height:46px;border-radius:50%;overflow:hidden;background:transparent;transform:rotate(var(--moon-tilt,0deg));transform-origin:center;transition:transform .8s ease;filter:drop-shadow(0 20px 19px rgba(63,43,84,.22))}
.moon-exact .moon-disc,.moon-exact .moon-glow,.moon-exact .moon-shadow{position:absolute;border-radius:50%;pointer-events:none}
.moon-exact .moon-disc{z-index:1;inset:0;background:radial-gradient(circle at 72% 34%,#fff5c6 0 12%,#efd882 35%,#d0a94c 62%,#8a5c2a 100%);box-shadow:inset -8px -7px 12px rgba(106,65,25,.26),inset 5px 4px 8px rgba(255,255,255,.30)}
.moon-exact .moon-glow{z-index:2;inset:0;background:radial-gradient(circle at 76% 38%,rgba(255,248,213,.68),rgba(243,203,102,.34) 34%,rgba(243,203,102,0) 64%);mix-blend-mode:screen;opacity:var(--moon-glow-opacity,.62)}
.moon-exact .moon-shadow{z-index:3;top:0;bottom:0;left:var(--moon-mask-x);width:var(--moon-shadow-width,92%);opacity:var(--moon-shadow-opacity,1);background:radial-gradient(circle at 38% 42%,#23162f 0 38%,#160f22 72%,#0f0a18 100%);box-shadow:inset -10px -8px 12px rgba(3,2,8,.28),inset 5px 5px 10px rgba(86,59,103,.12)}
.moon-new{--moon-mask-x:0}.moon-new .moon-disc{opacity:.18}.moon-new .moon-glow{opacity:.08}.moon-new .moon-shadow{left:0;width:100%}
.moon-waxing-crescent{--moon-mask-x:-8%}
.moon-first-quarter{--moon-mask-x:-45%}
.moon-waxing-gibbous{--moon-mask-x:-72%}
.moon-full .moon-shadow{opacity:0}.moon-full .moon-glow{opacity:.76}.moon-full{filter:drop-shadow(0 18px 22px rgba(227,194,112,.22))}
.moon-waning-gibbous{--moon-mask-x:76%}
.moon-last-quarter{--moon-mask-x:48%}
.moon-waning-crescent{--moon-mask-x:16%}
@media (max-width:380px){.status-card .lunar-theme{padding-top:15px}.status-card .lunar-theme b{font-size:17px}.status-card .lunar-theme p{font-size:14px}.status-card .status-emoji{width:50px;height:50px}.moon-exact{width:42px;height:42px}}

/* Home lunar card alignment: real phase higher/right, duration right side centered */
.status-card .status-head{position:relative;display:block!important}
.status-card .status-copy{padding-right:62px}
.status-card .status-head .status-emoji{
  position:absolute!important;right:-12px;top:18px;z-index:2;
  width:58px;height:58px;margin:0!important;transform:none!important;
}
.status-card .status-head .moon-exact{width:48px;height:48px}
.status-card .lunar-duration-body{grid-template-columns:minmax(98px,1fr) minmax(54px,.42fr) minmax(144px,1.28fr);align-items:end}
.status-card .lunar-duration-line{transform:translateX(8px)}
.status-card .lunar-duration-point.right{justify-self:end;min-width:144px;text-align:center;justify-items:center;transform:translateX(14px)}
.status-card .lunar-duration-point.right small,.status-card .lunar-duration-point.right strong,.status-card .lunar-duration-point.right em{text-align:center}
@media (max-width:380px){.status-card .status-copy{padding-right:58px}.status-card .status-head .status-emoji{right:-11px;top:20px;width:52px;height:52px}.status-card .status-head .moon-exact{width:43px;height:43px}.status-card .lunar-duration-body{grid-template-columns:minmax(82px,1fr) 44px minmax(126px,1.25fr);gap:4px}.status-card .lunar-duration-line{transform:translateX(5px)}.status-card .lunar-duration-point.right{min-width:126px;transform:translateX(10px)}}

/* Journal polish: remove unclear practice sublabel + fix archive date control */
.journal-practice-cta{justify-content:center!important;text-align:center!important;padding:14px 16px!important}
.journal-practice-cta small{display:none!important}
.journal-practice-cta span{width:100%;text-align:center;font-weight:950}
.journal-date-input{appearance:none;-webkit-appearance:none;width:138px!important;min-height:44px!important;padding:10px 12px!important;border-radius:18px!important;font-size:13px!important;font-weight:900!important;background:linear-gradient(145deg,rgba(255,250,246,.16),rgba(185,152,255,.12))!important;color:#fffaf6!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.12)!important;color-scheme:dark}
.journal-date-input::-webkit-date-and-time-value{color:#fffaf6;text-align:center}
.journal-date-input::-webkit-calendar-picker-indicator{filter:invert(1) brightness(1.4);opacity:.72}
@media (max-width:380px){.journal-section-head{gap:8px}.journal-date-input{width:122px!important;font-size:12px!important;padding:9px 10px!important}}

/* Loader + event details cleanup 2026-05-17 */
.ai-loading{gap:10px!important;margin:10px 0!important;padding:12px!important;border-radius:19px!important}
.ai-loading b{font-size:14px!important;line-height:1.2!important}
.ai-loading small{font-size:13px!important;line-height:1.32!important}
.moon-loader{position:relative!important;display:grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;border-radius:999px!important;background:radial-gradient(circle at 34% 26%,rgba(255,255,255,.92),rgba(246,231,255,.72) 48%,rgba(255,235,196,.52))!important;border:1px solid rgba(255,255,255,.72)!important;box-shadow:0 8px 22px rgba(91,59,122,.16),inset 0 1px 0 rgba(255,255,255,.86)!important;overflow:hidden!important}
.moon-loader:before{content:'';position:absolute;inset:5px;border-radius:999px;border:1px solid rgba(185,152,255,.22);box-shadow:inset 0 0 14px rgba(255,255,255,.42)}
.moon-loader-moon{position:relative;z-index:1;color:#5e3d78;font-size:22px;line-height:1;animation:moonOrbit 1.25s ease-in-out infinite;filter:drop-shadow(0 2px 5px rgba(91,59,122,.18))}
@keyframes moonOrbit{0%{transform:rotate(0deg) scale(1)}50%{transform:rotate(180deg) scale(1.04)}100%{transform:rotate(360deg) scale(1)}}
.flow-modal .ai-loading{margin:0 0 8px!important}
.flow-modal .flow-note{margin-top:6px!important;font-size:13.5px!important;line-height:1.38!important}
.event-more{display:flex!important;align-items:center!important;justify-content:center!important;grid-template-columns:none!important;text-align:center!important}
.event-more small{display:none!important}

.event-more:after,.event-more span:after{content:none!important;display:none!important}
.event-planner-details:not([open]){margin-top:16px;border:0!important;background:transparent!important;padding:0!important}
.event-planner-details:not([open]) summary{position:relative;overflow:hidden;color:#2f1d34!important;background:linear-gradient(135deg,#ffe6aa 0%,#ffadba 46%,#c8b0ff 100%)!important;box-shadow:0 14px 34px rgba(255,142,158,.22),inset 0 1px 0 rgba(255,255,255,.5)!important;min-height:58px;border-radius:22px!important;padding:15px 17px!important;display:grid!important;gap:2px!important;place-items:center!important;justify-content:center!important;text-align:center!important;font-weight:900!important}
.event-planner-details:not([open]) summary span{color:#2f1d34!important;font-size:16px!important;line-height:1.2!important}
.event-planner-summary{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:inherit;font:inherit;width:100%;padding:0;margin:0;display:grid;place-items:center;text-align:center;cursor:pointer}
.event-planner-summary span{color:inherit;font:inherit}
.event-planner-details:not([open]) summary small{display:none!important}
.event-planner-details:not([open]) summary:after{content:none!important;display:none!important}
/* Event decision modal: keep it above Telegram bottom nav */
.flow-backdrop{z-index:3000!important;align-items:start!important;justify-items:center!important;place-items:start center!important;width:min(100%,460px)!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;border-radius:34px!important;clip-path:inset(0 round 34px)!important;padding:max(24px,calc(env(safe-area-inset-top) + 24px)) 18px calc(132px + env(safe-area-inset-bottom) + var(--keyboard-inset,0px))!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important}
.flow-modal{margin:0 auto!important;max-height:calc(100dvh - 176px - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--keyboard-inset,0px))!important;overflow:auto!important;overscroll-behavior:contain!important}
.decision-modal{transform-origin:top center!important}
.inline-decision-modal{width:100%!important;max-height:none!important;margin:14px 0 0!important;overflow:visible!important;border-radius:26px!important;box-shadow:0 14px 34px rgba(43,34,52,.14),inset 0 1px 0 rgba(255,255,255,.8)!important;animation:flowPop .18s ease both}
.event-planner-details .inline-decision-modal .flow-actions{margin-top:14px}
@media (max-height:700px){.flow-backdrop{padding-top:14px!important;padding-bottom:118px!important}.flow-modal{max-height:calc(100dvh - 138px)!important;padding:18px!important}.flow-modal h3{font-size:21px!important}.flow-modal p{line-height:1.42!important}.inline-decision-modal{max-height:none!important;padding:18px!important}}

/* Event save modal: 30% lighter visual footprint */
.decision-modal{width:min(100%,300px)!important;border-radius:24px!important;padding:14px!important;box-shadow:0 18px 48px rgba(13,7,20,.30),inset 0 1px 0 rgba(255,255,255,.78)!important}
.decision-modal .pill{padding:7px 12px!important;font-size:12px!important;margin-bottom:8px!important}
.decision-modal h3{margin:4px 0 6px!important;font-size:19px!important;line-height:1.12!important}
.decision-modal p{margin:6px 0!important;font-size:14.5px!important;line-height:1.38!important;font-weight:760!important}
.decision-modal .flow-actions{gap:8px!important;margin-top:13px!important}
.decision-modal .flow-actions .primary,.decision-modal .flow-actions .ghost{min-height:50px!important;border-radius:19px!important}
.decision-modal .flow-actions small{font-size:12px!important;line-height:1.1!important}

/* Event action menu: compact and never clipped by the event card */
.event.menu-open{overflow:visible!important;z-index:30!important}
.event.menu-open:before,.event.menu-open:after{display:none!important}
.event.menu-open .event-menu-panel{
  top:48px!important;
  right:10px!important;
  width:min(214px,calc(100% - 20px))!important;
  gap:6px!important;
  padding:9px!important;
  border-radius:20px!important;
  z-index:60!important;
}
.event.menu-open .event-menu-panel:before{right:15px!important;top:-6px!important;width:12px!important;height:12px!important}
.event.menu-open .event-menu-title{margin:0!important;padding:0 5px!important;font-size:10px!important;line-height:1.15!important}
.event.menu-open .event-menu-panel button{min-height:42px!important;padding:0 11px!important;border-radius:15px!important;font-size:15px!important;line-height:1.1!important}
.event.menu-open .event-menu-panel button span{width:23px!important;height:23px!important;font-size:12px!important;flex:0 0 23px!important}

/* Event type: compact field with floating in-app dropdown */
.event-type-picker,.event-type-chip{display:none!important}
.card.event-type-layer-open,.event-planner-details.event-type-layer-open{position:relative!important;z-index:260!important;overflow:visible!important}
.lunar-calendar-card{z-index:1!important}
.event-type-select{position:relative!important;z-index:28!important;width:100%!important}
.event-type-select.open{z-index:80!important}
.event-type-trigger{width:100%!important;min-height:58px!important;display:grid!important;gap:2px!important;align-content:center!important;text-align:left!important;padding:12px 46px 12px 18px!important;color:#fffaf6!important;background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:22px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;position:relative!important}
.event-type-trigger:after{content:'⌄';position:absolute;right:18px;top:50%;transform:translateY(-50%) rotate(0deg);transition:transform .22s ease;color:rgba(255,250,246,.78);font-size:19px;line-height:1}
.event-type-select.open .event-type-trigger:after{transform:translateY(-50%) rotate(180deg)}
.event-type-trigger span{font-size:16px!important;line-height:1.2!important;font-weight:850!important;color:#fffaf6!important}
.event-type-trigger small{font-size:12px!important;line-height:1.25!important;color:rgba(255,250,246,.68)!important;font-weight:700!important}
.event-type-select:not(.has-value) .event-type-trigger span{font-weight:800!important;color:rgba(255,250,246,.82)!important}
.event-type-select:not(.has-value) .event-type-trigger small{color:rgba(255,250,246,.52)!important}
.event-type-panel{position:absolute!important;left:0!important;right:0!important;top:calc(100% + 8px)!important;z-index:90!important;max-height:min(372px,48vh)!important;overflow:auto!important;border-radius:22px!important;opacity:0!important;visibility:hidden!important;transform:translateY(-8px) scale(.985)!important;transform-origin:top center!important;transition:opacity .18s ease,transform .22s ease,visibility 0s linear .22s!important;pointer-events:none!important;background:linear-gradient(160deg,rgba(83,68,92,.96),rgba(55,45,66,.98))!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:0 22px 46px rgba(14,8,24,.34),inset 0 1px 0 rgba(255,255,255,.10)!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important}
.event-type-select.open .event-type-panel{opacity:1!important;visibility:visible!important;transform:translateY(0) scale(1)!important;transition:opacity .18s ease,transform .22s ease!important;pointer-events:auto!important}
.event-type-option{width:100%!important;min-height:50px!important;padding:11px 14px!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.08)!important;background:transparent!important;color:#fffaf6!important;text-align:left!important;display:grid!important;gap:1px!important}
.event-type-option:last-child{border-bottom:0!important}
.event-type-option span{font-size:15px!important;line-height:1.2!important;font-weight:850!important;color:#fffaf6!important}
.event-type-option small{font-size:11.5px!important;line-height:1.22!important;color:rgba(255,250,246,.62)!important;font-weight:700!important}
.event-type-option.active{background:linear-gradient(135deg,rgba(255,216,138,.18),rgba(255,173,186,.10))!important}
.event-type-option.active span:before{content:'✓';display:inline-block;margin-right:8px;color:#ffd88a;font-weight:1000}


/* Local lunar date hint and app-styled event type picker */
.lunar-calendar-card{position:relative!important}
.lunar-date-inline{width:100%!important;max-height:none!important;margin:16px 0 0!important;overflow:visible!important;border-radius:26px!important;padding:18px!important;box-shadow:0 16px 38px rgba(43,34,52,.18),inset 0 1px 0 rgba(255,255,255,.78)!important;animation:flowPop .18s ease both}
.lunar-date-inline .flow-actions{margin-top:14px!important}
.lunar-date-inline .primary,.lunar-date-inline .ghost{min-height:54px!important}
.lunar-date-backdrop{place-items:center!important;align-items:center!important;justify-items:center!important;background:rgba(15,9,22,.50)!important;backdrop-filter:blur(9px)!important;-webkit-backdrop-filter:blur(9px)!important;padding:22px 18px calc(106px + env(safe-area-inset-bottom))!important}
.lunar-date-modal{width:min(100%,304px)!important;border-radius:24px!important;padding:14px!important;max-height:calc(100dvh - 176px)!important;box-shadow:0 20px 54px rgba(13,7,20,.34),inset 0 1px 0 rgba(255,255,255,.80)!important}
.lunar-date-modal .lunar-date-pill{width:max-content!important;max-width:100%!important;margin:0 0 10px!important;padding:8px 13px!important;font-size:13px!important;border-radius:18px!important}
.lunar-date-modal .hint-strip{margin:0!important;padding:14px!important;border-radius:22px!important;gap:5px!important}
.lunar-date-modal .hint-strip span{font-size:12px!important;letter-spacing:.02em!important}
.lunar-date-modal .hint-strip b{font-size:18px!important;line-height:1.12!important}
.lunar-date-modal .hint-strip small{font-size:13.5px!important;line-height:1.32!important}
.lunar-date-modal .flow-actions{margin-top:12px!important;gap:8px!important}
.lunar-date-modal .primary,.lunar-date-modal .ghost{min-height:48px!important;border-radius:18px!important;padding:11px 13px!important}
.lunar-date-modal .personal-lunar-badge{margin:0 0 10px!important;padding:11px 12px!important;border-radius:19px!important}
.lunar-date-modal .personal-lunar-badge small{font-size:12.5px!important;line-height:1.32!important}
.event-type-picker{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin:2px 0 0!important}
.event-type-chip{width:100%!important;min-height:54px!important;padding:11px 14px!important;border-radius:19px!important;border:1px solid rgba(255,255,255,.13)!important;background:rgba(255,255,255,.08)!important;color:#fffaf6!important;text-align:left!important;display:grid!important;gap:2px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important}
.event-type-chip span{font-size:15.5px!important;line-height:1.2!important;font-weight:900!important;color:#fffaf6!important}
.event-type-chip small{font-size:11.5px!important;line-height:1.25!important;color:rgba(255,250,246,.68)!important;font-weight:700!important}
.event-type-chip.active{border-color:rgba(255,216,138,.66)!important;background:linear-gradient(135deg,rgba(255,230,170,.22),rgba(255,173,186,.14),rgba(200,176,255,.18))!important;box-shadow:0 10px 24px rgba(255,142,158,.12),inset 0 0 0 1px rgba(255,255,255,.16)!important}
.event-type-chip.active span:before{content:"✓";display:inline-block;margin-right:8px;color:#ffd88a;font-weight:1000}
.event-planner-details select#eventType{display:none!important}
@media (min-width:430px){.event-type-picker{grid-template-columns:1fr 1fr!important}.event-type-chip{min-height:62px!important}}

/* Event form: description is optional and must not jump on focus */
#eventNote{height:118px!important;min-height:118px!important;max-height:118px!important;resize:none!important;overflow:auto!important;transition:border-color .18s ease,box-shadow .18s ease!important}
#eventNote:focus{height:118px!important;min-height:118px!important;max-height:118px!important;transform:none!important}


/* Month switcher for lunar calendar */
.month-switcher{display:grid!important;grid-template-columns:1fr!important;grid-template-areas:'title' 'today'!important;align-items:center!important;gap:6px!important;margin:0 0 8px!important}
.month-title-wrap{grid-area:title!important;position:relative!important;justify-self:start!important;max-width:100%!important}
.month-title-btn{min-width:0!important;min-height:38px!important;padding:0!important;border:0!important;background:transparent!important;color:#fffaf6!important;text-align:left!important;font-size:24px!important;line-height:1.08!important;font-weight:900!important;text-transform:none!important;white-space:nowrap!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;overflow:hidden!important;box-shadow:none!important}
.month-title-btn span{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.month-title-btn:after{content:'⌃'!important;margin-left:7px!important;font-size:15px!important;opacity:.72!important;transform:translateY(-1px)!important}
.month-nav,.month-native-picker,.month-picker,.month-wheel{display:none!important}
.month-today{grid-area:today!important;justify-self:start!important;min-height:30px!important;padding:6px 0!important;border:0!important;background:transparent!important;color:rgba(255,250,246,.58)!important;font-size:12px!important;font-weight:800!important;letter-spacing:.01em!important;box-shadow:none!important}
.month-today:disabled{display:none!important}
.month-title-wrap{grid-area:title!important;position:relative!important;justify-self:start!important;display:inline-block!important}
.month-picker-backdrop,.month-picker-sheet{display:none!important}
.month-picker-popover{position:absolute!important;left:0!important;top:calc(100% + 8px)!important;z-index:30!important;width:226px!important;height:148px!important;overflow:hidden!important;background:rgba(38,29,48,.78)!important;border:1px solid rgba(255,250,246,.24)!important;border-radius:14px!important;box-shadow:0 12px 26px rgba(0,0,0,.32)!important;backdrop-filter:blur(10px)!important;-webkit-backdrop-filter:blur(10px)!important;color:rgba(255,250,246,.96)!important;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,sans-serif!important}
.month-picker-head,.month-picker-tabs,.month-picker-tab,.month-wheel-list,.month-wheel-columns,.month-wheel-divider{display:none!important}
.month-drum{position:relative!important;display:grid!important;grid-template-columns:132px 74px!important;gap:8px!important;height:110px!important;padding:7px 6px!important;background:transparent!important;overflow:hidden!important}
.month-drum:before,.month-drum-highlight{content:''!important;position:absolute!important;left:8px!important;right:8px!important;top:39px!important;height:32px!important;background:rgba(255,250,246,.08)!important;border-top:1px solid rgba(255,250,246,.28)!important;border-bottom:1px solid rgba(255,250,246,.22)!important;border-radius:10px!important;box-shadow:none!important;pointer-events:none!important;z-index:0!important}
.month-drum:after{display:none!important}
.month-drum-col{position:relative!important;z-index:1!important;height:96px!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;scroll-snap-type:y proximity!important;padding:32px 0!important;background:transparent!important;overscroll-behavior:contain!important;scrollbar-width:none!important;mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 88%,transparent)!important;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 88%,transparent)!important}
.month-drum-col::-webkit-scrollbar{display:none!important}
.month-drum-col.year{border-right:0!important}
.month-wheel-choice{display:block!important;width:100%!important;min-width:0!important;min-height:32px!important;border:0!important;background:transparent!important;color:rgba(255,250,246,.60)!important;font-size:15px!important;line-height:1!important;font-weight:550!important;text-align:center!important;padding:8px 2px!important;box-shadow:none!important;scroll-snap-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-transform:none!important;transform:scale(.96)!important}
.month-drum-col.year .month-wheel-choice{font-size:15px!important}
.month-wheel-choice.active{font-size:16px!important;font-weight:800!important;color:rgba(255,250,246,.96)!important;background:transparent!important;transform:scale(1)!important}
.month-picker-actions{height:38px!important;display:grid!important;grid-template-columns:1fr 34px!important;gap:8px!important;align-items:center!important;padding:0 8px 8px!important;margin-top:0!important;background:transparent!important;border:0!important}
.month-picker-actions b{font-size:12px!important;line-height:1.1!important;text-align:center!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:rgba(255,250,246,.92)!important}
.month-picker-done{justify-self:end!important;width:32px!important;height:32px!important;border:0!important;border-radius:50%!important;background:rgba(255,250,246,.18)!important;color:rgba(255,250,246,.98)!important;font-weight:900!important;font-size:18px!important;line-height:1!important;text-align:center!important;padding:0!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.18)!important}
.month-picker-cancel{display:none!important}
@media (max-width:370px){.month-title-btn{font-size:22px!important}.month-today{font-size:11px!important}.month-picker-popover{width:214px!important}.month-drum{grid-template-columns:124px 72px!important;gap:6px!important}.month-wheel-choice{font-size:14px!important}.month-wheel-choice.active{font-size:15px!important}.month-picker-actions{grid-template-columns:1fr 32px!important}}
/* Natal chart profile menu/screen */
.profile-menu-row{width:100%;min-height:52px;margin-top:14px;padding:0 16px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(255,250,246,.105);color:#fffaf6;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;font-weight:950;box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}
.profile-menu-row span{font-size:15px;letter-spacing:-.01em}
.profile-menu-row small{font-size:13px;color:rgba(255,250,246,.72);font-weight:900}
.natal-menu-row{margin-top:16px}
.natal-chart-screen{position:relative;overflow:hidden;background:linear-gradient(155deg,rgba(255,250,246,.14),rgba(185,152,255,.10))}
.natal-chart-screen:before{content:none!important;display:none!important}
.natal-chart-screen>*{position:relative;z-index:1}
.natal-chart-screen h2{margin-bottom:16px}
.natal-fold-list{display:grid;gap:12px;margin-top:4px}
.natal-fold-row{overflow:hidden;border-radius:24px;background:rgba(255,250,246,.095);border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.natal-fold-toggle{width:100%;min-height:68px;padding:14px;border:0;background:transparent;color:#fffaf6;display:grid;grid-template-columns:44px 1fr;gap:13px;align-items:center;text-align:left}
.natal-fold-toggle .astro-icon{width:44px;height:44px;border-radius:17px;background:linear-gradient(145deg,rgba(255,250,246,.10),rgba(185,152,255,.16));color:#fffaf6;display:grid;place-items:center}
.natal-fold-toggle .astro-icon svg{width:24px;height:24px;opacity:.95;filter:drop-shadow(0 0 7px rgba(255,250,246,.15))}
.natal-fold-toggle b{display:block;color:#fffaf6;font-size:16px;font-weight:950;letter-spacing:-.02em}
.natal-fold-toggle small{display:block;margin-top:3px;color:rgba(255,250,246,.68);font-size:13px;font-weight:850;line-height:1.3}
.natal-fold-toggle:after{content:'+';position:absolute;right:18px;margin-top:-1px;color:rgba(255,250,246,.72);font-size:22px;font-weight:600}
.natal-fold-row.open .natal-fold-toggle:after{content:'−'}
.natal-fold-body{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .24s ease,opacity .2s ease}
.natal-fold-body>p{overflow:hidden;margin:0;padding:0 16px;color:rgba(255,250,246,.82);font-size:15px;line-height:1.64;font-weight:760}
.natal-fold-row.open .natal-fold-body{grid-template-rows:1fr;opacity:1}
.natal-fold-row.open .natal-fold-body>p{padding:0 16px 17px}
.natal-empty{padding:16px;border-radius:22px;background:rgba(255,250,246,.09);border:1px solid rgba(255,255,255,.10)}
.natal-empty p{margin:0;color:rgba(255,250,246,.8);font-size:15px;line-height:1.55;font-weight:760}
@media (max-width:370px){.natal-fold-toggle{grid-template-columns:38px 1fr;padding:13px}.natal-fold-toggle .astro-icon{width:38px;height:38px}.profile-menu-row{padding:0 14px}}

/* Hard override: home lunar moon is anchored to the card, not the duration row */
.status-card{position:relative!important}
.status-card .home-moon-anchor{
  position:absolute!important;
  right:14px!important;
  top:38px!important;
  z-index:3!important;
  width:74px!important;
  height:74px!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  transform:none!important;
  pointer-events:none!important;
}
.status-card .home-moon-anchor .moon-exact{width:62px!important;height:62px!important}
.status-card .home-moon-anchor:after{content:'';position:absolute;z-index:-1;right:-16px;top:43px;width:84px;height:30px;border-radius:999px;background:radial-gradient(ellipse,rgba(117,76,170,.30) 0 30%,rgba(117,76,170,.15) 48%,rgba(117,76,170,0) 78%);filter:blur(10px);transform:rotate(-12deg);pointer-events:none}
.status-card .status-head{display:block!important;position:static!important}
.status-card .status-copy{padding-right:84px!important;width:100%!important}
.status-card .lunar-duration-card{padding-right:0!important}
.status-card .lunar-duration-body{
  grid-template-columns:minmax(92px,.92fr) minmax(56px,.44fr) minmax(146px,1.34fr)!important;
  gap:6px!important;
  align-items:end!important;
}
.status-card .lunar-duration-line{transform:translateX(10px)!important}
.status-card .lunar-duration-point.right{
  width:146px!important;
  min-width:146px!important;
  justify-self:end!important;
  justify-items:center!important;
  text-align:center!important;
  transform:translateX(18px)!important;
}
.status-card .lunar-duration-point.right small,
.status-card .lunar-duration-point.right strong,
.status-card .lunar-duration-point.right em{text-align:center!important;width:100%!important}
@media (max-width:380px){
  .status-card .home-moon-anchor{right:10px!important;top:42px!important;width:64px!important;height:64px!important}
  .status-card .home-moon-anchor .moon-exact{width:54px!important;height:54px!important}
  .status-card .status-copy{padding-right:74px!important}
  .status-card .lunar-duration-body{grid-template-columns:minmax(82px,.88fr) 44px minmax(132px,1.32fr)!important;gap:4px!important}
  .status-card .lunar-duration-line{transform:translateX(7px)!important}
  .status-card .lunar-duration-point.right{width:132px!important;min-width:132px!important;transform:translateX(15px)!important}
}

/* Duration block centering fix: move the whole duration row to the right */
.status-card .lunar-duration-card{
  width:calc(100% - 26px)!important;
  margin-left:26px!important;
}
.status-card .lunar-duration-title{transform:translateX(0)!important}
.status-card .lunar-duration-body{
  width:100%!important;
  grid-template-columns:minmax(92px,.86fr) minmax(54px,.38fr) minmax(150px,1.34fr)!important;
  gap:4px!important;
}
.status-card .lunar-duration-line{transform:translateX(6px)!important}
.status-card .lunar-duration-point.right{transform:translateX(10px)!important}
.status-card .lunar-duration-place{transform:translateX(-12px)!important}
@media (max-width:380px){
  .status-card .lunar-duration-card{width:calc(100% - 22px)!important;margin-left:22px!important}
  .status-card .lunar-duration-body{grid-template-columns:minmax(82px,.82fr) 42px minmax(134px,1.32fr)!important;gap:3px!important}
  .status-card .lunar-duration-line{transform:translateX(5px)!important}
  .status-card .lunar-duration-point.right{transform:translateX(9px)!important}
  .status-card .lunar-duration-place{transform:translateX(-10px)!important}
}

/* Duration true center: center the whole start-line-end block inside the lunar card */
.status-card .lunar-duration-card{
  width:calc(100% + 58px)!important;
  margin-left:0!important;
  margin-right:-58px!important;
  padding-right:0!important;
}
.status-card .lunar-duration-title{
  width:100%!important;
  max-width:414px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  justify-content:center!important;
  transform:none!important;
}
.status-card .lunar-duration-body{
  width:100%!important;
  max-width:414px!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:minmax(128px,1fr) 72px minmax(128px,1fr)!important;
  gap:8px!important;
  align-items:end!important;
  transform:none!important;
}
.status-card .lunar-duration-point:first-child,
.status-card .lunar-duration-point.right{
  width:auto!important;
  min-width:0!important;
  justify-self:stretch!important;
  justify-items:center!important;
  text-align:center!important;
  transform:none!important;
}
.status-card .lunar-duration-point:first-child small,
.status-card .lunar-duration-point:first-child strong,
.status-card .lunar-duration-point.right small,
.status-card .lunar-duration-point.right strong,
.status-card .lunar-duration-point.right em{text-align:center!important;width:100%!important}
.status-card .lunar-duration-line{
  transform:none!important;
  justify-self:stretch!important;
}
.status-card .lunar-duration-place{
  width:100%!important;
  max-width:414px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  transform:none!important;
  text-align:center!important;
}
@media (max-width:380px){
  .status-card .lunar-duration-card{width:calc(100% + 58px)!important;margin-right:-58px!important;margin-left:0!important}
  .status-card .lunar-duration-title,.status-card .lunar-duration-body,.status-card .lunar-duration-place{max-width:390px!important}
  .status-card .lunar-duration-body{grid-template-columns:minmax(104px,1fr) 64px minmax(104px,1fr)!important;gap:7px!important}
}

/* Align the lower duration separator with the upper duration separator */
.status-card .lunar-theme:before{
  left:0!important;
  right:-58px!important;
}
@media (max-width:380px){
  .status-card .lunar-theme:before{right:-58px!important}
}

/* Event form inline validation: highlight only missing fields */
.planner-fields .input.is-invalid,
.event-type-select.is-invalid .event-type-trigger{
  border-color:rgba(255,126,143,.94)!important;
  background:rgba(255,126,143,.12)!important;
  box-shadow:0 0 0 1px rgba(255,126,143,.28),inset 0 1px 0 rgba(255,255,255,.11)!important;
}
.field-error-label{
  display:block;
  margin:-4px 0 2px 14px;
  color:#ffd2d8;
  font-size:12px;
  line-height:1.2;
  font-weight:850;
}
.event-type-select + .field-error-label{margin-top:-4px}

/* Calendar event filter bubble */
.month-switcher{grid-template-columns:1fr auto!important;grid-template-areas:'title filter' 'today today'!important;column-gap:8px!important;overflow:visible!important}
.calendar-filter{grid-area:filter!important;position:relative!important;justify-self:end!important;z-index:42!important}
.calendar-filter-btn{min-height:38px!important;max-width:152px!important;padding:6px 11px!important;border-radius:999px!important;border:1px solid rgba(255,255,255,.26)!important;background:radial-gradient(circle at 28% 18%,rgba(255,255,255,.74),rgba(255,255,255,.18) 38%,rgba(255,255,255,.08) 76%)!important;color:#fffaf6!important;display:flex!important;align-items:center!important;gap:7px!important;box-shadow:0 10px 28px rgba(21,12,32,.22),inset 0 1px 0 rgba(255,255,255,.36)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;text-transform:none!important}
.calendar-filter-btn b{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:12.5px!important;line-height:1!important;font-weight:900!important;color:#fffaf6!important;text-shadow:0 1px 12px rgba(43,34,52,.26)!important}
.calendar-filter-btn em{font-style:normal!important;font-size:15px!important;line-height:1!important;color:rgba(255,250,246,.78)!important}
.filter-icon{width:17px!important;height:17px!important;position:relative!important;display:inline-block!important;flex:0 0 auto!important}
.filter-icon:before,.filter-icon:after{content:''!important;position:absolute!important;left:2px!important;right:2px!important;height:2px!important;border-radius:999px!important;background:rgba(255,250,246,.96)!important;box-shadow:0 0 10px rgba(255,255,255,.36)!important}
.filter-icon:before{top:4px!important}.filter-icon:after{bottom:4px!important}
.filter-icon{background:linear-gradient(90deg,transparent 0 4px,rgba(255,250,246,.96) 4px 7px,transparent 7px 100%),linear-gradient(90deg,transparent 0 10px,rgba(255,250,246,.96) 10px 13px,transparent 13px 100%)!important;background-size:100% 50%,100% 50%!important;background-position:0 0,0 100%!important;background-repeat:no-repeat!important}
.calendar-filter-panel{position:absolute!important;right:0!important;top:calc(100% + 8px)!important;width:min(286px,calc(100vw - 42px))!important;max-height:360px!important;overflow:auto!important;border-radius:24px!important;padding:8px!important;background:linear-gradient(160deg,rgba(43,33,55,.92),rgba(29,20,39,.88))!important;border:1px solid rgba(255,255,255,.20)!important;box-shadow:0 20px 48px rgba(10,5,18,.38),inset 0 1px 0 rgba(255,255,255,.12)!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;opacity:0!important;visibility:hidden!important;transform:translateY(-6px) scale(.98)!important;transition:opacity .18s ease,transform .2s ease,visibility 0s linear .2s!important;pointer-events:none!important}
.calendar-filter.open .calendar-filter-panel{opacity:1!important;visibility:visible!important;transform:translateY(0) scale(1)!important;transition:opacity .18s ease,transform .2s ease!important;pointer-events:auto!important}
.calendar-filter-option{width:100%!important;min-height:48px!important;padding:10px 12px!important;border:0!important;border-radius:17px!important;background:transparent!important;color:#fffaf6!important;text-align:left!important;display:grid!important;gap:2px!important;box-shadow:none!important;text-transform:none!important}
.calendar-filter-option span{font-size:14px!important;line-height:1.18!important;font-weight:900!important;color:#fffaf6!important}.calendar-filter-option small{font-size:11.5px!important;line-height:1.24!important;font-weight:720!important;color:rgba(255,250,246,.66)!important}
.calendar-filter-option.active{background:linear-gradient(135deg,rgba(255,216,138,.22),rgba(255,177,191,.12),rgba(185,152,255,.16))!important}.calendar-filter-option.active span:before{content:'✓';margin-right:7px;color:#ffd88a}.calendar-filter-option.clear{min-height:38px!important;color:rgba(255,250,246,.74)!important;font-size:12px!important;font-weight:900!important;justify-items:center!important;border-bottom:1px solid rgba(255,255,255,.08)!important;margin-bottom:4px!important;border-radius:14px!important}
.calendar-grid.has-event-filter .day:not(.filter-good){opacity:.58!important}.calendar-grid.has-event-filter .day.filter-good{position:relative!important;opacity:1!important;border-color:rgba(255,216,138,.70)!important;background:radial-gradient(circle at 38% 22%,rgba(255,255,255,.38),rgba(255,216,138,.22) 38%,rgba(185,152,255,.14) 72%)!important;box-shadow:0 0 0 1px rgba(255,255,255,.16),0 0 24px rgba(255,216,138,.26),inset 0 1px 0 rgba(255,255,255,.26)!important}
@media (max-width:370px){.calendar-filter-btn{max-width:132px!important;padding:6px 9px!important}.calendar-filter-btn b{font-size:12px!important}.calendar-filter-panel{width:min(268px,calc(100vw - 34px))!important}}

/* Lunar duration polish: centered clock icon + soft sun shimmer */
.status-card .lunar-duration-title span{
  display:grid!important;
  place-items:center!important;
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  border-radius:999px!important;
  line-height:0!important;
  padding:0!important;
}
.status-card .lunar-duration-icon{
  display:block!important;
  width:14px!important;
  height:14px!important;
  color:#6c4c8a!important;
  stroke:currentColor!important;
  fill:none!important;
  stroke-width:1.9!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  transform:none!important;
}
.status-card .lunar-duration-line:after{
  content:'';
  position:absolute;
  left:0;
  top:50%;
  width:var(--lunar-progress,50%);
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(255,216,138,.32),rgba(255,183,92,.88));
  box-shadow:0 0 10px rgba(255,190,88,.26);
  transform:translateY(-50%);
  pointer-events:none;
}
.status-card .lunar-duration-line i{
  background:radial-gradient(circle,#ffe79d 0 32%,#ffc95f 60%,#ee9f35 100%)!important;
  box-shadow:0 0 10px rgba(255,197,88,.58),0 0 18px rgba(255,156,68,.26)!important;
  filter:saturate(1.12) brightness(1.08);
  animation:durationSunCore 8.4s ease-in-out infinite!important;
  will-change:box-shadow,filter,opacity;
  z-index:2;
}
.status-card .lunar-duration-line i:before{
  content:'';
  position:absolute;
  inset:-10px;
  border-radius:999px;
  border:0!important;
  background:radial-gradient(circle,rgba(255,232,158,.56) 0 26%,rgba(255,202,92,.40) 43%,rgba(255,173,72,.20) 60%,rgba(255,173,72,0) 78%)!important;
  filter:blur(3px);
  opacity:.74;
  pointer-events:none;
  animation:durationSunNeon 8.4s ease-in-out infinite!important;
}
.status-card .lunar-duration-line i:after{
  content:'';
  position:absolute;
  inset:-16px;
  border-radius:999px;
  border:0!important;
  background:radial-gradient(circle,rgba(255,224,143,.30) 0 22%,rgba(255,189,86,.20) 50%,rgba(255,168,72,0) 74%)!important;
  filter:blur(5.4px);
  opacity:.46;
  pointer-events:none;
  animation:durationSunNeonOuter 8.4s ease-in-out infinite!important;
}
@keyframes durationSunCore{
  0%,100%{box-shadow:0 0 9px rgba(255,197,88,.48),0 0 15px rgba(255,156,68,.18);filter:saturate(1.08) brightness(1.04);opacity:.98}
  50%{box-shadow:0 0 14px rgba(255,207,104,.70),0 0 26px rgba(255,164,70,.34);filter:saturate(1.18) brightness(1.12);opacity:1}
}
@keyframes durationSunNeon{
  0%,100%{transform:scale(1.15);opacity:.88}
  50%{transform:scale(.62);opacity:.34}
}
@keyframes durationSunNeonOuter{
  0%,100%{transform:scale(1.14);opacity:.54}
  50%{transform:scale(.58);opacity:.16}
}
@media (prefers-reduced-motion:reduce){.status-card .lunar-duration-line i,.status-card .lunar-duration-line i:before,.status-card .lunar-duration-line i:after{animation:none!important}}
/* Lunar place inline refresh: same style as city row */
.status-card .lunar-duration-place-row{
  width:100%!important;
  max-width:414px!important;
  margin:8px auto 0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  transform:none!important;
  text-align:center!important;
  flex-wrap:nowrap!important;
}
.status-card .lunar-duration-place-stack{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  max-width:100%!important;
  min-width:0!important;
}
.status-card .lunar-duration-place-main{
  display:block!important;
  max-width:100%!important;
  white-space:nowrap!important;
  text-align:center!important;
  font-family:Manrope,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:11.5px!important;
  font-weight:950!important;
  line-height:1!important;
  letter-spacing:0!important;
}
.status-card .lunar-duration-place-row .lunar-duration-place{
  margin:0!important;
  padding:0!important;
  display:inline!important;
  color:#6c4c8a!important;
  font:inherit!important;
  line-height:inherit!important;
  cursor:pointer!important;
  -webkit-tap-highlight-color:transparent!important;
}
.status-card .lunar-duration-place-row .lunar-duration-place i{display:inline!important;margin:0!important;color:#8a6aa5!important;font-style:normal!important;line-height:inherit!important}
.status-card .lunar-duration-place-row .lunar-duration-place span,.status-card .lunar-duration-place-row .lunar-duration-place small{display:none!important}
.status-card .lunar-duration-place-row .lunar-duration-place .lunar-duration-refresh{display:inline!important;margin:0!important;color:#6c4c8a!important;font:inherit!important;line-height:inherit!important;text-decoration:none!important;opacity:1!important;vertical-align:baseline!important;transform:none!important;cursor:pointer!important;-webkit-tap-highlight-color:transparent!important}
.status-card .lunar-duration-place-meta{display:block!important;width:100%!important;text-align:center!important;margin-top:2px!important;color:rgba(108,76,138,.58)!important;font-size:10.5px!important;font-weight:850!important;line-height:1.25!important;letter-spacing:0!important;text-transform:none!important}
.status-card .lunar-duration-refresh{
  margin:0!important;
  padding:0!important;
  color:#6c4c8a!important;
  display:inline!important;
  transform:none!important;
  cursor:pointer!important;
  font:inherit!important;
  line-height:inherit!important;
  text-decoration:none!important;
  opacity:1!important;
  -webkit-tap-highlight-color:transparent!important;
}
.status-card .lunar-duration-place:active,.status-card .lunar-duration-refresh:active{opacity:.68!important}
@media (max-width:380px){.status-card .lunar-duration-place-row{max-width:390px!important}.status-card .lunar-duration-refresh{font-size:11.5px!important}}
/* Journal mobile keyboard stability */
.journal-compose{overflow:visible;scroll-margin-bottom:calc(190px + var(--keyboard-inset,0px))}
#journalText.journal-textarea{height:126px;min-height:126px;max-height:126px;resize:none;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;line-height:1.45;scroll-margin-bottom:calc(170px + var(--keyboard-inset,0px));touch-action:manipulation}
body.keyboard-open #journalText.journal-textarea{height:126px;min-height:126px;max-height:126px}
