.top-controls{display:flex;gap:14px;align-items:center}.theme-toggle{width:48px;height:27px;border:1px solid var(--line);border-radius:20px;background:var(--soft);padding:3px;display:flex;align-items:center}.theme-orbit{width:19px;height:19px;border-radius:50%;background:var(--paper);display:grid;place-items:center;font-size:14px;box-shadow:0 1px 4px #0002;transition:transform .2s}.theme-toggle[aria-checked=true] .theme-orbit{transform:translateX(20px)}
.adm-queue-dialog{width:min(700px,95vw)}.adm-job{padding:18px 0;border-bottom:1px solid var(--line)}.adm-job>small{display:block;margin-top:5px}.adm-job p{font-size:12px;margin:10px 0}.adm-job>.flex:last-child{justify-content:flex-end;margin-top:10px}.adm-progress{display:flex;gap:10px;align-items:center;margin:12px 0}.adm-progress progress{width:100%;height:6px;accent-color:var(--green);border:0;border-radius:8px;overflow:hidden}.adm-progress progress::-webkit-progress-bar{background:var(--soft)}.adm-progress progress::-webkit-progress-value{background:var(--green)}
:root[data-theme=dark]{color-scheme:dark;--ink:#e0e9e2;--muted:#a5b4ac;--green:#b0d2ba;--paper:#111c19;--line:#354b40;--gold:#d2b17f;--soft:#24382e;--red:#ed9690;--shadow:0 20px 70px #0008;background:var(--paper);color:var(--ink)}
[data-theme=dark] :is(.topbar,.sidebar,dialog,.dialog-header,.dialog-body,.panel,.dropdown,.global-results,.case-section,.case-bottom,.case-work-panel,.case-workspace,.case-columns,.auth-form){background:#182720;color:var(--ink)}
[data-theme=dark] :is(input,textarea,select,.card,.case-card,.publication-card,.process-card,.timeline-event,.commitment-item,.day-card,.agenda-day,.agenda-event,.month-day,.btn){background:#1d3027;color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.client-section,.section-bar,.case-tab-button,.case-strip,.case-switcher,.case-toggle,.process-section,.commitments-section,.related-case-tab,.related-case-tabs,.case-tabs,.related-case-add,.person-header,.process-count,.count,.scope-pill,.initials,.notice,.ai-draft-notice,.ai-result-summary,.inss-request-row,.agenda-day-header){background:#243a2e;color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.column,.workflow-group,.empty-board,.duration-box,.new-client-choice,.search,.upload,.file-row,.timeline-body,.publication-reader,.case-tools,.case-panel,.case-panels,.case-comments,.process-body,.section-inner){background:transparent;color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.section-bar:hover,.case-tab-button:hover,.related-case-tab:hover,.related-case-add:hover,.nav :is(button,a[data-ivo-link]):hover,.dropdown :is(button,a[data-ivo-link]):hover,.btn.quiet:hover,.iconbtn:hover){background:#304f3c;color:#f0f4ef}
[data-theme=dark] :is(.nav :is(button,a[data-ivo-link]).active,.related-case-tab.active,.case-tab-button.active){background:#35543f;color:#eef5ef}
[data-theme=dark] :is(.primary,.btn.primary){background:#365e49;color:#f4f6f2;border-color:#537c61}
[data-theme=dark] :is(.primary:hover,.btn.primary:hover){background:#477356}
[data-theme=dark] :is(h1,h2,h3,h4,h5,.client-name,.case-title,.classification-trigger,.process-title,.section-toggle,.case-tab-title,.related-case-title,.board-picker summary,.wordmark){color:var(--ink)}
[data-theme=dark] :is(.comment-item p,.file-row a,.history-item p,.publication-body,.publication-reader p,.timeline-event p,.timeline-text,.section-label,.ai-draft-label,.field>span){color:#c4d5c9}
[data-theme=dark] :is(.subtitle,.eyebrow,.help,.footnote,.section-toggle>span,.nav :is(button,a[data-ivo-link]),.case-tab-label,.brand-office,.private-label,.timeline-date,.process-empty,.empty,.count,.comment-item time){color:#aabcaf}
[data-theme=dark] :is(.form-footer,.panel-head,.section-bar,.file-row,.comment-item,.history-item,.task-item,.list-row,.dialog-header,.profile,.case-tab-button,.related-case-tab){border-color:var(--line)}
[data-theme=dark] .case-dialog::backdrop,[data-theme=dark] dialog::backdrop{background:#07110dcc}
[data-theme=dark] :is(.tag,.tag-pill){color:#183f37}
[data-theme=dark] .inss-screen{background:#101916;border-color:var(--line)}
[data-theme=dark] :is(.case-section,.section-inner,.process-item,.publication-content,.form-footer.fixed,.agenda-day,.agenda-card,.global-search .search input,.phone-input,.file-menu .dropdown,#inss-manual,.ai-action-choice,.recovery-grid pre){background:#182720!important;color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.related-cases,.related-cases>.iconbtn,.related-case,.avatar,.agenda-modes,.agenda-day-heading,.timeline-marker,.empty-symbol){background:#243a2e!important;color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.related-case:hover,.related-case.active,.agenda-modes .selected){background:#35543f!important;color:var(--ink)}
[data-theme=dark] :is(.ai-trigger,.example-pill,.timeline-example,.notice,.error-box,.pje-pending,.duration-box){background:#2e3b2a!important;color:#d7c7a3;border-color:var(--line)}
[data-theme=dark] :is(.case-location,.save-status,.publication-meta,.publication-process,.timeline-source){color:var(--muted)}
@media(prefers-reduced-motion:reduce){.theme-orbit{transition:none}}

[data-theme=dark] .workflow-group>.kanban{background:var(--paper)}
[data-theme=dark] [data-stage-group] .add-stage{background:var(--soft);color:var(--ink);border-color:var(--line)}
[data-theme=dark] .workflow-group>summary:hover{background:var(--soft)}
[data-theme=dark] .workflow-status{background:var(--soft);color:var(--ink)}
[data-theme=dark] :is(.legal-card-meta,.legal-event small,.workflow-group>summary small){color:var(--muted)}
[data-theme=dark] :is(.legal-details,.legal-event){border-color:var(--line)}

/* Commercial learning manual */
.commercial-manual-link{font-size:12px;font-weight:600;text-decoration:none;gap:7px;padding:7px 12px;white-space:nowrap}.board-name{flex-wrap:wrap}.commercial-manual-link>span{color:var(--muted);font-size:14px}
