/* PHILADONF AUDIT SUITE - R5 R2 R7 UI FOUNDATION CLEANUP & VISUAL NON-REGRESSION
   Single current UI authority layer. Consolidates the R5 R2 R6 consolidation layer
   and the R6 R2/R3/R4/R5.x visual correction chain into one stylesheet.
   Business logic, scoring, frameworks, API contracts and persistence are untouched. */

:root{--as-ui-radius-sm:10px;--as-ui-radius-md:16px;--as-ui-radius-lg:24px;--as-ui-transition:140ms ease}
html[data-as-ui-theme="light"]{color-scheme:light;--as-ui-bg:#f4f7fb;--as-ui-panel:#fff;--as-ui-panel2:#f8fafc;--as-ui-text:#172033;--as-ui-text2:#334155;--as-ui-muted:#64748b;--as-ui-line:#dbe5ef;--as-ui-line2:#cbd8e6;--as-ui-primary:#2563eb;--as-ui-good:#059669;--as-ui-warn:#d97706;--as-ui-bad:#e11d48;--as-ui-shadow:0 22px 65px rgba(15,23,42,.16)}
html[data-as-ui-theme="dark"]{color-scheme:dark;--as-ui-bg:#07101f;--as-ui-panel:#0d1830;--as-ui-panel2:#101d36;--as-ui-text:#eef2ff;--as-ui-text2:#d3dbed;--as-ui-muted:#93a4c4;--as-ui-line:#223657;--as-ui-line2:#2c446b;--as-ui-primary:#7184ff;--as-ui-good:#35d399;--as-ui-warn:#f6c453;--as-ui-bad:#fb7185;--as-ui-shadow:0 28px 80px rgba(0,0,0,.34)}
html[data-as-ui-theme] :focus-visible{outline:2px solid #3b82f6;outline-offset:2px}
@media (prefers-reduced-motion:reduce){html[data-as-ui-theme] *,html[data-as-ui-theme] *::before,html[data-as-ui-theme] *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}


/* === R6 CONSOLIDATION - CONSOLIDATED INTO R7 === */

/* === FOLDED as-v2873-r1-light-mode-fix.css === */
/* PHILADONF AUDIT SUITE V2.8.73 EXECUTIVE COCKPIT - R1 LIGHT MODE FIX
   Correctif visuel strictement scope au mode clair.
   Dark mode volontairement non modifie.
*/

html[data-as-ui-theme="light"]{
  color-scheme:light;
  --as-light-bg:#eef3f9;
  --as-light-panel:#ffffff;
  --as-light-panel2:#f7f9fd;
  --as-light-line:#d8e0ec;
  --as-light-line2:#c4cfdd;
  --as-light-text:#172033;
  --as-light-text2:#344054;
  --as-light-muted:#667085;
  --as-light-muted2:#7b8799;
  --as-light-shadow:0 24px 70px rgba(15,23,42,.18);
}

/* --------------------------------------------------------------------------
   1. SHELL PRINCIPAL - uniformisation finale
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] body.as277-ui,
html[data-as-ui-theme="light"] body.as277-ui .app,
html[data-as-ui-theme="light"] body.as277-ui .gc-page-root{
  background:var(--as-light-bg)!important;
  color:var(--as-light-text)!important;
}
html[data-as-ui-theme="light"] body.as277-ui header.top.as277-header,
html[data-as-ui-theme="light"] body.as277-ui .as277-navrow,
html[data-as-ui-theme="light"] body.as277-ui .sbar,
html[data-as-ui-theme="light"] body.as277-ui .tbar,
html[data-as-ui-theme="light"] body.as277-ui .gc-module-tabs{
  background:#ffffff!important;
  color:var(--as-light-text)!important;
  border-color:var(--as-light-line)!important;
  box-shadow:none!important;
}
html[data-as-ui-theme="light"] body.as277-ui .as277-module:not(.active),
html[data-as-ui-theme="light"] body.as277-ui .as277-actions>.btn:not(.pri):not(.primary):not(.active),
html[data-as-ui-theme="light"] body.as277-ui .as277-actions>.top-menu>button,
html[data-as-ui-theme="light"] body.as277-ui .theme-toggle{
  background:#fff!important;
  color:var(--as-light-text2)!important;
  border-color:var(--as-light-line2)!important;
  box-shadow:0 2px 6px rgba(15,23,42,.04)!important;
}
html[data-as-ui-theme="light"] body.as277-ui .as277-module.active,
html[data-as-ui-theme="light"] body.as277-ui .tab.active,
html[data-as-ui-theme="light"] body.as277-ui .hn.active{
  color:#31439f!important;
  background:#eef2ff!important;
  border-color:#aebbf5!important;
}
html[data-as-ui-theme="light"] body.as277-ui :is(input,select,textarea){
  color-scheme:light;
}
html[data-as-ui-theme="light"] body.as277-ui :is(input,select,textarea)::placeholder{
  color:#8792a5!important;
  opacity:1!important;
}

/* --------------------------------------------------------------------------
   2. AUDIT - contenu, panneaux et widgets historiques residuels
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] body.as277-audit .work,
html[data-as-ui-theme="light"] body.as277-audit #auditContent{
  background:var(--as-light-bg)!important;
  color:var(--as-light-text)!important;
}
html[data-as-ui-theme="light"] body.as277-audit :is(.mpanel,.side,.sec,.ctrl,.panel,.card){
  background:#fff!important;
  color:var(--as-light-text)!important;
  border-color:var(--as-light-line)!important;
  box-shadow:none!important;
}
html[data-as-ui-theme="light"] body.as277-audit :is(.mpanel-head,.sec-head,.side-head,.side-tabs,.fw-meta-bar,.ctrl-top,.ctrl-fields){
  background:var(--as-light-panel2)!important;
  color:var(--as-light-text)!important;
  border-color:var(--as-light-line)!important;
}
html[data-as-ui-theme="light"] body.as277-audit :is(.ctrl-desc,.muted,.sub,.hint,.empty){color:var(--as-light-muted)!important}

/* Picker R9 - renforcement clair, desktop ET mobile, sans toucher au comportement JS. */
html[data-as-ui-theme="light"] body.as277-audit .framework-picker-menu,
html[data-as-ui-theme="light"] body.as277-audit .framework-picker-menu.as2812-mobile-picker{
  background:#fff!important;
  color:var(--as-light-text)!important;
  border-color:#c5d0df!important;
  box-shadow:0 24px 64px rgba(15,23,42,.20)!important;
  backdrop-filter:none!important;
}
html[data-as-ui-theme="light"] body.as277-audit .framework-picker-search-row,
html[data-as-ui-theme="light"] body.as277-audit .framework-picker-menu.as2812-mobile-picker .framework-picker-search-row{
  background:#f6f9fd!important;border-color:#dce4ef!important;
}
html[data-as-ui-theme="light"] body.as277-audit .framework-picker-list::-webkit-scrollbar-track,
html[data-as-ui-theme="light"] body.as277-audit .framework-picker-menu.as2812-mobile-picker .framework-picker-list::-webkit-scrollbar-track{
  background:#edf2f7!important;
}
html[data-as-ui-theme="light"] body.as277-audit .framework-picker-list::-webkit-scrollbar-thumb,
html[data-as-ui-theme="light"] body.as277-audit .framework-picker-menu.as2812-mobile-picker .framework-picker-list::-webkit-scrollbar-thumb{
  border-color:#edf2f7!important;
}

/* --------------------------------------------------------------------------
   3. Centre de conformite / fiche mission / qualite referentielle
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] :is(.audit-up-modal,.audit-mission-modal,.rq-overlay){
  background:rgba(226,232,240,.82)!important;
}
html[data-as-ui-theme="light"] :is(.audit-up-shell,.audit-mission-shell,.rq-modal){
  background:#fff!important;
  color:var(--as-light-text)!important;
  border-color:var(--as-light-line2)!important;
  box-shadow:var(--as-light-shadow)!important;
}
html[data-as-ui-theme="light"] :is(.audit-up-head,.audit-mission-head,.rq-head,.audit-up-tabs,.audit-mission-actions,.rq-foot){
  background:var(--as-light-panel2)!important;
  color:var(--as-light-text)!important;
  border-color:var(--as-light-line)!important;
}
html[data-as-ui-theme="light"] :is(.audit-up-body,.audit-mission-body){background:#fff!important;color:var(--as-light-text)!important}
html[data-as-ui-theme="light"] :is(.audit-up-kpi,.audit-up-result,.rq-kpis>div){
  background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line)!important;
}
html[data-as-ui-theme="light"] :is(.audit-up-btn,.audit-up-tab,.audit-up-close,.audit-mission-close){
  background:#fff!important;color:var(--as-light-text2)!important;border-color:var(--as-light-line2)!important;
}
html[data-as-ui-theme="light"] .audit-up-tab.active{
  background:#eef2ff!important;color:#31439f!important;border-color:#aebbf5!important;
}
html[data-as-ui-theme="light"] :is(.audit-mission-field input,.audit-mission-field select,.audit-mission-field textarea,.audit-register-tools input){
  background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line2)!important;color-scheme:light!important;
}
html[data-as-ui-theme="light"] .audit-up-table th,
html[data-as-ui-theme="light"] .rq-table th{background:#f2f5fa!important;color:var(--as-light-muted)!important;border-color:var(--as-light-line)!important}
html[data-as-ui-theme="light"] .audit-up-table td,
html[data-as-ui-theme="light"] .rq-table td{background:#fff!important;color:var(--as-light-text2)!important;border-color:#e3e8ef!important}
html[data-as-ui-theme="light"] .rq-note{background:#eef9ff!important;color:#53627a!important;border-color:#b9dded!important}
html[data-as-ui-theme="light"] .rq-note strong{color:#075985!important}
html[data-as-ui-theme="light"] .audit-up-alert{background:#fffbeb!important;color:#92400e!important;border-color:#f5d58a!important}
html[data-as-ui-theme="light"] .audit-register-empty{color:var(--as-light-muted)!important;border-color:var(--as-light-line2)!important;background:#f8fafc!important}
html[data-as-ui-theme="light"] .audit-trail-entry{border-color:#e5eaf1!important}
html[data-as-ui-theme="light"] .audit-trail-entry:nth-child(odd){background:#f8fafc!important}

/* --------------------------------------------------------------------------
   4. Audit V9 / V10 / V11 / V12 - toutes les modales historiques
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] :is(.v9-overlay,.v10-overlay,.v11-overlay,.v12-overlay,.v12-palette){background:rgba(226,232,240,.84)!important}
html[data-as-ui-theme="light"] :is(.v9-modal,.v10-modal,.v11-modal,.v12-modal,.v12-palette-box){
  background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line2)!important;box-shadow:var(--as-light-shadow)!important;
}
html[data-as-ui-theme="light"] :is(.v9-head,.v10-head,.v11-head,.v12-head,.v9-tabs,.v10-tabs,.v11-tabs,.v12-tabs){
  background:var(--as-light-panel2)!important;color:var(--as-light-text)!important;border-color:var(--as-light-line)!important;
}
html[data-as-ui-theme="light"] :is(.v9-body,.v10-body,.v11-body,.v12-body){background:#fff!important;color:var(--as-light-text)!important}
html[data-as-ui-theme="light"] :is(.v9-close,.v10-close,.v11-close,.v12-close,.v9-btn,.v10-btn,.v11-btn,.v12-btn,.v9-tab,.v10-tab,.v11-tab,.v12-tab){
  background:#fff!important;color:var(--as-light-text2)!important;border-color:var(--as-light-line2)!important;
}
html[data-as-ui-theme="light"] :is(.v9-btn.pri,.v10-btn.pri,.v11-btn.pri,.v12-btn.pri){background:linear-gradient(135deg,#7184ff,#5368e8)!important;color:#fff!important;border-color:#6679ee!important}
html[data-as-ui-theme="light"] :is(.v9-section,.v9-status-card,.v9-kpi,.v9-theme,.v10-card,.v10-kpi,.v10-issue,.v11-card,.v11-kpi,.v11-hero,.v11-theme,.v11-action,.v12-card,.v12-kpi,.v12-twin-card,.v12-theme-row,.v12-seq-item,.v12-agenda-item,.v12-drift-row,.v12-integrity-row){
  background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line)!important;box-shadow:none!important;
}
html[data-as-ui-theme="light"] :is(.v9-section-title,.v10-card-head,.v11-card-head,.v12-card-head){background:#f7f9fd!important;border-color:var(--as-light-line)!important;color:var(--as-light-text)!important}
html[data-as-ui-theme="light"] :is(.v9-field input,.v9-field select,.v9-field textarea,.v9-matrix-tools input,
  .v10-form input,.v10-form select,.v10-form textarea,
  .v11-dna-field input,.v11-dna-field select,.v11-dna-field textarea,
  .v12-select,.v12-palette-input){
  background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line2)!important;color-scheme:light!important;
}
html[data-as-ui-theme="light"] .v12-palette-list{background:#fff!important}
html[data-as-ui-theme="light"] .v12-palette-item:hover,
html[data-as-ui-theme="light"] .v12-palette-item.on{background:#eef2ff!important}

/* --------------------------------------------------------------------------
   5. Evidence & Actions Pro V2.8.72 - correction complete du contraste clair
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] .ea72-overlay{background:rgba(226,232,240,.84)!important}
html[data-as-ui-theme="light"] .ea72-shell{background:#f7f9fd!important;color:var(--as-light-text)!important;border-color:#b9c7da!important;box-shadow:var(--as-light-shadow)!important}
html[data-as-ui-theme="light"] :is(.ea72-head,.ea72-tabs){background:#fff!important;border-color:var(--as-light-line)!important}
html[data-as-ui-theme="light"] .ea72-body{background:var(--as-light-bg)!important;color:var(--as-light-text)!important}
html[data-as-ui-theme="light"] :is(.ea72-card,.ea72-kpi,.ea72-action-row){background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line)!important;box-shadow:none!important}
html[data-as-ui-theme="light"] .ea72-card-head{background:#f7f9fd!important;color:var(--as-light-text)!important;border-color:var(--as-light-line)!important}
html[data-as-ui-theme="light"] :is(.ea72-tab,.ea72-btn,.ea72-chip-btn,.ea72-close){background:#fff!important;color:var(--as-light-text2)!important;border-color:var(--as-light-line2)!important}
html[data-as-ui-theme="light"] .ea72-tab.on,
html[data-as-ui-theme="light"] .ea72-btn.pri{background:linear-gradient(135deg,#5265e8,#7274eb)!important;color:#fff!important;border-color:#6575dd!important}
html[data-as-ui-theme="light"] .ea72-btn.good{background:#ecfdf5!important;color:#047857!important;border-color:#a7e7ce!important}
html[data-as-ui-theme="light"] .ea72-btn.warn{background:#fffbeb!important;color:#92400e!important;border-color:#f5d58a!important}
html[data-as-ui-theme="light"] .ea72-btn.bad{background:#fff1f2!important;color:#b42338!important;border-color:#f0a8b1!important}
html[data-as-ui-theme="light"] :is(.ea72-field input,.ea72-field select,.ea72-field textarea,.ea72-toolbar input,.ea72-toolbar select,.ea72-action-toolbar input,.ea72-action-toolbar select,.ea72-action-row input,.ea72-action-row select,.ea72-action-row textarea){background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line2)!important;color-scheme:light!important}
html[data-as-ui-theme="light"] .ea72-drop{background:#f0f9ff!important;color:#53627a!important;border-color:#9bd6f5!important}
html[data-as-ui-theme="light"] .ea72-files{color:#075985!important}
html[data-as-ui-theme="light"] .ea72-note{background:#eef9ff!important;color:#53627a!important;border-color:#b9dded!important}
html[data-as-ui-theme="light"] .ea72-table th{background:#edf1fb!important;color:#53617f!important;border-color:var(--as-light-line)!important}
html[data-as-ui-theme="light"] .ea72-table td{color:var(--as-light-text2)!important;border-color:#e3e8ef!important}
html[data-as-ui-theme="light"] .ea72-table tr:hover td{background:#f7f9fd!important}
html[data-as-ui-theme="light"] .ea72-hash{color:#667085!important}
html[data-as-ui-theme="light"] .ea72-desc,
html[data-as-ui-theme="light"] .ea72-action-meta,
html[data-as-ui-theme="light"] .ea72-summarybar span{color:#667085!important}
html[data-as-ui-theme="light"] .ea72-action-id{color:#4f5fc8!important}
html[data-as-ui-theme="light"] .ea72-status.good{color:#047857!important;background:#ecfdf5!important;border-color:#a7e7ce!important}
html[data-as-ui-theme="light"] .ea72-status.warn{color:#92400e!important;background:#fffbeb!important;border-color:#f5d58a!important}
html[data-as-ui-theme="light"] .ea72-status.bad{color:#b42338!important;background:#fff1f2!important;border-color:#f0a8b1!important}
html[data-as-ui-theme="light"] .ea72-status.info{color:#075985!important;background:#f0f9ff!important;border-color:#9bd6f5!important}

/* --------------------------------------------------------------------------
   6. Executive Cockpit 360 V2.8.73
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] .ex73-overlay{background:rgba(226,232,240,.84)!important}
html[data-as-ui-theme="light"] .ex73-shell{background:linear-gradient(160deg,#f7f9fd,#fff)!important;color:var(--as-light-text)!important;border-color:var(--as-light-line2)!important;box-shadow:var(--as-light-shadow)!important}
html[data-as-ui-theme="light"] :is(.ex73-head,.ex73-tabs){background:#fff!important;border-color:var(--as-light-line)!important}
html[data-as-ui-theme="light"] .ex73-body{background:var(--as-light-bg)!important;color:var(--as-light-text)!important}
html[data-as-ui-theme="light"] :is(.ex73-kpi,.ex73-card,.ex73-stage){background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line)!important;box-shadow:none!important}
html[data-as-ui-theme="light"] .ex73-card-head{background:#f7f9fd!important;color:var(--as-light-text)!important;border-color:var(--as-light-line)!important}
html[data-as-ui-theme="light"] :is(.ex73-btn,.ex73-tab,.ex73-close){background:#fff!important;color:var(--as-light-text2)!important;border-color:var(--as-light-line2)!important}
html[data-as-ui-theme="light"] .ex73-tab.on{background:#eef2ff!important;color:#31439f!important;border-color:#aebbf5!important}
html[data-as-ui-theme="light"] .ex73-btn.pri{background:linear-gradient(135deg,#7184ff,#5368e8)!important;color:#fff!important;border-color:#6679ee!important}
html[data-as-ui-theme="light"] .ex73-ring:after{background:#fff!important}
html[data-as-ui-theme="light"] :is(.ex73-title p,.ex73-kpi .k,.ex73-kpi .s,.ex73-card-head small,.ex73-readiness p,.ex73-note,.ex73-signal span,.ex73-stage span,.ex73-muted,.ex73-foot){color:#667085!important}
html[data-as-ui-theme="light"] .ex73-bar{background:#dfe7f1!important}
html[data-as-ui-theme="light"] .ex73-table th{background:#f2f5fa!important;color:#667085!important;border-color:var(--as-light-line)!important}
html[data-as-ui-theme="light"] .ex73-table td{color:var(--as-light-text2)!important;border-color:#e3e8ef!important}
html[data-as-ui-theme="light"] .ex73-table tr[data-id]:hover{background:#f0f7ff!important}
html[data-as-ui-theme="light"] .ex73-id{color:#176b8d!important}
html[data-as-ui-theme="light"] .ex73-badge.critical{color:#b42338!important;background:#fff1f2!important;border-color:#f0a8b1!important}
html[data-as-ui-theme="light"] .ex73-badge.high{color:#9a3412!important;background:#fff7ed!important;border-color:#fdba74!important}
html[data-as-ui-theme="light"] .ex73-badge.medium{color:#92400e!important;background:#fffbeb!important;border-color:#f5d58a!important}
html[data-as-ui-theme="light"] .ex73-badge.low,
html[data-as-ui-theme="light"] .ex73-badge.done{color:#047857!important;background:#ecfdf5!important;border-color:#a7e7ce!important}
html[data-as-ui-theme="light"] .ex73-badge.blocked{color:#b42338!important;background:#fff1f2!important;border-color:#f0a8b1!important}

/* --------------------------------------------------------------------------
   7. Centre de livraison client
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] .cd-overlay{background:rgba(226,232,240,.84)!important}
html[data-as-ui-theme="light"] .cd-shell{background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line2)!important;box-shadow:var(--as-light-shadow)!important}
html[data-as-ui-theme="light"] :is(.cd-head,.cd-tabs,.cd-foot){background:#f7f9fd!important;color:var(--as-light-text)!important;border-color:var(--as-light-line)!important}
html[data-as-ui-theme="light"] .cd-body{background:#fff!important;color:var(--as-light-text)!important}
html[data-as-ui-theme="light"] :is(.cd-card,.cd-kpi,.cd-package,.cd-check){background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line)!important}
html[data-as-ui-theme="light"] :is(.cd-btn,.cd-tab,.cd-close){background:#fff!important;color:var(--as-light-text2)!important;border-color:var(--as-light-line2)!important}
html[data-as-ui-theme="light"] .cd-tab.active,
html[data-as-ui-theme="light"] .cd-btn.pri{background:#eef2ff!important;color:#31439f!important;border-color:#aebbf5!important}
html[data-as-ui-theme="light"] :is(.cd-field input,.cd-field select,.cd-field textarea){background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line2)!important;color-scheme:light!important}

/* --------------------------------------------------------------------------
   8. Veille normative - seul le voile restait trop sombre
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] :is(.ru-overlay,.rum-overlay){background:rgba(226,232,240,.84)!important}

/* --------------------------------------------------------------------------
   9. SUITE 360 - cartes et modales heritees hardcodees en sombre
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] body.as277-suite :is(.suite-app,.suite-main){background:var(--as-light-bg)!important;color:var(--as-light-text)!important}
html[data-as-ui-theme="light"] body.as277-suite :is(.suite-head,.suite-kpis){background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line)!important}
html[data-as-ui-theme="light"] body.as277-suite :is(.suite-panel,.suite-card,.company-hero,.suite-kpi,.info){background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line)!important;box-shadow:none!important}
html[data-as-ui-theme="light"] body.as277-suite :is(.suite-panel-head,.suite-card h3){background:#f7f9fd!important;color:var(--as-light-text)!important;border-color:var(--as-light-line)!important}
html[data-as-ui-theme="light"] body.as277-suite .suite-search input{background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line2)!important}
html[data-as-ui-theme="light"] body.as277-suite .company-row:hover,
html[data-as-ui-theme="light"] body.as277-suite .company-row.on{background:#eef2ff!important;border-color:#b9c7f5!important}
html[data-as-ui-theme="light"] body.as277-suite :is(.list-row,.activity){border-color:#e5eaf1!important}
html[data-as-ui-theme="light"] body.as277-suite .modal{background:rgba(226,232,240,.84)!important}
html[data-as-ui-theme="light"] body.as277-suite .modal-box{background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line2)!important;box-shadow:var(--as-light-shadow)!important}
html[data-as-ui-theme="light"] body.as277-suite :is(.modal-head,.modal-foot){background:#f7f9fd!important;border-color:var(--as-light-line)!important}
html[data-as-ui-theme="light"] body.as277-suite :is(.field input,.field textarea){background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line2)!important;color-scheme:light!important}
html[data-as-ui-theme="light"] body.as277-suite .suite-toast{background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line2)!important;box-shadow:0 12px 36px rgba(15,23,42,.15)!important}

/* --------------------------------------------------------------------------
   10. CRM / COMPTA - dernier garde-fou sur champs et cartes
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] body.as277-crm :is(.card,.panel,.tbl,.kpi,.metric-card,.prospect-row),
html[data-as-ui-theme="light"] body.as277-compta :is(.card,.panel,.tbl,.kpi,.metric-card){background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line)!important}
html[data-as-ui-theme="light"] body.as277-crm :is(input,select,textarea),
html[data-as-ui-theme="light"] body.as277-compta :is(input,select,textarea){background:#fff!important;color:var(--as-light-text)!important;border-color:var(--as-light-line2)!important;color-scheme:light!important}

/* --------------------------------------------------------------------------
   11. Accessibilite / focus / scrollbars en mode clair
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] :is(.ea72-shell,.ex73-shell,.audit-up-shell,.audit-mission-shell,.v9-modal,.v10-modal,.v11-modal,.v12-modal,.cd-shell,.rq-modal) ::-webkit-scrollbar-track{background:#edf2f7!important}
html[data-as-ui-theme="light"] :is(.ea72-shell,.ex73-shell,.audit-up-shell,.audit-mission-shell,.v9-modal,.v10-modal,.v11-modal,.v12-modal,.cd-shell,.rq-modal) ::-webkit-scrollbar-thumb{background:#aeb8c7!important;border-radius:99px!important}
html[data-as-ui-theme="light"] :is(.ea72-shell,.ex73-shell,.audit-up-shell,.audit-mission-shell,.v9-modal,.v10-modal,.v11-modal,.v12-modal,.cd-shell,.rq-modal) :focus-visible{outline:2px solid #6679ee!important;outline-offset:2px!important}

/* --------------------------------------------------------------------------
   12. Contraste typographique clair - libelles et textes secondaires
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] :is(
  .ea72-title p,.ea72-kpi small,.ea72-card-head small,.ea72-field label,.ea72-empty,
  .ex73-title p,.ex73-kpi .k,.ex73-kpi .s,.ex73-card-head small,.ex73-readiness p,.ex73-note,.ex73-signal span,.ex73-stage span,.ex73-muted,.ex73-foot,
  .audit-up-head p,.audit-up-kpi span,.audit-mission-head p,.audit-mission-field label,
  .rq-head p,.rq-kpis span,.rq-foot,
  .v9-head p,.v9-field label,.v9-kpi small,.v9-status-main small,.v9-theme-name small,.v9-theme-stat,.v9-empty,
  .v10-head p,.v10-kpi small,.v10-empty,
  .v11-head p,.v11-kpi small,.v11-empty,
  .v12-head p,.v12-kpi small,.v12-empty,
  .cd-title p,.cd-kpi small,.cd-field label,.cd-empty
){color:#667085!important;opacity:1!important}
html[data-as-ui-theme="light"] :is(.ea72-hash,.ea72-desc,.ea72-action-meta,.ea72-summarybar span){color:#667085!important;opacity:1!important}
html[data-as-ui-theme="light"] :is(.audit-up-table th,.rq-table th,.ea72-table th,.ex73-table th){color:#53627a!important}

/* === FOLDED as-v2879-r1-2-light-modal-parity-fix.css === */
/* PHILADONF AUDIT SUITE V2.8.79 R1.2 - LIGHT MODAL PARITY FIX
   Scope strict : mode clair + #charts-modal / #roadmap-modal uniquement.
   Dark mode, moteurs, scoring et autres modales : inchanges.
*/

/* ---------- Overlay / shell ---------- */
html[data-as-ui-theme="light"] #charts-modal,
html[data-as-ui-theme="light"] #roadmap-modal{
  color-scheme:light!important;
  background:rgba(226,232,240,.88)!important;
  color:var(--as-light-text,#172033)!important;
  backdrop-filter:blur(12px)!important;
}
html[data-as-ui-theme="light"] #charts-modal>div,
html[data-as-ui-theme="light"] #roadmap-modal>div{
  background:linear-gradient(180deg,#ffffff,#f7f9fd)!important;
  color:var(--as-light-text,#172033)!important;
  border-color:var(--as-light-line2,#c4cfdd)!important;
  box-shadow:0 28px 80px rgba(15,23,42,.20)!important;
}

/* ---------- Entetes / barres / cartes ---------- */
html[data-as-ui-theme="light"] #charts-modal>div>div,
html[data-as-ui-theme="light"] #roadmap-modal>div>div{
  border-color:var(--as-light-line,#d8e0ec)!important;
}
html[data-as-ui-theme="light"] #charts-modal #charts-grid>div{
  background:#ffffff!important;
  color:var(--as-light-text,#172033)!important;
  border-color:var(--as-light-line,#d8e0ec)!important;
  box-shadow:0 8px 24px rgba(15,23,42,.055)!important;
}
html[data-as-ui-theme="light"] #roadmap-modal #gantt-container{
  background:#ffffff!important;
}

/* ---------- Texte HTML hardcode sombre ---------- */
html[data-as-ui-theme="light"] #charts-modal [style*="color:#eef2ff"],
html[data-as-ui-theme="light"] #roadmap-modal [style*="color:#eef2ff"]{
  color:var(--as-light-text,#172033)!important;
}
html[data-as-ui-theme="light"] #charts-modal [style*="rgba(238,242,255"],
html[data-as-ui-theme="light"] #roadmap-modal [style*="rgba(238,242,255"]{
  color:var(--as-light-muted,#667085)!important;
}
html[data-as-ui-theme="light"] #charts-modal [style*="border-right:1px solid rgba(255,255,255"],
html[data-as-ui-theme="light"] #charts-modal [style*="border-bottom:1px solid rgba(255,255,255"],
html[data-as-ui-theme="light"] #roadmap-modal [style*="border-bottom:1px solid rgba(255,255,255"]{
  border-color:var(--as-light-line,#d8e0ec)!important;
}

/* ---------- Boutons ---------- */
html[data-as-ui-theme="light"] #charts-modal button,
html[data-as-ui-theme="light"] #roadmap-modal button{
  background:#ffffff!important;
  color:#344054!important;
  border-color:var(--as-light-line2,#c4cfdd)!important;
  box-shadow:none!important;
}
html[data-as-ui-theme="light"] #charts-modal button:hover,
html[data-as-ui-theme="light"] #roadmap-modal button:hover{
  background:#f2f5fa!important;
  color:#172033!important;
}
html[data-as-ui-theme="light"] #charts-modal button[onclick*="exportChartsImg"],
html[data-as-ui-theme="light"] #roadmap-modal button[onclick*="exportRoadmapPdf"]{
  background:#eef2ff!important;
  color:#31439f!important;
  border-color:#aebbf5!important;
}
html[data-as-ui-theme="light"] #charts-modal button[onclick*="remove"],
html[data-as-ui-theme="light"] #roadmap-modal button[onclick*="remove"]{
  background:#fff4f5!important;
  color:#b42338!important;
  border-color:#f0a8b1!important;
}

/* ---------- SVG Dashboard + Gantt : fonds/grilles/textes neutres ---------- */
html[data-as-ui-theme="light"] :is(#charts-modal,#roadmap-modal) svg{
  color-scheme:light!important;
}
html[data-as-ui-theme="light"] :is(#charts-modal,#roadmap-modal) svg text[fill="#eef2ff"]{
  fill:#172033!important;
}
html[data-as-ui-theme="light"] :is(#charts-modal,#roadmap-modal) svg text[fill^="rgba(238,242,255"],
html[data-as-ui-theme="light"] :is(#charts-modal,#roadmap-modal) svg text[fill^="rgba(255,255,255"]{
  fill:#667085!important;
}
html[data-as-ui-theme="light"] :is(#charts-modal,#roadmap-modal) svg [stroke^="rgba(255,255,255"]{
  stroke:#d8e0ec!important;
}
html[data-as-ui-theme="light"] #roadmap-modal svg rect[fill="#0a0d1a"]{
  fill:#ffffff!important;
}
html[data-as-ui-theme="light"] #roadmap-modal svg rect[fill="#0d1020"],
html[data-as-ui-theme="light"] #roadmap-modal svg rect[fill="#101429"]{
  fill:#f2f5fa!important;
}
html[data-as-ui-theme="light"] #roadmap-modal svg rect[fill="rgba(255,255,255,.009)"],
html[data-as-ui-theme="light"] #roadmap-modal svg rect[fill="rgba(255,255,255,.010)"],
html[data-as-ui-theme="light"] #roadmap-modal svg rect[fill="rgba(255,255,255,.022)"],
html[data-as-ui-theme="light"] #roadmap-modal svg rect[fill="rgba(255,255,255,.024)"]{
  fill:#fbfcfe!important;
}
html[data-as-ui-theme="light"] #charts-modal svg rect[fill="rgba(15,20,50,.85)"]{
  fill:#ffffff!important;
  stroke:#aebbf5!important;
}

