/*
 * Modos de cor da Intranet MSC.
 * Esta folha deve ser carregada por último para adaptar estilos legados e locais.
 * Os pares principais atendem contraste WCAG AA para texto normal (>= 4.5:1).
 */

:root,
html[data-theme="light"] {
    color-scheme: light;
    --msc-color-canvas: #f4f7fa;
    --msc-color-surface: #ffffff;
    --msc-color-surface-raised: #ffffff;
    --msc-color-surface-soft: #f7f9fc;
    --msc-color-surface-active: #e9f3f6;
    --msc-color-text: #273444;
    --msc-color-heading: #172033;
    --msc-color-muted: #52606d;
    --msc-color-border: #d8e0e8;
    --msc-color-border-strong: #bac7d3;
    --msc-color-control-border: #8795a3;
    --msc-color-link: #166779;
    --msc-color-link-hover: #0d4f5e;
    --msc-color-focus: #125666;
    --msc-color-overlay: rgba(15, 23, 42, .62);
    --msc-color-shadow: rgba(15, 23, 42, .12);
    --msc-color-code: #f1f5f9;
    --msc-color-success: #217a5c;
    --msc-color-danger: #b42318;
    --msc-color-warning: #f4c430;
    --msc-color-info: #0b7285;

    /* Compatibilidade com folhas legadas que usam tokens genéricos. */
    --text-dark: var(--msc-color-heading);
    --text-muted: var(--msc-color-muted);
    --muted: var(--msc-color-muted);
    --muted-bg: var(--msc-color-surface-soft);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --msc-color-canvas: #111827;
    --msc-color-surface: #1a2232;
    --msc-color-surface-raised: #202a3a;
    --msc-color-surface-soft: #151d2b;
    --msc-color-surface-active: #243545;
    --msc-color-text: #f1f5f9;
    --msc-color-heading: #ffffff;
    --msc-color-muted: #b6c2d1;
    --msc-color-border: #445066;
    --msc-color-border-strong: #66748a;
    --msc-color-control-border: #66748a;
    --msc-color-link: #67c6dc;
    --msc-color-link-hover: #9eddeb;
    --msc-color-focus: #8ed9ea;
    --msc-color-overlay: rgba(2, 6, 23, .78);
    --msc-color-shadow: rgba(0, 0, 0, .42);
    --msc-color-code: #0d1420;
    --msc-color-success: #62d2aa;
    --msc-color-danger: #ff9c96;
    --msc-color-warning: #f6d56f;
    --msc-color-info: #75d4e6;
    --msc-primary-50: #15333b;
    --msc-primary-100: #1b414b;
    --msc-focus: rgba(103, 198, 220, .45);
    --brand-rgba-35: rgba(103, 198, 220, .35);
    --brand-rgba-25: rgba(103, 198, 220, .25);
    --brand-rgba-18: rgba(103, 198, 220, .18);
    --brand-rgba-15: rgba(103, 198, 220, .15);
    --brand-rgba-12: rgba(103, 198, 220, .12);
    --brand-rgba-10: rgba(103, 198, 220, .10);
    --brand-rgba-08: rgba(103, 198, 220, .08);
    --brand-rgba-06: rgba(103, 198, 220, .06);

    /* Módulos com tokens próprios. */
    --text-dark: var(--msc-color-heading);
    --text-muted: var(--msc-color-muted);
    --gray-light: var(--msc-color-surface-soft);
    --muted: var(--msc-color-muted);
    --muted-bg: var(--msc-color-surface-soft);
    --success-bg: #123c31;
    --warning-bg: #443713;
    --danger-bg: #49201f;
    --info-bg: #123743;
    --situation-bg: #123b39;
    --miolo-bg: var(--msc-color-canvas);
    --miolo-surface: var(--msc-color-surface);
    --miolo-surface-raised: var(--msc-color-surface-raised);
    --miolo-surface-soft: var(--msc-color-surface-soft);
    --miolo-border: var(--msc-color-border);
    --miolo-border-strong: var(--msc-color-border-strong);
    --miolo-text: var(--msc-color-text);
    --miolo-muted: var(--msc-color-muted);
    --miolo-soft-text: #d1dae6;
    --miolo-accent: #62d2c8;
    --miolo-accent-soft: #123b39;
    --miolo-shadow: 0 18px 45px rgba(0, 0, 0, .32);
    --chat-border: var(--msc-color-border);
    --chat-panel: var(--msc-color-surface);
    --chat-muted: var(--msc-color-muted);
    --chat-text: var(--msc-color-text);
    --chat-accent: #62d2c8;
    --chat-accent-strong: #8ae3db;
    --chat-soft: var(--msc-color-surface-soft);
    --calendar-border: var(--msc-color-border);
    --calendar-muted: var(--msc-color-muted);
    --calendar-surface: var(--msc-color-surface);
    --calendar-subtle: var(--msc-color-surface-soft);
    --birthday-ink: var(--msc-color-text);
    --birthday-muted: var(--msc-color-muted);
    --birthday-border: var(--msc-color-border);
    --birthday-surface: var(--msc-color-surface);
    --birthday-accent-soft: #15333b;
    --sp-surface: var(--msc-color-surface);
    --sp-surface-muted: var(--msc-color-surface-soft);
    --sp-text: var(--msc-color-text);
    --sp-muted: var(--msc-color-muted);
    --sp-line: var(--msc-color-border);
    --sp-primary: #67c6dc;
    --sp-primary-dark: #9eddeb;
    --sp-primary-soft: #15333b;
    --sp-shadow: 0 16px 42px rgba(0, 0, 0, .32);
    --goals-ink: var(--msc-color-text);
    --goals-muted: var(--msc-color-muted);
    --goals-border: var(--msc-color-border);
    --goals-surface: var(--msc-color-surface);
    --goals-canvas: var(--msc-color-canvas);
    --goals-primary-soft: #15333b;
    --my-actions-border: var(--msc-color-border);
    --my-actions-muted: var(--msc-color-muted);
    --my-actions-surface: var(--msc-color-surface);
    --my-actions-soft: var(--msc-color-surface-soft);
    --my-actions-brand-soft: #15333b;
    --ecosystem-workspace-border: var(--msc-color-border);
    --ecosystem-workspace-border-strong: var(--msc-color-border-strong);
    --ecosystem-workspace-canvas: var(--msc-color-canvas);
    --ecosystem-workspace-ink: var(--msc-color-text);
    --ecosystem-workspace-muted: var(--msc-color-muted);
    --ecosystem-workspace-primary: #67c6dc;
    --ecosystem-workspace-primary-dark: #9eddeb;
    --ecosystem-workspace-primary-soft: #15333b;
    --ecosystem-list-canvas: var(--msc-color-canvas);
    --ecosystem-list-ink: var(--msc-color-text);
    --inflacao-ink: var(--msc-color-text);
    --inflacao-muted: var(--msc-color-muted);
    --inflacao-line: var(--msc-color-border);
    --inflacao-positive: #ff9c96;
    --inflacao-positive-soft: #49201f;
    --inflacao-negative: #62d2aa;
    --inflacao-negative-soft: #123c31;
    --pomodoro-ink: var(--msc-color-text);
    --pomodoro-muted: var(--msc-color-muted);
    --pomodoro-line: var(--msc-color-border);
    --pomodoro-soft: var(--msc-color-surface-soft);
    --enq-border: var(--msc-color-border);
    --enq-ink: var(--msc-color-text);
    --enq-muted: var(--msc-color-muted);
    --enq-soft: var(--msc-color-surface-soft);
}

/* Pares claros usados por badges e controles legados. */
html[data-theme="light"] .badge-soft-secondary {
    color: #52606d;
    background: #e8edf2;
}

html[data-theme="light"] .badge-soft-success {
    color: #196c50;
    background: #e5f4ed;
}

html[data-theme="light"] .badge-soft-primary,
html[data-theme="light"] .bg-soft-primary {
    color: #166779 !important;
    background-color: #e4f1f3 !important;
    border-color: #79aeb9;
}

html[data-theme="light"] .badge-soft-danger,
html[data-theme="light"] .bg-soft-danger {
    color: #a1261c !important;
    background-color: #fee2e2 !important;
    border-color: #e69c96;
}

html[data-theme="light"] .badge-soft-warning,
html[data-theme="light"] .bg-soft-warning {
    color: #765500 !important;
    background-color: #fef3c7 !important;
    border-color: #d7b84b;
}

html[data-theme="light"] .pomodoro-page {
    --pomodoro-focus: #b42318;
    --pomodoro-active: #b42318;
    --pomodoro-active-rgb: 180, 35, 24;
}

html[data-theme="light"] .pomodoro-actions .btn-outline-secondary,
html[data-theme="light"] .pomodoro-panel .btn-outline-secondary {
    color: var(--msc-color-muted);
    border-color: var(--msc-color-control-border);
}

html[data-theme="light"] .miolo-save-state {
    color: var(--msc-color-muted);
}

html[data-theme="light"] .miolo-badge {
    color: #fff;
    background: #a63d00;
}

html[data-theme="light"] .chat-composer-editor .note-placeholder {
    color: var(--msc-color-muted);
}

html[data-theme="light"] .calendar-today-button:disabled {
    color: var(--msc-color-muted);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
    opacity: 1;
}

html[data-theme="light"] .calendar-view-button,
html[data-theme="light"] .calendar-filter-card small,
html[data-theme="light"] .calendar-metric small,
html[data-theme="light"] .calendar-mstar.calendar table.month th.day-header {
    color: var(--msc-color-muted);
}

html[data-theme="light"] .birthday-view-button,
html[data-theme="light"] .birthday-orbit-group-button,
html[data-theme="light"] .birthday-orbit-footer p,
html[data-theme="light"] .birthday-orbit-empty-detail p {
    color: var(--msc-color-muted);
}

html[data-theme="light"] .birthday-orbit-marker {
    background: #125666;
}

html[data-theme="light"] .inflacao-nav-link.active,
html[data-theme="light"] .inflacao-nav-link.active span {
    color: #fff;
}

html[data-theme="light"] .ecosystem-list-container .ecosystem-search-status,
html[data-theme="light"] .ecosystem-list-container .ecosystem-context-tabs .view-toggle-btn,
html[data-theme="light"] .ecosystem-list-container .eco-context-index {
    color: var(--msc-color-muted);
}

html[data-theme="light"] .ecosystem-list-container .eco-member {
    color: var(--msc-color-link);
}

html[data-theme="light"] .badge-soft-info {
    color: #0b7285;
    background: #e4f1f3;
}

html[data-theme="light"] .text-secondary,
html[data-theme="light"] .card-title-desc {
    color: var(--msc-color-muted) !important;
}

html[data-theme="light"] .alert-light,
html[data-theme="light"] .alert-light strong {
    color: var(--msc-color-muted);
}

html[data-theme="light"] .btn-link {
    color: var(--msc-color-link);
}

html[data-theme="light"] .btn-link:hover,
html[data-theme="light"] .btn-link:focus {
    color: var(--msc-color-link-hover);
}

html[data-theme="light"] .pagination .page-item.active .page-link {
    color: #fff !important;
    background: #166779;
    border-color: #166779;
}

html[data-theme="light"] .goals-cycle-tab small,
html[data-theme="light"] .goals-panel-title small,
html[data-theme="light"] .goals-score-summary small,
html[data-theme="light"] .goals-detail-section header p {
    color: var(--msc-color-muted);
}

html[data-theme="light"] .goals-index .btn-outline-secondary {
    color: var(--msc-color-muted);
    border-color: var(--msc-color-control-border);
}

html[data-theme="light"] .sp-sidebar small {
    color: var(--msc-color-muted);
}

html[data-theme="dark"][data-company="lek"] {
    --msc-color-link: #f3aaa7;
    --msc-color-link-hover: #ffc8c6;
    --msc-color-focus: #ffc8c6;
    --msc-primary-50: #321b20;
    --msc-primary-100: #462125;
    --msc-focus: rgba(243, 170, 167, .45);
    --brand-rgba-35: rgba(243, 170, 167, .35);
    --brand-rgba-25: rgba(243, 170, 167, .25);
    --brand-rgba-18: rgba(243, 170, 167, .18);
    --brand-rgba-15: rgba(243, 170, 167, .15);
    --brand-rgba-12: rgba(243, 170, 167, .12);
    --brand-rgba-10: rgba(243, 170, 167, .10);
    --brand-rgba-08: rgba(243, 170, 167, .08);
    --brand-rgba-06: rgba(243, 170, 167, .06);
}

/* Transição curta, sem contrariar a preferência por movimento reduzido. */
body,
.card,
.modal-content,
.dropdown-menu,
.form-control,
.custom-select,
.table,
.list-group-item {
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

@media (prefers-reduced-motion: reduce) {
    body,
    .card,
    .modal-content,
    .dropdown-menu,
    .form-control,
    .custom-select,
    .table,
    .list-group-item {
        transition: none;
    }
}

/* Ações semânticas com contraste AA também no modo claro. */
.btn-success,
.badge-success,
.bg-success {
    color: #ffffff !important;
    background-color: #217a5c !important;
    border-color: #217a5c !important;
}

.btn-danger,
.badge-danger,
.bg-danger {
    color: #ffffff !important;
    background-color: #b42318 !important;
    border-color: #b42318 !important;
}

.btn-info,
.badge-info,
.bg-info {
    color: #ffffff !important;
    background-color: #0b7285 !important;
    border-color: #0b7285 !important;
}

.btn-secondary,
.badge-secondary,
.bg-secondary {
    color: #ffffff !important;
    background-color: #596275 !important;
    border-color: #596275 !important;
}

.btn-warning,
.badge-warning,
.bg-warning {
    color: #172033 !important;
    background-color: #f4c430 !important;
    border-color: #f4c430 !important;
}

.btn-success:hover,
.btn-success:focus {
    background-color: #196448 !important;
    border-color: #196448 !important;
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: #8f1d14 !important;
    border-color: #8f1d14 !important;
}

.btn-info:hover,
.btn-info:focus {
    background-color: #075f6e !important;
    border-color: #075f6e !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #465062 !important;
    border-color: #465062 !important;
}

:focus-visible {
    outline: 3px solid var(--msc-color-focus) !important;
    outline-offset: 2px;
}

.text-muted,
.small-muted,
.hint,
.label-text {
    color: var(--msc-color-muted) !important;
}

html[data-theme="light"] .bg-soft-primary {
    color: var(--msc-primary-700) !important;
}

html[data-theme="light"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand),
html[data-theme="light"] .news-readmore {
    color: var(--msc-color-link);
}

html[data-theme="light"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand):hover,
html[data-theme="light"] .news-readmore:hover {
    color: var(--msc-color-link-hover) !important;
}

/* Estados legados do Ecossistema também precisam atender AA no modo claro. */
html[data-theme="light"] .tipo-verde,
html[data-theme="light"] .impacto-verde {
    color: #176344 !important;
    background-color: #d1fae5 !important;
    border-color: #75c9a7 !important;
}

html[data-theme="light"] .tipo-amarelo,
html[data-theme="light"] .impacto-amarelo {
    color: #765500 !important;
    background-color: #fef3c7 !important;
    border-color: #d7b84b !important;
}

html[data-theme="light"] .tipo-vermelho,
html[data-theme="light"] .impacto-vermelho {
    color: #a1261c !important;
    background-color: #fee2e2 !important;
    border-color: #e69c96 !important;
}

/* Limites e textos auxiliares de campos cumprem 1.4.3 e 1.4.11. */
.form-control,
.custom-select,
.custom-file-label,
.input-group-text,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.note-editor.note-frame,
.custom-control-label::before {
    border-color: var(--msc-color-control-border);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--msc-color-muted);
    opacity: 1;
}

/* Controle de tema no cabeçalho e em páginas independentes. */
.msc-theme-toggle {
    position: relative;
}

.msc-theme-toggle i,
.msc-theme-floating-toggle i,
.msc-theme-glyph {
    font-size: 1.35rem;
}

.msc-theme-glyph {
    line-height: 1;
}

.navbar-header .header-item,
.navbar-header .header-item:hover,
.navbar-header .header-item:focus,
.navbar-header .header-item > span,
.navbar-header .header-item > i {
    color: #ffffff;
}

.btn-light {
    border-color: var(--msc-color-control-border);
}

.msc-theme-floating-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: var(--msc-z-system, 2000);
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--msc-color-border-strong);
    border-radius: 50%;
    color: var(--msc-color-text);
    background: var(--msc-color-surface-raised);
    box-shadow: 0 8px 24px var(--msc-color-shadow);
    cursor: pointer;
}

.msc-theme-floating-toggle:hover {
    color: var(--msc-color-link-hover);
    background: var(--msc-color-surface-active);
}

/* Base e utilitários legados. */
html[data-theme="dark"] body,
html[data-theme="dark"] .main-content,
html[data-theme="dark"] .page-content,
html[data-theme="dark"] .account-pages,
html[data-theme="dark"] .login-page,
html[data-theme="dark"] .content-wrapper {
    color: var(--msc-color-text);
    background-color: var(--msc-color-canvas) !important;
}

