:root{--plan-accent:#8ee6d1;--plan-bg:#0b1022;--plan-card:#151f3b;--plan-glow:#1d2354;--plan-ink:#edf4ff}html[data-theme=ocean]{--plan-accent:#68d7ff;--plan-bg:#071b30;--plan-card:#123653;--plan-glow:#155b85}html[data-theme=sunset]{--plan-accent:#ffc084;--plan-bg:#211712;--plan-card:#38251f;--plan-glow:#764026}html[data-theme=midnight]{--plan-accent:#d0d9e8;--plan-bg:#101217;--plan-card:#222730;--plan-glow:#3b4554}html[data-theme=day]{--plan-accent:#176d9a;--plan-bg:#eff7f6;--plan-card:#fff;--plan-glow:#d3e8fb;--plan-ink:#172d42}html:not([data-theme=night]):not([data-theme=day]) body{background:radial-gradient(ellipse at top left,var(--plan-glow),transparent 48%),var(--plan-bg)}html:not([data-theme=day]) .panel,html:not([data-theme=day]) .extra-panel,html:not([data-theme=day]) .health-form,html:not([data-theme=day]) .health-list,html:not([data-theme=day]) .hero{background:var(--plan-card)}.brand,.eyebrow,.hero em,.weekbar a{color:var(--plan-accent)!important}.button:not(.ghost){background:var(--plan-accent);color:#10172b!important}html[data-theme=day] .button:not(.ghost){color:white!important}.top{border-bottom:1px solid #8498b328}.plan-dock,.plan-date,#plan-sheet{display:none}#plan-themes,#plan-sheet{position:fixed;z-index:2147483000;background:var(--plan-card);color:var(--plan-ink);border:1px solid #91a8c344;border-radius:24px;padding:20px;box-shadow:0 15px 70px #0008}#plan-themes{width:min(92vw,420px);left:50%;top:50%;transform:translate(-50%,-50%)}.plan-sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;font-size:20px}.plan-sheet-head button{border:0;background:transparent;color:inherit;font-size:30px}.plan-swatches{display:grid;grid-template-columns:1fr 1fr;gap:12px}.swatch{padding:18px 8px;border:2px solid transparent;border-radius:14px;color:white;font-weight:600}.swatch[aria-pressed=true]{border-color:#f4b65e;outline:2px solid #f4b65e}.swatch.night{background:#151f3b}.swatch.ocean{background:#155b85}.swatch.sunset{background:#764026}.swatch.midnight{background:#343c49}.swatch.day{background:#eff7f6;color:#172d42}.plan-date{align-items:center;justify-content:space-between;background:var(--plan-card);border:1px solid #8197b333;border-radius:18px;padding:10px;margin-bottom:18px;color:var(--plan-ink)}.plan-date>a{font-size:32px;padding:0 15px;color:var(--plan-accent)}.plan-date div{text-align:center}.plan-date input{display:block;background:transparent;color:inherit;border:0;text-align:center;color-scheme:dark}.plan-today{font-size:12px;color:var(--plan-accent)}[data-theme=day] .plan-date input{color-scheme:light}@media(max-width:760px){.plan-app .top nav{display:none}.plan-app .top{padding:15px 5%;}.plan-app{padding-bottom:calc(86px + env(safe-area-inset-bottom))}.plan-app .st-sticky-share-buttons,.plan-app #st-1{display:none!important}.plan-dock{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:2147482999;background:var(--plan-card);color:var(--plan-ink);padding:9px 4px calc(9px + env(safe-area-inset-bottom));border-top:1px solid #8fa8c344;box-shadow:0 -8px 35px #0004;justify-content:space-around}.plan-dock a,.plan-dock button{display:flex;flex:1;flex-direction:column;align-items:center;gap:4px;font-size:10px;background:none;border:0;color:inherit;padding:5px 0}.plan-dock svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.plan-dock [aria-current],.plan-dock [aria-expanded=true]{color:var(--plan-accent)}#plan-sheet:not([hidden]){display:block;bottom:calc(78px + env(safe-area-inset-bottom));left:8px;right:8px;max-height:70vh;overflow:auto}.plan-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.plan-links a,.plan-links button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:#829ab51a;border:0;border-radius:14px;padding:12px 4px;color:inherit;font-size:11px;text-align:center;width:100%;min-height:68px}.plan-links b{font-size:23px;color:var(--plan-accent)}.plan-date{display:flex}.plan-app .wrap{padding-top:15px}.plan-date [aria-disabled=true]{opacity:.3}}

#ffyp-perf-close{background:transparent;color:white;border:0;font-size:22px;line-height:1;cursor:pointer;padding:2px 7px}#ffyp-perf[hidden]{display:none!important}.mobile-home-agenda,.month-mobile-summary{display:none}.plan-search{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.plan-search input{min-width:0;flex:1;padding:12px;border-radius:12px;background:var(--plan-card);color:var(--plan-ink);border:1px solid #829ab566}.plan-search button{background:var(--plan-accent);color:#10243b;border:0;border-radius:12px;padding:10px 16px;font-weight:700}.search-result{display:block;margin:10px 0}.search-range label{display:flex;align-items:center;gap:6px}.plan-loading{position:fixed;inset:0;z-index:2147483647;display:grid;place-items:center;background:#08172bbb;backdrop-filter:blur(3px)}.plan-loading[hidden]{display:none}.plan-loading>div{background:var(--plan-card);color:var(--plan-ink);padding:25px 35px;border-radius:22px;text-align:center;box-shadow:0 12px 50px #0005}.plan-ring{display:block;width:42px;height:42px;border:4px solid #829ab544;border-top-color:var(--plan-accent);border-radius:50%;margin:0 auto 14px;animation:plan-spin .85s linear infinite}@keyframes plan-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.plan-ring{animation:none}}
@media(max-width:760px){.plan-app #ffyp-perf{bottom:calc(86px + env(safe-area-inset-bottom))!important;left:8px!important;max-width:calc(100vw - 16px)!important;font-size:11px!important;z-index:2147482998!important}.plan-app .assistant-fab{display:none!important}.plan-dock a,.plan-dock button{min-height:52px;justify-content:center}.plan-dock [aria-current]{background:#829ab51a;border-radius:15px}.month-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:4px!important}.month-grid .month-day,.month-grid .month-blank{min-height:58px!important;height:auto!important;padding:5px 0!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.month-grid .month-event,.month-grid .holiday-label{display:none!important}.month-grid .month-heading{font-size:10px;padding:4px 0!important;text-align:center}.month-mobile-summary{display:block;color:var(--plan-accent);font-size:11px;min-height:15px}.month-number{font-size:16px!important}.mobile-home-agenda{display:flex;flex-direction:column;gap:10px;margin:16px 0}.desktop-week{display:none}.plan-app .day-details{display:grid;grid-template-columns:1fr;gap:12px}.plan-app .day-detail{padding:16px;border-radius:16px}.plan-app .day-detail h2{font-size:19px}.plan-app .plan-date~.intro h1{font-size:27px}}
.plan-reading{--reading:#9aaec5;min-width:0}.reading-green{--reading:#27976b}.reading-yellow{--reading:#b78117}.reading-red{--reading:#dc525d}html:not([data-theme=day]) .reading-green{--reading:#79e3b3}html:not([data-theme=day]) .reading-yellow{--reading:#f4cf79}html:not([data-theme=day]) .reading-red{--reading:#ff8d95}.health-item:has(.plan-reading){border-inline-start:4px solid var(--reading,#8197b3)}.reading-date{font-size:.85rem;color:inherit;opacity:.85;margin-bottom:12px}.reading-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:10px;margin-bottom:12px}.reading-grid>div{min-width:0;padding:10px;border-radius:12px;background:#829ab514}.reading-grid strong{display:block;font-size:clamp(23px,5vw,34px);line-height:1.3;color:var(--reading);font-variant-numeric:tabular-nums}.reading-grid>div+div strong{color:inherit}.reading-grid small{font-size:.75rem}.plan-reading .bp-hint{margin:8px 0;font-size:.82rem;padding:10px}.plan-reading .bp-hint small{font-size:.72rem}.plan-date[aria-busy=true]{opacity:.65}.plan-day-error{padding:10px;color:var(--plan-ink)}
@media(max-width:760px){.plan-app .wrap,.plan-app .wrap *{box-sizing:border-box}.plan-app .wrap{min-width:0;max-width:100%}.plan-app .music-hub,.plan-app .music-personal,.plan-app .music-personal>* ,.plan-app .music-moods article,.plan-app .music-personal form>div{min-width:0;max-width:100%;overflow-wrap:anywhere}.plan-app .music-personal{grid-template-columns:minmax(0,1fr);padding:14px}.plan-app .music-personal form>div{display:grid;grid-template-columns:minmax(0,1fr)}.plan-app #music-personal-url{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.plan-app .wrap input:not([type=checkbox]):not([type=radio]),.plan-app .wrap select,.plan-app .wrap textarea,.plan-app .wrap iframe{max-width:100%;min-width:0}.plan-app .plan-dock{width:100%;box-sizing:border-box}.plan-app .plan-dock>*{min-width:0}.plan-app .reading-grid>div{padding:8px}.plan-app .health-item:has(.plan-reading){padding:14px}.plan-app .plan-date{gap:4px}.plan-app .plan-date input{width:100%}.plan-app .plan-date div{min-width:0}}

/* Unified theme surfaces across shared pages */
:root{--plan-surface:#24375b;--plan-field:#101a32;--plan-muted:#bac9df;--plan-border:#52617c;--plan-on-accent:#10243b}
html[data-theme=ocean]{--plan-surface:#19466a;--plan-field:#0b2338;--plan-muted:#bdd9ed;--plan-border:#426b86}
html[data-theme=sunset]{--plan-surface:#50362b;--plan-field:#291c17;--plan-muted:#e4c9b8;--plan-border:#805b48}

html[data-theme=midnight]{--plan-surface:#292e38;--plan-field:#191c23;--plan-muted:#c0c8d5;--plan-border:#505866}
html[data-theme=day]{--plan-surface:#f0f4f8;--plan-field:#fff;--plan-muted:#40566c;--plan-border:#bdcbd8;--plan-on-accent:#fff}



html[data-theme] body{color:var(--plan-ink);background:radial-gradient(ellipse at top left,var(--plan-glow),transparent 48%),var(--plan-bg)}
html[data-theme] body .panel,html[data-theme] body .extra-panel,html[data-theme] body .health-form,html[data-theme] body .health-list,html[data-theme] body .hero,html[data-theme] body .day,html[data-theme] body .month-day,html[data-theme] body .weekbar,html[data-theme] body .chart-card,html[data-theme] body .today-meds,html[data-theme] body .assistant-panel,html[data-theme] body .assistant-sitemap,html[data-theme] body .extra-hero,html[data-theme] body .health-hero,html[data-theme] body .health-dashboard,html[data-theme] body .music-hub,html[data-theme] body .calendar-export,html[data-theme] body .news-hero,html[data-theme] body .news-sources,html[data-theme] body .xp-home,html[data-theme] body .xp-hero,html[data-theme] body .xp-reward-card,html[data-theme] body .radio-hero,html[data-theme] body .radio-player,html[data-theme] body .donation-card,html[data-theme] body .donation-hero,html[data-theme] body .admin-panel,html[data-theme] body .admin-hero,html[data-theme] body .event-panel,html[data-theme] body .event-hero,html[data-theme] body .calm-panel,html[data-theme] body .game-panel,html[data-theme] body .web-hero,html[data-theme] body .web-login,html[data-theme] body .web-signup,html[data-theme] body .web-features{background:var(--plan-card) !important;color:var(--plan-ink);border-color:var(--plan-border);}
html[data-theme] body .event,html[data-theme] body .month-event,html[data-theme] body .day-detail,html[data-theme] body .dose-card,html[data-theme] body .health-item,html[data-theme] body .assistant-message,html[data-theme] body .extra-card,html[data-theme] body .overview-card,html[data-theme] body .goal-item,html[data-theme] body .music-personal,html[data-theme] body .music-embed-panel,html[data-theme] body .news-story,html[data-theme] body .journal-history-row,html[data-theme] body .achievement-card,html[data-theme] body .weather-card,html[data-theme] body .finance-balance,html[data-theme] body .profile-switch,html[data-theme] body .game-option,html[data-theme] body .music-moods article,html[data-theme] body .assistant-results a,html[data-theme] body .xp-wallet-grid>div:not(.xp-wallet-available),html[data-theme] body .xp-news-grid a{background:var(--plan-surface) !important;color:var(--plan-ink);border-color:var(--plan-border);}
html[data-theme] body .event,html[data-theme] body .month-event{border-inline-start-color:var(--plan-accent)}
html[data-theme] body :is(.day-detail>a,.pill,.event small,.eyebrow,.weekbar a,.extra-card b,.news-story-top,.news-story-foot b,.ffyp-footer-links a,.ffyp-footer-brand,.plan-today){color:var(--plan-accent)!important}
html[data-theme] body :is(.intro p,.hero p,.day-detail p,.health-item small,.hint,.dayhead,.month-heading,.extra-card p,.music-disclaimer,.news-story-foot,.news-sources p,footer,.brand small,.top nav a,.top nav button){color:var(--plan-muted)!important}
html[data-theme] body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){background:var(--plan-field);color:var(--plan-ink);border-color:var(--plan-border);color-scheme:dark}
html[data-theme=day] body :is(input,select,textarea){color-scheme:light}
html[data-theme] body :is(.button:not(.ghost):not(.whatsapp-share),.music-service,.music-personal button,.calendar-export-actions a,.plan-search button){background:var(--plan-accent);color:var(--plan-on-accent)!important;border-color:var(--plan-accent);box-shadow:none}
html[data-theme] body .button.ghost{background:var(--plan-surface);color:var(--plan-ink)!important;border:1px solid var(--plan-border)}
html[data-theme] body .whatsapp-share{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:#25d366!important;color:#103b24!important;border:1px solid #25d366!important;border-radius:16px;padding:13px 20px;box-shadow:0 6px 20px #25d36625;text-align:center;transition:transform .15s,filter .15s}
html[data-theme] body .whatsapp-share:hover,html[data-theme] body .whatsapp-share:focus{background:#25d366!important;color:#103b24!important;border-color:#25d366!important;filter:brightness(1.05)}
.whatsapp-share:active{transform:scale(.98)}.whatsapp-share svg{width:26px;height:26px;flex:none}.whatsapp-share span{min-width:0}
@media(max-width:760px){.whatsapp-share{width:100%}.plan-swatches{gap:8px}#plan-themes{max-height:85dvh;overflow:auto}.swatch{padding:14px 8px}}


html[data-theme] body :is(.allergy-overview,.allergy-confirm,.assistant-hero,.quote-today,.paper-diaries,.planning-play-zone,.samanta-shortcuts,.ffyp-modal,.ffyp-modal-hero,.other-menu>div,.reward-certificate,.radio-art:not(.has-cover),.admin-delete form){background:var(--plan-card)!important;color:var(--plan-ink)!important;border-color:var(--plan-border)!important}
html[data-theme] body :is(.extra-nav a,.health-tabs a,.profile-switch a,.chart-filters a,.sleep-timer button,.news-controls button,.admin-metrics>div:not(.admin-total-donations),.metric-grid>div:not(.finance-income):not(.finance-expense),.history-chips span,.allergy-chips span,.assistant-quick-grid a,.assistant-quick-grid button,.assistant-featured-link,.planning-reward-item:not(.reward-earned),.music-secondary,.music-embed-panel button,.weather-now,.badge-row span,.game-big,.weekday-choices label,.pager .page-form button,.month-day.weekend,.day.weekend,.month-heading.weekend,.admin-chart-day>div,.theme-toggle,.reorder-button){background:var(--plan-surface)!important;color:var(--plan-ink)!important;border-color:var(--plan-border)!important}
html[data-theme] body :is(.extra-nav a.active,.health-tabs a.active,.profile-switch a.active,.chart-filters a.active,.news-controls button[aria-pressed=true],.sleep-timer button.active,.sleep-timer button[aria-pressed=true],.radio-controls>button,.assistant-avatar,.assistant-fab,.event-spark,.music-moods .music-pick,.music-personal .music-pick,.pager .page-form button[aria-current=page],.dose-button:not(.done)){background:var(--plan-accent)!important;color:var(--plan-on-accent)!important;border-color:var(--plan-accent)!important}
html[data-theme] body :is(.admin-metrics>div:not(.admin-total-donations) strong,.music-hub-symbol,.radio-live,.assistant-quick-grid b,.samanta-shortcut-icon,.allergy-none,.assistant-featured-link span,.goal-item>a,.month-all,.pager a,.news-today,.news-sources a,.xp-reward-icon,.xp-news-link,.dayhead-link strong,.dose-time,.overview-card em,.health-item a[href^="tel:"],#ffyp-perf-details){color:var(--plan-accent)!important}
html[data-theme] body :is(.assistant-hero p,.quote-today small,.allergy-chips small,.allergy-none small,.allergy-confirm p,.admin-metrics>div:not(.admin-total-donations) span,.admin-metrics>div:not(.admin-total-donations) small,.radio-body p,.sleep-timer span,.music-hub-heading p,.music-moods p,.samanta-shortcuts summary small,.news-heading>span,.news-loading,.assistant-sitemap p,.section-title span,.overview-card small,.health-item p,.chart-card>small,.admin-hero p,.extra-hero p,.health-hero p,.radio-hero p,.event-hero p){color:var(--plan-muted)!important}
html[data-theme] body .planning-play-zone{--play-bg:var(--plan-card);--play-card:var(--plan-surface);--play-text:var(--plan-ink);--play-muted:var(--plan-muted);--play-border:var(--plan-border);--play-soft:var(--plan-field)}
html[data-theme] body .planning-play-card{--play-accent:var(--plan-accent)!important;background:var(--plan-surface)!important;border-color:var(--plan-border);border-top-color:var(--plan-accent)}
html[data-theme] body .planning-play-tag,html[data-theme] body .planning-play-card-bottom strong{color:var(--plan-accent)!important}
html[data-theme] body .assistant-avatar{border-color:var(--plan-accent)!important}
html[data-theme] body input[type=range]{accent-color:var(--plan-accent);color:var(--plan-accent)}
html[data-theme] body #ffyp-perf{background:var(--plan-card)!important;color:var(--plan-ink)!important;border-color:var(--plan-border)!important}
html[data-theme] body #ffyp-perf-close{color:var(--plan-ink)!important}
html[data-theme] body .top{background:var(--plan-card);border-color:var(--plan-border)}
html[data-theme] body .plan-dock [aria-current]{background:var(--plan-surface)}
html[data-theme] body .progress-track span,html[data-theme] body .admin-chart-day>div span{background:var(--plan-accent)}
@media print{html[data-theme] body .reward-certificate{background:white!important;color:#17394a!important}}

html[data-theme=emerald]{--plan-accent:#69DCE3;--plan-bg:#09262D;--plan-card:#103D47;--plan-glow:#15505C;--plan-surface:#194B55;--plan-field:#0C3039;--plan-muted:#C1E1E4;--plan-border:#43838D;--plan-on-accent:#09262D;}
.swatch.emerald{background:#103D47;color:#69DCE3;border-color:#43838D}

html[data-theme=terracotta]{--plan-accent:#DF7189;--plan-bg:#240E19;--plan-card:#431B2B;--plan-glow:#572037;--plan-surface:#542638;--plan-field:#301321;--plan-muted:#EACBD4;--plan-border:#955369;--plan-on-accent:#301321;}
.swatch.terracotta{background:#431B2B;color:#DF7189;border-color:#955369}

html[data-theme=honey]{--plan-accent:#D4B5EF;--plan-bg:#211C32;--plan-card:#352C49;--plan-glow:#44365D;--plan-surface:#443857;--plan-field:#292238;--plan-muted:#DED2EC;--plan-border:#82709E;--plan-on-accent:#211C32;}
.swatch.honey{background:#352C49;color:#D4B5EF;border-color:#82709E}

/* Ruby primary actions: white on deep carmine; keep light accent for text. */
html[data-theme=terracotta] body .button:not(.ghost):not(.whatsapp):not(.btn-whatsapp):not([href*="wa.me"]):not([href*="whatsapp.com"]){background:#B52249!important;color:#fff!important;border-color:#B52249!important}

/* Shared Planning identity: original local PWA icon, theme-aware typography. */
.top .brand{display:inline-flex;align-items:center;gap:12px;flex-shrink:0;letter-spacing:0;line-height:1.1;text-decoration:none;max-width:100%}
.top .brand .plan-brand-logo{display:block;width:52px;height:52px;flex:0 0 52px;object-fit:contain;border-radius:0;box-shadow:none;background:transparent}
.top .brand .plan-brand-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.top .brand .plan-brand-title{font-size:clamp(23px,5.5vw,29px);font-weight:800;letter-spacing:-.035em;color:var(--plan-accent)}
.top .brand small{font-size:12px;font-weight:500;letter-spacing:.075em;color:var(--plan-muted)!important;line-height:1.2}
.top .brand:focus-visible{outline:2px solid var(--plan-accent);outline-offset:5px;border-radius:12px}
@media(max-width:380px){.top .brand{gap:10px}.top .brand .plan-brand-logo{width:44px;height:44px;flex-basis:44px}}

/* Contrast audit: shared surfaces must never inherit legacy hero foregrounds. */
html[data-theme] body :is(.hero,.health-hero,.assistant-hero,.extra-hero,.event-hero,.radio-hero,.admin-hero,.donation-hero,.web-hero,.news-hero,.xp-hero,.xp-home,.quote-today,.planning-play-zone,.music-hub,.panel,.extra-panel,.health-form,.health-list,.admin-panel,.ffyp-modal) {color:var(--plan-ink)!important}
html[data-theme] body :is(.hero,.health-hero,.assistant-hero,.extra-hero,.event-hero,.radio-hero,.admin-hero,.donation-hero,.web-hero,.news-hero,.xp-hero,.xp-home,.quote-today,.planning-play-zone,.music-hub,.panel,.extra-panel,.health-form,.health-list,.admin-panel,.ffyp-modal) :is(h1,h2,h3,h4,label,legend) {color:var(--plan-ink)!important}
html[data-theme] body :is(.hero,.health-hero,.assistant-hero,.extra-hero,.event-hero,.radio-hero,.admin-hero,.donation-hero,.web-hero,.news-hero,.xp-hero,.xp-home,.quote-today,.planning-play-zone,.music-hub) :is(h1,h2,h3) em {color:var(--plan-accent)!important}
html[data-theme] body :is(.hero,.health-hero,.assistant-hero,.extra-hero,.event-hero,.radio-hero,.admin-hero,.donation-hero,.web-hero,.news-hero,.xp-hero,.xp-home,.quote-today,.music-hub) p {color:var(--plan-muted)!important}
html[data-theme] body :is(.hero-deco,.music-hub-symbol) {color:var(--plan-accent)!important}
html[data-theme] body .hero-deco {opacity:.18}
html[data-theme] body :is(input,textarea)::placeholder {color:var(--plan-muted);opacity:1}
html[data-theme] body :is(input,textarea,select,button,a):focus-visible {outline:2px solid var(--plan-accent);outline-offset:3px}
html[data-theme] body :is(.plan-sheet-head,.plan-date,.plan-links a,.plan-links button) {color:var(--plan-ink)}
html[data-theme=day]{--plan-accent:#17658a;--plan-ink:#172d42;--plan-muted:#40566c;--plan-border:#879eaf;--plan-surface:#edf3f7;--plan-on-accent:#fff;color-scheme:light}
html[data-theme=day] body :is(.health-hero,.hero,.assistant-hero,.extra-hero,.radio-hero,.event-hero,.admin-hero,.donation-hero,.web-hero,.news-hero,.xp-hero,.quote-today){box-shadow:0 12px 36px #172d4212}
html[data-theme=day] body :is(.panel,.extra-panel,.health-form,.health-list) label {color:var(--plan-ink)!important}
html[data-theme=day] body :is(.assistant-suggestions>p,.music-personal p,.xp-news-grid p,.admin-user-row small,.admin-chart-day small,.journal-history-row small,.health-item small,.section-title span){color:var(--plan-muted)!important}
html[data-theme=day] body :is(.reading-green){--reading:#176b49}
html[data-theme=day] body :is(.reading-yellow){--reading:#805900}
html[data-theme=day] body :is(.reading-red){--reading:#b32639}
@media print{html[data-theme] body :is(.reward-certificate,.reward-certificate h2,.reward-certificate p){color:#17394a!important}}
[hidden]{display:none!important}.plan-dock{grid-template-columns:repeat(auto-fit,minmax(0,1fr))!important}.ffyp-footer-links a{color:inherit}input[type=checkbox]{width:20px;height:20px;vertical-align:middle;accent-color:currentColor}.plan-dock a,.plan-dock button{min-width:0}.plan-dock span{overflow:hidden;text-overflow:ellipsis;max-width:100%;white-space:nowrap}
/* FreeTop: six coordinated palettes and independent light/dark mode */
html[data-theme=forest]{--plan-accent:#83d6ae;--plan-bg:#10251e;--plan-card:#173b2d;--plan-glow:#20543d;--plan-surface:#24503d;--plan-field:#112e23;--plan-ink:#f0fff6;--plan-muted:#c2ddce;--plan-border:#527d68}
html[data-palette=ocean],.swatch.ocean{--p1:#1759bb;--p2:#102e58;--p3:#e8f0fb}html[data-palette=forest],.swatch.forest{--p1:#176c4c;--p2:#124333;--p3:#eaf4ed}html[data-palette=sunset],.swatch.sunset{--p1:#a94a15;--p2:#703111;--p3:#fff2e8}html[data-palette=terracotta],.swatch.terracotta{--p1:#ae2949;--p2:#711b36;--p3:#fceef1}html[data-palette=emerald],.swatch.emerald{--p1:#087b82;--p2:#104a55;--p3:#e5f5f5}html[data-palette=midnight],.swatch.midnight{--p1:#455469;--p2:#1d2937;--p3:#edf1f4}
html[data-theme=day][data-palette]{--plan-accent:var(--p1);--plan-bg:var(--p3);--plan-card:#fff;--plan-surface:var(--p3);--plan-field:#fff;--plan-ink:var(--p2);--plan-muted:#475b70;--plan-border:#c4d1df;--plan-glow:var(--p3)}
#plan-themes{width:min(94vw,680px);max-height:85vh;overflow:auto}.plan-swatches{grid-template-columns:repeat(3,minmax(0,1fr))}.plan-swatches .swatch{background:var(--plan-card)!important;color:var(--plan-ink)!important;border:2px solid var(--plan-border);display:grid;gap:12px;padding:12px 8px;min-width:0}.palette-strip{display:flex;height:25px;border-radius:8px;overflow:hidden}.palette-strip i{flex:1;background:var(--p1)}.palette-strip i:nth-child(2){background:var(--p2)}.palette-strip i:nth-child(3){background:var(--p3)}.plan-swatches .swatch[aria-pressed=true]{border-color:var(--plan-accent);outline:none}.plan-mode{display:flex;gap:10px;margin-bottom:15px}.home-modules{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:20px 0}.home-module{display:flex;flex-direction:column;gap:8px;text-decoration:none!important;padding:22px!important;color:var(--plan-ink)!important}.home-module>span{font-size:30px;color:var(--plan-accent)}.home-module h2{font-size:1.15rem;margin:0}.home-module small{color:var(--plan-accent)}.plan-app .plan-dock{display:flex;position:fixed;left:50%;right:auto;transform:translateX(-50%);bottom:8px;width:calc(100% - 16px);max-width:1000px;border-radius:24px;padding:8px;gap:4px;background:var(--p2,#102e58);color:#fff;z-index:2147482999;box-shadow:0 6px 24px #0003}.plan-dock a,.plan-dock button{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;color:#fff!important;background:transparent;border:0;gap:5px;font-size:12px;min-height:60px}.plan-dock svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.plan-app .plan-dock [aria-current],.plan-app .plan-dock [aria-expanded=true]{background:#ffffff20!important;border-radius:16px;color:#fff!important}.plan-dock [aria-current]::after{content:'';width:14px;height:3px;background:#ffca76;border-radius:5px}.plan-app{padding-bottom:100px!important}.plan-app #plan-sheet:not([hidden]){display:block;position:fixed;bottom:95px;left:50%;transform:translateX(-50%);width:min(94vw,650px);max-height:70vh;overflow:auto}.plan-app .desktop-week{display:block!important}.plan-app .desktop-week .grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.plan-app .mobile-home-agenda{display:none!important}.ffyp-footer{padding-bottom:35px!important}@media(max-width:600px){.plan-swatches{grid-template-columns:repeat(2,minmax(0,1fr))}.home-modules{grid-template-columns:repeat(2,minmax(0,1fr))}.home-module{padding:14px!important}.plan-app .desktop-week .grid{grid-template-columns:1fr}.plan-app .plan-dock{bottom:env(safe-area-inset-bottom,0px)}}
.plan-app #ffyp-perf{bottom:105px!important}.plan-app .ffyp-footer-links a,.plan-app .ffyp-footer-links button{color:var(--plan-accent)!important}.plan-app .ffyp-footer{color:var(--plan-muted)!important}.plan-app .plan-dock [aria-current] svg{background:var(--p1,#1759bb);box-sizing:content-box;padding:5px 12px;border-radius:12px}.plan-app .home-module[hidden]{display:none!important}

/* FreeTop design system: palette owns every surface, including document root. */
html[data-theme=day][data-palette=ocean]{--plan-bg:#dce9fa;--plan-card:#f4f8ff;--plan-surface:#dce9fa;--plan-field:#fff;--plan-border:#b8d0ee;--plan-accent:#1759bb;--plan-ink:#102e58;--plan-muted:#435368;--plan-on-accent:#fff;--plan-glow:#b8d0ee;color-scheme:light}
html[data-theme=ocean][data-palette=ocean]{--plan-bg:#101f38;--plan-card:#192e4b;--plan-surface:#223d60;--plan-field:#101f38;--plan-border:color-mix(in srgb,#8abaff 35%,#192e4b);--plan-accent:#8abaff;--plan-ink:#f4f7fb;--plan-muted:#c6d1de;--plan-on-accent:#101f38;--plan-glow:#223d60;color-scheme:dark}
html[data-theme=day][data-palette=forest]{--plan-bg:#dceee2;--plan-card:#f4faf5;--plan-surface:#dceee2;--plan-field:#fff;--plan-border:#b6d8c3;--plan-accent:#176c4c;--plan-ink:#124333;--plan-muted:#435368;--plan-on-accent:#fff;--plan-glow:#b6d8c3;color-scheme:light}
html[data-theme=forest][data-palette=forest]{--plan-bg:#10291f;--plan-card:#193b2d;--plan-surface:#244c3a;--plan-field:#10291f;--plan-border:color-mix(in srgb,#91d8ae 35%,#193b2d);--plan-accent:#91d8ae;--plan-ink:#f4f7fb;--plan-muted:#c6d1de;--plan-on-accent:#10291f;--plan-glow:#244c3a;color-scheme:dark}
html[data-theme=day][data-palette=sunset]{--plan-bg:#f7e3d3;--plan-card:#fff8f1;--plan-surface:#f7e3d3;--plan-field:#fff;--plan-border:#e6c3a9;--plan-accent:#a94a15;--plan-ink:#703111;--plan-muted:#435368;--plan-on-accent:#fff;--plan-glow:#e6c3a9;color-scheme:light}
html[data-theme=sunset][data-palette=sunset]{--plan-bg:#2b1c15;--plan-card:#40291e;--plan-surface:#543727;--plan-field:#2b1c15;--plan-border:color-mix(in srgb,#f4b17e 35%,#40291e);--plan-accent:#f4b17e;--plan-ink:#f4f7fb;--plan-muted:#c6d1de;--plan-on-accent:#2b1c15;--plan-glow:#543727;color-scheme:dark}
html[data-theme=day][data-palette=terracotta]{--plan-bg:#f5dce4;--plan-card:#fff6f8;--plan-surface:#f5dce4;--plan-field:#fff;--plan-border:#e7b9c8;--plan-accent:#ae2949;--plan-ink:#711b36;--plan-muted:#435368;--plan-on-accent:#fff;--plan-glow:#e7b9c8;color-scheme:light}
html[data-theme=terracotta][data-palette=terracotta]{--plan-bg:#29151e;--plan-card:#40232f;--plan-surface:#53303e;--plan-field:#29151e;--plan-border:color-mix(in srgb,#f09ab0 35%,#40232f);--plan-accent:#f09ab0;--plan-ink:#f4f7fb;--plan-muted:#c6d1de;--plan-on-accent:#29151e;--plan-glow:#53303e;color-scheme:dark}
html[data-theme=day][data-palette=emerald]{--plan-bg:#d4ecee;--plan-card:#f2fbfb;--plan-surface:#d4ecee;--plan-field:#fff;--plan-border:#a9d5d9;--plan-accent:#087b82;--plan-ink:#104a55;--plan-muted:#435368;--plan-on-accent:#fff;--plan-glow:#a9d5d9;color-scheme:light}
html[data-theme=emerald][data-palette=emerald]{--plan-bg:#10292e;--plan-card:#193c43;--plan-surface:#24505a;--plan-field:#10292e;--plan-border:color-mix(in srgb,#83dce2 35%,#193c43);--plan-accent:#83dce2;--plan-ink:#f4f7fb;--plan-muted:#c6d1de;--plan-on-accent:#10292e;--plan-glow:#24505a;color-scheme:dark}
html[data-theme=day][data-palette=midnight]{--plan-bg:#dfe5ec;--plan-card:#f5f7fa;--plan-surface:#dfe5ec;--plan-field:#fff;--plan-border:#bdc8d4;--plan-accent:#455469;--plan-ink:#1d2937;--plan-muted:#435368;--plan-on-accent:#fff;--plan-glow:#bdc8d4;color-scheme:light}
html[data-theme=midnight][data-palette=midnight]{--plan-bg:#181e27;--plan-card:#252e3a;--plan-surface:#354252;--plan-field:#181e27;--plan-border:color-mix(in srgb,#c1d0e3 35%,#252e3a);--plan-accent:#c1d0e3;--plan-ink:#f4f7fb;--plan-muted:#c6d1de;--plan-on-accent:#181e27;--plan-glow:#354252;color-scheme:dark}
html[data-theme][data-palette]{background:var(--plan-bg)!important;color:var(--plan-ink)}
html[data-theme][data-palette] body{background:radial-gradient(ellipse at 10% 0%,var(--plan-glow),transparent 65%),var(--plan-bg)!important;color:var(--plan-ink)!important;min-height:100vh;font-size:15px;line-height:1.55}
html[data-theme][data-palette] body .top{background:var(--plan-card)!important;border-bottom:1px solid var(--plan-border);max-width:none;padding:14px max(4%,calc((100% - 1280px)/2));align-items:center;flex-direction:row;box-shadow:0 3px 18px #0000000a}
html[data-theme][data-palette] body .wrap{max-width:1360px;padding-top:24px}
html[data-theme][data-palette] body :is(.hero,.health-hero,.assistant-hero,.extra-hero,.radio-hero,.news-hero,.admin-hero,.event-hero,.web-hero,.xp-hero,.donation-hero){background:linear-gradient(125deg,var(--plan-card) 30%,var(--plan-surface))!important;border:1px solid var(--plan-border);border-radius:24px;padding:clamp(22px,4vw,48px);box-shadow:0 8px 26px #0000000b}
html[data-theme][data-palette] body :is(.hero,.health-hero,.assistant-hero,.extra-hero,.radio-hero,.news-hero,.admin-hero,.event-hero,.web-hero,.xp-hero,.donation-hero) h1{font-size:clamp(28px,4vw,52px);line-height:1.16;letter-spacing:-.035em;color:var(--plan-ink)!important}
html[data-theme][data-palette] body :is(.hero,.health-hero,.assistant-hero,.extra-hero,.radio-hero,.news-hero,.admin-hero,.event-hero,.web-hero,.xp-hero,.donation-hero) h1 em{color:var(--plan-accent)!important}
html[data-theme][data-palette] body :is(.panel,.extra-panel,.health-form,.health-list,.day,.chart-card,.xp-home,.admin-panel,.home-module){border:1px solid var(--plan-border);border-radius:20px;box-shadow:0 5px 20px #0000000b}
html[data-theme][data-palette] body .home-modules{gap:14px;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
html[data-theme][data-palette] body .home-module{margin:0;max-width:none;min-height:150px;justify-content:space-between;background:var(--plan-card)!important;transition:transform .15s,box-shadow .15s}
html[data-theme][data-palette] body .home-module>span{display:grid;place-items:center;width:48px;height:48px;background:var(--plan-surface);border-radius:14px;font-size:25px}
html[data-theme][data-palette] body .home-module:hover{transform:translateY(-2px);box-shadow:0 8px 22px #0002}
html[data-theme][data-palette] body .intro{padding:24px;border:1px solid var(--plan-border);border-radius:24px;background:var(--plan-card);margin-bottom:20px}
html[data-theme][data-palette] body .button:not(.ghost):not(.whatsapp-share):not([href*="wa.me"]):not([href*="whatsapp.com"]){background:var(--plan-accent)!important;color:var(--plan-on-accent)!important;border:1px solid var(--plan-accent)!important;border-radius:12px;box-shadow:none}
html[data-theme][data-palette] body :is(.plan-mode button,button[onclick="ffypToggleTheme()"],form button[type=submit]:not(.danger):not(.ghost)){background:var(--plan-accent);color:var(--plan-on-accent);border:1px solid var(--plan-accent);border-radius:12px;padding:10px 16px;font-weight:600}
html[data-theme][data-palette] body .plan-mode button[aria-pressed=false]{background:var(--plan-surface);color:var(--plan-ink);border-color:var(--plan-border)}
html[data-theme][data-palette] body .plan-dock{background:var(--p2)!important;display:flex;bottom:calc(8px + env(safe-area-inset-bottom,0px));border:1px solid #ffffff25;max-width:850px;box-shadow:0 8px 30px #0003}
html[data-theme][data-palette] body .ffyp-footer{background:var(--plan-surface);border-top:1px solid var(--plan-border);color:var(--plan-muted);padding:24px 16px 35px!important}
html[data-theme][data-palette] body .ffyp-footer-links a{color:var(--plan-accent)!important}
html[data-theme][data-palette] body .plan-swatches .swatch[aria-pressed=true]{background:var(--plan-surface)!important;border-color:var(--plan-accent)}
html[data-theme][data-palette] body .plan-swatches .swatch[aria-pressed=true]::after{content:'✓';color:var(--plan-accent)}
html[data-theme][data-palette] body .dayhead strong{color:var(--plan-ink)!important}
html[data-theme][data-palette] body :is(.empty,.hint){color:var(--plan-muted)!important}
@media(max-width:600px){html[data-theme][data-palette] body .home-modules{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}html[data-theme][data-palette] body .home-module{min-height:138px;padding:14px!important}html[data-theme][data-palette] body .intro{padding:18px}html[data-theme][data-palette] body .wrap{padding-inline:14px}html[data-theme][data-palette] body .plan-dock a,html[data-theme][data-palette] body .plan-dock button{font-size:10px;min-height:54px}}
@media print{html[data-theme][data-palette],html[data-theme][data-palette] body{background:white!important;color:black!important}.plan-dock,.top,.ffyp-footer{display:none!important}}

/* Premium: compact navigation, readable surfaces, consistent controls. */
html[data-theme=day][data-palette]{--plan-bg:color-mix(in srgb,var(--p3) 82%,#fff);--plan-card:#fff;--plan-surface:var(--p3);--plan-glow:var(--p3);--plan-border:color-mix(in srgb,var(--p1) 19%,#fff)}
html[data-theme][data-palette] body{background:var(--plan-bg)!important;font-size:15px;line-height:1.55}
html[data-theme][data-palette] body .wrap{max-width:1180px;padding:22px 20px 30px;margin-inline:auto}
html[data-theme][data-palette] body .top{padding:10px max(20px,calc((100% - 1140px)/2));box-shadow:none}
html[data-theme][data-palette] body :is(.intro,.hero,.health-hero,.assistant-hero,.extra-hero,.radio-hero,.news-hero,.admin-hero,.event-hero,.web-hero,.xp-hero,.donation-hero){padding:clamp(18px,3vw,30px);border-radius:20px;box-shadow:none;background:var(--plan-card)!important}
html[data-theme][data-palette] body :is(.intro,.hero,.health-hero,.assistant-hero,.extra-hero,.radio-hero,.news-hero,.admin-hero,.event-hero,.web-hero,.xp-hero,.donation-hero) h1{font-size:clamp(26px,3.2vw,38px);line-height:1.2;margin:5px 0 8px}
html[data-theme][data-palette] body .intro p{margin:0;color:var(--plan-muted)!important}
html[data-theme][data-palette] body .button.ghost:not(.whatsapp-share){background:var(--plan-surface)!important;color:var(--plan-ink)!important;border:1px solid var(--plan-border)!important;box-shadow:none}
html[data-theme][data-palette] body :is(input,textarea,select):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]){background:var(--plan-field)!important;color:var(--plan-ink)!important;border-color:var(--plan-border)!important}
html[data-theme][data-palette] body input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--plan-field) inset!important;-webkit-text-fill-color:var(--plan-ink)!important;caret-color:var(--plan-ink)}
html[data-theme][data-palette] body :focus-visible{outline:2px solid var(--plan-accent);outline-offset:3px}
html[data-theme][data-palette] body .premium-welcome{display:flex;gap:12px;margin-bottom:20px;align-items:center}
.premium-settings{font-size:13px;font-weight:600;color:var(--plan-accent);text-decoration:none;padding:8px 0}
.premium-today{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--plan-border);padding-top:14px;flex-wrap:wrap}.premium-today strong{font-size:24px;color:var(--plan-accent)}.premium-today .actions{margin:0;gap:8px}.premium-section-title h2{font-size:19px;margin:0 0 10px}
html[data-theme][data-palette] body .home-modules{margin:0 0 22px;gap:12px;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
html[data-theme][data-palette] body .home-module{min-height:120px;padding:16px!important;background:var(--plan-card)!important;box-shadow:0 2px 8px #00000008;gap:7px;border-radius:16px}
html[data-theme][data-palette] body .home-module h2{font-size:15px;line-height:1.35;margin:0;flex:1}html[data-theme][data-palette] body .home-module>span{width:36px;height:36px;font-size:20px;border-radius:10px}html[data-theme][data-palette] body .home-module small{font-size:12px}
html[data-theme][data-palette] body .day-details{max-width:none;grid-template-columns:1fr;gap:10px}html[data-theme][data-palette] body .day-detail{background:var(--plan-card)!important;color:var(--plan-ink)!important;border:1px solid var(--plan-border)!important;border-inline-start:4px solid var(--plan-accent)!important;padding:16px 20px;border-radius:14px;box-shadow:none}html[data-theme][data-palette] body .day-detail h2{font-size:20px;margin:4px 0}html[data-theme][data-palette] body .day-detail p{margin:6px 0;color:var(--plan-muted)!important}html[data-theme][data-palette] body .day-detail .task-action{margin-top:8px}
html[data-theme][data-palette] body .ffyp-footer-brand{color:var(--plan-ink)!important}
@media(max-width:600px){html[data-theme][data-palette] body .wrap{padding:14px 12px 24px}html[data-theme][data-palette] body .home-modules{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}html[data-theme][data-palette] body .home-module{min-height:112px;padding:12px!important}html[data-theme][data-palette] body .premium-welcome{padding:16px}html[data-theme][data-palette] body .premium-today .button{padding:9px 12px;font-size:13px}html[data-theme][data-palette] body .weekbar{gap:8px;font-size:12px}html[data-theme][data-palette] body .plan-dock{border-radius:19px;padding:5px;bottom:calc(5px + env(safe-area-inset-bottom,0px))}html[data-theme][data-palette] body .plan-dock [aria-current] svg{padding:3px 9px}}
@media print{html[data-theme][data-palette] body{background:white!important}.premium-settings{display:none!important}}
/* Daily agenda and coordinated surfaces */
html[data-theme][data-palette] body .daily-hero{background:var(--p2);color:#fff;border-radius:22px;padding:20px;max-width:760px;margin:0 auto 22px;box-shadow:0 8px 24px #0002}
html[data-theme][data-palette] body .daily-hero .weekbar{background:transparent!important;border:0!important;box-shadow:none;margin:0;padding:0;display:flex;align-items:center;justify-content:space-between;gap:8px}
html[data-theme][data-palette] body .daily-hero a{color:#fff!important;text-decoration:none;background:#ffffff16;border-radius:12px;padding:10px;text-align:center;min-height:44px;display:grid;place-items:center}
html[data-theme][data-palette] body .daily-nav>a{width:48px;font-size:23px}
.daily-date{text-align:center}.daily-date span{color:#fff!important;font-size:15px}.daily-date h1{font-size:clamp(54px,9vw,80px)!important;line-height:1!important;margin:5px 0!important;color:#fff!important;letter-spacing:-.05em}
html[data-theme][data-palette] body .daily-strip{margin:20px 0 12px!important}.daily-strip a{flex:1;min-width:0;padding:7px 2px!important}.daily-strip span{font-size:11px}.daily-strip strong{color:#fff!important;font-size:18px}.daily-strip a[aria-current]{background:#fff!important;color:var(--p2)!important}.daily-strip a[aria-current] strong{color:var(--p2)!important}
.daily-tools a{flex:1;font-size:13px}.daily-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 12px}.daily-heading h2,.daily-heading p{margin:0}.daily-heading p{color:var(--plan-muted)}
html[data-theme][data-palette] body .day-detail[data-category=salute]{border-inline-start-color:#16856a!important}html[data-theme][data-palette] body .day-detail[data-category=sport]{border-inline-start-color:#c47b2c!important}
html[data-theme][data-palette] body :is(.day-detail,.panel,.extra-panel,.intro,.hero) :is(h1,h2,h3,h4,label){color:var(--plan-ink)!important}
html[data-theme][data-palette] body :is(.button.ghost,.other-menu summary,.pill,.plan-links a,.plan-links button){color:var(--plan-ink)!important;background:var(--plan-surface)!important;border-color:var(--plan-border)!important}
html[data-theme][data-palette] body :is(.ffyp-modal,.ffyp-modal-hero){background:var(--plan-card)!important;color:var(--plan-ink)!important}html[data-theme][data-palette] body .ffyp-modal :is(h2,h3,p){color:var(--plan-ink)!important}html[data-theme][data-palette] body .ffyp-modal :is(.eyebrow){color:var(--plan-accent)!important}.options-copyright{text-align:center;color:var(--plan-muted);font-size:12px;margin:18px 0 0}
@media(max-width:600px){html[data-theme][data-palette] body .daily-hero{padding:14px}.daily-heading h2{font-size:19px}.daily-strip a{font-size:12px}.daily-heading .button{padding:9px 12px}}

/* Planning AI health dashboard */
html[data-theme] body .health-ai-hero h1{font-size:clamp(25px,3vw,38px)!important;margin:4px 0!important}
.health-tools{margin-top:14px}.health-tools summary,.health-ai-trends summary{cursor:pointer;font-weight:600;color:var(--plan-accent);padding:10px 0}.health-tools .health-hero-actions{margin-top:8px}
.health-ai-nav{display:grid;gap:8px;margin:12px 0 18px}.health-ai-tabs{display:flex!important;flex-wrap:wrap;gap:6px!important;margin:0!important;padding:10px!important;background:var(--plan-card);border:1px solid var(--plan-border);border-radius:16px;overflow:visible!important}.health-group-label{flex-basis:100%;font-size:12px;font-weight:600;color:var(--plan-muted);padding:2px 4px}.health-ai-tabs a{font-size:13px!important;padding:9px 12px!important;border-radius:10px!important;white-space:normal!important}
.health-ai-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}.health-ai-metric{display:flex;flex-direction:column;gap:5px;padding:16px;background:var(--plan-card);border:1px solid var(--plan-border);border-radius:18px;text-decoration:none!important;color:var(--plan-ink)!important;min-width:0}.health-ai-metric small,.health-ai-metric span{color:var(--plan-muted)!important;font-size:12px}.health-ai-metric strong{font-size:clamp(24px,3vw,36px);line-height:1.2;color:var(--plan-ink)!important;font-variant-numeric:tabular-nums}.health-ai-metric progress{width:100%;height:7px;accent-color:var(--plan-accent)}.health-ai-trends{background:var(--plan-card);border:1px solid var(--plan-border);border-radius:18px;padding:16px;margin:16px 0}.health-ai-trends .charts-section{margin:8px 0}.health-dashboard{gap:12px!important}.health-dashboard .health-list{padding:18px!important}.health-dashboard h2{font-size:19px!important}.health-ai-metric:focus-visible,.health-ai-tabs a:focus-visible{outline:2px solid var(--plan-accent);outline-offset:3px}#health-entry{scroll-margin-top:100px}
@media(max-width:700px){.health-ai-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.health-ai-metric{padding:12px}.health-ai-tabs a{padding:8px!important}.health-ai-hero .health-hero-actions{gap:8px}.health-ai-hero .button{font-size:13px!important}.health-dashboard{grid-template-columns:1fr!important}}
/* Options: identical desktop and mobile layout */
html[data-theme] body #plan-sheet .plan-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
html[data-theme] body #plan-sheet .plan-links :is(a,button){display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-direction:row;text-align:left;width:100%;min-height:48px;padding:12px;border:1px solid var(--plan-border);border-radius:12px;background:var(--plan-surface)!important;color:var(--plan-ink)!important;font:inherit;text-decoration:none;box-sizing:border-box;overflow-wrap:anywhere}
html[data-theme] body #plan-sheet .plan-links b{font-size:20px;color:var(--plan-accent);flex-shrink:0}
#plan-sheet .plan-links form{margin:0;min-width:0} #plan-sheet .plan-links [hidden]{display:none!important}
html[data-theme] body .health-item{background:var(--plan-card)!important;border:1px solid var(--plan-border);border-radius:16px;padding:16px;box-shadow:none}
html[data-theme] body .health-item .reading-grid>div{background:var(--plan-surface)!important;border-radius:12px;padding:12px}
html[data-theme] body .health-item .item-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid var(--plan-border);padding-top:12px;margin-top:12px}
html[data-theme] body .health-item .item-actions :is(a,button){display:inline-flex;align-items:center;min-height:42px;padding:8px 14px;border:1px solid var(--plan-border);border-radius:10px;background:var(--plan-surface)!important;color:var(--plan-accent)!important;font-weight:600;text-decoration:none}
html[data-theme] body .health-item .item-actions button.text-danger{color:#ffb4be!important;background:#48212b!important;border-color:#98505e}
html[data-theme=day] body .health-item .item-actions button.text-danger{color:#a51d35!important;background:#fff0f2!important;border-color:#e3a9b3}
@media(max-width:480px){html[data-theme] body #plan-sheet .plan-links{grid-template-columns:1fr}html[data-theme] body #plan-sheet{padding:16px}}

/* Compact health history and daily games */
html[data-theme] body .health-item.health-premium-reading{padding:16px!important;border-radius:20px;box-shadow:0 3px 14px #00000009;margin-bottom:12px;min-width:0}
html[data-theme] body .health-premium-reading .plan-reading{display:grid;gap:12px;padding:0!important;background:transparent!important;border:0!important}
html[data-theme] body .health-premium-reading .reading-date{display:flex;align-items:center;gap:12px;margin:0;color:var(--plan-ink)!important;font-size:14px}
.health-premium-reading .reading-date>span{display:flex;flex-direction:column;gap:2px}.health-premium-reading .reading-calendar{align-items:center;justify-content:center;min-width:52px;min-height:54px;border-radius:12px;background:var(--plan-surface);color:var(--plan-accent)}.health-premium-reading .reading-calendar b{font-size:24px;line-height:1}.health-premium-reading .reading-calendar small{font-size:10px;font-weight:700}
html[data-theme] body .health-premium-reading .reading-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:12px;margin:0}
html[data-theme] body .health-premium-reading .reading-grid>div{background:transparent!important;padding:4px 8px!important;min-width:0}.health-premium-reading .reading-grid>div+div{border-left:1px solid var(--plan-border)}.health-premium-reading .reading-grid strong{font-size:clamp(25px,4vw,40px)!important;line-height:1.2;font-variant-numeric:tabular-nums}.health-premium-reading .reading-grid small{font-size:12px!important}
html[data-theme] body .health-premium-reading .bp-hint{margin:0;padding:10px 12px;border-radius:10px;font-size:12px;line-height:1.5}.health-premium-reading .bp-hint small{display:block;font-size:11px!important}
html[data-theme] body .health-premium-reading .item-actions{margin-top:10px;padding-top:10px;gap:8px}.health-premium-reading .item-actions form{margin:0!important}.health-premium-reading .item-actions :is(a,button){min-width:90px;justify-content:center;font-size:12px!important;padding:8px 12px!important}
.daily-game-progress{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 20px;color:var(--plan-muted);font-size:13px}.daily-game-progress progress{width:min(220px,100%);height:12px;accent-color:#21845c}.daily-game-state{display:inline-flex;align-self:flex-start;border-radius:8px;padding:5px 9px;margin-top:12px;background:var(--plan-surface);color:var(--plan-ink);font-size:12px;font-weight:600}.played-today .daily-game-state{background:#dff3e8;color:#14583c}.planning-play-card.played-today{border-top-color:#269568!important}
@media(max-width:600px){html[data-theme] body .health-item.health-premium-reading{padding:12px!important}.health-premium-reading .reading-grid{gap:4px!important}.health-premium-reading .reading-grid>div{padding:4px!important}}
/* Public experience: isolated from authenticated dashboard */
.plan-public .public-menu,.plan-public .public-install-top,.plan-public .public-dock{display:none}
.plan-public .public-hero,.plan-public .public-mail{background:var(--plan-card,#fff);color:var(--plan-ink,#152b45);border:1px solid var(--plan-border,#ccd9e7);border-radius:24px;padding:clamp(22px,5vw,56px);margin:0 0 24px;box-shadow:0 8px 30px #00000008}
.plan-public .public-hero{display:flex;align-items:center;justify-content:space-between;gap:24px}.public-hero-copy{max-width:680px}.public-hero h1{font-size:clamp(32px,5vw,64px);line-height:1.13;margin:14px 0;color:var(--plan-ink)}.public-hero h1 em{color:var(--plan-accent);font-style:normal}.public-hero p,.public-hero small,.public-feature-grid p,.public-mail p{color:var(--plan-muted);line-height:1.6}.public-hero-logo{object-fit:contain;max-width:25%;height:auto}.public-primary{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:58px;background:var(--p2,#12345a);color:#fff!important;border-radius:14px;padding:12px 20px;text-decoration:none!important;font-weight:700;margin:22px 0 12px}.public-primary small{color:#fff!important;font-size:12px;font-weight:400}.public-auth{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.public-auth a{border:1px solid var(--plan-border);background:var(--plan-surface);color:var(--plan-ink)!important;text-align:center;padding:12px 8px;border-radius:12px;text-decoration:none;font-weight:600}.public-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 24px}.public-feature-grid article{padding:18px;background:var(--plan-card);border:1px solid var(--plan-border);border-radius:18px;min-width:0}.public-feature-grid article span{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--plan-surface);color:var(--plan-accent);font-size:24px}.public-feature-grid h3{margin:12px 0 4px;font-size:17px;color:var(--plan-ink)}.public-feature-grid p{margin:0;font-size:13px}.public-mail h2{margin-top:0}.plan-public .ffyp-footer{color:var(--plan-muted)!important}.plan-public .ffyp-footer :is(a,button){color:var(--plan-accent)!important}
@media(max-width:850px){html[data-theme][data-palette] body.plan-public .top,body.plan-public .top{display:flex!important;position:relative;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px!important;flex-wrap:nowrap!important}.plan-public .top nav{display:none!important}.plan-public .top .brand{gap:6px;flex-shrink:1;min-width:0}.plan-public .top .brand .plan-brand-logo{width:34px;height:34px;flex-basis:34px}.plan-public .top .brand .plan-brand-title{font-size:clamp(16px,4.7vw,23px);white-space:nowrap}.plan-public .top .brand small{font-size:10px}.plan-public .public-install-top{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 10px;border-radius:11px;background:var(--p2,#12345a);color:#fff!important;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap}.plan-public .public-menu{display:block;position:relative;flex-shrink:0}.public-menu summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:40px;height:44px;font-size:22px;color:var(--plan-ink)}.public-menu summary::-webkit-details-marker{display:none}.public-menu>div{position:absolute;right:0;top:50px;z-index:1000;width:min(250px,85vw);padding:10px;background:var(--plan-card);border:1px solid var(--plan-border);border-radius:14px;box-shadow:0 10px 30px #0004}.public-menu>div :is(a,button){display:block;width:100%;padding:12px;text-align:left;background:transparent;color:var(--plan-ink)!important;border:0;text-decoration:none;font:inherit;box-sizing:border-box}.plan-public .public-dock{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:900;background:var(--p2,#12345a);padding:7px 8px calc(7px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;box-shadow:0 -4px 24px #0003}.public-dock a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;color:#fff!important;text-decoration:none;font-size:11px;border-radius:10px}.public-dock a[aria-current],.public-dock a[href="installa-app.php"]{background:#ffffff24}.public-dock svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.plan-public{padding-bottom:calc(90px + env(safe-area-inset-bottom))!important}.public-hero-logo{display:none}.public-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-public .public-hero{padding:24px 18px}.plan-public .wrap{padding-top:16px}.plan-public .ffyp-footer{display:block!important;margin-bottom:20px}}

/* Zero stress: theme-aware app tour, no independent color palette */
html body .ffyp-tour{max-width:1100px;margin:auto;padding:8px 0 24px;color:var(--plan-ink);display:grid;gap:20px}
html body .ffyp-tour *{box-sizing:border-box}
html body .ffyp-tour :is(.tour-hero,.tour-final,.tour-card,.tour-faq details,.tour-preview>div){background:var(--plan-card)!important;color:var(--plan-ink)!important;border:1px solid var(--plan-border)!important;border-radius:20px;box-shadow:none}
html body .ffyp-tour .tour-hero{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;padding:clamp(20px,4vw,40px);align-items:center;background:linear-gradient(145deg,var(--plan-card),var(--plan-surface))!important}
html body .ffyp-tour :is(h1,h2,h3,summary){color:var(--plan-ink)!important;margin:0 0 10px;line-height:1.2}
html body .ffyp-tour h1{font-size:clamp(30px,5vw,52px);letter-spacing:-.035em;margin:12px 0}
html body .ffyp-tour h1 em,html body .ffyp-tour :is(.tour-overline,.tour-preview b,.tour-card strong){color:var(--plan-accent)!important;font-style:normal}
html body .ffyp-tour :is(p,small){color:var(--plan-muted)!important;line-height:1.55;margin:0}
.ffyp-tour .tour-overline{font-size:12px;font-weight:700;letter-spacing:.08em;display:block;margin-bottom:8px}
.ffyp-tour .tour-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;align-items:stretch}
html body .ffyp-tour .tour-install{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-basis:100%;padding:14px;background:var(--p2,#12345a)!important;color:white!important;border-radius:14px;font-weight:700;text-decoration:none}
html body .ffyp-tour .tour-install small{color:white!important;font-size:12px}
html body .ffyp-tour :is(.tour-ghost,.tour-links a){background:var(--plan-surface)!important;color:var(--plan-ink)!important;border:1px solid var(--plan-border);border-radius:12px;padding:10px 14px;text-decoration:none;font-weight:600}
.ffyp-tour .tour-preview{display:grid;gap:8px}.ffyp-tour .tour-preview>div{padding:14px}.ffyp-tour .tour-preview b{display:block}
.ffyp-tour .tour-links{display:flex;gap:8px;overflow-x:auto;padding:4px 0;scrollbar-width:thin}.ffyp-tour .tour-links a{white-space:nowrap;flex-shrink:0}
.ffyp-tour .tour-section{margin:0;scroll-margin-top:90px}.ffyp-tour .tour-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.ffyp-tour .tour-card{padding:16px;min-width:0}.ffyp-tour .tour-card h3{font-size:16px;margin:10px 0 6px}.ffyp-tour .tour-card p{font-size:13px}.ffyp-tour .tour-icon{display:inline-grid;place-items:center;width:42px;height:42px;background:var(--plan-surface);border-radius:12px;font-size:22px}.ffyp-tour .tour-note{background:var(--plan-surface)!important;border:1px solid var(--plan-border);border-radius:12px;padding:14px;margin-top:12px!important}.ffyp-tour .tour-faq{display:grid;gap:8px}.ffyp-tour .tour-faq details{padding:14px}.ffyp-tour .tour-faq summary{cursor:pointer;margin:0}.ffyp-tour .tour-faq details[open] p{margin-top:10px}.ffyp-tour .tour-final{padding:24px;text-align:center}.ffyp-tour .tour-final .tour-actions{justify-content:center}
@media(max-width:850px){html body.plan-public header.top>nav{display:none!important}html body .ffyp-tour .tour-hero{grid-template-columns:1fr}.ffyp-tour .tour-preview{grid-template-columns:repeat(3,minmax(0,1fr))}.ffyp-tour .tour-preview>div{padding:10px;font-size:12px}.ffyp-tour .tour-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ffyp-tour .tour-card{padding:12px}.ffyp-to
@media screen and (min-width:851px){body.plan-public .public-dock{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:8px;left:50%;transform:translateX(-50%);width:min(850px,calc(100% - 24px));z-index:900;background:var(--p2,#12345a);padding:7px;border-radius:19px;box-shadow:0 6px 24px #0003}body.plan-public{padding-bottom:90px}body.plan-app .plan-dock{display:flex!important}}
