/* Shared visual contract: each text role is paired with a surface in both themes.
   Loaded last to replace historical page-specific palette fragments, not behavior. */
:root,html[data-theme=light]{
 --ds-canvas:#f4f7fb;--ds-surface:#ffffff;--ds-subtle:#eaf0f7;
 --ds-ink:#14263d;--ds-body:#42546b;--ds-muted:#53667e;--ds-line:#c9d4e2;
 --ds-action:#1859b7;--ds-action-hover:#104895;--ds-on-action:#ffffff;
 --ds-accent:#006d77;--ds-accent-soft:#e1f3f2;--ds-focus:#1859b7;
 --ds-success:#11633f;--ds-success-bg:#e3f4eb;--ds-warning:#805000;--ds-warning-bg:#fff2d6;
 --ds-danger:#9e2837;--ds-danger-bg:#fde9ec;--ds-running:#174fa1;--ds-running-bg:#e6efff;
 --ds-shadow:0 10px 32px #14263d0a;color-scheme:light;
 --bg:var(--ds-canvas);--paper:var(--ds-surface);--ink:var(--ds-ink);--text:var(--ds-body);
 --line:var(--ds-line);--teal:var(--ds-accent);--soft:var(--ds-subtle);--accent:var(--ds-accent-soft);
 --card-ink:var(--ds-ink);--card-text:var(--ds-body);--card-line:var(--ds-line);--card-soft:var(--ds-subtle);--outer:var(--ds-canvas);
}
html[data-theme=dark]{
 --ds-canvas:#101b2b;--ds-surface:#19283d;--ds-subtle:#22364e;
 --ds-ink:#f2f6fc;--ds-body:#c7d5e6;--ds-muted:#aebfd4;--ds-line:#49617c;
 --ds-action:#99c2ff;--ds-action-hover:#bdd8ff;--ds-on-action:#10213a;
 --ds-accent:#79dbd4;--ds-accent-soft:#203f48;--ds-focus:#99c2ff;
 --ds-success:#a5e7c3;--ds-success-bg:#183d30;--ds-warning:#ffe0a0;--ds-warning-bg:#49391f;
 --ds-danger:#ffbbc5;--ds-danger-bg:#4b2731;--ds-running:#bbd5ff;--ds-running-bg:#243d60;
 --ds-shadow:0 10px 32px #00000020;color-scheme:dark;
 --bg:var(--ds-canvas);--paper:var(--ds-surface);--ink:var(--ds-ink);--text:var(--ds-body);
 --line:var(--ds-line);--teal:var(--ds-accent);--soft:var(--ds-subtle);--accent:var(--ds-accent-soft);
 --card-ink:var(--ds-ink);--card-text:var(--ds-body);--card-line:var(--ds-line);--card-soft:var(--ds-subtle);--outer:var(--ds-canvas);
}
html[data-theme] body{background:var(--ds-canvas);color:var(--ds-ink);font-family:Arial,"Noto Sans Arabic",Tahoma,sans-serif}
html[lang=ar] body{font-family:Tahoma,Arial,"Noto Sans Arabic",sans-serif}
html[data-theme] :focus-visible{outline:3px solid var(--ds-focus);outline-offset:4px}
::selection{background:var(--ds-action);color:var(--ds-on-action)}
html[data-theme] .site-frame{background:var(--ds-surface);border:1px solid var(--ds-line);box-shadow:var(--ds-shadow)}
.site-frame:before,.site-frame:after{display:none}
html[data-theme] :is(.header,.footer){background:var(--ds-surface);border-color:var(--ds-line);color:var(--ds-ink)}
html[data-theme] :is(.brand-name strong,.navigation a,.nav-actions,.footer-bottom,.footer-links h2){color:var(--ds-ink)}
html[data-theme] :is(.brand-name small,.footer-brand>p,.footer-links a,.footer-bottom p){color:var(--ds-body)}
html[data-theme] .brand-mark{background:var(--ds-action);color:var(--ds-on-action);border:0;box-shadow:none}
html[data-theme] :is(.navigation a:hover,.footer-links a:hover,.footer-ipa){color:var(--ds-action)}
html[data-theme] .navigation a:after{background:var(--ds-action)}
html[data-theme] .floating-language{background:var(--ds-surface);color:var(--ds-body);border-color:var(--ds-line);box-shadow:var(--ds-shadow)}
html[data-theme] .floating-language a[aria-current=true]{background:var(--ds-action);color:var(--ds-on-action)}
html[data-theme] .floating-language a:hover{background:var(--ds-subtle);color:var(--ds-ink)}
html[data-theme] :is(.button,.focus-primary,.wf-button,.meeting-primary,.lab-primary){background:var(--ds-action);color:var(--ds-on-action);border-color:var(--ds-action);box-shadow:none;border-radius:10px}
/* The historical meeting-primary color declaration was important. */
html[data-theme] .meeting-primary{color:var(--ds-on-action)!important}
html[data-theme] :is(.button,.focus-primary,.wf-button,.meeting-primary,.lab-primary):hover{background:var(--ds-action-hover);color:var(--ds-on-action)}
html[data-theme] :is(.button-outline,.live-secondary){background:var(--ds-surface);color:var(--ds-action);border-color:var(--ds-line)}
html[data-theme] :is(.text-link,.focus-text-link,.focus-rights,.eyebrow){color:var(--ds-action)}
html[data-theme] .text-link:hover{color:var(--ds-action-hover)}
html[data-theme] :is(.page-hero,.process-section,.cta,.resource-hero,.resource-cta){background:var(--ds-subtle);color:var(--ds-ink);border-color:var(--ds-line);box-shadow:none}
html[data-theme] :is(.page-heading-grid h1,.section-heading h2,.prose-list h2,.process-grid h3,.cta h2,.resource-hero h1,.resource-cta h2){color:var(--ds-ink)}
html[data-theme] :is(.hero-intro,.page-heading-grid .hero-intro,.section-heading>p,.prose-list p,.process-grid p,.cta p:not(.eyebrow),.resource-intro,.resource-cta p:last-child){color:var(--ds-body)}
html[data-theme] :is(.service-card,.feature-card,.technology-grid>a,.team-card,.team-owner,.team-message,.home-opportunity){background:var(--ds-surface);color:var(--ds-ink);border-color:var(--ds-line);box-shadow:var(--ds-shadow)}
html[data-theme] .service-card{box-shadow:var(--ds-shadow);margin:0}
html[data-theme] .service-card:after{display:none}
html[data-theme] :is(.service-card,.feature-card,.technology-grid>a) :is(h2,h3){color:var(--ds-ink)}
html[data-theme] :is(.service-card,.feature-card,.technology-grid>a) p{color:var(--ds-body)}
html[data-theme] :is(.service-card,.feature-card) .text-link{color:var(--ds-action)}
html[data-theme] :is(.notice,.empty-state,.badge,.staff-contact-note){background:var(--ds-subtle);color:var(--ds-body);border-color:var(--ds-line)}
/* Homepage: white cards have deliberate, readable ink, never inherited pale text. */
html[data-theme] .focus-home{--focus-line:var(--ds-line);--focus-accent:var(--ds-accent);background:var(--ds-canvas);color:var(--ds-ink)}
html[data-theme] .focus-home :is(h1,h2,h3){color:var(--ds-ink)}
html[data-theme] .focus-home :is(.focus-intro,.focus-path p,.focus-section-title>p,.focus-demo-copy>p:not(.focus-eyebrow),.focus-contact p:not(.focus-eyebrow)){color:var(--ds-body)}
html[data-theme] .focus-home :is(.focus-eyebrow,.focus-path-action,.focus-icon){color:var(--ds-accent)}
html[data-theme] .focus-home :is(.focus-path-number,.focus-rights,.focus-demo-copy small,.focus-contact-actions small,.orbit-caption){color:var(--ds-muted)}
html[data-theme] .focus-home .focus-hero h1 em{color:var(--ds-accent)}
html[data-theme] .focus-path{background:var(--ds-surface);border-color:var(--ds-line);border-radius:18px;box-shadow:var(--ds-shadow)}
html[data-theme] .focus-path:hover{background:var(--ds-surface);border-color:var(--ds-action);box-shadow:0 12px 30px #1859b714;transform:translateY(-3px)}
html[data-theme] .focus-path-action{border-color:var(--ds-line)}
html[data-theme] .focus-contact{background:var(--ds-accent-soft);border:1px solid var(--ds-line);border-radius:18px;padding-inline:28px}
html[data-theme] :is(.focus-orbit-core,.orbit-node,.focus-orbit-core small){background:var(--ds-surface);color:var(--ds-accent);border-color:var(--ds-line);box-shadow:var(--ds-shadow)}
html[data-theme] .focus-orbit-core>span{color:var(--ds-accent)}
html[data-theme] .focus-orbit-ring{border-color:var(--ds-line);box-shadow:none}
html[data-theme] .focus-orbit-ring:after{background:var(--ds-accent);box-shadow:none}
/* Original waveform screenshot remains untouched; frame and controls share the theme. */
html[data-theme] .lab-feature{background:var(--ds-canvas);color:var(--ds-ink);border-color:var(--ds-line)}
html[data-theme] .lab-feature :is(h2,blockquote,.lab-workflow strong){color:var(--ds-ink)}
html[data-theme] .lab-feature :is(p,.lab-transcript-caption,.lab-fine-print,.lab-workflow p){color:var(--ds-body)}
html[data-theme] .lab-feature :is(.lab-kicker,.lab-workflow span,.lab-secondary,h2 span){color:var(--ds-accent)}
html[data-theme] .lab-public-label{color:var(--ds-accent);border-color:var(--ds-line)}
html[data-theme] .lab-workspace-preview{background:var(--ds-surface);color:var(--ds-ink);border-color:var(--ds-line);box-shadow:var(--ds-shadow)}
html[data-theme] :is(.lab-window-bar,.lab-sample-facts){background:var(--ds-subtle);border-color:var(--ds-line)}
html[data-theme] :is(.lab-audio-bar,.lab-audio-controls button){background:var(--ds-surface);color:var(--ds-ink);border-color:var(--ds-line)}
html[data-theme] .lab-audio-controls [data-lab-play]{background:var(--ds-action);color:var(--ds-on-action);border-color:var(--ds-action)}
html[data-theme] :is(.lab-window-dots,.lab-sample-facts>span,.lab-workspace-preview figcaption){color:var(--ds-muted)}
html[data-theme] .lab-sample-facts strong{color:var(--ds-ink)}
/* Office and information surfaces: one semantic system across all private routes. */
html[data-theme] :is(.office,.workforce,.meeting-shell,.staff-portal,.live-meeting,.resource-shell,.recruitment){color:var(--ds-ink);background:transparent;--wf-ink:var(--ds-ink);--wf-muted:var(--ds-body);--recruit-ink:var(--ds-ink);--recruit-muted:var(--ds-body);--recruit-line:var(--ds-line);--recruit-accent:var(--ds-action)}
html[data-theme] :is(.office,.workforce,.meeting-shell,.staff-portal,.live-meeting,.resource-shell,.recruitment) :is(h1,h2,h3,h4,label,legend,strong,b,dt){color:var(--ds-ink)}
html[data-theme] .site-frame :is(.office,.workforce,.meeting-shell,.staff-portal,.live-meeting,.resource-shell,.recruitment) :is(p,li,dd,small,time,summary){color:var(--ds-body)}
html[data-theme] :is(.office,.workforce,.meeting-shell,.staff-portal,.live-meeting,.resource-shell) a:not(.button):not(.wf-button):not(.meeting-primary):not(.lab-primary):not(.focus-primary):not(.recruitment-button):not(.live-secondary):not(.live-danger){color:var(--ds-action)}
html[data-theme] :is(.metric-card,.office-card,.agent-card,.auth-card,.form-panel,.wf-room,.wf-panel,.wf-task,.meeting-seat,.meeting-source,.meeting-proposal,.meeting-reviews article,.live-panel,.live-config,.live-turn,.staff-panel,.staff-room,.resource-section,.recruitment-card,.recruitment-panel,.recruitment-savebar){background:var(--ds-surface);color:var(--ds-ink);border-color:var(--ds-line);box-shadow:var(--ds-shadow);border-radius:16px}
html[data-theme] :is(.wf-summary,.wf-room-top,.wf-work-state,.meeting-room,.meeting-table,.meeting-disclosure,.meeting-decision,.live-agenda,.live-feedback,.resource-toc,.resource-example,.resource-table thead th,.resource-table tbody th,.wf-tabs,.office-tabs a){background:var(--ds-subtle);color:var(--ds-ink);border-color:var(--ds-line)}
html[data-theme] :is(.wf-summary strong,.wf-room-counts b,.wf-presence,.meeting-table-brand,.meeting-metrics strong,.meeting-seat-work,.resource-toc h2){color:var(--ds-ink)}
html[data-theme] :is(.wf-summary span,.wf-summary small,.wf-room-number,.wf-room-counts span,.wf-task-times>span,.meeting-room-heading>span,.meeting-seat-number,.meeting-proposal-meta,.meeting-decision-status,.resource-meta,.resource-status,.staff-facts,.live-turn-meta){color:var(--ds-body)}
html[data-theme] :is(.wf-language a[aria-current],.wf-tabs a:first-child,.wf-tabs a:hover){background:var(--ds-action);color:var(--ds-on-action)}
html[data-theme] :is(.wf-room-top,.wf-room-counts,.wf-schedule,.meeting-section,.meeting-reviews article,.resource-toc,.office-tabs a,.wf-tabs,.wf-summary>div,.wf-footer,.footer-bottom){border-color:var(--ds-line)}
html[data-theme] :is(.wf-eyebrow,.meeting-kicker,.resource-kicker,.resource-section-number,.staff-room .resource-kicker){color:var(--ds-accent)}
html[data-theme] .wf-guidance li:before{background:var(--ds-subtle);color:var(--ds-action);border-color:var(--ds-line)}
html[data-theme] .wf-empty{background:var(--ds-subtle);color:var(--ds-body);border-color:var(--ds-line)}
html[data-theme] :is(.wf-empty h3,.wf-empty>span,.wf-refresh,.wf-legend,.wf-truth-note,.wf-floor-caption,.wf-note,.wf-footer){color:var(--ds-body)}
html[data-theme] :is(.office,.workforce,.meeting-shell,.live-meeting,.resource-shell) pre{background:var(--ds-subtle);color:var(--ds-ink);border-color:var(--ds-line)}
html[data-theme] :is(.table-wrap,.resource-table table){background:var(--ds-surface);color:var(--ds-ink);border-color:var(--ds-line)}
html[data-theme] :is(th,td){color:var(--ds-body);border-color:var(--ds-line)}
html[data-theme] th{background:var(--ds-subtle);color:var(--ds-ink)}
html[data-theme] .site-frame input:not([type=checkbox]):not([type=radio]),html[data-theme] .site-frame select,html[data-theme] .site-frame textarea{background:var(--ds-surface);color:var(--ds-ink);border:1px solid #7c8ea5;box-shadow:none;accent-color:var(--ds-action)}
html[data-theme] .site-frame input[type=range]{background:transparent;border:0}
html[data-theme] .site-frame input::placeholder,html[data-theme] .site-frame textarea::placeholder{color:var(--ds-muted);opacity:1}
html[data-theme] .meeting-decision button{background:var(--ds-surface);color:var(--ds-action);border-color:var(--ds-line)}
html[data-theme] .meeting-decision button.approve{background:var(--ds-success);color:var(--ds-surface)}
html[data-theme] .site-frame .errorlist{color:var(--ds-danger)}
/* Status communicates semantics with explicit text, not a coloured bulb alone. */
html[data-theme] :is(.agent-availability,.agent-activity,.wf-state){background:var(--ds-subtle);color:var(--ds-body);border-color:var(--ds-line)}
html[data-theme] :is(.agent-availability.is-available,.wf-state.completed,.staff-badge.ready,.live-state.ready,.wf-accepted-note){background:var(--ds-success-bg);color:var(--ds-success);border-color:var(--ds-success)}
html[data-theme] :is(.agent-activity.activity-running,.wf-state.running){background:var(--ds-running-bg);color:var(--ds-running);border-color:var(--ds-running)}
html[data-theme] :is(.agent-activity.activity-unconfirmed,.wf-state.needs_review,.wf-state.blocked,.staff-badge.blocked,.meeting-warning){background:var(--ds-warning-bg);color:var(--ds-warning);border-color:var(--ds-warning)}
html[data-theme] :is(.wf-state.failed,.live-danger){background:var(--ds-danger-bg);color:var(--ds-danger);border-color:var(--ds-danger)}
html[data-theme] .site-frame :is(.agent-availability,.agent-activity) :is(strong,small){color:inherit}
.agent-availability{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid;border-radius:9px;margin-block:8px}
.agent-availability-lamp,.agent-status-lamp{display:inline-block;width:9px;height:9px;border-radius:50%;flex:0 0 9px;margin-top:7px;background:var(--ds-muted);box-shadow:none}
html[data-theme] .is-available .agent-availability-lamp,html[data-theme] .wf-light.green{background:var(--ds-success);box-shadow:none}
html[data-theme] .activity-running .agent-status-lamp,html[data-theme] .wf-light.blue{background:var(--ds-running);box-shadow:none}
html[data-theme] .activity-idle .agent-status-lamp,html[data-theme] .wf-light.neutral{background:var(--ds-muted);box-shadow:none}
html[data-theme] .activity-unconfirmed .agent-status-lamp,html[data-theme] .wf-light.amber{background:var(--ds-warning);box-shadow:none}
@media(max-width:800px){html[data-theme] .navigation{background:var(--ds-surface);border-color:var(--ds-line)}}
@media(max-width:650px){html[data-theme] .focus-contact{padding-inline:18px}.focus-path-grid{grid-template-columns:1fr}.focus-path{padding:23px}.focus-path p{max-width:48ch}}
@media print{html[data-theme] .site-frame,html[data-theme] body{background:#fff;color:#111;box-shadow:none}html[data-theme] :is(.meeting-shell,.workforce,.office){color:#111}}
html[data-theme] .meeting-light.is-available{background:var(--ds-success);box-shadow:none}
html[data-theme] .meeting-light.is-idle{background:var(--ds-muted);box-shadow:none}
.meeting-seat .agent-availability,.meeting-seat .agent-activity{max-width:100%;overflow-wrap:anywhere}
html[data-theme] .recruitment :is(button,.recruitment-button){background:var(--ds-action);color:var(--ds-on-action);border-color:var(--ds-action)}
html[data-theme] .recruitment button.secondary{background:var(--ds-surface);color:var(--ds-action);border-color:var(--ds-line)}
html[data-theme] .recruitment-status{background:var(--ds-subtle);color:var(--ds-ink);border-color:var(--ds-line)}

/* Paired action colours are a component contract. Contextual link/label rules must
   never recolour a filled action, including visited links and nested labels. */
html[data-theme] .site-frame :is(.button,.focus-primary,.wf-button,.meeting-primary,.lab-primary,.recruitment-button,.recruitment button,[data-lab-play]){
 background:var(--ds-action);color:var(--ds-on-action)!important;border-color:var(--ds-action);
 opacity:1;text-decoration:none;text-shadow:none; -webkit-text-fill-color:currentColor;
}
html[data-theme] .site-frame :is(.button,.focus-primary,.wf-button,.meeting-primary,.lab-primary,.recruitment-button,.recruitment button,[data-lab-play]):where(:not(:disabled):not([aria-disabled=true])):is(:hover,:focus-visible,:active){
 background:var(--ds-action-hover);color:var(--ds-on-action)!important;border-color:var(--ds-action-hover);
}
html[data-theme] .site-frame :is(.button-outline,.live-secondary,.recruitment button.secondary,.meeting-decision button,[data-lab-stop]){
 background:var(--ds-surface);color:var(--ds-action)!important;border:1px solid var(--ds-action);opacity:1;
}
html[data-theme] .site-frame :is(.button-outline,.live-secondary,.recruitment button.secondary,.meeting-decision button,[data-lab-stop]):where(:not(:disabled):not([aria-disabled=true])):is(:hover,:focus-visible,:active){
 background:var(--ds-subtle);color:var(--ds-action)!important;border-color:var(--ds-action);
}
html[data-theme] .site-frame :is(.live-danger,.recruitment .recruitment-danger,.meeting-decision button.decline){
 background:var(--ds-danger-bg);color:var(--ds-danger)!important;border:1px solid var(--ds-danger);opacity:1;
}
html[data-theme] .site-frame :is(.live-danger,.recruitment .recruitment-danger,.meeting-decision button.decline):where(:not(:disabled):not([aria-disabled=true])):is(:hover,:focus-visible,:active){
 background:var(--ds-danger-bg);color:var(--ds-danger)!important;box-shadow:inset 0 0 0 1px var(--ds-danger);
}
html[data-theme] .site-frame .meeting-decision button.approve{
 background:var(--ds-success-bg);color:var(--ds-success)!important;border-color:var(--ds-success);
}
html[data-theme] .site-frame .meeting-decision button.approve:where(:not(:disabled):not([aria-disabled=true])):is(:hover,:focus-visible,:active){
 background:var(--ds-success-bg);color:var(--ds-success)!important;box-shadow:inset 0 0 0 1px var(--ds-success);
}
html[data-theme] .site-frame :is(.icon-button,.wf-link){background:transparent;color:var(--ds-action)!important;opacity:1}
html[data-theme] .site-frame :is(.icon-button,.wf-link):where(:not(:disabled):not([aria-disabled=true])):is(:hover,:focus-visible,:active){background:var(--ds-subtle);color:var(--ds-action)!important}
html[data-theme] .site-frame :is(.button,.focus-primary,.wf-button,.meeting-primary,.lab-primary,.recruitment-button,.live-secondary,.live-danger,button) :is(span,strong,b,small,i,em,svg){
 color:inherit!important;-webkit-text-fill-color:currentColor;text-shadow:none;
}
/* Disabled is a real interaction state, not unreadable low-opacity text. */
html[data-theme] .site-frame fieldset:disabled{opacity:1}
html[data-theme] .site-frame :is(button,input,select,textarea):disabled,
html[data-theme] .site-frame :is(button,.button,.focus-primary,.wf-button,.meeting-primary,.lab-primary,.recruitment-button,.live-secondary,.live-danger,.recruitment .recruitment-danger,.meeting-decision button):is(:disabled,[aria-disabled=true]){
 background:var(--ds-subtle);color:var(--ds-muted)!important;border-color:var(--ds-muted);opacity:1;cursor:not-allowed;box-shadow:none;transform:none;
}
html[data-theme] .site-frame :is(button,a):focus-visible{outline:3px solid var(--ds-focus);outline-offset:4px}
/* Atmospheric backdrop: static, decorative, and below opaque content surfaces. */
:root,html[data-theme=light]{
 --ds-atmosphere:radial-gradient(ellipse at 5% 4%,#dceefa 0,transparent 45%),radial-gradient(ellipse at 95% 26%,#dff2ef 0,transparent 42%),linear-gradient(135deg,#f4f7fb,#edf2fa 58%,#f5f8fc);
 --ds-outer-atmosphere:radial-gradient(ellipse at 0 0,#d2e7f5,transparent 55%),radial-gradient(ellipse at 100% 50%,#ddedea,transparent 60%);
}
html[data-theme=dark]{
 --ds-atmosphere:radial-gradient(ellipse at 5% 4%,#18354b 0,transparent 45%),radial-gradient(ellipse at 95% 26%,#183a3d 0,transparent 42%),linear-gradient(135deg,#101b2b,#14243a 58%,#101b2b);
 --ds-outer-atmosphere:radial-gradient(ellipse at 0 0,#142e45,transparent 55%),radial-gradient(ellipse at 100% 50%,#173b3e,transparent 60%);
}
html[data-theme] body{background-color:var(--ds-canvas);background-image:var(--ds-outer-atmosphere);background-repeat:no-repeat}
html[data-theme] :is(.site-frame,.focus-home,.lab-feature){background-color:var(--ds-canvas);background-image:var(--ds-atmosphere);background-repeat:no-repeat;background-size:100% 100%}
html[data-theme] .focus-hero{background:none}
@media print{html[data-theme] body,html[data-theme] :is(.site-frame,.focus-home,.lab-feature){background:#fff}}
