/* Final visual system. Keep semantic states and existing layout widths. */
:root,body:has(.muse-home){--ink:#202124;--muted:#5f6368;--line:#dadce0;--bg:#f8f9fa;--card:#fff;--surface-warm:#f8f9fa;--green:#1a73e8;--forest-ink:#1a73e8}
html body,.page{background:#f8f9fa;color:#202124;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}
body .topbar,body:has(.muse-home) .topbar{background:#fff;border-top:3px solid #a52e36;border-bottom:1px solid #dadce0;box-shadow:none}
body .brand,body:has(.muse-home) .brand{color:#202124;font-family:Georgia,serif;letter-spacing:-.04em}body .brand b,body:has(.muse-home) .brand b{color:#a52e36}
body .topbar nav a,body:has(.muse-home) .topbar nav a{color:#202124;font-weight:500}body .topbar nav a:hover{color:#1a73e8;background:#f8f9fa;border-radius:8px}
body .topbar nav a.btn,body:has(.muse-home) .topbar nav a.btn{background:#1a73e8;border-color:#1a73e8;color:#fff}
body .navigation-toggle,body:has(.muse-home) .navigation-toggle{background:#fff;border-color:#dadce0;color:#1a73e8}
.page h1,.page h2,.page h3{color:#202124;text-wrap:balance}.page h1{letter-spacing:-.035em}.page p{line-height:1.7}
body .btn,body input[type=submit].btn,body .page a.btn,body:has(.muse-home) .block .btn{background:#1a73e8;border-color:#1a73e8;color:#fff;border-radius:9px;min-height:46px;font-weight:600;box-shadow:0 2px 3px #203c3210}
body .btn:hover,body input[type=submit].btn:hover{background:#18382c;border-color:#18382c;color:#fff}
body .btn-ghost,body .page a.btn-ghost,body:has(.muse-home) .block .btn-ghost{background:#fff;color:#1a73e8;border-color:#dadce0;box-shadow:none}
body .form-card,body .account-panel,body .plan,body .card{border:1px solid #dadce0;border-radius:16px;background:#fff;box-shadow:0 6px 24px #203c3205}
body .form-card{padding:32px}.field label{font-weight:600;font-size:.9rem}.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea{border-color:#aebdb2;border-radius:8px;background:#fff;min-height:48px}.field .hint{color:#5f6368;font-size:.85rem}
body .registration-story{background:#f8f9fa!important;border-color:#dadce0;border-radius:18px}body .registration-story h2,body .registration-story p,body .registration-story li{color:#202124}body .registration-story small{color:#5f6368}body .registration-story .eyebrow{color:#1a73e8}
body .registration-steps span{background:#f0f3ee;border-color:#dadce0;color:#1a73e8}.sign-in-form .checks label,.registration-form .checks label{background:#f6f7f3;border-color:#dadce0}
body .hero.muse-home{background:#f8f9fa!important;color:#202124;padding:64px 0 56px;border-bottom:1px solid #dadce0}
.muse-home h1{color:#202124;max-width:16ch;font-size:clamp(40px,4.2vw,60px);line-height:1.12;letter-spacing:-.04em}.muse-home h1 em{color:#202124;font-style:normal}.muse-home .ai-badge{color:#202124;font-weight:650;font-size:.7rem;letter-spacing:.12em}.muse-home .lead{color:#5f6368!important}
.muse-home .hero-note,.muse-home .hero-urgency,.muse-home .stats>div,.muse-home figcaption{color:#5f6368}.muse-home .stats{border-color:#dadce0}.muse-home .stats b{color:#202124}
.muse-home .hero-image{aspect-ratio:4/3.7;border-radius:16px;box-shadow:none}.muse-photo-note{background:#fff;border-color:#dadce0;border-radius:12px;box-shadow:0 8px 30px #203c3210}.muse-photo-note strong{color:#202124}.muse-photo-note span{color:#5f6368}
body .muse-home .btn{background:#1a73e8;color:#fff;border-color:#1a73e8}body .muse-home .btn-ghost{background:transparent;color:#1a73e8;border-color:#aebdb2}
body .danger .btn,body .danger input[type=submit].btn{background:#a52e36;border-color:#a52e36;color:#fff}body .btn:disabled,body input[type=submit].btn:disabled{background:#e2e6e1;border-color:#c9d0c7;color:#586355;box-shadow:none}
body a:focus-visible,body button:focus-visible,body summary:focus-visible,body input[type=submit]:focus-visible{outline:3px solid #946712;outline-offset:3px}
@media(max-width:600px){body .form-card{padding:22px}.hero.muse-home{padding:32px 0!important}.muse-home h1{font-size:38px;max-width:17ch}.muse-home .hero-image{aspect-ratio:8/5}.muse-home .hero-grid{gap:24px}.muse-photo-note{padding:16px}.page h1{font-size:32px}}
/* Keep validation semantics above decorative field styling. */
.field input[aria-invalid="true"]:not([type=checkbox]):not([type=radio]),.field select[aria-invalid="true"],.field textarea[aria-invalid="true"]{border:2px solid #a92336;background:#fff8f8}
/* Workspace: quiet navigation, compact choices, generous reading rhythm. */
body .dashboard-sidebar,body .account-nav{background:#fff;border:1px solid #dadce0;border-radius:14px;padding:16px;box-shadow:none}
.dashboard-sidebar nav>a,.account-nav .workspace-links>a{font-size:.9rem;line-height:1.5;padding:12px;border-radius:8px;text-decoration:none;color:#1a73e8;min-height:46px;box-sizing:border-box}
.dashboard-welcome h1,.account-heading h1{margin-top:8px;margin-bottom:12px}.workspace-taskbar{gap:10px;margin:16px 0 28px}.workspace-taskbar .btn{padding:12px 18px;text-align:center;justify-content:center}
body .dashboard-next{background:#f8f9fa;border:1px solid #dadce0;border-radius:14px;padding:24px;box-shadow:none}.dashboard-next h2{margin-top:0;line-height:1.3}
body .account-actions a{background:#fff;border:1px solid #dadce0;border-radius:12px;padding:22px;min-height:0;gap:8px;box-shadow:none}.account-actions a strong{font-size:1rem}.account-actions a span{color:#5f6368;font-size:.9rem;line-height:1.65}.account-actions a:hover{background:#f8f9fa;border-color:#aebdb2}
body .account-panel{padding:28px;border-radius:14px;margin-bottom:24px;scroll-margin-top:110px}.account-panel h2{font-size:1.6rem}.account-panel p{max-width:70ch}.account-email-option{background:#f8f9fa;border:1px solid #dadce0}.account-email-option input{flex-shrink:0;accent-color:#1a73e8}
body .account-panel.danger{border-color:#dfc4c5;background:#fffcfb}.account-panel.danger h2{color:#89353b}.account-panel.danger p{color:#635454}
.dashboard-main .list{border-radius:12px;overflow:hidden}.dashboard-main .list th{background:#f8f9fa;color:#202124;font-size:.8rem;line-height:1.5}.dashboard-main .list td{line-height:1.6}
@media(max-width:600px){body .account-panel{padding:20px;scroll-margin-top:92px}.workspace-taskbar{display:grid;grid-template-columns:minmax(0,1fr)}.workspace-taskbar .btn{width:100%;box-sizing:border-box}.account-actions{gap:12px}body .account-actions a{padding:18px}.account-panel h2{font-size:1.4rem}.dashboard-welcome h1{font-size:32px}.dashboard-sidebar nav{grid-template-columns:minmax(0,1fr)}body .dashboard-next{padding:20px}}
/* Reports and questionnaire: coherent controls and readable details. */
.report-shell{min-width:0}.report-content .summary-bar{background:#f8f9fa;border:1px solid #dadce0;border-radius:14px;padding:24px}.report-content .summary-bar b{color:#1a73e8;font-size:2rem;font-variant-numeric:tabular-nums}.report-content .filters{gap:8px;margin:20px 0}.report-content .filters .chip{min-height:44px;padding:10px 16px;border:1px solid #aebdb2;border-radius:8px;background:#fff;color:#1a73e8}.report-content .filters .chip.on{background:#1a73e8;border-color:#1a73e8;color:#fff}
.report-content .benefit{border:1px solid #dadce0;border-left:3px solid #aebdb2;border-radius:14px;padding:26px;margin-bottom:20px;box-shadow:none;background:#fff}.report-content .benefit-head{align-items:flex-start;gap:16px}.report-content .benefit-head h3{font-size:1.4rem;line-height:1.3;overflow-wrap:anywhere}.report-content .amount{color:#1a73e8;font-size:1rem;white-space:normal}.report-content .tags{gap:6px;line-height:1.6}.report-content .benefit dl{gap:10px 24px;line-height:1.7}.report-content .benefit dt{font-weight:600;color:#5f6368}.report-content .track{border-top:1px solid #dadce0;padding-top:18px;margin-top:20px;line-height:1.8}.report-content .track select{min-height:46px;padding:10px 12px;border-radius:8px;border-color:#aebdb2;background:#fff;font-size:16px;max-width:100%;box-sizing:border-box}.report-content .benefit.st-applied{border-left-color:#946712}.report-content .benefit.st-receiving{border-left-color:#1a73e8}.report-content .benefit.st-notEligible{border-left-color:#b8c1bb}
.report-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px;padding-top:24px;border-top:1px solid #dadce0}.report-actions .btn{white-space:normal;text-align:center;justify-content:center}
.report-history td:last-child a{display:inline-flex;align-items:center;min-height:44px;padding:6px 12px;box-sizing:border-box;border:1px solid #dadce0;border-radius:8px;color:#1a73e8;text-decoration:none;line-height:1.5}.report-history td:last-child a:hover{background:#f8f9fa}.report-paging button{border-color:#aebdb2;color:#1a73e8}.report-paging button[aria-current=page]{background:#1a73e8;border-color:#1a73e8;color:#fff}
.questionnaire .questionnaire-stepper{gap:8px;margin:24px 0 14px}.questionnaire .questionnaire-stepper>span{background:#fff;border-color:#dadce0;border-radius:8px;line-height:1.5}.questionnaire .questionnaire-stepper>[aria-current]{background:#1a73e8;border-color:#1a73e8;color:#fff}.questionnaire .step-status{line-height:1.65;color:#5f6368}.questionnaire fieldset{border-color:#dadce0;border-radius:12px;padding:20px;min-width:0}.questionnaire legend{font-size:1.1rem;font-weight:600;color:#1a73e8;line-height:1.5}.questionnaire .optional-fields summary{padding:12px;line-height:1.6;min-height:46px;box-sizing:border-box;background:#f6f7f3;border-radius:8px}.questionnaire .step-actions{gap:10px;padding-top:24px}.questionnaire .answer-review{line-height:1.65}.questionnaire .answer-review dd{padding-bottom:12px;border-bottom:1px solid #dadce0}
@media(max-width:600px){.report-content .benefit{padding:20px}.report-content .benefit-head{flex-direction:column;gap:8px}.report-content .benefit-head h3{margin-bottom:0}.report-content .benefit dl{grid-template-columns:minmax(0,1fr);gap:6px}.report-content .benefit dd{margin-bottom:12px}.report-content .track select{display:block;width:100%;margin-top:8px}.report-actions{display:grid;grid-template-columns:minmax(0,1fr)}.report-actions .btn{width:100%;box-sizing:border-box}.questionnaire fieldset{padding:14px}.questionnaire .step-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.questionnaire .step-actions .btn{width:100%;box-sizing:border-box;white-space:normal}.questionnaire .questionnaire-stepper>span{min-width:0}.report-history td::before{flex:1;min-width:0}.report-history td{flex-wrap:wrap}.report-history td:last-child a{justify-content:center}}
@media print{.report-content .benefit{box-shadow:none;break-inside:avoid}.report-actions{display:none!important}}
/* Public journeys: quiet comparison, large reading targets and direct help. */
.pricing-page .pricing-overview>a{background:#fff;border-color:#dadce0;border-radius:12px;padding:20px;gap:8px;line-height:1.5}.pricing-page .pricing-overview>a:hover{border-color:#1a73e8;background:#f8f9fa}.pricing-page .pricing-overview strong{color:#1a73e8;font-variant-numeric:tabular-nums}.pricing-page .pricing-overview-link{color:#1a73e8;font-weight:500;text-underline-offset:3px}.pricing-page .plan{padding:30px;border-radius:16px;line-height:1.65}.pricing-page .plan.featured{border:2px solid #1a73e8;box-shadow:none}.pricing-page .plan-flag{background:#1a73e8;color:#fff;letter-spacing:.05em}.pricing-page .plan .ticks li::before{color:#1a73e8}.pricing-page .plan .price{color:#202124;font-size:2.5rem;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.04em}.pricing-page .plan .price small{letter-spacing:0;font-size:.9rem}.pricing-page .plan .btn{min-height:48px;justify-content:center;text-align:center;white-space:normal}.pricing-page [id^=plan-]{scroll-margin-top:110px}
.guide-page #guide-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;padding:24px;border-radius:14px;background:#fff}.guide-page #guide-search[hidden]{display:none}.guide-page #guide-search .field{margin:0}.guide-page #guide-search-status{grid-column:1/-1;margin:0;color:#5f6368;font-size:.9rem;line-height:1.6}.guide-page #guide-search input{width:100%;min-width:0;box-sizing:border-box}.guide-page .guide-list{display:grid;gap:10px}.guide-page .guide-list li{padding:12px 18px;border:1px solid #dadce0;border-radius:12px;background:#fff;line-height:1.65}.guide-page .guide-list a{display:flex;align-items:center;min-height:44px;box-sizing:border-box;color:#1a73e8;text-decoration:none;line-height:1.5;overflow-wrap:anywhere}.guide-page .guide-list a:hover{text-decoration:underline;text-underline-offset:4px}.guide-page .guide-list li span{margin-top:4px;color:#5f6368}.guide-page .event-card{background:#fff;border-color:#dadce0;border-radius:12px;padding:22px;line-height:1.65}.guide-page .event-card:hover{border-color:#aebdb2}.guide-page .facts .fact{background:#f8f9fa;border-color:#dadce0;border-radius:12px}.guide-page .guide-cta{background:#f8f9fa;border-color:#dadce0;border-radius:14px}.guide-page .source-link{color:#1a73e8}.guide-page .guide-disclaimer{font-size:.9rem;line-height:1.7}
.support-page .support-topics{gap:10px}.support-page .support-topics a{background:#fff;border-color:#dadce0;border-radius:10px;padding:16px;color:#1a73e8;font-size:.9rem;min-height:48px;box-sizing:border-box}.support-page>section{margin:24px 0;background:#fff;border:1px solid #dadce0;border-radius:14px;padding:24px;scroll-margin-top:110px}.support-page>section h2{margin-top:0;font-size:1.6rem;line-height:1.3}.support-page>section p,.support-page>section li{line-height:1.75}.support-page .support-actions a{background:#f6f7f3;border-color:#dadce0;border-radius:8px;color:#1a73e8;min-height:46px}.support-page #delete-account{border-color:#dfc4c5}.support-page #delete-title{color:#89353b}.support-page>.page-photo{margin-top:32px;border-radius:14px;overflow:hidden}.support-page>.page-photo img{border-radius:14px}
@media(max-width:600px){.pricing-page .pricing-overview{gap:10px}.pricing-page .pricing-overview>a{padding:16px;min-width:0}.pricing-page .pricing-overview strong{overflow-wrap:anywhere}.pricing-page .plan{padding:24px}.pricing-page .plan .price{font-size:2.2rem}.guide-page #guide-search{grid-template-columns:minmax(0,1fr);padding:20px}.guide-page #guide-search-clear{width:100%;white-space:normal}.guide-page .guide-list li{padding:12px 16px}.support-page>section{padding:20px;scroll-margin-top:92px}.support-page .support-actions{flex-direction:column}.support-page .support-actions a{width:100%;justify-content:flex-start}.support-page .support-topics a{padding:12px 16px}.support-page>section h2{font-size:1.4rem}}
.guide-page a.event-card{color:#1a73e8}.guide-page #guide-search-clear{background:#fff;color:#1a73e8;border-color:#aebdb2;box-shadow:none}.guide-page #guide-search-clear:hover{background:#f8f9fa;color:#1a73e8}
/* Clear next actions while a report is pending or needs another attempt. */
.report-state{max-width:760px;margin:0 auto}.report-state h1{font-size:clamp(30px,4vw,42px);margin:14px 0 22px;line-height:1.2}.report-state p{line-height:1.75}.report-state .spinner{margin:24px 0;border-top-color:#1a73e8}.report-state-actions{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-top:24px}.report-state-actions p{margin:0}.report-state-actions [data-pending-refresh]{display:contents}.report-state-actions .btn{min-height:46px;box-sizing:border-box;text-align:center;justify-content:center;white-space:normal}.report-state-help{margin:20px 0 0;padding-top:16px;border-top:1px solid #dadce0}.report-state-help a{display:inline-flex;align-items:center;min-height:44px}.report-state-failed{border-color:#dfc4c5}
@media(max-width:600px){.report-state-actions{display:flex;flex-direction:column;align-items:stretch}.report-state-actions .btn{width:100%}.report-state-actions p{width:100%}}
@media(prefers-reduced-motion:reduce){.report-state .spinner{animation:none}}

/* Report guide handoff: readable, touch-sized controls in either language. */
.report-content .track .guide-upgrade,.report-content .track .guide-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;max-width:100%;box-sizing:border-box;padding:10px 14px;margin:8px 0 0;white-space:normal;line-height:1.5;text-align:center;border-color:#aebdb2;color:#1a73e8}
@media(max-width:600px){.report-content .track .guide-upgrade,.report-content .track .guide-btn{display:flex;width:100%}}

/* Homepage: airy surfaces; forest remains reserved for actions and readable text. */
body:has(.muse-home){background:#fff;--surface-warm:#f8f9fa}
body .hero.muse-home{background:#f8f9fa!important;border-bottom-color:#e8ece7}
.muse-home h1{color:#202124}.muse-home h1 em{color:#202124}
.muse-home .stats{border-color:#e0e8e1}
body:has(.muse-home) .life-section,body:has(.muse-home) .categories{background:#f8f9fa}
body:has(.muse-home) .signup-banner{background:#f8f9fa!important;color:#202124;border:1px solid #dadce0;box-shadow:none}
body:has(.muse-home) .signup-banner h3{color:#202124!important}
body:has(.muse-home) .signup-banner p,body:has(.muse-home) .signup-banner span{color:#5f6368!important}
.muse-photo-note{box-shadow:0 6px 20px #203c3208;border-color:#dadce0}.muse-home .lang-switch a{color:#1a73e8;background:#fff;border-color:#dadce0}
