/* Al Dakheel Oud identity. Color/effect overrides only; no geometry or typography. */
:root{
 --brand-primary:#1C3230;--brand-action:#1C3230;--brand-hover:#294640;--brand-support:#527A70;
 --brand-selected:#E5EFEB;--brand-page:#F4F7F5;--brand-surface:#FFFFFF;--brand-border:#D8E3DD;
 --brand-ink:#203632;--brand-muted:#61756D;--brand-gold:#B59A65;--brand-gold-ink:#806735;--brand-gold-soft:#F6F0E4;
}
html:not([data-theme=dark]){
 --primary:var(--brand-action);--primary-hover:var(--brand-hover);--primary-dark:var(--brand-primary);--primary-soft:var(--brand-selected);--secondary:var(--brand-support);--sidebar:var(--brand-primary);
 --background:var(--brand-page);--page:var(--brand-page);--surface:var(--brand-surface);--card:var(--brand-surface);--border:var(--brand-border);--text:var(--brand-ink);--text-primary:var(--brand-ink);--text-secondary:var(--brand-muted);--muted:var(--brand-muted);
 --bs-primary:#1C3230;--bs-primary-rgb:28,50,48;--bs-link-color:#1C3230;--bs-link-hover-color:#294640;--bs-body-color:#203632;--bs-body-bg:#F4F7F5;
}
html:not([data-theme=dark]) body{background:var(--brand-page);color:var(--brand-ink);}
html:not([data-theme=dark]) :is(.admin-layout,.admin-content,.auth-page,.otp-shell){background:var(--brand-page);}
html:not([data-theme=dark]) :is(.page-header,.data-card,.project-overview-card,.summary-card,.department-card,.acq-section,.acq-offer,.acq-kpis>article,.pa-panel,.pa-kpi,.modal-content,dialog,.project-notification-panel,.acq-directory-tabs,.acq-filter,.auth-card,.otp-card,.department-create-dialog,.attachment-card,.project-task-summary-card){background:var(--brand-surface);border-color:var(--brand-border);box-shadow:0 4px 18px #1c323008;}
html:not([data-theme=dark]) :is(h1,h2,h3,h4,.data-card-header h2,.department-card-header h3,.task-table-link,.project-activity-list strong,.branch-card-title,.pa-kpi strong,.pa-panel strong,.acq-kpis strong,.psc-stats strong){color:var(--brand-ink);}
html:not([data-theme=dark]) :is(.page-subtitle,.data-card-header p,.department-card-header p,.project-progress-count,.project-page-location,.pa-muted,.pa-panel p,.acq-section p,.acq-offer-copy>small,.project-notification-panel p,.project-notification-panel small,.department-mapping-note,.psc-dates small){color:var(--brand-muted);}
html:not([data-theme=dark]) .premium-analytics{--pa-ink:var(--brand-ink);--pa-muted:var(--brand-muted);}
html:not([data-theme=dark]) :is(a,.button-quiet,.table-action,.notification-read-button,.acq-open,.acq-reset,.department-mapping-card summary,.project-share-options a){color:var(--brand-action);}
html:not([data-theme=dark]) a:hover{color:var(--brand-hover);}
html:not([data-theme=dark]) :is(.button-primary,.btn-primary,.otp-card button[type=submit],.auth-form .button-primary){background:var(--brand-action);border-color:var(--brand-action);color:#fff;box-shadow:0 4px 12px #1c323018;}
html:not([data-theme=dark]) :is(.button-primary,.btn-primary,.otp-card button[type=submit]):hover{background:var(--brand-hover);border-color:var(--brand-hover);color:#fff;box-shadow:0 5px 14px #1c323022;}
html:not([data-theme=dark]) :is(.button-secondary,.btn-outline-primary,.aw-export-button,.aw-settings-button,.department-dialog-close,.acq-card-more,.project-header-icon:not(.button-danger)){background:var(--brand-surface);border-color:var(--brand-border);color:var(--brand-action);box-shadow:none;}
html:not([data-theme=dark]) :is(.button-secondary,.aw-export-button,.aw-settings-button,.acq-card-more):hover{background:var(--brand-selected);border-color:var(--brand-support);color:var(--brand-hover);}
html:not([data-theme=dark]) :is(button:disabled,.button[aria-disabled=true],input:disabled,select:disabled){background:#e8ede9;color:#61756d;border-color:var(--brand-border);box-shadow:none;}
html:not([data-theme=dark]) :is(.form-control,input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),select,textarea,.project-status-multiselect summary){background-color:var(--brand-surface);border-color:var(--brand-border);color:var(--brand-ink);}
html:not([data-theme=dark]) :is(input,textarea)::placeholder{color:var(--brand-muted);opacity:1;}
html:not([data-theme=dark]) :is(input,select,textarea,.form-control):focus{border-color:var(--brand-action);box-shadow:0 0 0 3px #2d555026;outline-color:var(--brand-action);}
html:not([data-theme=dark]) :is(a,button,summary,input,select,textarea):focus-visible{outline-color:var(--brand-action);}
html:not([data-theme=dark]) :is(input[type=checkbox],input[type=radio]){accent-color:var(--brand-action);}
html:not([data-theme=dark]) :is(.table-wrap,.users-table td,.users-table th,.modal-header,.modal-footer,.project-overview-facts,.task-row,.department-attachments,.project-activity-list li){border-color:var(--brand-border);}
html:not([data-theme=dark]) :is(.users-table thead,.task-column-filters,.task-filter-bar,.aw-stage-tabs,.user-management-tabs,.psc-stats,.department-schedule,.account-password-section,.project-share-options,.project-status-options,.acd-more-options){background:var(--brand-page);border-color:var(--brand-border);color:var(--brand-muted);}
html:not([data-theme=dark]) :is(.users-table tbody tr:hover,.department-choice-list label:hover,.project-status-options label:hover){background:var(--brand-selected);}
html:not([data-theme=dark]) :is(.summary-icon,.person-avatar,.user-avatar,.pa-panel-tag,.pa-kpi-top svg,.department-progress,.department-linked-list>span,.department-mapping-card header>span,.task-owner-picker,.acq-cover,.acq-group-heading>span,.acq-kpis i){background:var(--brand-selected);border-color:var(--brand-border);color:var(--brand-action);}
html:not([data-theme=dark]) :is(.summary-card-link.is-selected,.project-state-tabs [aria-pressed=true],.aw-stage-tabs a.is-active,.user-status-filters a.is-active,.user-management-tabs [aria-selected=true],.acq-directory-tabs a.is-active){background:var(--brand-action);border-color:var(--brand-action);color:#fff;box-shadow:none;}
html:not([data-theme=dark]) :is(.aw-stage-tabs a.is-active b,.project-state-tabs [aria-pressed=true]>span){background:#ffffff26;color:#fff;}
html:not([data-theme=dark]) :is(.aw-stage-tabs b,.project-state-tabs>button>span){background:var(--brand-selected);color:var(--brand-action);}
html:not([data-theme=dark]) :is(.project-summary-compact .completion-step.is-current,.completion-step.is-current,.aw-stage-compact li.is-current){background:var(--brand-selected);border-color:var(--brand-action);box-shadow:none;}
html:not([data-theme=dark]) :is(.completion-step.is-current .completion-step-marker,.aw-stage-compact li.is-current::before){background:var(--brand-action);color:#fff;border-color:var(--brand-action);box-shadow:none;}
html:not([data-theme=dark]) :is(.completion-step.is-current strong,.completion-step.is-current .completion-step-state,.project-summary-compact .project-progress-heading strong,.project-summary-compact .psc-stats .status-in_progress strong,.project-summary-compact .psc-dates strong){color:var(--brand-action);}
html:not([data-theme=dark]) :is(.progress-track,.pa-progress-track,.analytics-bar-track,.branch-card-body .progress-track){background:var(--brand-selected);}
html:not([data-theme=dark]) :is(.progress-track>span,.analytics-bar-track>span,.department-header-track>span){background:var(--brand-action);}
html:not([data-theme=dark]) .project-list-grid .branch-project-card{background:var(--brand-surface);border-color:var(--brand-border);box-shadow:0 4px 16px #1c32300a;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card .branch-card-body{background:var(--brand-selected);border-color:var(--brand-border);color:var(--brand-ink);}
html:not([data-theme=dark]) .project-list-grid .branch-project-card .branch-card-body :is(strong,small,p,span){color:var(--brand-ink);}
html:not([data-theme=dark]) .project-list-grid .branch-project-card .branch-card-body svg{color:var(--brand-support);}
html:not([data-theme=dark]) :is(.project-overview-card .project-overview-facts>span,.acq-directory-compact>.acq-kpis,.acq-directory-compact>.acq-filter,.department-mapping-card){border-color:var(--brand-border);}
html:not([data-theme=dark]) :is(.acq-directory-compact .acq-kpis span,.acq-directory-compact .acq-kpis strong,.acq-site-overview h3,.acq-data strong,.pa-panel h3,.pa-kpi-label){color:var(--brand-ink);}
html:not([data-theme=dark]) :is(.auth-eyebrow,.otp-eyebrow,.pa-eyebrow){color:var(--brand-gold-ink);}
html:not([data-theme=dark]) .auth-card::before{background:var(--brand-gold);}
html:not([data-theme=dark]) .login-scene{--login-primary:var(--brand-action);--login-primary-dark:var(--brand-hover);--login-ink:var(--brand-ink);--login-gold:var(--brand-gold);}
html:not([data-theme=dark]) :is(.auth-language,.language-switch,.login-scene .auth-language){background:var(--brand-selected);border-color:var(--brand-border);}
html:not([data-theme=dark]) :is(.auth-language a.is-current,.login-scene .auth-language a.is-current){color:var(--brand-action);background:#fff;box-shadow:none;}
/* Navigation remains dark in both themes; the original logo asset is untouched. */
html .admin-sidebar,html .otp-brand{background:var(--brand-primary);color:#fff;box-shadow:4px 0 18px #1c323014;}
html .admin-sidebar :is(.admin-brand,.admin-brand-title,.admin-nav a,.nav-icon,.admin-nav-heading,.language-switch a){color:#e5efeb;}
html .admin-sidebar :is(.admin-brand-panel,.language-switch){background:#ffffff08;border-color:#ffffff26;}
html .admin-sidebar .admin-nav a:hover{background:var(--brand-hover);color:#fff;}
html .admin-sidebar .admin-nav a.is-active{background:var(--brand-action);color:#fff;border-color:var(--brand-gold);box-shadow:inset -3px 0 var(--brand-gold);}
html .admin-sidebar .admin-nav a.is-active .nav-icon{color:#fff;}
html .admin-sidebar .language-switch a.is-current{background:var(--brand-action);color:#fff;}
html .admin-sidebar .nav-logout{color:#f3b4b4;}
/* Keep success/warning/danger status colors. Information is distinct from the brand. */
html:not([data-theme=dark]) :is(.notice-success,.status-active,.task-status-complete,.project-status-complete){background:#edf8f0;color:#176c41;border-color:#b9dfc7;}
html:not([data-theme=dark]) :is(.notice-danger,.status-rejected,.button-danger,.text-danger){color:#b42338;}
html:not([data-theme=dark]) :is(.task-status-progress,.project-status-progress){background:#edf3fb;color:#285f98;border-color:#c7d8ee;}
html:not([data-theme=dark]) :is(.task-status-new,.project-status-new){background:var(--brand-page);color:var(--brand-muted);border-color:var(--brand-border);}
html:not([data-theme=dark]) :is(.task-status-blocked,.status-pending,.project-status-hold){background:#fff5df;color:#8b5910;border-color:#ecd7a7;}
/* Dark mode keeps its existing surfaces; only brand accents are adjusted. */
html[data-theme=dark]{--primary:#9fc4b6;--primary-hover:#d1e5db;--primary-soft:#244640;}
html[data-theme=dark] :is(.button-primary,.btn-primary){background:var(--brand-action);border-color:#6b9c8a;color:#fff;box-shadow:none;}
html[data-theme=dark] .button-primary:hover{background:var(--brand-hover);}
html:not([data-theme=dark]) .admin-sidebar .language-switch{background:#ffffff0a;border-color:#ffffff26;}
html:not([data-theme=dark]) .admin-sidebar .language-switch a{color:#e5efeb;}
html:not([data-theme=dark]) .admin-sidebar .language-switch a.is-current{background:var(--brand-action);color:#fff;}
html:not([data-theme=dark]) .admin-sidebar :is(.admin-brand-panel p,.admin-brand-panel small,.admin-nav-heading){color:#c1d2ca;}
html:not([data-theme=dark]) :is(.project-notification-count,.pa-display-button,.sidebar-handle,.mobile-menu-button){background:var(--brand-selected);color:var(--brand-action);border-color:var(--brand-border);}
html:not([data-theme=dark]) .premium-analytics :is(.pa-kpi-top>span,.pa-panel-heading h3,.pa-radial-center strong,.pa-speed-row strong){color:var(--brand-ink);}
html:not([data-theme=dark]) .premium-analytics :is(.pa-kpi>small,.pa-speed-caption,.pa-speed-row small,.pa-column-group>strong,.pa-radial-center span){color:var(--brand-muted);}
html:not([data-theme=dark]) .premium-analytics .pa-column.remaining{background:linear-gradient(to top,var(--brand-action),var(--brand-support));box-shadow:0 3px 8px #1c323020;}
html:not([data-theme=dark]) .premium-analytics :is(.pa-speed-row b,.pa-ring-value,.pa-insight-value strong){color:var(--brand-action);}
html:not([data-theme=dark]) :is(.login-methods,.otp-card .otp-quiet){background:var(--brand-selected);color:var(--brand-action);}
html:not([data-theme=dark]) :is(.login-methods a[aria-current=page],.login-transition-greeting,.login-otp-expiry strong){color:var(--brand-action);}
html:not([data-theme=dark]) .login-methods a[aria-current=page]::after{background:var(--brand-action);}
html:not([data-theme=dark]) .login-scene .auth-form label{color:var(--brand-ink);}
html:not([data-theme=dark]) .login-scene .auth-form .form-control:focus{border-color:var(--brand-action);box-shadow:0 0 0 3px #2d555026;}
html .otp-brand :is(span,p){color:#e5efeb;}
html .otp-brand-lines i{background:var(--brand-gold);}
html:not([data-theme=dark]) #project-departments .department-header-track{background:var(--brand-selected);}
html:not([data-theme=dark]) #project-departments .department-header-track>span{background:var(--brand-action);}
html:not([data-theme=dark]) #project-departments .department-progress{background:var(--brand-selected);color:var(--brand-action);}
html:not([data-theme=dark]) #project-departments .department-card{border-color:var(--brand-border);}
html:not([data-theme=dark]) .project-summary-compact .project-overview-facts.psc-stats{background:var(--brand-page);}
html:not([data-theme=dark]) #project-departments .task-filter-bar{background:var(--brand-page);border-color:var(--brand-border);}
html:not([data-theme=dark]) .project-summary-compact .psc-dates svg{color:var(--brand-support);}
html:not([data-theme=dark]) .project-summary-compact .completion-step-marker{background:var(--brand-page);border-color:var(--brand-border);color:var(--brand-muted);}
html:not([data-theme=dark]) .project-summary-compact .completion-step.is-current .completion-step-marker{background:var(--brand-action);border-color:var(--brand-action);color:#fff;}
html:not([data-theme=dark]) .project-summary-compact .completion-step.is-done .completion-step-marker{background:#edf8f0;color:#176c41;border-color:#b9dfc7;}
html:not([data-theme=dark]) :is(.form-control,input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),select,textarea){border-color:var(--brand-support);}
html:not([data-theme=dark]) :is(.form-control,input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),select,textarea):focus{border-color:var(--brand-action);box-shadow:0 0 0 3px #2d555026;outline-color:var(--brand-action);}
html:not([data-theme=dark]) :is(.button.button-primary:disabled,.button.button-primary[aria-disabled=true],input:disabled,select:disabled,textarea:disabled){background:#e8ede9;border-color:var(--brand-border);color:var(--brand-muted);box-shadow:none;}
html .admin-sidebar :is(.admin-brand,.admin-brand-title,.admin-nav a,.nav-icon,.admin-nav-heading,.language-switch a),html:not([data-theme=dark]) .admin-sidebar :is(.admin-brand-panel p,.admin-brand-panel small,.admin-nav-heading,.language-switch a){color:#fff;}

/* Requested sidebar gradient. */
html .admin-sidebar{background:#1C3230;}

/* Soft neutral sidebar controls against the petroleum background. */
html .admin-sidebar .admin-nav a.is-active{background:#E2E7E5;color:#203632;border-color:#B59A65;}
html .admin-sidebar .admin-nav a.is-active .nav-icon{color:#203632;}
html .admin-sidebar .admin-nav a:hover{background:#d3dcd8;color:#203632;}
html .admin-sidebar .admin-nav a:hover .nav-icon{color:#203632;}
html:not([data-theme=dark]) .admin-sidebar .language-switch a.is-current,
html[data-theme=dark] .admin-sidebar .language-switch a.is-current{background:#E2E7E5;color:#203632;box-shadow:none;}
html .admin-sidebar .language-switch a:hover{background:#d3dcd8;color:#203632;}
html:not([data-theme=dark]) .summary-card-link.is-selected :is(strong,small){color:#fff;}
html:not([data-theme=dark]) .users-page .user-settings-trigger{color:var(--brand-action);background:var(--brand-selected);border-color:var(--brand-border);}
html:not([data-theme=dark]) .users-page .role-badge:not(.role-admin):not(.role-super-admin){color:var(--brand-action);background:var(--brand-selected);border-color:var(--brand-border);}
/* Project state identities, harmonized with the petroleum brand. */
html:not([data-theme=dark]) .project-list-grid .branch-project-card.project-state-planning{--branch-accent:#375B73;--branch-edge:#A7BFCB;--card-tint:#E6EEF3;--card-deep:#375B73;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card.project-state-completed{--branch-accent:#35664F;--branch-edge:#A6C7B5;--card-tint:#E5F0E8;--card-deep:#35664F;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card.project-state-on_hold{--branch-accent:#914E59;--branch-edge:#D5AFB7;--card-tint:#F5E8EB;--card-deep:#914E59;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card.project-state-in_progress{--branch-accent:#1C3230;--branch-edge:#B4C9C1;--card-tint:#FFFFFF;--card-deep:#1C3230;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card{background:linear-gradient(145deg,var(--card-tint),#fff);border-color:var(--branch-edge);border-top-color:var(--branch-accent);}
html:not([data-theme=dark]) .project-list-grid .branch-project-card:not(.project-state-in_progress) .branch-card-body{background:linear-gradient(145deg,color-mix(in srgb,var(--card-deep) 90%,white),var(--card-deep));border-color:var(--branch-accent);}
html:not([data-theme=dark]) .project-list-grid .branch-project-card:not(.project-state-in_progress) .branch-card-body :is(strong,small,p,span,svg){color:#fff;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card:not(.project-state-in_progress) .branch-card-body .progress-track{background:#ffffff33;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card:not(.project-state-in_progress) .branch-card-body .progress-track>span{background:#fff;}
html:not([data-theme=dark]) .project-list-grid .project-state-in_progress .branch-card-body{background:#fff;border-color:var(--brand-border);}
html:not([data-theme=dark]) .project-list-grid .branch-project-card .branch-card-status{color:var(--branch-accent);border-color:var(--branch-edge);background:#ffffffd9;}
html .admin-sidebar .sidebar-caption{color:#C9B382;}

/* Analytics uses the same state palette as project cards. */
html:not([data-theme=dark]) .premium-analytics .pa-column.completed{background:linear-gradient(to top,#35664F,#73977E);}
html:not([data-theme=dark]) .premium-analytics .pa-column.remaining{background:linear-gradient(to top,#1C3230,#527A70);}
html:not([data-theme=dark]) .premium-analytics :is(.pa-panel-tag,.pa-task-insight,.pa-project-insight){background:var(--brand-selected);color:var(--brand-action);}
/* Lighter task charts match the project status palette. */
html:not([data-theme=dark]) .premium-analytics .pa-column.completed{background:linear-gradient(to top,#68B58B,#A5D8BA);}
html:not([data-theme=dark]) .premium-analytics .pa-column.remaining{background:linear-gradient(to top,#71A7D5,#A7CBE7);}
html:not([data-theme=dark]) .premium-analytics .pa-stacked button>span{color:#203632;text-shadow:none;}
/* Crisp analytical colors and high-contrast value labels. */
html:not([data-theme=dark]) .premium-analytics .pa-column.completed{background:linear-gradient(to top,#299960,#69C28F);box-shadow:0 2px 5px #1c323018;}
html:not([data-theme=dark]) .premium-analytics .pa-column.remaining{background:linear-gradient(to top,#397FB5,#7BB5DE);box-shadow:0 2px 5px #1c323018;}
html:not([data-theme=dark]) .premium-analytics .pa-column b{color:#203632;}
html:not([data-theme=dark]) .premium-analytics .pa-column-group>strong{color:#203632;}
/* One balanced gold for new-branch badges and type analytics. */
:root{--brand-new-branch:#AD8B42;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card.project-type-new .branch-card-type{background:var(--brand-new-branch);border-color:var(--brand-new-branch);color:#201D14;}
html:not([data-theme=dark]) .premium-analytics :is([data-pa-type=new],[data-pa-year-type=new]) .pa-type-bar>span{background:var(--brand-new-branch);}
html:not([data-theme=dark]) .premium-analytics :is([data-pa-type=new],[data-pa-year-type=new]) .pa-type-label i{background:var(--brand-new-branch);}
/* Match project-state chart swatches and card panels. */
html:not([data-theme=dark]) .project-list-grid .branch-project-card.project-state-planning{--branch-accent:#4D83A8;--card-deep:#4D83A8;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card.project-state-completed{--branch-accent:#3F9064;--card-deep:#3F9064;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card.project-state-on_hold{--branch-accent:#B7657B;--card-deep:#B7657B;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card:not(.project-state-in_progress) .branch-card-body{background:var(--card-deep);}
html:not([data-theme=dark]) .project-list-grid .branch-project-card:not(.project-state-in_progress) .branch-card-body :is(strong,small,p,span,svg){color:#081715;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card:not(.project-state-in_progress) .branch-card-body .progress-track{background:#142b2930;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card:not(.project-state-in_progress) .branch-card-body .progress-track>span{background:#142B29;}
html:not([data-theme=dark]) .aw-committee-tabs{border-color:var(--brand-border);}
html:not([data-theme=dark]) .aw-committee-tabs button{background:var(--brand-selected);border-color:var(--brand-border);color:var(--brand-action);}
html:not([data-theme=dark]) .aw-committee-tabs button:hover{background:#d5e4dd;border-color:var(--brand-support);}
html:not([data-theme=dark]) .aw-committee-tabs button[aria-selected=true]{background:var(--brand-action);border-color:var(--brand-action);color:#fff;}
html:not([data-theme=dark]) .aw-committee-tabs button[aria-selected=true]:hover{background:var(--brand-hover);}
html[data-theme=dark] .aw-committee-tabs button[aria-selected=true]{background:var(--brand-action);color:#fff;border-color:var(--brand-support);}
html:not([data-theme=dark]) .user-management-dialog .user-management-tabs button{background:var(--brand-selected);color:var(--brand-action);border-color:var(--brand-border);}
html:not([data-theme=dark]) .user-management-dialog .user-management-tabs button:hover{background:#d5e4dd;}
html:not([data-theme=dark]) .user-management-dialog .user-management-tabs button[aria-selected=true]{background:var(--brand-action);color:#fff;border-color:var(--brand-action);}
html:not([data-theme=dark]) .user-management-dialog .request-password-submit{background:var(--brand-action);border-color:var(--brand-action);color:#fff;box-shadow:none;}
html:not([data-theme=dark]) .user-management-dialog .request-password-submit:hover{background:var(--brand-hover);}
html:not([data-theme=dark]) .user-management-dialog .request-password-submit:focus-visible{outline:2px solid var(--brand-action);outline-offset:3px;}
html:not([data-theme=dark]) .hr-tabs{background:var(--brand-surface);border-color:var(--brand-border);}
html:not([data-theme=dark]) .hr-tabs button{background:transparent;color:var(--brand-muted);}
html:not([data-theme=dark]) .hr-tabs button:hover{background:var(--brand-selected);color:var(--brand-action);}
html:not([data-theme=dark]) .hr-tabs button[aria-pressed=true]{background:var(--brand-action);color:#fff;}
html:not([data-theme=dark]) .hr-secret button{background:var(--brand-selected);color:var(--brand-action);border-color:var(--brand-border);}
html:not([data-theme=dark]) .hr-secret button:hover{background:#d5e4dd;}
html:not([data-theme=dark]) .hr-progress{background:var(--brand-selected);}
html:not([data-theme=dark]) .hr-progress i{background:var(--brand-action);}
html:not([data-theme=dark]) .hr-muted{color:var(--brand-muted);}
html:not([data-theme=dark]) .hr-results thead{background:var(--brand-selected);color:var(--brand-ink);}
.theme-toggle.button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;min-height:38px;padding:8px;flex-shrink:0;}
.theme-toggle .theme-icon-sun{display:none;}
html[data-theme=dark] .theme-toggle .theme-icon-moon{display:none;}
html[data-theme=dark] .theme-toggle .theme-icon-sun{display:block;}
html[data-theme=dark] .theme-toggle{background:#244640;border-color:#527A70;color:#f5e4b5;}
html[data-theme=dark] :is(.project-summary-compact,.acq-section,.acq-offer,.acq-filter,.acq-directory-tabs,.department-mapping-card,.department-create-dialog,.project-notification-panel,.user-management-dialog){background:#102724;border-color:#35534b;color:#e5efeb;}
html[data-theme=dark] :is(.project-summary-compact .psc-stats,.project-summary-compact .completion-step.is-current,.aw-stage-tabs,.hr-tabs,.task-filter-bar){background:#1c3530;border-color:#35534b;}
html[data-theme=dark] :is(.project-summary-compact strong,.project-summary-compact .completion-step-copy strong,.project-summary-compact .psc-dates strong){color:#d8ebe2;}
html[data-theme=dark] :is(.project-summary-compact small,.project-summary-compact .project-progress-count,.project-summary-compact .project-progress-heading>div>span){color:#b0c8bd;}
html[data-theme=dark] :is(.hr-tabs button,.aw-committee-tabs button,.user-management-tabs button){background:#19352f;color:#d8ebe2;border-color:#35534b;}
html[data-theme=dark] :is(.hr-tabs button[aria-pressed=true],.user-management-tabs button[aria-selected=true]){background:#527A70;color:#fff;}
/* Petroleum dark surfaces with readable analytics, rather than white cards. */
html[data-theme=dark]{--page:#142421;--background:#142421;--surface:#1E3330;--card:#1E3330;--border:#39514A;--text:#E6EFEA;--text-primary:#E6EFEA;--muted:#B0C3BA;--text-secondary:#B0C3BA;--primary:#A8C8BA;--primary-soft:#2B4540;}
html[data-theme=dark] body,html[data-theme=dark] .admin-layout,html[data-theme=dark] .admin-content{background:#142421;color:#E6EFEA;}
html[data-theme=dark] :is(.page-header,.data-card,.project-overview-card,.summary-card,.pa-panel,.pa-kpi,.department-card,.acq-section,.acq-offer,.modal-content,.project-notification-panel,.user-chip){background:#1E3330;border-color:#39514A;box-shadow:0 4px 18px #00000018;color:#E6EFEA;}
html[data-theme=dark] .premium-analytics{--pa-ink:#E6EFEA;--pa-muted:#B0C3BA;}
html[data-theme=dark] .premium-analytics :is(.pa-panel,.pa-kpi){background:#1E3330;border-color:#39514A;}
html[data-theme=dark] .premium-analytics :is(h3,strong,.pa-kpi-top>span,.pa-column b,.pa-column-group>strong,.pa-type-label,.pa-type-label strong,.pa-speed-row strong,.pa-task-breakdown strong){color:#E6EFEA;}
html[data-theme=dark] .premium-analytics :is(p,small,.pa-panel-heading p,.pa-kpi>small,.pa-status-legend,.pa-volume-legend,.pa-speed-caption,.pa-speed-row>span,.pa-task-breakdown button>span){color:#B0C3BA;}
html[data-theme=dark] .premium-analytics :is(.pa-task-breakdown,.pa-task-breakdown button,.pa-status-legend button,.pa-deadline-item,.pa-schedule-item){background:#243C37;border-color:#39514A;color:#E6EFEA;}
html[data-theme=dark] .premium-analytics :is(.pa-panel-tag,.pa-project-insight,.pa-task-insight){background:#2B4540;color:#C8DCD1;}
html[data-theme=dark] .premium-analytics :is(.pa-panel-heading,.pa-task-breakdown button+button,.pa-speed-row){border-color:#39514A;}
html[data-theme=dark] :is(.form-control,input:not([type=checkbox]):not([type=radio]),select,textarea,.project-status-multiselect summary){background-color:#1A2E29;border-color:#526D61;color:#E6EFEA;}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#ACBFB5;opacity:1;}
html[data-theme=dark] :is(.progress-track,.pa-type-bar,.pa-progress-track,.pa-task-meter,.pa-legend-meter){background:#354E45;}
html[data-theme=dark] .premium-analytics .pa-type-bar{background:#354E45;}
html[data-theme=dark] .premium-analytics .pa-column.completed{background:linear-gradient(to top,#299960,#69C28F);}
html[data-theme=dark] .premium-analytics .pa-column.remaining{background:linear-gradient(to top,#397FB5,#7BB5DE);}
html[data-theme=dark] :is(.person-avatar,.user-avatar,.summary-icon){background:#2B4540;border-color:#526D61;color:#D5E7DC;}
html[data-theme=dark] :is(.users-table thead,.task-column-filters,.project-status-options,.project-share-options){background:#243C37;color:#D5E7DC;border-color:#39514A;}
html[data-theme=dark] .users-table td{border-color:#39514A;color:#E6EFEA;}
html[data-theme=dark] .users-table tbody tr:hover{background:#2B4540;}
html[data-theme=dark] .pa-gauge svg text{fill:#E6EFEA;}
html[data-theme=dark] .pa-radial-center{background:#1E3330;border-color:#39514A;box-shadow:none;}
html[data-theme=dark] .pa-radial-center:before{background:#1E3330;}
/* Slightly stronger project-state surfaces. */
html:not([data-theme=dark]) .project-list-grid .branch-project-card.pc-refined.project-state-planning{--card-tint:#D4E3ED;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card.pc-refined.project-state-completed{--card-tint:#D2E7DA;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card.pc-refined.project-state-on_hold{--card-tint:#EED4DC;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card.pc-refined.project-state-in_progress{--card-tint:#E9F0EC;}
html:not([data-theme=dark]) .project-list-grid .branch-project-card.pc-refined{background:linear-gradient(145deg,var(--card-tint),color-mix(in srgb,var(--card-tint) 45%,white));}