/* ---------- Scrollbars ---------- */
html[data-as-ui-theme="light"] :is(#charts-modal,#roadmap-modal) ::-webkit-scrollbar-track{
  background:#edf2f7!important;
}
html[data-as-ui-theme="light"] :is(#charts-modal,#roadmap-modal) ::-webkit-scrollbar-thumb{
  background:#aeb8c7!important;
  border-radius:99px!important;
}

/* ---------- Responsive : conserver les modales dans le viewport utile ---------- */
@media (max-width:760px){
  html[data-as-ui-theme="light"] #charts-modal,
  html[data-as-ui-theme="light"] #roadmap-modal{padding:8px!important}
  html[data-as-ui-theme="light"] #charts-modal #charts-grid{grid-template-columns:1fr!important;padding:10px!important}
  html[data-as-ui-theme="light"] #charts-modal #charts-grid>div{grid-column:1!important}
}

/* === FOLDED as-v310-r3-mobile-light-parity.css === */
/* PHILADONF AUDIT SUITE V3.1.0 R3 - MOBILE LIGHT PARITY
   Scope strict: smartphone/tablette + mode clair uniquement.
   Objectif: parite visuelle claire CRM / AUDIT / COMPTA / SUITE / USERS.
   Dark mode, moteurs, scoring, referentiels, donnees et comportements JS: inchanges.
*/

