/* FN interface v1. The storefront and exported artwork keep their own palette. */
html[data-fn-theme="dark"] {
 --fn-bg:#09120F;--fn-surface:#111E18;--fn-surface-raised:#192A22;
 --fn-text:#F2F5ED;--fn-text-secondary:#B6C5BA;--fn-text-muted:#91A599;
 --fn-action:#D9F99D;--fn-on-action:#102016;--fn-action-hover:#C5EF83;
 --fn-line:#2C4237;--fn-control-line:#658271;--fn-media-bg:#FFFFFF;
 --fn-overlay:rgba(0,0,0,.72);--fn-shadow:0 12px 40px rgba(0,0,0,.3);
 --fn-radar-score-bg:#102016;--fn-radar-score-text:#F2F5ED;
 --fn-checkout-selected-bg:#153A26;
 --fn3-paper:var(--fn-bg);--fn3-paper-2:var(--fn-surface-raised);--fn3-paper-card:var(--fn-surface);
 --fn3-paper-bright:var(--fn-text);--fn3-ink:var(--fn-text);--fn3-ink-2:var(--fn-surface-raised);
 --fn3-ink-soft:var(--fn-text-secondary);--fn3-ink-faint:var(--fn-text-muted);
 --fn3-green:var(--fn-action);--fn3-green-dark:#153A26;--fn3-green-deep:#10281B;--fn3-green-tint:#153A26;
 --fn3-gold:#F4CF7A;--fn3-gold-deep:#F4CF7A;--fn3-gold-soft:#332A18;--fn3-gold-faint:#192A22;
 --fn3-red:#FF9D96;--fn3-red-tint:#371F22;
 --fn3-line:var(--fn-line);--fn3-line-soft:var(--fn-line);--fn3-line-strong:var(--fn-control-line);
 --fn3-shadow:0 2px 14px rgba(0,0,0,.18);--fn3-shadow-lg:var(--fn-shadow);
 color-scheme:dark;background:var(--fn-bg);color:var(--fn-text);
}
html[data-fn-theme="dark"] body.page {background:var(--fn-bg)!important;color:var(--fn-text)}
html[data-fn-theme="dark"] :is(#fn3-app-root,#fn3-landing-root,#fn3-planos-root,#fn3-store-root,#fn-checkout-root,#fn-thankyou-root){font-family:'Archivo',system-ui,sans-serif;color:var(--fn-text);background:var(--fn-bg)}
/* Match the legacy button foreground priority, scoped to this theme only. */
html[data-fn-theme="dark"] .fn3-btn-primary {background:var(--fn-action);border-color:var(--fn-action);color:var(--fn-on-action)!important;box-shadow:none}
html[data-fn-theme="dark"] .fn3-btn-primary:hover {background:var(--fn-action-hover);border-color:var(--fn-action-hover);color:var(--fn-on-action)!important}
html[data-fn-theme="dark"] .fn3-btn-ghost {background:transparent;color:var(--fn-action)!important;border-color:var(--fn-control-line)}
html[data-fn-theme="dark"] .fn3-btn-ink {background:var(--fn-surface-raised);color:var(--fn-text)!important;border-color:var(--fn-control-line)}
html[data-fn-theme="dark"] .fn3-btn {min-height:44px;white-space:normal;text-align:center;transition:background .16s,border-color .16s,transform .16s}
html[data-fn-theme="dark"] :is(.fn3-input,.fn3-select,.fn3-textarea){background:var(--fn-surface);color:var(--fn-text);border-color:var(--fn-control-line);font-size:16px}
/* WordPress form rules have higher priority than the isolated app stylesheet. */
html[data-fn-theme="dark"] #fn3-app-root .fn3-auth-field {background:var(--fn-surface)!important;color:var(--fn-text)!important;border-color:var(--fn-control-line)!important;font-size:16px}
html[data-fn-theme="dark"] #fn-cookie-banner {background:var(--fn-surface-raised)!important;border-color:var(--fn-control-line)!important;box-shadow:var(--fn-shadow)!important;font-family:'Archivo',system-ui,sans-serif!important}
html[data-fn-theme="dark"] #fn-cookie-banner :is(p,strong) {color:var(--fn-text-secondary)!important}
html[data-fn-theme="dark"] #fn-cookie-banner strong {color:var(--fn-text)!important}
html[data-fn-theme="dark"] #fn-cookie-banner a {color:var(--fn-action)}
html[data-fn-theme="dark"] #fn-cookie-banner :is(.fn-cookie-btn-accept,.fn-cookie-btn-decline) {font-family:inherit;min-height:44px;white-space:normal}
html[data-fn-theme="dark"] #fn-cookie-banner .fn-cookie-btn-accept {background:var(--fn-action);color:var(--fn-on-action)}
html[data-fn-theme="dark"] #fn-cookie-banner .fn-cookie-btn-decline {color:var(--fn-text);border-color:var(--fn-control-line)}
/* Keep both consent choices reachable; support returns after the banner closes. */
html[data-fn-theme="dark"] body:has(#fn-cookie-banner.fn-visible) #ht-ctc-chat {visibility:hidden!important;pointer-events:none!important}
html[data-fn-theme="dark"] :is(input,textarea,select)::placeholder {color:var(--fn-text-muted);opacity:1}
html[data-fn-theme="dark"] input:-webkit-autofill {box-shadow:0 0 0 1000px var(--fn-surface-raised) inset;-webkit-text-fill-color:var(--fn-text);caret-color:var(--fn-text)}
html[data-fn-theme="dark"] :is(a,button,input,textarea,select,summary):focus-visible {outline:3px solid var(--fn-action);outline-offset:3px}
html[data-fn-theme="dark"] .fn3-modal-overlay {background:var(--fn-overlay);backdrop-filter:blur(4px)}
html[data-fn-theme="dark"] .fn3-modal {background:var(--fn-surface-raised);border-color:var(--fn-control-line);box-shadow:var(--fn-shadow);padding-top:46px}
html[data-fn-theme="dark"] .fn3-modal-close {width:44px;height:44px;top:5px;right:8px;margin:0;padding:0;display:grid;place-items:center;z-index:1}
html[data-fn-theme="dark"] .fn3-wordmark {filter:brightness(0) invert(1)}
html[data-fn-theme="dark"] #fn3-app-root img[src$="fornecedor-nacional-logo-clean-v2.png"] {content:url('../img/brand/fornecedor-nacional-logo.png');position:static!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain;filter:brightness(0) invert(1)}
html[data-fn-theme="dark"] .fn3-nav-item.active {color:var(--fn-on-action)!important;box-shadow:none}
/* Conversion plans also render outside the legacy plan-card component. */
html[data-fn-theme="dark"] .fn-cv :is(h1,h2,h3,h4,h5,h6),
html[data-fn-theme="dark"] #fn3-planos-root :is(h1,h2,h3) {color:var(--fn-text)!important}
html[data-fn-theme="dark"] .fn-cv .fn-cv-primary {background:var(--fn-action);color:var(--fn-on-action)!important;text-decoration:none!important;min-height:44px}
html[data-fn-theme="dark"] .fn-cv .fn-cv-primary:hover {background:var(--fn-action-hover);color:var(--fn-on-action)!important}
/* FN creation canvas: forest green, emerald light and a pale green editor. */
html[data-fn-theme="dark"] #fn3-app-root .fn-create {--fc-secondary:#B6C5BA;background:#09120F;color:#F2F5ED;color-scheme:dark}
html[data-fn-theme="dark"] #fn3-app-root .fn-create::before {background:radial-gradient(ellipse 75% 70% at 50% 100%,rgba(217,249,157,.16),transparent 75%),radial-gradient(ellipse 65% 55% at 0% 65%,rgba(45,116,69,.32),transparent 78%),radial-gradient(ellipse 65% 55% at 100% 65%,rgba(79,143,81,.25),transparent 78%),linear-gradient(180deg,#09120F 0%,#11291D 48%,#153A26 100%)}
html[data-fn-theme="dark"] #fn3-app-root .fn-create h1 {color:#F2F5ED}
html[data-fn-theme="dark"] #fn3-app-root .fn-create-header .fn3-wordmark {filter:brightness(0) invert(1)!important}
html[data-fn-theme="dark"] #fn3-app-root .fn-create-header>button {background:#192A22;color:#F2F5ED;border-color:#658271}
html[data-fn-theme="dark"] #fn3-app-root .fn-create-header>button:hover {background:#243E30}
html[data-fn-theme="dark"] #fn3-app-root .fn-create-eyebrow {color:#D9F99D}
html[data-fn-theme="dark"] #fn3-app-root .fn-create-form {background:#F7FBF1;border-color:#97B391;box-shadow:0 20px 60px rgba(0,0,0,.28);color-scheme:light}
html[data-fn-theme="dark"] #fn3-app-root .fn-create-form:focus-within {border-color:#D9F99D;box-shadow:0 20px 60px rgba(0,0,0,.28),0 0 0 3px rgba(217,249,157,.3)}
html[data-fn-theme="dark"] #fn3-app-root .fn-create-suggestions {color:#B6C5BA}
html[data-fn-theme="dark"] #fn3-app-root .fn-create-suggestions button {background:#192A22;color:#D9F99D;border-color:#658271}
html[data-fn-theme="dark"] #fn3-app-root .fn-create-suggestions button:hover:not(:disabled) {background:#243E30;border-color:#D9F99D}
html[data-fn-theme="dark"] #fn3-app-root :is(.fn-create-time,.fn-create-help) {color:#D5E2D4}
html[data-fn-theme="dark"] #fn3-app-root .fn-create button:focus-visible {outline-color:#D9F99D}
html[data-fn-theme="dark"] .fn-focus {--ff-green:var(--fn-action);--ff-deep:#153A26;--ff-ink:var(--fn-text);--ff-muted:var(--fn-text-secondary);--ff-paper:var(--fn-bg);--ff-line:var(--fn-line);--ff-sage:var(--fn-surface-raised);--ff-gold:#F4CF7A;font-family:'Archivo',system-ui,sans-serif}
html[data-fn-theme="dark"] .fn-immersive-start {background:var(--fn-action);color:var(--fn-on-action);border-color:var(--fn-action)}
html[data-fn-theme="dark"] .fn-immersive-start:hover {background:var(--fn-action-hover)}
html[data-fn-theme="dark"] .fn-immersive-start>span:last-child {background:rgba(16,32,22,.08)}
html[data-fn-theme="dark"] .fn-immersive-hero h1 {font-family:'Archivo',system-ui,sans-serif;font-weight:600}
html[data-fn-theme="dark"] .fn3-prod-img {background:var(--fn-media-bg)}
html[data-fn-theme="dark"] .fn3-prod-img>img {filter:none;opacity:1}
html[data-fn-theme="dark"] .fn3-prod-img .fn-radar-score {background:#102016;color:#F2F5ED}
html[data-fn-theme="dark"] .fn3-prod-img .fn-radar-heart {background:#FFFFFF;color:#193B2B}
html[data-fn-theme="dark"] .fn3-radar-premium-card[data-selected] {outline:2px solid var(--fn-action);outline-offset:2px}
html[data-fn-theme="dark"] :is(.fn-store-workspace,.fn-create,.fn-generation,.fn-gen-wizard){background:var(--fn-bg);color:var(--fn-text)}
html[data-fn-theme="dark"] iframe {color-scheme:normal}
html[data-fn-theme="dark"] .fn-publish-plan {background:var(--fn-surface);border:1px solid var(--fn-control-line)}
html[data-fn-theme="dark"] .fn-publish-main {background:var(--fn-action);color:var(--fn-on-action)}
html[data-fn-theme="dark"] .fn-publish-main:hover {background:var(--fn-action-hover)}
html[data-fn-theme="dark"] .fn-publish-recurring {font-size:12px!important;color:var(--fn-text-secondary)}
html[data-fn-theme="dark"] .fn-publish-offer p {color:var(--fn-text-secondary)}
html[data-fn-theme="dark"] .fn-publish-offer .fn-publish-price {color:var(--fn-text)!important}
html[data-fn-theme="dark"] .fn-publish-footlinks {font-size:13px;gap:20px}
html[data-fn-theme="dark"] .fn-publish-footlinks :is(a,button){font-size:13px;min-height:32px;display:inline-flex;align-items:center}
html[data-fn-theme="dark"] .fn-panel-next {background:var(--fn-surface-raised);border:1px solid var(--fn-line)}
html[data-fn-theme="dark"] .fn-panel-next .fn3-btn {background:var(--fn-action);color:var(--fn-on-action)}
html[data-fn-theme="dark"] .fn3-card-hover:hover {box-shadow:0 0 0 1px var(--fn-control-line),var(--fn-shadow)}
html[data-fn-theme="dark"] :is(.fn-publish-offer,.fn-panel-home,.fn-create,.fn-preparation,.fn-launch-kit,.fn-wizard-root,.fn-checkout-light){color:var(--fn-text)}
html[data-fn-theme="dark"] :is(.fn-publish-offer,.fn-panel-home,.fn-create,.fn-preparation,.fn-launch-kit,.fn-wizard-root,.fn-checkout-light) :is(h1,h2,h3){color:var(--fn-text)}
html[data-fn-theme="dark"] .fn-wizard-primary {background:var(--fn-action);color:var(--fn-on-action)}
html[data-fn-theme="dark"] .fn-wizard-primary:hover {background:var(--fn-action-hover)}
html[data-fn-theme="dark"] .fn-wizard-niches>button {background:var(--fn-surface);color:var(--fn-text);border-color:var(--fn-control-line)}
html[data-fn-theme="dark"] .fn-wizard-niches>button.is-selected {background:#153A26;border-color:var(--fn-action);box-shadow:0 0 0 1px var(--fn-action)}
html[data-fn-theme="dark"] .fn-wizard-niche-copy small {color:var(--fn-text-secondary)}
html[data-fn-theme="dark"] .fn-wizard-niche-check {color:var(--fn-action);border-color:var(--fn-control-line)}
html[data-fn-theme="dark"] .fn-wizard-niche-icon {background:var(--fn-surface-raised);color:var(--fn-action)}
html[data-fn-theme="dark"] .fn-checkout-light {font-family:'Archivo',system-ui,sans-serif}
html[data-fn-theme="dark"] .fn-checkout-light :is(.co-title,.co-brand){color:var(--fn-text)}
html[data-fn-theme="dark"] .fn-sr {--sr-dark:var(--fn-text);--sr-soft:var(--fn-text-secondary);--sr-cream:var(--fn-surface);font-family:'Archivo',system-ui,sans-serif}
html[data-fn-theme="dark"] .fn-sr .fn-chat {--chat-bg:var(--fn-bg);font-family:inherit}
html[data-fn-theme="dark"] .fn-sr-dialog {--sr-dark:var(--fn-text);--sr-soft:var(--fn-text-secondary)}
html[data-fn-theme="dark"] .fn-sr-btn:not(.secondary) {background:var(--fn-action);color:var(--fn-on-action)}
html[data-fn-theme="dark"] .fn-chat-suggestions button {color:var(--fn-text);border-color:var(--fn-control-line)}
html[data-fn-theme="dark"] .fn-checkout-light .co-method {background:var(--fn-surface-raised);color:var(--fn-text);border-color:var(--fn-control-line)}
html[data-fn-theme="dark"] .fn-checkout-light .co-method[aria-pressed="true"] {background:#153A26;border-color:var(--fn-action);box-shadow:0 0 0 1px var(--fn-action)}
html[data-fn-theme="dark"] .fn-checkout-light .co-method small {color:var(--fn-text-secondary)}
@media(max-width:760px){
 html[data-fn-theme="dark"] .fn3-modal-overlay {padding:8px;align-items:center}
 html[data-fn-theme="dark"] .fn3-modal {max-height:calc(100dvh - 16px);padding:48px 20px 24px;border-radius:18px;overscroll-behavior:contain}
 html[data-fn-theme="dark"] .fn-wizard-products {grid-template-columns:minmax(0,1fr)}
 html[data-fn-theme="dark"] .fn-create textarea {font-size:16px}
}
@media(prefers-reduced-motion:reduce){html[data-fn-theme="dark"] *,html[data-fn-theme="dark"] *::before,html[data-fn-theme="dark"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
