.notification-center{gap:8px}.theme-toggle{display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;min-height:0;padding:0;border:1px solid #e0e4ef;border-radius:13px;background:#fff;color:#4338ca;cursor:pointer;box-shadow:0 2px 5px #1e1b4b06}.theme-toggle:hover{background:#eef0ff;border-color:#b8b5ed}.theme-toggle:focus-visible{outline:3px solid #818cf8;outline-offset:3px}
:root[data-theme=dark]{--brand:#b2a7ff;--brand-dark:#c5bdff;--brand-light:#302c4b;--ink:#e4e8f3;--muted:#a7b1c5;--surface:#1a2233;--canvas:#101522;--line:#334057;--success:#8bddb5;--warning:#f1cc88;--danger:#ffa7b6;--azul:var(--brand);--azul-claro:var(--brand-light);--borda:var(--line);--cinza:var(--canvas);--texto:var(--ink);--verde:var(--success);color-scheme:dark;background:var(--canvas)}
html[data-theme=dark] body{background:var(--canvas);color:var(--ink)}
html[data-theme=dark] :is(.app-sidebar,.app-topbar,.answer-topbar,.card,.stat-card,.class-tile,.activity-tile,.questao-editor,.questao-resposta,.correction-layout,.correction-actions,.chat-body,.chat-window,.chat-bubble,.notification-panel,.ai-preview-dialog,.answer-layout details,.empty-state,.quick-panel,.skip-link){background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] .app-topbar{background:#1a2233f5}
html[data-theme=dark] :is(h1,h2,h3,h4,.brand,.person-name,.recent-item strong,.class-tile strong,.questao-resposta h3,.auth-layout .apresentacao h1,.notification-item strong){color:var(--ink)}
html[data-theme=dark] :is(p,label,small,dt,.account-name,.workspace-tag,.sidebar-foot,.sidebar-foot small,.topbar-context,#view-breadcrumb,.page-heading p,.page-heading .eyebrow,.eyebrow,.toolbar-note,.vazio,.texto-menor,.loading-line,.quick-panel>p,.recent-item small,.stat-card>span,.stat-card small,.class-tile p,.activity-tile p,.settings-card>p,.person-details,.people-table td,.people-table th,.correction-content>p,.correction-content .resposta-card small,.correction-content summary,.answer-layout summary,.answer-layout details p,.answer-progress strong,.auth-hint,.auth-footnote,.auth-layout .apresentacao>p,.notification-status,.notification-item p,.notification-item small,.batch-heading p,#batch-results,.ai-preview-consent,.ai-preview-dialog>p){color:var(--muted)}
html[data-theme=dark] :is(input,textarea,select,.class-switch-label select,.questao-resposta textarea){background:#121b2b;border-color:#43516a;color:var(--ink)}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#9ca9c0}
html[data-theme=dark] :is(input,textarea):disabled{background:#202a3c;color:#acb8ce}
html[data-theme=dark] :is(button,.botao-link){background:#a99af9;color:#171329}
html[data-theme=dark] :is(button,.botao-link):hover{background:#c3b8ff}
html[data-theme=dark] :is(.button-quiet,.back-link,.nav-item,.icon-button,.detail-tabs button,.quick-link){background:transparent;color:var(--muted);border-color:var(--line)}
html[data-theme=dark] :is(.button-quiet,.back-link,.nav-item,.icon-button,.detail-tabs button,.quick-link):hover{background:#2b304a;color:#d3caff}
html[data-theme=dark] :is(.nav-item[aria-current=page],.auth-tabs button[aria-selected=true],.detail-tabs button[aria-selected=true],.tile-icon,.recent-symbol,.material-filetype,.class-code,.account-avatar,.person-name .account-avatar){background:var(--brand-light);color:#cec5ff}
html[data-theme=dark] :is(button.secundario,.chat-subtle-button,.notification-controls button,.notification-read,.notification-more,.notification-close,.notification-bell,.theme-toggle,.auth-tabs,.configuracoes,.submission-list,.people-table th,.correction-content .resposta-card,.correction-content details,.feedback-json,.art-note,.ai-preview-items,.notification-item,.material-link){background:#202a3d;border-color:var(--line);color:var(--ink)}
html[data-theme=dark] :is(.notification-bell,.theme-toggle){color:#c3b8ff;box-shadow:none}
html[data-theme=dark] :is(.notification-bell,.theme-toggle):hover,html[data-theme=dark] .notification-bell[aria-expanded=true]{background:#35304f;border-color:#8274b7}
html[data-theme=dark] .notification-count{background:#e85b79;border-color:var(--surface);color:#fff}
html[data-theme=dark] :is(.notification-unread,.published-feedback,.ai-assist,.batch-correction,.alternativas label:has(input:checked)){background:#292640;border-color:#68608f;color:#dcd4ff}
html[data-theme=dark] :is(.ai-assist strong,.ai-assist p,.batch-heading strong,#batch-status,.notification-open,.material-download){color:#c6bbff}
html[data-theme=dark] .submission-list button{background:#302c4b;color:#d4caff}
html[data-theme=dark] .submission-list button.is-selected{background:#a99af9;color:#171329}
html[data-theme=dark] .submission-list .resposta-card{background:transparent;border-color:var(--line)}
html[data-theme=dark] .ai-assist #analisar-gemini:disabled{background:#36354b;color:#a8a1bc;border-color:#4c4765}
html[data-theme=dark] :is(.recent-item,.class-tile-foot,.people-table td,.detail-tabs,.notification-controls,.notification-item,.notification-controls,.notification-heading){border-color:var(--line)}
html[data-theme=dark] .welcome-banner{background:#18352f;border-color:#36534c}
html[data-theme=dark] .welcome-banner :is(h2,p,.eyebrow){color:#b7e4d2}
html[data-theme=dark] .art-book{background:#39584b;border-color:#8fa99a;color:#eef9f2}
html[data-theme=dark] .art-note i{background:#526357}
html[data-theme=dark] .art-check{background:#45402f;color:#f2d78e}
html[data-theme=dark] .auth-layout .apresentacao h1>span{color:#bcb0ff}
html[data-theme=dark] .aviso-simples,html[data-theme=dark] .mensagem,html[data-theme=dark] .chat-notice{background:#283246;border-color:#475772;color:#ccd7ed}
html[data-theme=dark] :is(.mensagem.erro,button.perigo,.risco.revisar){background:#442737;border-color:#774052;color:#ffb4c3}
html[data-theme=dark] :is(.mensagem.ok,.status.finalized,.status.publicada,.entregue,.risco.normal){background:#1d3e35;border-color:#346550;color:#98e2bd}
html[data-theme=dark] :is(.status.draft,.status.rascunho,.risco.atencao){background:#403822;color:#f3d49b}
html[data-theme=dark] :is(.status.revision_requested,.status.revisar){background:#493025;color:#ffc4a2}
html[data-theme=dark] :is(.status.pending,.badge-muted){background:#303a4e;color:#c5d0e5}
html[data-theme=dark] :is(.status.submitted,.status.resubmitted){background:#35304f;color:#d3c9ff}
html[data-theme=dark] .chat-bar{background:#23263c}
html[data-theme=dark] .chat-bar :is(strong,button){color:#f0edff}
html[data-theme=dark] .chat-feed{background:#111a29}
html[data-theme=dark] .chat-bubble.mine{background:#34304e;color:#e1d9ff}
html[data-theme=dark] .chat-author{color:#c3b3ef}
html[data-theme=dark] .chat-meta{color:#b1a9c4}
html[data-theme=dark] .chat-launcher{background:#6753cd;color:#fff}
html[data-theme=dark] .brand-mark{background:#6753cd;color:#fff}
html[data-theme=dark] .group-choice:hover{background:#30344c}
html[data-theme=dark] .answer-progress progress::-webkit-progress-bar{background:#354058}
html[data-theme=dark] .ai-preview-dialog::backdrop{background:#050812bd}
html[data-theme=dark] :is(button,input,textarea,select,a,summary):focus-visible{outline-color:#bfb2ff}
@media(max-width:600px){.theme-toggle{width:36px;height:36px}.notification-center{gap:6px}.topbar-actions:has(.notification-center){gap:6px}.answer-topbar{height:auto;min-height:68px;flex-wrap:wrap;gap:8px;padding:12px 15px}.answer-topbar .brand{order:1}.answer-topbar .notification-center{order:2;margin-left:auto}.answer-topbar>a:last-child{order:3;flex-basis:100%;justify-content:flex-end;min-height:24px;padding:2px 0}.answer-layout .notification-panel{top:112px;max-height:calc(100dvh - 128px)}}