@media (max-width:900px){
  html[data-as-ui-theme="light"]{
    color-scheme:light;
    --as-ml-bg:#f2f5fa;
    --as-ml-panel:#ffffff;
    --as-ml-panel2:#f8fafc;
    --as-ml-panel3:#eef2f7;
    --as-ml-line:#d7e0ec;
    --as-ml-line2:#c5d0df;
    --as-ml-text:#172033;
    --as-ml-text2:#344054;
    --as-ml-muted:#667085;
    --as-ml-muted2:#7b8799;
    --as-ml-primary:#4355c7;
    --as-ml-primary-soft:#eef2ff;
    --as-ml-shadow:0 12px 34px rgba(15,23,42,.10);
    --as-ml-shadow-modal:0 24px 70px rgba(15,23,42,.20);
  }

  /* ===== 1. Shell mobile commun ===== */
  html[data-as-ui-theme="light"] body.as277-ui{
    background:var(--as-ml-bg)!important;
    color:var(--as-ml-text)!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui :is(.wrap.gc-page-root,.shell.gc-page-root,.app,.gc-page-root){
    background:var(--as-ml-bg)!important;
    color:var(--as-ml-text)!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui header.top.as277-header,
  html[data-as-ui-theme="light"] body.as277-ui header.top.as277-header[style]{
    background:rgba(255,255,255,.985)!important;
    color:var(--as-ml-text)!important;
    border-top-color:#8fa0ed!important;
    border-bottom-color:var(--as-ml-line)!important;
    box-shadow:0 8px 24px rgba(15,23,42,.09)!important;
    backdrop-filter:blur(18px)!important;
    -webkit-backdrop-filter:blur(18px)!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui .as2818-mobile-brand,
  html[data-as-ui-theme="light"] body.as277-ui .as2818-mobile-title{color:var(--as-ml-text)!important}
  html[data-as-ui-theme="light"] body.as277-ui .as2818-mobile-logo{
    background:linear-gradient(180deg,#ffffff,#f3f6fb)!important;
    border-color:#cbd5e1!important;
    box-shadow:0 4px 14px rgba(15,23,42,.08)!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui #as2818MobileMenuBtn,
  html[data-as-ui-theme="light"] body.as277-ui #as289MobileMenuBtn,
  html[data-as-ui-theme="light"] body.as277-ui #as288MobileMenuBtn{
    background:#fff!important;color:#344054!important;border-color:#cbd5e1!important;
    box-shadow:0 3px 10px rgba(15,23,42,.06)!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui header.top.as277-header .as277-fields :is(.gc-main-search,#sSearch){
    background:#fff!important;color:var(--as-ml-text)!important;border-color:var(--as-ml-line2)!important;
    box-shadow:0 2px 8px rgba(15,23,42,.035)!important;color-scheme:light!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui header.top.as277-header .as277-fields :is(.gc-main-search,#sSearch)::placeholder{
    color:#8792a5!important;opacity:1!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui header.top.as277-header .as277-navrow{background:transparent!important}
  html[data-as-ui-theme="light"] body.as277-ui header.top.as277-header .as277-module{
    background:linear-gradient(180deg,#ffffff,#f7f9fc)!important;
    color:#475467!important;border-color:#d0d8e4!important;
    box-shadow:0 2px 7px rgba(15,23,42,.035)!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui header.top.as277-header .as277-module.active{
    background:linear-gradient(135deg,#eef2ff,#e4e9ff)!important;
    color:#31439f!important;border-color:#9caaf0!important;
    box-shadow:inset 0 -3px 0 #6878dc,0 4px 13px rgba(67,85,199,.12)!important;
  }

  /* ===== 2. KPI / barres ===== */
  html[data-as-ui-theme="light"] body.as277-crm .gc-crm-sbar,
  html[data-as-ui-theme="light"] body.as277-compta .gc-compta-sbar,
  html[data-as-ui-theme="light"] body.as277-audit .sbar{
    background:var(--as-ml-bg)!important;border-bottom-color:var(--as-ml-line)!important;
  }
  html[data-as-ui-theme="light"] body.as277-crm .gc-crm-sbar .sbar-progress>.sbar-stat,
  html[data-as-ui-theme="light"] body.as277-compta .gc-compta-sbar .sbar-progress>.sbar-stat,
  html[data-as-ui-theme="light"] body.as277-audit .sbar :is(.sbar-stat-pri,.sbar-stat-score,.sbar-stat-mat,.sbar-stat-bad){
    background:#fff!important;color:var(--as-ml-text)!important;border-color:var(--as-ml-line)!important;
    box-shadow:0 4px 14px rgba(15,23,42,.045)!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui .sbar-lbl{color:var(--as-ml-muted)!important}
  html[data-as-ui-theme="light"] body.as277-ui .sbar-val{color:var(--as-ml-text)!important}

  /* ===== 3. Contenu CRM / COMPTA / AUDIT / SUITE ===== */
  html[data-as-ui-theme="light"] body.as277-audit :is(.tbar,.work),
  html[data-as-ui-theme="light"] body.as277-crm :is(.view,.view.active),
  html[data-as-ui-theme="light"] body.as277-compta :is(main.gc-module-content,.page),
  html[data-as-ui-theme="light"] body.as277-suite :is(.suite-app,.suite-work,.suite-overview){
    background:var(--as-ml-bg)!important;color:var(--as-ml-text)!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui :is(.card,.panel,.pcard,.mpanel,.suite-main-panel,.suite-company-side){
    background:#fff!important;color:var(--as-ml-text)!important;border-color:var(--as-ml-line)!important;
    box-shadow:0 4px 16px rgba(15,23,42,.045)!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui :is(.card-header,.panel-head,.mpanel-head,.suite-meta-bar){
    background:#f8fafc!important;color:var(--as-ml-text)!important;border-color:var(--as-ml-line)!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui :is(.card-sub,.mpanel-sub,.suite-meta-text,.muted,.sub,.hint,.empty-state){color:var(--as-ml-muted)!important}

  html[data-as-ui-theme="light"] body.as277-ui :is(input,select,textarea),
  html[data-as-ui-theme="light"] body.as277-audit :is(#controlSearch,#filterStatus,#fwPickerButton){
    background:#fff!important;color:var(--as-ml-text)!important;border-color:var(--as-ml-line2)!important;color-scheme:light!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui :is(input,textarea)::placeholder{color:#8792a5!important;opacity:1!important}
  html[data-as-ui-theme="light"] body.as277-ui select option{background:#fff!important;color:#172033!important}

  /* Touch: evite le zoom iOS et garde des cibles accessibles. */
  html[data-as-ui-theme="light"] body.as277-ui :is(input,select,textarea){font-size:max(16px,1em)!important}
  html[data-as-ui-theme="light"] body.as277-ui :is(button,.btn,.suite-btn,.as289-mobile-menu-item,.as288-mobile-menu-item){min-height:44px}

  /* ===== 4. Navigation basse ===== */
  html[data-as-ui-theme="light"] body.as277-crm #_mob-nav-idx,
  html[data-as-ui-theme="light"] body.as277-audit #_mob-nav-aud,
  html[data-as-ui-theme="light"] body.as277-compta #mobile-nav{
    background:rgba(255,255,255,.985)!important;border-top-color:var(--as-ml-line)!important;
    box-shadow:0 -8px 24px rgba(15,23,42,.08)!important;
  }
  html[data-as-ui-theme="light"] body.as277-crm #_mob-nav-idx>*,
  html[data-as-ui-theme="light"] body.as277-audit #_mob-nav-aud>*,
  html[data-as-ui-theme="light"] body.as277-compta #mobile-nav>*{color:#667085!important}
  html[data-as-ui-theme="light"] body.as277-crm #_mob-nav-idx>*.on,
  html[data-as-ui-theme="light"] body.as277-audit #_mob-nav-aud>*.on,
  html[data-as-ui-theme="light"] body.as277-compta #mobile-nav>*.on{color:#4355c7!important;background:#eef2ff!important;border-radius:10px!important}

  /* ===== 5. Menu hamburger mobile ===== */
  html[data-as-ui-theme="light"] body.as277-ui :is(#as288MobileMenu.as288-mobile-menu-backdrop,#as289MobileMenu.as289-mobile-menu-backdrop){
    background:rgba(15,23,42,.38)!important;backdrop-filter:blur(7px)!important;-webkit-backdrop-filter:blur(7px)!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui :is(#as288MobileMenu .as288-mobile-menu-panel,#as289MobileMenu .as289-mobile-menu-panel){
    background:linear-gradient(180deg,#ffffff,#f8fafc)!important;color:var(--as-ml-text)!important;
    border-color:var(--as-ml-line2)!important;box-shadow:var(--as-ml-shadow-modal)!important;
    scrollbar-color:#9aa8bb #edf2f7!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui :is(#as288MobileMenu .as288-mobile-menu-head,#as289MobileMenu .as289-mobile-menu-head){border-bottom-color:var(--as-ml-line)!important}
  html[data-as-ui-theme="light"] body.as277-ui :is(#as288MobileMenu .as288-mobile-menu-title,#as289MobileMenu .as289-mobile-menu-title){color:var(--as-ml-text)!important}
  html[data-as-ui-theme="light"] body.as277-ui :is(#as288MobileMenu .as288-mobile-role,#as289MobileMenu .as289-mobile-menu-sub,#as288MobileMenu .as288-mobile-menu-label,#as289MobileMenu .as289-mobile-menu-label){color:var(--as-ml-muted)!important}
  html[data-as-ui-theme="light"] body.as277-ui :is(#as288MobileMenu .as288-mobile-menu-item,#as289MobileMenu .as289-mobile-menu-item){
    background:#fff!important;color:#344054!important;border-color:#d7e0ec!important;box-shadow:0 2px 7px rgba(15,23,42,.035)!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui :is(#as288MobileMenu .as288-mobile-menu-item:hover,#as289MobileMenu .as289-mobile-menu-item:hover){background:#f2f5fa!important;color:#172033!important}
  html[data-as-ui-theme="light"] body.as277-ui :is(#as288MobileMenu .as288-mobile-menu-item.as288-primary,#as289MobileMenu .as289-mobile-menu-item.as289-primary){background:#eef2ff!important;color:#31439f!important;border-color:#aebbf5!important}
  html[data-as-ui-theme="light"] body.as277-ui :is(#as288MobileMenu .as288-mobile-menu-close,#as289MobileMenu .as289-mobile-menu-close){background:#fff4f5!important;color:#b42338!important;border-color:#f0a8b1!important}
  html[data-as-ui-theme="light"] body.as277-ui :is(#as288MobileMenu .as288-mobile-menu-panel,#as289MobileMenu .as289-mobile-menu-panel)::-webkit-scrollbar-track{background:#edf2f7!important}
  html[data-as-ui-theme="light"] body.as277-ui :is(#as288MobileMenu .as288-mobile-menu-panel,#as289MobileMenu .as289-mobile-menu-panel)::-webkit-scrollbar-thumb{background:#9aa8bb!important;border-color:#edf2f7!important}
  html[data-as-ui-theme="light"] body.as277-ui .as2818-menu-scrollrail,
  html[data-as-ui-theme="light"] body.as277-ui .as2818-page-scrollrail{background:#dbe3ee!important}
  html[data-as-ui-theme="light"] body.as277-ui :is(.as2818-menu-scrollthumb,.as2818-page-scrollthumb){background:linear-gradient(180deg,#6878dc,#4355c7)!important;box-shadow:none!important}

  /* ===== 6. AUDIT - picker de referentiel ===== */
  html[data-as-ui-theme="light"] body.as277-audit .as2818-fw-backdrop{background:rgba(15,23,42,.36)!important}
  html[data-as-ui-theme="light"] body.as277-audit #fwPickerMenu.as2818-mobile-picker{
    background:linear-gradient(180deg,#ffffff,#f8fafc)!important;color:var(--as-ml-text)!important;
    border-color:var(--as-ml-line2)!important;box-shadow:var(--as-ml-shadow-modal)!important;
  }
  html[data-as-ui-theme="light"] body.as277-audit #fwPickerMenu.as2818-mobile-picker .framework-picker-search-row{background:#f7f9fc!important;border-bottom-color:var(--as-ml-line)!important}
  html[data-as-ui-theme="light"] body.as277-audit #fwPickerMenu.as2818-mobile-picker .framework-picker-search{background:#fff!important;color:#172033!important;border-color:#c5d0df!important}
  html[data-as-ui-theme="light"] body.as277-audit #fwPickerMenu.as2818-mobile-picker .framework-picker-count{background:#eef2ff!important;color:#31439f!important;border-color:#b8c2f2!important}
  html[data-as-ui-theme="light"] body.as277-audit #fwPickerMenu.as2818-mobile-picker .framework-picker-group{background:#fff!important;border-color:#dce4ee!important}
  html[data-as-ui-theme="light"] body.as277-audit #fwPickerMenu.as2818-mobile-picker .framework-picker-group-title{background:#f3f6fb!important;color:#53627a!important;border-color:#dce4ee!important}
  html[data-as-ui-theme="light"] body.as277-audit #fwPickerMenu.as2818-mobile-picker .framework-picker-option{background:#fff!important;color:#344054!important;border-bottom-color:#e6ebf1!important}
  html[data-as-ui-theme="light"] body.as277-audit #fwPickerMenu.as2818-mobile-picker .framework-picker-option:hover{background:#f5f7fb!important}
  html[data-as-ui-theme="light"] body.as277-audit #fwPickerMenu.as2818-mobile-picker .framework-picker-option.selected{background:#edfdf5!important;box-shadow:inset 3px 0 0 #17a673!important}
  html[data-as-ui-theme="light"] body.as277-audit #fwPickerMenu.as2818-mobile-picker .framework-picker-option-label{color:#172033!important}
  html[data-as-ui-theme="light"] body.as277-audit #fwPickerMenu.as2818-mobile-picker .framework-picker-option-count{background:#f3f6fb!important;color:#667085!important;border-color:#d7e0ec!important}
  html[data-as-ui-theme="light"] body.as277-audit #fwPickerMenu.as2818-mobile-picker #fwPickerList{scrollbar-color:#9aa8bb #edf2f7!important}
  html[data-as-ui-theme="light"] body.as277-audit #fwPickerMenu.as2818-mobile-picker #fwPickerList::-webkit-scrollbar-track{background:#edf2f7!important}
  html[data-as-ui-theme="light"] body.as277-audit #fwPickerMenu.as2818-mobile-picker #fwPickerList::-webkit-scrollbar-thumb{background:#9aa8bb!important;border-color:#edf2f7!important}
  html[data-as-ui-theme="light"] body.as277-audit #fwPickerMenu .as2818-fw-scrollrail{background:#dbe3ee!important}
  html[data-as-ui-theme="light"] body.as277-audit #fwPickerMenu .as2818-fw-scrollthumb{background:linear-gradient(180deg,#6878dc,#4355c7)!important;box-shadow:none!important}

  /* ===== 7. Modales / tableaux sur smartphone ===== */
  html[data-as-ui-theme="light"] body.as277-ui :is(.modal,.audit-up-modal,.audit-mission-modal,.rq-overlay,.v9-overlay,.v10-overlay,.v11-overlay,.v12-overlay){
    background:rgba(226,232,240,.86)!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui :is(.dialog,.audit-up-shell,.audit-mission-shell,.rq-modal,.v9-modal,.v10-modal,.v11-modal,.v12-modal){
    background:#fff!important;color:var(--as-ml-text)!important;border-color:var(--as-ml-line2)!important;box-shadow:var(--as-ml-shadow-modal)!important;
    width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui :is(.table-wrap,.rq-table-wrap){max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  html[data-as-ui-theme="light"] body.as277-ui table{color:var(--as-ml-text)!important}
  html[data-as-ui-theme="light"] body.as277-ui table th{background:#f3f6fb!important;color:#53627a!important;border-color:#d7e0ec!important}
  html[data-as-ui-theme="light"] body.as277-ui table td{background:#fff!important;color:#344054!important;border-color:#e6ebf1!important}

  /* ===== 8. SUITE ===== */
  html[data-as-ui-theme="light"] body.as277-suite :is(.suite-kpis>*,.suite-quick-actions>*,.suite-company-side,.suite-main-panel){
    background:#fff!important;color:var(--as-ml-text)!important;border-color:var(--as-ml-line)!important;
  }
  html[data-as-ui-theme="light"] body.as277-suite :is(.suite-btn,.suite-meta-badge){background:#fff!important;color:#344054!important;border-color:#cbd5e1!important}
  html[data-as-ui-theme="light"] body.as277-suite .suite-btn:hover{background:#f2f5fa!important}

  /* ===== 9. Page Utilisateurs ===== */
  html[data-as-ui-theme="light"] body.as-users-page{
    --bg:#f2f5fa;--panel:#ffffff;--panel2:#f8fafc;--line:#d7e0ec;--line2:#c5d0df;--text:#172033;--muted:#667085;
    background:linear-gradient(180deg,#f8fafc,#eef2f7)!important;color:#172033!important;
  }
  html[data-as-ui-theme="light"] body.as-users-page :is(.kpi,.panel,.dialog){background:#fff!important;color:#172033!important;border-color:#d7e0ec!important;box-shadow:0 6px 20px rgba(15,23,42,.06)!important}
  html[data-as-ui-theme="light"] body.as-users-page :is(.btn,.row-actions button,.mod,.impact){background:#fff!important;color:#344054!important;border-color:#c5d0df!important}
  html[data-as-ui-theme="light"] body.as-users-page .btn.pri{background:#eef2ff!important;color:#31439f!important;border-color:#aebbf5!important}
  html[data-as-ui-theme="light"] body.as-users-page :is(.field input,.field select){background:#fff!important;color:#172033!important;border-color:#c5d0df!important;color-scheme:light!important;font-size:16px!important}
  html[data-as-ui-theme="light"] body.as-users-page :is(th,.panel-head){background:#f8fafc!important;color:#53627a!important;border-color:#d7e0ec!important}
  html[data-as-ui-theme="light"] body.as-users-page td{background:#fff!important;color:#344054!important;border-color:#e6ebf1!important}
  html[data-as-ui-theme="light"] body.as-users-page .modal{background:rgba(226,232,240,.86)!important}

  /* ===== 10. Garde-fous viewport ===== */
  html[data-as-ui-theme="light"] body.as277-ui :is(img,svg,canvas){max-width:100%}
  html[data-as-ui-theme="light"] body.as277-ui :is(.mpanel,.panel,.card,.dialog,.rq-modal,.audit-up-shell,.audit-mission-shell){min-width:0!important}
  html[data-as-ui-theme="light"] body.as277-ui{overflow-wrap:anywhere}
}

@media (max-width:430px){
  html[data-as-ui-theme="light"] body.as277-ui header.top.as277-header .as277-module{font-size:10px!important;padding-inline:4px!important}
  html[data-as-ui-theme="light"] body.as277-ui .as2818-mobile-title{font-size:18px!important}
  html[data-as-ui-theme="light"] body.as277-ui :is(.card,.panel,.mpanel){border-radius:15px!important}
  html[data-as-ui-theme="light"] body.as277-ui :is(.dialog,.rq-modal,.audit-up-shell,.audit-mission-shell){border-radius:16px!important}
}

/* R3.1 - contraste boutons/touch targets confirme par rendu smartphone */
@media (max-width:900px){
  html[data-as-ui-theme="light"] body.as277-ui :is(.btn,.audit-up-btn,.v9-btn,.v10-btn,.v11-btn,.v12-btn):not(.pri):not(.primary):not(.danger){
    background:#fff!important;color:#344054!important;border-color:#c5d0df!important;box-shadow:none!important;
  }
  html[data-as-ui-theme="light"] body.as277-ui :is(.btn.pri,.btn.primary,.audit-up-btn.pri,.v9-btn.pri,.v10-btn.pri,.v11-btn.pri,.v12-btn.pri){
    background:linear-gradient(135deg,#6678e8,#4355c7)!important;color:#fff!important;border-color:#5265d2!important;
  }
  html[data-as-ui-theme="light"] body.as277-crm #_mob-nav-idx>*,
  html[data-as-ui-theme="light"] body.as277-audit #_mob-nav-aud>*,
  html[data-as-ui-theme="light"] body.as277-compta #mobile-nav>*{
    background:transparent!important;border:0!important;box-shadow:none!important;
  }
  html[data-as-ui-theme="light"] body.as277-crm #_mob-nav-idx>*.on,
  html[data-as-ui-theme="light"] body.as277-audit #_mob-nav-aud>*.on,
  html[data-as-ui-theme="light"] body.as277-compta #mobile-nav>*.on{
    background:#eef2ff!important;color:#4355c7!important;
  }
}

/* === FOLDED as-v310-r6-21-r4-light-mode-parity-fix.css === */
/* PHILADONF AUDIT SUITE V3.1.0 R6.21 R4 — LIGHT MODE PARITY FIX
   Scope strict : mode clair uniquement. Le mode sombre, la geometrie R6.21 R3,
   le scope Cockpit 360, les moteurs, les donnees et le scoring ne sont pas modifies. */

html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"]{
  color-scheme:light;
  --r621r4-bg:#eef3f8;
  --r621r4-panel:#ffffff;
  --r621r4-panel2:#f7f9fc;
  --r621r4-line:#d8e0ea;
  --r621r4-line2:#c6d0dc;
  --r621r4-text:#172033;
  --r621r4-text2:#344054;
  --r621r4-muted:#667085;
}

/* 1 — Shell transverse : la barre de navigation ne doit jamais conserver
   le fond sombre/transparent de R6.21 en mode clair. */
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui header.top.as277-header,
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui header.top.as277-header .as277-headrow,
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui header.top.as277-header .as277-navrow{
  background:#fff!important;
  color:var(--r621r4-text)!important;
  border-color:var(--r621r4-line)!important;
  box-shadow:none!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui header.top.as277-header .as277-navrow{
  border-top:1px solid #e8edf3!important;
  border-bottom:1px solid var(--r621r4-line)!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui header.top.as277-header .as277-brand .brand-logo{
  background:linear-gradient(145deg,#f3f7fb,#eaf2f8)!important;
  border-color:#c6d9e7!important;
  box-shadow:none!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui header.top.as277-header .as-brand-company{color:#667085!important}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui header.top.as277-header .as277-brand-title{color:#172033!important}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui header.top.as277-header :is(.as277-fields .inp,.as277-fields .sel,.as277-fields .company-select-wrap>.sel,.as277-fields .as-shared-company-trigger,.as277-fields .gc-role-field){
  background:#fff!important;color:#172033!important;border-color:#c5d0df!important;box-shadow:none!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui header.top.as277-header .as277-actions :is(.btn,.top-menu>button,.theme-toggle,.gc-close){
  background:#fff!important;color:#344054!important;border-color:#c5d0df!important;box-shadow:0 1px 4px rgba(15,23,42,.04)!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui header.top.as277-header .as277-actions :is(.btn.pri,.btn.primary,.as-r68-save){
  background:linear-gradient(135deg,#7383f5,#5a6be5)!important;color:#fff!important;border-color:#6576e7!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui header.top.as277-header .as277-module{
  background:#fff!important;color:#344054!important;border-color:#c5d0df!important;box-shadow:none!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-suite header.top.as277-header .as277-module.active{background:#f0efff!important;color:#4b3fb0!important;border-color:#bdb6f3!important;box-shadow:inset 0 -2px 0 #7b6ee8!important}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-crm header.top.as277-header .as277-module.active{background:#eef9ff!important;color:#1f6684!important;border-color:#a9daf0!important;box-shadow:inset 0 -2px 0 #46b9e8!important}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit header.top.as277-header .as277-module.active{background:#edfbf6!important;color:#14684f!important;border-color:#a6e2ce!important;box-shadow:inset 0 -2px 0 #35c994!important}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-compta header.top.as277-header .as277-module.active{background:#fff8e9!important;color:#805700!important;border-color:#ecd399!important;box-shadow:inset 0 -2px 0 #e5ad3b!important}

/* 2 — Surfaces generales : aucune zone grise sombre residuelle. */
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui,
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui .app,
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui .gc-page-root{
  background:var(--r621r4-bg)!important;color:var(--r621r4-text)!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui :is(.sbar,.tbar,.gc-module-tabs){
  color:var(--r621r4-text)!important;border-color:var(--r621r4-line)!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui :is(input,select,textarea){color-scheme:light}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-ui :is(input,textarea)::placeholder{color:#8792a5!important;opacity:1!important}

/* 3 — AUDIT : corriger les elements historiques qui gardent des couleurs
   de texte du theme sombre malgre une surface claire. */
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit :is(.mpanel,.side,.sec,.ctrl,.panel,.card){
  color:var(--r621r4-text)!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit .mpanel-sbar{background:#e3e9f0!important}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit :is(.fw-meta-badge,.fw-meta-models,.fw-meta-review){
  background:#f7f9fc!important;color:#536176!important;border-color:#d9e1ea!important;box-shadow:none!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit .fw-meta-badge.warn{
  background:#fff8e8!important;color:#8a5b00!important;border-color:#efd59b!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit :is(.fw-meta-bar,.mpanel-head,.sec-head,.side-tabs,.side-head){
  color:var(--r621r4-text)!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit .iso-pa-summary{
  background:linear-gradient(90deg,#eef3ff,#eefaf7)!important;border-color:#bfccef!important;color:#344054!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit .iso-pa-summary-main{color:#536176!important}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit .iso-pa-summary-main strong{color:#172033!important}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit .iso-pa-summary-actions{color:#667085!important}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit :is(.iso-pa-actions button,.iso-pa-summary-actions button){
  background:#fff!important;color:#344054!important;border-color:#b9c6e8!important;box-shadow:none!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit .iso-pa-body{border-top-color:#e3e8ef!important;background:#fff!important}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit .iso-pa-note{background:#f7f9fc!important;color:#667085!important}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit .iso-pa-q{border-bottom-color:#e7ebf0!important}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit .iso-pa-qtext{color:#243047!important}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit .iso-pa-qfields label{color:#667085!important}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit :is(.iso-pa-input,.iso-pa-select){background:#fff!important;color:#243047!important;border-color:#cbd5e1!important}

/* Vue executive du referentiel : lisibilite sans effet "blanchi". */
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit #asR5ExecutiveOverview{
  background:linear-gradient(180deg,#fbfdff,#f7fafc)!important;border-color:#e1e7ee!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit .r5-overview-title strong,
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit .r5-kpi-value,
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit .r5-section-name{color:#1f2a3d!important}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-audit :is(.r5-kpi-label,.r5-kpi-sub,.r5-progress-value){color:#66758c!important}

/* 4 — CRM / COMPTA / SUITE : garder leurs cartes claires existantes mais
   forcer les rails de navigation a une vraie surface blanche. */
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body:is(.as277-crm,.as277-compta,.as277-suite) :is(.sbar,.tbar,.gc-module-tabs){
  background:#fff!important;color:#172033!important;border-color:#d8e0ea!important;box-shadow:none!important;
}
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-compta :is(.hn,.tab):not(.active),
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-crm :is(.tab,.btn):not(.pri):not(.primary):not(.active),
html[data-as-ui-theme="light"][data-light-parity="310-r6-21-r4"] body.as277-suite :is(.tab,.btn):not(.pri):not(.primary):not(.active){
  color:#344054!important;
}

/* 5 — Le footer commercial sombre est volontairement conserve : il reste
   un repere transversal identique dans les deux themes. Aucun layout R3 ne
   change ici. */

/* === FOLDED as-v310-r5-r2-r5-actions-light-parity.css === */
/* PHILADONF AUDIT SUITE - R5 R2 R5 ACTIONS LIGHT PARITY */
html[data-as-ui-theme="light"] #retest-r5r7-modal{background:rgba(15,23,42,.34)!important}
html[data-as-ui-theme="light"] #retest-r5r7-modal>div{background:#f7f9fd!important;border-color:#cbd5e1!important;box-shadow:0 24px 70px rgba(30,41,59,.22)!important;color:#172033!important}
html[data-as-ui-theme="light"] #retest-r5r7-modal>div>div:first-child{background:rgba(255,255,255,.98)!important;border-color:#dbe3ef!important}
html[data-as-ui-theme="light"] #retest-r5r7-modal>div>div:first-child [style*="color:#eef2ff"]{color:#172033!important}
html[data-as-ui-theme="light"] #retest-r5r7-modal>div>div:first-child [style*="rgba(238,242,255"]{color:#64748b!important}
html[data-as-ui-theme="light"] #retest-r5r7-modal>div>div:first-child button{background:#fff!important;color:#334155!important;border-color:#cbd5e1!important}
html[data-as-ui-theme="light"] #retest-r5r7-body{color:#172033!important}
html[data-as-ui-theme="light"] #retest-r5r7-body [style*="color:#eef2ff"]{color:#172033!important}
html[data-as-ui-theme="light"] #retest-r5r7-body [style*="color:rgba(238,242,255"]{color:#64748b!important}
html[data-as-ui-theme="light"] #retest-r5r7-body .r5r7-kpis>div{background:#fff!important;border-color:#dbe3ef!important}
html[data-as-ui-theme="light"] #retest-r5r7-body .r5r7-cols>section{background:#fff!important;border-color:#dbe3ef!important}
html[data-as-ui-theme="light"] #retest-r5r7-body .r5r7-cols>section>div:first-child{border-color:#e2e8f0!important;color:#172033!important;background:#f8fafc!important}
html[data-as-ui-theme="light"] #retest-r5r7-body select{background:#fff!important;color:#172033!important;border-color:#cbd5e1!important}
html[data-as-ui-theme="light"] #retest-r5r7-body [style*="border-bottom:1px solid rgba(255,255,255"]{border-bottom-color:#e2e8f0!important}
html[data-as-ui-theme="light"] #retest-r5r7-body [style*="border:1px solid rgba(95,214,255"]{background:#eff8ff!important;border-color:#bae6fd!important;color:#334155!important}
html[data-as-ui-theme="light"] #retest-r5r7-body .btn{background:#fff!important;color:#334155!important;border-color:#cbd5e1!important}

/* Session presence admin panel: parity with users.html light theme */
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4{background:#fff!important;border-color:#d8e1ee!important;color:#172033!important;box-shadow:0 8px 26px rgba(31,49,76,.06)}
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4 .asls-head{background:#f8fafc!important;border-color:#e2e8f0!important}
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4 h2{color:#172033!important}
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4 .asls-meta{color:#64748b!important}
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4 .asls-kpi{background:#fff!important;border-color:#dbe3ef!important;color:#64748b!important}
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4 .asls-kpi b{color:#172033!important}
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4 thead th{background:#f1f5f9!important;color:#53617a!important;border-color:#dbe3ef!important}
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4 tbody td{background:#fff!important;color:#24324a!important;border-color:#e5eaf1!important}
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4 tbody tr:hover td{background:#f8fbff!important}

/* Audit Review & Sign-off: reinforced contrast in light mode */
html[data-as-ui-theme="light"] .rs78-shell{color:#172033}
html[data-as-ui-theme="light"] .rs78-body{background:#f6f9fd!important}
html[data-as-ui-theme="light"] .rs78-card,html[data-as-ui-theme="light"] .rs78-kpi{box-shadow:0 1px 0 rgba(15,23,42,.02)}
html[data-as-ui-theme="light"] .rs78-btn,html[data-as-ui-theme="light"] .rs78-tabs button{color:#29415f}

/* Surface-only cockpits get a deterministic light surface once bridge is active. */
html[data-as-ui-theme="light"][data-as-surface="light"] .cc8-shell,
html[data-as-ui-theme="light"][data-as-surface="light"] .ma9-shell,
html[data-as-ui-theme="light"][data-as-surface="light"] #pr10Shell{color-scheme:light}

/* === R5 R2 R6 FINAL CONSOLIDATION RULES === */
/* PHILADONF AUDIT SUITE - R5 R2 R6 UI CONSOLIDATION & NON-REGRESSION
   Scope: visual/theming only. No business logic, scoring, data or API changes.
*/

/* Shared semantic palette */
html[data-as-ui-theme="light"]{
  --as-ui-page:#f4f7fb;
  --as-ui-surface:#ffffff;
  --as-ui-surface-2:#f8fafc;
  --as-ui-border:#d8e1ee;
  --as-ui-border-strong:#c7d3e2;
  --as-ui-text:#172033;
  --as-ui-muted:#64748b;
  --as-ui-shadow:0 20px 55px rgba(30,41,59,.18);
  color-scheme:light;
}
html[data-as-ui-theme="dark"]{
  --as-ui-page:#07111f;
  --as-ui-surface:#0b1728;
  --as-ui-surface-2:#0f1d31;
  --as-ui-border:rgba(148,163,184,.18);
  --as-ui-border-strong:rgba(148,163,184,.28);
  --as-ui-text:#edf4ff;
  --as-ui-muted:#9fb0c6;
  --as-ui-shadow:0 24px 70px rgba(0,0,0,.46);
  color-scheme:dark;
}

/* R5 R2 R5 parity absorbed into the consolidated layer */
html[data-as-ui-theme="light"] #retest-r5r7-modal{background:rgba(15,23,42,.34)!important}
html[data-as-ui-theme="light"] #retest-r5r7-modal>div{background:#f7f9fd!important;border-color:#cbd5e1!important;box-shadow:var(--as-ui-shadow)!important;color:var(--as-ui-text)!important}
html[data-as-ui-theme="light"] #retest-r5r7-modal>div>div:first-child{background:rgba(255,255,255,.98)!important;border-color:#dbe3ef!important}
html[data-as-ui-theme="light"] #retest-r5r7-modal>div>div:first-child [style*="color:#eef2ff"]{color:var(--as-ui-text)!important}
html[data-as-ui-theme="light"] #retest-r5r7-modal>div>div:first-child [style*="rgba(238,242,255"]{color:var(--as-ui-muted)!important}
html[data-as-ui-theme="light"] #retest-r5r7-modal>div>div:first-child button{background:#fff!important;color:#334155!important;border-color:#cbd5e1!important}
html[data-as-ui-theme="light"] #retest-r5r7-body{color:var(--as-ui-text)!important}
html[data-as-ui-theme="light"] #retest-r5r7-body [style*="color:#eef2ff"]{color:var(--as-ui-text)!important}
html[data-as-ui-theme="light"] #retest-r5r7-body [style*="color:rgba(238,242,255"]{color:var(--as-ui-muted)!important}
html[data-as-ui-theme="light"] #retest-r5r7-body .r5r7-kpis>div{background:#fff!important;border-color:#dbe3ef!important}
html[data-as-ui-theme="light"] #retest-r5r7-body .r5r7-cols>section{background:#fff!important;border-color:#dbe3ef!important}
html[data-as-ui-theme="light"] #retest-r5r7-body .r5r7-cols>section>div:first-child{border-color:#e2e8f0!important;color:var(--as-ui-text)!important;background:#f8fafc!important}
html[data-as-ui-theme="light"] #retest-r5r7-body select{background:#fff!important;color:var(--as-ui-text)!important;border-color:#cbd5e1!important}
html[data-as-ui-theme="light"] #retest-r5r7-body [style*="border-bottom:1px solid rgba(255,255,255"]{border-bottom-color:#e2e8f0!important}
html[data-as-ui-theme="light"] #retest-r5r7-body [style*="border:1px solid rgba(95,214,255"]{background:#eff8ff!important;border-color:#bae6fd!important;color:#334155!important}
html[data-as-ui-theme="light"] #retest-r5r7-body .btn{background:#fff!important;color:#334155!important;border-color:#cbd5e1!important}

/* Admin live sessions */
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4{background:#fff!important;border-color:var(--as-ui-border)!important;color:var(--as-ui-text)!important;box-shadow:0 8px 26px rgba(31,49,76,.06)}
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4 .asls-head{background:#f8fafc!important;border-color:#e2e8f0!important}
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4 h2{color:var(--as-ui-text)!important}
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4 .asls-meta{color:var(--as-ui-muted)!important}
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4 .asls-kpi{background:#fff!important;border-color:#dbe3ef!important;color:var(--as-ui-muted)!important}
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4 .asls-kpi b{color:var(--as-ui-text)!important}
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4 thead th{background:#f1f5f9!important;color:#53617a!important;border-color:#dbe3ef!important}
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4 tbody td{background:#fff!important;color:#24324a!important;border-color:#e5eaf1!important}
html[data-as-ui-theme="light"] #as-live-sessions-r5-r2-r4 tbody tr:hover td{background:#f8fbff!important}

/* Deterministic light surface for the newer portfolio cockpits. */
html[data-as-ui-theme="light"][data-as-surface="light"] .cc8-shell,
html[data-as-ui-theme="light"][data-as-surface="light"] .ma9-shell,
html[data-as-ui-theme="light"][data-as-surface="light"] #pr10Shell{color-scheme:light}

/* Stronger final contrast for Audit Review & Sign-off Pro. */
html[data-as-ui-theme="light"] .rs78-shell{color:var(--as-ui-text)!important}
html[data-as-ui-theme="light"] .rs78-body{background:var(--as-ui-page)!important}
html[data-as-ui-theme="light"] .rs78-card,html[data-as-ui-theme="light"] .rs78-kpi{box-shadow:0 1px 0 rgba(15,23,42,.025)}
html[data-as-ui-theme="light"] .rs78-btn,html[data-as-ui-theme="light"] .rs78-tabs button{color:#29415f}

/* One coherent light visual language across all Action cockpits. */
html[data-as-ui-theme="light"] :is(.ea72-shell,.ex73-shell,.th74-shell,.rc75-shell,.ct76-shell,.cw77-shell,.rs78-shell,.cc8-shell,.ma9-shell,#pr10Shell){
  color-scheme:light;
}
html[data-as-ui-theme="light"] :is(.ea72-shell,.ex73-shell,.th74-shell,.rc75-shell,.ct76-shell,.cw77-shell,.rs78-shell) :is(input,select,textarea){
  background:#fff;color:var(--as-ui-text);border-color:var(--as-ui-border-strong);
}
html[data-as-ui-theme="light"] :is(.ea72-shell,.ex73-shell,.th74-shell,.rc75-shell,.ct76-shell,.cw77-shell,.rs78-shell) :is(table,th,td){
  border-color:#e2e8f0;
}

/* Main module shell: only visual tokens, never geometry. */
html[data-as-ui-theme="light"] :is(.as277-module,.btn,.top-menu-item){
  text-rendering:optimizeLegibility;
}
html[data-as-ui-theme="light"] .top-menu-panel{box-shadow:0 18px 48px rgba(30,41,59,.16)}
html[data-as-ui-theme="light"] :is(.audit-up-shell,.audit-mission-shell){box-shadow:var(--as-ui-shadow)}

/* Accessibility / focus consistency without changing handlers. */
:where(.ea72-shell,.ex73-shell,.th74-shell,.rc75-shell,.ct76-shell,.cw77-shell,.rs78-shell,.cc8-shell,.ma9-shell,#pr10Shell,#retest-r5r7-modal,#as-live-sessions-r5-r2-r4) :is(button,a,input,select,textarea):focus-visible{
  outline:2px solid #3b82f6!important;
  outline-offset:2px!important;
}

/* Avoid visually disabled-looking text on light cards. */
html[data-as-ui-theme="light"] :is(.cc8-shell,.ma9-shell,#pr10Shell,.rs78-shell,.ea72-shell,.ex73-shell,.th74-shell,.rc75-shell,.ct76-shell,.cw77-shell) [style*="opacity:.5"]{opacity:.72!important}


/* === R6 R2 LIGHT SURFACE - CONSOLIDATED INTO R7 === */
/* PHILADONF AUDIT SUITE - R5 R2 R6 R2 LIGHT SURFACE CLOSURE
   Scope strict: visual parity in LIGHT mode only. No geometry/business/API/scoring changes.
*/

/* --------------------------------------------------------------------------
   COMPTA - navigation pills must no longer look like dark-theme controls.
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] .hdr-nav .hn:not(.on){
  background:#ffffff!important;
  color:#334155!important;
  border:1px solid #d8e1ee!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
}
html[data-as-ui-theme="light"] .hdr-nav .hn:not(.on):hover{
  background:#f8fafc!important;
  color:#0f172a!important;
  border-color:#c7d3e2!important;
}
html[data-as-ui-theme="light"] .hdr-nav .hn.on{
  background:linear-gradient(180deg,#f0fdf8,#ffffff)!important;
  color:#166534!important;
  border-color:#6ee7b7!important;
  box-shadow:0 2px 10px rgba(16,185,129,.09)!important;
}

/* --------------------------------------------------------------------------
   EVIDENCE ASSURANCE CENTER - complete LIGHT closure + full-width register.
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] #pe11r1Shell{
  background:#f6f9fd!important;
  color:#172033!important;
  border-color:#c7d8e9!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-head,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-toolbar,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-footer,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-drawer-footer{
  background:#f8fbff!important;
  border-color:#dbe5ef!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-title h2,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-section-head b,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-drawer-head h3{
  color:#172033!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-title p,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-kpi small,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-kpi span,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-section-head small,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-section-head span,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-footer>span,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-empty,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-loading{
  color:#64748b!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-kpi{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#d8e3ef!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-kpi b{color:#172033!important}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-search input{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-filters button,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-icon,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-btn,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-drawer-close{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cad6e4!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-filters button.on{
  background:#eaf6ff!important;
  color:#075985!important;
  border-color:#7dd3fc!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-btn.primary{
  background:linear-gradient(100deg,#315cff,#24acd9)!important;
  color:#ffffff!important;
  border-color:#5bcdf6!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-body{
  display:block!important;
  background:#ffffff!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-main{
  width:100%!important;
  max-width:none!important;
  background:#ffffff!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-drawer:not(.open){display:none!important}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-drawer.open{
  display:flex!important;
  background:#f8fbff!important;
  color:#172033!important;
  border-left-color:#d6e2ee!important;
  box-shadow:-20px 0 44px rgba(30,41,59,.12)!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-drawer-head,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-detail-kpi,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-detail-block div{
  background:#ffffff!important;
  color:#24324a!important;
  border-color:#dbe4ee!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-table th{
  background:#edf4fb!important;
  color:#52677f!important;
  border-color:#d8e3ee!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-table td{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#e7edf4!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-table td b{color:#172033!important}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-table tbody tr:hover{background:#f8fbff!important}

/* --------------------------------------------------------------------------
   PORTFOLIO REMEDIATION - the detail pane remained dark after R6/R6.1.
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] #pr10Shell{
  background:#f6f9fd!important;
  color:#172033!important;
  border-color:#c7d8e9!important;
}
html[data-as-ui-theme="light"] #pr10Shell .pr10-head,
html[data-as-ui-theme="light"] #pr10Shell .pr10-toolbar,
html[data-as-ui-theme="light"] #pr10Shell .pr10-footer,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-footer{
  background:#f8fbff!important;
  border-color:#dbe5ef!important;
}
html[data-as-ui-theme="light"] #pr10Shell .pr10-title h2,
html[data-as-ui-theme="light"] #pr10Shell .pr10-section-head b,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-head h3{color:#172033!important}
html[data-as-ui-theme="light"] #pr10Shell .pr10-title p,
html[data-as-ui-theme="light"] #pr10Shell .pr10-kpi small,
html[data-as-ui-theme="light"] #pr10Shell .pr10-kpi span,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-head p,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-kpi small,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-block label,
html[data-as-ui-theme="light"] #pr10Shell .pr10-footer>span{color:#64748b!important}
html[data-as-ui-theme="light"] #pr10Shell .pr10-kpi,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-kpi,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-block div{
  background:#ffffff!important;
  color:#24324a!important;
  border-color:#d9e4ef!important;
}
html[data-as-ui-theme="light"] #pr10Shell .pr10-kpi b,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-kpi b{color:#172033!important}
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-head,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-body{
  background:#f8fbff!important;
  color:#172033!important;
  border-color:#dbe5ef!important;
}
html[data-as-ui-theme="light"] #pr10Shell .pr10-search input,
html[data-as-ui-theme="light"] #pr10Shell .pr10-filters button,
html[data-as-ui-theme="light"] #pr10Shell .pr10-icon,
html[data-as-ui-theme="light"] #pr10Shell .pr10-btn{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cad6e4!important;
}
html[data-as-ui-theme="light"] #pr10Shell .pr10-filters button.on{
  background:#eaf6ff!important;
  color:#075985!important;
  border-color:#7dd3fc!important;
}
html[data-as-ui-theme="light"] #pr10Shell .pr10-btn.primary{
  background:linear-gradient(100deg,#315cff,#24acd9)!important;
  color:#ffffff!important;
  border-color:#5bcdf6!important;
}
html[data-as-ui-theme="light"] #pr10Shell .pr10-table th{background:#edf4fb!important;color:#52677f!important}
html[data-as-ui-theme="light"] #pr10Shell .pr10-table td{background:#ffffff!important;color:#334155!important;border-color:#e7edf4!important}
html[data-as-ui-theme="light"] #pr10Shell .pr10-table td b{color:#172033!important}

/* --------------------------------------------------------------------------
   MULTI-AUDIT PORTFOLIO - remove mixed grey/dark controls and detail surface.
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] .ma9-shell{background:#f6f9fd!important;color:#172033!important}
html[data-as-ui-theme="light"] .ma9-head,
html[data-as-ui-theme="light"] .ma9-toolbar,
html[data-as-ui-theme="light"] .ma9-footer{background:#f8fbff!important;border-color:#dbe5ef!important}
html[data-as-ui-theme="light"] .ma9-title h2,
html[data-as-ui-theme="light"] .ma9-section-head b,
html[data-as-ui-theme="light"] .ma9-company b,
html[data-as-ui-theme="light"] .ma9-detail-head h3,
html[data-as-ui-theme="light"] .ma9-framework-title b,
html[data-as-ui-theme="light"] .ma9-fw-top b{color:#172033!important}
html[data-as-ui-theme="light"] .ma9-title p,
html[data-as-ui-theme="light"] .ma9-kpi small,
html[data-as-ui-theme="light"] .ma9-kpi span,
html[data-as-ui-theme="light"] .ma9-company small,
html[data-as-ui-theme="light"] .ma9-detail-head p,
html[data-as-ui-theme="light"] .ma9-footer>span,
html[data-as-ui-theme="light"] .ma9-empty{color:#64748b!important}
html[data-as-ui-theme="light"] .ma9-kpi,
html[data-as-ui-theme="light"] .ma9-row,
html[data-as-ui-theme="light"] .ma9-search,
html[data-as-ui-theme="light"] .ma9-detail-score,
html[data-as-ui-theme="light"] .ma9-mini>div,
html[data-as-ui-theme="light"] .ma9-fw{
  background:#ffffff!important;
  color:#24324a!important;
  border-color:#d9e4ef!important;
}
html[data-as-ui-theme="light"] .ma9-detail{
  background:#f8fbff!important;
  color:#172033!important;
  border-color:#dbe5ef!important;
}
html[data-as-ui-theme="light"] .ma9-filters button,
html[data-as-ui-theme="light"] .ma9-icon,
html[data-as-ui-theme="light"] .ma9-btn{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cad6e4!important;
}
html[data-as-ui-theme="light"] .ma9-filters button.on{
  background:#eaf6ff!important;
  color:#075985!important;
  border-color:#7dd3fc!important;
}
html[data-as-ui-theme="light"] .ma9-btn.primary{
  background:linear-gradient(100deg,#315cff,#24acd9)!important;
  color:#ffffff!important;
  border-color:#5bcdf6!important;
}
html[data-as-ui-theme="light"] .ma9-stat b,
html[data-as-ui-theme="light"] .ma9-mini b,
html[data-as-ui-theme="light"] .ma9-detail-score b{color:#172033!important}
html[data-as-ui-theme="light"] .ma9-row.selected{background:#eff8ff!important}

/* --------------------------------------------------------------------------
   CONTINUOUS COMPLIANCE - close the remaining dark graph/card surfaces.
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] .cc8-shell{background:#f6f9fd!important;color:#172033!important}
html[data-as-ui-theme="light"] .cc8-head,
html[data-as-ui-theme="light"] .cc8-context,
html[data-as-ui-theme="light"] .cc8-footer{background:#f8fbff!important;border-color:#dbe5ef!important}
html[data-as-ui-theme="light"] .cc8-kpi,
html[data-as-ui-theme="light"] .cc8-card,
html[data-as-ui-theme="light"] .cc8-action,
html[data-as-ui-theme="light"] .cc8-risk,
html[data-as-ui-theme="light"] .cc8-barbox{
  background:#ffffff!important;
  color:#24324a!important;
  border-color:#d9e4ef!important;
}
html[data-as-ui-theme="light"] .cc8-title h2,
html[data-as-ui-theme="light"] .cc8-card-head b,
html[data-as-ui-theme="light"] .cc8-action b,
html[data-as-ui-theme="light"] .cc8-risk b,
html[data-as-ui-theme="light"] .cc8-kpi b{color:#172033!important}
html[data-as-ui-theme="light"] .cc8-title p,
html[data-as-ui-theme="light"] .cc8-card-head small,
html[data-as-ui-theme="light"] .cc8-action small,
html[data-as-ui-theme="light"] .cc8-risk small,
html[data-as-ui-theme="light"] .cc8-footer-note{color:#64748b!important}
html[data-as-ui-theme="light"] .cc8-icon-btn,
html[data-as-ui-theme="light"] .cc8-btn{background:#ffffff!important;color:#334155!important;border-color:#cad6e4!important}
html[data-as-ui-theme="light"] .cc8-btn.primary{background:#2563eb!important;color:#ffffff!important;border-color:#3b82f6!important}

/* --------------------------------------------------------------------------
   SIGNED PDF - legacy inline dark modal is now theme-aware without JS rewrite.
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] #sig-modal{background:rgba(15,23,42,.34)!important}
html[data-as-ui-theme="light"] #sig-modal>div{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:0 28px 80px rgba(30,41,59,.22)!important;
}
html[data-as-ui-theme="light"] #sig-modal>div>div:first-child,
html[data-as-ui-theme="light"] #sig-modal>div>div:last-child{
  border-color:#e2e8f0!important;
  background:#f8fbff!important;
}
html[data-as-ui-theme="light"] #sig-modal [style*="color:#eef2ff"]{color:#172033!important}
html[data-as-ui-theme="light"] #sig-modal [style*="rgba(238,242,255"]{color:#64748b!important}
html[data-as-ui-theme="light"] #sig-modal label{color:#52677f!important}
html[data-as-ui-theme="light"] #sig-modal canvas{
  background:#ffffff!important;
  border-color:#cbd8e6!important;
}
html[data-as-ui-theme="light"] #sig-modal .inp{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
}
html[data-as-ui-theme="light"] #sig-modal button[onclick*="clearSig"]{color:#64748b!important}
html[data-as-ui-theme="light"] #sig-modal button[onclick*="sig-modal"][style*="rgba(255,255,255,.06)"]{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cbd8e6!important;
}

/* Keep dark mode strictly untouched by this R2 closure. */


/* === R6 R3 LIGHT AUTHORITY - CONSOLIDATED INTO R7 === */
/* PHILADONF AUDIT SUITE - R5 R2 R6 R3 LIGHT AUTHORITY CLOSURE
   Production-rooted correction: surface OR theme can be the light authority.
   Scope strict: CSS/theme synchronization only. No business/API/scoring changes.
*/

/* --------------------------------------------------------------------------
   COMPTA - navigation pills must no longer look like dark-theme controls.
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] .gc-module-tabs .hn:not(.on){
  background:#ffffff!important;
  color:#334155!important;
  border:1px solid #d8e1ee!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
}
html[data-as-ui-theme="light"] .gc-module-tabs .hn:not(.on):hover{
  background:#f8fafc!important;
  color:#0f172a!important;
  border-color:#c7d3e2!important;
}
html[data-as-ui-theme="light"] .gc-module-tabs .hn.on{
  background:linear-gradient(180deg,#f0fdf8,#ffffff)!important;
  color:#166534!important;
  border-color:#6ee7b7!important;
  box-shadow:0 2px 10px rgba(16,185,129,.09)!important;
}

/* --------------------------------------------------------------------------
   EVIDENCE ASSURANCE CENTER - complete LIGHT closure + full-width register.
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] #pe11r1Shell{
  background:#f6f9fd!important;
  color:#172033!important;
  border-color:#c7d8e9!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-head,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-toolbar,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-footer,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-drawer-footer{
  background:#f8fbff!important;
  border-color:#dbe5ef!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-title h2,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-section-head b,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-drawer-head h3{
  color:#172033!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-title p,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-kpi small,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-kpi span,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-section-head small,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-section-head span,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-footer>span,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-empty,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-loading{
  color:#64748b!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-kpi{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#d8e3ef!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-kpi b{color:#172033!important}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-search input{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-filters button,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-icon,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-btn,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-drawer-close{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cad6e4!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-filters button.on{
  background:#eaf6ff!important;
  color:#075985!important;
  border-color:#7dd3fc!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-btn.primary{
  background:linear-gradient(100deg,#315cff,#24acd9)!important;
  color:#ffffff!important;
  border-color:#5bcdf6!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-body{
  display:block!important;
  background:#ffffff!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-main{
  width:100%!important;
  max-width:none!important;
  background:#ffffff!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-drawer:not(.open){display:none!important}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-drawer.open{
  display:flex!important;
  background:#f8fbff!important;
  color:#172033!important;
  border-left-color:#d6e2ee!important;
  box-shadow:-20px 0 44px rgba(30,41,59,.12)!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-drawer-head,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-detail-kpi,
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-detail-block div{
  background:#ffffff!important;
  color:#24324a!important;
  border-color:#dbe4ee!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-table th{
  background:#edf4fb!important;
  color:#52677f!important;
  border-color:#d8e3ee!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-table td{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#e7edf4!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-table td b{color:#172033!important}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-table tbody tr:hover{background:#f8fbff!important}

/* --------------------------------------------------------------------------
   PORTFOLIO REMEDIATION - the detail pane remained dark after R6/R6.1.
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] #pr10Shell{
  background:#f6f9fd!important;
  color:#172033!important;
  border-color:#c7d8e9!important;
}
html[data-as-ui-theme="light"] #pr10Shell .pr10-head,
html[data-as-ui-theme="light"] #pr10Shell .pr10-toolbar,
html[data-as-ui-theme="light"] #pr10Shell .pr10-footer,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-footer{
  background:#f8fbff!important;
  border-color:#dbe5ef!important;
}
html[data-as-ui-theme="light"] #pr10Shell .pr10-title h2,
html[data-as-ui-theme="light"] #pr10Shell .pr10-section-head b,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-head h3{color:#172033!important}
html[data-as-ui-theme="light"] #pr10Shell .pr10-title p,
html[data-as-ui-theme="light"] #pr10Shell .pr10-kpi small,
html[data-as-ui-theme="light"] #pr10Shell .pr10-kpi span,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-head p,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-kpi small,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-block label,
html[data-as-ui-theme="light"] #pr10Shell .pr10-footer>span{color:#64748b!important}
html[data-as-ui-theme="light"] #pr10Shell .pr10-kpi,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-kpi,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-block div{
  background:#ffffff!important;
  color:#24324a!important;
  border-color:#d9e4ef!important;
}
html[data-as-ui-theme="light"] #pr10Shell .pr10-kpi b,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-kpi b{color:#172033!important}
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-head,
html[data-as-ui-theme="light"] #pr10Shell .pr10-detail-body{
  background:#f8fbff!important;
  color:#172033!important;
  border-color:#dbe5ef!important;
}
html[data-as-ui-theme="light"] #pr10Shell .pr10-search input,
html[data-as-ui-theme="light"] #pr10Shell .pr10-filters button,
html[data-as-ui-theme="light"] #pr10Shell .pr10-icon,
html[data-as-ui-theme="light"] #pr10Shell .pr10-btn{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cad6e4!important;
}
html[data-as-ui-theme="light"] #pr10Shell .pr10-filters button.on{
  background:#eaf6ff!important;
  color:#075985!important;
  border-color:#7dd3fc!important;
}
html[data-as-ui-theme="light"] #pr10Shell .pr10-btn.primary{
  background:linear-gradient(100deg,#315cff,#24acd9)!important;
  color:#ffffff!important;
  border-color:#5bcdf6!important;
}
html[data-as-ui-theme="light"] #pr10Shell .pr10-table th{background:#edf4fb!important;color:#52677f!important}
html[data-as-ui-theme="light"] #pr10Shell .pr10-table td{background:#ffffff!important;color:#334155!important;border-color:#e7edf4!important}
html[data-as-ui-theme="light"] #pr10Shell .pr10-table td b{color:#172033!important}

/* --------------------------------------------------------------------------
   MULTI-AUDIT PORTFOLIO - remove mixed grey/dark controls and detail surface.
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] .ma9-shell{background:#f6f9fd!important;color:#172033!important}
html[data-as-ui-theme="light"] .ma9-head,
html[data-as-ui-theme="light"] .ma9-toolbar,
html[data-as-ui-theme="light"] .ma9-footer{background:#f8fbff!important;border-color:#dbe5ef!important}
html[data-as-ui-theme="light"] .ma9-title h2,
html[data-as-ui-theme="light"] .ma9-section-head b,
html[data-as-ui-theme="light"] .ma9-company b,
html[data-as-ui-theme="light"] .ma9-detail-head h3,
html[data-as-ui-theme="light"] .ma9-framework-title b,
html[data-as-ui-theme="light"] .ma9-fw-top b{color:#172033!important}
html[data-as-ui-theme="light"] .ma9-title p,
html[data-as-ui-theme="light"] .ma9-kpi small,
html[data-as-ui-theme="light"] .ma9-kpi span,
html[data-as-ui-theme="light"] .ma9-company small,
html[data-as-ui-theme="light"] .ma9-detail-head p,
html[data-as-ui-theme="light"] .ma9-footer>span,
html[data-as-ui-theme="light"] .ma9-empty{color:#64748b!important}
html[data-as-ui-theme="light"] .ma9-kpi,
html[data-as-ui-theme="light"] .ma9-row,
html[data-as-ui-theme="light"] .ma9-search,
html[data-as-ui-theme="light"] .ma9-detail-score,
html[data-as-ui-theme="light"] .ma9-mini>div,
html[data-as-ui-theme="light"] .ma9-fw{
  background:#ffffff!important;
  color:#24324a!important;
  border-color:#d9e4ef!important;
}
html[data-as-ui-theme="light"] .ma9-detail{
  background:#f8fbff!important;
  color:#172033!important;
  border-color:#dbe5ef!important;
}
html[data-as-ui-theme="light"] .ma9-filters button,
html[data-as-ui-theme="light"] .ma9-icon,
html[data-as-ui-theme="light"] .ma9-btn{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cad6e4!important;
}
html[data-as-ui-theme="light"] .ma9-filters button.on{
  background:#eaf6ff!important;
  color:#075985!important;
  border-color:#7dd3fc!important;
}
html[data-as-ui-theme="light"] .ma9-btn.primary{
  background:linear-gradient(100deg,#315cff,#24acd9)!important;
  color:#ffffff!important;
  border-color:#5bcdf6!important;
}
html[data-as-ui-theme="light"] .ma9-stat b,
html[data-as-ui-theme="light"] .ma9-mini b,
html[data-as-ui-theme="light"] .ma9-detail-score b{color:#172033!important}
html[data-as-ui-theme="light"] .ma9-row.selected{background:#eff8ff!important}

/* --------------------------------------------------------------------------
   CONTINUOUS COMPLIANCE - close the remaining dark graph/card surfaces.
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] .cc8-shell{background:#f6f9fd!important;color:#172033!important}
html[data-as-ui-theme="light"] .cc8-head,
html[data-as-ui-theme="light"] .cc8-context,
html[data-as-ui-theme="light"] .cc8-footer{background:#f8fbff!important;border-color:#dbe5ef!important}
html[data-as-ui-theme="light"] .cc8-kpi,
html[data-as-ui-theme="light"] .cc8-card,
html[data-as-ui-theme="light"] .cc8-action,
html[data-as-ui-theme="light"] .cc8-risk,
html[data-as-ui-theme="light"] .cc8-barbox{
  background:#ffffff!important;
  color:#24324a!important;
  border-color:#d9e4ef!important;
}
html[data-as-ui-theme="light"] .cc8-title h2,
html[data-as-ui-theme="light"] .cc8-card-head b,
html[data-as-ui-theme="light"] .cc8-action b,
html[data-as-ui-theme="light"] .cc8-risk b,
html[data-as-ui-theme="light"] .cc8-kpi b{color:#172033!important}
html[data-as-ui-theme="light"] .cc8-title p,
html[data-as-ui-theme="light"] .cc8-card-head small,
html[data-as-ui-theme="light"] .cc8-action small,
html[data-as-ui-theme="light"] .cc8-risk small,
html[data-as-ui-theme="light"] .cc8-footer-note{color:#64748b!important}
html[data-as-ui-theme="light"] .cc8-icon-btn,
html[data-as-ui-theme="light"] .cc8-btn{background:#ffffff!important;color:#334155!important;border-color:#cad6e4!important}
html[data-as-ui-theme="light"] .cc8-btn.primary{background:#2563eb!important;color:#ffffff!important;border-color:#3b82f6!important}

/* --------------------------------------------------------------------------
   SIGNED PDF - legacy inline dark modal is now theme-aware without JS rewrite.
   -------------------------------------------------------------------------- */
html[data-as-ui-theme="light"] #sig-modal{background:rgba(15,23,42,.34)!important}
html[data-as-ui-theme="light"] #sig-modal>div{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:0 28px 80px rgba(30,41,59,.22)!important;
}
html[data-as-ui-theme="light"] #sig-modal>div>div:first-child,
html[data-as-ui-theme="light"] #sig-modal>div>div:last-child{
  border-color:#e2e8f0!important;
  background:#f8fbff!important;
}
html[data-as-ui-theme="light"] #sig-modal [style*="color:#eef2ff"]{color:#172033!important}
html[data-as-ui-theme="light"] #sig-modal [style*="rgba(238,242,255"]{color:#64748b!important}
html[data-as-ui-theme="light"] #sig-modal label{color:#52677f!important}
html[data-as-ui-theme="light"] #sig-modal canvas{
  background:#ffffff!important;
  border-color:#cbd8e6!important;
}
html[data-as-ui-theme="light"] #sig-modal .inp{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
}
html[data-as-ui-theme="light"] #sig-modal button[onclick*="clearSig"]{color:#64748b!important}
html[data-as-ui-theme="light"] #sig-modal button[onclick*="sig-modal"][style*="rgba(255,255,255,.06)"]{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cbd8e6!important;
}

/* Keep dark mode strictly untouched by this R2 closure. */


/* R3 exact production selectors - final closure of the two residual screenshots. */
html[data-as-ui-theme="light"] .gc-module-tabs{
  background:#ffffff!important;
  border-color:#dbe5ef!important;
}
html[data-as-ui-theme="light"] .gc-module-tabs .gc-toolbar-label{
  color:#64748b!important;
}
html[data-as-ui-theme="light"] .gc-module-tabs .hn:not(.on){
  background:#ffffff!important;color:#334155!important;border:1px solid #d8e1ee!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
}
html[data-as-ui-theme="light"] .gc-module-tabs .hn:not(.on)::after{
  background:linear-gradient(180deg,rgba(255,255,255,.5),transparent)!important;
}
html[data-as-ui-theme="light"] .gc-module-tabs .hn:not(.on):hover{
  background:#f8fafc!important;color:#0f172a!important;border-color:#c7d3e2!important;
}
html[data-as-ui-theme="light"] .gc-module-tabs .hn.on{
  background:linear-gradient(180deg,#effcf7,#ffffff)!important;color:#166534!important;
  border-color:#6ee7b7!important;box-shadow:0 2px 10px rgba(16,185,129,.09)!important;
}

html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-head-actions .pe11r1-icon{
  background:#ffffff!important;color:#334155!important;border-color:#cad6e4!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-head-actions .pe11r1-icon.close{
  background:#fff5f5!important;color:#b42338!important;border-color:#f3b6be!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-progress{
  background:#edf2f7!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-kpis{
  background:#ffffff!important;border-color:#e2e8f0!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-toolbar{
  background:#f8fafc!important;border-color:#e2e8f0!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-filters button{
  background:#ffffff!important;color:#475569!important;border-color:#d5dfeb!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-filters button.on{
  background:#eaf6ff!important;color:#075985!important;border-color:#7dd3fc!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-footer{
  background:#f8fafc!important;color:#64748b!important;border-color:#dbe5ef!important;
}
html[data-as-ui-theme="light"] #pe11r1Shell .pe11r1-footer .pe11r1-btn:not(.primary){
  background:#ffffff!important;color:#334155!important;border-color:#cad6e4!important;
}


/* === R6 R4 COMPTA SPECIFICITY - CONSOLIDATED INTO R7 === */
/* PHILADONF AUDIT SUITE - R5 R2 R6 R4 COMPTA LIGHT SPECIFICITY CLOSURE
   Root cause proven in production console: legacy audit-visual-parity selector
   specificity 0,4,2 beats the R6 R3 light selector 0,4,1 although both use !important.
   This final rule deliberately raises light specificity to 0,5,2 by including
   body.as277-compta, while remaining scoped to COMPTA module tabs only.
*/

html[data-as-ui-theme="light"] body.as277-compta .gc-module-tabs :is(.hn,button):not(.on){
  background:#ffffff!important;
  color:#334155!important;
  border:1px solid #d8e1ee!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
}

html[data-as-ui-theme="light"] body.as277-compta .gc-module-tabs :is(.hn,button):not(.on):hover{
  background:#f8fafc!important;
  color:#0f172a!important;
  border-color:#c7d3e2!important;
}

html[data-as-ui-theme="light"] body.as277-compta .gc-module-tabs :is(.hn,button).on{
  background:linear-gradient(180deg,#f0fdf8,#ffffff)!important;
  color:#166534!important;
  border:1px solid #6ee7b7!important;
  box-shadow:0 2px 10px rgba(16,185,129,.09)!important;
}


/* === R6 R5.x DIALOG/COMMERCIAL/PRIVACY - CONSOLIDATED INTO R7 === */
/* PHILADONF AUDIT SUITE - R5 R2 R6 R5 LIGHT DIALOG AUTHORITY CLOSURE
   Scope strict: LIGHT-mode visual closure for Evidence Assurance Center,
   Rapport IA and Audit Review close control. No geometry/business/API/scoring changes.
*/

/* Evidence Assurance Center: final light authority loaded last in audit.html. */
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell{
  background:#f7f9fc!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:0 28px 78px rgba(30,41,59,.20)!important;
  --pe11-text:#172033!important;
  --pe11-muted:#64748b!important;
  --pe11-line:#dbe5ef!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-head{
  background:linear-gradient(180deg,#f8fbff,#f3f7fb)!important;
  border-color:#dbe5ef!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-mark{
  background:linear-gradient(135deg,#e7f7ff,#eef6ff)!important;
  border:1px solid #b9ddf3!important;
  color:#0891b2!important;
  box-shadow:none!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell :is(.pe11r1-title h2,.pe11r1-section-head b,.pe11r1-drawer-head h3){color:#172033!important}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell :is(.pe11r1-title p,.pe11r1-kpi small,.pe11r1-kpi span,.pe11r1-section-head small,.pe11r1-section-head span,.pe11r1-footer>span,.pe11r1-empty,.pe11r1-loading){color:#64748b!important}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-kpis{
  background:#ffffff!important;
  border-color:#dbe5ef!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-kpi{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#d8e3ef!important;
  box-shadow:0 1px 2px rgba(15,23,42,.03)!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-kpi:is(.good,.primary,.warn,.bad){box-shadow:inset 0 -2px 0 var(--pe11-accent,rgba(56,189,248,.48)),0 1px 2px rgba(15,23,42,.03)!important}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-kpi b{color:#172033!important}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-toolbar{
  background:#f8fbff!important;
  border-color:#dbe5ef!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-search input{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:none!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell :is(.pe11r1-filters button,.pe11r1-icon,.pe11r1-btn,.pe11r1-drawer-close){
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cbd8e6!important;
  box-shadow:0 1px 2px rgba(15,23,42,.03)!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-filters button.on{
  background:#eaf6ff!important;
  color:#075985!important;
  border-color:#7dd3fc!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-icon.close{
  background:#fff5f5!important;
  color:#b4233e!important;
  border-color:#fecdd3!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-btn.primary{
  background:linear-gradient(100deg,#315cff,#24acd9)!important;
  color:#ffffff!important;
  border-color:#5bcdf6!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-body,
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-main{
  background:#ffffff!important;
  color:#172033!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-section-head{
  background:#ffffff!important;
  border-color:#dbe5ef!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-table th{
  background:#edf4fb!important;
  color:#52677f!important;
  border-color:#d8e3ee!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-table td{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#e7edf4!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-table td b{color:#172033!important}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-drawer:not(.open){display:none!important}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell .pe11r1-drawer.open{
  display:flex!important;
  background:#f8fbff!important;
  color:#172033!important;
  border-left-color:#d6e2ee!important;
  box-shadow:-20px 0 44px rgba(30,41,59,.12)!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell :is(.pe11r1-drawer-head,.pe11r1-detail-kpi,.pe11r1-detail-block div){
  background:#ffffff!important;
  color:#24324a!important;
  border-color:#dbe4ee!important;
}
html[data-as-ui-theme="light"] body.as277-ui #pe11r1Shell :is(.pe11r1-footer,.pe11r1-drawer-footer){
  background:#f8fbff!important;
  border-color:#dbe5ef!important;
}

/* Rapport IA: legacy core builds a dark modal with inline styles. Author !important
   rules deliberately override those inline non-important values in LIGHT mode. */
html[data-as-ui-theme="light"] body.as277-ui #ia-modal{
  background:rgba(15,23,42,.38)!important;
  backdrop-filter:blur(7px)!important;
}
html[data-as-ui-theme="light"] body.as277-ui #ia-modal>div{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:0 28px 80px rgba(30,41,59,.22)!important;
}
html[data-as-ui-theme="light"] body.as277-ui #ia-modal>div>div:first-child,
html[data-as-ui-theme="light"] body.as277-ui #ia-modal>div>div:last-child{
  background:#f8fbff!important;
  border-color:#e2e8f0!important;
}
html[data-as-ui-theme="light"] body.as277-ui #ia-modal #ia-content{
  background:#ffffff!important;
  color:#334155!important;
}
html[data-as-ui-theme="light"] body.as277-ui #ia-modal #ia-content :is(p,div,span){color:inherit}
html[data-as-ui-theme="light"] body.as277-ui #ia-modal #ia-content :is(h1,h2,h3,strong){color:#172033!important}
html[data-as-ui-theme="light"] body.as277-ui #ia-modal #ia-content h2{border-color:#dbe5ef!important}
html[data-as-ui-theme="light"] body.as277-ui #ia-modal [style*="color:#eef2ff"]{color:#172033!important}
html[data-as-ui-theme="light"] body.as277-ui #ia-modal [style*="rgba(238,242,255"]{color:#64748b!important}
html[data-as-ui-theme="light"] body.as277-ui #ia-modal [style*="color:#b9c2ff"],
html[data-as-ui-theme="light"] body.as277-ui #ia-modal [style*="color:#7c8cff"]{color:#1d4ed8!important}
html[data-as-ui-theme="light"] body.as277-ui #ia-modal #ia-copy-btn{background:#ecfdf5!important;color:#047857!important;border-color:#a7f3d0!important}
html[data-as-ui-theme="light"] body.as277-ui #ia-modal #ia-word-btn{background:#fffbeb!important;color:#a16207!important;border-color:#fde68a!important}
html[data-as-ui-theme="light"] body.as277-ui #ia-modal #ia-pdf-btn{background:#eef2ff!important;color:#4338ca!important;border-color:#c7d2fe!important}
html[data-as-ui-theme="light"] body.as277-ui #ia-modal #ia-ptr-btn{background:#fff1f2!important;color:#be123c!important;border-color:#fecdd3!important}
html[data-as-ui-theme="light"] body.as277-ui #ia-modal button[onclick*="ia-modal" i]{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cbd8e6!important;
}
html[data-as-ui-theme="light"] body.as277-ui #ia-modal>div>div:first-child button[onclick*="ia-modal" i]{
  background:#fff5f5!important;
  color:#b4233e!important;
  border-color:#fecdd3!important;
}
html[data-as-ui-theme="light"] body.as277-ui #ia-modal #ia-content [style*="border:2px solid #7c8cff"]{
  border-color:#3b82f6!important;
  border-top-color:transparent!important;
}

/* Audit Review & Sign-off: preserve the good light surface and remove the lone
   dark close control that still looked out of place in LIGHT mode. */
html[data-as-ui-theme="light"] body.as277-ui .rs78-shell .rs78-close{
  background:#fff5f5!important;
  color:#b4233e!important;
  border-color:#fecdd3!important;
  box-shadow:none!important;
}

/* Dark mode intentionally untouched: all R6 R5 selectors require a light signal. */

/* Contact overlay + dialog --------------------------------------------- */
html[data-as-ui-theme="light"] body .as-contact-overlay,
html[data-as-ui-theme="light"] body .as-doc-overlay{
  background:rgba(15,23,42,.34)!important;
  backdrop-filter:blur(7px)!important;
  -webkit-backdrop-filter:blur(7px)!important;
}
html[data-as-ui-theme="light"] body .as-contact-modal{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:0 28px 80px rgba(15,23,42,.20)!important;
}
html[data-as-ui-theme="light"] body .as-contact-head{
  background:rgba(248,250,252,.985)!important;
  border-bottom-color:#dbe5ef!important;
  box-shadow:0 7px 18px rgba(15,23,42,.06)!important;
}
html[data-as-ui-theme="light"] body .as-contact-head h2{
  color:#172033!important;
}
html[data-as-ui-theme="light"] body .as-contact-head p{
  color:#64748b!important;
}
html[data-as-ui-theme="light"] body :is(.as-contact-close,.as-doc-close){
  background:#fff5f5!important;
  color:#b4233e!important;
  border-color:#fecdd3!important;
  box-shadow:none!important;
}
html[data-as-ui-theme="light"] body :is(.as-contact-close,.as-doc-close):is(:hover,:focus-visible){
  background:#ffe4e6!important;
  color:#9f1239!important;
  border-color:#fda4af!important;
  outline:2px solid rgba(244,63,94,.16)!important;
}
html[data-as-ui-theme="light"] body .as-contact-body{
  background:#ffffff!important;
  color:#172033!important;
}
html[data-as-ui-theme="light"] body .as-contact-field label{
  color:#475569!important;
}
html[data-as-ui-theme="light"] body .as-contact-field :is(input,select,textarea){
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:none!important;
}
html[data-as-ui-theme="light"] body .as-contact-field :is(input,select,textarea)::placeholder{
  color:#94a3b8!important;
}
html[data-as-ui-theme="light"] body .as-contact-field :is(input,select,textarea):focus{
  border-color:#60a5fa!important;
  box-shadow:0 0 0 3px rgba(59,130,246,.12)!important;
}
html[data-as-ui-theme="light"] body .as-contact-consent{
  color:#475569!important;
}
html[data-as-ui-theme="light"] body .as-contact-consent a{
  color:#0369a1!important;
}
html[data-as-ui-theme="light"] body .as-contact-submit{
  background:linear-gradient(135deg,#0f766e,#0d9488)!important;
  color:#ffffff!important;
  border-color:#0f766e!important;
  box-shadow:0 4px 12px rgba(13,148,136,.14)!important;
}
html[data-as-ui-theme="light"] body .as-contact-status.ok{
  background:#ecfdf5!important;
  border-color:#a7f3d0!important;
  color:#047857!important;
}
html[data-as-ui-theme="light"] body .as-contact-status.bad{
  background:#fff1f2!important;
  border-color:#fecdd3!important;
  color:#be123c!important;
}

/* Embedded legal document modal --------------------------------------- */
html[data-as-ui-theme="light"] body .as-doc-modal{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:0 28px 80px rgba(15,23,42,.20)!important;
}
html[data-as-ui-theme="light"] body .as-doc-head{
  background:rgba(248,250,252,.985)!important;
  border-bottom-color:#dbe5ef!important;
  box-shadow:0 6px 16px rgba(15,23,42,.05)!important;
}
html[data-as-ui-theme="light"] body .as-doc-title{
  color:#172033!important;
}
html[data-as-ui-theme="light"] body .as-doc-content{
  --bg:#f4f7fb!important;
  --panel:#ffffff!important;
  --line:#dbe5ef!important;
  --text:#172033!important;
  --muted:#64748b!important;
  --pri:#2563eb!important;
  --good:#059669!important;
  background:#f4f7fb!important;
  color:#172033!important;
}
html[data-as-ui-theme="light"] body .as-doc-content .as-doc-page{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#dbe5ef!important;
  box-shadow:0 18px 54px rgba(15,23,42,.09)!important;
}
html[data-as-ui-theme="light"] body .as-doc-content :is(.as-doc-source-header,.as-doc-source-main,.as-doc-source-footer){
  background:#ffffff!important;
  color:#172033!important;
  border-color:#e2e8f0!important;
}
html[data-as-ui-theme="light"] body .as-doc-content h1,
html[data-as-ui-theme="light"] body .as-doc-content h2,
html[data-as-ui-theme="light"] body .as-doc-content strong{
  color:#172033!important;
}
html[data-as-ui-theme="light"] body .as-doc-content :is(p,li,.as-doc-source-footer){
  color:#526277!important;
}
html[data-as-ui-theme="light"] body .as-doc-content a{
  color:#1d4ed8!important;
}
html[data-as-ui-theme="light"] body .as-doc-content .notice{
  background:#eff6ff!important;
  color:#334155!important;
  border-color:#bfdbfe!important;
}
html[data-as-ui-theme="light"] body .as-doc-content .aspc-inline-open{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cbd8e6!important;
}
html[data-as-ui-theme="light"] body :is(.as-doc-loading,.as-doc-error){
  background:#ffffff!important;
  color:#475569!important;
  border-color:#dbe5ef!important;
}
html[data-as-ui-theme="light"] body .as-doc-error{
  background:#fff1f2!important;
  color:#be123c!important;
  border-color:#fecdd3!important;
}


/* Privacy / cookie center ---------------------------------------------- */
html[data-as-ui-theme="light"] body #asPrivacyTrigger{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cbd8e6!important;
  box-shadow:0 8px 22px rgba(15,23,42,.12)!important;
}
html[data-as-ui-theme="light"] body #asPrivacyTrigger:is(:hover,:focus-visible){
  background:#f8fafc!important;
  border-color:#93c5fd!important;
  box-shadow:0 0 0 3px rgba(59,130,246,.12),0 10px 24px rgba(15,23,42,.12)!important;
}
html[data-as-ui-theme="light"] body #asPrivacyBanner{
  --aspc-text:#172033!important;
  --aspc-muted:#64748b!important;
  --aspc-line:#dbe5ef!important;
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:0 24px 64px rgba(15,23,42,.16)!important;
}

/* Commercial footer: outrank historical
   html[data-audit-visual-parity] body.as277-ui .as-commercial-footer !important */
html[data-as-ui-theme="light"] body.as277-ui footer.as-commercial-footer.as-commercial-footer,
html[data-as-ui-theme="light"] body.as277-ui footer.as-commercial-footer.as-commercial-footer,
html[data-as-ui-theme="light"] body footer.as-commercial-footer.as-commercial-footer{
  background:#f8fafc!important;
  background-image:none!important;
  color:#334155!important;
  border-top:1px solid #d8e3ef!important;
  box-shadow:0 -8px 26px rgba(15,23,42,.08)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
}
html[data-as-ui-theme="light"] body.as277-ui footer.as-commercial-footer.as-commercial-footer :is(a,button),
html[data-as-ui-theme="light"] body.as277-ui footer.as-commercial-footer.as-commercial-footer :is(a,button),
html[data-as-ui-theme="light"] body footer.as-commercial-footer.as-commercial-footer :is(a,button){
  background:#ffffff!important;
  background-image:none!important;
  color:#334155!important;
  border-color:#cbd8e6!important;
  box-shadow:0 1px 2px rgba(15,23,42,.035)!important;
}
html[data-as-ui-theme="light"] body.as277-ui footer.as-commercial-footer.as-commercial-footer .as-foot-contact,
html[data-as-ui-theme="light"] body.as277-ui footer.as-commercial-footer.as-commercial-footer .as-foot-contact,
html[data-as-ui-theme="light"] body footer.as-commercial-footer.as-commercial-footer .as-foot-contact{
  background:#ecfdf5!important;
  color:#047857!important;
  border-color:#a7f3d0!important;
}
html[data-as-ui-theme="light"] body.as277-ui footer.as-commercial-footer.as-commercial-footer .as-foot-copy,
html[data-as-ui-theme="light"] body.as277-ui footer.as-commercial-footer.as-commercial-footer .as-foot-copy,
html[data-as-ui-theme="light"] body footer.as-commercial-footer.as-commercial-footer .as-foot-copy{color:#64748b!important}

/* Privacy center: double ID provides final author authority over legacy rules.
   body.light-mode is accepted as a third LIGHT signal for pages where attributes
   can be applied after the component is created. */
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter{
  --aspc-bg:#f8fafc!important;
  --aspc-panel:#ffffff!important;
  --aspc-panel2:#f1f5f9!important;
  --aspc-text:#172033!important;
  --aspc-muted:#64748b!important;
  --aspc-line:#dbe5ef!important;
  --aspc-primary:#5267ff!important;
  --aspc-accent:#059669!important;
  --aspc-danger:#be123c!important;
  --aspc-shadow:0 28px 80px rgba(15,23,42,.20)!important;
  color:#172033!important;
}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-backdrop,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-backdrop,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-backdrop{
  background:rgba(15,23,42,.30)!important;
}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-dialog,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-dialog,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-dialog{
  background:#ffffff!important;
  background-image:none!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:0 28px 80px rgba(15,23,42,.20)!important;
}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter :is(.aspc-head,.aspc-foot),
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter :is(.aspc-head,.aspc-foot),
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter :is(.aspc-head,.aspc-foot){
  background:#f8fafc!important;
  background-image:none!important;
  color:#172033!important;
  border-color:#dbe5ef!important;
}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-body,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-body,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-body{
  background:#ffffff!important;
  color:#172033!important;
}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter :is(.aspc-title,.aspc-section h3,.aspc-cat-title),
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter :is(.aspc-title,.aspc-section h3,.aspc-cat-title),
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter :is(.aspc-title,.aspc-section h3,.aspc-cat-title){color:#172033!important}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter :is(.aspc-sub,.aspc-section p,.aspc-cat-desc,.aspc-foot-note),
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter :is(.aspc-sub,.aspc-section p,.aspc-cat-desc,.aspc-foot-note),
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter :is(.aspc-sub,.aspc-section p,.aspc-cat-desc,.aspc-foot-note){color:#64748b!important}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-kicker,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-kicker,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-kicker{color:#0369a1!important}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-close,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-close,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-close{
  background:#fff5f5!important;color:#b4233e!important;border-color:#fecdd3!important;box-shadow:none!important
}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-callout,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-callout,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-callout{
  background:#ecfdf5!important;color:#065f46!important;border-color:#a7f3d0!important
}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-category,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-category,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-category{border-color:#e2e8f0!important}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-chip,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-chip,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-chip{
  background:#f1f5f9!important;color:#475569!important;border-color:#cbd8e6!important
}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-chip.required,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-chip.required,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-chip.required{
  background:#ecfdf5!important;color:#047857!important;border-color:#a7f3d0!important
}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-chip.inactive,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-chip.inactive,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-chip.inactive{
  background:#f1f5f9!important;color:#64748b!important;border-color:#cbd8e6!important
}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-btn:not(.primary):not(.good),
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-btn:not(.primary):not(.good),
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-btn:not(.primary):not(.good){
  background:#ffffff!important;color:#334155!important;border-color:#cbd8e6!important
}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-btn.primary,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-btn.primary,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-btn.primary{
  background:linear-gradient(135deg,#6376ff,#5267ff)!important;color:#ffffff!important;border-color:#6475ff!important
}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-btn.good,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-btn.good,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-btn.good{
  background:#ecfdf5!important;color:#047857!important;border-color:#a7f3d0!important
}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-slider,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-slider,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-slider{
  background:#cbd5e1!important;border-color:#b9c6d5!important
}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-switch input:checked + .aspc-slider,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-switch input:checked + .aspc-slider,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-switch input:checked + .aspc-slider{background:#6576ff!important}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-switch input:disabled:checked + .aspc-slider,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-switch input:disabled:checked + .aspc-slider,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-switch input:disabled:checked + .aspc-slider{background:#1f8a68!important}
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-status,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-status,
html[data-as-ui-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-status{color:#047857!important}

/* Dark mode untouched by construction. */


html[data-ui-foundation="r5-r2-r7"]{--as-ui-foundation-ready:1}
