:root{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark;--flow-surface:#172438;--flow-subtle:#1c2c42;--flow-canvas:#0f1929;--flow-line:#2c3f56;--flow-ink:#e3ecf7;--flow-muted:#a6b8ce;--flow-accent:#88baff;--flow-accent-soft:#1b3553;--flow-accent-line:#446f9e;--flow-positive:#7dddd0;--flow-positive-bg:#163b36;--flow-warning:#edc87f;--flow-warning-bg:#362e1f;--flow-danger:#f2a2a8;--flow-danger-bg:#3d2831;--card-shadow:0 3px 16px #0002;--card-shadow-hover:0 12px 24px #0003;--bs-body-bg:#0f1929;--bs-body-color:#e3ecf7;--bs-secondary-color:#a6b8ce;--bs-border-color:#2c3f56;--bs-tertiary-bg:#1c2c42;--bs-secondary-bg:#1c2c42;--bs-link-color:#88baff;--bs-link-hover-color:#b6d5ff}
.flow-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 11px;border:1px solid #ffffff4d;border-radius:9px;background:#ffffff0a;color:#fff;font:500 11px/1.2 Inter,Arial,sans-serif;cursor:pointer;flex-shrink:0}
.flow-theme-toggle:hover{background:#ffffff20}.flow-theme-toggle svg{width:17px;height:17px;flex-shrink:0}.flow-theme-toggle:focus-visible{outline:3px solid #a2caff;outline-offset:3px}.flow-theme-sun{display:none}html[data-theme=dark] .flow-theme-sun{display:block}html[data-theme=dark] .flow-theme-moon{display:none}.flow-theme-floating{position:fixed;top:16px;right:16px;z-index:1090}.flow-theme-floating .flow-theme-toggle{background:#163457;color:#fff;box-shadow:0 2px 12px #0002}
html[data-theme=dark] body{background:var(--flow-canvas)!important;color:var(--flow-ink)}
html[data-theme=dark] :is(.flow-topbar,.admin-footer){background:#132d4b;border-color:var(--flow-line)}
html[data-theme=dark] :is(.card,.modal-content,.dropdown-menu,.list-group-item,.login-card,.card-redirect,.card-blocked){background-color:var(--flow-surface);color:var(--flow-ink);border-color:var(--flow-line)}
html[data-theme=dark] :is(.card-header,.modal-header,.modal-footer){border-color:var(--flow-line)}
html[data-theme=dark] :is(.bg-light,.bg-white,.bg-body-tertiary){background:var(--flow-subtle)!important;color:var(--flow-ink)}
html[data-theme=dark] :is(.text-dark,.text-body){color:var(--flow-ink)!important}html[data-theme=dark] :is(.text-muted,.text-secondary){color:var(--flow-muted)!important}html[data-theme=dark] .text-primary{color:var(--flow-accent)!important}html[data-theme=dark] .text-success{color:var(--flow-positive)!important}
html[data-theme=dark] :is(input:not([type=color]):not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){background-color:var(--flow-surface);color:var(--flow-ink);border-color:var(--flow-line);color-scheme:dark}html[data-theme=dark] :is(input,textarea)::placeholder{color:#91a5bf;opacity:1}html[data-theme=dark] :is(input,select,textarea):disabled{background-color:var(--flow-subtle);color:var(--flow-muted)}
html[data-theme=dark] .table{--bs-table-bg:var(--flow-surface);--bs-table-color:var(--flow-ink);--bs-table-striped-bg:var(--flow-subtle);--bs-table-striped-color:var(--flow-ink);--bs-table-hover-bg:var(--flow-subtle);--bs-table-hover-color:var(--flow-ink);--bs-table-border-color:var(--flow-line)}
html[data-theme=dark] .rp-chart line{stroke:var(--flow-line)}html[data-theme=dark] .rp-chart text{fill:var(--flow-muted)}
html[data-theme=dark] :is(.btn-outline-primary,.btn-outline-secondary){color:var(--flow-accent);border-color:var(--flow-accent-line)}html[data-theme=dark] .btn-close{filter:invert(1) grayscale(1) brightness(2)}
html[data-theme=dark] :is(.rp-button.rp-primary,.lf-button-primary,.btn-primary,.btn-login,.btn-whatsapp,.card-header-custom,.whatsapp-header,.generator-header,.login-header){color:#fff}html[data-theme=dark] :is(.card-header-custom,.whatsapp-header,.generator-header,.login-header) :is(h1,h2,p){color:#fff}
html[data-theme=dark] :is(.preview-phone,.phone-preview){border-color:#263b50}html[data-theme=dark] .chat-body{background:#142e2b}html[data-theme=dark] :is(.message-bubble,.chat-message){background:#214c3c;color:#e5f7ed}
html[data-theme=dark] #navLoading{background:#0f1929cc!important}html[data-theme=dark] #utmResultado{background:var(--flow-subtle)!important}
@media(max-width:575px){.flow-theme-toggle{width:34px;min-height:34px;padding:7px}.flow-theme-toggle>[data-theme-label]{display:none}.flow-account-avatar{display:none}.flow-theme-floating{top:10px;right:10px}}
@media(prefers-reduced-motion:reduce){.flow-theme-toggle{transition:none}}
html[data-theme=dark] body>.container-fluid>.row>.main-content{background:var(--flow-canvas)}
html[data-theme=dark] :is(.rp-kpi-main>strong,.rp-selection-total,.rp-button:not(.rp-primary),.rp-export-menu a:hover,.flow-sidebar .flow-navigation-link.active){color:var(--flow-accent)}
html[data-theme=dark] .rp-selection-stats{background:var(--flow-subtle)}
html[data-theme=dark] .flow-topbar :is(.flow-brand-fallback,.flow-product-name,.flow-account-info strong,.flow-topbar-context strong){color:#fff}
