/* Lavender & a moment — local-first, RTL, 8px spacing system. */
:root{--ink:#35264b;--paper:#35264b;--panel:#fff;--panel-2:#f5f0fa;--muted:#6f6280;--line:#e4dceb;--amber:#7555a3;--teal:#427365;--rose:#965365;--blue:#7555a3;--danger:#a34056;--radius:24px;--shadow:0 6px 24px #49346909;--lavender:#eee6f8;--mint:#e3efe8;--sky:#e6f0f8;--primary:#7555a3}
html,body,body .app-shell,body[data-screen="food"] .app-shell{background:#faf8fc;color:var(--ink);font-family:Assistant,system-ui,sans-serif;font-size:17px;line-height:1.6}
body .app-shell{width:min(100%,720px);padding:0 24px calc(100px + env(safe-area-inset-bottom));overflow:visible}
body .topbar{height:76px;background:#faf8fcf2;border-color:var(--line);backdrop-filter:blur(16px)}
body .brand,body .brand small,body .bottom-nav button{color:var(--ink)}body .brand small{font-size:.75rem;color:var(--muted)}
body .brand-mascot{width:32px;height:48px}body .icon-button{background:#fff;border:1px solid var(--line);color:var(--ink);width:48px;height:48px}
body .help-trigger{color:var(--muted);background:transparent;border:0;font-size:.78rem;padding:10px;min-height:48px}body .help-trigger span{color:var(--primary)}
body .view{padding:24px 0 12px;animation:lavender-arrive .28s ease-out}body .intro h1,body h2{font-size:clamp(1.7rem,6vw,2.3rem);letter-spacing:0;line-height:1.35;margin-bottom:16px;color:var(--ink)}
body h3,body h4,body strong{color:var(--ink)}body .eyebrow{color:var(--primary);font-size:.85rem;letter-spacing:0}body .lead{color:var(--muted);font-size:1rem;line-height:1.7;margin:0 0 24px}
body button,body input,body select{min-height:48px}body button{cursor:pointer;transition:background .18s,box-shadow .18s,transform .18s}body button:active{transform:scale(.98)}
body button:focus-visible,body a:focus-visible,body input:focus-visible,body textarea:focus-visible,body summary:focus-visible{outline:3px solid #7555a3;outline-offset:4px}
body .primary,body .analyzer-console .primary,body .analyzer-console [data-quantity-done],body .analyzer-console .review-finish button{background:var(--primary)!important;color:#fff!important;border:1px solid var(--primary)!important;box-shadow:none;border-radius:16px;min-height:52px}
body .primary *,body .review-finish button *{color:#fff!important}
body .secondary,body .back,body .text-button,body .quiet-shortcut,body .quiet-exit{background:#fff;color:var(--primary);border-color:var(--line);border-radius:16px;min-height:48px}body .back,body .text-button{background:transparent;border:0}body .back{margin-bottom:12px;padding-inline:0}
body :is(.settings-card,.saved-entry,.myth-item,.tool-path,.guided-start,.reflection-step,.affirmation-card,.custom-affirmation,.barcode-box,.contribution-form,.source-strip,.creator-note,.privacy-note,.meal-save,.help-dialog,.beta-gate-card){background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}
body :is(.settings-card p,.saved-entry p,.myth-answer,.tool-step p,.creator-note p,.privacy-note p,.source-strip p,.help-items p,.help-intro,.emotional-privacy,.affirmation-copy,.tool-summary,.prototype-note){color:var(--muted);line-height:1.7}
body :is(input,select,textarea),body .stack-form textarea,body .search-box,body .analyzer-console :is(input,select,textarea){background:#fff;color:var(--ink);border:1px solid #d8cce5;border-radius:16px;font-size:1rem;box-shadow:none}
body :is(input,textarea)::placeholder{color:#82748d!important}body .stack-form label,body .meal-save label{color:var(--ink)}
body .home-intro{align-items:center;margin:0 0 20px}body .home-intro h1{font-size:1.7rem;margin:0}body .quiet-shortcut{font-size:.8rem;padding:8px 12px}
body .contact-strip{order:10;margin:32px 0 16px;background:none;border:0;color:var(--primary);box-shadow:none;font-size:.85rem}body .contact-strip span{color:var(--muted)}
body #standardHome{display:flex;flex-direction:column}body .home-intro{order:0}body .home-hub{order:1}body .home-affirmation{order:2}body .privacy-note{order:3}body .creator-note{order:4}
html[data-home-layout] body .home-hub{width:100%;height:auto;aspect-ratio:auto;margin:0 0 24px;display:grid;grid-template-columns:1fr 1fr;gap:12px;position:static}
body .fudzi-welcome{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:28px;padding:8px 16px 24px;background:transparent;min-height:198px}
html[data-home-layout] body .hub-center{position:relative;inset:auto;translate:none;transform:none;animation:none;width:116px;height:174px;aspect-ratio:auto;padding:0;border:0;border-radius:24px;background:none;box-shadow:none;display:block;flex:none;touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overflow:visible}
body .fudzi-greeting{max-width:210px}body .fudzi-greeting>strong{display:block;font-size:1.3rem;font-weight:600}body .fudzi-greeting small{display:block;font-size:.8rem;color:var(--muted);margin-top:6px;line-height:1.6}body .breath-shortcut{margin-top:12px;padding:8px 14px;border:1px solid #daccea;border-radius:99px;color:var(--primary);background:#eee6f8;font-size:.85rem}
html[data-home-layout] body .orbit-item{position:static;inset:auto;transform:none;translate:none;animation:none;min-height:94px;width:100%;border:1px solid var(--line);border-radius:24px;background:#fff;color:var(--ink);padding:20px;box-shadow:var(--shadow);display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:start}
html[data-home-layout] body .orbit-item.primary-action,body .orbit-reflect{grid-column:1/-1}body .orbit-food{background:#eee6f8!important;border-color:#e1d4ef!important}body .orbit-tools{background:#e9f1ec!important;border-color:#dce9e0!important}body .orbit-item strong{font-size:1.08rem;margin:0;display:block}body .orbit-item small{font-size:.83rem;line-height:1.5;margin-top:4px;color:var(--muted);display:block;opacity:1}body .orbit-item div{flex:1}body .orbit-item b{color:var(--primary);font-weight:400}body .orbit-item .card-glyph{width:40px;height:40px;display:grid;place-items:center;border:1px solid #35264b16;border-radius:14px;color:var(--primary);font-size:1.4rem}
html[data-home-layout="cards"] body .orbit-item{min-height:78px;padding:16px}body .home-affirmation{background:#f3eff8;border:0;border-radius:20px;box-shadow:none;margin:0 0 18px;padding:18px}body .home-affirmation-copy,body .home-affirmation-copy p{color:var(--ink);font-size:1rem}body .home-affirmation-copy>span,body .home-affirmation-another{color:var(--primary);font-size:.8rem}body .privacy-note{padding:16px;background:transparent;box-shadow:none;border:0;margin-top:0;font-size:.8rem}body .creator-note{padding:24px;margin-top:12px}body .creator-note h2{font-size:1.2rem}body .creator-note a{color:var(--primary)}
body .emotional-welcome{text-align:center}body .fudzi-sofa{display:block;width:min(100%,340px);height:220px;object-fit:contain;margin:0 auto 16px;animation:sofa-settle 5s ease-in-out infinite}body .emotional-welcome .lead{font-size:.95rem;margin-bottom:24px}body .emotional-welcome h2{margin-bottom:8px}body .emotional-welcome .eyebrow{font-size:.75rem}
body .feeling-choices{display:grid;gap:12px;margin:0 0 16px}body .feeling-choices button{min-height:64px;border-radius:20px;padding:16px 22px;display:flex;justify-content:space-between;align-items:center;text-align:start;background:#fff;border:1px solid var(--line);color:var(--ink);font-weight:600;font-size:1.06rem}body .feeling-choices button:first-child{background:var(--lavender)}body .feeling-choices button:nth-child(2){background:#edf3ef}body .feeling-choices button:nth-child(3){background:#f2eff8}body .feeling-choices button span{color:var(--primary)}body .all-tools-toggle{width:100%;margin-bottom:16px;min-height:52px}body .guided-start{padding:16px;margin:0 0 24px;font-size:.95rem;box-shadow:none}body .guided-start strong,body .tool-path strong{color:var(--ink)}body .guided-start small,body .tool-path small{color:var(--muted)}body .tool-path>span,body .guided-start>span{background:var(--lavender);color:var(--primary)}body .direct-tools h3{font-size:1.05rem}body .tool-card{border-color:var(--line)}body .tool-step>span{border-color:var(--primary);color:var(--primary)}body .guided-flow,body .guided-result,body .guided-choice,body .wizard-progress,body .act-guide{background:#f3eff8;color:var(--ink);border-color:var(--line)}
body .analyzer-console{--review-ink:#35264b;--review-muted:#6f6280;--review-blue:#7555a3;background:none;border:0;box-shadow:none;padding:0;margin:0;border-radius:0;isolation:auto}
body .analyzer-console :is(h2,h3,h4,strong,label,p,small,summary,span){color:var(--ink)}body .analyzer-console :is(.eyebrow,.guided-kicker,.guided-source,.food-origin,.food-stage-label,.meal-overview-hint,.entry-precision,.food-entry-privacy,.search-note,.guided-estimate,.calc-help){color:var(--muted)!important}
body .analyzer-console :is(.food-entry-card,.guided-card,.correction-panel,.food-search,.diary-result,.nutrition-result,.calc-editors,.review-ready,.meal-save,.barcode-box,.unmatched-review){background:#fff!important;border:1px solid var(--line)!important;box-shadow:var(--shadow);border-radius:24px}
body .analyzer-console .food-entry-card{padding:24px}body .analyzer-orb{display:none}body .analyzer-heading h2{margin:0 0 12px}body .analyzer-console .food-entry-head p{font-size:.85rem;color:var(--muted);line-height:1.6}body .analyzer-console .food-entry-head h3{font-size:1.15rem}body .analyzer-console .freewrite textarea{min-height:150px;padding:16px;background:#fcfafd;border-color:#e2d8ec}body .analyzer-console .food-steps{background:#f0ebf6;border:0;border-radius:16px;padding:5px;margin-bottom:24px}body .analyzer-console .food-steps button{color:var(--muted);background:transparent;border:0;border-radius:12px}body .analyzer-console .food-steps button[aria-pressed="true"]{background:#fff;color:var(--primary);box-shadow:0 2px 8px #49346908}body .analyzer-console .food-steps b{color:var(--primary)}
body .analyzer-console :is(.food-examples button,.guided-secondary,.quantity-toggle,.match-actions button,.identity-presets button,.guided-options button,.candidate-list button,.dismissed-text button,.inline-search button,.meal-pill,.egg-salt-choice button){background:#f7f3fb;color:var(--ink);border:1px solid #ded2eb;border-radius:16px;min-height:48px;box-shadow:none}
body .analyzer-console .guided-options button{min-height:56px;padding:14px}body .analyzer-console :is(.guided-options button[aria-pressed="true"],.meal-pill.is-current,.egg-salt-choice button[aria-pressed="true"]){background:#e9def5;color:var(--ink);border-color:#9d80bf;box-shadow:none}body .analyzer-console .meal-pill small{color:var(--muted)}body .meal-overview{scrollbar-color:#d5c3eb #faf8fc}body .analyzer-console .guided-card h4{font-size:1.5rem}body .analyzer-console .guided-card{padding:24px;animation:lavender-arrive .25s ease-out}body .guided-intro h3{font-size:1.35rem}body .analyzer-console .review-finish{background:#faf8fcf5;border-color:var(--line);box-shadow:0 -4px 16px #49346908}body .analyzer-console .guided-close{color:var(--muted);background:#f4eff9;border-color:var(--line)}body .guided-remove{color:var(--muted)!important}body .guided-missing,body .analyzer-console .food-state{color:#7c5828!important;background:#fbf1df;border:0}body .macro-card,body .macro-grid>div{background:#f3eef9!important;border-color:#e6dcef;color:var(--ink)!important}body .macro-card strong,body .macro-card small{color:var(--ink)!important}body .calc-summary,body .calculation-audit{background:#f5f1f9;color:var(--muted);border-color:var(--line)}body .calc-editors summary{color:var(--primary)}
body .bottom-nav{background:#fffefaee;border-top:1px solid var(--line);width:min(100%,720px);gap:8px;padding:10px 16px calc(10px + var(--app-bottom-inset,env(safe-area-inset-bottom)));box-shadow:0 -4px 24px #49346905;backdrop-filter:blur(18px)}body .bottom-nav button{font-size:.78rem;color:var(--muted);border-radius:18px;min-height:52px;padding:6px;gap:3px}body .bottom-nav button.active{background:#eee6f8;color:var(--primary);box-shadow:none}body .bottom-nav button span{font-size:1.25rem}body .bottom-nav button.active span{animation:nav-pop .3s ease-out}
body .beta-gate{background:#faf8fc}body .beta-gate-card input{background:#faf8fc;color:var(--ink)}body .beta-gate-row button{background:var(--primary);color:#fff}body .update-banner{background:#fff;color:var(--ink);border-color:#b9a3d1;box-shadow:var(--shadow)}body .update-banner small{color:var(--muted)}body .update-now{background:var(--primary);color:#fff}body .update-later{color:var(--muted)}body .help-dialog{color:var(--ink)}body .help-close{color:var(--primary);background:#f3eef9}body .help-dialog::backdrop{background:#35264b55}body .help-items section{border-color:var(--line)}
.fudzi-puppet{position:relative;display:block;width:100%;aspect-ratio:2/3;transform-origin:50% 86%;animation:fudzi-idle 7s ease-in-out infinite;pointer-events:none}.fudzi-puppet>img{width:100%!important;height:auto!important;display:block;object-fit:contain;filter:none!important}.fudzi-eye{position:absolute;top:46.5%;width:7.6%;aspect-ratio:1;background:#32253b;border-radius:50%;box-shadow:inset -1px -2px 0 #0003;transform:translate(var(--gaze-x,0px),var(--gaze-y,0px));transition:transform .5s ease;animation:fudzi-gaze 9s ease-in-out infinite}.fudzi-eye:after{content:'';position:absolute;width:29%;aspect-ratio:1;top:15%;left:19%;background:#fff;border-radius:50%}.eye-left{left:36.6%}.eye-right{left:56.8%}.fudzi-inline{width:64px;height:auto;flex:none}.brand .fudzi-inline{width:27px}.beta-gate-card .fudzi-inline{width:92px;margin:auto}.quiet-home .fudzi-inline{width:110px;margin:auto}.nutrition-head .fudzi-inline{width:56px}.entry-mascot.fudzi-inline{width:48px}.guided-intro .fudzi-inline{width:64px}.act-guide .fudzi-inline{width:45px}.review-ready .fudzi-inline{width:55px}
.hub-center.is-curious .fudzi-puppet{animation:fudzi-curious .7s ease-in-out}.hub-center.is-holding{outline:3px solid #d5c3eb;outline-offset:8px}.hub-center.is-meditating .fudzi-puppet,.hub-center.breathing-active .fudzi-puppet{animation:fudzi-meditate 8s ease-in-out infinite}.hub-center.is-meditating .fudzi-eye,.hub-center.breathing-active .fudzi-eye{animation:none;transform:scaleY(.18);transition:transform .7s}.hub-center.is-meditating .fudzi-eye:after{opacity:0}.hub-center.is-meditating:after{content:'';position:absolute;inset:25% -12% -10%;border:1px solid #d5c3eb;border-radius:50%;z-index:-1;animation:fudzi-halo 8s ease-in-out infinite}
.view:not(.active) .fudzi-puppet,.view:not(.active) .fudzi-eye,.view:not(.active) .fudzi-sofa{animation-play-state:paused}
@keyframes fudzi-idle{0%,55%,100%{transform:translateY(0) rotate(0)}65%{transform:translateY(-3px) rotate(-2deg)}80%{transform:translateY(-1px) rotate(1deg)}}
@keyframes fudzi-gaze{0%,40%,100%{translate:0 0}48%,60%{translate:1px -3px}72%,80%{translate:-2px -1px}}
@keyframes fudzi-curious{0%,100%{transform:rotate(0)}35%{transform:rotate(-7deg) translateY(-5px)}70%{transform:rotate(4deg)}}
@keyframes fudzi-meditate{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-4px) scale(1.025)}}
@keyframes fudzi-halo{0%,100%{opacity:.3;scale:.95}50%{opacity:.8;scale:1.05}}
@keyframes sofa-settle{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@keyframes lavender-arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes nav-pop{0%{scale:.85}65%{scale:1.12}100%{scale:1}}
@media(max-width:430px){body .app-shell{padding-inline:20px}body .topbar{height:70px}body .help-trigger{font-size:0;width:40px;padding:8px}body .help-trigger span{font-size:1rem}body .home-intro h1{font-size:1.5rem}body .fudzi-welcome{gap:22px;padding-inline:0}body .fudzi-greeting{max-width:174px}body .fudzi-greeting>strong{font-size:1.15rem}body .analyzer-console .food-entry-card,body .analyzer-console .guided-card{padding:20px 16px}body .orbit-item{padding:18px!important}body .orbit-item small{font-size:.78rem}body .feeling-choices button{min-height:60px}body .bottom-nav{padding-inline:12px}body .fudzi-sofa{height:200px}}
@media(max-width:350px){body .app-shell{padding-inline:16px}body .fudzi-welcome{gap:14px}body .hub-center{width:98px!important;height:147px!important}body .fudzi-greeting{max-width:160px}body .orbit-item .card-glyph{display:none}body .home-intro{gap:8px}body .quiet-shortcut{font-size:.7rem}}
@media(prefers-reduced-motion:reduce){body *,body *:before,body *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}body button:active{transform:none}}
html:is([data-motion="off"],[data-motion="reduced"]) body *,html:is([data-motion="off"],[data-motion="reduced"]) body *:after{animation:none!important;transition:none!important}html:is([data-motion="off"],[data-motion="reduced"]) body button:active{transform:none}
/* Clear inherited orbital grid coordinates in both saved home layouts. */
html[data-home-layout] body .home-hub>.orbit-item{grid-row:auto;grid-column:auto;max-width:none}
html[data-home-layout] body .home-hub>.primary-action,html[data-home-layout] body .home-hub>.orbit-reflect{grid-column:1/-1}
html[data-home-layout] body .home-hub>.fudzi-welcome{grid-column:1/-1;grid-row:auto}
body .nutrition-result :is(.macro-label,.macro-value,.macro-note,.calc-summary,.calc-status,.calculation-coverage,.audit-row),body .analyzer-console :is(.nutrition-result p,.nutrition-result small,.nutrition-result span){color:var(--ink)}
body .analyzer-console .guided-options button small,body .analyzer-console .candidate-list button small{color:var(--muted)}
body .analyzer-console .precision-note,body .analyzer-console .salt-details,body .analyzer-console .guided-source{border-color:var(--line)}
body .analyzer-console .guided-card :is(.quantity-toggle,.guided-secondary,.guided-remove){background:transparent!important;color:var(--primary)!important;border-color:var(--line)!important}
body .analyzer-console .manual-food>button{color:var(--primary);border-color:#c5b1dc}
body .analyzer-console{--paper:#35264b;--muted:#6f6280;--line:#e4dceb;--panel:#fff;--panel-2:#f5f0fa;--blue:#7555a3;--teal:#427365;overflow:visible;color:var(--ink)}
body .analyzer-console:before{display:none}body .analyzer-console .back{color:var(--primary)}
body .analyzer-console .analyzer-stage-label{color:var(--primary);background:#f0e9f7;border-color:var(--line);box-shadow:none;font-size:.85rem;letter-spacing:0}
body .analyzer-console .analyzer-stage-label:before{background:#a58bc6;box-shadow:none}
body .analyzer-console[data-stage="ready"] .analyzer-stage-label,body .analyzer-console[data-stage="saved"] .analyzer-stage-label{background:var(--mint);color:#427365}
body .analyzer-console .food-steps b{background:#eee6f8;color:var(--primary)}
body .analyzer-console :is(.food-empty,.result-summary,.daily-nutrition){background:#f4f0f9;border:1px solid var(--line);color:var(--muted);box-shadow:none;border-radius:20px}
body .analyzer-console .guided-intro .result-summary{background:none;border:0}
body .macro-cell{background:#f4eff9!important;border:1px solid var(--line);border-radius:20px;padding:18px}
body .macro-cell:before{display:none}body .macro-cell :is(strong,span,small){color:var(--ink)!important}
body .nutrition-result{padding:24px}body .nutrition-result .calc-editors{padding:18px}body .result-reticle{display:none}
body .calc-row,body .nutrition-details :is(td,th){border-color:var(--line);color:var(--ink)}body .calc-row button,body .calc-retry{background:#eee6f8;color:var(--primary);border-color:var(--line);border-radius:14px}
body .nutrition-result[data-complete="false"] .calc-summary{background:#fbf1df;color:#77572f;border-inline-start-color:#d1a967}
body .daily-nutrition{background:#fff;border-color:var(--line);color:var(--ink);border-radius:24px}body .daily-nutrition p,body .saved-nutrition{color:var(--muted)}
body [data-view="tools"] .guided-choice{color:var(--ink);border-color:var(--line);background:#fff}body [data-view="tools"] .guided-choice.active{background:#eee6f8;border-color:#9d80bf;color:var(--ink)}body [data-view="tools"] .urge-wave{background:#f7f3fb;color:var(--ink);border-color:var(--line)}body .urge-wave>p{color:var(--muted)}
body .analyzer-console input,body .analyzer-console select,body .analyzer-console textarea{color:var(--ink)!important;background:#fff!important;border-color:#d8cce5!important}
body .analyzer-console :is(input,select,textarea,button):focus-visible{outline:3px solid #7555a3;outline-offset:3px}

.myth-sources{margin-top:18px;padding-top:12px;border-top:1px solid #e4d9ef;display:grid;gap:8px}.myth-sources small{color:#685774}.myth-sources a{color:#67448f;text-decoration:underline;text-underline-offset:3px;min-height:44px;display:flex;align-items:center;line-height:1.5}.myth-sources a:focus-visible{outline:2px solid #7555a3;outline-offset:3px;border-radius:6px}

.myth-refresh{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0 20px}.myth-refresh p{color:#685774;font-size:.85rem;line-height:1.6;margin:0}.myth-refresh button{min-height:48px}

.library-tabs{display:flex;gap:10px;margin:18px 0}.library-tabs button{flex:1;min-height:50px;border-radius:16px;border:1px solid #d9c9e9;background:#fff;color:#513568;font:inherit;font-weight:700;padding:12px}.library-tabs button[aria-selected=true]{background:#7555a3;color:#fff}.library-tabs button:focus-visible,.tip-item summary:focus-visible{outline:3px solid #7555a3;outline-offset:3px}.tip-list{display:grid;gap:12px}.tip-item{border:1px solid #e4d9ef;border-radius:20px;background:#fff;overflow:hidden}.tip-item summary{display:flex;gap:14px;align-items:center;cursor:pointer;list-style:none;padding:18px;min-height:56px}.tip-item summary::-webkit-details-marker{display:none}.tip-item summary:after{content:'＋';margin-inline-start:auto;color:#7555a3}.tip-item[open] summary:after{content:'−'}.tip-number{display:grid;place-items:center;flex:none;width:36px;height:36px;background:#eee6f8;color:#67448f;border-radius:12px;font-weight:700}.tip-item small{display:block;color:#786781;font-size:.78rem}.tip-item strong{display:block;color:#35264b;font-size:1.06rem}.tip-body{padding:0 20px 20px;color:#493a57;line-height:1.85}.tip-body p{margin-top:0}.tip-body .myth-sources{font-size:.85rem}#tipsPanel[hidden],#mythsPanel[hidden]{display:none}

/* The route container receives programmatic focus; interactive controls retain their focus rings. */
#app:focus{outline:none}
.question-mark-icon{display:block;width:22px;height:22px;flex:none;transform:none}
body .help-trigger .question-mark-badge{display:grid;place-items:center;width:22px;height:22px;flex:none;line-height:1;direction:ltr}
body .help-trigger .question-mark-icon{width:18px;height:18px}
body .bottom-nav button[data-route="library"]>span{display:grid;place-items:center;line-height:1}

/* Small home actions share the lavender interface, including compact screens. */
body .header-actions{gap:8px}
body .header-actions .help-trigger,body .header-actions .icon-button,body .home-intro .quiet-shortcut{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border:1px solid #ddcfec;border-radius:18px;background:#eee5f8;color:#604080;box-shadow:0 3px 10px #63458109;font-weight:700;cursor:pointer;transition:background .18s ease,transform .18s ease,box-shadow .18s ease}
body .header-actions .help-trigger{padding:9px 13px;font-size:.78rem}
body .help-trigger .question-mark-badge{background:#dfcff0;color:#604080;border-radius:9px;width:26px;height:26px}
body .header-actions .icon-button{width:46px;height:46px;padding:11px;border-radius:16px;background:#f4edf9}
body .top-action-icon{display:block;width:22px;height:22px;flex:none}
body .home-intro .quiet-shortcut{padding:9px 13px;background:#eaf2ef;border-color:#d2e3db;color:#3e6658;font-size:.8rem;align-self:center;white-space:nowrap}
body .home-affirmation-another{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #ddcfec;border-radius:14px;background:#e7dbf3;color:#604080;font-weight:700;margin:4px;padding:9px 13px;cursor:pointer}
@media(hover:hover){body .header-actions button:hover{background:#e2d4f0;box-shadow:0 4px 12px #63458114}body .home-intro .quiet-shortcut:hover{background:#deebe4}body .home-affirmation-another:hover{background:#dcc9ee}}
body .header-actions button:active,body .home-intro .quiet-shortcut:active,body .home-affirmation-another:active{transform:scale(.96)}
body .header-actions button:focus-visible,body .home-intro .quiet-shortcut:focus-visible,body .home-affirmation-another:focus-visible{outline:3px solid #7555a3;outline-offset:3px}
@media(max-width:430px){body .header-actions .help-trigger{font-size:0;width:46px;padding:8px}body .home-intro .quiet-shortcut{font-size:.76rem;padding:9px 11px}}
@media(prefers-reduced-motion:reduce){body .header-actions button:active,body .home-intro .quiet-shortcut:active,body .home-affirmation-another:active{transform:none}}
html:is([data-motion="off"],[data-motion="reduced"]) body :is(.header-actions button,.home-intro .quiet-shortcut,.home-affirmation-another):active{transform:none}
