/* Semantic light-theme layer. The original dark styles and document paper are unchanged. */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="light"]{color-scheme:light;--ui-bg:#f1f5f9;--ui-panel:#fff;--ui-text:#172b36;--ui-muted:#526574;--ui-line:#cbd5e1;--verde:#065f46;--verde-50:rgba(6,95,70,.5);--verde-13:rgba(6,95,70,.13);--verde-12:rgba(6,95,70,.12);--verde-10:rgba(6,95,70,.10);--verde-07:rgba(6,95,70,.07);--azul:#036982;--azul-bright:#0369a1;--azul-mid:#355e7b;--vermelho:#b42331;--amarelo:#926300;--verde-dimp:#267427;color:var(--ui-text)}
html[data-theme="light"] body{background:var(--ui-bg);color:var(--ui-text)}
html[data-theme="light"] .page-wrapper-overlay,html[data-theme="light"] .login-page{background-image:none}
html[data-theme="light"] :is(.topbar,.sidebar,.card,.form-card,.agent-cases,.table-section,.login-card,.modal,.modal-box,.filter-modal,.fiscal-grade-modal,.dashboard-kpi,.dashboard-chart-card,.dashboard-summary-card,.malha-filter-panel,.document-layout-preview,.document-process-summary,.freshness-table-wrap){background:var(--ui-panel);border-color:var(--ui-line);color:var(--ui-text);box-shadow:0 2px 5px rgba(15,35,45,.035)}
html[data-theme="light"] .topbar{box-shadow:0 4px 18px rgba(15,35,45,.06)}
html[data-theme="light"] :is(.topbar__logo,.footer__logo,.login-logo) img{content:url('../img/ui/logo-dimp-light.svg')}
html[data-theme="light"] :is(.topbar__hamburger span,.hamburger span){background:var(--ui-text)}
html[data-theme="light"] :is(.sidebar__link,.sidebar__section-title,.sidebar__group-title,.sidebar__sub-link,.topbar__sep,.footer__text,.login-forgot,.login-footer){color:var(--ui-muted)}
html[data-theme="light"] :is(.sidebar__link:hover,.sidebar__link--active,.sidebar__sub-link:hover,.sidebar__sub-link--active){color:var(--verde);background:var(--verde-07)}
html[data-theme="light"] :is(.page-header h1,.tab-panel__title,.company-info strong,.agent-cases__header h2,.agent-cases__header h3,.modal__title,.dashboard-comparison-heading h3,.document-additional-section__heading strong,.fiscal-grade-modal__section strong){color:var(--ui-text)}
html[data-theme="light"] .page-header h1{letter-spacing:-.035em}
html[data-theme="light"] :is(.company-info,.form-help,.form-label,.field__label,.page-subtitle,.malha-pagination-info,.agent-cases__header span,.modal__msg,.modal__text,.freshness-policy,.freshness-caption,.freshness-table small,.freshness-table details,.dashboard-comparison-heading p){color:var(--ui-muted)}
html[data-theme="light"] :is(.field__input,.form-input,.form-select,.form-textarea,.login-input,.malha-filter-rule input,.malha-filter-rule select,.fiscal-integration .form-input){background:#fff;color:var(--ui-text);border-color:#b8c8d2;color-scheme:light}
html[data-theme="light"] :is(.field__input,.form-input,.login-input)::placeholder{color:#677b88;opacity:1}
html[data-theme="light"] :is(select,input[type=date],input[type=month]){color-scheme:light}
html[data-theme="light"] select option{background:#fff;color:var(--ui-text)}
html[data-theme="light"] :is(.field__input,.form-input,.login-input):focus{border-color:var(--verde);box-shadow:0 0 0 3px var(--verde-10)}
html[data-theme="light"] :is(input,select,textarea):disabled{background:#e8edf1;color:#526574;opacity:1}
html[data-theme="light"] :is(.btn-primary,.btn-fiscalizar,.modal__btn--confirm,.modal__btn--primary){background:var(--verde);border-color:var(--verde);color:#fff}
html[data-theme="light"] :is(.btn-primary,.btn-fiscalizar):hover{background:#047857;opacity:1}
html[data-theme="light"] .btn-outline{color:var(--verde);background:#fff;border-color:#8daea3}
html[data-theme="light"] .btn-outline:hover{background:#eaf5f0}
html[data-theme="light"] :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--verde);outline-offset:3px}
html[data-theme="light"] :is(.table-block .year-tabs,.year-tabs,.data-table thead,.freshness-table thead,.document-rich-toolbar,.document-competencies__head){background:#eaf0f3;border-color:var(--ui-line)}
html[data-theme="light"] .year-tab{color:var(--ui-muted)}
html[data-theme="light"] .year-tab--active{color:var(--verde);background:#e4f3ed}
html[data-theme="light"] :is(.data-table th,.freshness-table th,.document-models-table th){color:#415866;border-color:var(--ui-line)}
html[data-theme="light"] :is(.data-table td,.freshness-table td){color:var(--ui-text);border-color:#dce5eb}
html[data-theme="light"] .data-table tbody tr.row-total td{color:var(--ui-text);background:#eaf5f0;border-color:#a4c7b7}
html[data-theme="light"] :is(.data-table td.val-muted,.data-table tbody tr.row-total td.val-muted){color:var(--ui-muted)}
html[data-theme="light"] :is(.data-table td.val-red,.data-table tbody tr.row-total td.val-red){color:#b42331}
html[data-theme="light"] :is(.data-table td.val-teal,.data-table tbody tr.row-total td.val-teal,.data-table td.val-green,.data-table tbody tr.row-total td.val-green){color:#065f46}
html[data-theme="light"] :is(.data-table td.val-yellow,.data-table td.val-orange){color:#926300}
html[data-theme="light"] .fiscal-integration .data-table td[colspan]{color:var(--ui-muted)}
html[data-theme="light"] .freshness-table tbody th strong{color:var(--ui-text)}
html[data-theme="light"] .freshness-status{color:#415866;background:#f1f5f9;border-color:#91a8b5}
html[data-theme="light"] :is(.freshness-status--current,.freshness-month--present){background:#e8f6ee;color:#065f46;border-color:#86bda5}
html[data-theme="light"] :is(.freshness-status--warning,.freshness-status--late){background:#fff4d9;color:#805500;border-color:#c9a45a}
html[data-theme="light"] .freshness-month{color:#526574;border-color:#a4b6c2}
html[data-theme="light"] .freshness-table summary{color:#065f46}
html[data-theme="light"] .fiscal-dashboard-main{--fiscal-bg:#f1f5f9;--fiscal-panel:#fff;--fiscal-line:#cbd5e1;--fiscal-muted:#526574;--fiscal-text:#172b36;--fiscal-green:#065f46;--fiscal-blue:#0369a1}
html[data-theme="light"] .fiscal-dashboard-main::before,html[data-theme="light"] .fiscal-dashboard-chart-card::before{display:none}
html[data-theme="light"] :is(.dashboard-chart-tooltip,.fiscal-dashboard-tooltip){background:#fff;color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme="light"] :is(.dashboard-chart-axis,.fiscal-dashboard-chart-axis){fill:#526574;color:#526574}
html[data-theme="light"] :is(.dashboard-chart-grid-line,.fiscal-dashboard-chart-grid-line){stroke:#dce5eb}
html[data-theme="light"] .dashboard-chart-point{stroke:#fff}
html[data-theme="light"] .document-models{--dm-muted:#526574;--dm-border:#cbd5e1}
html[data-theme="light"] :is(.document-rich-content,.document-rich-toolbar button,.document-variable-button,.document-generator-help){color:var(--ui-text);background:#f8fafb}
html[data-theme="light"] :is(.document-rich-content h1,.document-rich-content h2,.document-rich-content h3,.document-rich-content blockquote){color:var(--ui-text)}
html[data-theme="light"] .document-rich-content:empty::before{color:#677b88}
html[data-theme="light"] .document-model-delete{color:#b42331}
html[data-theme="light"] :is(.document-model-status.is-active,.document-models-alert.is-success,.page-message--success){color:#065f46;background:#e8f6ee}
html[data-theme="light"] :is(.document-model-status.is-draft,.page-message--warning){color:#805500;background:#fff4d9}
html[data-theme="light"] :is(.document-models-alert.is-error,.page-message--error){color:#b42331;background:#fff0f1}
html[data-theme="light"] .page-message--info{color:#075985;background:#edf7ff}
html[data-theme="light"] .modal-backdrop{background:rgba(15,31,43,.45)}
html[data-theme="light"] .modal{box-shadow:0 24px 72px rgba(15,31,43,.18)}
/* Actual shared navigation and fiscal components (legacy styles contain literal white). */
html[data-theme="light"] :is(.nav-item,.nav-label-action,.ph-sign-out,.modal__close-x,.quick-access-check){color:var(--ui-text)}
html[data-theme="light"] :is(.nav-item:hover,.nav-item--active,.nav-label-action:hover,.modal__close-x:hover){color:var(--verde)}
html[data-theme="light"] :is(.nav-item--quick-empty,.rules-condition__label,.rule-operator,.rule-badge,.malha-column-option),html[data-theme="light"] .malha-column-option::after{color:var(--ui-muted)}
html[data-theme="light"] :is(.quick-access-group,.quick-access-check,.malha-company-summary__main,.malha-company-summary__grid){background:#f8fafc;border-color:var(--ui-line)}
html[data-theme="light"] :is(.malha-company-summary h2,.malha-company-summary__item strong){color:var(--ui-text)}
html[data-theme="light"] :is(.malha-company-summary p,.malha-company-summary__item span,.fiscal-grade-modal__section p,.fiscal-grade-modal__section li){color:var(--ui-muted)}
html[data-theme="light"] :is(.rule-field,.rule-value){background:#fff;color:var(--verde);border-color:var(--ui-line)}
html[data-theme="light"] .btn-rule-add{color:#fff;background:var(--verde)}
html[data-theme="light"] .fiscal-risk-badge strong{color:inherit}
html[data-theme="light"] :is(.fiscal-risk-badge--danger,.fiscal-risk-badge--high){color:#b42331;background:#fff0f1;border-color:#dda0a6}
html[data-theme="light"] :is(.fiscal-risk-badge--medium,.fiscal-regime-badge--mei){color:#0369a1;background:#edf7ff;border-color:#93bbd3}
html[data-theme="light"] :is(.fiscal-risk-badge--neutral,.fiscal-regime-badge--neutral,.fiscal-mei-cap-badge--neutral,.socios-grade--neutral,.idf-marker-empty,.val-muted){color:var(--ui-muted);border-color:var(--ui-line)}
html[data-theme="light"] .malha-column-option--locked span::after,html[data-theme="light"] :is(.malha-saved-filter span,.malha-saved-filters__empty,.malha-linked-companies__empty,.tab-panel__empty){color:var(--ui-muted)}
html[data-theme="light"] .malha-saved-filter strong{color:var(--ui-text)}
html[data-theme="light"] :is(.modal__btn--success,.modal__btn--alert){color:#fff}
html[data-theme="light"] .modal__btn--alert--outline{color:#805500;background:#fff8e8;border-color:#ba974f}
html[data-theme="light"] .fiscal-dashboard-chart-tooltip{background:#fff;color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme="light"] :is(.fiscal-dashboard-chart__axis,.fiscal-dashboard-chart__point text){fill:#526574;color:#526574}
html[data-theme="light"] .fiscal-dashboard-chart__grid{stroke:#dce5eb}
html[data-theme="light"] .fiscal-dashboard-chart__point circle{stroke:#fff}
html[data-theme="light"] .document-models-main{--dm-muted:#526574;--dm-border:#cbd5e1}
.report-export-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:14px}.report-export-actions small{font-size:12px;opacity:.8}.report-export-actions button:disabled{opacity:.4;cursor:not-allowed}.report-export-dialog{max-width:540px;width:calc(100% - 32px);margin:auto;padding:24px;border:1px solid var(--verde-50);border-radius:12px;background:var(--azul-dark);color:#fff}.report-export-dialog::backdrop{background:rgba(0,0,0,.55)}.report-export-dialog p{margin:12px 0;font-size:14px;line-height:1.6}.report-export-dialog .field__input{margin:10px 0}.report-export-dialog .header-actions{justify-content:flex-end;margin-top:16px}html[data-theme="light"] .report-export-dialog{background:#fff;color:var(--ui-text)}

/* One shared component tree; these selectors only replace legacy literal colors. */
html[data-theme="light"] :is(.daily-agent-card,.daily-processes-card,.dashboard-kpi-card,.education-config-card,.tip){background:var(--ui-panel);border-color:var(--ui-line);color:var(--ui-text)}
html[data-theme="light"] :is(.daily-agent-card__head h2,.daily-agent-card__kpis strong,.daily-agenda-topic__title h3,.daily-agenda-topic__body,.daily-alert__body strong,.daily-process__body strong,.daily-processes-table__interaction strong,.agent-case-contributor strong,.agent-case-flow strong,.dashboard-version-chip,.dashboard-section__head h2,.dashboard-kpi-card strong,.dashboard-chart-card__head h3,.dashboard-chart-card__head strong,.dashboard-mini-bars__item strong,.dashboard-history-item__body strong,.education-config-card h2,.education-config-block__heading h3,.education-toggle-row strong,.education-delivery-company strong,.form-card__title,.stat-box__value,.chart-title){color:var(--ui-text)}
html[data-theme="light"] :is(.daily-agent-card__head p,.daily-agent-card__kpis span,.daily-alert__body em,.daily-alert__body small,.daily-process__body em,.daily-process__body small,.daily-processes-table__interaction span,.agent-case-contributor span,.agent-table-empty,.dashboard-section__head p,.dashboard-control span,.dashboard-kpi-card span,.dashboard-kpi-card em,.dashboard-chart-card__head span,.dashboard-mini-bars__item em,.dashboard-history-item__body em,.education-config-card p,.education-config-block__heading span,.stat-box__label,.months,.chart-total__label,.rules-condition__text){color:var(--ui-muted)}
html[data-theme="light"] .education-toggle-row > div > span,html[data-theme="light"] .education-config-card__control > span.education-config-card__state--off{color:var(--ui-muted)}
html[data-theme="light"] :is(.daily-agenda-topic,.daily-alert,.daily-process,.daily-agent-card__kpis div,.education-channel-template-card,.malha-filter-builder,.stat-box){background:#f8fafc;border-color:var(--ui-line)}
html[data-theme="light"] :is(.daily-alert:hover,.daily-process:hover){background:var(--verde-07);border-color:#8daea3}
html[data-theme="light"] .daily-agenda-warning{color:#805500;background:#fff4d9;border-color:#c9a45a}
html[data-theme="light"] :is(.daily-process__id,.dashboard-version-chip--snapshot i){color:var(--azul-bright)}
html[data-theme="light"] :is(.dashboard-version-chip,.dashboard-segmented,.education-config-block,.education-models-section,.education-config-card__control,.education-template-fields,.education-toggle-list,.daily-processes-table td){border-color:var(--ui-line)}
html[data-theme="light"] .dashboard-segmented__btn{color:var(--ui-muted);background:transparent}
html[data-theme="light"] .dashboard-segmented__btn--active{color:#fff;background:var(--verde)}
html[data-theme="light"] .education-toggle-row .education-channel-readiness{color:var(--ui-muted);background:#f1f5f9;border-color:var(--ui-line)}
html[data-theme="light"] :is(.education-toggle-row .education-channel-readiness--live,.stat-box__value--verde){color:var(--verde)}
html[data-theme="light"] :is(.education-toggle-row .education-channel-readiness--beta,.stat-box__value--amarelo){color:var(--amarelo)}
html[data-theme="light"] :is(.education-toggle-row .education-channel-readiness--validation,.stat-box__value--vermelho){color:var(--vermelho)}
html[data-theme="light"] .education-toggle-row--disabled{opacity:1}
html[data-theme="light"] .education-channel-line{color:var(--ui-muted)}
html[data-theme="light"] .education-channel-line--ready{color:var(--verde)}
html[data-theme="light"] :is(.education-channel-line--blocked,.education-toggle-row .education-channel-readiness--unavailable){color:var(--ui-muted)}
html[data-theme="light"] .toggle__track{background:#64748b;box-shadow:inset 0 0 0 1px #526574}
html[data-theme="light"] .toggle input:checked ~ .toggle__track{background:var(--verde)}
html[data-theme="light"] .toggle input:disabled ~ .toggle__track{background:#cbd5e1;box-shadow:inset 0 0 0 1px #8295a4;cursor:not-allowed}
html[data-theme="light"] .toggle input:disabled:checked ~ .toggle__track{background:#526f63}
html[data-theme="light"] .toggle input:focus-visible ~ .toggle__track{outline:2px solid var(--verde);outline-offset:3px}
html[data-theme="light"] .form-select{appearance:auto;background-image:none;padding-right:12px}
html[data-theme="light"] .tip{box-shadow:0 4px 16px rgba(15,35,45,.16)}
.page-header .report-export-actions{margin-top:0;flex-wrap:nowrap}
.report-export-scope{margin:8px 0 0;color:rgba(255,255,255,.72);font-size:12px;line-height:1.5;max-width:540px}
html[data-theme="light"] .report-export-scope{color:var(--ui-muted)}
.profile-appearance__actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:16px}
.profile-appearance__actions .form-help{margin:0;flex:1 1 220px}
.profile-appearance .form-select{width:100%;max-width:420px}
#profileThemeMessage[data-status="error"]{color:var(--vermelho)}
#profileThemeMessage[data-status="success"]{color:var(--verde)}

/* Light coverage: shared legacy components. No alternate markup or business rules. */
html[data-theme="light"] :is(.toast,.page-message){background:var(--ui-panel);color:var(--ui-text);border-color:var(--ui-line);box-shadow:0 4px 18px rgba(15,35,45,.08)}
html[data-theme="light"] .page-message{border-left-color:var(--azul)}
html[data-theme="light"] :is(.toast--success,.page-message--success){border-left-color:var(--verde)}
html[data-theme="light"] :is(.toast--error,.page-message--error){border-left-color:var(--vermelho)}
html[data-theme="light"] :is(.toast--alert,.page-message--alert,.page-message--warning){border-left-color:var(--amarelo)}
html[data-theme="light"] :is(.toast--info,.page-message--info){border-left-color:var(--azul)}
html[data-theme="light"] .page-message--success{background:#e8f6ee;color:#065f46}
html[data-theme="light"] .page-message--error{background:#fff0f1;color:#b42331}
html[data-theme="light"] :is(.page-message--alert,.page-message--warning){background:#fff4d9;color:#805500}
html[data-theme="light"] .page-message--info{background:#edf7ff;color:#075985}
html[data-theme="light"] :is(.toast__msg,.notification-list-item__title,.notification-list-item__details){color:var(--ui-text)}
html[data-theme="light"] :is(.notification-list-item__meta,.notification-list-item__action,.toast__close){color:var(--ui-muted)}
html[data-theme="light"] :is(.toast__close:hover,.notification-list-item__action:hover){color:var(--verde)}
html[data-theme="light"] .notification-list-item--unread{background:#f0f8f5;box-shadow:0 0 0 1px #8daea3,0 4px 18px rgba(15,35,45,.06)}
html[data-theme="light"] .notification-unread-dot{box-shadow:0 0 0 4px var(--verde-10)}
html[data-theme="light"] .notification-pill--alert{background:#fff4d9;color:#805500}

html[data-theme="light"] .indicator-kpi{background:var(--ui-panel);border-color:var(--ui-line);color:var(--ui-text);box-shadow:0 2px 5px rgba(15,35,45,.035)}
html[data-theme="light"] .indicator-kpi--warn{background:#fff8e8;border-color:#c9a45a}
html[data-theme="light"] .indicator-kpi--success{background:#eff8f2;border-color:#86bda5}
html[data-theme="light"] .indicator-kpi--danger{background:#fff2f3;border-color:#dda0a6}
html[data-theme="light"] .indicator-kpi--active{border-color:var(--verde);box-shadow:0 0 0 1px var(--verde)}
html[data-theme="light"] .indicator-kpi :is(span,em){color:var(--ui-muted)}
html[data-theme="light"] .indicator-kpi strong{color:var(--ui-text)}
html[data-theme="light"] a.indicator-kpi:hover{border-color:var(--verde);box-shadow:0 4px 14px rgba(15,35,45,.1)}

html[data-theme="light"] :is(.cnpj-filter-group__label,.agent-case-company .agent-case-company__document,.ecd-month-chart__label,.ecd-muted,.ecd-legend){color:var(--ui-muted)}
html[data-theme="light"] .agent-case-company strong{color:var(--ui-text)}
html[data-theme="light"] .cnpj-filter-chip{background:#f8fafc;color:var(--ui-muted);border-color:var(--ui-line)}
html[data-theme="light"] :is(.cnpj-filter-chip--active,.cnpj-filter-chip:hover){background:#eaf5f0;color:var(--verde);border-color:#8daea3}
html[data-theme="light"] .pag-btn{background:#fff;color:var(--ui-muted);border-color:#a4b6c2}
html[data-theme="light"] :is(.pag-btn--active,.pag-btn:hover:not(:disabled):not(.pag-btn--disabled)){background:#eaf5f0;color:var(--verde);border-color:var(--verde)}
html[data-theme="light"] :is(.pag-btn:disabled,.pag-btn--disabled,.pag-btn--disabled:hover){background:#e8edf1;color:#526574;border-color:var(--ui-line);opacity:.6}
html[data-theme="light"] :is(.btn-icon--teal,.btn-icon--blue){color:#fff}
html[data-theme="light"] .fiscal-risk-badge--warn{background:#fff4d9;color:#805500;border-color:#c9a45a}
html[data-theme="light"] .ecd-group-badge--servico{background:#e8f6ee;color:#065f46;border-color:#86bda5}
html[data-theme="light"] .ecd-group-badge--ambigua{background:#fff4d9;color:#805500;border-color:#c9a45a}
html[data-theme="light"] .ecd-group-badge--mercadoria{background:#edf7ff;color:#0369a1;border-color:#93bbd3}
html[data-theme="light"] .ecd-group-badge--iss{background:#f3efff;color:#6d28d9;border-color:#b9a3df}
html[data-theme="light"] .ecd-group-badge--ignorar{background:#f1f5f9;color:var(--ui-muted);border-color:#a4b6c2}
html[data-theme="light"] :is(.ecd-bar--nfse,.ecd-dot--nfse){background:#0369a1}
html[data-theme="light"] :is(.ecd-bar--pgdasd,.ecd-dot--pgdasd){background:#6d28d9}
html[data-theme="light"] :is(.ecd-bar--dimp,.ecd-dot--dimp){background:#926300}

html[data-theme="light"] .fiscal-dashboard-tab{background:#fff;color:var(--ui-muted)}
html[data-theme="light"] :is(.fiscal-dashboard-tab.is-active,.fiscal-dashboard-tab:hover){background:#eaf5f0;color:var(--verde);border-color:#8daea3}
html[data-theme="light"] .fiscal-dashboard-context{background:linear-gradient(110deg,#eaf5f0,#f8fafc);border-color:#a4c7b7}
html[data-theme="light"] .fiscal-dashboard-context.is-provisional{background:#fff8e8;border-color:#c9a45a}
html[data-theme="light"] .fiscal-dashboard-tab small{background:#fff4d9;color:#805500;border-color:#c9a45a}
html[data-theme="light"] :is(.fiscal-dashboard-provisional,.fiscal-dashboard-provisional strong){color:#805500}
html[data-theme="light"] :is(.fiscal-dashboard-municipality small,.fiscal-dashboard-comparison .field__input,.fiscal-dashboard-kpi__index,.fiscal-dashboard-kpi__meta small,.fiscal-dashboard-kpi__meta .fiscal-dashboard-kpi__previous,.fiscal-dashboard-kpi__meta em.is-neutral,.fiscal-dashboard-kpi__action,.fiscal-dashboard-bar span,.fiscal-dashboard-bar small){color:var(--ui-muted)}
html[data-theme="light"] .fiscal-dashboard-comparison .field__input{background:#f8fafc}
html[data-theme="light"] :is(.fiscal-dashboard-comparison i,.fiscal-dashboard-kpi__meta em.is-positive){color:#0369a1}
html[data-theme="light"] .fiscal-dashboard-kpi__meta em.is-negative{color:#6d28d9}
html[data-theme="light"] .fiscal-dashboard-kpi__action{border-color:var(--ui-line)}
html[data-theme="light"] .fiscal-dashboard-kpi:hover{border-color:#8daea3;box-shadow:0 8px 24px rgba(15,35,45,.09)}
html[data-theme="light"] .fiscal-dashboard-kpi:hover .fiscal-dashboard-kpi__action{color:var(--verde)}
html[data-theme="light"] .fiscal-dashboard-bar__track{background:#e2e8f0}
html[data-theme="light"] .fiscal-dashboard-method{background:#f8fafc}
html[data-theme="light"] .fiscal-dashboard-table-wrap td{color:var(--ui-text)}
html[data-theme="light"] .fiscal-dashboard-modal-close{background:#f1f5f9;color:var(--ui-muted)}

html[data-theme="light"] :is(.semantic-chat-sidebar,.semantic-chat-main){background:var(--ui-panel);color:var(--ui-text);border-color:var(--ui-line);box-shadow:0 4px 18px rgba(15,35,45,.05)}
html[data-theme="light"] :is(.semantic-chat-toolbar,.semantic-chat-composer){background:#f8fafc;border-color:var(--ui-line)}
html[data-theme="light"] .semantic-chat-messages{background:#f1f5f9}
html[data-theme="light"] :is(.semantic-chat-new,.semantic-chat-empty){background:#eaf5f0;color:var(--verde);border-color:#a4c7b7}
html[data-theme="light"] .semantic-chat-new:hover{background:#dceee5;border-color:var(--verde)}
html[data-theme="light"] :is(.semantic-chat-toolbar h2,.semantic-chat-empty h3,.semantic-chat-message__head strong,.semantic-chat-text,.semantic-chat-text strong){color:var(--ui-text)}
html[data-theme="light"] :is(.semantic-chat-sidebar__section,.semantic-chat-history-empty,.semantic-chat-thread small,.semantic-chat-empty p,.semantic-chat-message__head span,.semantic-chat-sources ul,.semantic-chat-context){color:var(--ui-muted)}
html[data-theme="light"] :is(.semantic-chat-thread,.semantic-chat-toggle,.semantic-chat-select,.semantic-chat-examples button,.semantic-chat-copy){background:#fff;color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme="light"] :is(.semantic-chat-thread:hover,.semantic-chat-thread--active){background:#edf7ff;color:#075985;border-color:#93bbd3}
html[data-theme="light"] :is(.semantic-chat-examples button:hover,.semantic-chat-copy:hover,.semantic-chat-copy--done){background:#eaf5f0;color:var(--verde);border-color:#8daea3}
html[data-theme="light"] :is(.semantic-chat-select select,.semantic-chat-composer textarea){background:#fff;color:var(--ui-text);border-color:#b8c8d2;color-scheme:light}
html[data-theme="light"] .semantic-chat-composer textarea::placeholder{color:var(--ui-muted);opacity:1}
html[data-theme="light"] .semantic-chat-composer textarea:focus-visible{outline:2px solid var(--verde);outline-offset:3px;border-color:var(--verde)}
html[data-theme="light"] .semantic-chat-avatar{background:#e1f0fc;color:#0369a1}
html[data-theme="light"] .semantic-chat-message--user .semantic-chat-avatar{background:#dceee5;color:var(--verde)}
html[data-theme="light"] .semantic-chat-bubble{background:#fff;border-color:var(--ui-line)}
html[data-theme="light"] .semantic-chat-message--user .semantic-chat-bubble{background:#eaf5f0;border-color:#a4c7b7}
html[data-theme="light"] .semantic-chat-code{background:#f1f5f9;color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme="light"] .semantic-chat-text code{background:#e8f6ee;color:var(--verde)}
html[data-theme="light"] .semantic-chat-meta span{background:#fff4d9;color:#805500;border-color:#c9a45a}
html[data-theme="light"] :is(.semantic-chat-history-empty,.semantic-chat-sources,.semantic-chat-separator){border-color:var(--ui-line)}

html[data-theme="light"] :is(.terminal,.code-preview,.swagger-base-url){background:#f8fafc;color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme="light"] .terminal__bar{background:#eaf0f3;color:var(--ui-muted);border-color:var(--ui-line)}
html[data-theme="light"] :is(.terminal__sep,.terminal__line--cmd,.swagger-base-url span){color:var(--ui-muted)}
html[data-theme="light"] :is(.terminal__line--ok,.code-preview .c-fn,.code-preview .c-arr){color:var(--verde)}
html[data-theme="light"] :is(.terminal__line--warn,.code-preview .c-str){color:#805500}
html[data-theme="light"] .terminal__line--err{color:var(--vermelho)}
html[data-theme="light"] .code-preview .c-key{color:#0369a1}
/* Long chunk metadata wraps inside its card instead of widening the entire page. */
html[data-theme="light"] .rag-knowledge-main :is(.dashboard-panel,.semantic-source-list,.semantic-source-item,.semantic-source-item > div){min-width:0;max-width:100%}
html[data-theme="light"] .rag-knowledge-main .semantic-source-item :is(strong,span){white-space:normal;overflow-wrap:anywhere}
html[data-theme="light"] .rag-knowledge-main .semantic-source-item strong{color:var(--ui-text)}

/* Shared labels, status badges and supporting panels found in the full menu review. */
html[data-theme="light"] :is(.btn-add,.swagger-method){color:#fff}
html[data-theme="light"] .btn-add:hover{background:#047857;opacity:1}
html[data-theme="light"] :is(.agent-list-group__head h3,.agent__name,.import-data-title,.help-item h3){color:var(--ui-text)}
html[data-theme="light"] :is(.agent-list-group__head p,.placeholder-copy,.import-form__hint,.file-drop__name,.import-record__lbl,.help-intro-card p,.help-section__header p,.help-item p){color:var(--ui-muted)}
html[data-theme="light"] .agent-list-group__head{border-color:var(--ui-line)}
html[data-theme="light"] .agent-list-group__count{background:#eaf0f3;color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme="light"] :is(.import-badge,.calculo-badge){background:#edf7ff;color:#075985;border-color:#93bbd3}
html[data-theme="light"] :is(.import-badge--success,.calculo-badge--success){background:#e8f6ee;color:#065f46;border-color:#86bda5}
html[data-theme="light"] :is(.import-badge--error,.calculo-badge--error){background:#fff0f1;color:#b42331;border-color:#dda0a6}
html[data-theme="light"] :is(.import-badge--waiting,.calculo-badge--waiting){background:#fff4d9;color:#805500;border-color:#c9a45a}
html[data-theme="light"] :is(.document-models-eyebrow,.document-layout-preview__label,.document-models-section-header span){color:#036982}
html[data-theme="light"] :is(.document-rich-toolbar button:hover,.document-rich-toolbar button:focus-visible){background:#eaf5f0;color:var(--verde);border-color:#8daea3}
html[data-theme="light"] :is(.document-model-delete:hover,.document-model-delete:focus-visible){color:#b42331}

html[data-theme="light"] :is(.audit-date,.audit-responsible,.audit-object,.audit-context) strong{color:var(--ui-text)}
html[data-theme="light"] :is(.audit-date span,.audit-object span,.audit-context span,.audit-context span b,.audit-origin,.audit-severity){color:var(--ui-muted)}
html[data-theme="light"] :is(.beta-comm-status-card strong,.beta-comm-grid strong){color:var(--ui-text)}
html[data-theme="light"] :is(.beta-comm-status-card span,.beta-comm-card__head strong,.beta-comm-grid span,.beta-comm-message span){color:var(--ui-muted)}
html[data-theme="light"] .llm-origin-card{background:#f8fafc;border-color:var(--ui-line)}
html[data-theme="light"] :is(.llm-origin-card strong,.llm-daily-row strong,.llm-daily-row b){color:var(--ui-text)}
html[data-theme="light"] :is(.llm-origin-card span,.llm-origin-card small,.llm-daily-row span){color:var(--ui-muted)}
html[data-theme="light"] .llm-origin-card--semantic_chat{border-color:#c9a45a}
html[data-theme="light"] .llm-origin-card--agentic{border-color:#86bda5}

html[data-theme="light"] :is(.api-info-grid div,.quality-flow div,.storage-explain-grid div,.swagger-meta-grid > div){background:#f8fafc;border-color:var(--ui-line)}
html[data-theme="light"] :is(.api-info-grid strong,.quality-flow strong,.storage-explain-grid strong,.semantic-source-item strong){color:var(--ui-text)}
html[data-theme="light"] :is(.api-info-grid p,.quality-flow p,.storage-explain-grid p,.semantic-source-item p,.api-token-copy span){color:var(--ui-muted)}
html[data-theme="light"] :is(.api-token-table__meta span,.storage-bucket-chip){background:#eaf5f0;color:var(--verde);border-color:#a4c7b7}
html[data-theme="light"] .quality-flow span{background:#e8f6ee;color:var(--verde)}
html[data-theme="light"] :is(.swagger-hero p,.swagger-document__header p,.swagger-operation__body p,.swagger-meta-grid span,.swagger-example-grid h4){color:var(--ui-muted)}
html[data-theme="light"] .swagger-operation__top{background:#eaf0f3;border-color:var(--ui-line)}
html[data-theme="light"] .swagger-operation__route code{color:var(--ui-text)}
html[data-theme="light"] .swagger-param-list span{background:#edf7ff;color:#075985;border-color:#93bbd3}
html[data-theme="light"] .external-import-history-block{background:#fff;border-color:var(--ui-line)}
html[data-theme="light"] .external-import-integration-bar{background:#eaf5f0;border-color:#a4c7b7}
html[data-theme="light"] .external-import-select-all{color:var(--ui-text)}
html[data-theme="light"] .list-pagination__item{background:#fff;color:var(--ui-muted);border-color:#a4b6c2}
html[data-theme="light"] :is(.list-pagination__item--active,.list-pagination__item:hover){background:#eaf5f0;color:var(--verde);border-color:var(--verde)}

/* MFA confirmation and enrollment share the same semantic light palette. */
html:not([data-theme="light"]) .mfa-steps p{color:rgba(255,255,255,.68)}
html[data-theme="light"] :is(.mfa-heading h1,.mfa-steps strong){color:var(--ui-text)}
html[data-theme="light"] :is(.mfa-heading p,.mfa-steps,.mfa-steps p){color:var(--ui-muted)}
html[data-theme="light"] :is(.mfa-secret,.mfa-heading__icon){background:var(--verde-07);border-color:#a4c7b7}
html[data-theme="light"] .mfa-qr{box-shadow:0 4px 16px rgba(15,35,45,.12)}
