/* Shared readable foregrounds. Keep content, controls and focus distinct in every palette. */
:root[data-theme=light]{--b1x-control-edge:#747e79;--b1x-error-text:#842b29;--b1x-error-bg:#fff1ef}
:root[data-theme=dark]{--b1x-control-edge:#8c9992;--b1x-error-text:#ffd6d0;--b1x-error-bg:#482522}
:root[data-theme] body{color:var(--b1x-text)}
:root[data-theme] body :is(.status-item strong,.status-group h3,.measure-grid strong,.comparison-footer strong,.stat-line strong,.integrity code,.detail-list strong){color:var(--b1x-text)!important;opacity:1!important}
:root[data-theme] body :is(.measure-grid small,.comparison-profile p,.comparison-footer p,.desktop-copy>p:not(.kicker),.release-note p,.hero-note,.preview-note,.capability-directory-note,.capability-steps,.status-summary small){color:var(--b1x-muted)!important;opacity:1!important}
:root[data-theme] body :is(.profile-label,.comparison-baseline .profile-label,.measure-grid span,.section-number,.detail-number){color:var(--b1x-accent)!important;opacity:1!important}
:root[data-theme] body .comparison-versus{background:var(--b1x-solid-strong);color:var(--b1x-text);border-color:var(--b1x-control-edge)}
:root[data-theme] body :is(.desktop-facts span,.release-marker){background:var(--b1x-control);color:var(--b1x-text);border-color:var(--b1x-control-edge)}
:root[data-theme] body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),textarea,select){color:var(--b1x-text);caret-color:var(--b1x-text)}
:root[data-theme] body :is(input,textarea)::placeholder{color:var(--b1x-muted)!important;opacity:1!important}
:root[data-theme] body :is(input,textarea,select):not(#prompt):not([type=range]):not([type=checkbox]):not([type=radio]){border-color:var(--b1x-control-edge)}
:root[data-theme] body :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--b1x-focus,var(--b1x-accent));outline-offset:3px}
:root[data-theme] body :is(.public-appearance select,.hub-tabs button,.hub-information-actions button){opacity:1!important}
:root[data-theme] body .creative-screen .screen-caption{color:#fff!important;background:#142322e8;text-shadow:none;padding:4px 7px;border-radius:3px}
:root[data-theme] body .video-play{color:var(--b1x-accent)!important;border-color:var(--b1x-accent)!important;background:var(--b1x-solid)!important}
:root[data-theme] body :is(.voice-source,.voice-output){color:var(--b1x-text)!important;background:var(--b1x-control)!important;border-color:var(--b1x-control-edge)!important}
:root[data-theme] body :is(.voice-transfer,.wave-timeline){color:var(--b1x-muted)!important}
:root[data-theme] body :is(.waveform i,.wave-timeline b){background:var(--b1x-accent)!important}
:root[data-theme] body .video-track i{background:var(--b1x-control)!important;border-color:var(--b1x-control-edge)!important}
:root[data-theme] body .record-line i{border-color:var(--b1x-control-edge)!important}
:root[data-theme] body .record-line b{background:var(--b1x-accent)!important}
:root[data-interface=calm][data-theme=light]{--calm-muted:#52655e}
:root[data-interface=calm] #shell#shell#shell :is(label,legend,summary,th,.context-chip,.request-asset){color:var(--calm-text)!important}
:root[data-interface=calm] body :is(dialog,.launch-dialog,[role=menu]){color:var(--calm-text);background:var(--calm-panel)}
:root[data-interface=calm] #shell#shell#shell :is(.muted,.helper-text,.hint,.empty-state,.sidebar-section-label){color:var(--calm-muted)!important;opacity:1!important}
:root[data-interface=calm] #shell #composer#composer#composer#composer#composer#composer :is(button:disabled,[aria-disabled=true]){opacity:1!important;color:var(--calm-muted)!important}
/* Windows high contrast retains system colors and a visible focus indicator. */
@media(forced-colors:active){
 :root[data-theme] body :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid Highlight!important}
 :root[data-theme] body :is(.feature-badge,.status-item span,.capability-service-state){forced-color-adjust:auto;border:1px solid CanvasText}
}