html[data-theme="dark"] .corpo {
    background-image:
        linear-gradient(rgba(17, 24, 39, .97), rgba(17, 24, 39, .97)),
        url("/img/malha-morning-star.svg");
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .modal-title,
html[data-theme="dark"] legend,
html[data-theme="dark"] label,
html[data-theme="dark"] dt,
html[data-theme="dark"] strong {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] a:not(.btn):not(.badge):not(.nav-link):not(.dropdown-item) {
    color: var(--msc-color-link);
}

html[data-theme="dark"] a:not(.btn):not(.badge):hover,
html[data-theme="dark"] a:not(.btn):not(.badge):focus {
    color: var(--msc-color-link-hover);
}

.skip-link,
.skip-link:hover,
.skip-link:focus,
.skip-link:focus-visible {
    color: #111827 !important;
    background-color: #ffffff !important;
}

html[data-theme="dark"] .text-dark {
    color: var(--msc-color-heading) !important;
}

html[data-theme="dark"] .text-body {
    color: var(--msc-color-text) !important;
}

html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .small-muted,
html[data-theme="dark"] .hint {
    color: var(--msc-color-muted) !important;
}

html[data-theme="dark"] .text-primary,
html[data-theme="dark"] .text-brand,
html[data-theme="dark"] a.link-primary {
    color: var(--msc-color-link) !important;
}

html[data-theme="light"] .text-success {
    color: #217a5c !important;
}

html[data-theme="light"] .text-danger {
    color: #b42318 !important;
}

html[data-theme="light"] .text-info {
    color: #0b7285 !important;
}

html[data-theme="light"] .text-warning {
    color: #765500 !important;
}

html[data-theme="dark"] .text-success {
    color: var(--msc-color-success) !important;
}

html[data-theme="dark"] .text-danger {
    color: var(--msc-color-danger) !important;
}

html[data-theme="dark"] .text-info {
    color: var(--msc-color-info) !important;
}

html[data-theme="dark"] .text-warning {
    color: var(--msc-color-warning) !important;
}

html[data-theme="dark"] .text-black-50 {
    color: var(--msc-color-muted) !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light {
    color: var(--msc-color-text) !important;
    background-color: var(--msc-color-surface-soft) !important;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-right,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-left {
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] hr {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] code,
html[data-theme="dark"] pre,
html[data-theme="dark"] .hljs {
    color: #e6edf7;
    background: var(--msc-color-code);
    border-color: var(--msc-color-border);
}

/* Estrutura Kraken. */
html[data-theme="dark"] .topnav,
html[data-theme="dark"] .topnav .navbar,
html[data-theme="dark"] .topnav .dropdown-menu,
html[data-theme="dark"] .navbar-header .dropdown-menu {
    color: var(--msc-color-text);
    background-color: var(--msc-color-surface-raised);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .topnav .navbar-nav .nav-link,
html[data-theme="dark"] .topnav .navbar-nav .dropdown-item,
html[data-theme="dark"] .navbar-header .dropdown-item {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .topnav .navbar-nav .nav-link:hover,
html[data-theme="dark"] .topnav .navbar-nav .nav-link:focus,
html[data-theme="dark"] .topnav .navbar-nav .dropdown-item:hover,
html[data-theme="dark"] .topnav .navbar-nav .dropdown-item:focus,
html[data-theme="dark"] .navbar-header .dropdown-item:hover,
html[data-theme="dark"] .navbar-header .dropdown-item:focus {
    color: var(--msc-color-link-hover);
    background-color: var(--msc-color-surface-active);
}

html[data-theme="dark"] .topnav .navbar-nav .nav-link.active,
html[data-theme="dark"] .topnav .navbar-nav .nav-link.active > * {
    color: var(--msc-color-link-hover) !important;
}

html[data-theme="dark"] .dropdown-divider,
html[data-theme="dark"] .nav-tabs,
html[data-theme="dark"] .page-title-box,
html[data-theme="dark"] .breadcrumb {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .breadcrumb-item,
html[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .breadcrumb-item.active {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .footer {
    color: var(--msc-color-muted);
    background-color: var(--msc-color-surface-soft);
    border-top: 1px solid var(--msc-color-border);
}

html[data-theme="dark"] .header-profile-user {
    background-color: rgba(255, 255, 255, .22);
}

/* Superfícies Bootstrap/AdminLTE e conteúdo comum. */
html[data-theme="dark"] .card,
html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-body,
html[data-theme="dark"] .card-footer,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-body,
html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .popover,
html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .jumbotron,
html[data-theme="dark"] .well {
    color: var(--msc-color-text);
    background-color: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-footer,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
    background-color: var(--msc-color-surface-soft);
}

html[data-theme="dark"] .modal-backdrop,
html[data-theme="dark"] .modal-backdrop.release-notes-backdrop {
    background-color: #020617;
}

html[data-theme="dark"] .close {
    color: var(--msc-color-text);
    text-shadow: none;
}

html[data-theme="dark"] .list-group-item-action:hover,
html[data-theme="dark"] .list-group-item-action:focus,
html[data-theme="dark"] .list-group-item.active {
    color: var(--msc-color-heading);
    background-color: var(--msc-color-surface-active);
}

html[data-theme="dark"] .nav-tabs .nav-link,
html[data-theme="dark"] .nav-pills .nav-link {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .nav-tabs .nav-link:hover,
html[data-theme="dark"] .nav-tabs .nav-link:focus {
    color: var(--msc-color-link-hover);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .nav-tabs .nav-link.active {
    color: var(--msc-color-heading) !important;
    background-color: var(--msc-color-surface);
    border-color: var(--msc-color-border) var(--msc-color-border) var(--msc-color-surface);
}

html[data-theme="dark"] .page-link {
    color: var(--msc-color-link);
    background-color: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .page-link:hover,
html[data-theme="dark"] .page-link:focus {
    color: var(--msc-color-link-hover);
    background-color: var(--msc-color-surface-active);
}

html[data-theme="dark"] .progress {
    background-color: var(--msc-color-surface-active);
}

html[data-theme="dark"] .alert-light,
html[data-theme="dark"] .alert-secondary {
    color: var(--msc-color-text);
    background-color: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .alert-success,
html[data-theme="dark"] .badge-soft-success {
    color: #a9edd5;
    background-color: #123c31;
    border-color: #276b57;
}

html[data-theme="dark"] .alert-danger,
html[data-theme="dark"] .badge-soft-danger {
    color: #ffc0bc;
    background-color: #49201f;
    border-color: #873b36;
}

html[data-theme="dark"] .alert-warning,
html[data-theme="dark"] .badge-soft-warning {
    color: #ffe7a0;
    background-color: #443713;
    border-color: #7c6422;
}

html[data-theme="dark"] .alert-info,
html[data-theme="dark"] .badge-soft-info {
    color: #a7e7f2;
    background-color: #123743;
    border-color: #2d6875;
}

html[data-theme="dark"] .alert-primary,
html[data-theme="dark"] .badge-soft-primary,
html[data-theme="dark"] .bg-soft-primary {
    color: var(--msc-color-link-hover) !important;
    background-color: var(--msc-primary-50) !important;
    border-color: var(--brand-rgba-35);
}

html[data-theme="dark"] .badge-soft-secondary,
html[data-theme="dark"] .bg-soft-secondary {
    color: #d7e0eb !important;
    background-color: #303b4d !important;
    border-color: var(--msc-color-border-strong);
}

html[data-theme="dark"] .bg-soft-brand {
    color: var(--msc-color-link-hover) !important;
    background-color: var(--msc-primary-50) !important;
    border: 1px solid var(--msc-color-link);
}

/* Botões outline legados: texto e limites perceptíveis nos dois temas. */
html[data-theme="light"] .btn-outline-primary {
    color: var(--msc-color-link);
    border-color: var(--msc-color-link);
}

html[data-theme="light"] .btn-outline-secondary {
    color: var(--msc-color-muted);
    border-color: var(--msc-color-control-border);
}

html[data-theme="light"] .btn-outline-info {
    color: var(--msc-color-info);
    border-color: var(--msc-color-info);
}

html[data-theme="light"] .btn-outline-success {
    color: var(--msc-color-success);
    border-color: var(--msc-color-success);
}

html[data-theme="light"] .btn-outline-danger {
    color: var(--msc-color-danger);
    border-color: var(--msc-color-danger);
}

html[data-theme="dark"] .btn-outline-primary {
    color: var(--msc-color-link-hover);
    border-color: var(--msc-color-link);
}

html[data-theme="dark"] .btn-outline-secondary {
    color: #d7e0eb;
    border-color: var(--msc-color-border-strong);
}

html[data-theme="dark"] .btn-outline-info {
    color: var(--msc-color-info);
    border-color: var(--msc-color-info);
}

html[data-theme="dark"] .btn-outline-success {
    color: var(--msc-color-success);
    border-color: var(--msc-color-success);
}

html[data-theme="dark"] .btn-outline-danger {
    color: var(--msc-color-danger);
    border-color: var(--msc-color-danger);
}

html[data-theme="dark"] .btn-outline-primary:hover,
html[data-theme="dark"] .btn-outline-primary:focus,
html[data-theme="dark"] .btn-outline-info:hover,
html[data-theme="dark"] .btn-outline-info:focus,
html[data-theme="dark"] .btn-outline-success:hover,
html[data-theme="dark"] .btn-outline-success:focus,
html[data-theme="dark"] .btn-outline-danger:hover,
html[data-theme="dark"] .btn-outline-danger:focus {
    color: #111827;
}

html[data-theme="dark"] .btn-outline-secondary:hover,
html[data-theme="dark"] .btn-outline-secondary:focus {
    color: var(--msc-color-heading);
    background-color: var(--msc-color-surface-active);
    border-color: var(--msc-color-border-strong);
}

html[data-theme="dark"] .btn-dark {
    color: #ffffff !important;
    background-color: #334155;
    border-color: #64748b;
}

/* Formulários. */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .custom-select,
html[data-theme="dark"] .custom-file-label,
html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    color: var(--msc-color-text);
    background-color: var(--msc-color-surface-soft);
    border-color: var(--msc-color-control-border);
}

html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #9cabbc;
    opacity: 1;
}

html[data-theme="dark"] .form-control:disabled,
html[data-theme="dark"] .form-control[readonly],
html[data-theme="dark"] input:disabled,
html[data-theme="dark"] select:disabled,
html[data-theme="dark"] textarea:disabled {
    color: #aab6c5;
    background-color: #0f1623;
    opacity: 1;
}

html[data-theme="dark"] .custom-control-label::before {
    background-color: var(--msc-color-surface-soft);
    border-color: var(--msc-color-control-border);
}

html[data-theme="dark"] .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--msc-primary);
    border-color: var(--msc-primary);
}

/* Tabelas e DataTables. */
html[data-theme="dark"] .table,
html[data-theme="dark"] table {
    color: var(--msc-color-text);
    background-color: transparent;
}

html[data-theme="dark"] .table th,
html[data-theme="dark"] .table td,
html[data-theme="dark"] table th,
html[data-theme="dark"] table td {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .table thead th,
html[data-theme="dark"] .thead-sticky th,
html[data-theme="dark"] .table-light th,
html[data-theme="dark"] .table thead.thead-light th {
    color: var(--msc-color-heading);
    background-color: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd),
html[data-theme="dark"] .table-hover tbody tr:hover,
html[data-theme="dark"] .list-hover tbody tr:hover {
    color: var(--msc-color-heading);
    background-color: rgba(103, 198, 220, .08);
}

html[data-theme="dark"] .table-active,
html[data-theme="dark"] .table-active > th,
html[data-theme="dark"] .table-active > td {
    color: var(--msc-color-heading);
    background-color: var(--msc-color-surface-active);
}

html[data-theme="dark"] div.dt-container,
html[data-theme="dark"] .dataTables_wrapper,
html[data-theme="dark"] .dataTables_info,
html[data-theme="dark"] .dataTables_length,
html[data-theme="dark"] .dataTables_filter {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] div.dt-container .dt-input,
html[data-theme="dark"] .dataTables_wrapper input,
html[data-theme="dark"] .dataTables_wrapper select {
    color: var(--msc-color-text);
    background-color: var(--msc-color-surface-soft);
    border-color: var(--msc-color-control-border);
}

html[data-theme="dark"] table.dataTable > tbody > tr.child ul.dtr-details {
    color: var(--msc-color-text);
}

/* Editores, selects, calendários e diálogos de bibliotecas. */
html[data-theme="dark"] .note-editor.note-frame,
html[data-theme="dark"] .note-editor.note-airframe,
html[data-theme="dark"] .note-toolbar,
html[data-theme="dark"] .note-editable,
html[data-theme="dark"] .note-statusbar,
html[data-theme="dark"] .note-dropdown-menu,
html[data-theme="dark"] .select2-container--default .select2-selection--single,
html[data-theme="dark"] .select2-container--default .select2-selection--multiple,
html[data-theme="dark"] .select2-dropdown,
html[data-theme="dark"] .datepicker,
html[data-theme="dark"] .datepicker-dropdown,
html[data-theme="dark"] .swal2-popup {
    color: var(--msc-color-text);
    background-color: var(--msc-color-surface-raised);
    border-color: var(--msc-color-control-border);
}

html[data-theme="dark"] .note-btn,
html[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
html[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice,
html[data-theme="dark"] .select2-container--default .select2-results__option,
html[data-theme="dark"] .datepicker table tr td,
html[data-theme="dark"] .datepicker table tr th,
html[data-theme="dark"] .swal2-title,
html[data-theme="dark"] .swal2-html-container {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .note-btn,
html[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected],
html[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"],
html[data-theme="dark"] .datepicker table tr td.day:hover,
html[data-theme="dark"] .datepicker table tr td.focused {
    color: var(--msc-color-heading);
    background-color: var(--msc-color-surface-active);
}

html[data-theme="dark"] .fc,
html[data-theme="dark"] .fc-theme-standard td,
html[data-theme="dark"] .fc-theme-standard th,
html[data-theme="dark"] .fc-theme-standard .fc-scrollgrid,
html[data-theme="dark"] .calendar,
html[data-theme="dark"] .calendar .calendar-header,
html[data-theme="dark"] .calendar .calendar-body {
    color: var(--msc-color-text);
    background-color: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .fc .fc-col-header-cell,
html[data-theme="dark"] .fc .fc-daygrid-day-number,
html[data-theme="dark"] .fc .fc-list-day-text,
html[data-theme="dark"] .fc .fc-list-day-side-text {
    color: var(--msc-color-text);
}

/* Componentes compartilhados definidos em msc-theme.css. */
html[data-theme="dark"] #accordionAreas .card-header,
html[data-theme="dark"] #accordion .card-header,
html[data-theme="dark"] .thumb,
html[data-theme="dark"] .content-box,
html[data-theme="dark"] .financial-box,
html[data-theme="dark"] .html-content,
html[data-theme="dark"] .news-engagement,
html[data-theme="dark"] .news-list .news-item,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .release-notes-hero,
html[data-theme="dark"] .release-current,
html[data-theme="dark"] .release-notes-entry,
html[data-theme="dark"] .release-modal-item,
html[data-theme="dark"] .release-notes-modal .modal-content,
html[data-theme="dark"] .release-notes-modal .modal-header,
html[data-theme="dark"] .release-notes-modal .modal-footer {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] #accordionAreas .card-header a,
html[data-theme="dark"] #accordion .card-header a,
html[data-theme="dark"] .news-title a,
html[data-theme="dark"] .sigla-projeto,
html[data-theme="dark"] .value-text,
html[data-theme="dark"] .release-notes-hero h2,
html[data-theme="dark"] .release-admin-header h2,
html[data-theme="dark"] .release-entry-header h3,
html[data-theme="dark"] .release-notes-modal .modal-title {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .news-excerpt,
html[data-theme="dark"] .news-status-seen,
html[data-theme="dark"] .nome-projeto,
html[data-theme="dark"] .date-row,
html[data-theme="dark"] .label-text,
html[data-theme="dark"] .release-notes-content,
html[data-theme="dark"] .release-entry-header time,
html[data-theme="dark"] .release-notes-hero p,
html[data-theme="dark"] .release-admin-header p {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .news-meta,
html[data-theme="dark"] .news-meta-separator,
html[data-theme="dark"] .news-readmore,
html[data-theme="dark"] #btn-ver-mais {
    color: var(--msc-color-link);
}

html[data-theme="light"] .nome-projeto {
    color: #52606d;
}

html[data-theme="light"] .table-clean .text-success {
    color: #087a55 !important;
}

html[data-theme="light"] .table-clean .text-danger {
    color: #b42318 !important;
}

html[data-theme="dark"] .news-status-seen {
    color: #d6deea;
    background: #2a3342;
}

html[data-theme="dark"] .nav-pills-custom .nav-link {
    color: var(--msc-color-muted);
    background: var(--msc-color-surface-soft);
}

html[data-theme="dark"] .nav-pills-custom .nav-link:hover,
html[data-theme="dark"] .nav-pills-custom .nav-link.active {
    color: var(--msc-color-link-hover) !important;
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

/* Estados por conceito preservam significado sem depender apenas da cor. */
html[data-theme="dark"] .tipo-verde,
html[data-theme="dark"] .impacto-verde,
html[data-theme="dark"] .prazo-alert.text-success {
    color: #a9edd5 !important;
    background-color: #123c31 !important;
    border-color: #276b57 !important;
}

html[data-theme="dark"] .tipo-azul,
html[data-theme="dark"] .impacto-azul {
    color: #b8d7ff !important;
    background-color: #172f50 !important;
    border-color: #315b8f !important;
}

html[data-theme="dark"] .tipo-amarelo,
html[data-theme="dark"] .impacto-amarelo,
html[data-theme="dark"] .prazo-alert,
html[data-theme="dark"] .prazo-alert.text-warning {
    color: #ffe7a0 !important;
    background-color: #443713 !important;
    border-color: #7c6422 !important;
}

html[data-theme="dark"] .tipo-vermelho,
html[data-theme="dark"] .impacto-vermelho,
html[data-theme="dark"] .prazo-alert.text-danger {
    color: #ffc0bc !important;
    background-color: #49201f !important;
    border-color: #873b36 !important;
}

html[data-theme="dark"] .tipo-roxo,
html[data-theme="dark"] .impacto-roxo {
    color: #dbc5ff !important;
    background-color: #32234c !important;
    border-color: #61498c !important;
}

html[data-theme="dark"] .tipo-cinza,
html[data-theme="dark"] .impacto-cinza {
    color: #d6deea !important;
    background-color: #2a3342 !important;
    border-color: #586579 !important;
}

/* Ecossistema, Miolo, Chat, SharePoint, calendário e painéis locais. */
html[data-theme="dark"] .ecosystem-modern,
html[data-theme="dark"] .ecosystem-workspace,
html[data-theme="dark"] .ecosystem-list-page,
html[data-theme="dark"] .my-actions-page,
html[data-theme="dark"] .miolo-app,
html[data-theme="dark"] .chat-shell,
html[data-theme="dark"] .sharepoint-explorer,
html[data-theme="dark"] .birthday-page,
html[data-theme="dark"] .corporativo-calendar,
html[data-theme="dark"] .goals-page {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .capture-modal,
html[data-theme="dark"] .capture-composer__context,
html[data-theme="dark"] .capture-composer__intent,
html[data-theme="dark"] .capture-composer .capture-intent-card,
html[data-theme="dark"] .capture-composer__form,
html[data-theme="dark"] .ecosystem-modern .kpi-card,
html[data-theme="dark"] .ecosystem-modern .kanban-column,
html[data-theme="dark"] .ecosystem-modern .trace-node,
html[data-theme="dark"] .ecosystem-workspace .workspace-card,
html[data-theme="dark"] .my-actions-page .my-actions-card {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .capture-composer__intent,
html[data-theme="dark"] .capture-composer__context,
html[data-theme="dark"] .capture-intent-card__icon {
    background: var(--msc-color-surface-soft);
}

html[data-theme="dark"] .capture-composer__context,
html[data-theme="dark"] .capture-composer__eyebrow,
html[data-theme="dark"] .capture-composer__intent-heading > small {
    color: var(--msc-color-muted);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .capture-composer__context strong,
html[data-theme="dark"] .capture-composer__intent-heading > span {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .capture-composer .capture-intent-card:hover,
html[data-theme="dark"] .capture-composer .capture-intent-card.active {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-active);
    border-color: var(--msc-color-link);
}

/*
 * Alguns módulos declaram os próprios tokens diretamente no contêiner.
 * Reaplicá-los no mesmo elemento evita que a especificidade local mantenha
 * superfícies claras dentro do tema escuro.
 */
html[data-theme="dark"] .chat-app {
    --chat-border: var(--msc-color-border);
    --chat-panel: var(--msc-color-surface);
    --chat-muted: var(--msc-color-muted);
    --chat-text: var(--msc-color-text);
    --chat-accent: #62d2c8;
    --chat-accent-strong: #8ae3db;
    --chat-soft: var(--msc-color-surface-soft);
}

html[data-theme="dark"] .sp-explorer,
html[data-theme="dark"] .sp-link-manager {
    --sp-surface: var(--msc-color-surface);
    --sp-surface-muted: var(--msc-color-surface-soft);
    --sp-text: var(--msc-color-text);
    --sp-muted: var(--msc-color-muted);
    --sp-line: var(--msc-color-border);
    --sp-primary: #67c6dc;
    --sp-primary-dark: #9eddeb;
    --sp-primary-soft: #15333b;
    --sp-shadow: 0 16px 42px rgba(0, 0, 0, .32);
}

html[data-theme="dark"] .corporate-calendar {
    --calendar-border: var(--msc-color-border);
    --calendar-muted: var(--msc-color-muted);
    --calendar-surface: var(--msc-color-surface);
    --calendar-subtle: var(--msc-color-surface-soft);
    color: var(--msc-color-text);
}

html[data-theme="dark"] .birthday-page {
    --birthday-ink: var(--msc-color-text);
    --birthday-muted: var(--msc-color-muted);
    --birthday-border: var(--msc-color-border);
    --birthday-surface: var(--msc-color-surface);
    --birthday-accent: #216b7d;
    --birthday-accent-dark: #125666;
    --birthday-accent-soft: #15333b;
}

html[data-theme="dark"] .goals-index {
    --goals-primary: #67c6dc;
    --goals-primary-dark: #216b7d;
    --goals-primary-soft: #15333b;
    --goals-ink: var(--msc-color-text);
    --goals-muted: var(--msc-color-muted);
    --goals-border: var(--msc-color-border);
    --goals-surface: var(--msc-color-surface);
    --goals-canvas: var(--msc-color-canvas);
}

html[data-theme="dark"] .ecosystem-container {
    --ecosystem-workspace-border: var(--msc-color-border);
    --ecosystem-workspace-border-strong: var(--msc-color-border-strong);
    --ecosystem-workspace-canvas: var(--msc-color-canvas);
    --ecosystem-workspace-ink: var(--msc-color-text);
    --ecosystem-workspace-muted: var(--msc-color-muted);
    --ecosystem-workspace-primary: #67c6dc;
    --ecosystem-workspace-primary-dark: #9eddeb;
    --ecosystem-workspace-primary-soft: #15333b;
    --gray-light: var(--msc-color-surface-soft);
    --text-dark: var(--msc-color-heading);
    --text-muted: var(--msc-color-muted);
    --success: #62d2aa;
    --success-bg: #123c31;
    --warning: #f6d56f;
    --warning-bg: #443713;
    --danger: #ff9c96;
    --danger-bg: #49201f;
    --situation: #62d2aa;
    --situation-bg: #123c31;
    --info: #75d4e6;
    --info-bg: #163d49;
}

html[data-theme="dark"] .ecosystem-list-container {
    --gray-light: var(--msc-color-surface-soft);
    --text-dark: var(--msc-color-heading);
    --text-muted: var(--msc-color-muted);
    --ecosystem-list-brand: var(--msc-color-link);
    --ecosystem-list-brand-dark: #125666;
    --ecosystem-list-canvas: var(--msc-color-surface-soft);
    --ecosystem-list-ink: var(--msc-color-text);
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minhas-acoes-page {
    --my-actions-border: var(--msc-color-border);
    --my-actions-muted: var(--msc-color-muted);
    --my-actions-surface: var(--msc-color-surface);
    --my-actions-soft: var(--msc-color-surface-soft);
}

html[data-theme="dark"] .inflacao-shell {
    --inflacao-positive: #ff9c96;
    --inflacao-positive-soft: #49201f;
    --inflacao-negative: #62d2aa;
    --inflacao-negative-soft: #123c31;
    --inflacao-ink: var(--msc-color-text);
    --inflacao-muted: var(--msc-color-muted);
    --inflacao-line: var(--msc-color-border);
}

html[data-theme="dark"] .pomodoro-page {
    --pomodoro-ink: var(--msc-color-text);
    --pomodoro-muted: var(--msc-color-muted);
    --pomodoro-line: var(--msc-color-border);
    --pomodoro-soft: var(--msc-color-surface-soft);
    --pomodoro-focus: #ff9c96;
    --pomodoro-active: #ff9c96;
    --pomodoro-active-rgb: 255, 156, 150;
}

html[data-theme="dark"] .pomodoro-page[data-mode="shortBreak"] {
    --pomodoro-active: #62d2aa;
    --pomodoro-active-rgb: 98, 210, 170;
}

html[data-theme="dark"] .pomodoro-page[data-mode="longBreak"] {
    --pomodoro-active: #b8c2ff;
    --pomodoro-active-rgb: 184, 194, 255;
}

html[data-theme="dark"] .enq-page {
    --enq-border: var(--msc-color-border);
    --enq-ink: var(--msc-color-text);
    --enq-muted: var(--msc-color-muted);
    --enq-soft: var(--msc-color-surface-soft);
    --enq-success: #62d2aa;
}

/* Superfícies codificadas em folhas locais. */
html[data-theme="dark"] .chat-sidebar,
html[data-theme="dark"] .chat-search,
html[data-theme="dark"] .chat-tabs button,
html[data-theme="dark"] .chat-filter-chips button,
html[data-theme="dark"] .chat-thread,
html[data-theme="dark"] .chat-send-button,
html[data-theme="dark"] .chat-load-history button,
html[data-theme="dark"] .chat-date-separator,
html[data-theme="dark"] .chat-bubble,
html[data-theme="dark"] .chat-message-retry button,
html[data-theme="dark"] .chat-reaction-actions button,
html[data-theme="dark"] .chat-receipt-panel,
html[data-theme="dark"] .chat-receipt-header button,
html[data-theme="dark"] .chat-notification-panel,
html[data-theme="dark"] .chat-notification-actions button,
html[data-theme="dark"] .chat-file-link,
html[data-theme="dark"] .chat-attachment-chip,
html[data-theme="dark"] .chat-emoji-tray,
html[data-theme="dark"] .chat-composer,
html[data-theme="dark"] .chat-composer-editor .note-editing-area .note-editable,
html[data-theme="dark"] .chat-toast {
    color: var(--chat-text);
    background: var(--chat-panel);
    border-color: var(--chat-border);
}

html[data-theme="dark"] .chat-messages {
    background: linear-gradient(180deg, var(--msc-color-surface) 0%, var(--msc-color-surface-soft) 100%);
}

html[data-theme="dark"] .chat-list-status-item {
    color: var(--chat-muted);
    background: var(--chat-soft);
    border-color: var(--chat-border);
}

html[data-theme="dark"] .chat-list-skeleton .chat-avatar,
html[data-theme="dark"] .chat-list-skeleton .chat-list-title,
html[data-theme="dark"] .chat-list-skeleton .chat-list-subtitle,
html[data-theme="dark"] .chat-list-skeleton .chat-list-flags {
    background: linear-gradient(90deg, #253044 0%, #344056 45%, #253044 100%);
}

html[data-theme="dark"] .chat-avatar {
    color: var(--msc-color-link-hover);
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .chat-sync-button {
    color: #a9edd5;
    background: #123c31;
    border-color: #276b57;
}

html[data-theme="dark"] .chat-sync-button.syncing {
    color: #172033;
    background: #a9edd5;
    border-color: #a9edd5;
}

html[data-theme="dark"] .chat-status-pill.connecting,
html[data-theme="dark"] .chat-icon-button.active {
    color: #f6d56f;
    background: #443713;
}

html[data-theme="dark"] .chat-status-pill.offline,
html[data-theme="dark"] .chat-list-status-item.error,
html[data-theme="dark"] .chat-icon-button.denied,
html[data-theme="dark"] .chat-message-row.local-failed .chat-bubble,
html[data-theme="dark"] .chat-message-retry button:hover:not(:disabled),
html[data-theme="dark"] .chat-notification-permission.unavailable {
    color: #ffb4ae;
    background: #49201f;
}

html[data-theme="dark"] .sp-explorer {
    background:
        radial-gradient(circle at 12% 0, rgba(103, 198, 220, .12), transparent 28%),
        linear-gradient(135deg, var(--msc-color-canvas), var(--msc-color-surface-soft) 52%, var(--msc-color-canvas));
}

html[data-theme="dark"] .miolo-sidebar,
html[data-theme="dark"] .miolo-sidebar-foot,
html[data-theme="dark"] .miolo-workbench,
html[data-theme="dark"] .miolo-topbar,
html[data-theme="dark"] .miolo-page-shell {
    color: var(--miolo-text);
    background: var(--miolo-surface);
    border-color: var(--miolo-border);
}

html[data-theme="dark"] .miolo-sidebar,
html[data-theme="dark"] .miolo-sidebar-foot {
    background: var(--miolo-surface-soft);
}

html[data-theme="dark"] .miolo-search,
html[data-theme="dark"] .miolo-action-btn,
html[data-theme="dark"] .miolo-soft-btn,
html[data-theme="dark"] .miolo-page-icon {
    color: var(--miolo-soft-text);
    background: var(--miolo-surface);
    border-color: var(--miolo-border);
}

html[data-theme="dark"] .miolo-brand {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .miolo-save-state,
html[data-theme="dark"] .miolo-top-action-group {
    color: var(--miolo-muted);
    background: var(--miolo-surface-soft);
    border-color: var(--miolo-border);
}

html[data-theme="dark"] .miolo-badge {
    color: #fff;
    background: #a63d00;
}

/*
 * Miolo: capas sem imagem, propriedades de registros e estados da árvore
 * possuem cores claras próprias no módulo e precisam de adaptação explícita.
 */
html[data-theme="dark"] .miolo-cover:not(.has-image) {
    background-image: linear-gradient(
        rgba(17, 24, 39, .82),
        rgba(17, 24, 39, .82)
    );
    border-color: var(--miolo-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

html[data-theme="dark"] .miolo-tree-row:hover,
html[data-theme="dark"] .miolo-tree-row:focus-within,
html[data-theme="dark"] .miolo-block:hover,
html[data-theme="dark"] .miolo-block:focus-within {
    color: var(--miolo-text);
    background: var(--miolo-surface-raised);
}

html[data-theme="dark"] .miolo-tree-row.active,
html[data-theme="dark"] .miolo-tree-row.drop-target {
    color: var(--msc-color-link-hover);
    background: var(--miolo-accent-soft);
}

html[data-theme="dark"] .miolo-tree-row.drop-target {
    box-shadow: inset 0 0 0 1px var(--miolo-accent);
}

html[data-theme="dark"] .miolo-chip,
html[data-theme="dark"] .miolo-select-chip,
html[data-theme="dark"] .miolo-relation-chip {
    color: var(--miolo-soft-text);
    background: var(--miolo-surface-raised);
    border-color: var(--miolo-border);
}

html[data-theme="dark"] .miolo-required-chip,
html[data-theme="dark"] .miolo-chip.danger {
    color: var(--msc-color-danger);
    background: #49201f;
    border-color: #8f4542;
}

html[data-theme="dark"] .miolo-record-property-field .miolo-record-input,
html[data-theme="dark"] .miolo-record-property-field .miolo-record-select,
html[data-theme="dark"] .miolo-record-property-field .miolo-record-date,
html[data-theme="dark"] .miolo-form-grid .miolo-record-input,
html[data-theme="dark"] .miolo-form-grid .miolo-record-select,
html[data-theme="dark"] .miolo-form-grid .miolo-record-date,
html[data-theme="dark"] .miolo-field input,
html[data-theme="dark"] .miolo-field select,
html[data-theme="dark"] .miolo-field textarea,
html[data-theme="dark"] .miolo-relation-picker .miolo-record-input {
    color: var(--miolo-text);
    background: var(--miolo-surface-soft);
    border-color: var(--miolo-border-strong);
}

html[data-theme="dark"] .miolo-record-input::placeholder,
html[data-theme="dark"] .miolo-field input::placeholder,
html[data-theme="dark"] .miolo-field textarea::placeholder {
    color: var(--miolo-muted);
    opacity: 1;
}

html[data-theme="dark"] .miolo-record-input:focus,
html[data-theme="dark"] .miolo-record-select:focus,
html[data-theme="dark"] .miolo-record-date:focus,
html[data-theme="dark"] .miolo-field input:focus,
html[data-theme="dark"] .miolo-field select:focus,
html[data-theme="dark"] .miolo-field textarea:focus {
    color: var(--miolo-text);
    background: var(--miolo-surface-raised);
    border-color: var(--msc-color-link);
    box-shadow: 0 0 0 3px rgba(103, 198, 220, .2);
}

html[data-theme="dark"] .miolo-record-input:disabled,
html[data-theme="dark"] .miolo-record-select:disabled,
html[data-theme="dark"] .miolo-record-date:disabled {
    color: var(--miolo-muted);
    opacity: 1;
}

html[data-theme="dark"] .ecosystem-context-finder,
html[data-theme="dark"] .ecosystem-context-finder-copy,
html[data-theme="dark"] .ecosystem-list-container .ecosystem-context-tabs,
html[data-theme="dark"] .ecosystem-list-container .ecosystem-context-tabs .view-toggle-btn + .view-toggle-btn,
html[data-theme="dark"] .ecosystem-list-container .eco-meta,
html[data-theme="dark"] .ecosystem-list-container .eco-footer {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-context-finder-copy h3,
html[data-theme="dark"] .ecosystem-list-container .eco-title {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .ecosystem-context-finder-copy > span {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .ecosystem-list-container .ecosystem-context-search {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-control-border);
}

html[data-theme="dark"] .ecosystem-list-container .ecosystem-context-tabs .view-toggle-btn,
html[data-theme="dark"] .ecosystem-list-container .eco-context-index,
html[data-theme="dark"] .ecosystem-list-container .eco-context-code,
html[data-theme="dark"] .ecosystem-list-container .eco-desc,
html[data-theme="dark"] .ecosystem-list-container .eco-meta,
html[data-theme="dark"] .ecosystem-list-container .ecosystem-search-status {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .ecosystem-list-container .ecosystem-context-tabs .view-toggle-btn.active {
    color: var(--msc-color-link-hover);
    background: var(--msc-primary-50);
    border-bottom-color: var(--msc-color-link);
}

html[data-theme="dark"] .ecosystem-list-container .eco-card {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-left-color: var(--msc-color-link);
}

html[data-theme="dark"] .ecosystem-list-container .eco-desc b {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .ecosystem-list-container .eco-member {
    color: var(--msc-color-link-hover);
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .ecosystem-list-container .btn-access {
    color: #fff !important;
    background: #216b7d;
    border-color: #216b7d;
}

/*
 * Ecossistema legado (List e Index). As duas views ainda usam as superfícies
 * claras literais de ecosystem.css; estes seletores ficam restritos aos
 * contêineres do módulo e preservam os estados semânticos.
 */
html[data-theme="dark"] .ecosystem-list-container > .project-header-card,
html[data-theme="dark"] .ecosystem-container > .project-header-card {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-raised);
    border-color: var(--msc-color-border);
    box-shadow: 0 12px 28px var(--msc-color-shadow);
}

html[data-theme="dark"] .ecosystem-list-container > .project-header-card h2,
html[data-theme="dark"] .ecosystem-container > .project-header-card h2 {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .ecosystem-list-container > .project-header-card p,
html[data-theme="dark"] .ecosystem-container > .project-header-card p {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .ecosystem-container > .project-header-card .btn-outline-secondary {
    color: var(--msc-color-link-hover);
    border-color: var(--msc-color-link);
}

html[data-theme="dark"] .ecosystem-list-container > .view-toggle-nav,
html[data-theme="dark"] .ecosystem-container > .view-toggle-nav {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border: 1px solid var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-list-container > .view-toggle-nav .view-toggle-btn,
html[data-theme="dark"] .ecosystem-container > .view-toggle-nav .view-toggle-btn {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .ecosystem-list-container > .view-toggle-nav .view-toggle-btn:hover:not(.active),
html[data-theme="dark"] .ecosystem-container > .view-toggle-nav .view-toggle-btn:hover:not(.active) {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .ecosystem-list-container > .view-toggle-nav .view-toggle-btn.active,
html[data-theme="dark"] .ecosystem-container > .view-toggle-nav .view-toggle-btn.active {
    color: var(--msc-color-link-hover);
    background: var(--msc-primary-50);
    box-shadow:
        inset 0 0 0 1px var(--msc-color-link),
        0 4px 12px var(--msc-color-shadow);
}

html[data-theme="dark"] .ecosystem-list-container > .view-toggle-nav .badge-count {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .ecosystem-list-container > .view-toggle-nav .view-toggle-btn.active .badge-count {
    color: #172033;
    background: var(--msc-color-link);
}

html[data-theme="dark"] .ecosystem-list-container .eco-card {
    border-color: var(--msc-color-border);
    border-left-color: var(--msc-color-link);
}

html[data-theme="dark"] .ecosystem-list-container .eco-card:hover {
    border-color: var(--msc-color-link);
    box-shadow: 0 18px 36px -18px var(--msc-color-shadow);
}

html[data-theme="dark"] .ecosystem-list-container .eco-footer {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-list-container .eco-member {
    border-color: var(--msc-color-border-strong);
}

html[data-theme="dark"] .ecosystem-list-container .eco-badge.project-badge {
    color: #fff;
    background: #216b7d;
}

html[data-theme="dark"] .ecosystem-list-container .eco-badge.area-badge {
    color: #fff;
    background: #0d6173;
}

html[data-theme="dark"] .ecosystem-list-container .empty-state {
    color: var(--msc-color-muted);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-control-border);
}

html[data-theme="dark"] .ecosystem-container > .legend-container {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
    box-shadow: 0 8px 20px var(--msc-color-shadow);
}

html[data-theme="dark"] .ecosystem-container > .legend-container .legend-label {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .ecosystem-container > .lifecycle-guide-banner {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
    box-shadow: 0 8px 20px var(--msc-color-shadow);
}

html[data-theme="dark"] .ecosystem-container > .lifecycle-guide-banner h5 {
    color: var(--msc-color-link-hover) !important;
}

html[data-theme="dark"] .ecosystem-container > .lifecycle-guide-banner p {
    color: var(--msc-color-muted) !important;
}

html[data-theme="dark"] .ecosystem-container .lifecycle-step {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
    box-shadow: none;
}

html[data-theme="dark"] .ecosystem-container .lifecycle-arrow {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .ecosystem-container .kpi-card {
    color: var(--msc-color-text);
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-container .kpi-label {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .ecosystem-container .kpi-danger .kpi-number,
html[data-theme="dark"] .ecosystem-container .kpi-critical .kpi-number {
    color: #ffb4ae;
}

html[data-theme="dark"] .ecosystem-container .kpi-situation .kpi-number,
html[data-theme="dark"] .ecosystem-container .kpi-success .kpi-number {
    color: #a9edd5;
}

html[data-theme="dark"] .ecosystem-container .kpi-warning .kpi-number {
    color: #ffe7a0;
}

html[data-theme="dark"] .ecosystem-container .kpi-info .kpi-number {
    color: #a8e9f4;
}

html[data-theme="dark"] .ecosystem-container .kpi-primary .kpi-number {
    color: #ccd1ff;
}

html[data-theme="dark"] .ecosystem-container .kpi-danger .kpi-icon,
html[data-theme="dark"] .ecosystem-container .kpi-critical .kpi-icon {
    color: #ffc0bc;
    background: #49201f;
}

html[data-theme="dark"] .ecosystem-container .kpi-situation .kpi-icon,
html[data-theme="dark"] .ecosystem-container .kpi-success .kpi-icon {
    color: #a9edd5;
    background: #123c31;
}

html[data-theme="dark"] .ecosystem-container .kpi-warning .kpi-icon {
    color: #ffe7a0;
    background: #443713;
}

html[data-theme="dark"] .ecosystem-container .kpi-info .kpi-icon {
    color: #a8e9f4;
    background: #163d49;
}

html[data-theme="dark"] .ecosystem-container .kpi-primary .kpi-icon {
    color: #ccd1ff;
    background: #293253;
}

html[data-theme="dark"] .ecosystem-container .kpi-progress-bar {
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .ecosystem-container > .capture-trigger-banner {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-raised);
    border-color: var(--msc-color-border);
    box-shadow: 0 12px 28px var(--msc-color-shadow);
}

html[data-theme="dark"] .ecosystem-container > .capture-trigger-banner:hover {
    border-color: var(--msc-color-link);
    box-shadow: 0 16px 34px var(--msc-color-shadow);
}

html[data-theme="dark"] .ecosystem-container .trigger-text h4 {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .ecosystem-container .trigger-text p {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .ecosystem-container .trigger-icon {
    color: #fff;
    background: linear-gradient(135deg, #a65f00 0%, #7a4700 100%);
}

html[data-theme="dark"] .ecosystem-container .kanban-board-title {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .ecosystem-container .kanban-column {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-container .kanban-column-title,
html[data-theme="dark"] .ecosystem-container .user-avatar-tag {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .ecosystem-container .kanban-column-count {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .ecosystem-container .kanban-card {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-raised);
    border-color: var(--msc-color-border);
    box-shadow: 0 5px 14px var(--msc-color-shadow);
}

html[data-theme="dark"] .ecosystem-container .kanban-card:hover {
    border-color: var(--msc-color-border-strong);
    box-shadow: 0 9px 22px var(--msc-color-shadow);
}

html[data-theme="dark"] .ecosystem-container .card-title {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .ecosystem-container .card-desc,
html[data-theme="dark"] .ecosystem-container .card-footer-info {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .ecosystem-container .card-footer-info {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-container .card-open-link,
html[data-theme="dark"] .ecosystem-container .trace-open-link {
    color: var(--msc-color-link-hover);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-control-border);
}

html[data-theme="dark"] .ecosystem-container .card-open-link:hover,
html[data-theme="dark"] .ecosystem-container .trace-open-link:hover {
    color: var(--msc-color-heading);
    background: var(--msc-primary-50);
    border-color: var(--msc-color-link);
}

html[data-theme="dark"] .ecosystem-container .priority-indicator.baixa {
    color: #d6deea;
    background: #2a3342;
}

html[data-theme="dark"] .ecosystem-container .priority-indicator.media {
    color: #ffe7a0;
    background: #443713;
}

html[data-theme="dark"] .ecosystem-container .priority-indicator.alta,
html[data-theme="dark"] .ecosystem-container .priority-indicator.critica {
    color: #ffc0bc;
    background: #49201f;
}

html[data-theme="dark"] .ecosystem-container .wiki-search-box,
html[data-theme="dark"] .ecosystem-container .trace-item-node,
html[data-theme="dark"] .ecosystem-container .crm-card {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-container .trace-node-header,
html[data-theme="dark"] .ecosystem-container .trace-note-item,
html[data-theme="dark"] .ecosystem-container .backlink-item,
html[data-theme="dark"] .ecosystem-container .crm-column {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft) !important;
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-container .trace-notes-list {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-container .trace-note-meta {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .ecosystem-container .trace-children-section::before,
html[data-theme="dark"] .ecosystem-container .timeline-vertical::before {
    background: var(--msc-color-border-strong);
}

html[data-theme="dark"] .ecosystem-container .tag-badge,
html[data-theme="dark"] .ecosystem-container .crm-avatar {
    color: var(--msc-color-link-hover) !important;
    background: var(--msc-color-surface-active) !important;
}

html[data-theme="dark"] .ecosystem-container > .sidebar-drawer {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
    box-shadow: -12px 0 36px var(--msc-color-shadow);
}

html[data-theme="dark"] .ecosystem-container > .sidebar-drawer > .drawer-header {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-raised) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .ecosystem-container > .sidebar-drawer > .drawer-header h4 {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .ecosystem-container > .sidebar-drawer > .drawer-header p {
    color: var(--msc-color-link-hover) !important;
}

html[data-theme="dark"] .ecosystem-container > .sidebar-drawer .drawer-close-btn {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .ecosystem-container > .sidebar-drawer > .drawer-body {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
}

html[data-theme="dark"] .ecosystem-container > .sidebar-drawer .bg-light,
html[data-theme="dark"] .ecosystem-container > .sidebar-drawer [id$="-notes-list"] {
    color: var(--msc-color-text) !important;
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .ecosystem-container > .sidebar-drawer label,
html[data-theme="dark"] .ecosystem-container > .sidebar-drawer .text-muted {
    color: var(--msc-color-muted) !important;
}

html[data-theme="dark"] .ecosystem-container > .sidebar-drawer .form-control,
html[data-theme="dark"] .ecosystem-container > .sidebar-drawer .form-select {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-control-border);
}

html[data-theme="dark"] .ecosystem-container > .sidebar-drawer .form-control-plaintext {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .ecosystem-container > .sidebar-drawer .timeline-vertical-item::before {
    background: var(--msc-color-surface);
}

html[data-theme="dark"] .ecosystem-container .capture-modal.ecosystem-status-modal .capture-modal-header,
html[data-theme="dark"] .ecosystem-container .ecosystem-status-tabs,
html[data-theme="dark"] .ecosystem-container .ecosystem-status-create {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-status-row,
html[data-theme="dark"] .ecosystem-container .ecosystem-status-check,
html[data-theme="dark"] .ecosystem-container .ecosystem-status-total {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-status-tab {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-status-tab small,
html[data-theme="dark"] .ecosystem-container .ecosystem-status-field > span,
html[data-theme="dark"] .ecosystem-container .ecosystem-status-panel-header p {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-status-tab:hover,
html[data-theme="dark"] .ecosystem-container .ecosystem-status-tab.active {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-active);
    border-color: var(--msc-color-border-strong);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-status-panel-header h5,
html[data-theme="dark"] .ecosystem-container .ecosystem-status-create-title {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-status-check span {
    color: var(--msc-color-text) !important;
}

html[data-theme="dark"] .ecosystem-container .capture-modal.ecosystem-status-modal .form-control,
html[data-theme="dark"] .ecosystem-container .capture-modal.ecosystem-status-modal .form-select {
    color: var(--msc-color-text) !important;
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-control-border) !important;
}

html[data-theme="dark"] .sp-sidebar,
html[data-theme="dark"] .sp-library-icon,
html[data-theme="dark"] .sp-stat,
html[data-theme="dark"] .sp-toolbar,
html[data-theme="dark"] .sp-icon-button,
html[data-theme="dark"] .sp-manager-card,
html[data-theme="dark"] .sp-select,
html[data-theme="dark"] .sp-items.is-grid .sp-item,
html[data-theme="dark"] .sp-empty-state,
html[data-theme="dark"] .sp-secondary-button,
html[data-theme="dark"] .sp-move-row,
html[data-theme="dark"] .sp-link-card {
    color: var(--sp-text);
    background: var(--sp-surface);
    border-color: var(--sp-line);
}

html[data-theme="dark"] .sp-list-card,
html[data-theme="dark"] .sp-details,
html[data-theme="dark"] .sp-list-tools,
html[data-theme="dark"] .sp-search input,
html[data-theme="dark"] .sp-list-header,
html[data-theme="dark"] .sp-item {
    color: var(--sp-text);
    background: var(--sp-surface);
    border-color: var(--sp-line);
}

html[data-theme="dark"] .sp-list-header {
    color: var(--sp-muted);
    background: var(--sp-surface-muted);
}

html[data-theme="dark"] .sp-item:hover,
html[data-theme="dark"] .sp-item.is-selected,
html[data-theme="dark"] .sp-item.is-selected:hover {
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .sp-item-meta,
html[data-theme="dark"] .sp-item-name small,
html[data-theme="dark"] .sp-list-header span {
    color: var(--sp-muted);
}

html[data-theme="dark"] .sp-command {
    color: var(--sp-text);
}

html[data-theme="dark"] .sp-command:disabled {
    color: var(--sp-muted);
    opacity: .72;
}

html[data-theme="dark"] .calendar-hero,
html[data-theme="dark"] .inflacao-hero {
    background: linear-gradient(135deg, var(--msc-primary-50), var(--msc-color-surface) 72%);
}

html[data-theme="dark"] .calendar-icon-button,
html[data-theme="dark"] .calendar-view-button.is-active,
html[data-theme="dark"] .calendar-metric,
html[data-theme="dark"] .calendar-day-details,
html[data-theme="dark"] .calendar-mstar.calendar table.month,
html[data-theme="dark"] .calendar-list-item,
html[data-theme="dark"] .birthday-next-person,
html[data-theme="dark"] .birthday-search:focus,
html[data-theme="dark"] .birthday-view-button.is-active,
html[data-theme="dark"] .birthday-card,
html[data-theme="dark"] .birthday-empty-search,
html[data-theme="dark"] .birthday-orbit-tooltip,
html[data-theme="dark"] .goals-cycle-tab,
html[data-theme="dark"] .goals-filter-bar .form-control,
html[data-theme="dark"] .goals-panel-card,
html[data-theme="dark"] .goals-panel-toggle,
html[data-theme="dark"] .goals-detail-section,
html[data-theme="dark"] .goals-project-table-wrap,
html[data-theme="dark"] .goals-help,
html[data-theme="dark"] .inflacao-freshness,
html[data-theme="dark"] .inflacao-nav,
html[data-theme="dark"] .inflacao-kpi,
html[data-theme="dark"] .inflacao-panel,
html[data-theme="dark"] .inflacao-sgs-card,
html[data-theme="dark"] .pomodoro-header,
html[data-theme="dark"] .pomodoro-panel,
html[data-theme="dark"] .pomodoro-mode,
html[data-theme="dark"] .pomodoro-ring-inner,
html[data-theme="dark"] .enq-header,
html[data-theme="dark"] .enq-panel,
html[data-theme="dark"] .enq-guide-steps li > span,
html[data-theme="dark"] .enq-step,
html[data-theme="dark"] .enq-status-legend span,
html[data-theme="dark"] .enq-document-order,
html[data-theme="dark"] .enq-actions {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minhas-acoes-workspace,
html[data-theme="dark"] .minhas-acoes-page .card,
html[data-theme="dark"] .minhas-acoes-page .modal-content {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

/*
 * Minhas atividades / Horizonte pessoal.
 * O módulo possui uma camada visual própria carregada antes desta folha. Os
 * ajustes abaixo preservam a composição e trocam apenas superfícies e pares de
 * cor. Os pares semânticos mantêm contraste AA nos dois modos.
 */
html[data-theme="light"] .minhas-acoes-page {
    --my-actions-muted: var(--msc-color-muted);
}

html[data-theme="light"] .minhas-acoes-page .avatar-circle {
    color: #fff;
    background: #2563eb;
}

html[data-theme="light"] .minhas-acoes-page .minhas-acoes-date-text.text-danger {
    color: var(--msc-color-danger) !important;
}

html[data-theme="light"] #minhas-acoes-filter-count {
    color: var(--msc-color-muted);
}

html[data-theme="light"] .minha-acao-delete-btn,
html[data-theme="light"] .minha-acao-dialog-actions .btn-outline-secondary {
    color: var(--msc-color-muted);
}

html[data-theme="light"] .minha-acao-dialog-actions .btn-outline-secondary {
    border-color: var(--msc-color-control-border);
}

html[data-theme="light"] .minha-acao-dialog .form-select,
html[data-theme="light"] .minha-acao-dialog .minha-acao-file-picker,
html[data-theme="light"] .minha-acao-dialog .minha-acao-file-trigger {
    border-color: var(--msc-color-control-border);
}

html[data-theme="light"] .minha-acao-dialog .form-select:hover {
    border-color: var(--msc-color-control-border);
}

html[data-theme="light"] .minha-acao-dialog .minha-acao-file-picker {
    background: var(--msc-color-surface-raised);
}

html[data-theme="dark"] .minhas-acoes-page {
    --my-actions-border: var(--msc-color-border);
    --my-actions-muted: var(--msc-color-muted);
    --my-actions-surface: var(--msc-color-surface);
    --my-actions-soft: var(--msc-color-surface-soft);
    --my-actions-brand: var(--msc-color-link);
    --my-actions-brand-dark: #125666;
    --my-actions-brand-soft: #15333b;
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

/*
 * Compatibilidade com a composição original de Minhas atividades. A view ainda
 * usa o cabeçalho e as abas compartilhadas do Ecosystem, que possuem fundos
 * claros literais em ecosystem.css.
 */
html[data-theme="dark"] .minhas-acoes-page .project-header-card {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-raised);
    border-color: var(--msc-color-border);
    box-shadow: 0 12px 28px var(--msc-color-shadow);
}

html[data-theme="dark"] .minhas-acoes-page .project-info-title h2 {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .minhas-acoes-page .project-info-title p {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .minhas-acoes-page .project-header-card .btn-outline-secondary {
    color: var(--msc-color-link-hover);
    border-color: var(--msc-color-link);
}

html[data-theme="dark"] .minhas-acoes-page .minhas-acoes-tabs {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border: 1px solid var(--msc-color-border);
}

html[data-theme="dark"] .minhas-acoes-tabs .view-toggle-btn {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .minhas-acoes-tabs .view-toggle-btn .badge-count {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .minhas-acoes-tabs .view-toggle-btn:hover:not(.active) {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .minhas-acoes-tabs .view-toggle-btn.active {
    color: var(--msc-color-link-hover);
    background: var(--msc-primary-50);
    box-shadow:
        inset 0 0 0 1px var(--msc-color-link),
        0 4px 12px var(--msc-color-shadow);
}

html[data-theme="dark"] .minhas-acoes-tabs .view-toggle-btn.active .badge-count {
    color: #172033;
    background: var(--msc-color-link);
}

html[data-theme="dark"] .minhas-acoes-horizon-header .project-info-title p,
html[data-theme="dark"] .minhas-acoes-horizon-header .minhas-acoes-date-line,
html[data-theme="dark"] .minha-acao-dialog-heading p,
html[data-theme="dark"] #minha-acao-drawer #minha-acao-contexto {
    color: #e0f0f3 !important;
    opacity: 1;
}

html[data-theme="dark"] .minhas-acoes-focus {
    --my-actions-focus-accent: var(--msc-color-link-hover);
    --my-actions-focus-surface: #15333b;
    color: var(--msc-color-text);
    background: var(--my-actions-focus-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minhas-acoes-focus.is-overdue {
    --my-actions-focus-accent: #ffaaa3;
    --my-actions-focus-surface: #49201f;
}

html[data-theme="dark"] .minhas-acoes-focus.is-today {
    --my-actions-focus-accent: #ffe7a0;
    --my-actions-focus-surface: #443713;
}

html[data-theme="dark"] .minhas-acoes-focus.is-clear {
    --my-actions-focus-accent: #a9edd5;
    --my-actions-focus-surface: #123c31;
}

html[data-theme="dark"] .minhas-acoes-focus-copy h3 {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .minhas-acoes-focus-copy p,
html[data-theme="dark"] .minhas-acoes-focus-deadline {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .minhas-acoes-focus-marker > span,
html[data-theme="dark"] .minhas-acoes-focus.is-overdue .minhas-acoes-focus-marker > span,
html[data-theme="dark"] .minhas-acoes-focus.is-today .minhas-acoes-focus-marker > span {
    background: var(--msc-color-surface-soft);
    box-shadow: 0 0 0 5px var(--my-actions-focus-surface);
}

html[data-theme="dark"] .minhas-acoes-focus-action button {
    color: #172033;
}

html[data-theme="dark"] .minhas-acoes-page .minhas-acoes-workspace {
    color: var(--msc-color-text);
    background: transparent;
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minhas-acoes-scope-bar,
html[data-theme="dark"] .minhas-acoes-page .minhas-acoes-toolbar {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minhas-acoes-scope-btn,
html[data-theme="dark"] .minhas-acoes-scope-btn .badge-count {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .minhas-acoes-scope-btn .badge-count {
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .minhas-acoes-scope-btn:hover:not(:disabled),
html[data-theme="dark"] .minhas-acoes-scope-btn.active {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .minhas-acoes-scope-btn.active {
    border-color: var(--msc-color-link);
}

html[data-theme="dark"] .minhas-acoes-scope-btn.active .badge-count {
    color: #172033;
    background: var(--msc-color-link);
}

html[data-theme="dark"] .minhas-acoes-horizon-copy > span {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .minhas-acoes-horizon-copy > strong,
html[data-theme="dark"] .minhas-acoes-priority-card,
html[data-theme="dark"] .minhas-acoes-priority-card small {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .minhas-acoes-priority-strip::before {
    background: var(--msc-color-border-strong);
}

html[data-theme="dark"] .minhas-acoes-priority-card {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minhas-acoes-priority-card:hover {
    background: var(--msc-color-surface-active);
    border-color: var(--msc-color-border-strong);
}

html[data-theme="dark"] .minhas-acoes-priority-card.active {
    background: var(--my-actions-brand-soft);
    border-bottom-color: var(--msc-color-link);
}

html[data-theme="dark"] .minhas-acoes-priority-card strong {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .minhas-acoes-priority-icon,
html[data-theme="dark"] .minhas-acoes-priority-card.is-danger .minhas-acoes-priority-icon,
html[data-theme="dark"] .minhas-acoes-priority-card.is-today .minhas-acoes-priority-icon,
html[data-theme="dark"] .minhas-acoes-priority-card.is-next .minhas-acoes-priority-icon,
html[data-theme="dark"] .minhas-acoes-priority-card.is-planned .minhas-acoes-priority-icon {
    background: var(--msc-color-surface-soft);
}

html[data-theme="dark"] .minhas-acoes-priority-card.is-danger .minhas-acoes-priority-icon {
    color: #ffaaa3;
}

html[data-theme="dark"] .minhas-acoes-priority-card.is-today .minhas-acoes-priority-icon {
    color: #ffe7a0;
}

html[data-theme="dark"] .minhas-acoes-priority-card.is-next .minhas-acoes-priority-icon {
    color: #a9c7ff;
}

html[data-theme="dark"] .minhas-acoes-priority-card.is-planned .minhas-acoes-priority-icon {
    color: #9eddeb;
}

html[data-theme="dark"] .minhas-acoes-priority-card.is-done .minhas-acoes-priority-icon {
    color: #a9edd5;
    background: var(--msc-color-surface-soft);
}

html[data-theme="dark"] .minhas-acoes-search,
html[data-theme="dark"] .minhas-acoes-date-field,
html[data-theme="dark"] .minhas-acoes-team-context .form-select,
html[data-theme="dark"] .minhas-acoes-filter-field .form-select,
html[data-theme="dark"] .minhas-acoes-more-filters > summary,
html[data-theme="dark"] .minhas-acoes-clear-filters,
html[data-theme="dark"] .minhas-acoes-more-filters-panel,
html[data-theme="dark"] .minhas-acoes-view-switch,
html[data-theme="dark"] .minhas-acoes-clear-dates,
html[data-theme="dark"] .minhas-acoes-calendar-nav {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-control-border);
}

html[data-theme="dark"] .minhas-acoes-search input,
html[data-theme="dark"] .minhas-acoes-date-field input {
    color: var(--msc-color-text);
    background: transparent;
}

html[data-theme="dark"] .minhas-acoes-search i,
html[data-theme="dark"] .minhas-acoes-date-field label,
html[data-theme="dark"] .minhas-acoes-toggle,
html[data-theme="dark"] .minhas-acoes-view-badge,
html[data-theme="dark"] .minhas-acoes-filter-summary {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .minhas-acoes-view-badge:hover {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .minhas-acoes-view-badge.active {
    color: var(--msc-color-link-hover);
    background: var(--msc-primary-50);
    border-color: var(--msc-color-link);
}

html[data-theme="dark"] #minhas-acoes-filter-context {
    color: var(--msc-color-text);
}

html[data-theme="dark"] #minhas-acoes-filter-count {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .minhas-acoes-grid-shell,
html[data-theme="dark"] .minhas-acoes-calendar {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minhas-acoes-table {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .minhas-acoes-table th,
html[data-theme="dark"] .minhas-acoes-calendar-toolbar,
html[data-theme="dark"] .minhas-acoes-calendar-day.is-outside {
    color: var(--msc-color-muted);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minhas-acoes-table td {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minhas-acoes-grid-row:hover,
html[data-theme="dark"] .minhas-acoes-grid-row:focus {
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .minhas-acoes-grid-row.row-overdue {
    background: linear-gradient(90deg, #49201f 0%, var(--msc-color-surface) 42%);
}

html[data-theme="dark"] .minhas-acoes-grid-row.row-archived {
    background: var(--msc-color-surface-soft);
}

html[data-theme="dark"] .minhas-acoes-row-open,
html[data-theme="dark"] .minhas-acoes-calendar-toolbar strong,
html[data-theme="dark"] .minhas-acoes-calendar-day-number {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .minhas-acoes-table-main > span,
html[data-theme="dark"] .minhas-acoes-date-text,
html[data-theme="dark"] .minhas-acoes-table-history,
html[data-theme="dark"] .minhas-acoes-empty-filter,
html[data-theme="dark"] .minhas-acoes-calendar-weekday,
html[data-theme="dark"] .minhas-acoes-calendar-more {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .minhas-acoes-context {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minhas-acoes-page .kanban-column {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minhas-acoes-page .kanban-column-title,
html[data-theme="dark"] .minhas-acoes-page .user-avatar-tag {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .minhas-acoes-page .kanban-column-count {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .minhas-acoes-page .kanban-card,
html[data-theme="dark"] .minhas-acoes-page .kanban-card.card-overdue,
html[data-theme="dark"] .minhas-acoes-page .kanban-card.card-archived {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-raised);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minhas-acoes-page .kanban-card.card-overdue {
    background: #2d2026;
    border-left-color: var(--msc-color-danger);
}

html[data-theme="dark"] .minhas-acoes-page .card-title {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .minhas-acoes-page .card-desc,
html[data-theme="dark"] .minhas-acoes-page .card-footer-info {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .minhas-acoes-page .card-footer-info {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minhas-acoes-page .avatar-circle {
    color: #fff;
    background: #1d4ed8;
}

html[data-theme="dark"] .minhas-acoes-page .minhas-acoes-date-text.text-danger {
    color: var(--msc-color-danger) !important;
}

html[data-theme="dark"] .minhas-acoes-calendar-grid {
    background: var(--msc-color-border);
}

html[data-theme="dark"] .minhas-acoes-calendar-heading button {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .minhas-acoes-calendar-weekday,
html[data-theme="dark"] .minhas-acoes-calendar-day {
    background: var(--msc-color-surface);
}

html[data-theme="dark"] .minhas-acoes-calendar-day.is-outside {
    background: var(--msc-color-surface-soft);
}

html[data-theme="dark"] .overdue-badge {
    color: #ffc0bc;
    background: #49201f;
}

html[data-theme="dark"] #minha-acao-drawer.minha-acao-dialog {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] #minha-acao-drawer.minha-acao-dialog > .drawer-header {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] #minha-acao-drawer.minha-acao-dialog > .drawer-header h4 {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] #minha-acao-drawer.minha-acao-dialog > .drawer-header .drawer-close-btn {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] #minha-acao-drawer.minha-acao-dialog > .drawer-header .drawer-close-btn:hover {
    color: var(--msc-color-danger);
}

html[data-theme="dark"] .minha-acao-dialog-body,
html[data-theme="dark"] .minha-acao-dialog .minha-acao-edit-fields {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
}

html[data-theme="dark"] .minha-acao-summary-panel,
html[data-theme="dark"] .minha-acao-update-panel,
html[data-theme="dark"] .minha-acao-history-panel,
html[data-theme="dark"] .minha-acao-details,
html[data-theme="dark"] .minha-acao-file-picker,
html[data-theme="dark"] .minha-acao-file-trigger,
html[data-theme="dark"] .minha-acao-list,
html[data-theme="dark"] .minha-acao-list-item,
html[data-theme="dark"] .ecosystem-note-item {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minha-acao-dialog .minha-acao-details > div,
html[data-theme="dark"] .minha-acao-section-heading {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minha-acao-dialog .minha-acao-details > div {
    background: var(--msc-color-surface-soft);
}

html[data-theme="dark"] .minha-acao-section-icon {
    color: var(--msc-color-link-hover);
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .minha-acao-section-heading h5,
html[data-theme="dark"] .minha-acao-edit-heading,
html[data-theme="dark"] .minha-acao-dialog .form-group > label,
html[data-theme="dark"] .minha-acao-control-label,
html[data-theme="dark"] .minha-acao-dialog .minha-acao-history h6 {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .minha-acao-section-heading p,
html[data-theme="dark"] .minha-acao-dialog .minha-acao-details b,
html[data-theme="dark"] .minha-acao-edit-help,
html[data-theme="dark"] .minha-acao-field-help {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .minha-acao-dialog .minha-acao-details span {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .minha-acao-dialog .form-control,
html[data-theme="dark"] .minha-acao-dialog .form-select {
    color: var(--msc-color-text);
    background-color: var(--msc-color-surface);
    border-color: var(--msc-color-control-border);
}

html[data-theme="dark"] .minha-acao-file-picker:hover,
html[data-theme="dark"] .minha-acao-file-picker:focus-within,
html[data-theme="dark"] .minha-acao-file-picker.has-files {
    background: var(--msc-color-surface-active);
    border-color: var(--msc-color-link);
}

html[data-theme="dark"] .minha-acao-file-summary span,
html[data-theme="dark"] .minha-acao-history h5,
html[data-theme="dark"] .minha-acao-evidencia-row {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .minha-acao-file-summary small,
html[data-theme="dark"] .minha-acao-list-item p,
html[data-theme="dark"] .minha-acao-list-meta,
html[data-theme="dark"] .ecosystem-note-meta,
html[data-theme="dark"] .ecosystem-note-text {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .minha-acao-dialog-actions {
    background: rgba(26, 34, 50, .98);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minha-acao-delete-btn {
    color: var(--msc-color-danger);
}

html[data-theme="dark"] .minha-acao-delete-btn:hover {
    color: #ffc0bc;
    background: #49201f;
    border-color: #873b36;
}

html[data-theme="light"] .breadcrumb-item.active,
html[data-theme="light"] .footer,
html[data-theme="light"] .footer a {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .calendar-metric__icon.is-pending,
html[data-theme="dark"] .calendar-day-event-preview__item.is-unconfirmed,
html[data-theme="dark"] .calendar-day-marker.is-unconfirmed,
html[data-theme="dark"] .calendar-unconfirmed-badge,
html[data-theme="dark"] .goals-status-badge.is-draft,
html[data-theme="dark"] .goals-signal.is-warning,
html[data-theme="dark"] .goals-scale-cell.is-medium,
html[data-theme="dark"] .goals-detail-section .badge-warning,
html[data-theme="dark"] .enq-status--progress,
html[data-theme="dark"] .enq-actions--conflict,
html[data-theme="dark"] .enq-readonly-note {
    color: #ffe7a0 !important;
    background: #443713 !important;
    border-color: #7c6422 !important;
}

html[data-theme="dark"] .calendar-today-button,
html[data-theme="dark"] .calendar-today-button:disabled,
html[data-theme="dark"] .calendar-view-switch,
html[data-theme="dark"] .calendar-reset-button,
html[data-theme="dark"] .calendar-reset-button:disabled,
html[data-theme="dark"] .calendar-stage {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .calendar-today-button:disabled,
html[data-theme="dark"] .calendar-reset-button:disabled,
html[data-theme="dark"] .calendar-view-switch {
    color: var(--msc-color-muted);
    background: var(--msc-color-surface-soft);
    opacity: 1;
}

html[data-theme="dark"] .calendar-view-button,
html[data-theme="dark"] .calendar-filter-summary,
html[data-theme="dark"] .calendar-metric small,
html[data-theme="dark"] #calendarNextEventDate,
html[data-theme="dark"] .calendar-filter-card small {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .calendar-eyebrow,
html[data-theme="dark"] #btnSelectAllAgendas,
html[data-theme="dark"] #btnClearAllAgendas {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .calendar-metric__icon.is-next {
    color: #a9edd5;
    background: #123c31;
}

html[data-theme="dark"] .birthday-next {
    color: var(--birthday-ink);
    background:
        radial-gradient(circle at 92% 15%, rgba(103, 198, 220, .12), transparent 30%),
        linear-gradient(135deg, var(--msc-color-surface), var(--birthday-accent-soft));
    border-color: var(--birthday-border);
}

html[data-theme="dark"] .birthday-next-person,
html[data-theme="dark"] .birthday-view-toggle,
html[data-theme="dark"] .birthday-month-button,
html[data-theme="dark"] .birthday-orbit-group-button,
html[data-theme="dark"] .birthday-orbit-center,
html[data-theme="dark"] .birthday-orbit-upcoming-item time {
    color: var(--birthday-ink);
    background: var(--birthday-surface);
    border-color: var(--birthday-border);
}

html[data-theme="dark"] .birthday-view-toggle,
html[data-theme="dark"] .birthday-month-button,
html[data-theme="dark"] .birthday-orbit-upcoming-item time {
    background: var(--msc-color-surface-soft);
}

html[data-theme="dark"] .birthday-view-button,
html[data-theme="dark"] .birthday-month-button {
    color: var(--birthday-muted);
}

html[data-theme="dark"] .birthday-month-navigation {
    scrollbar-color: var(--msc-color-border-strong) transparent;
}

html[data-theme="dark"] .birthday-month-navigation::-webkit-scrollbar {
    height: 6px;
}

html[data-theme="dark"] .birthday-month-navigation::-webkit-scrollbar-track {
    background: transparent;
}

html[data-theme="dark"] .birthday-month-navigation::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--msc-color-border-strong);
}

html[data-theme="dark"] .birthday-view-button.is-active,
html[data-theme="dark"] .birthday-month-button.is-active {
    color: var(--msc-color-link-hover);
    background: var(--birthday-accent-soft);
    border-color: var(--msc-color-link);
}

html[data-theme="dark"] .birthday-month-button.is-active small {
    color: #fff;
    background: var(--birthday-accent);
}

html[data-theme="dark"] .birthday-month-panel {
    color: var(--birthday-ink);
    background: var(--msc-color-surface-soft);
    border-color: var(--birthday-border);
}

html[data-theme="dark"] .birthday-month-total {
    color: var(--birthday-muted);
    background: var(--msc-color-surface-raised);
    border: 1px solid var(--birthday-border);
}

html[data-theme="dark"] .birthday-month-kicker,
html[data-theme="dark"] .birthday-person p i,
html[data-theme="dark"] .birthday-empty-icon {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .birthday-date {
    color: var(--msc-color-link-hover);
    background: var(--birthday-accent-soft);
    border: 1px solid #2f6470;
}

html[data-theme="dark"] .birthday-card:hover,
html[data-theme="dark"] .birthday-card.is-today {
    background: var(--msc-color-surface-raised);
    border-color: var(--msc-color-link);
}

html[data-theme="dark"] .birthday-avatar,
html[data-theme="dark"] .birthday-today-dot {
    border-color: var(--msc-color-surface-raised);
}

html[data-theme="dark"] .birthday-avatar {
    box-shadow: 0 0 0 1px var(--birthday-border);
}

html[data-theme="dark"] .birthday-empty-page,
html[data-theme="dark"] .birthday-empty-search {
    color: var(--birthday-ink);
    background: var(--birthday-surface);
    border-color: var(--birthday-border);
}

html[data-theme="dark"] .birthday-orbit-kicker,
html[data-theme="dark"] .birthday-next-kicker,
html[data-theme="dark"] .birthday-orbit-center-kicker,
html[data-theme="dark"] .birthday-orbit-center > span:first-child {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .birthday-next-copy p strong,
html[data-theme="dark"] .birthday-orbit-center-zodiac,
html[data-theme="dark"] .birthday-orbit-center small {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .birthday-orbit-center strong,
html[data-theme="dark"] .birthday-orbit-upcoming-item time strong {
    color: var(--birthday-ink);
}

html[data-theme="dark"] .birthday-orbit-center time,
html[data-theme="dark"] .birthday-orbit-footer p,
html[data-theme="dark"] .birthday-orbit-empty-detail p,
html[data-theme="dark"] .birthday-orbit-upcoming-item time span {
    color: var(--birthday-muted);
}

html[data-theme="dark"] .birthday-orbit-marker {
    background: #125666;
}

html[data-theme="dark"] .birthday-orbit-marker-initials {
    color: #fff;
}

/*
 * Aniversariantes: o calendário orbital é desenhado em SVG e, sem regras
 * próprias, conserva os preenchimentos e divisórias claros do módulo.
 */
html[data-theme="dark"] .birthday-orbit-guide-fill {
    fill: var(--msc-color-surface-soft);
    stroke: var(--msc-color-border);
}

html[data-theme="dark"] .birthday-orbit-guide {
    stroke: var(--msc-color-border);
}

html[data-theme="dark"] .birthday-orbit-zodiac-band {
    opacity: .28;
}

html[data-theme="dark"] .birthday-orbit-zodiac-segment:hover .birthday-orbit-zodiac-band,
html[data-theme="dark"] .birthday-orbit-zodiac-segment:focus-within .birthday-orbit-zodiac-band,
html[data-theme="dark"] .birthday-orbit-zodiac-segment.is-member-sign .birthday-orbit-zodiac-band {
    opacity: .5;
}

html[data-theme="dark"] .birthday-orbit-zodiac-segment.is-active .birthday-orbit-zodiac-band {
    opacity: .72;
}

html[data-theme="dark"] .birthday-orbit-zodiac-symbol,
html[data-theme="dark"] .birthday-orbit-zodiac-label {
    fill: var(--msc-color-muted);
}

html[data-theme="dark"] .birthday-orbit-month-path {
    fill: color-mix(
        in srgb,
        var(--orbit-month-color, var(--birthday-orbit-month-color, #4d7c87)) 32%,
        var(--msc-color-surface-soft)
    );
    stroke: var(--msc-color-surface);
}

html[data-theme="dark"] .birthday-orbit-month-label {
    fill: var(--msc-color-text);
}

html[data-theme="dark"] .birthday-orbit-day-tick {
    stroke: #66748a;
}

html[data-theme="dark"] .birthday-orbit-day-tick.is-major,
html[data-theme="dark"] .birthday-orbit-month-boundary {
    stroke: #9aa9be;
}

html[data-theme="dark"] .birthday-orbit-today-line {
    stroke: #ff7a85;
}

html[data-theme="dark"] .birthday-orbit-today-dot {
    fill: #ff7a85;
    stroke: var(--msc-color-surface);
}

html[data-theme="dark"] .birthday-orbit-today-label {
    fill: #ff9caa;
}

html[data-theme="dark"] .birthday-orbit-center {
    background:
        radial-gradient(circle at 50% 35%, rgba(103, 198, 220, .13), transparent 55%),
        var(--msc-color-surface);
    box-shadow:
        inset 0 0 0 9px var(--msc-color-surface-raised),
        0 10px 26px rgba(0, 0, 0, .3);
}

html[data-theme="dark"] .birthday-orbit-marker {
    border-color: var(--msc-color-surface-raised);
    box-shadow:
        0 0 0 1px var(--msc-color-link),
        0 8px 18px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .birthday-orbit-marker:hover,
html[data-theme="dark"] .birthday-orbit-marker:focus-visible,
html[data-theme="dark"] .birthday-orbit-marker.is-selected {
    box-shadow:
        0 0 0 4px rgba(103, 198, 220, .3),
        0 11px 24px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] .birthday-orbit-detail-avatar {
    border-color: var(--msc-color-surface-raised);
    box-shadow:
        0 0 0 1px var(--msc-color-link),
        0 9px 20px rgba(0, 0, 0, .36);
}

html[data-theme="dark"] .birthday-orbit-detail-date,
html[data-theme="dark"] .birthday-orbit-detail-zodiac,
html[data-theme="dark"] .birthday-orbit-detail-countdown {
    color: var(--msc-color-link-hover);
    background: var(--birthday-accent-soft);
}

html[data-theme="dark"] .birthday-orbit-date-person {
    color: var(--birthday-ink);
    background: var(--msc-color-surface-soft);
    border-color: var(--birthday-border);
}

html[data-theme="dark"] .birthday-orbit-upcoming-item:hover,
html[data-theme="dark"] .birthday-orbit-upcoming-item:focus-visible {
    color: var(--birthday-ink);
    background: var(--msc-color-surface-soft);
    border-color: var(--birthday-border);
}

html[data-theme="dark"] .calendar-mstar.calendar table.month,
html[data-theme="dark"] .calendar-mstar.calendar .month-container.is-current-month table.month {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .calendar-mstar.calendar .month-container.is-current-month table.month {
    background: linear-gradient(180deg, var(--msc-primary-50), var(--msc-color-surface) 28%);
}

html[data-theme="dark"] .calendar-mstar.calendar table.month th.month-title,
html[data-theme="dark"] .calendar-mstar.calendar table.month td.day .day-content,
html[data-theme="dark"] .calendar-item-title {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .calendar-mstar.calendar table.month th.day-header,
html[data-theme="dark"] .calendar-item-type,
html[data-theme="dark"] .calendar-item-meta {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .calendar-day-event-preview__item,
html[data-theme="dark"] .calendar-detail-item,
html[data-theme="dark"] .calendar-list-item {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .inflacao-nav-link.active {
    color: #fff;
}

html[data-theme="dark"] .inflacao-nav-link.active span {
    color: #fff;
}

html[data-theme="dark"] .inflacao-eyebrow,
html[data-theme="dark"] .inflacao-sgs-code,
html[data-theme="dark"] .inflacao-sgs-current strong,
html[data-theme="dark"] .inflacao-sgs-history-link,
html[data-theme="dark"] .inflacao-shell .btn-outline-primary {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .inflacao-source-note,
html[data-theme="dark"] .inflacao-sgs-metrics div {
    color: var(--inflacao-muted);
    background: var(--msc-color-surface-soft);
    border-color: var(--inflacao-line);
}

html[data-theme="dark"] .inflacao-sgs-card {
    color: var(--inflacao-ink);
    background: var(--msc-color-surface);
    border-color: var(--inflacao-line);
}

html[data-theme="dark"] .inflacao-sgs-metrics dt {
    color: var(--inflacao-muted);
}

html[data-theme="dark"] .inflacao-sgs-metrics dd {
    color: var(--inflacao-ink);
}

html[data-theme="dark"] .goals-cycle-tab small,
html[data-theme="dark"] .goals-panel-title small,
html[data-theme="dark"] .goals-panel-metrics span,
html[data-theme="dark"] .goals-score-summary small,
html[data-theme="dark"] .goals-project-memory {
    color: var(--goals-muted);
}

html[data-theme="dark"] .goals-panel-card-header:hover,
html[data-theme="dark"] .goals-panel-disclosure[open] > .goals-panel-card-header,
html[data-theme="dark"] .goals-panel-metrics > div,
html[data-theme="dark"] .goals-score-summary,
html[data-theme="dark"] .goals-project-table-wrap,
html[data-theme="dark"] .goals-detail-section .goals-project-table thead th {
    color: var(--goals-ink);
    background: var(--msc-color-surface-soft);
    border-color: var(--goals-border);
}

html[data-theme="dark"] .goals-panel-metrics strong,
html[data-theme="dark"] .goals-score-summary strong,
html[data-theme="dark"] .goals-project-indicator,
html[data-theme="dark"] .goals-detail-section .goals-project-table {
    color: var(--goals-ink);
}

html[data-theme="dark"] .goals-detail-section .goals-project-table th,
html[data-theme="dark"] .goals-detail-section .goals-project-table td {
    border-color: var(--goals-border);
}

html[data-theme="dark"] .goals-project-table tbody tr:hover td {
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .goals-score-pill.is-empty,
html[data-theme="dark"] .goals-signal.is-empty {
    color: #d6deea;
    background: #2a3342;
    border-color: #586579;
}

html[data-theme="dark"] .goals-score-pill.is-success,
html[data-theme="dark"] .goals-signal.is-success,
html[data-theme="dark"] .goals-scale-cell.is-high {
    color: #a9edd5 !important;
    background: #123c31 !important;
    border-color: #276b57 !important;
}

html[data-theme="dark"] .goals-score-pill.is-warning {
    color: #ffe7a0;
    background: #443713;
    border-color: #7c6422;
}

html[data-theme="dark"] .goals-score-pill.is-danger {
    color: #ffc0bc;
    background: #49201f;
    border-color: #873b36;
}

html[data-theme="dark"] .goals-page .btn-outline-primary {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .goals-index .btn-outline-primary {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .goals-detail-section .goals-project-table .goals-scale-heading.is-low {
    color: #ffc0bc;
    background: #49201f;
}

html[data-theme="dark"] .goals-detail-section .goals-project-table .goals-scale-heading.is-medium {
    color: #ffe7a0;
    background: #443713;
}

html[data-theme="dark"] .goals-detail-section .goals-project-table .goals-scale-heading.is-high {
    color: #a9edd5;
    background: #123c31;
}

html[data-theme="dark"] .goals-status-badge.is-late,
html[data-theme="dark"] .goals-signal.is-danger,
html[data-theme="dark"] .goals-scale-cell.is-low,
html[data-theme="dark"] .goals-detail-section .badge-danger {
    color: #ffc0bc !important;
    background: #49201f !important;
    border-color: #873b36 !important;
}

html[data-theme="dark"] .news-status-new {
    color: #9eddeb;
    background: #15333b;
}

html[data-theme="dark"] .pagination .page-item.active .page-link {
    color: #fff !important;
    background: #166779;
    border-color: #166779;
}

/* Guia salarial e inflação. */
html[data-theme="dark"] .guia-salarial-relatorio,
html[data-theme="dark"] .guia-indicadores-resumo > div,
html[data-theme="dark"] .guia-amostra-card,
html[data-theme="dark"] .inflacao-card {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .guia-relatorio-marca h2,
html[data-theme="dark"] .guia-indicadores-resumo strong {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .guia-relatorio-contexto,
html[data-theme="dark"] .guia-indicadores-resumo span {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .guia-salario-destaque {
    color: #a9edd5;
    background: linear-gradient(135deg, #123c31 0%, #153b38 100%);
}

html[data-theme="dark"] .guia-salario-destaque small {
    color: #b9d9cf;
}

html[data-theme="dark"] .guia-estatistica-destaque td {
    color: var(--msc-color-link-hover);
    background: var(--msc-primary-50);
}

/* RMR Digital em tela cheia. */
html[data-theme="dark"] .rmr-presentation {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .rmr-presentation h1,
html[data-theme="dark"] .rmr-presentation h2,
html[data-theme="dark"] .rmr-presentation h3,
html[data-theme="dark"] .rmr-presentation .kpi-value,
html[data-theme="dark"] .rmr-presentation .metric-value,
html[data-theme="dark"] .rmr-presentation .score-ring-copy strong,
html[data-theme="dark"] .rmr-presentation .score-copy strong,
html[data-theme="dark"] .rmr-presentation .check-copy strong,
html[data-theme="dark"] .rmr-presentation .closing-message {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .rmr-presentation .subtitle,
html[data-theme="dark"] .rmr-presentation .view-eyebrow,
html[data-theme="dark"] .rmr-presentation .view-toolbar p,
html[data-theme="dark"] .rmr-presentation .kpi-caption,
html[data-theme="dark"] .rmr-presentation .metric-label,
html[data-theme="dark"] .rmr-presentation .goal-description,
html[data-theme="dark"] .rmr-presentation .evidence-chip,
html[data-theme="dark"] .rmr-presentation .evolution-goal > p,
html[data-theme="dark"] .rmr-presentation .check-copy span,
html[data-theme="dark"] .rmr-presentation .closing-context {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .rmr-presentation .evolution-goal-head > strong {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .rmr-presentation .tabs-shell,
html[data-theme="dark"] .rmr-presentation .dashboard,
html[data-theme="dark"] .rmr-presentation .text-block,
html[data-theme="dark"] .rmr-presentation .evidence-card,
html[data-theme="dark"] .rmr-presentation .evidence-empty,
html[data-theme="dark"] .rmr-presentation .evidence-panel-head,
html[data-theme="dark"] .rmr-presentation .evolution-status,
html[data-theme="dark"] .rmr-presentation .score-comparison,
html[data-theme="dark"] .rmr-presentation .evolution-stat,
html[data-theme="dark"] .rmr-presentation .evolution-goal,
html[data-theme="dark"] .rmr-presentation .goal-card,
html[data-theme="dark"] .rmr-presentation .aside-card,
html[data-theme="dark"] .rmr-presentation .evidence-chip {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .rmr-presentation .tab,
html[data-theme="dark"] .rmr-presentation .period-switcher,
html[data-theme="dark"] .rmr-presentation .evolution-list-header {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .rmr-presentation .tab:hover,
html[data-theme="dark"] .rmr-presentation .icon-btn:hover,
html[data-theme="dark"] .rmr-presentation .metric,
html[data-theme="dark"] .rmr-presentation .check-item,
html[data-theme="dark"] .rmr-presentation .month.empty,
html[data-theme="dark"] .rmr-presentation .goals-empty {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .rmr-presentation .tab.is-active,
html[data-theme="dark"] .rmr-presentation .tab[aria-selected="true"],
html[data-theme="dark"] .rmr-presentation .month.current {
    color: #ffffff;
    background: #216b7d;
}

/* Dashboard executivo de Licitações. */
html[data-theme="dark"] .dashboard-container {
    --text-dark: var(--msc-color-heading);
    --text-muted: var(--msc-color-muted);
    color: var(--msc-color-text);
}

html[data-theme="dark"] .dashboard-container .dash-header-card {
    color: var(--msc-color-text);
    background: rgba(26, 37, 51, .94);
    border-color: var(--msc-color-border);
    box-shadow: var(--msc-shadow-card);
}

html[data-theme="dark"] .dashboard-container .kpi-card,
html[data-theme="dark"] .dashboard-container .chart-panel-card {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
    box-shadow: var(--msc-shadow-card);
}

html[data-theme="dark"] .dashboard-container .chart-panel-card h4 {
    color: var(--msc-color-heading);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .dashboard-container .pipeline-step-track {
    background: var(--msc-color-surface-soft);
    border: 1px solid var(--msc-color-border);
}

html[data-theme="dark"] .dashboard-container .pipeline-step-arrow {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .dashboard-container .text-primary {
    color: #67c6dc !important;
}

html[data-theme="dark"] .dashboard-container .text-success {
    color: #62d2aa !important;
}

html[data-theme="dark"] .dashboard-container .text-danger {
    color: #ff9c96 !important;
}

html[data-theme="light"] .dashboard-container .text-success {
    color: #087a55 !important;
}

html[data-theme="light"] .dashboard-container .text-danger {
    color: #b42318 !important;
}

/* Painel de qualificações profissionais. */
html[data-theme="light"] .qual-page .qual-kpi small,
html[data-theme="light"] .qual-page .qual-table th {
    color: #52606d;
}

html[data-theme="light"] .qual-page .text-warning {
    color: #925500 !important;
}

html[data-theme="light"] .qual-page .text-success {
    color: #087a55 !important;
}

html[data-theme="light"] .qual-page .text-danger {
    color: #b42318 !important;
}

html[data-theme="dark"] .qual-page .qual-card,
html[data-theme="dark"] .qual-page .qual-filter,
html[data-theme="dark"] .qual-page .qual-kpi,
html[data-theme="dark"] .qual-page .card,
html[data-theme="dark"] .qual-page .card-header.bg-white {
    color: var(--msc-color-text);
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border);
    box-shadow: var(--msc-shadow-card);
}

html[data-theme="dark"] .qual-page .qual-kpi small,
html[data-theme="dark"] .qual-page .qual-table th,
html[data-theme="dark"] .qual-page .text-muted {
    color: var(--msc-color-muted) !important;
}

html[data-theme="dark"] .qual-page .qual-kpi strong,
html[data-theme="dark"] .qual-page .text-dark,
html[data-theme="dark"] .qual-page h4,
html[data-theme="dark"] .qual-page h5 {
    color: var(--msc-color-heading) !important;
}

html[data-theme="dark"] .qual-page .border-bottom,
html[data-theme="dark"] .qual-page .table th,
html[data-theme="dark"] .qual-page .table td {
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .qual-page .text-warning {
    color: #ffd166 !important;
}

html[data-theme="dark"] .qual-page .text-success {
    color: #62d2aa !important;
}

html[data-theme="dark"] .qual-page .text-danger {
    color: #ff9c96 !important;
}

html[data-theme="dark"] .qual-page .btn-dark {
    color: #ffffff;
    background: #216b7d;
    border-color: #216b7d;
}

/* Ponto eletrônico: painel e detalhamento de integrante. */
html[data-theme="light"] .ponto-page .ponto-kpi small,
html[data-theme="light"] .ponto-page .ponto-table th,
html[data-theme="light"] .ponto-detail .ponto-detail-kpi small,
html[data-theme="light"] .ponto-detail .ponto-detail-kpi span,
html[data-theme="light"] .ponto-detail .ponto-average small,
html[data-theme="light"] .ponto-detail .ponto-heatmap th,
html[data-theme="light"] .ponto-detail .ponto-audit-table th {
    color: #52606d;
}

html[data-theme="light"] .ponto-page .text-warning,
html[data-theme="light"] .ponto-detail .text-warning {
    color: #925500 !important;
}

html[data-theme="light"] .ponto-page .text-success,
html[data-theme="light"] .ponto-detail .text-success {
    color: #087a55 !important;
}

html[data-theme="light"] .ponto-page .text-danger,
html[data-theme="light"] .ponto-detail .text-danger {
    color: #b42318 !important;
}

html[data-theme="light"] .ponto-page .text-info,
html[data-theme="light"] .ponto-detail .text-info {
    color: #1769a6 !important;
}

html[data-theme="dark"] .ponto-page .ponto-card,
html[data-theme="dark"] .ponto-page .ponto-filter,
html[data-theme="dark"] .ponto-page .ponto-kpi,
html[data-theme="dark"] .ponto-page .card,
html[data-theme="dark"] .ponto-page .card-header.bg-white,
html[data-theme="dark"] .ponto-detail .ponto-detail-card,
html[data-theme="dark"] .ponto-detail .ponto-detail-kpi,
html[data-theme="dark"] .ponto-detail .ponto-average,
html[data-theme="dark"] .ponto-detail .ponto-punch,
html[data-theme="dark"] .ponto-detail .card,
html[data-theme="dark"] .ponto-detail .card-header.bg-white {
    color: var(--msc-color-text);
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border);
    box-shadow: var(--msc-shadow-card);
}

html[data-theme="dark"] .ponto-page label,
html[data-theme="dark"] .ponto-page .ponto-kpi strong,
html[data-theme="dark"] .ponto-page h4,
html[data-theme="dark"] .ponto-page h5,
html[data-theme="dark"] .ponto-detail .ponto-detail-kpi strong,
html[data-theme="dark"] .ponto-detail .ponto-average strong,
html[data-theme="dark"] .ponto-detail .ponto-punch strong,
html[data-theme="dark"] .ponto-detail .ponto-section-title,
html[data-theme="dark"] .ponto-detail h4,
html[data-theme="dark"] .ponto-detail h5 {
    color: var(--msc-color-heading) !important;
}

html[data-theme="dark"] .ponto-page .ponto-kpi small,
html[data-theme="dark"] .ponto-page .ponto-table th,
html[data-theme="dark"] .ponto-page .text-muted,
html[data-theme="dark"] .ponto-detail .ponto-detail-kpi small,
html[data-theme="dark"] .ponto-detail .ponto-detail-kpi span,
html[data-theme="dark"] .ponto-detail .ponto-average small,
html[data-theme="dark"] .ponto-detail .ponto-heatmap th,
html[data-theme="dark"] .ponto-detail .ponto-audit-table th,
html[data-theme="dark"] .ponto-detail .text-muted {
    color: var(--msc-color-muted) !important;
}

html[data-theme="dark"] .ponto-page .table th,
html[data-theme="dark"] .ponto-page .table td,
html[data-theme="dark"] .ponto-detail .table th,
html[data-theme="dark"] .ponto-detail .table td,
html[data-theme="dark"] .ponto-detail .border-bottom {
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .ponto-page .btn-outline-primary,
html[data-theme="dark"] .ponto-detail .btn-outline-primary {
    color: #67c6dc;
    border-color: #67c6dc;
}

html[data-theme="dark"] .ponto-page .btn-dark,
html[data-theme="dark"] .ponto-detail .btn-dark {
    color: #ffffff;
    background: #216b7d;
    border-color: #216b7d;
}

html[data-theme="dark"] .ponto-page .text-primary,
html[data-theme="dark"] .ponto-detail .text-primary {
    color: #67c6dc !important;
}

html[data-theme="dark"] .ponto-page .text-success,
html[data-theme="dark"] .ponto-detail .text-success {
    color: #62d2aa !important;
}

html[data-theme="dark"] .ponto-page .text-danger,
html[data-theme="dark"] .ponto-detail .text-danger {
    color: #ff9c96 !important;
}

html[data-theme="dark"] .ponto-page .text-info,
html[data-theme="dark"] .ponto-detail .text-info {
    color: #8ecbff !important;
}

html[data-theme="dark"] .ponto-page .text-warning,
html[data-theme="dark"] .ponto-detail .text-warning {
    color: #ffd166 !important;
}

/* Ambiente de Competitividade. */
html[data-theme="dark"] .compet-page {
    --comp-border: var(--msc-color-border);
    --comp-ink: var(--msc-color-heading);
    --comp-muted: var(--msc-color-muted);
    --comp-panel: var(--msc-color-surface);
    color: var(--msc-color-text);
}

html[data-theme="dark"] .compet-page .compet-head,
html[data-theme="dark"] .compet-page .compet-card {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
    box-shadow: var(--msc-shadow-card);
}

html[data-theme="dark"] .compet-page .compet-title,
html[data-theme="dark"] .compet-page .compet-title-cell strong {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .compet-page .compet-subtitle,
html[data-theme="dark"] .compet-page .text-muted {
    color: var(--msc-color-muted) !important;
}

html[data-theme="dark"] .compet-page .compet-table th {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .compet-page .compet-table td {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .compet-page .compet-table tbody tr:hover td {
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .compet-page .btn-outline-primary {
    color: #67c6dc;
    border-color: #67c6dc;
}

html[data-theme="light"] .compet-page .btn-outline-secondary {
    color: #4b5563;
    border-color: #6b7280;
}

html[data-theme="light"] .compet-page .btn-outline-secondary.disabled,
html[data-theme="light"] .compet-page .btn-outline-secondary:disabled {
    color: #374151;
    opacity: .75;
}

/* Contratos e aditivos de Projetos. */
html[data-theme="dark"] .contract-index-page {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .contract-filter-card,
html[data-theme="dark"] .contract-dashboard,
html[data-theme="dark"] .contract-table-card,
html[data-theme="dark"] .contract-metric,
html[data-theme="dark"] .contract-chart-card {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
    box-shadow: var(--msc-shadow-card);
}

html[data-theme="dark"] .contract-metric,
html[data-theme="dark"] .contract-chart-card {
    background: var(--msc-color-surface-raised);
}

html[data-theme="dark"] .contract-index-title,
html[data-theme="dark"] .contract-dashboard-title,
html[data-theme="dark"] .contract-metric-value,
html[data-theme="dark"] .contract-chart-title,
html[data-theme="dark"] .contract-chart-name,
html[data-theme="dark"] .contract-chart-value {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .contract-index-subtitle,
html[data-theme="dark"] .contract-dashboard-note,
html[data-theme="dark"] .contract-metric-label,
html[data-theme="dark"] .contract-metric-help,
html[data-theme="dark"] .contract-chart-meta {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .contract-filter-card label {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .contract-view-toggle {
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border-strong);
}

html[data-theme="dark"] .contract-view-toggle .btn {
    color: var(--msc-color-muted);
    background: transparent;
}

html[data-theme="dark"] .contract-view-toggle .btn.active {
    color: #ffffff;
    background: #216b7d;
}

html[data-theme="dark"] .contract-dashboard-header {
    background: linear-gradient(
        135deg,
        #15333b,
        var(--msc-color-surface-raised) 60%,
        var(--msc-color-surface-soft)
    );
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .contract-dashboard-kicker,
html[data-theme="dark"] .contract-chart-title i {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .contract-dashboard-badge {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border-strong);
}

html[data-theme="dark"] .contract-metric-icon.revenue {
    color: #62d2aa;
    background: #123c31;
}

html[data-theme="dark"] .contract-metric-icon.contracts {
    color: #9fc5ff;
    background: #17345f;
}

html[data-theme="dark"] .contract-metric-icon.addenda {
    color: #ffba86;
    background: #4a2a13;
}

html[data-theme="dark"] .contract-metric-icon.average {
    color: #c4b5fd;
    background: #30275a;
}

html[data-theme="dark"] .contract-chart-track {
    background: var(--msc-color-border);
}

html[data-theme="dark"] .contract-empty-chart,
html[data-theme="dark"] .contract-empty-table {
    color: var(--msc-color-muted);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border-strong);
}

html[data-theme="dark"] .contract-table-card .card-header {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .contract-value-positive {
    color: var(--msc-color-success);
}

html[data-theme="dark"] .contract-value-negative {
    color: var(--msc-color-danger);
}

html[data-theme="dark"] .contract-value-neutral {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .contract-toolbar .btn-outline-primary {
    color: var(--msc-color-link-hover);
    border-color: var(--msc-color-link);
}

html[data-theme="dark"] .contract-index-page .badge.badge-light.border {
    color: var(--msc-color-text) !important;
    background: var(--msc-color-surface-raised) !important;
    border-color: var(--msc-color-border-strong) !important;
}

html[data-theme="light"] .contract-index-page .badge.badge-light.border {
    color: #334155 !important;
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

html[data-theme="light"] .contract-index-subtitle,
html[data-theme="light"] .contract-dashboard-note {
    color: var(--msc-color-muted);
}

/* Padrões compactos de Benefícios e Estratégia. */
html[data-theme="light"] .benef-kpi small,
html[data-theme="light"] .benef-table th,
html[data-theme="light"] .estr-kpi small,
html[data-theme="light"] .estr-table th {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .benef-card,
html[data-theme="dark"] .benef-kpi,
html[data-theme="dark"] .benef-filter,
html[data-theme="dark"] .estr-card,
html[data-theme="dark"] .estr-kpi {
    color: var(--msc-color-text);
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .benef-kpi small,
html[data-theme="dark"] .benef-table th,
html[data-theme="dark"] .estr-kpi small,
html[data-theme="dark"] .estr-table th {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .benef-kpi strong,
html[data-theme="dark"] .estr-kpi strong {
    color: var(--msc-color-heading);
}

/* Avaliação RMR: cartões, navegação, tabelas e indicadores. */
html[data-theme="light"] .rmr-page .rmr-header-title,
html[data-theme="light"] .rmr-page .rmr-sidebar-title,
html[data-theme="light"] .rmr-page .rmr-table thead th {
    color: var(--msc-color-muted);
}

html[data-theme="light"] .rmr-page .rmr-code-chip,
html[data-theme="light"] .rmr-page .rmr-comp-badge {
    color: var(--msc-color-link);
}

html[data-theme="light"] .rmr-page .rmr-score-pill.score-success {
    color: #176344;
}

html[data-theme="light"] .rmr-page .rmr-score-pill.score-warning {
    color: #765500;
}

html[data-theme="light"] .rmr-page .rmr-score-pill.score-danger {
    color: #a1261c;
}

html[data-theme="light"] .rmr-page .rmr-score-pill.score-pending {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .rmr-page .card-custom-box {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .rmr-page .rmr-header-title,
html[data-theme="dark"] .rmr-page .rmr-sidebar-title,
html[data-theme="dark"] .rmr-page .rmr-table thead th {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .rmr-page .rmr-content-title,
html[data-theme="dark"] .rmr-page .rmr-project-name {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .rmr-page .rmr-client-text {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .rmr-page .rmr-header .form-control {
    border-color: var(--msc-color-control-border);
}

html[data-theme="dark"] .rmr-page .rmr-nav .nav-link,
html[data-theme="dark"] .rmr-page .rmr-nav .nav-link > * {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .rmr-page .rmr-nav .nav-link:hover,
html[data-theme="dark"] .rmr-page .rmr-nav .nav-link:hover > * {
    color: var(--msc-color-link-hover);
    background-color: var(--msc-color-surface-active);
}

html[data-theme="dark"] .rmr-page .rmr-nav .nav-link.active,
html[data-theme="dark"] .rmr-page .rmr-nav .nav-link.active > * {
    color: #ffffff !important;
}

html[data-theme="dark"] .rmr-page .rmr-table thead th {
    background-color: var(--msc-color-surface-soft);
}

html[data-theme="dark"] .rmr-page .rmr-table tbody tr {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-raised);
}

html[data-theme="dark"] .rmr-page .rmr-table tbody tr:hover {
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .rmr-page .rmr-table tbody td {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .rmr-page .rmr-code-chip,
html[data-theme="dark"] .rmr-page .rmr-comp-badge {
    color: var(--msc-color-link-hover);
    background: var(--msc-primary-50);
}

html[data-theme="dark"] .rmr-page .rmr-score-pill.score-success {
    color: #a9edd5;
    background: #123c31;
}

html[data-theme="dark"] .rmr-page .rmr-score-pill.score-warning {
    color: #ffe7a0;
    background: #443713;
}

html[data-theme="dark"] .rmr-page .rmr-score-pill.score-danger {
    color: #ffc0bc;
    background: #49201f;
}

html[data-theme="dark"] .rmr-page .rmr-score-pill.score-pending {
    color: #d7e0eb;
    background: #303b4d;
}

/* Inventário: realce sem cor clara fixa e com semântica de célula de dados. */
html[data-theme="light"] .inventario-etiqueta.is-etiquetado {
    color: #176344;
    background-color: #d1fae5 !important;
}

html[data-theme="dark"] .inventario-etiqueta.is-etiquetado {
    color: #a9edd5;
    background-color: #123c31 !important;
}

/* Licitações: a folha do módulo usa superfícies claras fixas. */
html[data-theme="dark"] .dashboard-container,
html[data-theme="dark"] .consulta-container,
html[data-theme="dark"] .automacao-container {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .dash-header-card,
html[data-theme="dark"] .consulta-header-card,
html[data-theme="dark"] .monitor-header-card,
html[data-theme="dark"] .kpi-card,
html[data-theme="dark"] .chart-panel-card,
html[data-theme="dark"] .filters-card,
html[data-theme="dark"] .results-card,
html[data-theme="dark"] .indicator-card,
html[data-theme="dark"] .filter-card,
html[data-theme="dark"] .table-card {
    color: var(--msc-color-text);
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .dash-header-card p,
html[data-theme="dark"] .consulta-header-card p,
html[data-theme="dark"] .monitor-header-card p,
html[data-theme="dark"] .kpi-title,
html[data-theme="dark"] .kpi-footer,
html[data-theme="dark"] .indicator-title,
html[data-theme="dark"] .indicator-subtext {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .filters-card-toggle,
html[data-theme="dark"] .filters-card h4,
html[data-theme="dark"] .filters-card label,
html[data-theme="dark"] .filter-card h4,
html[data-theme="dark"] .chart-panel-card h4 {
    color: var(--msc-color-text);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .filters-card-toggle .bx-chevron-down {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .consulta-prazo-tabs {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .consulta-prazo-tabs .nav-link {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .consulta-prazo-tabs .nav-link.active {
    color: var(--msc-color-link-hover);
    background: var(--msc-color-surface-active);
    border-color: var(--msc-color-border) var(--msc-color-border) var(--msc-color-surface-active);
}

html[data-theme="dark"] .consulta-prazo-tabs .nav-link.active > span {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .consulta-prazo-tab-header,
html[data-theme="dark"] .pipeline-step-track,
html[data-theme="dark"] .detail-modal-body {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .custom-table th {
    color: var(--msc-color-muted);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .custom-table td {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .custom-table tbody tr:hover td {
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .action-dropdown .btn-actions {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-active);
    border: 1px solid var(--msc-color-border-strong);
}

html[data-theme="dark"] .action-dropdown .btn-actions:hover,
html[data-theme="dark"] .action-dropdown .btn-actions:focus {
    color: var(--msc-color-heading);
    background: var(--msc-primary-50);
}

html[data-theme="dark"] .detail-info-list li,
html[data-theme="dark"] .licitacao-comments-panel,
html[data-theme="dark"] .pncp-detail-panel,
html[data-theme="dark"] .status-list-compact li {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .detail-label,
html[data-theme="dark"] .detail-val,
html[data-theme="dark"] .licitacao-comment-text,
html[data-theme="dark"] .pncp-detail-block p {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .licitacao-comment-item,
html[data-theme="dark"] .pncp-detail-grid > div,
html[data-theme="dark"] .pncp-detail-block {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .pncp-detail-links a {
    color: var(--msc-color-link-hover);
    background: var(--msc-primary-50);
    border-color: var(--msc-color-link);
}

html[data-theme="dark"] .badge-vencida,
html[data-theme="dark"] .status-sucesso {
    color: #a9edd5;
    background: #123c31;
    border-color: #276b57;
}

html[data-theme="dark"] .badge-andamento,
html[data-theme="dark"] .status-andamento {
    color: #a7e7f2;
    background: #123743;
    border-color: #2d6875;
}

html[data-theme="dark"] .badge-encontrada,
html[data-theme="dark"] .badge-mapeada,
html[data-theme="dark"] .badge-qualificada {
    color: var(--msc-color-link-hover);
    background: var(--msc-primary-50);
    border-color: var(--msc-color-link);
}

html[data-theme="dark"] .badge-declinada,
html[data-theme="dark"] .status-erro,
html[data-theme="dark"] .status-falha-login,
html[data-theme="dark"] .status-falha-conexao,
html[data-theme="dark"] .status-erro-parsing,
html[data-theme="dark"] .status-erro-gravacao {
    color: #ffc0bc;
    background: #49201f;
    border-color: #873b36;
}

html[data-theme="dark"] .badge-encerrada,
html[data-theme="dark"] .badge-default,
html[data-theme="dark"] .status-sem-licitacoes {
    color: #d7e0eb;
    background: #303b4d;
    border-color: var(--msc-color-border-strong);
}

html[data-theme="dark"] .status-parcial {
    color: #ffe7a0;
    background: #443713;
    border-color: #7c6422;
}

html[data-theme="light"] .calendar-filter-actions {
    color: var(--msc-color-muted);
}

html[data-theme="light"] .minhas-acoes-horizon-header .btn-outline-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, .72);
}

html[data-theme="light"] .minhas-acoes-horizon-header .btn-outline-secondary:hover,
html[data-theme="light"] .minhas-acoes-horizon-header .btn-outline-secondary:focus {
    color: #111827;
    background: #ffffff;
    border-color: #ffffff;
}

html[data-theme="light"] .minhas-acoes-filter-summary > span,
html[data-theme="light"] .minhas-acoes-table-main > span,
html[data-theme="light"] .minhas-acoes-table-history > span {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .chat-status-pill.online {
    color: #a9edd5;
    background: #123c31;
    border-color: #276b57;
}

/* Feedbacks do sistema e relatórios de feedback. */
html[data-theme="dark"] .feedback-status-filter,
html[data-theme="dark"] .feedback-status-filter-summary,
html[data-theme="dark"] .feedback-comment-modal-text,
html[data-theme="dark"] .feedback-filter {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .feedback-status-filter strong,
html[data-theme="dark"] .feedback-status-filter-summary strong {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .feedback-status-filter:hover,
html[data-theme="dark"] .feedback-status-filter:focus,
html[data-theme="dark"] .feedback-status-filter.active {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-active);
    border-color: var(--msc-color-link);
}

html[data-theme="dark"] .feedback-status-filter.active strong,
html[data-theme="dark"] .feedback-status-filter:hover strong,
html[data-theme="dark"] .feedback-status-filter:focus strong {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .feedback-comment-full,
html[data-theme="dark"] .feedback-comment-modal-text {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .feedback-area-email,
html[data-theme="dark"] .feedback-modal-meta dt {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .feedback-comment-open,
html[data-theme="dark"] .feedback-area-open,
html[data-theme="dark"] .feedback-status-open {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border-strong);
}

html[data-theme="dark"] .feedback-comment-open:hover,
html[data-theme="dark"] .feedback-comment-open:focus,
html[data-theme="dark"] .feedback-area-open:hover,
html[data-theme="dark"] .feedback-area-open:focus,
html[data-theme="dark"] .feedback-status-open:hover,
html[data-theme="dark"] .feedback-status-open:focus {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .feedback-filter .btn-link {
    color: var(--msc-color-link-hover);
}

/* Feedback de integrantes: listagem, recebidos, detalhes e formulário. */
html[data-theme="light"] .fb-summary-card,
html[data-theme="light"] .fb-filter-card {
    border-color: var(--msc-color-control-border);
}

html[data-theme="light"] .fb-avatar,
html[data-theme="light"] .fb-avatar-lg {
    color: var(--msc-color-link);
}

html[data-theme="light"] .fb-email-badge {
    color: #196c50;
    background: #e5f4ed;
    border: 1px solid #79ab95;
}

html[data-theme="light"] .wizard-step-circle.pending {
    color: var(--msc-color-muted);
    background: #e8edf2;
}

html[data-theme="light"] .wizard-step-label.other {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .fb-summary-card,
html[data-theme="dark"] .fb-filter-card,
html[data-theme="dark"] .fb-card,
html[data-theme="dark"] .fb-received-card,
html[data-theme="dark"] .fb-empty,
html[data-theme="dark"] .radio-card,
html[data-theme="dark"] .impacto-btn,
html[data-theme="dark"] .wizard-card,
html[data-theme="dark"] .upload-file-item {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .fb-summary-card,
html[data-theme="dark"] .fb-filter-card {
    border-color: var(--msc-color-control-border);
}

html[data-theme="dark"] .fb-summary-card:hover,
html[data-theme="dark"] .fb-filter-card:hover,
html[data-theme="dark"] .radio-card:hover,
html[data-theme="dark"] .cat-radio:hover,
html[data-theme="dark"] .impacto-btn:hover {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-active);
    border-color: var(--msc-color-link);
}

html[data-theme="dark"] .fb-card .fb-card-body,
html[data-theme="dark"] .fb-received-body {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .fb-card .fb-card-body p {
    color: var(--msc-color-text) !important;
}

html[data-theme="dark"] .fb-card .fb-card-body p[style*="color"] {
    color: var(--msc-color-muted) !important;
}

html[data-theme="dark"] .fb-card .fb-card-body p strong {
    color: inherit;
}

html[data-theme="dark"] .fb-avatar,
html[data-theme="dark"] .fb-avatar-lg {
    color: var(--msc-color-link-hover);
    background: var(--msc-primary-50);
}

html[data-theme="dark"] .fb-date-filter,
html[data-theme="dark"] .fb-detail-item,
html[data-theme="dark"] .fb-content-box,
html[data-theme="dark"] .detail-box,
html[data-theme="dark"] .review-box,
html[data-theme="dark"] .upload-zone,
html[data-theme="dark"] .upload-file-item.existing,
html[data-theme="dark"] .fb-attachment-item,
html[data-theme="dark"] .fb-delete-evidence {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .fb-received-card-header {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .fb-received-title h5,
html[data-theme="dark"] .fb-detail-item strong,
html[data-theme="dark"] .wizard-step-label.current {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .fb-detail-item span,
html[data-theme="dark"] .wizard-step-label.other,
html[data-theme="dark"] .cat-group-title,
html[data-theme="dark"] .upload-file-item .file-size {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .cat-radio {
    color: var(--msc-color-text);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .radio-card.selected,
html[data-theme="dark"] .cat-radio.selected {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-active);
    border-color: var(--msc-color-link);
}

html[data-theme="dark"] .wizard-step-circle.pending {
    color: var(--msc-color-muted);
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .wizard-connector.pending {
    background: var(--msc-color-border-strong);
}

html[data-theme="dark"] .fb-email-badge {
    color: #a9edd5;
    background: #123c31;
    border: 1px solid #4b8f77;
}

/* Formulários públicos, autenticação e prévias sem layout Kraken. */
html[data-theme="dark"] .poll-container,
html[data-theme="dark"] .thanks-container,
html[data-theme="dark"] .main-pco,
html[data-theme="dark"] .login-box,
html[data-theme="dark"] .register-box {
    color: var(--msc-color-text);
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .poll-heading,
html[data-theme="dark"] .poll-question,
html[data-theme="dark"] .poll-option,
html[data-theme="dark"] .thanks-container,
html[data-theme="dark"] .main-pco {
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .poll-name,
html[data-theme="dark"] .poll-question-title,
html[data-theme="dark"] .thanks-title {
    color: var(--msc-color-heading) !important;
}

html[data-theme="dark"] .poll-description,
html[data-theme="dark"] .poll-question-description,
html[data-theme="dark"] .poll-section-description,
html[data-theme="dark"] .thanks-text,
html[data-theme="dark"] .signature {
    color: var(--msc-color-muted) !important;
}

html[data-theme="dark"] .profile-user-wid .avatar-title,
html[data-theme="dark"] .login-logo {
    border-radius: .5rem;
    background-color: #ffffff !important;
}

html[data-theme="dark"][data-page="spreadsheet-preview"] .header,
html[data-theme="dark"][data-page="spreadsheet-preview"] tr:first-child {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-soft) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"][data-page="spreadsheet-preview"] .message {
    color: #ffe7a0;
    background: #443713 !important;
    border-color: #7c6422 !important;
}

html[data-theme="dark"][data-page="spreadsheet-preview"] .note {
    color: var(--msc-color-muted);
}

/* Auditoria ampla de módulos: superfícies locais e contraste WCAG 2.1 AA. */
html[data-theme="light"] .btn-warning,
html[data-theme="dark"] .btn-warning,
html[data-theme="light"] .badge-warning,
html[data-theme="dark"] .badge-warning,
html[data-theme="light"] .bg-warning,
html[data-theme="dark"] .bg-warning {
    color: #172033 !important;
}

html[data-theme="dark"] .event-date-chip {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-raised) !important;
    border: 1px solid var(--msc-color-border);
}

html[data-theme="dark"] .event-date-chip .event-month,
html[data-theme="dark"] .pdf-tool-desc {
    color: var(--msc-color-muted) !important;
}

html[data-theme="light"] code {
    color: #a61e5c;
}

html[data-theme="light"] .text-black-50 {
    color: #52606d !important;
}

html[data-theme="light"] .nav-tabs .nav-link:not(.active),
html[data-theme="light"] .nav-pills .nav-link:not(.active) {
    color: #52606d;
}

html[data-theme="light"] caption.sr-only {
    color: #667085 !important;
}

/* Agenda pessoal. */
html[data-theme="light"] .agenda-shell .agenda-day.is-outside {
    color: #667085;
}

html[data-theme="light"] .agenda-shell .agenda-event-meta {
    color: #495057;
}

html[data-theme="dark"] .agenda-shell .agenda-grid,
html[data-theme="dark"] .agenda-shell .agenda-day,
html[data-theme="dark"] .agenda-shell .agenda-list-day,
html[data-theme="dark"] .agenda-shell .agenda-empty,
html[data-theme="dark"] .agenda-description,
html[data-theme="dark"] .agenda-participant-group {
    color: var(--msc-color-text);
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .agenda-shell .agenda-weekday,
html[data-theme="dark"] .agenda-shell .agenda-list-day-header,
html[data-theme="dark"] .agenda-participant-group-header {
    color: var(--msc-color-muted) !important;
    background: var(--msc-color-surface-soft) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .agenda-shell .agenda-day.is-outside {
    color: var(--msc-color-muted) !important;
    background: var(--msc-color-canvas) !important;
}

html[data-theme="dark"] .agenda-shell .agenda-day.is-today {
    box-shadow: inset 0 0 0 2px var(--msc-color-focus);
}

html[data-theme="dark"] .agenda-shell .agenda-event {
    color: var(--msc-color-text) !important;
    background: var(--msc-color-surface-active) !important;
    border-color: var(--agenda-event-color, var(--msc-color-border-strong)) !important;
}

html[data-theme="dark"] .agenda-shell .agenda-event-time,
html[data-theme="dark"] .agenda-shell .agenda-event-meta,
html[data-theme="dark"] .agenda-shell .agenda-event-response,
html[data-theme="dark"] .agenda-shell .agenda-calendar-meta,
html[data-theme="dark"] .agenda-shell .agenda-muted,
html[data-theme="dark"] .agenda-participant-email,
html[data-theme="dark"] .agenda-history-label {
    color: var(--msc-color-muted) !important;
}

html[data-theme="dark"] .agenda-shell .agenda-calendar-toggle:hover,
html[data-theme="dark"] .agenda-meeting-link,
html[data-theme="dark"] .agenda-history-tooltip {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .agenda-shell .agenda-calendar-check,
html[data-theme="dark"] .agenda-shell .agenda-calendar-toggle input:not(:checked) + .agenda-calendar-check {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-raised) !important;
    border-color: var(--msc-color-border-strong) !important;
}

html[data-theme="dark"] .agenda-shell .agenda-calendar-email,
html[data-theme="dark"] .agenda-detail-item dd,
html[data-theme="dark"] .agenda-participant-name,
html[data-theme="dark"] .agenda-meeting-link-title {
    color: var(--msc-color-heading) !important;
}

/* Administração da Palavra Misteriosa. */
html[data-theme="light"] #agenda-app .agenda-word small {
    color: #52606d;
}

html[data-theme="dark"] #agenda-app .agenda-primary-card,
html[data-theme="dark"] #agenda-app .agenda-secondary-card,
html[data-theme="dark"] #agenda-app .agenda-summary-item,
html[data-theme="dark"] #agenda-app .agenda-table-wrap,
html[data-theme="dark"] #agenda-app .agenda-table,
html[data-theme="dark"] #agenda-app .agenda-table tbody,
html[data-theme="dark"] #agenda-app .agenda-table tbody tr,
html[data-theme="dark"] #agenda-app .agenda-table tbody td,
html[data-theme="dark"] #agenda-app .agenda-word,
html[data-theme="dark"] #agenda-app .agenda-edit-word {
    color: var(--msc-color-text);
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] #agenda-app .agenda-filters {
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] #agenda-app .agenda-batch-bar,
html[data-theme="dark"] #agenda-app .agenda-table thead th {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-soft) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] #agenda-app .agenda-table tr.agenda-row-selected td {
    background: var(--msc-color-surface-active) !important;
}

html[data-theme="dark"] #agenda-app .agenda-table tr[data-locked="true"] td {
    color: var(--msc-color-muted);
    background: var(--msc-color-canvas) !important;
}

html[data-theme="dark"] #agenda-app .agenda-summary-item span:last-child,
html[data-theme="dark"] #agenda-app .agenda-word small,
html[data-theme="dark"] #agenda-app .agenda-edit-word-title,
html[data-theme="dark"] #agenda-app .agenda-rejected-copy small,
html[data-theme="dark"] #agenda-app .agenda-rejected-copy span,
html[data-theme="dark"] #agenda-app .agenda-rejected-copy time {
    color: var(--msc-color-muted) !important;
}

html[data-theme="dark"] #agenda-app .agenda-word-help {
    color: var(--msc-color-text) !important;
}

html[data-theme="dark"] #agenda-app .btn-link {
    color: #9fc0ff !important;
}

html[data-theme="dark"] #agenda-app .agenda-reject-word {
    color: #ffb5b0;
    background: var(--msc-color-surface-raised) !important;
    border-color: #b95d57 !important;
}

html[data-theme="dark"] #agenda-app .agenda-reject-word:hover,
html[data-theme="dark"] #agenda-app .agenda-reject-word:focus {
    color: #ffffff;
    background: #9f2922 !important;
}

html[data-theme="dark"] #agenda-app .agenda-rejected-word {
    color: #ffd3d0;
    background: #3e1e20 !important;
    border-color: #8f474b !important;
}

.pm-page,
.pm-modal {
    --pm-right: #1f6d62;
    --pm-muted: #d7e0eb;
}

.pm-page .pm-mode-tabs a.active {
    color: #ffffff !important;
    background: #1f6d62;
}

.pm-page .pm-mode-tabs a:not(.active) {
    color: #d7e0eb !important;
}

.pm-page .pm-hints li.locked {
    color: #c9bec5;
}

.pm-page .pm-factory-form input {
    border-color: #8a99ac;
}

.pm-page .pm-factory-back:hover,
.pm-page .pm-factory-back:focus,
.pm-page .pm-factory-submit:hover,
.pm-page .pm-factory-submit:focus {
    color: #ffffff;
    background: #175a51;
}

html[data-theme="light"] .birthday-month-button {
    color: #52606d;
}

/* Controladoria. */
html[data-theme="light"] .controladoria-page .sidebar-title,
html[data-theme="light"] .controladoria-page .table-custom thead th {
    color: #52606d;
}

html[data-theme="light"] .controladoria-page .btn-soft-success {
    color: #176343 !important;
    background: #ecfbf5 !important;
    border-color: #9fdcc6 !important;
}

html[data-theme="light"] .controladoria-page .comp-badge-4 {
    color: #76500d;
}

html[data-theme="light"] .controladoria-page .badge-success-soft-mini {
    color: #176343 !important;
    background: #ecfbf5 !important;
    border-color: #9fdcc6 !important;
}

html[data-theme="dark"] .controladoria-page .card-custom-box,
html[data-theme="dark"] .controladoria-page .table-custom,
html[data-theme="dark"] .controladoria-page .table-custom tbody tr,
html[data-theme="dark"] .controladoria-page .table-custom tbody td,
html[data-theme="dark"] .controladoria-page .comment-bubble {
    color: var(--msc-color-text);
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .controladoria-page .table-custom thead th,
html[data-theme="dark"] .controladoria-page .table-custom tbody tr:hover,
html[data-theme="dark"] .controladoria-page .nav-tabs-custom .nav-link:hover {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-soft) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .controladoria-page .sidebar-title,
html[data-theme="dark"] .controladoria-page .nav-tabs-custom .nav-link {
    color: var(--msc-color-muted);
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .controladoria-page .nav-tabs-custom .nav-link.active {
    color: #ffffff !important;
    background: #16687a !important;
    border-color: #4aa7ba !important;
}

html[data-theme="dark"] .controladoria-page .summary-alert-list {
    color: #ffe7a0;
    background: #443713 !important;
    border-color: #7c6422 !important;
}

html[data-theme="dark"] .controladoria-page .btn-soft-success {
    color: #b9f2d8 !important;
    background: #163c30 !important;
    border-color: #397a62 !important;
}

html[data-theme="dark"] .controladoria-page .btn-outline-brand {
    color: #9edce8 !important;
    border-color: #4aa7ba !important;
}

html[data-theme="dark"] .controladoria-page .badge-danger-soft-mini {
    color: #ffc0bc !important;
    background: #49201f !important;
    border-color: #8d4a46 !important;
}

html[data-theme="dark"] .controladoria-page .badge-success-soft-mini {
    color: #b9f2d8 !important;
    background: #163c30 !important;
    border-color: #397a62 !important;
}

html[data-theme="dark"] .controladoria-page .comp-badge-0 {
    color: #b9f2d8;
    background: #163c30;
    border-color: #397a62;
}

html[data-theme="dark"] .controladoria-page .comp-badge-1 {
    color: #c8ddff;
    background: #1b345c;
    border-color: #42679d;
}

html[data-theme="dark"] .controladoria-page .comp-badge-2 {
    color: #e6d3ff;
    background: #3b2858;
    border-color: #7654a4;
}

html[data-theme="dark"] .controladoria-page .comp-badge-3 {
    color: #b5e9f2;
    background: #123743;
    border-color: #397485;
}

html[data-theme="dark"] .controladoria-page .comp-badge-4 {
    color: #ffe7a0;
    background: #443713;
    border-color: #7c6422;
}

html[data-theme="dark"] .controladoria-page .comp-badge-5 {
    color: #ffc0bc;
    background: #49201f;
    border-color: #8d4a46;
}

/* Comunicação / E-mail Marketing. */
.emailm-nav-link.active,
.emailm-nav-link:hover,
.emailm-nav-link:focus {
    color: #ffffff !important;
}

html[data-theme="light"] .emailm-kpi span,
html[data-theme="light"] .emailm-table th {
    color: #52606d !important;
}

html[data-theme="dark"] .emailm-panel,
html[data-theme="dark"] .emailm-kpi,
html[data-theme="dark"] .emailm-node,
html[data-theme="dark"] .emailm-preview {
    color: var(--msc-color-text);
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .emailm-node,
html[data-theme="dark"] .emailm-preview {
    background: var(--msc-color-surface-soft) !important;
}

html[data-theme="dark"] .emailm-nav-link {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-raised) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .emailm-nav-link.active,
html[data-theme="dark"] .emailm-nav-link:hover,
html[data-theme="dark"] .emailm-nav-link:focus {
    color: #ffffff !important;
    background: #16687a !important;
    border-color: #4aa7ba !important;
}

html[data-theme="dark"] .emailm-kpi span,
html[data-theme="dark"] .emailm-table th {
    color: var(--msc-color-muted) !important;
}

html[data-theme="dark"] .emailm-kpi strong {
    color: var(--msc-color-heading) !important;
}

/* Perfil de integrante e progressão/promoção. */
html[data-theme="light"] .perfil-page .perfil-kpi small,
html[data-theme="light"] .perfil-page .perfil-table th,
html[data-theme="light"] .perfil-page .perfil-info-label,
html[data-theme="light"] .perfil-page .perfil-empty {
    color: #52606d !important;
}

html[data-theme="dark"] .perfil-page .perfil-card,
html[data-theme="dark"] .perfil-page .perfil-header,
html[data-theme="dark"] .perfil-page .perfil-kpi {
    color: var(--msc-color-text);
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .perfil-page .perfil-header {
    background: linear-gradient(135deg, var(--msc-color-surface), var(--msc-color-surface-soft)) !important;
}

html[data-theme="dark"] .perfil-page .perfil-tabs .nav-link,
html[data-theme="dark"] .perfil-page .perfil-kpi small,
html[data-theme="dark"] .perfil-page .perfil-table th,
html[data-theme="dark"] .perfil-page .perfil-info-label,
html[data-theme="dark"] .perfil-page .perfil-empty {
    color: var(--msc-color-muted) !important;
}

html[data-theme="dark"] .perfil-page .perfil-tabs .nav-link.active {
    color: #c8ddff !important;
    background: #1b345c !important;
}

html[data-theme="dark"] .perfil-page .perfil-kpi strong,
html[data-theme="dark"] .perfil-page .perfil-section-title,
html[data-theme="dark"] .perfil-page .perfil-info-value {
    color: var(--msc-color-heading) !important;
}

html[data-theme="dark"] .perfil-page .perfil-timeline {
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .pp-page {
    --pp-border: var(--msc-color-border);
    --pp-text: var(--msc-color-heading);
    --pp-muted: var(--msc-color-muted);
}

html[data-theme="dark"] .pp-page .pp-panel,
html[data-theme="dark"] .pp-page .card-header.bg-white {
    color: var(--msc-color-text);
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .pp-page .pp-table thead th {
    color: var(--msc-color-muted) !important;
    background: var(--msc-color-surface-soft) !important;
}

/* Contratos: projeção de receita anual. */
html[data-theme="dark"] .contract-projection-page {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .contract-projection-title,
html[data-theme="dark"] .projection-metric-value,
html[data-theme="dark"] .projection-contract-name {
    color: var(--msc-color-heading) !important;
}

html[data-theme="dark"] .contract-projection-subtitle,
html[data-theme="dark"] .projection-metric-label,
html[data-theme="dark"] .projection-metric-help,
html[data-theme="dark"] .projection-contract-meta,
html[data-theme="dark"] .projection-money-zero {
    color: var(--msc-color-muted) !important;
}

html[data-theme="light"] .contract-projection-page .projection-money-zero {
    color: #52606d !important;
}

html[data-theme="dark"] .contract-projection-page .projection-summary,
html[data-theme="dark"] .contract-projection-page .projection-note,
html[data-theme="dark"] .contract-projection-page .projection-table-card,
html[data-theme="dark"] .contract-projection-page .projection-metric,
html[data-theme="dark"] .contract-projection-page .projection-table-card .card-header {
    color: var(--msc-color-text);
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .contract-projection-page .projection-table tfoot th,
html[data-theme="dark"] .contract-projection-page .projection-table tfoot td,
html[data-theme="dark"] .contract-projection-page .projection-empty {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-soft) !important;
    border-color: var(--msc-color-border-strong) !important;
}

html[data-theme="dark"] .contract-projection-page .projection-metric-icon.calendar,
html[data-theme="dark"] .contract-projection-page .projection-metric-icon.revenue,
html[data-theme="dark"] .contract-projection-page .projection-metric-icon.table,
html[data-theme="dark"] .contract-projection-page .projection-metric-icon.warning {
    background: var(--msc-color-surface-active) !important;
}

/* PCO comparativo: tokens semânticos substituem transparências sem contraste. */
.pco-comparativo-page {
    --pco-heatmap-none: #eef2f6;
    --pco-heatmap-critical: #fee2e2;
    --pco-heatmap-warning: #fef3c7;
    --pco-heatmap-positive: #d1fae5;
    --pco-heatmap-text: #172033;
}

.pco-comparativo-page .heatmap-cell {
    color: var(--pco-heatmap-text) !important;
}

html[data-theme="dark"] .pco-comparativo-page {
    --pco-heatmap-none: #273546;
    --pco-heatmap-critical: #49201f;
    --pco-heatmap-warning: #443713;
    --pco-heatmap-positive: #123c31;
    --pco-heatmap-text: #f4f8fb;
}

html[data-theme="dark"] .pco-comparativo-page .heatmap-header,
html[data-theme="dark"] .pco-comparativo-page .heatmap-row-header {
    color: var(--msc-color-muted) !important;
}

html[data-theme="dark"] .pco-comparativo-page .cat-divider {
    color: #9edce8;
    background: var(--msc-color-surface-soft) !important;
    border-color: var(--msc-color-border) !important;
}

/* Conceitos e heatmaps das avaliações. */
.insuficiente,
.bg-insuficiente {
    color: #ffffff !important;
    background: #3f4652 !important;
    border-color: #68717f !important;
}

.abaixoEsperado,
.bg-abaixo {
    color: #ffffff !important;
    background: #9f2922 !important;
    border-color: #7e201b !important;
}

.dentroEsperado,
.bg-dentro {
    color: #172033 !important;
    background: #f6d77b !important;
    border-color: #b68c20 !important;
}

.acimaEsperado,
.bg-acima {
    color: #17372d !important;
    background: #a9e3ca !important;
    border-color: #55977d !important;
}

.referencia,
.bg-referencia {
    color: #ffffff !important;
    background: #176343 !important;
    border-color: #0f4b32 !important;
}

html[data-theme="dark"] .insuficiente,
html[data-theme="dark"] .bg-insuficiente {
    color: #e2e8f0 !important;
    background: #303947 !important;
    border-color: #68717f !important;
}

html[data-theme="dark"] .abaixoEsperado,
html[data-theme="dark"] .bg-abaixo {
    color: #ffc0bc !important;
    background: #49201f !important;
    border-color: #8d4a46 !important;
}

html[data-theme="dark"] .dentroEsperado,
html[data-theme="dark"] .bg-dentro {
    color: #ffe7a0 !important;
    background: #443713 !important;
    border-color: #7c6422 !important;
}

html[data-theme="dark"] .acimaEsperado,
html[data-theme="dark"] .bg-acima,
html[data-theme="dark"] .referencia,
html[data-theme="dark"] .bg-referencia {
    color: #b9f2d8 !important;
    background: #163c30 !important;
    border-color: #397a62 !important;
}

html[data-theme="dark"] .heatmap-table tr[style*="background-color"],
html[data-theme="dark"] .heatmap-table tr[style*="background:"] {
    color: var(--msc-color-heading) !important;
    background: var(--msc-color-surface-soft) !important;
}

/* Serviços Jequiti. */
html[data-theme="dark"] .jequiti-page,
html[data-theme="dark"] .jequiti-panel,
html[data-theme="dark"] .jequiti-panel-header,
html[data-theme="dark"] .jequiti-form {
    color: var(--msc-color-text);
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .jequiti-hero h2,
html[data-theme="dark"] .jequiti-panel-header h3,
html[data-theme="dark"] .jequiti-empty strong,
html[data-theme="dark"] .jequiti-form label {
    color: var(--msc-color-heading) !important;
}

html[data-theme="dark"] .jequiti-hero p,
html[data-theme="dark"] .jequiti-empty,
html[data-theme="dark"] .jequiti-panel table td small,
html[data-theme="dark"] .jequiti-message-preview {
    color: var(--msc-color-muted) !important;
}

html[data-theme="dark"] .jequiti-eyebrow {
    color: #9edce8 !important;
}

html[data-theme="dark"] .jequiti-count {
    color: #b5e9f2;
    background: #123743 !important;
}

html[data-theme="dark"] .jequiti-pill {
    color: #ffe7a0;
    background: #443713 !important;
}

/* Ferramentas de desenvolvimento. */
html[data-theme="dark"] .dev-email-page .card-header.bg-dark,
html[data-theme="dark"] .dev-email-page .list-group-item,
html[data-theme="dark"] .dev-email-page #visualizacao,
html[data-theme="dark"] .dev-email-page #codigoHtmlTextarea {
    color: var(--msc-color-text) !important;
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .dev-email-page .list-group-item.active {
    color: #ffffff !important;
    background: #16687a !important;
    border-color: #4aa7ba !important;
}

html[data-theme="dark"] .loop-converter-page .bg-light,
html[data-theme="dark"] .loop-converter-page #dropZone {
    color: var(--msc-color-text) !important;
    background: var(--msc-color-surface-soft) !important;
    border-color: var(--msc-color-border-strong) !important;
}

html[data-theme="dark"] .loop-converter-page .text-teal-msc {
    color: #9edce8 !important;
}

html[data-theme="dark"] .loop-converter-page .bg-soft-teal {
    color: #b5e9f2 !important;
    background: #123743 !important;
}

html[data-theme="dark"] .ahgora-token-placeholder {
    color: #9fc0ff !important;
}

html[data-theme="light"] .ahgora-method-list .list-group-item.active,
html[data-theme="light"] .ahgora-method-list .list-group-item.active span,
html[data-theme="light"] .ahgora-method-list .list-group-item.active small,
html[data-theme="dark"] .ahgora-method-list .list-group-item.active,
html[data-theme="dark"] .ahgora-method-list .list-group-item.active span,
html[data-theme="dark"] .ahgora-method-list .list-group-item.active small {
    color: #ffffff !important;
}

html[data-theme="light"] .ahgora-method-list .list-group-item.active,
html[data-theme="dark"] .ahgora-method-list .list-group-item.active {
    background: #4356c7 !important;
    border-color: #4356c7 !important;
}

html[data-theme="dark"] .ahgora-dev-card .text-white-50 {
    color: rgba(255, 255, 255, .76) !important;
}

/* Integrações, inventário, metas e notas de versão. */
html[data-theme="dark"] .comprasgov-badge,
html[data-theme="dark"] .minhapetronect-badge {
    color: #b5e9f2 !important;
    background: #123743 !important;
    border-color: #397485 !important;
}

html[data-theme="light"] .sp-count-badge {
    color: #075f69;
}

.inventario-etiqueta.is-etiquetado {
    color: #17372d !important;
    background: #d8f3e5 !important;
}

html[data-theme="light"] .btn-outline-primary:not(:disabled):not(.disabled).active,
html[data-theme="light"] .btn-outline-primary:not(:disabled):not(.disabled):active {
    color: #ffffff !important;
    background: #4356c7 !important;
    border-color: #4356c7 !important;
}

html[data-theme="dark"] .inventario-etiqueta.is-etiquetado {
    color: #b9f2d8 !important;
    background: #163c30 !important;
}

html[data-theme="dark"] .release-entry,
html[data-theme="dark"] .release-entry-body {
    color: var(--msc-color-text);
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .release-version-badge {
    color: #c8ddff !important;
    background: #1b345c !important;
    border-color: #42679d !important;
}

html[data-theme="dark"] .goals-cycle-state.is-open {
    color: #b9f2d8;
    background: #163c30;
    border-color: #397a62;
}

html[data-theme="dark"] .goals-cycle-state.is-closed {
    color: var(--msc-color-muted);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .goals-cycle-state.is-upcoming {
    color: #c8ddff;
    background: #1b345c;
    border-color: #42679d;
}

html[data-theme="dark"] .goals-panel-details-body,
html[data-theme="dark"] .goals-detail-section {
    color: var(--msc-color-text);
    background: var(--msc-color-surface) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .goals-detail-section .table th {
    color: var(--msc-color-muted) !important;
    background: var(--msc-color-surface-soft) !important;
    border-color: var(--msc-color-border) !important;
}

html[data-theme="light"] .goals-panel-details-body caption.sr-only {
    color: #667085 !important;
}

html[data-theme="dark"] .btn-outline-primary:not(:disabled):not(.disabled).active,
html[data-theme="dark"] .btn-outline-primary:not(:disabled):not(.disabled):active {
    color: #ffffff !important;
    background: #4356c7 !important;
    border-color: #8ea0ff !important;
}

/*
 * Ecossistema: a camada editorial do módulo é carregada antes desta folha.
 * Estes seletores completam a adaptação das superfícies recém-adicionadas sem
 * alterar a composição do módulo nem os cabeçalhos inversos intencionais.
 */
html[data-theme] .global-chat-dock-header,
html[data-theme] .global-conversation-header,
html[data-theme] .capture-composer__header,
html[data-theme] .ecosystem-container .ecosystem-context-masthead,
html[data-theme] .ecosystem-container .ecosystem-quick-create,
html[data-theme] .ecosystem-container .sidebar-drawer.ecosystem-detail-dialog > .drawer-header,
html[data-theme] .minhas-acoes-horizon-header {
    --msc-color-focus: var(--msc-color-warning);
}

html[data-theme] .ecosystem-container .ecosystem-context-kicker a {
    color: #ffffff !important;
}

html[data-theme="light"] .ecosystem-container .ecosystem-lens-index,
html[data-theme="light"] .ecosystem-container .ecosystem-workspace-tab small,
html[data-theme="light"] .ecosystem-container .ecosystem-process-copy > span,
html[data-theme="light"] .ecosystem-container .ecosystem-attention-empty span,
html[data-theme="light"] .ecosystem-container .ecosystem-pulse-reading > small,
html[data-theme="light"] .ecosystem-container .ecosystem-attention-count {
    color: var(--msc-color-muted);
}

html[data-theme="light"] .ecosystem-container .ecosystem-pulse-copy > .ecosystem-eyebrow,
html[data-theme="light"] .ecosystem-container .ecosystem-pulse-reading > span,
html[data-theme="light"] .ecosystem-container .ecosystem-attention-count strong {
    color: var(--msc-color-link-hover);
}

html[data-theme="light"] .ecosystem-container .ecosystem-process-path li:nth-child(3) {
    --ecosystem-process-accent: #7a4b08;
}

html[data-theme="light"] .capture-composer__context,
html[data-theme="light"] .capture-composer__intent-heading > small,
html[data-theme="light"] .capture-form__required-note {
    color: var(--msc-color-muted);
}

html[data-theme="light"] .capture-composer__live-stage > span,
html[data-theme="light"] .capture-composer__live-copy > span {
    color: var(--msc-color-link-hover);
}

html[data-theme="light"] .capture-modal.capture-composer .capture-field .form-control,
html[data-theme="light"] .capture-modal.capture-composer .capture-field .form-select {
    color: var(--msc-color-text) !important;
    background: var(--msc-color-surface-raised) !important;
    border-color: var(--msc-color-control-border) !important;
}

html[data-theme="dark"] .capture-composer__context,
html[data-theme="dark"] .capture-composer__intent,
html[data-theme="dark"] .capture-composer__live,
html[data-theme="dark"] .capture-form-more > summary,
html[data-theme="dark"] .capture-form-more__content,
html[data-theme="dark"] .capture-followup-toggle,
html[data-theme="dark"] .capture-followup-fields {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .capture-composer__stage,
html[data-theme="dark"] .capture-form__footer {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .capture-form__footer {
    box-shadow: 0 -8px 20px var(--msc-color-shadow);
}

html[data-theme="dark"] .capture-composer__live-stage,
html[data-theme="dark"] .capture-composer__intent,
html[data-theme="dark"] .capture-composer .capture-composer__intent-list,
html[data-theme="dark"] .capture-composer .capture-intent-card,
html[data-theme="dark"] .capture-form__intro,
html[data-theme="dark"] .capture-form-section,
html[data-theme="dark"] .capture-form-more,
html[data-theme="dark"] .capture-form-more__content {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .capture-composer__live-stage > strong,
html[data-theme="dark"] .capture-composer__live-copy > strong,
html[data-theme="dark"] .capture-composer__live-progress-value,
html[data-theme="dark"] .capture-form__intro h5,
html[data-theme="dark"] .capture-form-section__header h6,
html[data-theme="dark"] .capture-field > label,
html[data-theme="dark"] .capture-form-more > summary,
html[data-theme="dark"] .capture-followup-toggle strong {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .capture-intent-card__copy small,
html[data-theme="dark"] .capture-composer__live-copy > small,
html[data-theme="dark"] .capture-form__intro p,
html[data-theme="dark"] .capture-form-section__header p,
html[data-theme="dark"] .capture-field__hint,
html[data-theme="dark"] .capture-field__feedback,
html[data-theme="dark"] .capture-form-more > summary small,
html[data-theme="dark"] .capture-form__required-note,
html[data-theme="dark"] .capture-followup-toggle small {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .capture-composer__context i,
html[data-theme="dark"] .capture-composer__live-stage > span,
html[data-theme="dark"] .capture-composer__live-copy > span,
html[data-theme="dark"] .capture-form__type,
html[data-theme="dark"] .capture-form-more > summary i {
    color: var(--msc-color-link);
}

html[data-theme="dark"] .capture-composer__live-progress-track {
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .capture-composer__live-progress-fill {
    background: var(--msc-color-link);
}

html[data-theme="dark"] .capture-composer__live-progress.is-ready .capture-composer__live-progress-fill {
    background: var(--msc-color-success);
}

html[data-theme="dark"] .capture-composer .capture-intent-card:hover,
html[data-theme="dark"] .capture-composer .capture-intent-card.active {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-active);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .capture-intent-card__icon,
html[data-theme="dark"] .capture-intent-card.active .capture-intent-card__icon {
    background: transparent;
    border-color: currentColor;
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .capture-intent-card.active .capture-intent-card__icon {
    color: var(--msc-color-link);
}

html[data-theme="dark"] .capture-form-section::before {
    background: var(--msc-color-border-strong);
}

html[data-theme="dark"] .capture-form-section__step {
    color: var(--msc-color-link);
    background: var(--msc-color-surface-raised);
    border-color: var(--msc-color-link);
}

html[data-theme="dark"] .capture-money-field > span {
    color: var(--msc-color-muted);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-control-border);
}

html[data-theme="dark"] .capture-modal.capture-composer .capture-field .form-control,
html[data-theme="dark"] .capture-modal.capture-composer .capture-field .form-select {
    color: var(--msc-color-text) !important;
    background: var(--msc-color-surface-raised) !important;
    border-color: var(--msc-color-control-border) !important;
}

html[data-theme="dark"] .capture-modal.capture-composer .capture-field .form-control::placeholder {
    color: var(--msc-color-muted);
    opacity: 1;
}

html[data-theme="dark"] .capture-modal.capture-composer .capture-field .form-control:focus,
html[data-theme="dark"] .capture-modal.capture-composer .capture-field .form-select:focus {
    border-color: var(--msc-color-focus) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--msc-color-focus) 24%, transparent) !important;
}

html[data-theme="dark"] .capture-modal.capture-composer .form-group label,
html[data-theme="dark"] .capture-modal.capture-composer .form-check-label {
    color: var(--msc-color-text) !important;
}

html[data-theme="dark"] .capture-required,
html[data-theme="dark"] .capture-form__required-note > span,
html[data-theme="dark"] .capture-field__feedback.is-error {
    color: var(--msc-color-danger);
}

html[data-theme="dark"] .ecosystem-container {
    color: var(--msc-color-text);
    background: var(--msc-color-canvas);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-primary-nav,
html[data-theme="dark"] .ecosystem-container .ecosystem-primary-nav-copy,
html[data-theme="dark"] .ecosystem-container .ecosystem-workspace-tab {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-primary-nav-copy > strong,
html[data-theme="dark"] .ecosystem-container .ecosystem-lens-index,
html[data-theme="dark"] .ecosystem-container .ecosystem-workspace-tab small,
html[data-theme="dark"] .ecosystem-container .ecosystem-pulse-copy > p,
html[data-theme="dark"] .ecosystem-container .ecosystem-pulse-reading > small,
html[data-theme="dark"] .ecosystem-container .ecosystem-attention-count {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-workspace-tab {
    color: var(--msc-color-text);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-workspace-tab strong {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-workspace-tab:hover,
html[data-theme="dark"] .ecosystem-container .ecosystem-workspace-tab.active,
html[data-theme="dark"] .ecosystem-container .ecosystem-workspace-tab[aria-current="page"] {
    color: var(--msc-color-heading);
    background: var(--msc-color-surface-active);
    border-color: var(--msc-color-border);
    border-bottom-color: var(--msc-color-link);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-workspace-tab.active .ecosystem-lens-index,
html[data-theme="dark"] .ecosystem-container .ecosystem-workspace-tab[aria-current="page"] .ecosystem-lens-index {
    color: var(--msc-color-link);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-pulse-stage {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-pulse-link {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-context-kicker a {
    color: #ffffff !important;
}

html[data-theme="dark"] .ecosystem-container .ecosystem-pulse-reading > span {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-pulse-reading > strong {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-pulse-reading,
html[data-theme="dark"] .ecosystem-container .ecosystem-process-path,
html[data-theme="dark"] .ecosystem-container .ecosystem-process-path button {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-process-path {
    color: var(--msc-color-text);
    background: var(--msc-color-surface);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-process-copy > span {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-process-path::before,
html[data-theme="dark"] .ecosystem-container .ecosystem-attention-list::before {
    background: var(--msc-color-border-strong);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-process-path li {
    --ecosystem-process-accent: var(--msc-color-link);
    --ecosystem-process-soft: color-mix(in srgb, var(--msc-color-link) 14%, var(--msc-color-surface));
}

html[data-theme="dark"] .ecosystem-container .ecosystem-process-path li:nth-child(2) {
    --ecosystem-process-accent: var(--msc-color-info);
    --ecosystem-process-soft: color-mix(in srgb, var(--msc-color-info) 14%, var(--msc-color-surface));
}

html[data-theme="dark"] .ecosystem-container .ecosystem-process-path li:nth-child(3) {
    --ecosystem-process-accent: var(--msc-color-warning);
    --ecosystem-process-soft: color-mix(in srgb, var(--msc-color-warning) 14%, var(--msc-color-surface));
}

html[data-theme="dark"] .ecosystem-container .ecosystem-process-path li:nth-child(4) {
    --ecosystem-process-accent: var(--msc-color-success);
    --ecosystem-process-soft: color-mix(in srgb, var(--msc-color-success) 14%, var(--msc-color-surface));
}

html[data-theme="dark"] .ecosystem-container .ecosystem-process-path button:hover {
    background: var(--msc-color-surface-active);
    border-color: var(--ecosystem-process-accent);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-process-index {
    background: var(--ecosystem-process-soft);
    border-color: var(--ecosystem-process-accent);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-attention-item {
    --ecosystem-attention-accent: var(--msc-color-info);
    --ecosystem-attention-soft: color-mix(in srgb, var(--msc-color-info) 14%, var(--msc-color-surface));
    color: var(--msc-color-text);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-attention-item.is-critical {
    --ecosystem-attention-accent: var(--msc-color-danger);
    --ecosystem-attention-soft: color-mix(in srgb, var(--msc-color-danger) 14%, var(--msc-color-surface));
}

html[data-theme="dark"] .ecosystem-container .ecosystem-attention-item.is-overdue {
    --ecosystem-attention-accent: var(--msc-color-warning);
    --ecosystem-attention-soft: color-mix(in srgb, var(--msc-color-warning) 14%, var(--msc-color-surface));
}

html[data-theme="dark"] .ecosystem-container .ecosystem-attention-item.is-next {
    background: color-mix(in srgb, var(--msc-color-warning) 9%, var(--msc-color-surface));
}

html[data-theme="dark"] .ecosystem-container .ecosystem-attention-item:hover {
    background: var(--msc-color-surface-active);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-attention-count strong {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-attention-icon {
    background: var(--ecosystem-attention-soft);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-attention-empty {
    color: var(--msc-color-success);
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-attention-empty > i,
html[data-theme="dark"] .ecosystem-container .ecosystem-attention-empty strong {
    color: var(--msc-color-success);
}

html[data-theme="dark"] .ecosystem-container .ecosystem-attention-empty span {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .ecosystem-container .sidebar-drawer.ecosystem-detail-dialog > .drawer-body {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-soft);
}

html[data-theme="dark"] .ecosystem-field-feedback,
html[data-theme="dark"] .ecosystem-person-action-meta {
    color: var(--msc-color-muted);
}

html[data-theme="dark"] .ecosystem-field-feedback.is-error {
    color: var(--msc-color-danger);
}

html[data-theme="dark"] .ecosystem-form-guidance {
    color: var(--msc-color-info);
    background: color-mix(in srgb, var(--msc-color-info) 8%, var(--msc-color-surface));
    border-color: color-mix(in srgb, var(--msc-color-info) 42%, var(--msc-color-border));
}

html[data-theme="dark"] .ecosystem-form-guidance button,
html[data-theme="dark"] .ecosystem-person-history-btn {
    color: var(--msc-color-link-hover);
}

html[data-theme="dark"] .ecosystem-timeline-description,
html[data-theme="dark"] .ecosystem-person-action-text > b {
    color: var(--msc-color-heading);
}

html[data-theme="dark"] .ecosystem-person-action {
    color: var(--msc-color-text);
    background: var(--msc-color-surface-raised);
    border-color: var(--msc-color-border) !important;
}

html[data-theme="dark"] .ecosystem-person-history-btn {
    border-color: var(--msc-color-border);
}

html[data-theme="dark"] .minha-acao-file-input:focus-visible + .minha-acao-file-trigger {
    outline: 3px solid var(--msc-color-focus) !important;
    outline-offset: 2px;
}

@media print {
    html,
    html[data-theme="dark"],
    html[data-theme="light"] {
        color-scheme: light;
        --msc-color-canvas: #ffffff;
        --msc-color-surface: #ffffff;
        --msc-color-surface-raised: #ffffff;
        --msc-color-surface-soft: #f7f9fc;
        --msc-color-surface-active: #e9f3f6;
        --msc-color-text: #111827;
        --msc-color-heading: #000000;
        --msc-color-muted: #374151;
        --msc-color-border: #cbd5e1;
        --msc-color-border-strong: #8795a3;
        --msc-color-control-border: #8795a3;
        --msc-color-link: #0d4f5e;
        --msc-color-link-hover: #0d4f5e;
        --msc-color-focus: #125666;
        --msc-color-success: #217a5c;
        --msc-color-danger: #b42318;
        --msc-color-warning: #7a4b08;
        --msc-color-info: #0b7285;
        --msc-primary-50: #eef7f8;
        --msc-primary-100: #d8edf1;
    }

    .msc-theme-toggle,
    .msc-theme-floating-toggle {
        display: none !important;
    }
}
