.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;min-width:136px;padding:10px 16px;background:transparent;border:1px solid #8d8d8d;border-radius:0;color:#161616;font:400 14px/1.3 'IBM Plex Sans',sans-serif;cursor:pointer;white-space:nowrap}
.theme-toggle:hover{background:#e8e8e8}.theme-toggle:focus-visible{outline:2px solid #0f62fe;outline-offset:2px}.theme-icon{font-size:22px;line-height:1}.theme-icon:before{content:'◐'}
.theme-corner{position:fixed;right:24px;top:16px;z-index:5}.theme-corner .theme-toggle{background:#f4f4f4}
.workspace>header>.theme-toggle{margin-left:auto;margin-right:16px}.workspace>header .user{margin-left:0}
.public-header-actions{display:flex;align-items:center;gap:16px}.public-header .theme-toggle{color:#f4f4f4;border-color:#6f6f6f;min-height:40px}.public-header .theme-toggle:hover{background:#393939}.public-header .theme-toggle:focus-visible{outline-color:#fff}
:root[data-theme=dark]{--ink:#f4f4f4;--green:#78a9ff;--mint:#0043ce;--cream:#161616;--line:#525252;--white:#262626;--muted:#c6c6c6;--orange:#ff832b;--red:#fa4d56;--cds-background:#161616;--cds-layer:#262626;--cds-interactive:#78a9ff;--cds-focus:#fff;color-scheme:dark}
:root[data-theme=light]{color-scheme:light}
:root[data-theme=dark] body{background:#161616;color:#f4f4f4}
:root[data-theme=dark] a{color:#78a9ff}
:root[data-theme=dark] .card,:root[data-theme=dark] .section,:root[data-theme=dark] .stat,:root[data-theme=dark] .login-panel,:root[data-theme=dark] .workspace>header,:root[data-theme=dark] dialog,:root[data-theme=dark] .recovery-shell .auth{background:#262626;color:#f4f4f4}
:root[data-theme=dark] .recovery-shell{background:#161616}
:root[data-theme=dark] .stat small,:root[data-theme=dark] .workspace header .eyebrow,:root[data-theme=dark] .auth label,:root[data-theme=dark] .form-grid label,:root[data-theme=dark] .term-filters label{color:#c6c6c6}
:root[data-theme=dark] .auth input,:root[data-theme=dark] .form-grid input,:root[data-theme=dark] .form-grid select,:root[data-theme=dark] .form-grid textarea,:root[data-theme=dark] .term-filters input,:root[data-theme=dark] .term-filters select{background:#393939;color:#f4f4f4;border-bottom-color:#8d8d8d}
:root[data-theme=dark] input::placeholder,:root[data-theme=dark] textarea::placeholder{color:#a8a8a8}
:root[data-theme=dark] input[readonly],:root[data-theme=dark] input:disabled{background:#262626;color:#a8a8a8}
:root[data-theme=dark] .auth input:focus,:root[data-theme=dark] .form-grid input:focus,:root[data-theme=dark] .form-grid textarea:focus,:root[data-theme=dark] .form-grid select:focus{outline-color:#fff}
:root[data-theme=dark] th{background:#393939;color:#f4f4f4}
:root[data-theme=dark] th,:root[data-theme=dark] td{border-bottom-color:#525252}
:root[data-theme=dark] tbody tr:hover{background:#353535}
:root[data-theme=dark] td button,:root[data-theme=dark] .section-head button,:root[data-theme=dark] .section-actions button{color:#78a9ff}
:root[data-theme=dark] .form-actions button:not(.primary),:root[data-theme=dark] .term-filters button,:root[data-theme=dark] .local-signing-settings button,:root[data-theme=dark] .theme-toggle{background:#393939;color:#f4f4f4}
:root[data-theme=dark] .form-actions button:not(.primary):hover,:root[data-theme=dark] .theme-toggle:hover{background:#474747}
:root[data-theme=dark] .theme-corner .theme-toggle{background:#262626}
:root[data-theme=dark] .term-sheet,:root[data-theme=dark] .glpi-workflow,:root[data-theme=dark] .glpi-mode span,:root[data-theme=dark] .glpi-connection-state{background:#393939;color:#c6c6c6}
:root[data-theme=dark] .glpi-workflow>p,:root[data-theme=dark] .local-signing-settings p{color:#c6c6c6}
:root[data-theme=dark] .glpi-actions button:not(.primary){background:#262626;color:#f4f4f4;border-color:#8d8d8d}
:root[data-theme=dark] .glpi-metric,:root[data-theme=dark] .glpi-metric-pending{background:#262626;border-color:#525252}
:root[data-theme=dark] .glpi-metric-help,:root[data-theme=dark] .glpi-local-note,:root[data-theme=dark] .glpi-issues>p,:root[data-theme=dark] .glpi-empty{color:#c6c6c6}
:root[data-theme=dark] .glpi-empty,:root[data-theme=dark] .glpi-issues>summary>span,:root[data-theme=dark] .glpi-issue-group li{background:#393939;color:#c6c6c6}
:root[data-theme=dark] .glpi-preview-note{background:#001d6c;color:#a6c8ff}
:root[data-theme=dark] .glpi-no-issues,:root[data-theme=dark] .glpi-workflow .glpi-operation-status{color:#42be65}
:root[data-theme=dark] .glpi-workflow .glpi-operation-status.is-error{color:#ff8389}
:root[data-theme=dark] .badge{background:#393939;color:#f4f4f4}
:root[data-theme=dark] .badge.aceito,:root[data-theme=dark] .glpi-connection-state.is-configured{background:#044317;color:#42be65}
:root[data-theme=dark] .badge.pendente{background:#483700;color:#f1c21b}
:root[data-theme=dark] .badge.devolvido{background:#525252;color:#f4f4f4}
:root[data-theme=dark] .form-error{background:#2d0709;color:#ffb3b8;border-left-color:#fa4d56}
:root[data-theme=dark] .danger-link{color:#ff8389}
:root[data-theme=dark] #avatar{background:#525252;color:#f4f4f4}
:root[data-theme=dark] .term-create{--term-background:#262626;--term-field:#393939;--term-text:#f4f4f4;--term-secondary:#c6c6c6;--term-border:#8d8d8d;--term-focus:#fff}
:root[data-theme=dark] .public-intro>p:not(.eyebrow),:root[data-theme=dark] .public-progress strong,:root[data-theme=dark] .public-progress small,:root[data-theme=dark] .public-identification dt,:root[data-theme=dark] .status-line,:root[data-theme=dark] .step-caption{color:#c6c6c6}
:root[data-theme=dark] .public-progress li>span{background:#262626;color:#c6c6c6}
:root[data-theme=dark] .public-progress li[aria-current=step]>span{background:#0f62fe;color:#fff}
:root[data-theme=dark] .public-progress li[data-complete=true]>span{background:#044317;color:#42be65}
:root[data-theme=dark] .public-signing #content.public-term-card{background:#262626;color:#f4f4f4}
:root[data-theme=dark] .public-term-card .term-sheet{background:#262626;border-color:#525252}
:root[data-theme=dark] .term-conditions{border-color:#525252}
:root[data-theme=dark] .public-term-card .signing .check{color:#f4f4f4}
:root[data-theme=dark] .public-term-card .signing button:not(.primary){color:#78a9ff;background:transparent}
:root[data-theme=dark] .public-term-card .signing button:not(.primary):hover{background:#474747}
:root[data-theme=dark] .public-term-card .signing button.primary:disabled{background:#525252;color:#a8a8a8}
:root[data-theme=dark] .public-term-card .signed-box{background:#044317;border-color:#42be65;color:#f4f4f4}
:root[data-theme=dark] .signature-toolbar{background:#393939;border-color:#8d8d8d}
:root[data-theme=dark] .signature-toolbar>span,:root[data-theme=dark] .signature-hint{color:#c6c6c6}
:root[data-theme=dark] .signature-toolbar button{color:#78a9ff;background:transparent}
:root[data-theme=dark] .signature-toolbar button:disabled{color:#a8a8a8}
:root[data-theme=dark] .public-term-card .signing .signature-toolbar button:disabled{color:#a8a8a8}
:root[data-theme=dark] .signature-editor{background:#262626;color:#f4f4f4}
:root[data-theme=dark] .signature-editor>header,:root[data-theme=dark] .signature-editor>footer{border-color:#525252}
:root[data-theme=dark] .signature-editor>header button{background:#393939;color:#f4f4f4}
:root[data-theme=dark] .signature-editor>footer span{color:#c6c6c6}
/* O papel permanece branco em ambos os temas, como no PDF; a tinta continua preta. */
:root[data-theme=dark] .signature-surface{background:white;color:#161616}
@media(max-width:671px){.theme-toggle{min-width:48px;padding:10px}.theme-toggle [data-theme-label]{display:none}.workspace>header>.theme-toggle{margin-right:8px}.workspace>header #avatar{width:32px;height:32px}.theme-corner{right:16px;top:16px}.public-header-actions{gap:8px}.public-header .theme-toggle{min-height:40px;min-width:40px;padding:8px}.public-header>div{gap:8px}.public-header .public-product{padding-left:8px}}
@media(max-width:671px){.public-header .theme-toggle{min-height:48px;min-width:48px}}
