.theme-toggle{display:inline-grid;place-items:center;width:36px;height:36px;flex-shrink:0;border:1px solid var(--border-color);border-radius:10px;background:var(--card-bg);color:var(--text-color);cursor:pointer;font-size:23px;line-height:1}
.theme-toggle:hover{box-shadow:0 0 0 3px #97d70030}.theme-toggle:focus-visible{outline:3px solid #97d700;outline-offset:3px}
.theme-toggle-floating{position:fixed;right:18px;top:18px;z-index:1100}
@media screen {
html[data-theme=dark]{color-scheme:dark;--primary-bg:#101722;--sidebar-bg:#141e2c;--card-bg:#192536;--text-color:#e2eaf4;--ols-green:#a8d66d;--ols-blue:#8ac4f2;--border-color:#334155;--muted:#a6b5c8;--shadow:0 5px 24px #00000025}
html[data-theme=dark] body{background:var(--primary-bg)!important;color:var(--text-color)!important}
html[data-theme=dark] :is(h1,h2,h3,h4){color:var(--text-color)}
html[data-theme=dark] :is(.top-header-fixed,.sidebar,.monitor-brand){background:var(--sidebar-bg);border-color:var(--border-color)}
html[data-theme=dark] .logo-crop{background:#fff;border-radius:8px}
html[data-theme=dark] :is(.menu-toggle,.search-highlight,.search-input,.login-card,.table-scroll,.ols-table,.stat-card,.card-tv,.email-card,.queue-card){background:var(--card-bg)!important;color:var(--text-color)!important;border-color:var(--border-color)!important}
html[data-theme=dark] :is(.form-control,.field input,.email-editor input,.email-editor textarea,.email-editor select,.search-highlight){background:#111c2b!important;color:var(--text-color)!important;border-color:var(--border-color)!important}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#95a6bc}
html[data-theme=dark] :is(.form-control:focus,.field input:focus){border-color:#a8d66d!important}
html[data-theme=dark] :is(.ols-table th,.ols-table td){color:#c4d1e2!important;border-color:var(--border-color)}
html[data-theme=dark] .ols-table th{background:#141e2c!important}
html[data-theme=dark] .ols-table tbody tr:hover{background:#223348!important}
html[data-theme=dark] :is(.stat-card h3,.email-card h3,.queue-stats strong){color:#e2eaf4!important}
html[data-theme=dark] :is(.stat-card p,.welcome-row p,.header-clock,.user-caption small,.section-title,.refresh-info,.email-card p,.email-help,.main-footer,.main-footer span,.login-panel .intro,.card-footer,.check-text,.field label,.form-group label,form>label,.audit-history-line){color:#a6b5c8!important}
html[data-theme=dark] :is(.sidebar-nav a,.btn-exit){color:#b8c6d8}
html[data-theme=dark] :is(.sidebar-nav a:hover,.menu-toggle:hover){background:#223348;color:#e2eaf4}
html[data-theme=dark] .sidebar-nav a.active{background:#283e24;color:#c4e99b}
html[data-theme=dark] .user-avatar{background:#283e24;color:#c4e99b}
html[data-theme=dark] :is(.header-clock,.search-key,.sidebar-footer){border-color:var(--border-color)}
html[data-theme=dark] .btn-login{background:#2c4228!important;border-color:#47613b!important;color:#d4edb8!important}
html[data-theme=dark] :is(button.btn-login,.btn-login[type=submit]){background:#a0ce61!important;color:#17250d!important;border-color:#a0ce61!important}
html[data-theme=dark] .btn-login:hover{filter:brightness(1.1)}
html[data-theme=dark] :is(.status-aberto,.status-open){background:#203b55!important;color:#a3d2ff!important}
html[data-theme=dark] :is(.status-em_atendimento,.status-atendimento){background:#353455!important;color:#cfcbff!important}
html[data-theme=dark] :is(.status-pendente,.status-pendente_fornecedor,.status-pendente_solicitante){background:#473820!important;color:#f0cf8c!important}
html[data-theme=dark] .status-incidente{background:#492c30!important;color:#ffb2a6!important}
html[data-theme=dark] :is(.status-finalizado,.status-resolvido){background:#2b402a!important;color:#c4e99b!important}
html[data-theme=dark] .ols-table td .badge:not([class*='status-']){color:#e2eaf4!important}
html[data-theme=dark] .sla-counter[style*='#97d700']{color:#b7df86!important}
html[data-theme=dark] .sla-counter[style*='#ff4d4d']{color:#ffb2a6!important}
html[data-theme=dark] .sla-counter[style*='#f39c12']{color:#f0cf8c!important}
html[data-theme=dark] nav[id^=paginacao-] a{background:var(--card-bg);color:#c4d1e2!important;border-color:var(--border-color)!important}
html[data-theme=dark] nav[id^=paginacao-] strong{background:#283e24!important;color:#c4e99b!important}
html[data-theme=dark] :is(.email-tags code,.queue-code){background:#223348;color:#c4d1e2}
html[data-theme=dark] :is(.erro,.email-error,.queue-error){background:#492c30!important;border-color:#765057!important;color:#ffd2ca!important}
html[data-theme=dark] :is(.email-ok,.queue-note:not(.queue-error)){background:#2b402a;color:#c4e99b}
html[data-theme=dark] .login-story{background:#192a21}
html[data-theme=dark] .login-story:after{border-color:#273c2d}
html[data-theme=dark] :is(.login-story>p,.login-features,.login-eyebrow){color:#b7cba8}
/* Existing pages use inline colors. Adapt their light panels and captions without changing markup. */
html[data-theme=dark] .main-content :is(div,section,aside,form)[style*='background:']{background-color:var(--card-bg)!important;border-color:var(--border-color)!important}
html[data-theme=dark] .main-content :is(div,p,span,small,strong,h2,h3,h4,label)[style*='color: #']{color:#c4d1e2!important}
html[data-theme=dark] .main-content .badge[style*='color: #']{color:#f0cf8c!important}
html[data-theme=dark] .audit-history-line{background:transparent!important;border-color:var(--border-color)!important}
}
@media(max-width:600px){.header-user{gap:3px}.theme-toggle{width:32px;height:32px}.theme-toggle-floating{right:12px;top:12px}}
@media print{.theme-toggle{display:none!important}}
