/* Preferência explícita: o visual claro continua sendo o padrão. */
.brand-logo-night{display:none}
.theme-toggle{display:flex;align-items:center;justify-content:center;gap:9px;flex:none;min-height:44px;padding:9px 13px;border:1px solid #e6ccd7;border-radius:999px;background:#fff;color:#65505e;font:inherit;font-size:11px;cursor:pointer}
.theme-toggle:hover{background:#fff0f5;border-color:#c9154c}
.theme-toggle-icon{position:relative;display:block;width:22px;height:22px;flex:none}
.theme-toggle-icon svg{position:absolute;inset:0;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transform-origin:center}
.theme-toggle-sun{color:#b96713;opacity:1;transform:rotate(0) scale(1)}
.theme-toggle-moon{opacity:0;transform:rotate(-160deg) scale(.2)}
.theme-toggle[aria-pressed=true] .theme-toggle-sun{opacity:0;transform:rotate(160deg) scale(.2)}
.theme-toggle[aria-pressed=true] .theme-toggle-moon{color:#ffd49c;opacity:1;transform:rotate(0) scale(1)}
.theme-toggle-track{display:block;width:30px;height:18px;border-radius:99px;background:#dfd1d9;padding:3px;flex:none}
.theme-toggle-track:before{content:"";display:block;width:12px;height:12px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #4b193326}
.theme-toggle[aria-pressed=true] .theme-toggle-track{background:#c9154c}
.theme-toggle[aria-pressed=true] .theme-toggle-track:before{transform:translateX(12px)}
@media(prefers-reduced-motion:no-preference){
  :root[data-theme-animated] .theme-toggle{animation:theme-day-tap .65s cubic-bezier(.2,.8,.2,1)}
  :root[data-theme-animated] .theme-toggle[aria-pressed=true]{animation-name:theme-night-tap}
  :root[data-theme-animated] .theme-toggle-icon svg{transition:transform .7s cubic-bezier(.34,1.55,.64,1),opacity .3s ease,color .3s ease}
  :root[data-theme-animated] .theme-toggle-track{transition:background-color .3s ease}
  :root[data-theme-animated] .theme-toggle-track:before{transition:transform .5s cubic-bezier(.34,1.7,.64,1)}
  :root[data-theme-animated] :is(body,.site-header,.hero-stage,.editorial-feature,.about-method,.partner-strip,.site-footer,.guide-workspace,.diagnostic-panel){transition:background-color .35s ease,color .35s ease,border-color .35s ease}
  :root[data-theme-animated] .hero-stage:before{transition:background-color .35s ease}
}
@keyframes theme-night-tap{0%{transform:scale(1)}25%{transform:scale(.88) rotate(-5deg)}60%{transform:scale(1.12) rotate(3deg)}80%{transform:scale(.98) rotate(-1deg)}100%{transform:scale(1)}}
@keyframes theme-day-tap{0%{transform:scale(1)}25%{transform:scale(.88) rotate(5deg)}60%{transform:scale(1.12) rotate(-3deg)}80%{transform:scale(.98) rotate(1deg)}100%{transform:scale(1)}}
.policy-theme-bar{max-width:760px;margin:0 auto;padding:20px 16px 0;display:flex;justify-content:flex-end}
@media(min-width:851px){.site-header .theme-toggle{align-self:center;margin-top:-7px;width:calc(100% - 20px)}}
@media(max-width:850px){.site-header .theme-toggle{order:3;width:44px;height:44px;padding:10px}.site-header .theme-toggle-label,.site-header .theme-toggle-track{display:none}.site-header .header-inner{gap:14px;padding-right:13px}}
@media(prefers-reduced-motion:reduce){.theme-toggle-track:before{transition:none}}
@media print{.theme-toggle,.policy-theme-bar{display:none}}

@media screen{
  :root[data-theme=dark]{color-scheme:dark;--ink:#f5edf3;--muted:#c1b4be;--accent:#ff88af;--line:#51404e;--soft:#2e2029;--night-page:#151217;--night-panel:#211c23;--night-raised:#2b242d;--night-field:#80707d;--bg:#151217;--text:#f5edf3;--note:#31291d;--note-line:#89734c}
  :root[data-theme=dark] body{background:var(--night-page);color:var(--ink)}
  :root[data-theme=dark] .site-header .brand-logo:not(.brand-logo-night){display:none}
  :root[data-theme=dark] .site-header .brand-logo-night{display:block}
  :root[data-theme=dark] .button{background:#c9154c;border-color:#c9154c;color:#fff}
  :root[data-theme=dark] .button:hover{background:#ab1040;border-color:#ab1040}
  :root[data-theme=dark] .skip-link{background:#c9154c;color:#fff}
  :root[data-theme=dark] ::selection{background:#c9154c;color:#fff}
  :root[data-theme=dark] .steps>li:before{background:#c9154c;color:#fff}
  :root[data-theme=dark] :is(.site-header,.nav-panel,.audience-menu,.no-js-nav,.guide-workspace,.diagnostic-panel){background:var(--night-panel);border-color:var(--line);box-shadow:none}
  :root[data-theme=dark] :is(.menu-intro,.menu-bottom,.hero-stage,.editorial-feature,.about-method,.product-facts,.product-caution,.faq-list details){background:var(--night-panel);border-color:var(--line)}
  :root[data-theme=dark] .hero-stage:before{background:#3c1d2d}
  :root[data-theme=dark] .hero-flow{opacity:.8}
  :root[data-theme=dark] .hero-flow path{stroke:#ff88af}
  :root[data-theme=dark] .partner-strip{background:var(--night-page)}
  :root[data-theme=dark] .line-number{background:var(--soft)}
  :root[data-theme=dark] :is(.nav-group>button:hover,.nav-group>button[aria-expanded=true],.nav-link:hover,.nav-link[aria-current=page],.menu-family>a:hover,.menu-family>a:focus-visible,.audience-menu>a:hover,.audience-lines>a:hover,.audience-lines>a:focus-visible){background:var(--soft);color:var(--accent)}
  :root[data-theme=dark] :is(.menu-family>a,.menu-bottom,.nav-caption,.nav-note,.hero-photo figcaption,.partner-strip span,.partner-strip p,.comparison-lines article>span,.breadcrumb,.product-tag,.catalog-note,.catalog-profile,.complementary,.product-facts dt,.product-facts dd,.product-related span,.contact-channel>span,.diagnostic-progress>span,.field-note,.form-label span,.choice-list small,.recommendation-caution){color:var(--muted)}
  :root[data-theme=dark] :is(.mega-columns>div+div,.menu-intro,.comparison-lines article+article,.method-list li,.product-row,.routine-row,.product-related li,.catalog-group>h2){border-color:var(--line)}
  :root[data-theme=dark] .motion-toggle{background:var(--soft)}
  :root[data-theme=dark] :is(.search-field,.catalog-profile,.catalog-profile select,.diagnostic-panel textarea,.diagnostic-panel select,.choice-list label,#guide-message){background:var(--night-raised);color:var(--ink);border-color:var(--night-field)}
  :root[data-theme=dark] .search-field svg{stroke:var(--muted)}
  :root[data-theme=dark] :is(input,textarea)::placeholder{color:#b6a1af;opacity:1}
  :root[data-theme=dark] #family-filters a{color:var(--muted)}
  :root[data-theme=dark] #family-filters a span{color:var(--muted)}
  :root[data-theme=dark] #family-filters :is(a:hover,a.active,a[aria-current=true]){color:var(--accent);background:var(--soft)}
  :root[data-theme=dark] .choice-list label:has(input:checked){background:var(--soft);border-color:var(--accent)}
  :root[data-theme=dark] .choice-list input{accent-color:#ff88af}
  :root[data-theme=dark] .diagnostic-progress i{background:#6b5263}
  :root[data-theme=dark] .diagnostic-progress i.current{background:#ff88af}
  :root[data-theme=dark] .form-error{color:#ffacbe}
  :root[data-theme=dark] .result-kicker{color:var(--accent)}
  :root[data-theme=dark] .site-footer{background:#1d171e}
  :root[data-theme=dark] .theme-toggle{background:var(--night-raised);border-color:var(--night-field);color:var(--ink)}
  :root[data-theme=dark] .theme-toggle:hover{background:var(--soft);border-color:var(--accent)}
  :root[data-theme=dark] .theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
  :root[data-theme=dark] .guide-intro h1 em{color:var(--accent)}
  :root[data-theme=dark] :is(#guide-steps li,.guide-roadmap-note,.guide-progress-row,#guide-description,.guide-result-lead,.guide-choice-copy small,.guide-reassurance,.guide-product-summary,.guide-caution,.guide-summary-item dt,.guide-conversation>p){color:var(--muted)}
  :root[data-theme=dark] #guide-steps li>span{border-color:var(--night-field)}
  :root[data-theme=dark] #guide-steps li.is-complete>span{background:var(--soft);border-color:#99566f;color:var(--accent)}
  :root[data-theme=dark] #guide-steps li[aria-current=step]{background:var(--soft);color:var(--ink)}
  :root[data-theme=dark] #guide-steps li[aria-current=step]>span{background:#c9154c;border-color:#ff88af;color:#fff}
  :root[data-theme=dark] #guide-step-label{color:var(--accent)}
  :root[data-theme=dark] #guide-progress{background:#614254;color:#ff88af}
  :root[data-theme=dark] #guide-progress::-webkit-progress-bar{background:#614254}
  :root[data-theme=dark] #guide-progress::-webkit-progress-value{background:#ff88af}
  :root[data-theme=dark] #guide-progress::-moz-progress-bar{background:#ff88af}
  :root[data-theme=dark] :is(.guide-choice,.guide-recommendation){background:var(--night-raised);border-color:var(--night-field)}
  :root[data-theme=dark] .guide-choice:hover{background:var(--soft);border-color:var(--accent)}
  :root[data-theme=dark] .guide-choice:has(input:checked){background:var(--soft);border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
  :root[data-theme=dark] .guide-choice:focus-within{outline-color:var(--accent)}
  :root[data-theme=dark] .guide-choice input{accent-color:#ff88af}
  :root[data-theme=dark] :is(.guide-choice-copy strong,.guide-reason){color:var(--ink)}
  :root[data-theme=dark] .guide-recommendation h3 a{color:var(--accent);text-decoration-color:#a7627b}
  :root[data-theme=dark] :is(.guide-caution,.guide-summary-item){border-color:var(--line)}
  @media(max-width:850px){
    :root[data-theme=dark] #primary-nav{background:var(--night-panel);border-color:var(--line);box-shadow:15px 12px 50px #0007}
    :root[data-theme=dark] .menu-toggle{background:var(--soft)}
    :root[data-theme=dark] .menu-toggle span{background:var(--ink)}
  }
}

@media screen{
  :root[data-theme=dark]{--action-surface:#34232d;--action-ink:#ffb0cc;--action-border:#775064;--action-hover:#482b3b;--action-hover-border:#d58aa7;--action-shadow:#0002}
}

@media screen{
  :root[data-theme=dark] .product-page .product-facts,:root[data-theme=dark] .product-page .product-caution{background:transparent}
  :root[data-theme=dark] .product-route li>span{background:#c9154c;color:#fff}
}
