/* Shared presentation for every Companion App page. */
html:root body .compact-header .app-header-slogan{width:100%;flex-basis:100%;text-align:center!important;margin:18px auto 12px!important;line-height:1.25;color:#852548}
html:root body .app-header-slogan span{display:block}
html:root body .app-header-slogan span:first-child{font-size:clamp(1.5rem,4.4vw,2.4rem)!important;font-weight:800!important;letter-spacing:-.025em}
html:root body .app-header-slogan span:last-child{font-size:clamp(.95rem,2vw,1.12rem)!important;font-weight:500;margin-top:7px;color:#493b45}
html:root body .compact-header .daily-header{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:16px!important;padding:20px 0!important}
html:root body .daily-header .hero-welcome{width:min(100%,800px);text-align:center!important;margin:0 auto}
html:root body .daily-header #date{font-size:clamp(1.15rem,3vw,1.65rem)!important;font-weight:750!important;line-height:1.35;letter-spacing:.015em!important;color:#4f7561;margin:0 0 16px}
html:root body .daily-header #motivation{font-size:clamp(1.35rem,3.5vw,2rem)!important;font-weight:650!important;line-height:1.45!important;text-align:center!important;margin:8px auto!important;max-width:760px}
html:root body .little-laugh-card{width:min(100%,640px);box-sizing:border-box;justify-content:center;text-align:center;padding:12px 18px!important;gap:12px!important;border-width:1px!important;box-shadow:none!important}
html:root body .little-laugh-card .laugh-badge{font-size:1.9rem!important}
html:root body .little-laugh-card h2{font-size:1rem!important;margin:0 0 5px!important}
html:root body .little-laugh-card #dailyFunny{font-size:.92rem!important;line-height:1.5!important;font-weight:500!important}
html:root body .little-laugh-card .kicker{font-size:.62rem!important}
html:root body #walkthroughWelcome:not([hidden]){display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:14px!important}
html:root body .walkthrough-welcome-actions{width:100%;display:flex!important;flex-wrap:wrap;align-items:center!important;justify-content:center!important;gap:10px!important}
html:root body .walkthrough-welcome-actions a,html:root body .walkthrough-welcome-actions button{min-height:44px;text-align:center;justify-content:center}
html:root body .companion-more summary{display:flex;justify-content:center;align-items:center;text-align:center}
html:root body .bottom-tools{width:100%;display:flex;justify-content:center;margin:26px auto 16px}
html:root body .bottom-tools .app-menu{width:min(100%,720px);margin:0 auto;text-align:center}
html:root body .bottom-tools .app-menu > summary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;width:fit-content;min-width:160px;min-height:46px;margin:0 auto;padding:12px 24px;border:1px solid #ce8aa4;border-radius:12px;background:#fff0f6;color:#852548;font-size:1rem;font-weight:750;cursor:pointer;list-style:none}
html:root body .bottom-tools .app-menu nav{position:static!important;width:100%!important;box-sizing:border-box;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:14px auto 0!important;padding:14px!important}
html:root body .bottom-tools .app-menu:not([open]) nav{display:none!important}
html:root body .bottom-tools .app-menu nav > :is(a,button),html:root body .tools :is(button,a.primary),html:root body .journal-actions button{display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box;min-height:46px!important;padding:12px 16px!important;border:1px solid #ce8aa4!important;border-radius:12px!important;background:#fff0f6!important;color:#852548!important;font:700 .95rem/1.35 system-ui,sans-serif!important;letter-spacing:normal!important;text-transform:none!important;text-align:center!important;text-decoration:none!important;box-shadow:none!important;grid-column:auto!important;cursor:pointer}
html:root body .bottom-tools .app-menu nav > :is(a,button):hover,html:root body .tools button:hover,html:root body .journal-actions button:hover{background:#dcebdd!important;color:#31583b!important;border-color:#64816c!important}
html:root body .bottom-tools :is(a,button,summary):focus-visible{outline:3px solid #bc9640;outline-offset:3px}
html:root body .tools button:disabled{opacity:.55;cursor:wait}
@media(max-width:520px){html:root body .bottom-tools .app-menu nav{grid-template-columns:minmax(0,1fr)!important}html:root body .little-laugh-card{padding:12px!important}}
html:root body #accountTourDialog{position:fixed;inset:0;margin:auto!important;width:min(520px,calc(100% - 28px));max-height:calc(100dvh - 36px);box-sizing:border-box;padding:22px;text-align:left;z-index:2000;animation:tour-enter .3s ease both}
html:root body #accountTourDialog:not([open]){display:none!important}
html:root body #accountTourDialog[open]{display:block!important}
html:root body #accountTourDialog::backdrop{background:#31132277}
html:root body #accountTourDialog .walkthrough-demo{min-height:145px}
html:root body #accountTourDialog .walkthrough-actions{justify-content:center;flex-wrap:wrap;position:static;padding:12px 0 0;gap:8px}
html:root body #accountTourDialog .walkthrough-actions button{min-height:44px}
@media(prefers-reduced-motion:reduce){html:root body #accountTourDialog,html:root body #accountTourDialog *{animation:none!important;transition:none!important}.demo-typing{clip-path:none!important}.demo-reveal{opacity:1!important;transform:none!important}}
/* Compact app rhythm, with controls in the normal page flow. */
html:root body .compact-header .app-header-slogan{margin:10px auto 6px!important;line-height:1.25}
html:root body .app-header-slogan span:first-child{font-size:clamp(1.05rem,2.6vw,1.4rem)!important;font-weight:750!important}
html:root body .app-header-slogan span:last-child{font-size:.8rem!important;margin-top:3px}
html:root body .compact-header .daily-header{gap:10px!important;padding:10px 0!important}
html:root body .daily-header #date{font-size:clamp(1rem,2.6vw,1.15rem)!important;margin:0 0 7px!important}
html:root body .daily-header #motivation{font-size:clamp(1.03rem,2.7vw,1.35rem)!important;line-height:1.4!important;margin:4px auto!important;max-width:680px}
html:root body .daily-header .kicker{margin:0 0 3px!important}
html:root body .little-laugh-card{padding:9px 14px!important}
html:root body .little-laugh-card .kicker{display:none}
html:root body #walkthroughWelcome:not([hidden]){padding:12px 16px!important;margin:10px auto!important;gap:8px!important}
html:root body #walkthroughWelcome h2{font-size:1.05rem!important;margin:3px 0!important}
html:root body #walkthroughWelcome p{font-size:.88rem!important;line-height:1.4!important;margin:3px 0!important}
html:root body .walkthrough-welcome-actions{gap:6px!important}
html:root body .walkthrough-welcome-actions :is(a,button){min-height:44px;padding:9px 12px!important;font-size:.86rem!important}
html:root body .app-navigation-bar.secondary-navigation{position:static!important;top:auto!important;z-index:auto!important;max-height:none!important;overflow:visible!important;margin-bottom:12px}
html:root body main .card{margin-top:10px;margin-bottom:10px;padding:16px}
html:root body main .section-head{margin-bottom:12px;gap:12px}
html:root body .stage{padding:14px!important;margin:10px 0!important}
html:root body .stage .fine{font-size:.83rem;line-height:1.4;margin:6px 0}
html:root body .stage-heading h2{font-size:1.25rem!important;margin:0 0 5px!important}
html:root body .family-support-options{margin-top:10px;border-top:1px solid #ead4df;padding-top:10px}
html:root body .family-support-options summary{min-height:44px;display:flex;align-items:center;font-weight:700;color:#852548;cursor:pointer}
html:root body .family-planner-upgrade{margin:12px 0!important;padding:14px!important}
html:root body .family-planner-upgrade h2{font-size:1.15rem!important;margin:4px 0!important}
html:root body .low-energy-explainer{padding:10px 12px!important;margin:8px 0!important}
html:root body .low-energy-explainer summary{font-size:.88rem;font-weight:700;cursor:pointer;min-height:28px}
html:root body .low-energy-explainer p{font-size:.86rem;line-height:1.4;margin:7px 0 0}
html:root body .today-support-grid{gap:12px!important}
html:root body .today-dinner-card .planner-section-image,html:root body .today-activity-card .activity-image{max-height:150px!important;object-fit:cover}
html:root body .bottom-tools{margin:16px auto 12px}
@media(min-width:800px){html:root body .compact-header .daily-header{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)!important;align-items:center!important;width:100%}html:root body #walkthroughWelcome:not([hidden]){flex-direction:row!important;text-align:left!important;justify-content:space-between!important}html:root body .walkthrough-welcome-actions{width:auto;flex:0 1 auto}}
@media(max-width:700px){html:root body .app-navigation-bar .header-planner-nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;margin:4px 0!important;padding:0!important}html:root body .header-planner-nav .nav-description,html:root body .header-planner-nav .header-nav-icon{display:none!important}html:root body .header-planner-nav > :is(a,details){min-width:0;width:100%;min-height:48px;margin:0!important}html:root body .header-planner-nav a,html:root body .header-planner-nav summary{padding:8px 5px!important;font-size:.78rem!important;min-height:48px!important}html:root body .header-planner-nav .header-nav-label{font-size:.78rem!important;min-height:0!important;line-height:1.25}html:root body .today-date{display:none}html:root body main{padding-top:6px!important}html:root body .walkthrough-welcome-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}}
/* A clean, balanced navigation and one dedicated Favorites action. */
html:root body .app-navigation-bar nav.header-planner-nav{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important;padding:6px 0!important;margin:0!important}
html:root body .app-navigation-bar nav.header-planner-nav > :is(a,details){width:100%!important;min-width:0!important;min-height:48px!important;margin:0!important;box-sizing:border-box;border:1px solid #e0bccb!important;border-radius:12px!important;background:#fff3f8!important;box-shadow:none!important}
html:root body .app-navigation-bar nav.header-planner-nav > a,html:root body .app-navigation-bar nav.header-planner-nav summary{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;padding:10px 8px!important;text-align:center!important;color:#852548!important;font-size:.88rem!important;font-weight:700!important;min-height:48px!important;line-height:1.3!important;box-sizing:border-box;text-decoration:none!important}
html:root body .app-navigation-bar nav.header-planner-nav .nav-description{display:none!important}
html:root body .app-navigation-bar nav.header-planner-nav .header-nav-label{font-size:.88rem!important;line-height:1.3!important;min-height:0!important;text-align:center!important}
html:root body .app-navigation-bar nav.header-planner-nav .header-nav-icon{width:18px!important;height:18px!important;flex:0 0 18px}
html:root body .app-navigation-bar nav.header-planner-nav > a:hover{background:#e6f0e7!important;border-color:#8faa94!important;color:#31583b!important}
html:root body .app-navigation-bar nav.header-planner-nav > a[aria-current="page"],html:root body .app-navigation-bar nav.header-planner-nav > a.active{background:#dcebdd!important;color:#31583b!important;border-color:#bc9640!important}
html:root body .app-favorites-row{width:min(1120px,calc(100% - 32px));margin:4px auto 12px;display:flex;justify-content:center;align-items:center}
html:root body a.app-favorites-standalone{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:160px;padding:10px 20px;border:1px solid #c696ab;border-radius:12px;background:#fff;color:#852548;text-align:center;text-decoration:none;font-weight:750;font-size:.9rem;box-sizing:border-box}
html:root body a.app-favorites-standalone:hover,html:root body a.app-favorites-standalone.active{background:#dcebdd;color:#31583b;border-color:#bc9640}
html:root body .app-navigation-bar nav.header-planner-nav[hidden]{display:none!important}
@media(max-width:850px){html:root body .app-navigation-bar nav.header-planner-nav{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:480px){html:root body .app-navigation-bar nav.header-planner-nav .header-nav-icon{display:none!important}html:root body .app-navigation-bar nav.header-planner-nav .header-nav-label,html:root body .app-navigation-bar nav.header-planner-nav summary{font-size:.8rem!important}}
